@owbase/node 1.0.1 → 2.0.1

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.
Files changed (92) hide show
  1. package/README.md +1 -1
  2. package/dist/client.js +3 -3
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +3 -3
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/databases-index-type.d.mts +2 -1
  7. package/dist/enums/databases-index-type.d.ts +2 -1
  8. package/dist/enums/databases-index-type.js +1 -0
  9. package/dist/enums/databases-index-type.js.map +1 -1
  10. package/dist/enums/databases-index-type.mjs +1 -0
  11. package/dist/enums/databases-index-type.mjs.map +1 -1
  12. package/dist/enums/project-policy-id.d.mts +1 -0
  13. package/dist/enums/project-policy-id.d.ts +1 -0
  14. package/dist/enums/project-policy-id.js +1 -0
  15. package/dist/enums/project-policy-id.js.map +1 -1
  16. package/dist/enums/project-policy-id.mjs +1 -0
  17. package/dist/enums/project-policy-id.mjs.map +1 -1
  18. package/dist/enums/tables-db-index-type.d.mts +2 -1
  19. package/dist/enums/tables-db-index-type.d.ts +2 -1
  20. package/dist/enums/tables-db-index-type.js +1 -0
  21. package/dist/enums/tables-db-index-type.js.map +1 -1
  22. package/dist/enums/tables-db-index-type.mjs +1 -0
  23. package/dist/enums/tables-db-index-type.mjs.map +1 -1
  24. package/dist/models.d.mts +236 -3
  25. package/dist/models.d.ts +236 -3
  26. package/dist/services/account.d.mts +32 -0
  27. package/dist/services/account.d.ts +32 -0
  28. package/dist/services/account.js +27 -0
  29. package/dist/services/account.js.map +1 -1
  30. package/dist/services/account.mjs +27 -0
  31. package/dist/services/account.mjs.map +1 -1
  32. package/dist/services/databases.d.mts +211 -47
  33. package/dist/services/databases.d.ts +211 -47
  34. package/dist/services/databases.js +301 -41
  35. package/dist/services/databases.js.map +1 -1
  36. package/dist/services/databases.mjs +301 -41
  37. package/dist/services/databases.mjs.map +1 -1
  38. package/dist/services/functions.d.mts +30 -12
  39. package/dist/services/functions.d.ts +30 -12
  40. package/dist/services/functions.js +34 -4
  41. package/dist/services/functions.js.map +1 -1
  42. package/dist/services/functions.mjs +34 -4
  43. package/dist/services/functions.mjs.map +1 -1
  44. package/dist/services/messaging.d.mts +56 -44
  45. package/dist/services/messaging.d.ts +56 -44
  46. package/dist/services/messaging.js +96 -76
  47. package/dist/services/messaging.js.map +1 -1
  48. package/dist/services/messaging.mjs +96 -76
  49. package/dist/services/messaging.mjs.map +1 -1
  50. package/dist/services/organization.d.mts +4 -1
  51. package/dist/services/organization.d.ts +4 -1
  52. package/dist/services/organization.js +6 -1
  53. package/dist/services/organization.js.map +1 -1
  54. package/dist/services/organization.mjs +6 -1
  55. package/dist/services/organization.mjs.map +1 -1
  56. package/dist/services/project.d.mts +115 -65
  57. package/dist/services/project.d.ts +115 -65
  58. package/dist/services/project.js +138 -77
  59. package/dist/services/project.js.map +1 -1
  60. package/dist/services/project.mjs +138 -77
  61. package/dist/services/project.mjs.map +1 -1
  62. package/dist/services/sites.d.mts +20 -8
  63. package/dist/services/sites.d.ts +20 -8
  64. package/dist/services/sites.js +24 -4
  65. package/dist/services/sites.js.map +1 -1
  66. package/dist/services/sites.mjs +24 -4
  67. package/dist/services/sites.mjs.map +1 -1
  68. package/dist/services/storage.d.mts +16 -4
  69. package/dist/services/storage.d.ts +16 -4
  70. package/dist/services/storage.js +22 -2
  71. package/dist/services/storage.js.map +1 -1
  72. package/dist/services/storage.mjs +22 -2
  73. package/dist/services/storage.mjs.map +1 -1
  74. package/dist/services/tables-db.d.mts +210 -47
  75. package/dist/services/tables-db.d.ts +210 -47
  76. package/dist/services/tables-db.js +296 -41
  77. package/dist/services/tables-db.js.map +1 -1
  78. package/dist/services/tables-db.mjs +296 -41
  79. package/dist/services/tables-db.mjs.map +1 -1
  80. package/dist/services/teams.d.mts +4 -1
  81. package/dist/services/teams.d.ts +4 -1
  82. package/dist/services/teams.js +6 -1
  83. package/dist/services/teams.js.map +1 -1
  84. package/dist/services/teams.mjs +6 -1
  85. package/dist/services/teams.mjs.map +1 -1
  86. package/dist/services/webhooks.d.mts +16 -10
  87. package/dist/services/webhooks.d.ts +16 -10
  88. package/dist/services/webhooks.js +12 -2
  89. package/dist/services/webhooks.js.map +1 -1
  90. package/dist/services/webhooks.mjs +12 -2
  91. package/dist/services/webhooks.mjs.map +1 -1
  92. package/package.json +2 -2
