@owbase/node 1.0.1 → 2.0.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/README.md +1 -1
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +3 -3
- package/dist/client.mjs.map +1 -1
- package/dist/enums/databases-index-type.d.mts +2 -1
- package/dist/enums/databases-index-type.d.ts +2 -1
- package/dist/enums/databases-index-type.js +1 -0
- package/dist/enums/databases-index-type.js.map +1 -1
- package/dist/enums/databases-index-type.mjs +1 -0
- package/dist/enums/databases-index-type.mjs.map +1 -1
- package/dist/enums/project-policy-id.d.mts +1 -0
- package/dist/enums/project-policy-id.d.ts +1 -0
- package/dist/enums/project-policy-id.js +1 -0
- package/dist/enums/project-policy-id.js.map +1 -1
- package/dist/enums/project-policy-id.mjs +1 -0
- package/dist/enums/project-policy-id.mjs.map +1 -1
- package/dist/enums/tables-db-index-type.d.mts +2 -1
- package/dist/enums/tables-db-index-type.d.ts +2 -1
- package/dist/enums/tables-db-index-type.js +1 -0
- package/dist/enums/tables-db-index-type.js.map +1 -1
- package/dist/enums/tables-db-index-type.mjs +1 -0
- package/dist/enums/tables-db-index-type.mjs.map +1 -1
- package/dist/models.d.mts +236 -3
- package/dist/models.d.ts +236 -3
- package/dist/services/account.d.mts +32 -0
- package/dist/services/account.d.ts +32 -0
- package/dist/services/account.js +27 -0
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +27 -0
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/databases.d.mts +211 -47
- package/dist/services/databases.d.ts +211 -47
- package/dist/services/databases.js +301 -41
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +301 -41
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +30 -12
- package/dist/services/functions.d.ts +30 -12
- package/dist/services/functions.js +34 -4
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +34 -4
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/messaging.d.mts +56 -44
- package/dist/services/messaging.d.ts +56 -44
- package/dist/services/messaging.js +96 -76
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +96 -76
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/organization.d.mts +4 -1
- package/dist/services/organization.d.ts +4 -1
- package/dist/services/organization.js +6 -1
- package/dist/services/organization.js.map +1 -1
- package/dist/services/organization.mjs +6 -1
- package/dist/services/organization.mjs.map +1 -1
- package/dist/services/project.d.mts +115 -65
- package/dist/services/project.d.ts +115 -65
- package/dist/services/project.js +138 -77
- package/dist/services/project.js.map +1 -1
- package/dist/services/project.mjs +138 -77
- package/dist/services/project.mjs.map +1 -1
- package/dist/services/sites.d.mts +20 -8
- package/dist/services/sites.d.ts +20 -8
- package/dist/services/sites.js +24 -4
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs +24 -4
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +16 -4
- package/dist/services/storage.d.ts +16 -4
- package/dist/services/storage.js +22 -2
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +22 -2
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +210 -47
- package/dist/services/tables-db.d.ts +210 -47
- package/dist/services/tables-db.js +296 -41
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +296 -41
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +4 -1
- package/dist/services/teams.d.ts +4 -1
- package/dist/services/teams.js +6 -1
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +6 -1
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/webhooks.d.mts +16 -10
- package/dist/services/webhooks.d.ts +16 -10
- package/dist/services/webhooks.js +12 -2
- package/dist/services/webhooks.js.map +1 -1
- package/dist/services/webhooks.mjs +12 -2
- package/dist/services/webhooks.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -45,12 +45,14 @@ var Databases = class {
|
|
|
45
45
|
params = {
|
|
46
46
|
databaseId: paramsOrFirst,
|
|
47
47
|
name: rest[0],
|
|
48
|
-
enabled: rest[1]
|
|
48
|
+
enabled: rest[1],
|
|
49
|
+
description: rest[2]
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
const databaseId = params.databaseId;
|
|
52
53
|
const name = params.name;
|
|
53
54
|
const enabled = params.enabled;
|
|
55
|
+
const description = params.description;
|
|
54
56
|
if (typeof databaseId === "undefined") {
|
|
55
57
|
throw new OwbaseException(
|
|
56
58
|
'Missing required parameter: "databaseId"'
|
|
@@ -70,6 +72,9 @@ var Databases = class {
|
|
|
70
72
|
if (typeof enabled !== "undefined") {
|
|
71
73
|
apiPayload["enabled"] = enabled;
|
|
72
74
|
}
|
|
75
|
+
if (typeof description !== "undefined") {
|
|
76
|
+
apiPayload["description"] = description;
|
|
77
|
+
}
|
|
73
78
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
74
79
|
const apiHeaders = {
|
|
75
80
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -289,12 +294,14 @@ var Databases = class {
|
|
|
289
294
|
params = {
|
|
290
295
|
databaseId: paramsOrFirst,
|
|
291
296
|
name: rest[0],
|
|
292
|
-
enabled: rest[1]
|
|
297
|
+
enabled: rest[1],
|
|
298
|
+
description: rest[2]
|
|
293
299
|
};
|
|
294
300
|
}
|
|
295
301
|
const databaseId = params.databaseId;
|
|
296
302
|
const name = params.name;
|
|
297
303
|
const enabled = params.enabled;
|
|
304
|
+
const description = params.description;
|
|
298
305
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
299
306
|
throw new OwbaseException(
|
|
300
307
|
'Missing required parameter: "databaseId"'
|
|
@@ -311,6 +318,9 @@ var Databases = class {
|
|
|
311
318
|
if (typeof enabled !== "undefined") {
|
|
312
319
|
apiPayload["enabled"] = enabled;
|
|
313
320
|
}
|
|
321
|
+
if (typeof description !== "undefined") {
|
|
322
|
+
apiPayload["description"] = description;
|
|
323
|
+
}
|
|
314
324
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
315
325
|
const apiHeaders = {
|
|
316
326
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -402,7 +412,8 @@ var Databases = class {
|
|
|
402
412
|
documentSecurity: rest[3],
|
|
403
413
|
enabled: rest[4],
|
|
404
414
|
attributes: rest[5],
|
|
405
|
-
indexes: rest[6]
|
|
415
|
+
indexes: rest[6],
|
|
416
|
+
description: rest[7]
|
|
406
417
|
};
|
|
407
418
|
}
|
|
408
419
|
const databaseId = params.databaseId;
|
|
@@ -413,6 +424,7 @@ var Databases = class {
|
|
|
413
424
|
const enabled = params.enabled;
|
|
414
425
|
const attributes = params.attributes;
|
|
415
426
|
const indexes = params.indexes;
|
|
427
|
+
const description = params.description;
|
|
416
428
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
417
429
|
throw new OwbaseException(
|
|
418
430
|
'Missing required parameter: "databaseId"'
|
|
@@ -452,6 +464,9 @@ var Databases = class {
|
|
|
452
464
|
if (typeof indexes !== "undefined") {
|
|
453
465
|
apiPayload["indexes"] = indexes;
|
|
454
466
|
}
|
|
467
|
+
if (typeof description !== "undefined") {
|
|
468
|
+
apiPayload["description"] = description;
|
|
469
|
+
}
|
|
455
470
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
456
471
|
const apiHeaders = {
|
|
457
472
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -506,7 +521,8 @@ var Databases = class {
|
|
|
506
521
|
permissions: rest[2],
|
|
507
522
|
documentSecurity: rest[3],
|
|
508
523
|
enabled: rest[4],
|
|
509
|
-
purge: rest[5]
|
|
524
|
+
purge: rest[5],
|
|
525
|
+
description: rest[6]
|
|
510
526
|
};
|
|
511
527
|
}
|
|
512
528
|
const databaseId = params.databaseId;
|
|
@@ -516,6 +532,7 @@ var Databases = class {
|
|
|
516
532
|
const documentSecurity = params.documentSecurity;
|
|
517
533
|
const enabled = params.enabled;
|
|
518
534
|
const purge = params.purge;
|
|
535
|
+
const description = params.description;
|
|
519
536
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
520
537
|
throw new OwbaseException(
|
|
521
538
|
'Missing required parameter: "databaseId"'
|
|
@@ -546,6 +563,9 @@ var Databases = class {
|
|
|
546
563
|
if (typeof purge !== "undefined") {
|
|
547
564
|
apiPayload["purge"] = purge;
|
|
548
565
|
}
|
|
566
|
+
if (typeof description !== "undefined") {
|
|
567
|
+
apiPayload["description"] = description;
|
|
568
|
+
}
|
|
549
569
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
550
570
|
const apiHeaders = {
|
|
551
571
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -646,7 +666,8 @@ var Databases = class {
|
|
|
646
666
|
min: rest[3],
|
|
647
667
|
max: rest[4],
|
|
648
668
|
xdefault: rest[5],
|
|
649
|
-
array: rest[6]
|
|
669
|
+
array: rest[6],
|
|
670
|
+
description: rest[7]
|
|
650
671
|
};
|
|
651
672
|
}
|
|
652
673
|
const databaseId = params.databaseId;
|
|
@@ -657,6 +678,7 @@ var Databases = class {
|
|
|
657
678
|
const max = params.max;
|
|
658
679
|
const xdefault = params.xdefault;
|
|
659
680
|
const array = params.array;
|
|
681
|
+
const description = params.description;
|
|
660
682
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
661
683
|
throw new OwbaseException(
|
|
662
684
|
'Missing required parameter: "databaseId"'
|
|
@@ -696,6 +718,9 @@ var Databases = class {
|
|
|
696
718
|
if (typeof array !== "undefined") {
|
|
697
719
|
apiPayload["array"] = array;
|
|
698
720
|
}
|
|
721
|
+
if (typeof description !== "undefined") {
|
|
722
|
+
apiPayload["description"] = description;
|
|
723
|
+
}
|
|
699
724
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
700
725
|
const apiHeaders = {
|
|
701
726
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -717,7 +742,8 @@ var Databases = class {
|
|
|
717
742
|
xdefault: rest[3],
|
|
718
743
|
min: rest[4],
|
|
719
744
|
max: rest[5],
|
|
720
|
-
newKey: rest[6]
|
|
745
|
+
newKey: rest[6],
|
|
746
|
+
description: rest[7]
|
|
721
747
|
};
|
|
722
748
|
}
|
|
723
749
|
const databaseId = params.databaseId;
|
|
@@ -728,6 +754,7 @@ var Databases = class {
|
|
|
728
754
|
const min = params.min;
|
|
729
755
|
const max = params.max;
|
|
730
756
|
const newKey = params.newKey;
|
|
757
|
+
const description = params.description;
|
|
731
758
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
732
759
|
throw new OwbaseException(
|
|
733
760
|
'Missing required parameter: "databaseId"'
|
|
@@ -767,6 +794,9 @@ var Databases = class {
|
|
|
767
794
|
if (typeof newKey !== "undefined") {
|
|
768
795
|
apiPayload["newKey"] = newKey;
|
|
769
796
|
}
|
|
797
|
+
if (typeof description !== "undefined") {
|
|
798
|
+
apiPayload["description"] = description;
|
|
799
|
+
}
|
|
770
800
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
771
801
|
const apiHeaders = {
|
|
772
802
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -786,7 +816,8 @@ var Databases = class {
|
|
|
786
816
|
key: rest[1],
|
|
787
817
|
required: rest[2],
|
|
788
818
|
xdefault: rest[3],
|
|
789
|
-
array: rest[4]
|
|
819
|
+
array: rest[4],
|
|
820
|
+
description: rest[5]
|
|
790
821
|
};
|
|
791
822
|
}
|
|
792
823
|
const databaseId = params.databaseId;
|
|
@@ -795,6 +826,7 @@ var Databases = class {
|
|
|
795
826
|
const required = params.required;
|
|
796
827
|
const xdefault = params.xdefault;
|
|
797
828
|
const array = params.array;
|
|
829
|
+
const description = params.description;
|
|
798
830
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
799
831
|
throw new OwbaseException(
|
|
800
832
|
'Missing required parameter: "databaseId"'
|
|
@@ -828,6 +860,9 @@ var Databases = class {
|
|
|
828
860
|
if (typeof array !== "undefined") {
|
|
829
861
|
apiPayload["array"] = array;
|
|
830
862
|
}
|
|
863
|
+
if (typeof description !== "undefined") {
|
|
864
|
+
apiPayload["description"] = description;
|
|
865
|
+
}
|
|
831
866
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
832
867
|
const apiHeaders = {
|
|
833
868
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -847,7 +882,8 @@ var Databases = class {
|
|
|
847
882
|
key: rest[1],
|
|
848
883
|
required: rest[2],
|
|
849
884
|
xdefault: rest[3],
|
|
850
|
-
newKey: rest[4]
|
|
885
|
+
newKey: rest[4],
|
|
886
|
+
description: rest[5]
|
|
851
887
|
};
|
|
852
888
|
}
|
|
853
889
|
const databaseId = params.databaseId;
|
|
@@ -856,6 +892,7 @@ var Databases = class {
|
|
|
856
892
|
const required = params.required;
|
|
857
893
|
const xdefault = params.xdefault;
|
|
858
894
|
const newKey = params.newKey;
|
|
895
|
+
const description = params.description;
|
|
859
896
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
860
897
|
throw new OwbaseException(
|
|
861
898
|
'Missing required parameter: "databaseId"'
|
|
@@ -889,6 +926,9 @@ var Databases = class {
|
|
|
889
926
|
if (typeof newKey !== "undefined") {
|
|
890
927
|
apiPayload["newKey"] = newKey;
|
|
891
928
|
}
|
|
929
|
+
if (typeof description !== "undefined") {
|
|
930
|
+
apiPayload["description"] = description;
|
|
931
|
+
}
|
|
892
932
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
893
933
|
const apiHeaders = {
|
|
894
934
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -908,7 +948,8 @@ var Databases = class {
|
|
|
908
948
|
key: rest[1],
|
|
909
949
|
required: rest[2],
|
|
910
950
|
xdefault: rest[3],
|
|
911
|
-
array: rest[4]
|
|
951
|
+
array: rest[4],
|
|
952
|
+
description: rest[5]
|
|
912
953
|
};
|
|
913
954
|
}
|
|
914
955
|
const databaseId = params.databaseId;
|
|
@@ -917,6 +958,7 @@ var Databases = class {
|
|
|
917
958
|
const required = params.required;
|
|
918
959
|
const xdefault = params.xdefault;
|
|
919
960
|
const array = params.array;
|
|
961
|
+
const description = params.description;
|
|
920
962
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
921
963
|
throw new OwbaseException(
|
|
922
964
|
'Missing required parameter: "databaseId"'
|
|
@@ -950,6 +992,9 @@ var Databases = class {
|
|
|
950
992
|
if (typeof array !== "undefined") {
|
|
951
993
|
apiPayload["array"] = array;
|
|
952
994
|
}
|
|
995
|
+
if (typeof description !== "undefined") {
|
|
996
|
+
apiPayload["description"] = description;
|
|
997
|
+
}
|
|
953
998
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
954
999
|
const apiHeaders = {
|
|
955
1000
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -969,7 +1014,8 @@ var Databases = class {
|
|
|
969
1014
|
key: rest[1],
|
|
970
1015
|
required: rest[2],
|
|
971
1016
|
xdefault: rest[3],
|
|
972
|
-
newKey: rest[4]
|
|
1017
|
+
newKey: rest[4],
|
|
1018
|
+
description: rest[5]
|
|
973
1019
|
};
|
|
974
1020
|
}
|
|
975
1021
|
const databaseId = params.databaseId;
|
|
@@ -978,6 +1024,7 @@ var Databases = class {
|
|
|
978
1024
|
const required = params.required;
|
|
979
1025
|
const xdefault = params.xdefault;
|
|
980
1026
|
const newKey = params.newKey;
|
|
1027
|
+
const description = params.description;
|
|
981
1028
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
982
1029
|
throw new OwbaseException(
|
|
983
1030
|
'Missing required parameter: "databaseId"'
|
|
@@ -1011,6 +1058,9 @@ var Databases = class {
|
|
|
1011
1058
|
if (typeof newKey !== "undefined") {
|
|
1012
1059
|
apiPayload["newKey"] = newKey;
|
|
1013
1060
|
}
|
|
1061
|
+
if (typeof description !== "undefined") {
|
|
1062
|
+
apiPayload["description"] = description;
|
|
1063
|
+
}
|
|
1014
1064
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1015
1065
|
const apiHeaders = {
|
|
1016
1066
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1030,7 +1080,8 @@ var Databases = class {
|
|
|
1030
1080
|
key: rest[1],
|
|
1031
1081
|
required: rest[2],
|
|
1032
1082
|
xdefault: rest[3],
|
|
1033
|
-
array: rest[4]
|
|
1083
|
+
array: rest[4],
|
|
1084
|
+
description: rest[5]
|
|
1034
1085
|
};
|
|
1035
1086
|
}
|
|
1036
1087
|
const databaseId = params.databaseId;
|
|
@@ -1039,6 +1090,7 @@ var Databases = class {
|
|
|
1039
1090
|
const required = params.required;
|
|
1040
1091
|
const xdefault = params.xdefault;
|
|
1041
1092
|
const array = params.array;
|
|
1093
|
+
const description = params.description;
|
|
1042
1094
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1043
1095
|
throw new OwbaseException(
|
|
1044
1096
|
'Missing required parameter: "databaseId"'
|
|
@@ -1072,6 +1124,9 @@ var Databases = class {
|
|
|
1072
1124
|
if (typeof array !== "undefined") {
|
|
1073
1125
|
apiPayload["array"] = array;
|
|
1074
1126
|
}
|
|
1127
|
+
if (typeof description !== "undefined") {
|
|
1128
|
+
apiPayload["description"] = description;
|
|
1129
|
+
}
|
|
1075
1130
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1076
1131
|
const apiHeaders = {
|
|
1077
1132
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1091,7 +1146,8 @@ var Databases = class {
|
|
|
1091
1146
|
key: rest[1],
|
|
1092
1147
|
required: rest[2],
|
|
1093
1148
|
xdefault: rest[3],
|
|
1094
|
-
newKey: rest[4]
|
|
1149
|
+
newKey: rest[4],
|
|
1150
|
+
description: rest[5]
|
|
1095
1151
|
};
|
|
1096
1152
|
}
|
|
1097
1153
|
const databaseId = params.databaseId;
|
|
@@ -1100,6 +1156,7 @@ var Databases = class {
|
|
|
1100
1156
|
const required = params.required;
|
|
1101
1157
|
const xdefault = params.xdefault;
|
|
1102
1158
|
const newKey = params.newKey;
|
|
1159
|
+
const description = params.description;
|
|
1103
1160
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1104
1161
|
throw new OwbaseException(
|
|
1105
1162
|
'Missing required parameter: "databaseId"'
|
|
@@ -1133,6 +1190,9 @@ var Databases = class {
|
|
|
1133
1190
|
if (typeof newKey !== "undefined") {
|
|
1134
1191
|
apiPayload["newKey"] = newKey;
|
|
1135
1192
|
}
|
|
1193
|
+
if (typeof description !== "undefined") {
|
|
1194
|
+
apiPayload["description"] = description;
|
|
1195
|
+
}
|
|
1136
1196
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1137
1197
|
const apiHeaders = {
|
|
1138
1198
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1153,7 +1213,8 @@ var Databases = class {
|
|
|
1153
1213
|
elements: rest[2],
|
|
1154
1214
|
required: rest[3],
|
|
1155
1215
|
xdefault: rest[4],
|
|
1156
|
-
array: rest[5]
|
|
1216
|
+
array: rest[5],
|
|
1217
|
+
description: rest[6]
|
|
1157
1218
|
};
|
|
1158
1219
|
}
|
|
1159
1220
|
const databaseId = params.databaseId;
|
|
@@ -1163,6 +1224,7 @@ var Databases = class {
|
|
|
1163
1224
|
const required = params.required;
|
|
1164
1225
|
const xdefault = params.xdefault;
|
|
1165
1226
|
const array = params.array;
|
|
1227
|
+
const description = params.description;
|
|
1166
1228
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1167
1229
|
throw new OwbaseException(
|
|
1168
1230
|
'Missing required parameter: "databaseId"'
|
|
@@ -1202,6 +1264,9 @@ var Databases = class {
|
|
|
1202
1264
|
if (typeof array !== "undefined") {
|
|
1203
1265
|
apiPayload["array"] = array;
|
|
1204
1266
|
}
|
|
1267
|
+
if (typeof description !== "undefined") {
|
|
1268
|
+
apiPayload["description"] = description;
|
|
1269
|
+
}
|
|
1205
1270
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1206
1271
|
const apiHeaders = {
|
|
1207
1272
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1222,7 +1287,8 @@ var Databases = class {
|
|
|
1222
1287
|
elements: rest[2],
|
|
1223
1288
|
required: rest[3],
|
|
1224
1289
|
xdefault: rest[4],
|
|
1225
|
-
newKey: rest[5]
|
|
1290
|
+
newKey: rest[5],
|
|
1291
|
+
description: rest[6]
|
|
1226
1292
|
};
|
|
1227
1293
|
}
|
|
1228
1294
|
const databaseId = params.databaseId;
|
|
@@ -1232,6 +1298,7 @@ var Databases = class {
|
|
|
1232
1298
|
const required = params.required;
|
|
1233
1299
|
const xdefault = params.xdefault;
|
|
1234
1300
|
const newKey = params.newKey;
|
|
1301
|
+
const description = params.description;
|
|
1235
1302
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1236
1303
|
throw new OwbaseException(
|
|
1237
1304
|
'Missing required parameter: "databaseId"'
|
|
@@ -1271,6 +1338,9 @@ var Databases = class {
|
|
|
1271
1338
|
if (typeof newKey !== "undefined") {
|
|
1272
1339
|
apiPayload["newKey"] = newKey;
|
|
1273
1340
|
}
|
|
1341
|
+
if (typeof description !== "undefined") {
|
|
1342
|
+
apiPayload["description"] = description;
|
|
1343
|
+
}
|
|
1274
1344
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1275
1345
|
const apiHeaders = {
|
|
1276
1346
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1292,7 +1362,8 @@ var Databases = class {
|
|
|
1292
1362
|
min: rest[3],
|
|
1293
1363
|
max: rest[4],
|
|
1294
1364
|
xdefault: rest[5],
|
|
1295
|
-
array: rest[6]
|
|
1365
|
+
array: rest[6],
|
|
1366
|
+
description: rest[7]
|
|
1296
1367
|
};
|
|
1297
1368
|
}
|
|
1298
1369
|
const databaseId = params.databaseId;
|
|
@@ -1303,6 +1374,7 @@ var Databases = class {
|
|
|
1303
1374
|
const max = params.max;
|
|
1304
1375
|
const xdefault = params.xdefault;
|
|
1305
1376
|
const array = params.array;
|
|
1377
|
+
const description = params.description;
|
|
1306
1378
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1307
1379
|
throw new OwbaseException(
|
|
1308
1380
|
'Missing required parameter: "databaseId"'
|
|
@@ -1342,6 +1414,9 @@ var Databases = class {
|
|
|
1342
1414
|
if (typeof array !== "undefined") {
|
|
1343
1415
|
apiPayload["array"] = array;
|
|
1344
1416
|
}
|
|
1417
|
+
if (typeof description !== "undefined") {
|
|
1418
|
+
apiPayload["description"] = description;
|
|
1419
|
+
}
|
|
1345
1420
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1346
1421
|
const apiHeaders = {
|
|
1347
1422
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1363,7 +1438,8 @@ var Databases = class {
|
|
|
1363
1438
|
xdefault: rest[3],
|
|
1364
1439
|
min: rest[4],
|
|
1365
1440
|
max: rest[5],
|
|
1366
|
-
newKey: rest[6]
|
|
1441
|
+
newKey: rest[6],
|
|
1442
|
+
description: rest[7]
|
|
1367
1443
|
};
|
|
1368
1444
|
}
|
|
1369
1445
|
const databaseId = params.databaseId;
|
|
@@ -1374,6 +1450,7 @@ var Databases = class {
|
|
|
1374
1450
|
const min = params.min;
|
|
1375
1451
|
const max = params.max;
|
|
1376
1452
|
const newKey = params.newKey;
|
|
1453
|
+
const description = params.description;
|
|
1377
1454
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1378
1455
|
throw new OwbaseException(
|
|
1379
1456
|
'Missing required parameter: "databaseId"'
|
|
@@ -1413,6 +1490,9 @@ var Databases = class {
|
|
|
1413
1490
|
if (typeof newKey !== "undefined") {
|
|
1414
1491
|
apiPayload["newKey"] = newKey;
|
|
1415
1492
|
}
|
|
1493
|
+
if (typeof description !== "undefined") {
|
|
1494
|
+
apiPayload["description"] = description;
|
|
1495
|
+
}
|
|
1416
1496
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1417
1497
|
const apiHeaders = {
|
|
1418
1498
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1434,7 +1514,8 @@ var Databases = class {
|
|
|
1434
1514
|
min: rest[3],
|
|
1435
1515
|
max: rest[4],
|
|
1436
1516
|
xdefault: rest[5],
|
|
1437
|
-
array: rest[6]
|
|
1517
|
+
array: rest[6],
|
|
1518
|
+
description: rest[7]
|
|
1438
1519
|
};
|
|
1439
1520
|
}
|
|
1440
1521
|
const databaseId = params.databaseId;
|
|
@@ -1445,6 +1526,7 @@ var Databases = class {
|
|
|
1445
1526
|
const max = params.max;
|
|
1446
1527
|
const xdefault = params.xdefault;
|
|
1447
1528
|
const array = params.array;
|
|
1529
|
+
const description = params.description;
|
|
1448
1530
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1449
1531
|
throw new OwbaseException(
|
|
1450
1532
|
'Missing required parameter: "databaseId"'
|
|
@@ -1484,6 +1566,9 @@ var Databases = class {
|
|
|
1484
1566
|
if (typeof array !== "undefined") {
|
|
1485
1567
|
apiPayload["array"] = array;
|
|
1486
1568
|
}
|
|
1569
|
+
if (typeof description !== "undefined") {
|
|
1570
|
+
apiPayload["description"] = description;
|
|
1571
|
+
}
|
|
1487
1572
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1488
1573
|
const apiHeaders = {
|
|
1489
1574
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1505,7 +1590,8 @@ var Databases = class {
|
|
|
1505
1590
|
xdefault: rest[3],
|
|
1506
1591
|
min: rest[4],
|
|
1507
1592
|
max: rest[5],
|
|
1508
|
-
newKey: rest[6]
|
|
1593
|
+
newKey: rest[6],
|
|
1594
|
+
description: rest[7]
|
|
1509
1595
|
};
|
|
1510
1596
|
}
|
|
1511
1597
|
const databaseId = params.databaseId;
|
|
@@ -1516,6 +1602,7 @@ var Databases = class {
|
|
|
1516
1602
|
const min = params.min;
|
|
1517
1603
|
const max = params.max;
|
|
1518
1604
|
const newKey = params.newKey;
|
|
1605
|
+
const description = params.description;
|
|
1519
1606
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1520
1607
|
throw new OwbaseException(
|
|
1521
1608
|
'Missing required parameter: "databaseId"'
|
|
@@ -1555,6 +1642,9 @@ var Databases = class {
|
|
|
1555
1642
|
if (typeof newKey !== "undefined") {
|
|
1556
1643
|
apiPayload["newKey"] = newKey;
|
|
1557
1644
|
}
|
|
1645
|
+
if (typeof description !== "undefined") {
|
|
1646
|
+
apiPayload["description"] = description;
|
|
1647
|
+
}
|
|
1558
1648
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1559
1649
|
const apiHeaders = {
|
|
1560
1650
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1574,7 +1664,8 @@ var Databases = class {
|
|
|
1574
1664
|
key: rest[1],
|
|
1575
1665
|
required: rest[2],
|
|
1576
1666
|
xdefault: rest[3],
|
|
1577
|
-
array: rest[4]
|
|
1667
|
+
array: rest[4],
|
|
1668
|
+
description: rest[5]
|
|
1578
1669
|
};
|
|
1579
1670
|
}
|
|
1580
1671
|
const databaseId = params.databaseId;
|
|
@@ -1583,6 +1674,7 @@ var Databases = class {
|
|
|
1583
1674
|
const required = params.required;
|
|
1584
1675
|
const xdefault = params.xdefault;
|
|
1585
1676
|
const array = params.array;
|
|
1677
|
+
const description = params.description;
|
|
1586
1678
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1587
1679
|
throw new OwbaseException(
|
|
1588
1680
|
'Missing required parameter: "databaseId"'
|
|
@@ -1616,6 +1708,9 @@ var Databases = class {
|
|
|
1616
1708
|
if (typeof array !== "undefined") {
|
|
1617
1709
|
apiPayload["array"] = array;
|
|
1618
1710
|
}
|
|
1711
|
+
if (typeof description !== "undefined") {
|
|
1712
|
+
apiPayload["description"] = description;
|
|
1713
|
+
}
|
|
1619
1714
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1620
1715
|
const apiHeaders = {
|
|
1621
1716
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1635,7 +1730,8 @@ var Databases = class {
|
|
|
1635
1730
|
key: rest[1],
|
|
1636
1731
|
required: rest[2],
|
|
1637
1732
|
xdefault: rest[3],
|
|
1638
|
-
newKey: rest[4]
|
|
1733
|
+
newKey: rest[4],
|
|
1734
|
+
description: rest[5]
|
|
1639
1735
|
};
|
|
1640
1736
|
}
|
|
1641
1737
|
const databaseId = params.databaseId;
|
|
@@ -1644,6 +1740,7 @@ var Databases = class {
|
|
|
1644
1740
|
const required = params.required;
|
|
1645
1741
|
const xdefault = params.xdefault;
|
|
1646
1742
|
const newKey = params.newKey;
|
|
1743
|
+
const description = params.description;
|
|
1647
1744
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1648
1745
|
throw new OwbaseException(
|
|
1649
1746
|
'Missing required parameter: "databaseId"'
|
|
@@ -1677,6 +1774,9 @@ var Databases = class {
|
|
|
1677
1774
|
if (typeof newKey !== "undefined") {
|
|
1678
1775
|
apiPayload["newKey"] = newKey;
|
|
1679
1776
|
}
|
|
1777
|
+
if (typeof description !== "undefined") {
|
|
1778
|
+
apiPayload["description"] = description;
|
|
1779
|
+
}
|
|
1680
1780
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1681
1781
|
const apiHeaders = {
|
|
1682
1782
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1695,7 +1795,8 @@ var Databases = class {
|
|
|
1695
1795
|
collectionId: rest[0],
|
|
1696
1796
|
key: rest[1],
|
|
1697
1797
|
required: rest[2],
|
|
1698
|
-
xdefault: rest[3]
|
|
1798
|
+
xdefault: rest[3],
|
|
1799
|
+
description: rest[4]
|
|
1699
1800
|
};
|
|
1700
1801
|
}
|
|
1701
1802
|
const databaseId = params.databaseId;
|
|
@@ -1703,6 +1804,7 @@ var Databases = class {
|
|
|
1703
1804
|
const key = params.key;
|
|
1704
1805
|
const required = params.required;
|
|
1705
1806
|
const xdefault = params.xdefault;
|
|
1807
|
+
const description = params.description;
|
|
1706
1808
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1707
1809
|
throw new OwbaseException(
|
|
1708
1810
|
'Missing required parameter: "databaseId"'
|
|
@@ -1733,6 +1835,9 @@ var Databases = class {
|
|
|
1733
1835
|
if (typeof xdefault !== "undefined") {
|
|
1734
1836
|
apiPayload["default"] = xdefault;
|
|
1735
1837
|
}
|
|
1838
|
+
if (typeof description !== "undefined") {
|
|
1839
|
+
apiPayload["description"] = description;
|
|
1840
|
+
}
|
|
1736
1841
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1737
1842
|
const apiHeaders = {
|
|
1738
1843
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1752,7 +1857,8 @@ var Databases = class {
|
|
|
1752
1857
|
key: rest[1],
|
|
1753
1858
|
required: rest[2],
|
|
1754
1859
|
xdefault: rest[3],
|
|
1755
|
-
newKey: rest[4]
|
|
1860
|
+
newKey: rest[4],
|
|
1861
|
+
description: rest[5]
|
|
1756
1862
|
};
|
|
1757
1863
|
}
|
|
1758
1864
|
const databaseId = params.databaseId;
|
|
@@ -1761,6 +1867,7 @@ var Databases = class {
|
|
|
1761
1867
|
const required = params.required;
|
|
1762
1868
|
const xdefault = params.xdefault;
|
|
1763
1869
|
const newKey = params.newKey;
|
|
1870
|
+
const description = params.description;
|
|
1764
1871
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1765
1872
|
throw new OwbaseException(
|
|
1766
1873
|
'Missing required parameter: "databaseId"'
|
|
@@ -1791,6 +1898,9 @@ var Databases = class {
|
|
|
1791
1898
|
if (typeof newKey !== "undefined") {
|
|
1792
1899
|
apiPayload["newKey"] = newKey;
|
|
1793
1900
|
}
|
|
1901
|
+
if (typeof description !== "undefined") {
|
|
1902
|
+
apiPayload["description"] = description;
|
|
1903
|
+
}
|
|
1794
1904
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1795
1905
|
const apiHeaders = {
|
|
1796
1906
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1811,7 +1921,8 @@ var Databases = class {
|
|
|
1811
1921
|
required: rest[2],
|
|
1812
1922
|
xdefault: rest[3],
|
|
1813
1923
|
array: rest[4],
|
|
1814
|
-
encrypt: rest[5]
|
|
1924
|
+
encrypt: rest[5],
|
|
1925
|
+
description: rest[6]
|
|
1815
1926
|
};
|
|
1816
1927
|
}
|
|
1817
1928
|
const databaseId = params.databaseId;
|
|
@@ -1821,6 +1932,7 @@ var Databases = class {
|
|
|
1821
1932
|
const xdefault = params.xdefault;
|
|
1822
1933
|
const array = params.array;
|
|
1823
1934
|
const encrypt = params.encrypt;
|
|
1935
|
+
const description = params.description;
|
|
1824
1936
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1825
1937
|
throw new OwbaseException(
|
|
1826
1938
|
'Missing required parameter: "databaseId"'
|
|
@@ -1857,6 +1969,9 @@ var Databases = class {
|
|
|
1857
1969
|
if (typeof encrypt !== "undefined") {
|
|
1858
1970
|
apiPayload["encrypt"] = encrypt;
|
|
1859
1971
|
}
|
|
1972
|
+
if (typeof description !== "undefined") {
|
|
1973
|
+
apiPayload["description"] = description;
|
|
1974
|
+
}
|
|
1860
1975
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1861
1976
|
const apiHeaders = {
|
|
1862
1977
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1876,7 +1991,8 @@ var Databases = class {
|
|
|
1876
1991
|
key: rest[1],
|
|
1877
1992
|
required: rest[2],
|
|
1878
1993
|
xdefault: rest[3],
|
|
1879
|
-
newKey: rest[4]
|
|
1994
|
+
newKey: rest[4],
|
|
1995
|
+
description: rest[5]
|
|
1880
1996
|
};
|
|
1881
1997
|
}
|
|
1882
1998
|
const databaseId = params.databaseId;
|
|
@@ -1885,6 +2001,7 @@ var Databases = class {
|
|
|
1885
2001
|
const required = params.required;
|
|
1886
2002
|
const xdefault = params.xdefault;
|
|
1887
2003
|
const newKey = params.newKey;
|
|
2004
|
+
const description = params.description;
|
|
1888
2005
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1889
2006
|
throw new OwbaseException(
|
|
1890
2007
|
'Missing required parameter: "databaseId"'
|
|
@@ -1918,6 +2035,9 @@ var Databases = class {
|
|
|
1918
2035
|
if (typeof newKey !== "undefined") {
|
|
1919
2036
|
apiPayload["newKey"] = newKey;
|
|
1920
2037
|
}
|
|
2038
|
+
if (typeof description !== "undefined") {
|
|
2039
|
+
apiPayload["description"] = description;
|
|
2040
|
+
}
|
|
1921
2041
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1922
2042
|
const apiHeaders = {
|
|
1923
2043
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -1938,7 +2058,8 @@ var Databases = class {
|
|
|
1938
2058
|
required: rest[2],
|
|
1939
2059
|
xdefault: rest[3],
|
|
1940
2060
|
array: rest[4],
|
|
1941
|
-
encrypt: rest[5]
|
|
2061
|
+
encrypt: rest[5],
|
|
2062
|
+
description: rest[6]
|
|
1942
2063
|
};
|
|
1943
2064
|
}
|
|
1944
2065
|
const databaseId = params.databaseId;
|
|
@@ -1948,6 +2069,7 @@ var Databases = class {
|
|
|
1948
2069
|
const xdefault = params.xdefault;
|
|
1949
2070
|
const array = params.array;
|
|
1950
2071
|
const encrypt = params.encrypt;
|
|
2072
|
+
const description = params.description;
|
|
1951
2073
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
1952
2074
|
throw new OwbaseException(
|
|
1953
2075
|
'Missing required parameter: "databaseId"'
|
|
@@ -1984,6 +2106,9 @@ var Databases = class {
|
|
|
1984
2106
|
if (typeof encrypt !== "undefined") {
|
|
1985
2107
|
apiPayload["encrypt"] = encrypt;
|
|
1986
2108
|
}
|
|
2109
|
+
if (typeof description !== "undefined") {
|
|
2110
|
+
apiPayload["description"] = description;
|
|
2111
|
+
}
|
|
1987
2112
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1988
2113
|
const apiHeaders = {
|
|
1989
2114
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2003,7 +2128,8 @@ var Databases = class {
|
|
|
2003
2128
|
key: rest[1],
|
|
2004
2129
|
required: rest[2],
|
|
2005
2130
|
xdefault: rest[3],
|
|
2006
|
-
newKey: rest[4]
|
|
2131
|
+
newKey: rest[4],
|
|
2132
|
+
description: rest[5]
|
|
2007
2133
|
};
|
|
2008
2134
|
}
|
|
2009
2135
|
const databaseId = params.databaseId;
|
|
@@ -2012,6 +2138,7 @@ var Databases = class {
|
|
|
2012
2138
|
const required = params.required;
|
|
2013
2139
|
const xdefault = params.xdefault;
|
|
2014
2140
|
const newKey = params.newKey;
|
|
2141
|
+
const description = params.description;
|
|
2015
2142
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2016
2143
|
throw new OwbaseException(
|
|
2017
2144
|
'Missing required parameter: "databaseId"'
|
|
@@ -2045,6 +2172,9 @@ var Databases = class {
|
|
|
2045
2172
|
if (typeof newKey !== "undefined") {
|
|
2046
2173
|
apiPayload["newKey"] = newKey;
|
|
2047
2174
|
}
|
|
2175
|
+
if (typeof description !== "undefined") {
|
|
2176
|
+
apiPayload["description"] = description;
|
|
2177
|
+
}
|
|
2048
2178
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2049
2179
|
const apiHeaders = {
|
|
2050
2180
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2063,7 +2193,8 @@ var Databases = class {
|
|
|
2063
2193
|
collectionId: rest[0],
|
|
2064
2194
|
key: rest[1],
|
|
2065
2195
|
required: rest[2],
|
|
2066
|
-
xdefault: rest[3]
|
|
2196
|
+
xdefault: rest[3],
|
|
2197
|
+
description: rest[4]
|
|
2067
2198
|
};
|
|
2068
2199
|
}
|
|
2069
2200
|
const databaseId = params.databaseId;
|
|
@@ -2071,6 +2202,7 @@ var Databases = class {
|
|
|
2071
2202
|
const key = params.key;
|
|
2072
2203
|
const required = params.required;
|
|
2073
2204
|
const xdefault = params.xdefault;
|
|
2205
|
+
const description = params.description;
|
|
2074
2206
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2075
2207
|
throw new OwbaseException(
|
|
2076
2208
|
'Missing required parameter: "databaseId"'
|
|
@@ -2101,6 +2233,9 @@ var Databases = class {
|
|
|
2101
2233
|
if (typeof xdefault !== "undefined") {
|
|
2102
2234
|
apiPayload["default"] = xdefault;
|
|
2103
2235
|
}
|
|
2236
|
+
if (typeof description !== "undefined") {
|
|
2237
|
+
apiPayload["description"] = description;
|
|
2238
|
+
}
|
|
2104
2239
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2105
2240
|
const apiHeaders = {
|
|
2106
2241
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2120,7 +2255,8 @@ var Databases = class {
|
|
|
2120
2255
|
key: rest[1],
|
|
2121
2256
|
required: rest[2],
|
|
2122
2257
|
xdefault: rest[3],
|
|
2123
|
-
newKey: rest[4]
|
|
2258
|
+
newKey: rest[4],
|
|
2259
|
+
description: rest[5]
|
|
2124
2260
|
};
|
|
2125
2261
|
}
|
|
2126
2262
|
const databaseId = params.databaseId;
|
|
@@ -2129,6 +2265,7 @@ var Databases = class {
|
|
|
2129
2265
|
const required = params.required;
|
|
2130
2266
|
const xdefault = params.xdefault;
|
|
2131
2267
|
const newKey = params.newKey;
|
|
2268
|
+
const description = params.description;
|
|
2132
2269
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2133
2270
|
throw new OwbaseException(
|
|
2134
2271
|
'Missing required parameter: "databaseId"'
|
|
@@ -2159,6 +2296,9 @@ var Databases = class {
|
|
|
2159
2296
|
if (typeof newKey !== "undefined") {
|
|
2160
2297
|
apiPayload["newKey"] = newKey;
|
|
2161
2298
|
}
|
|
2299
|
+
if (typeof description !== "undefined") {
|
|
2300
|
+
apiPayload["description"] = description;
|
|
2301
|
+
}
|
|
2162
2302
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2163
2303
|
const apiHeaders = {
|
|
2164
2304
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2177,7 +2317,8 @@ var Databases = class {
|
|
|
2177
2317
|
collectionId: rest[0],
|
|
2178
2318
|
key: rest[1],
|
|
2179
2319
|
required: rest[2],
|
|
2180
|
-
xdefault: rest[3]
|
|
2320
|
+
xdefault: rest[3],
|
|
2321
|
+
description: rest[4]
|
|
2181
2322
|
};
|
|
2182
2323
|
}
|
|
2183
2324
|
const databaseId = params.databaseId;
|
|
@@ -2185,6 +2326,7 @@ var Databases = class {
|
|
|
2185
2326
|
const key = params.key;
|
|
2186
2327
|
const required = params.required;
|
|
2187
2328
|
const xdefault = params.xdefault;
|
|
2329
|
+
const description = params.description;
|
|
2188
2330
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2189
2331
|
throw new OwbaseException(
|
|
2190
2332
|
'Missing required parameter: "databaseId"'
|
|
@@ -2215,6 +2357,9 @@ var Databases = class {
|
|
|
2215
2357
|
if (typeof xdefault !== "undefined") {
|
|
2216
2358
|
apiPayload["default"] = xdefault;
|
|
2217
2359
|
}
|
|
2360
|
+
if (typeof description !== "undefined") {
|
|
2361
|
+
apiPayload["description"] = description;
|
|
2362
|
+
}
|
|
2218
2363
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2219
2364
|
const apiHeaders = {
|
|
2220
2365
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2234,7 +2379,8 @@ var Databases = class {
|
|
|
2234
2379
|
key: rest[1],
|
|
2235
2380
|
required: rest[2],
|
|
2236
2381
|
xdefault: rest[3],
|
|
2237
|
-
newKey: rest[4]
|
|
2382
|
+
newKey: rest[4],
|
|
2383
|
+
description: rest[5]
|
|
2238
2384
|
};
|
|
2239
2385
|
}
|
|
2240
2386
|
const databaseId = params.databaseId;
|
|
@@ -2243,6 +2389,7 @@ var Databases = class {
|
|
|
2243
2389
|
const required = params.required;
|
|
2244
2390
|
const xdefault = params.xdefault;
|
|
2245
2391
|
const newKey = params.newKey;
|
|
2392
|
+
const description = params.description;
|
|
2246
2393
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2247
2394
|
throw new OwbaseException(
|
|
2248
2395
|
'Missing required parameter: "databaseId"'
|
|
@@ -2273,6 +2420,9 @@ var Databases = class {
|
|
|
2273
2420
|
if (typeof newKey !== "undefined") {
|
|
2274
2421
|
apiPayload["newKey"] = newKey;
|
|
2275
2422
|
}
|
|
2423
|
+
if (typeof description !== "undefined") {
|
|
2424
|
+
apiPayload["description"] = description;
|
|
2425
|
+
}
|
|
2276
2426
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2277
2427
|
const apiHeaders = {
|
|
2278
2428
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2294,7 +2444,8 @@ var Databases = class {
|
|
|
2294
2444
|
twoWay: rest[3],
|
|
2295
2445
|
key: rest[4],
|
|
2296
2446
|
twoWayKey: rest[5],
|
|
2297
|
-
onDelete: rest[6]
|
|
2447
|
+
onDelete: rest[6],
|
|
2448
|
+
description: rest[7]
|
|
2298
2449
|
};
|
|
2299
2450
|
}
|
|
2300
2451
|
const databaseId = params.databaseId;
|
|
@@ -2305,6 +2456,7 @@ var Databases = class {
|
|
|
2305
2456
|
const key = params.key;
|
|
2306
2457
|
const twoWayKey = params.twoWayKey;
|
|
2307
2458
|
const onDelete = params.onDelete;
|
|
2459
|
+
const description = params.description;
|
|
2308
2460
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2309
2461
|
throw new OwbaseException(
|
|
2310
2462
|
'Missing required parameter: "databaseId"'
|
|
@@ -2346,6 +2498,9 @@ var Databases = class {
|
|
|
2346
2498
|
if (typeof onDelete !== "undefined") {
|
|
2347
2499
|
apiPayload["onDelete"] = onDelete;
|
|
2348
2500
|
}
|
|
2501
|
+
if (typeof description !== "undefined") {
|
|
2502
|
+
apiPayload["description"] = description;
|
|
2503
|
+
}
|
|
2349
2504
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2350
2505
|
const apiHeaders = {
|
|
2351
2506
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2364,7 +2519,8 @@ var Databases = class {
|
|
|
2364
2519
|
collectionId: rest[0],
|
|
2365
2520
|
key: rest[1],
|
|
2366
2521
|
onDelete: rest[2],
|
|
2367
|
-
newKey: rest[3]
|
|
2522
|
+
newKey: rest[3],
|
|
2523
|
+
description: rest[4]
|
|
2368
2524
|
};
|
|
2369
2525
|
}
|
|
2370
2526
|
const databaseId = params.databaseId;
|
|
@@ -2372,6 +2528,7 @@ var Databases = class {
|
|
|
2372
2528
|
const key = params.key;
|
|
2373
2529
|
const onDelete = params.onDelete;
|
|
2374
2530
|
const newKey = params.newKey;
|
|
2531
|
+
const description = params.description;
|
|
2375
2532
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2376
2533
|
throw new OwbaseException(
|
|
2377
2534
|
'Missing required parameter: "databaseId"'
|
|
@@ -2396,6 +2553,9 @@ var Databases = class {
|
|
|
2396
2553
|
if (typeof newKey !== "undefined") {
|
|
2397
2554
|
apiPayload["newKey"] = newKey;
|
|
2398
2555
|
}
|
|
2556
|
+
if (typeof description !== "undefined") {
|
|
2557
|
+
apiPayload["description"] = description;
|
|
2558
|
+
}
|
|
2399
2559
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2400
2560
|
const apiHeaders = {
|
|
2401
2561
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2417,7 +2577,8 @@ var Databases = class {
|
|
|
2417
2577
|
required: rest[3],
|
|
2418
2578
|
xdefault: rest[4],
|
|
2419
2579
|
array: rest[5],
|
|
2420
|
-
encrypt: rest[6]
|
|
2580
|
+
encrypt: rest[6],
|
|
2581
|
+
description: rest[7]
|
|
2421
2582
|
};
|
|
2422
2583
|
}
|
|
2423
2584
|
const databaseId = params.databaseId;
|
|
@@ -2428,6 +2589,7 @@ var Databases = class {
|
|
|
2428
2589
|
const xdefault = params.xdefault;
|
|
2429
2590
|
const array = params.array;
|
|
2430
2591
|
const encrypt = params.encrypt;
|
|
2592
|
+
const description = params.description;
|
|
2431
2593
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2432
2594
|
throw new OwbaseException(
|
|
2433
2595
|
'Missing required parameter: "databaseId"'
|
|
@@ -2470,6 +2632,9 @@ var Databases = class {
|
|
|
2470
2632
|
if (typeof encrypt !== "undefined") {
|
|
2471
2633
|
apiPayload["encrypt"] = encrypt;
|
|
2472
2634
|
}
|
|
2635
|
+
if (typeof description !== "undefined") {
|
|
2636
|
+
apiPayload["description"] = description;
|
|
2637
|
+
}
|
|
2473
2638
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2474
2639
|
const apiHeaders = {
|
|
2475
2640
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2490,7 +2655,8 @@ var Databases = class {
|
|
|
2490
2655
|
required: rest[2],
|
|
2491
2656
|
xdefault: rest[3],
|
|
2492
2657
|
size: rest[4],
|
|
2493
|
-
newKey: rest[5]
|
|
2658
|
+
newKey: rest[5],
|
|
2659
|
+
description: rest[6]
|
|
2494
2660
|
};
|
|
2495
2661
|
}
|
|
2496
2662
|
const databaseId = params.databaseId;
|
|
@@ -2500,6 +2666,7 @@ var Databases = class {
|
|
|
2500
2666
|
const xdefault = params.xdefault;
|
|
2501
2667
|
const size = params.size;
|
|
2502
2668
|
const newKey = params.newKey;
|
|
2669
|
+
const description = params.description;
|
|
2503
2670
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2504
2671
|
throw new OwbaseException(
|
|
2505
2672
|
'Missing required parameter: "databaseId"'
|
|
@@ -2536,6 +2703,9 @@ var Databases = class {
|
|
|
2536
2703
|
if (typeof newKey !== "undefined") {
|
|
2537
2704
|
apiPayload["newKey"] = newKey;
|
|
2538
2705
|
}
|
|
2706
|
+
if (typeof description !== "undefined") {
|
|
2707
|
+
apiPayload["description"] = description;
|
|
2708
|
+
}
|
|
2539
2709
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2540
2710
|
const apiHeaders = {
|
|
2541
2711
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2556,7 +2726,8 @@ var Databases = class {
|
|
|
2556
2726
|
required: rest[2],
|
|
2557
2727
|
xdefault: rest[3],
|
|
2558
2728
|
array: rest[4],
|
|
2559
|
-
encrypt: rest[5]
|
|
2729
|
+
encrypt: rest[5],
|
|
2730
|
+
description: rest[6]
|
|
2560
2731
|
};
|
|
2561
2732
|
}
|
|
2562
2733
|
const databaseId = params.databaseId;
|
|
@@ -2566,6 +2737,7 @@ var Databases = class {
|
|
|
2566
2737
|
const xdefault = params.xdefault;
|
|
2567
2738
|
const array = params.array;
|
|
2568
2739
|
const encrypt = params.encrypt;
|
|
2740
|
+
const description = params.description;
|
|
2569
2741
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2570
2742
|
throw new OwbaseException(
|
|
2571
2743
|
'Missing required parameter: "databaseId"'
|
|
@@ -2602,6 +2774,9 @@ var Databases = class {
|
|
|
2602
2774
|
if (typeof encrypt !== "undefined") {
|
|
2603
2775
|
apiPayload["encrypt"] = encrypt;
|
|
2604
2776
|
}
|
|
2777
|
+
if (typeof description !== "undefined") {
|
|
2778
|
+
apiPayload["description"] = description;
|
|
2779
|
+
}
|
|
2605
2780
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2606
2781
|
const apiHeaders = {
|
|
2607
2782
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2621,7 +2796,8 @@ var Databases = class {
|
|
|
2621
2796
|
key: rest[1],
|
|
2622
2797
|
required: rest[2],
|
|
2623
2798
|
xdefault: rest[3],
|
|
2624
|
-
newKey: rest[4]
|
|
2799
|
+
newKey: rest[4],
|
|
2800
|
+
description: rest[5]
|
|
2625
2801
|
};
|
|
2626
2802
|
}
|
|
2627
2803
|
const databaseId = params.databaseId;
|
|
@@ -2630,6 +2806,7 @@ var Databases = class {
|
|
|
2630
2806
|
const required = params.required;
|
|
2631
2807
|
const xdefault = params.xdefault;
|
|
2632
2808
|
const newKey = params.newKey;
|
|
2809
|
+
const description = params.description;
|
|
2633
2810
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2634
2811
|
throw new OwbaseException(
|
|
2635
2812
|
'Missing required parameter: "databaseId"'
|
|
@@ -2663,6 +2840,9 @@ var Databases = class {
|
|
|
2663
2840
|
if (typeof newKey !== "undefined") {
|
|
2664
2841
|
apiPayload["newKey"] = newKey;
|
|
2665
2842
|
}
|
|
2843
|
+
if (typeof description !== "undefined") {
|
|
2844
|
+
apiPayload["description"] = description;
|
|
2845
|
+
}
|
|
2666
2846
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2667
2847
|
const apiHeaders = {
|
|
2668
2848
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2682,7 +2862,8 @@ var Databases = class {
|
|
|
2682
2862
|
key: rest[1],
|
|
2683
2863
|
required: rest[2],
|
|
2684
2864
|
xdefault: rest[3],
|
|
2685
|
-
array: rest[4]
|
|
2865
|
+
array: rest[4],
|
|
2866
|
+
description: rest[5]
|
|
2686
2867
|
};
|
|
2687
2868
|
}
|
|
2688
2869
|
const databaseId = params.databaseId;
|
|
@@ -2691,6 +2872,7 @@ var Databases = class {
|
|
|
2691
2872
|
const required = params.required;
|
|
2692
2873
|
const xdefault = params.xdefault;
|
|
2693
2874
|
const array = params.array;
|
|
2875
|
+
const description = params.description;
|
|
2694
2876
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2695
2877
|
throw new OwbaseException(
|
|
2696
2878
|
'Missing required parameter: "databaseId"'
|
|
@@ -2724,6 +2906,9 @@ var Databases = class {
|
|
|
2724
2906
|
if (typeof array !== "undefined") {
|
|
2725
2907
|
apiPayload["array"] = array;
|
|
2726
2908
|
}
|
|
2909
|
+
if (typeof description !== "undefined") {
|
|
2910
|
+
apiPayload["description"] = description;
|
|
2911
|
+
}
|
|
2727
2912
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2728
2913
|
const apiHeaders = {
|
|
2729
2914
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2743,7 +2928,8 @@ var Databases = class {
|
|
|
2743
2928
|
key: rest[1],
|
|
2744
2929
|
required: rest[2],
|
|
2745
2930
|
xdefault: rest[3],
|
|
2746
|
-
newKey: rest[4]
|
|
2931
|
+
newKey: rest[4],
|
|
2932
|
+
description: rest[5]
|
|
2747
2933
|
};
|
|
2748
2934
|
}
|
|
2749
2935
|
const databaseId = params.databaseId;
|
|
@@ -2752,6 +2938,7 @@ var Databases = class {
|
|
|
2752
2938
|
const required = params.required;
|
|
2753
2939
|
const xdefault = params.xdefault;
|
|
2754
2940
|
const newKey = params.newKey;
|
|
2941
|
+
const description = params.description;
|
|
2755
2942
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2756
2943
|
throw new OwbaseException(
|
|
2757
2944
|
'Missing required parameter: "databaseId"'
|
|
@@ -2785,6 +2972,9 @@ var Databases = class {
|
|
|
2785
2972
|
if (typeof newKey !== "undefined") {
|
|
2786
2973
|
apiPayload["newKey"] = newKey;
|
|
2787
2974
|
}
|
|
2975
|
+
if (typeof description !== "undefined") {
|
|
2976
|
+
apiPayload["description"] = description;
|
|
2977
|
+
}
|
|
2788
2978
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2789
2979
|
const apiHeaders = {
|
|
2790
2980
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2806,7 +2996,8 @@ var Databases = class {
|
|
|
2806
2996
|
required: rest[3],
|
|
2807
2997
|
xdefault: rest[4],
|
|
2808
2998
|
array: rest[5],
|
|
2809
|
-
encrypt: rest[6]
|
|
2999
|
+
encrypt: rest[6],
|
|
3000
|
+
description: rest[7]
|
|
2810
3001
|
};
|
|
2811
3002
|
}
|
|
2812
3003
|
const databaseId = params.databaseId;
|
|
@@ -2817,6 +3008,7 @@ var Databases = class {
|
|
|
2817
3008
|
const xdefault = params.xdefault;
|
|
2818
3009
|
const array = params.array;
|
|
2819
3010
|
const encrypt = params.encrypt;
|
|
3011
|
+
const description = params.description;
|
|
2820
3012
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2821
3013
|
throw new OwbaseException(
|
|
2822
3014
|
'Missing required parameter: "databaseId"'
|
|
@@ -2859,6 +3051,9 @@ var Databases = class {
|
|
|
2859
3051
|
if (typeof encrypt !== "undefined") {
|
|
2860
3052
|
apiPayload["encrypt"] = encrypt;
|
|
2861
3053
|
}
|
|
3054
|
+
if (typeof description !== "undefined") {
|
|
3055
|
+
apiPayload["description"] = description;
|
|
3056
|
+
}
|
|
2862
3057
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2863
3058
|
const apiHeaders = {
|
|
2864
3059
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -2879,7 +3074,8 @@ var Databases = class {
|
|
|
2879
3074
|
required: rest[2],
|
|
2880
3075
|
xdefault: rest[3],
|
|
2881
3076
|
size: rest[4],
|
|
2882
|
-
newKey: rest[5]
|
|
3077
|
+
newKey: rest[5],
|
|
3078
|
+
description: rest[6]
|
|
2883
3079
|
};
|
|
2884
3080
|
}
|
|
2885
3081
|
const databaseId = params.databaseId;
|
|
@@ -2889,6 +3085,7 @@ var Databases = class {
|
|
|
2889
3085
|
const xdefault = params.xdefault;
|
|
2890
3086
|
const size = params.size;
|
|
2891
3087
|
const newKey = params.newKey;
|
|
3088
|
+
const description = params.description;
|
|
2892
3089
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
2893
3090
|
throw new OwbaseException(
|
|
2894
3091
|
'Missing required parameter: "databaseId"'
|
|
@@ -2925,6 +3122,9 @@ var Databases = class {
|
|
|
2925
3122
|
if (typeof newKey !== "undefined") {
|
|
2926
3123
|
apiPayload["newKey"] = newKey;
|
|
2927
3124
|
}
|
|
3125
|
+
if (typeof description !== "undefined") {
|
|
3126
|
+
apiPayload["description"] = description;
|
|
3127
|
+
}
|
|
2928
3128
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2929
3129
|
const apiHeaders = {
|
|
2930
3130
|
"X-Owbase-Project": this.client.config.project,
|
|
@@ -3324,6 +3524,61 @@ var Databases = class {
|
|
|
3324
3524
|
};
|
|
3325
3525
|
return this.client.call("delete", uri, apiHeaders, apiPayload);
|
|
3326
3526
|
}
|
|
3527
|
+
createQuery(paramsOrFirst, ...rest) {
|
|
3528
|
+
let params;
|
|
3529
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
3530
|
+
params = paramsOrFirst || {};
|
|
3531
|
+
} else {
|
|
3532
|
+
params = {
|
|
3533
|
+
databaseId: paramsOrFirst,
|
|
3534
|
+
collectionId: rest[0],
|
|
3535
|
+
queries: rest[1],
|
|
3536
|
+
transactionId: rest[2],
|
|
3537
|
+
total: rest[3],
|
|
3538
|
+
ttl: rest[4]
|
|
3539
|
+
};
|
|
3540
|
+
}
|
|
3541
|
+
const databaseId = params.databaseId;
|
|
3542
|
+
const collectionId = params.collectionId;
|
|
3543
|
+
const queries = params.queries;
|
|
3544
|
+
const transactionId = params.transactionId;
|
|
3545
|
+
const total = params.total;
|
|
3546
|
+
const ttl = params.ttl;
|
|
3547
|
+
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
3548
|
+
throw new OwbaseException(
|
|
3549
|
+
'Missing required parameter: "databaseId"'
|
|
3550
|
+
);
|
|
3551
|
+
}
|
|
3552
|
+
if (typeof collectionId === "undefined" || collectionId === "") {
|
|
3553
|
+
throw new OwbaseException(
|
|
3554
|
+
'Missing required parameter: "collectionId"'
|
|
3555
|
+
);
|
|
3556
|
+
}
|
|
3557
|
+
const apiPath = "/databases/{databaseId}/collections/{collectionId}/documents/query".replace("{databaseId}", encodeURIComponent(String(databaseId))).replace(
|
|
3558
|
+
"{collectionId}",
|
|
3559
|
+
encodeURIComponent(String(collectionId))
|
|
3560
|
+
);
|
|
3561
|
+
const apiPayload = {};
|
|
3562
|
+
if (typeof queries !== "undefined") {
|
|
3563
|
+
apiPayload["queries"] = queries;
|
|
3564
|
+
}
|
|
3565
|
+
if (typeof transactionId !== "undefined") {
|
|
3566
|
+
apiPayload["transactionId"] = transactionId;
|
|
3567
|
+
}
|
|
3568
|
+
if (typeof total !== "undefined") {
|
|
3569
|
+
apiPayload["total"] = total;
|
|
3570
|
+
}
|
|
3571
|
+
if (typeof ttl !== "undefined") {
|
|
3572
|
+
apiPayload["ttl"] = ttl;
|
|
3573
|
+
}
|
|
3574
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3575
|
+
const apiHeaders = {
|
|
3576
|
+
"X-Owbase-Project": this.client.config.project,
|
|
3577
|
+
"content-type": "application/json",
|
|
3578
|
+
accept: "application/json"
|
|
3579
|
+
};
|
|
3580
|
+
return this.client.call("post", uri, apiHeaders, apiPayload);
|
|
3581
|
+
}
|
|
3327
3582
|
getDocument(paramsOrFirst, ...rest) {
|
|
3328
3583
|
let params;
|
|
3329
3584
|
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
@@ -3732,7 +3987,8 @@ var Databases = class {
|
|
|
3732
3987
|
type: rest[2],
|
|
3733
3988
|
attributes: rest[3],
|
|
3734
3989
|
orders: rest[4],
|
|
3735
|
-
lengths: rest[5]
|
|
3990
|
+
lengths: rest[5],
|
|
3991
|
+
description: rest[6]
|
|
3736
3992
|
};
|
|
3737
3993
|
}
|
|
3738
3994
|
const databaseId = params.databaseId;
|
|
@@ -3742,6 +3998,7 @@ var Databases = class {
|
|
|
3742
3998
|
const attributes = params.attributes;
|
|
3743
3999
|
const orders = params.orders;
|
|
3744
4000
|
const lengths = params.lengths;
|
|
4001
|
+
const description = params.description;
|
|
3745
4002
|
if (typeof databaseId === "undefined" || databaseId === "") {
|
|
3746
4003
|
throw new OwbaseException(
|
|
3747
4004
|
'Missing required parameter: "databaseId"'
|
|
@@ -3783,6 +4040,9 @@ var Databases = class {
|
|
|
3783
4040
|
if (typeof lengths !== "undefined") {
|
|
3784
4041
|
apiPayload["lengths"] = lengths;
|
|
3785
4042
|
}
|
|
4043
|
+
if (typeof description !== "undefined") {
|
|
4044
|
+
apiPayload["description"] = description;
|
|
4045
|
+
}
|
|
3786
4046
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3787
4047
|
const apiHeaders = {
|
|
3788
4048
|
"X-Owbase-Project": this.client.config.project,
|