@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.js CHANGED
@@ -113,7 +113,7 @@ function generateIdempotencyKey() {
113
113
  return `wak_idem_${uuid.replace(/-/g, "")}`;
114
114
  }
115
115
  var client = createClient(createConfig({
116
- baseUrl: "https://api.wakata.ai"
116
+ baseUrl: "https://dev-api.wakata.ai"
117
117
  }));
118
118
 
119
119
  // src/generated/sdk.gen.ts
@@ -467,6 +467,818 @@ var assetClassPropertyControllerUpdate = (options) => {
467
467
  }
468
468
  });
469
469
  };
470
+ var documentUploadControllerUploadUrl = (options) => {
471
+ return (options.client ?? client).post({
472
+ security: [
473
+ {
474
+ scheme: "bearer",
475
+ type: "http"
476
+ }
477
+ ],
478
+ url: "/document/upload-url",
479
+ ...options,
480
+ headers: {
481
+ "Content-Type": "application/json",
482
+ ...options?.headers
483
+ }
484
+ });
485
+ };
486
+ var assetDocumentControllerList = (options) => {
487
+ return (options?.client ?? client).get({
488
+ security: [
489
+ {
490
+ scheme: "bearer",
491
+ type: "http"
492
+ }
493
+ ],
494
+ url: "/asset-document/list",
495
+ ...options
496
+ });
497
+ };
498
+ var assetDocumentControllerRemove = (options) => {
499
+ return (options.client ?? client).delete({
500
+ security: [
501
+ {
502
+ scheme: "bearer",
503
+ type: "http"
504
+ }
505
+ ],
506
+ url: "/asset-document/{id}",
507
+ ...options
508
+ });
509
+ };
510
+ var assetDocumentControllerGet = (options) => {
511
+ return (options.client ?? client).get({
512
+ security: [
513
+ {
514
+ scheme: "bearer",
515
+ type: "http"
516
+ }
517
+ ],
518
+ url: "/asset-document/{id}",
519
+ ...options
520
+ });
521
+ };
522
+ var assetDocumentControllerUpdate = (options) => {
523
+ return (options.client ?? client).patch({
524
+ security: [
525
+ {
526
+ scheme: "bearer",
527
+ type: "http"
528
+ }
529
+ ],
530
+ url: "/asset-document/{id}",
531
+ ...options,
532
+ headers: {
533
+ "Content-Type": "application/json",
534
+ ...options?.headers
535
+ }
536
+ });
537
+ };
538
+ var assetDocumentControllerCreate = (options) => {
539
+ return (options.client ?? client).post({
540
+ security: [
541
+ {
542
+ scheme: "bearer",
543
+ type: "http"
544
+ }
545
+ ],
546
+ url: "/asset-document",
547
+ ...options,
548
+ headers: {
549
+ "Content-Type": "application/json",
550
+ ...options?.headers
551
+ }
552
+ });
553
+ };
554
+ var assetClassDocumentControllerList = (options) => {
555
+ return (options?.client ?? client).get({
556
+ security: [
557
+ {
558
+ scheme: "bearer",
559
+ type: "http"
560
+ }
561
+ ],
562
+ url: "/asset-class-document/list",
563
+ ...options
564
+ });
565
+ };
566
+ var assetClassDocumentControllerRemove = (options) => {
567
+ return (options.client ?? client).delete({
568
+ security: [
569
+ {
570
+ scheme: "bearer",
571
+ type: "http"
572
+ }
573
+ ],
574
+ url: "/asset-class-document/{id}",
575
+ ...options
576
+ });
577
+ };
578
+ var assetClassDocumentControllerGet = (options) => {
579
+ return (options.client ?? client).get({
580
+ security: [
581
+ {
582
+ scheme: "bearer",
583
+ type: "http"
584
+ }
585
+ ],
586
+ url: "/asset-class-document/{id}",
587
+ ...options
588
+ });
589
+ };
590
+ var assetClassDocumentControllerUpdate = (options) => {
591
+ return (options.client ?? client).patch({
592
+ security: [
593
+ {
594
+ scheme: "bearer",
595
+ type: "http"
596
+ }
597
+ ],
598
+ url: "/asset-class-document/{id}",
599
+ ...options,
600
+ headers: {
601
+ "Content-Type": "application/json",
602
+ ...options?.headers
603
+ }
604
+ });
605
+ };
606
+ var assetClassDocumentControllerCreate = (options) => {
607
+ return (options.client ?? client).post({
608
+ security: [
609
+ {
610
+ scheme: "bearer",
611
+ type: "http"
612
+ }
613
+ ],
614
+ url: "/asset-class-document",
615
+ ...options,
616
+ headers: {
617
+ "Content-Type": "application/json",
618
+ ...options?.headers
619
+ }
620
+ });
621
+ };
622
+ var userDocumentControllerList = (options) => {
623
+ return (options?.client ?? client).get({
624
+ security: [
625
+ {
626
+ scheme: "bearer",
627
+ type: "http"
628
+ }
629
+ ],
630
+ url: "/user-document/list",
631
+ ...options
632
+ });
633
+ };
634
+ var userDocumentControllerRemove = (options) => {
635
+ return (options.client ?? client).delete({
636
+ security: [
637
+ {
638
+ scheme: "bearer",
639
+ type: "http"
640
+ }
641
+ ],
642
+ url: "/user-document/{id}",
643
+ ...options
644
+ });
645
+ };
646
+ var userDocumentControllerGet = (options) => {
647
+ return (options.client ?? client).get({
648
+ security: [
649
+ {
650
+ scheme: "bearer",
651
+ type: "http"
652
+ }
653
+ ],
654
+ url: "/user-document/{id}",
655
+ ...options
656
+ });
657
+ };
658
+ var userDocumentControllerUpdate = (options) => {
659
+ return (options.client ?? client).patch({
660
+ security: [
661
+ {
662
+ scheme: "bearer",
663
+ type: "http"
664
+ }
665
+ ],
666
+ url: "/user-document/{id}",
667
+ ...options,
668
+ headers: {
669
+ "Content-Type": "application/json",
670
+ ...options?.headers
671
+ }
672
+ });
673
+ };
674
+ var userDocumentControllerCreate = (options) => {
675
+ return (options.client ?? client).post({
676
+ security: [
677
+ {
678
+ scheme: "bearer",
679
+ type: "http"
680
+ }
681
+ ],
682
+ url: "/user-document",
683
+ ...options,
684
+ headers: {
685
+ "Content-Type": "application/json",
686
+ ...options?.headers
687
+ }
688
+ });
689
+ };
690
+ var siteDocumentControllerList = (options) => {
691
+ return (options?.client ?? client).get({
692
+ security: [
693
+ {
694
+ scheme: "bearer",
695
+ type: "http"
696
+ }
697
+ ],
698
+ url: "/site-document/list",
699
+ ...options
700
+ });
701
+ };
702
+ var siteDocumentControllerRemove = (options) => {
703
+ return (options.client ?? client).delete({
704
+ security: [
705
+ {
706
+ scheme: "bearer",
707
+ type: "http"
708
+ }
709
+ ],
710
+ url: "/site-document/{id}",
711
+ ...options
712
+ });
713
+ };
714
+ var siteDocumentControllerGet = (options) => {
715
+ return (options.client ?? client).get({
716
+ security: [
717
+ {
718
+ scheme: "bearer",
719
+ type: "http"
720
+ }
721
+ ],
722
+ url: "/site-document/{id}",
723
+ ...options
724
+ });
725
+ };
726
+ var siteDocumentControllerUpdate = (options) => {
727
+ return (options.client ?? client).patch({
728
+ security: [
729
+ {
730
+ scheme: "bearer",
731
+ type: "http"
732
+ }
733
+ ],
734
+ url: "/site-document/{id}",
735
+ ...options,
736
+ headers: {
737
+ "Content-Type": "application/json",
738
+ ...options?.headers
739
+ }
740
+ });
741
+ };
742
+ var siteDocumentControllerCreate = (options) => {
743
+ return (options.client ?? client).post({
744
+ security: [
745
+ {
746
+ scheme: "bearer",
747
+ type: "http"
748
+ }
749
+ ],
750
+ url: "/site-document",
751
+ ...options,
752
+ headers: {
753
+ "Content-Type": "application/json",
754
+ ...options?.headers
755
+ }
756
+ });
757
+ };
758
+ var customerDocumentControllerList = (options) => {
759
+ return (options?.client ?? client).get({
760
+ security: [
761
+ {
762
+ scheme: "bearer",
763
+ type: "http"
764
+ }
765
+ ],
766
+ url: "/customer-document/list",
767
+ ...options
768
+ });
769
+ };
770
+ var customerDocumentControllerRemove = (options) => {
771
+ return (options.client ?? client).delete({
772
+ security: [
773
+ {
774
+ scheme: "bearer",
775
+ type: "http"
776
+ }
777
+ ],
778
+ url: "/customer-document/{id}",
779
+ ...options
780
+ });
781
+ };
782
+ var customerDocumentControllerGet = (options) => {
783
+ return (options.client ?? client).get({
784
+ security: [
785
+ {
786
+ scheme: "bearer",
787
+ type: "http"
788
+ }
789
+ ],
790
+ url: "/customer-document/{id}",
791
+ ...options
792
+ });
793
+ };
794
+ var customerDocumentControllerUpdate = (options) => {
795
+ return (options.client ?? client).patch({
796
+ security: [
797
+ {
798
+ scheme: "bearer",
799
+ type: "http"
800
+ }
801
+ ],
802
+ url: "/customer-document/{id}",
803
+ ...options,
804
+ headers: {
805
+ "Content-Type": "application/json",
806
+ ...options?.headers
807
+ }
808
+ });
809
+ };
810
+ var customerDocumentControllerCreate = (options) => {
811
+ return (options.client ?? client).post({
812
+ security: [
813
+ {
814
+ scheme: "bearer",
815
+ type: "http"
816
+ }
817
+ ],
818
+ url: "/customer-document",
819
+ ...options,
820
+ headers: {
821
+ "Content-Type": "application/json",
822
+ ...options?.headers
823
+ }
824
+ });
825
+ };
826
+ var projectDocumentControllerList = (options) => {
827
+ return (options?.client ?? client).get({
828
+ security: [
829
+ {
830
+ scheme: "bearer",
831
+ type: "http"
832
+ }
833
+ ],
834
+ url: "/project-document/list",
835
+ ...options
836
+ });
837
+ };
838
+ var projectDocumentControllerRemove = (options) => {
839
+ return (options.client ?? client).delete({
840
+ security: [
841
+ {
842
+ scheme: "bearer",
843
+ type: "http"
844
+ }
845
+ ],
846
+ url: "/project-document/{id}",
847
+ ...options
848
+ });
849
+ };
850
+ var projectDocumentControllerGet = (options) => {
851
+ return (options.client ?? client).get({
852
+ security: [
853
+ {
854
+ scheme: "bearer",
855
+ type: "http"
856
+ }
857
+ ],
858
+ url: "/project-document/{id}",
859
+ ...options
860
+ });
861
+ };
862
+ var projectDocumentControllerUpdate = (options) => {
863
+ return (options.client ?? client).patch({
864
+ security: [
865
+ {
866
+ scheme: "bearer",
867
+ type: "http"
868
+ }
869
+ ],
870
+ url: "/project-document/{id}",
871
+ ...options,
872
+ headers: {
873
+ "Content-Type": "application/json",
874
+ ...options?.headers
875
+ }
876
+ });
877
+ };
878
+ var projectDocumentControllerCreate = (options) => {
879
+ return (options.client ?? client).post({
880
+ security: [
881
+ {
882
+ scheme: "bearer",
883
+ type: "http"
884
+ }
885
+ ],
886
+ url: "/project-document",
887
+ ...options,
888
+ headers: {
889
+ "Content-Type": "application/json",
890
+ ...options?.headers
891
+ }
892
+ });
893
+ };
894
+ var jobDocumentControllerList = (options) => {
895
+ return (options?.client ?? client).get({
896
+ security: [
897
+ {
898
+ scheme: "bearer",
899
+ type: "http"
900
+ }
901
+ ],
902
+ url: "/job-document/list",
903
+ ...options
904
+ });
905
+ };
906
+ var jobDocumentControllerRemove = (options) => {
907
+ return (options.client ?? client).delete({
908
+ security: [
909
+ {
910
+ scheme: "bearer",
911
+ type: "http"
912
+ }
913
+ ],
914
+ url: "/job-document/{id}",
915
+ ...options
916
+ });
917
+ };
918
+ var jobDocumentControllerGet = (options) => {
919
+ return (options.client ?? client).get({
920
+ security: [
921
+ {
922
+ scheme: "bearer",
923
+ type: "http"
924
+ }
925
+ ],
926
+ url: "/job-document/{id}",
927
+ ...options
928
+ });
929
+ };
930
+ var jobDocumentControllerUpdate = (options) => {
931
+ return (options.client ?? client).patch({
932
+ security: [
933
+ {
934
+ scheme: "bearer",
935
+ type: "http"
936
+ }
937
+ ],
938
+ url: "/job-document/{id}",
939
+ ...options,
940
+ headers: {
941
+ "Content-Type": "application/json",
942
+ ...options?.headers
943
+ }
944
+ });
945
+ };
946
+ var jobDocumentControllerCreate = (options) => {
947
+ return (options.client ?? client).post({
948
+ security: [
949
+ {
950
+ scheme: "bearer",
951
+ type: "http"
952
+ }
953
+ ],
954
+ url: "/job-document",
955
+ ...options,
956
+ headers: {
957
+ "Content-Type": "application/json",
958
+ ...options?.headers
959
+ }
960
+ });
961
+ };
962
+ var companyDocumentControllerList = (options) => {
963
+ return (options?.client ?? client).get({
964
+ security: [
965
+ {
966
+ scheme: "bearer",
967
+ type: "http"
968
+ }
969
+ ],
970
+ url: "/company-document/list",
971
+ ...options
972
+ });
973
+ };
974
+ var companyDocumentControllerRemove = (options) => {
975
+ return (options.client ?? client).delete({
976
+ security: [
977
+ {
978
+ scheme: "bearer",
979
+ type: "http"
980
+ }
981
+ ],
982
+ url: "/company-document/{id}",
983
+ ...options
984
+ });
985
+ };
986
+ var companyDocumentControllerGet = (options) => {
987
+ return (options.client ?? client).get({
988
+ security: [
989
+ {
990
+ scheme: "bearer",
991
+ type: "http"
992
+ }
993
+ ],
994
+ url: "/company-document/{id}",
995
+ ...options
996
+ });
997
+ };
998
+ var companyDocumentControllerUpdate = (options) => {
999
+ return (options.client ?? client).patch({
1000
+ security: [
1001
+ {
1002
+ scheme: "bearer",
1003
+ type: "http"
1004
+ }
1005
+ ],
1006
+ url: "/company-document/{id}",
1007
+ ...options,
1008
+ headers: {
1009
+ "Content-Type": "application/json",
1010
+ ...options?.headers
1011
+ }
1012
+ });
1013
+ };
1014
+ var companyDocumentControllerCreate = (options) => {
1015
+ return (options.client ?? client).post({
1016
+ security: [
1017
+ {
1018
+ scheme: "bearer",
1019
+ type: "http"
1020
+ }
1021
+ ],
1022
+ url: "/company-document",
1023
+ ...options,
1024
+ headers: {
1025
+ "Content-Type": "application/json",
1026
+ ...options?.headers
1027
+ }
1028
+ });
1029
+ };
1030
+ var customerControllerList = (options) => {
1031
+ return (options?.client ?? client).get({
1032
+ security: [
1033
+ {
1034
+ scheme: "bearer",
1035
+ type: "http"
1036
+ }
1037
+ ],
1038
+ url: "/customer/list",
1039
+ ...options
1040
+ });
1041
+ };
1042
+ var customerControllerDelete = (options) => {
1043
+ return (options.client ?? client).delete({
1044
+ security: [
1045
+ {
1046
+ scheme: "bearer",
1047
+ type: "http"
1048
+ }
1049
+ ],
1050
+ url: "/customer/{id}",
1051
+ ...options
1052
+ });
1053
+ };
1054
+ var customerControllerGet = (options) => {
1055
+ return (options.client ?? client).get({
1056
+ security: [
1057
+ {
1058
+ scheme: "bearer",
1059
+ type: "http"
1060
+ }
1061
+ ],
1062
+ url: "/customer/{id}",
1063
+ ...options
1064
+ });
1065
+ };
1066
+ var customerControllerUpdate = (options) => {
1067
+ return (options.client ?? client).patch({
1068
+ security: [
1069
+ {
1070
+ scheme: "bearer",
1071
+ type: "http"
1072
+ }
1073
+ ],
1074
+ url: "/customer/{id}",
1075
+ ...options,
1076
+ headers: {
1077
+ "Content-Type": "application/json",
1078
+ ...options?.headers
1079
+ }
1080
+ });
1081
+ };
1082
+ var customerControllerCreate = (options) => {
1083
+ return (options.client ?? client).post({
1084
+ security: [
1085
+ {
1086
+ scheme: "bearer",
1087
+ type: "http"
1088
+ }
1089
+ ],
1090
+ url: "/customer",
1091
+ ...options,
1092
+ headers: {
1093
+ "Content-Type": "application/json",
1094
+ ...options?.headers
1095
+ }
1096
+ });
1097
+ };
1098
+ var zoneControllerList = (options) => {
1099
+ return (options?.client ?? client).get({
1100
+ security: [
1101
+ {
1102
+ scheme: "bearer",
1103
+ type: "http"
1104
+ }
1105
+ ],
1106
+ url: "/zone/list",
1107
+ ...options
1108
+ });
1109
+ };
1110
+ var zoneControllerDelete = (options) => {
1111
+ return (options.client ?? client).delete({
1112
+ security: [
1113
+ {
1114
+ scheme: "bearer",
1115
+ type: "http"
1116
+ }
1117
+ ],
1118
+ url: "/zone/{id}",
1119
+ ...options
1120
+ });
1121
+ };
1122
+ var zoneControllerGet = (options) => {
1123
+ return (options.client ?? client).get({
1124
+ security: [
1125
+ {
1126
+ scheme: "bearer",
1127
+ type: "http"
1128
+ }
1129
+ ],
1130
+ url: "/zone/{id}",
1131
+ ...options
1132
+ });
1133
+ };
1134
+ var zoneControllerUpdate = (options) => {
1135
+ return (options.client ?? client).patch({
1136
+ security: [
1137
+ {
1138
+ scheme: "bearer",
1139
+ type: "http"
1140
+ }
1141
+ ],
1142
+ url: "/zone/{id}",
1143
+ ...options,
1144
+ headers: {
1145
+ "Content-Type": "application/json",
1146
+ ...options?.headers
1147
+ }
1148
+ });
1149
+ };
1150
+ var zoneControllerCreate = (options) => {
1151
+ return (options.client ?? client).post({
1152
+ security: [
1153
+ {
1154
+ scheme: "bearer",
1155
+ type: "http"
1156
+ }
1157
+ ],
1158
+ url: "/zone",
1159
+ ...options,
1160
+ headers: {
1161
+ "Content-Type": "application/json",
1162
+ ...options?.headers
1163
+ }
1164
+ });
1165
+ };
1166
+ var groupControllerList = (options) => {
1167
+ return (options?.client ?? client).get({
1168
+ security: [
1169
+ {
1170
+ scheme: "bearer",
1171
+ type: "http"
1172
+ }
1173
+ ],
1174
+ url: "/group/list",
1175
+ ...options
1176
+ });
1177
+ };
1178
+ var groupControllerDelete = (options) => {
1179
+ return (options.client ?? client).delete({
1180
+ security: [
1181
+ {
1182
+ scheme: "bearer",
1183
+ type: "http"
1184
+ }
1185
+ ],
1186
+ url: "/group/{id}",
1187
+ ...options
1188
+ });
1189
+ };
1190
+ var groupControllerGet = (options) => {
1191
+ return (options.client ?? client).get({
1192
+ security: [
1193
+ {
1194
+ scheme: "bearer",
1195
+ type: "http"
1196
+ }
1197
+ ],
1198
+ url: "/group/{id}",
1199
+ ...options
1200
+ });
1201
+ };
1202
+ var groupControllerUpdate = (options) => {
1203
+ return (options.client ?? client).patch({
1204
+ security: [
1205
+ {
1206
+ scheme: "bearer",
1207
+ type: "http"
1208
+ }
1209
+ ],
1210
+ url: "/group/{id}",
1211
+ ...options,
1212
+ headers: {
1213
+ "Content-Type": "application/json",
1214
+ ...options?.headers
1215
+ }
1216
+ });
1217
+ };
1218
+ var groupControllerCreate = (options) => {
1219
+ return (options.client ?? client).post({
1220
+ security: [
1221
+ {
1222
+ scheme: "bearer",
1223
+ type: "http"
1224
+ }
1225
+ ],
1226
+ url: "/group",
1227
+ ...options,
1228
+ headers: {
1229
+ "Content-Type": "application/json",
1230
+ ...options?.headers
1231
+ }
1232
+ });
1233
+ };
1234
+ var devicePublicControllerList = (options) => {
1235
+ return (options?.client ?? client).get({
1236
+ security: [
1237
+ {
1238
+ scheme: "bearer",
1239
+ type: "http"
1240
+ }
1241
+ ],
1242
+ url: "/device/list",
1243
+ ...options
1244
+ });
1245
+ };
1246
+ var devicePublicControllerGet = (options) => {
1247
+ return (options.client ?? client).get({
1248
+ security: [
1249
+ {
1250
+ scheme: "bearer",
1251
+ type: "http"
1252
+ }
1253
+ ],
1254
+ url: "/device/{id}",
1255
+ ...options
1256
+ });
1257
+ };
1258
+ var timesheetPublicControllerList = (options) => {
1259
+ return (options?.client ?? client).get({
1260
+ security: [
1261
+ {
1262
+ scheme: "bearer",
1263
+ type: "http"
1264
+ }
1265
+ ],
1266
+ url: "/timesheet/list",
1267
+ ...options
1268
+ });
1269
+ };
1270
+ var timesheetPublicControllerGet = (options) => {
1271
+ return (options.client ?? client).get({
1272
+ security: [
1273
+ {
1274
+ scheme: "bearer",
1275
+ type: "http"
1276
+ }
1277
+ ],
1278
+ url: "/timesheet/{id}",
1279
+ ...options
1280
+ });
1281
+ };
470
1282
  var siteControllerListSites = (options) => {
471
1283
  return (options?.client ?? client).get({
472
1284
  security: [
@@ -526,7 +1338,7 @@ var siteControllerUpdateSite = (options) => {
526
1338
 
527
1339
  // src/client.ts
528
1340
  var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
529
- var PACKAGE_VERSION = "0.3.2";
1341
+ var PACKAGE_VERSION = "0.4.0";
530
1342
  function unwrap(result) {
531
1343
  if (result.data === void 0) {
532
1344
  throw new WakataApiError({
@@ -684,12 +1496,107 @@ var WakataClient = class {
684
1496
  update: async (opts) => unwrap(await assetClassPropertyControllerUpdate({ ...opts, client: client2 })),
685
1497
  delete: async (opts) => unwrap(await assetClassPropertyControllerRemove({ ...opts, client: client2 }))
686
1498
  };
1499
+ const docResource = (fns) => ({
1500
+ list: async (opts) => unwrap(await fns.list({ ...opts ?? {}, client: client2 })),
1501
+ get: async (opts) => unwrap(await fns.get({ ...opts, client: client2 })),
1502
+ create: async (opts) => unwrap(await fns.create({ ...opts, client: client2 })),
1503
+ update: async (opts) => unwrap(await fns.update({ ...opts, client: client2 })),
1504
+ delete: async (opts) => unwrap(await fns.remove({ ...opts, client: client2 }))
1505
+ });
1506
+ this.documents = {
1507
+ uploadUrl: async (opts) => unwrap(await documentUploadControllerUploadUrl({ ...opts, client: client2 })),
1508
+ asset: docResource({
1509
+ list: assetDocumentControllerList,
1510
+ get: assetDocumentControllerGet,
1511
+ create: assetDocumentControllerCreate,
1512
+ update: assetDocumentControllerUpdate,
1513
+ remove: assetDocumentControllerRemove
1514
+ }),
1515
+ assetClass: docResource({
1516
+ list: assetClassDocumentControllerList,
1517
+ get: assetClassDocumentControllerGet,
1518
+ create: assetClassDocumentControllerCreate,
1519
+ update: assetClassDocumentControllerUpdate,
1520
+ remove: assetClassDocumentControllerRemove
1521
+ }),
1522
+ user: docResource({
1523
+ list: userDocumentControllerList,
1524
+ get: userDocumentControllerGet,
1525
+ create: userDocumentControllerCreate,
1526
+ update: userDocumentControllerUpdate,
1527
+ remove: userDocumentControllerRemove
1528
+ }),
1529
+ site: docResource({
1530
+ list: siteDocumentControllerList,
1531
+ get: siteDocumentControllerGet,
1532
+ create: siteDocumentControllerCreate,
1533
+ update: siteDocumentControllerUpdate,
1534
+ remove: siteDocumentControllerRemove
1535
+ }),
1536
+ customer: docResource({
1537
+ list: customerDocumentControllerList,
1538
+ get: customerDocumentControllerGet,
1539
+ create: customerDocumentControllerCreate,
1540
+ update: customerDocumentControllerUpdate,
1541
+ remove: customerDocumentControllerRemove
1542
+ }),
1543
+ project: docResource({
1544
+ list: projectDocumentControllerList,
1545
+ get: projectDocumentControllerGet,
1546
+ create: projectDocumentControllerCreate,
1547
+ update: projectDocumentControllerUpdate,
1548
+ remove: projectDocumentControllerRemove
1549
+ }),
1550
+ job: docResource({
1551
+ list: jobDocumentControllerList,
1552
+ get: jobDocumentControllerGet,
1553
+ create: jobDocumentControllerCreate,
1554
+ update: jobDocumentControllerUpdate,
1555
+ remove: jobDocumentControllerRemove
1556
+ }),
1557
+ company: docResource({
1558
+ list: companyDocumentControllerList,
1559
+ get: companyDocumentControllerGet,
1560
+ create: companyDocumentControllerCreate,
1561
+ update: companyDocumentControllerUpdate,
1562
+ remove: companyDocumentControllerRemove
1563
+ })
1564
+ };
1565
+ this.customers = {
1566
+ list: async (opts) => unwrap(await customerControllerList({ ...opts ?? {}, client: client2 })),
1567
+ get: async (opts) => unwrap(await customerControllerGet({ ...opts, client: client2 })),
1568
+ create: async (opts) => unwrap(await customerControllerCreate({ ...opts, client: client2 })),
1569
+ update: async (opts) => unwrap(await customerControllerUpdate({ ...opts, client: client2 })),
1570
+ delete: async (opts) => unwrap(await customerControllerDelete({ ...opts, client: client2 }))
1571
+ };
1572
+ this.zones = {
1573
+ list: async (opts) => unwrap(await zoneControllerList({ ...opts ?? {}, client: client2 })),
1574
+ get: async (opts) => unwrap(await zoneControllerGet({ ...opts, client: client2 })),
1575
+ create: async (opts) => unwrap(await zoneControllerCreate({ ...opts, client: client2 })),
1576
+ update: async (opts) => unwrap(await zoneControllerUpdate({ ...opts, client: client2 })),
1577
+ delete: async (opts) => unwrap(await zoneControllerDelete({ ...opts, client: client2 }))
1578
+ };
1579
+ this.groups = {
1580
+ list: async (opts) => unwrap(await groupControllerList({ ...opts ?? {}, client: client2 })),
1581
+ get: async (opts) => unwrap(await groupControllerGet({ ...opts, client: client2 })),
1582
+ create: async (opts) => unwrap(await groupControllerCreate({ ...opts, client: client2 })),
1583
+ update: async (opts) => unwrap(await groupControllerUpdate({ ...opts, client: client2 })),
1584
+ delete: async (opts) => unwrap(await groupControllerDelete({ ...opts, client: client2 }))
1585
+ };
1586
+ this.devices = {
1587
+ list: async (opts) => unwrap(await devicePublicControllerList({ ...opts ?? {}, client: client2 })),
1588
+ get: async (opts) => unwrap(await devicePublicControllerGet({ ...opts, client: client2 }))
1589
+ };
1590
+ this.timesheets = {
1591
+ list: async (opts) => unwrap(await timesheetPublicControllerList({ ...opts ?? {}, client: client2 })),
1592
+ get: async (opts) => unwrap(await timesheetPublicControllerGet({ ...opts, client: client2 }))
1593
+ };
687
1594
  }
688
1595
  };
689
1596
 
690
1597
  // src/index.ts
691
1598
  var PACKAGE_NAME = "@wakata-dev/api-client";
692
- var PACKAGE_VERSION2 = "0.3.2";
1599
+ var PACKAGE_VERSION2 = "0.3.3";
693
1600
  var DEFAULT_BASE_URL2 = "https://api.wakata.ai/api/v1";
694
1601
 
695
1602
  export { DEFAULT_BASE_URL2 as DEFAULT_BASE_URL, PACKAGE_NAME, PACKAGE_VERSION2 as PACKAGE_VERSION, WakataApiError, WakataAuthError, WakataClient, WakataConflictError, WakataNotFoundError, WakataPermissionError, WakataRateLimitError, WakataServerError, WakataValidationError, generateIdempotencyKey, mapApiError };