@@ -52,11 +52,12 @@ var Messaging = class {
52
52
  cc: rest[5],
53
53
  bcc: rest[6],
54
54
  attachments: rest[7],
55
- replyToEmail: rest[8],
56
- replyToName: rest[9],
57
- draft: rest[10],
58
- html: rest[11],
59
- scheduledAt: rest[12]
55
+ draft: rest[8],
56
+ html: rest[9],
57
+ scheduledAt: rest[10],
58
+ replyToEmail: rest[11],
59
+ replyToName: rest[12],
60
+ emails: rest[13]
60
61
  };
61
62
  }
62
63
  const messageId = params.messageId;
@@ -68,11 +69,12 @@ var Messaging = class {
68
69
  const cc = params.cc;
69
70
  const bcc = params.bcc;
70
71
  const attachments = params.attachments;
71
- const replyToEmail = params.replyToEmail;
72
- const replyToName = params.replyToName;
73
72
  const draft = params.draft;
74
73
  const html = params.html;
75
74
  const scheduledAt = params.scheduledAt;
75
+ const replyToEmail = params.replyToEmail;
76
+ const replyToName = params.replyToName;
77
+ const emails = params.emails;
76
78
  if (typeof messageId === "undefined") {
77
79
  throw new OwbaseException(
78
80
  'Missing required parameter: "messageId"'
@@ -113,12 +115,6 @@ var Messaging = class {
113
115
  if (typeof attachments !== "undefined") {
114
116
  apiPayload["attachments"] = attachments;
115
117
  }
116
- if (typeof replyToEmail !== "undefined") {
117
- apiPayload["replyToEmail"] = replyToEmail;
118
- }
119
- if (typeof replyToName !== "undefined") {
120
- apiPayload["replyToName"] = replyToName;
121
- }
122
118
  if (typeof draft !== "undefined") {
123
119
  apiPayload["draft"] = draft;
124
120
  }
@@ -128,6 +124,15 @@ var Messaging = class {
128
124
  if (typeof scheduledAt !== "undefined") {
129
125
  apiPayload["scheduledAt"] = scheduledAt;
130
126
  }
127
+ if (typeof replyToEmail !== "undefined") {
128
+ apiPayload["replyToEmail"] = replyToEmail;
129
+ }
130
+ if (typeof replyToName !== "undefined") {
131
+ apiPayload["replyToName"] = replyToName;
132
+ }
133
+ if (typeof emails !== "undefined") {
134
+ apiPayload["emails"] = emails;
135
+ }
131
136
  const uri = new URL(this.client.config.endpoint + apiPath);
132
137
  const apiHeaders = {
133
138
  "X-Owbase-Project": this.client.config.project,
@@ -143,35 +148,37 @@ var Messaging = class {
143
148
  } else {
144
149
  params = {
145
150
  messageId: paramsOrFirst,
146
- subject: rest[0],
147
- content: rest[1],
148
- topics: rest[2],
149
- users: rest[3],
150
- targets: rest[4],
151
- cc: rest[5],
152
- bcc: rest[6],
153
- attachments: rest[7],
154
- replyToEmail: rest[8],
155
- replyToName: rest[9],
156
- draft: rest[10],
157
- html: rest[11],
158
- scheduledAt: rest[12]
151
+ topics: rest[0],
152
+ users: rest[1],
153
+ targets: rest[2],
154
+ subject: rest[3],
155
+ content: rest[4],
156
+ draft: rest[5],
157
+ html: rest[6],
158
+ cc: rest[7],
159
+ bcc: rest[8],
160
+ scheduledAt: rest[9],
161
+ attachments: rest[10],
162
+ replyToEmail: rest[11],
163
+ replyToName: rest[12],
164
+ emails: rest[13]
159
165
  };
160
166
  }
161
167
  const messageId = params.messageId;
162
- const subject = params.subject;
163
- const content = params.content;
164
168
  const topics = params.topics;
165
169
  const users = params.users;
166
170
  const targets = params.targets;
171
+ const subject = params.subject;
172
+ const content = params.content;
173
+ const draft = params.draft;
174
+ const html = params.html;
167
175
  const cc = params.cc;
168
176
  const bcc = params.bcc;
177
+ const scheduledAt = params.scheduledAt;
169
178
  const attachments = params.attachments;
170
179
  const replyToEmail = params.replyToEmail;
171
180
  const replyToName = params.replyToName;
172
- const draft = params.draft;
173
- const html = params.html;
174
- const scheduledAt = params.scheduledAt;
181
+ const emails = params.emails;
175
182
  if (typeof messageId === "undefined" || messageId === "") {
176
183
  throw new OwbaseException(
177
184
  'Missing required parameter: "messageId"'
@@ -182,12 +189,6 @@ var Messaging = class {
182
189
  encodeURIComponent(String(messageId))
183
190
  );
184
191
  const apiPayload = {};
185
- if (typeof subject !== "undefined") {
186
- apiPayload["subject"] = subject;
187
- }
188
- if (typeof content !== "undefined") {
189
- apiPayload["content"] = content;
190
- }
191
192
  if (typeof topics !== "undefined") {
192
193
  apiPayload["topics"] = topics;
193
194
  }
@@ -197,12 +198,27 @@ var Messaging = class {
197
198
  if (typeof targets !== "undefined") {
198
199
  apiPayload["targets"] = targets;
199
200
  }
201
+ if (typeof subject !== "undefined") {
202
+ apiPayload["subject"] = subject;
203
+ }
204
+ if (typeof content !== "undefined") {
205
+ apiPayload["content"] = content;
206
+ }
207
+ if (typeof draft !== "undefined") {
208
+ apiPayload["draft"] = draft;
209
+ }
210
+ if (typeof html !== "undefined") {
211
+ apiPayload["html"] = html;
212
+ }
200
213
  if (typeof cc !== "undefined") {
201
214
  apiPayload["cc"] = cc;
202
215
  }
203
216
  if (typeof bcc !== "undefined") {
204
217
  apiPayload["bcc"] = bcc;
205
218
  }
219
+ if (typeof scheduledAt !== "undefined") {
220
+ apiPayload["scheduledAt"] = scheduledAt;
221
+ }
206
222
  if (typeof attachments !== "undefined") {
207
223
  apiPayload["attachments"] = attachments;
208
224
  }
@@ -212,14 +228,8 @@ var Messaging = class {
212
228
  if (typeof replyToName !== "undefined") {
213
229
  apiPayload["replyToName"] = replyToName;
214
230
  }
215
- if (typeof draft !== "undefined") {
216
- apiPayload["draft"] = draft;
217
- }
218
- if (typeof html !== "undefined") {
219
- apiPayload["html"] = html;
220
- }
221
- if (typeof scheduledAt !== "undefined") {
222
- apiPayload["scheduledAt"] = scheduledAt;
231
+ if (typeof emails !== "undefined") {
232
+ apiPayload["emails"] = emails;
223
233
  }
224
234
  const uri = new URL(this.client.config.endpoint + apiPath);
225
235
  const apiHeaders = {
@@ -359,11 +369,11 @@ var Messaging = class {
359
369
  } else {
360
370
  params = {
361
371
  messageId: paramsOrFirst,
362
- title: rest[0],
363
- body: rest[1],
364
- topics: rest[2],
365
- users: rest[3],
366
- targets: rest[4],
372
+ topics: rest[0],
373
+ users: rest[1],
374
+ targets: rest[2],
375
+ title: rest[3],
376
+ body: rest[4],
367
377
  data: rest[5],
368
378
  action: rest[6],
369
379
  image: rest[7],
@@ -381,11 +391,11 @@ var Messaging = class {
381
391
  };
382
392
  }
383
393
  const messageId = params.messageId;
384
- const title = params.title;
385
- const body = params.body;
386
394
  const topics = params.topics;
387
395
  const users = params.users;
388
396
  const targets = params.targets;
397
+ const title = params.title;
398
+ const body = params.body;
389
399
  const data = params.data;
390
400
  const action = params.action;
391
401
  const image = params.image;
@@ -410,12 +420,6 @@ var Messaging = class {
410
420
  encodeURIComponent(String(messageId))
411
421
  );
412
422
  const apiPayload = {};
413
- if (typeof title !== "undefined") {
414
- apiPayload["title"] = title;
415
- }
416
- if (typeof body !== "undefined") {
417
- apiPayload["body"] = body;
418
- }
419
423
  if (typeof topics !== "undefined") {
420
424
  apiPayload["topics"] = topics;
421
425
  }
@@ -425,6 +429,12 @@ var Messaging = class {
425
429
  if (typeof targets !== "undefined") {
426
430
  apiPayload["targets"] = targets;
427
431
  }
432
+ if (typeof title !== "undefined") {
433
+ apiPayload["title"] = title;
434
+ }
435
+ if (typeof body !== "undefined") {
436
+ apiPayload["body"] = body;
437
+ }
428
438
  if (typeof data !== "undefined") {
429
439
  apiPayload["data"] = data;
430
440
  }
@@ -604,19 +614,19 @@ var Messaging = class {
604
614
  } else {
605
615
  params = {
606
616
  messageId: paramsOrFirst,
607
- content: rest[0],
608
- topics: rest[1],
609
- users: rest[2],
610
- targets: rest[3],
617
+ topics: rest[0],
618
+ users: rest[1],
619
+ targets: rest[2],
620
+ content: rest[3],
611
621
  draft: rest[4],
612
622
  scheduledAt: rest[5]
613
623
  };
614
624
  }
615
625
  const messageId = params.messageId;
616
- const content = params.content;
617
626
  const topics = params.topics;
618
627
  const users = params.users;
619
628
  const targets = params.targets;
629
+ const content = params.content;
620
630
  const draft = params.draft;
621
631
  const scheduledAt = params.scheduledAt;
622
632
  if (typeof messageId === "undefined" || messageId === "") {
@@ -629,9 +639,6 @@ var Messaging = class {
629
639
  encodeURIComponent(String(messageId))
630
640
  );
631
641
  const apiPayload = {};
632
- if (typeof content !== "undefined") {
633
- apiPayload["content"] = content;
634
- }
635
642
  if (typeof topics !== "undefined") {
636
643
  apiPayload["topics"] = topics;
637
644
  }
@@ -641,6 +648,9 @@ var Messaging = class {
641
648
  if (typeof targets !== "undefined") {
642
649
  apiPayload["targets"] = targets;
643
650
  }
651
+ if (typeof content !== "undefined") {
652
+ apiPayload["content"] = content;
653
+ }
644
654
  if (typeof draft !== "undefined") {
645
655
  apiPayload["draft"] = draft;
646
656
  }
@@ -662,19 +672,19 @@ var Messaging = class {
662
672
  } else {
663
673
  params = {
664
674
  messageId: paramsOrFirst,
665
- content: rest[0],
666
- topics: rest[1],
667
- users: rest[2],
668
- targets: rest[3],
675
+ topics: rest[0],
676
+ users: rest[1],
677
+ targets: rest[2],
678
+ content: rest[3],
669
679
  draft: rest[4],
670
680
  scheduledAt: rest[5]
671
681
  };
672
682
  }
673
683
  const messageId = params.messageId;
674
- const content = params.content;
675
684
  const topics = params.topics;
676
685
  const users = params.users;
677
686
  const targets = params.targets;
687
+ const content = params.content;
678
688
  const draft = params.draft;
679
689
  const scheduledAt = params.scheduledAt;
680
690
  if (typeof messageId === "undefined" || messageId === "") {
@@ -687,9 +697,6 @@ var Messaging = class {
687
697
  encodeURIComponent(String(messageId))
688
698
  );
689
699
  const apiPayload = {};
690
- if (typeof content !== "undefined") {
691
- apiPayload["content"] = content;
692
- }
693
700
  if (typeof topics !== "undefined") {
694
701
  apiPayload["topics"] = topics;
695
702
  }
@@ -699,6 +706,9 @@ var Messaging = class {
699
706
  if (typeof targets !== "undefined") {
700
707
  apiPayload["targets"] = targets;
701
708
  }
709
+ if (typeof content !== "undefined") {
710
+ apiPayload["content"] = content;
711
+ }
702
712
  if (typeof draft !== "undefined") {
703
713
  apiPayload["draft"] = draft;
704
714
  }
@@ -2855,7 +2865,8 @@ var Messaging = class {
2855
2865
  name: rest[0],
2856
2866
  subscribe: rest[1],
2857
2867
  qos: rest[2],
2858
- expiry: rest[3]
2868
+ expiry: rest[3],
2869
+ description: rest[4]
2859
2870
  };
2860
2871
  }
2861
2872
  const topicId = params.topicId;
@@ -2863,6 +2874,7 @@ var Messaging = class {
2863
2874
  const subscribe = params.subscribe;
2864
2875
  const qos = params.qos;
2865
2876
  const expiry = params.expiry;
2877
+ const description = params.description;
2866
2878
  if (typeof topicId === "undefined") {
2867
2879
  throw new OwbaseException('Missing required parameter: "topicId"');
2868
2880
  }
@@ -2886,6 +2898,9 @@ var Messaging = class {
2886
2898
  if (typeof expiry !== "undefined") {
2887
2899
  apiPayload["expiry"] = expiry;
2888
2900
  }
2901
+ if (typeof description !== "undefined") {
2902
+ apiPayload["description"] = description;
2903
+ }
2889
2904
  const uri = new URL(this.client.config.endpoint + apiPath);
2890
2905
  const apiHeaders = {
2891
2906
  "X-Owbase-Project": this.client.config.project,
@@ -2929,7 +2944,8 @@ var Messaging = class {
2929
2944
  name: rest[0],
2930
2945
  subscribe: rest[1],
2931
2946
  qos: rest[2],
2932
- expiry: rest[3]
2947
+ expiry: rest[3],
2948
+ description: rest[4]
2933
2949
  };
2934
2950
  }
2935
2951
  const topicId = params.topicId;
@@ -2937,6 +2953,7 @@ var Messaging = class {
2937
2953
  const subscribe = params.subscribe;
2938
2954
  const qos = params.qos;
2939
2955
  const expiry = params.expiry;
2956
+ const description = params.description;
2940
2957
  if (typeof topicId === "undefined" || topicId === "") {
2941
2958
  throw new OwbaseException('Missing required parameter: "topicId"');
2942
2959
  }
@@ -2957,6 +2974,9 @@ var Messaging = class {
2957
2974
  if (typeof expiry !== "undefined") {
2958
2975
  apiPayload["expiry"] = expiry;
2959
2976
  }
2977
+ if (typeof description !== "undefined") {
2978
+ apiPayload["description"] = description;
2979
+ }
2960
2980
  const uri = new URL(this.client.config.endpoint + apiPath);
2961
2981
  const apiHeaders = {
2962
2982
  "X-Owbase-Project": this.client.config.project,