@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
@@ -53,11 +53,12 @@ class Messaging {
53
53
  cc: rest[5],
54
54
  bcc: rest[6],
55
55
  attachments: rest[7],
56
- replyToEmail: rest[8],
57
- replyToName: rest[9],
58
- draft: rest[10],
59
- html: rest[11],
60
- scheduledAt: rest[12]
56
+ draft: rest[8],
57
+ html: rest[9],
58
+ scheduledAt: rest[10],
59
+ replyToEmail: rest[11],
60
+ replyToName: rest[12],
61
+ emails: rest[13]
61
62
  };
62
63
  }
63
64
  const messageId = params.messageId;
@@ -69,11 +70,12 @@ class Messaging {
69
70
  const cc = params.cc;
70
71
  const bcc = params.bcc;
71
72
  const attachments = params.attachments;
72
- const replyToEmail = params.replyToEmail;
73
- const replyToName = params.replyToName;
74
73
  const draft = params.draft;
75
74
  const html = params.html;
76
75
  const scheduledAt = params.scheduledAt;
76
+ const replyToEmail = params.replyToEmail;
77
+ const replyToName = params.replyToName;
78
+ const emails = params.emails;
77
79
  if (typeof messageId === "undefined") {
78
80
  throw new client.OwbaseException(
79
81
  'Missing required parameter: "messageId"'
@@ -114,12 +116,6 @@ class Messaging {
114
116
  if (typeof attachments !== "undefined") {
115
117
  apiPayload["attachments"] = attachments;
116
118
  }
117
- if (typeof replyToEmail !== "undefined") {
118
- apiPayload["replyToEmail"] = replyToEmail;
119
- }
120
- if (typeof replyToName !== "undefined") {
121
- apiPayload["replyToName"] = replyToName;
122
- }
123
119
  if (typeof draft !== "undefined") {
124
120
  apiPayload["draft"] = draft;
125
121
  }
@@ -129,6 +125,15 @@ class Messaging {
129
125
  if (typeof scheduledAt !== "undefined") {
130
126
  apiPayload["scheduledAt"] = scheduledAt;
131
127
  }
128
+ if (typeof replyToEmail !== "undefined") {
129
+ apiPayload["replyToEmail"] = replyToEmail;
130
+ }
131
+ if (typeof replyToName !== "undefined") {
132
+ apiPayload["replyToName"] = replyToName;
133
+ }
134
+ if (typeof emails !== "undefined") {
135
+ apiPayload["emails"] = emails;
136
+ }
132
137
  const uri = new URL(this.client.config.endpoint + apiPath);
133
138
  const apiHeaders = {
134
139
  "X-Owbase-Project": this.client.config.project,
@@ -144,35 +149,37 @@ class Messaging {
144
149
  } else {
145
150
  params = {
146
151
  messageId: paramsOrFirst,
147
- subject: rest[0],
148
- content: rest[1],
149
- topics: rest[2],
150
- users: rest[3],
151
- targets: rest[4],
152
- cc: rest[5],
153
- bcc: rest[6],
154
- attachments: rest[7],
155
- replyToEmail: rest[8],
156
- replyToName: rest[9],
157
- draft: rest[10],
158
- html: rest[11],
159
- scheduledAt: rest[12]
152
+ topics: rest[0],
153
+ users: rest[1],
154
+ targets: rest[2],
155
+ subject: rest[3],
156
+ content: rest[4],
157
+ draft: rest[5],
158
+ html: rest[6],
159
+ cc: rest[7],
160
+ bcc: rest[8],
161
+ scheduledAt: rest[9],
162
+ attachments: rest[10],
163
+ replyToEmail: rest[11],
164
+ replyToName: rest[12],
165
+ emails: rest[13]
160
166
  };
161
167
  }
162
168
  const messageId = params.messageId;
163
- const subject = params.subject;
164
- const content = params.content;
165
169
  const topics = params.topics;
166
170
  const users = params.users;
167
171
  const targets = params.targets;
172
+ const subject = params.subject;
173
+ const content = params.content;
174
+ const draft = params.draft;
175
+ const html = params.html;
168
176
  const cc = params.cc;
169
177
  const bcc = params.bcc;
178
+ const scheduledAt = params.scheduledAt;
170
179
  const attachments = params.attachments;
171
180
  const replyToEmail = params.replyToEmail;
172
181
  const replyToName = params.replyToName;
173
- const draft = params.draft;
174
- const html = params.html;
175
- const scheduledAt = params.scheduledAt;
182
+ const emails = params.emails;
176
183
  if (typeof messageId === "undefined" || messageId === "") {
177
184
  throw new client.OwbaseException(
178
185
  'Missing required parameter: "messageId"'
@@ -183,12 +190,6 @@ class Messaging {
183
190
  encodeURIComponent(String(messageId))
184
191
  );
185
192
  const apiPayload = {};
186
- if (typeof subject !== "undefined") {
187
- apiPayload["subject"] = subject;
188
- }
189
- if (typeof content !== "undefined") {
190
- apiPayload["content"] = content;
191
- }
192
193
  if (typeof topics !== "undefined") {
193
194
  apiPayload["topics"] = topics;
194
195
  }
@@ -198,12 +199,27 @@ class Messaging {
198
199
  if (typeof targets !== "undefined") {
199
200
  apiPayload["targets"] = targets;
200
201
  }
202
+ if (typeof subject !== "undefined") {
203
+ apiPayload["subject"] = subject;
204
+ }
205
+ if (typeof content !== "undefined") {
206
+ apiPayload["content"] = content;
207
+ }
208
+ if (typeof draft !== "undefined") {
209
+ apiPayload["draft"] = draft;
210
+ }
211
+ if (typeof html !== "undefined") {
212
+ apiPayload["html"] = html;
213
+ }
201
214
  if (typeof cc !== "undefined") {
202
215
  apiPayload["cc"] = cc;
203
216
  }
204
217
  if (typeof bcc !== "undefined") {
205
218
  apiPayload["bcc"] = bcc;
206
219
  }
220
+ if (typeof scheduledAt !== "undefined") {
221
+ apiPayload["scheduledAt"] = scheduledAt;
222
+ }
207
223
  if (typeof attachments !== "undefined") {
208
224
  apiPayload["attachments"] = attachments;
209
225
  }
@@ -213,14 +229,8 @@ class Messaging {
213
229
  if (typeof replyToName !== "undefined") {
214
230
  apiPayload["replyToName"] = replyToName;
215
231
  }
216
- if (typeof draft !== "undefined") {
217
- apiPayload["draft"] = draft;
218
- }
219
- if (typeof html !== "undefined") {
220
- apiPayload["html"] = html;
221
- }
222
- if (typeof scheduledAt !== "undefined") {
223
- apiPayload["scheduledAt"] = scheduledAt;
232
+ if (typeof emails !== "undefined") {
233
+ apiPayload["emails"] = emails;
224
234
  }
225
235
  const uri = new URL(this.client.config.endpoint + apiPath);
226
236
  const apiHeaders = {
@@ -360,11 +370,11 @@ class Messaging {
360
370
  } else {
361
371
  params = {
362
372
  messageId: paramsOrFirst,
363
- title: rest[0],
364
- body: rest[1],
365
- topics: rest[2],
366
- users: rest[3],
367
- targets: rest[4],
373
+ topics: rest[0],
374
+ users: rest[1],
375
+ targets: rest[2],
376
+ title: rest[3],
377
+ body: rest[4],
368
378
  data: rest[5],
369
379
  action: rest[6],
370
380
  image: rest[7],
@@ -382,11 +392,11 @@ class Messaging {
382
392
  };
383
393
  }
384
394
  const messageId = params.messageId;
385
- const title = params.title;
386
- const body = params.body;
387
395
  const topics = params.topics;
388
396
  const users = params.users;
389
397
  const targets = params.targets;
398
+ const title = params.title;
399
+ const body = params.body;
390
400
  const data = params.data;
391
401
  const action = params.action;
392
402
  const image = params.image;
@@ -411,12 +421,6 @@ class Messaging {
411
421
  encodeURIComponent(String(messageId))
412
422
  );
413
423
  const apiPayload = {};
414
- if (typeof title !== "undefined") {
415
- apiPayload["title"] = title;
416
- }
417
- if (typeof body !== "undefined") {
418
- apiPayload["body"] = body;
419
- }
420
424
  if (typeof topics !== "undefined") {
421
425
  apiPayload["topics"] = topics;
422
426
  }
@@ -426,6 +430,12 @@ class Messaging {
426
430
  if (typeof targets !== "undefined") {
427
431
  apiPayload["targets"] = targets;
428
432
  }
433
+ if (typeof title !== "undefined") {
434
+ apiPayload["title"] = title;
435
+ }
436
+ if (typeof body !== "undefined") {
437
+ apiPayload["body"] = body;
438
+ }
429
439
  if (typeof data !== "undefined") {
430
440
  apiPayload["data"] = data;
431
441
  }
@@ -605,19 +615,19 @@ class Messaging {
605
615
  } else {
606
616
  params = {
607
617
  messageId: paramsOrFirst,
608
- content: rest[0],
609
- topics: rest[1],
610
- users: rest[2],
611
- targets: rest[3],
618
+ topics: rest[0],
619
+ users: rest[1],
620
+ targets: rest[2],
621
+ content: rest[3],
612
622
  draft: rest[4],
613
623
  scheduledAt: rest[5]
614
624
  };
615
625
  }
616
626
  const messageId = params.messageId;
617
- const content = params.content;
618
627
  const topics = params.topics;
619
628
  const users = params.users;
620
629
  const targets = params.targets;
630
+ const content = params.content;
621
631
  const draft = params.draft;
622
632
  const scheduledAt = params.scheduledAt;
623
633
  if (typeof messageId === "undefined" || messageId === "") {
@@ -630,9 +640,6 @@ class Messaging {
630
640
  encodeURIComponent(String(messageId))
631
641
  );
632
642
  const apiPayload = {};
633
- if (typeof content !== "undefined") {
634
- apiPayload["content"] = content;
635
- }
636
643
  if (typeof topics !== "undefined") {
637
644
  apiPayload["topics"] = topics;
638
645
  }
@@ -642,6 +649,9 @@ class Messaging {
642
649
  if (typeof targets !== "undefined") {
643
650
  apiPayload["targets"] = targets;
644
651
  }
652
+ if (typeof content !== "undefined") {
653
+ apiPayload["content"] = content;
654
+ }
645
655
  if (typeof draft !== "undefined") {
646
656
  apiPayload["draft"] = draft;
647
657
  }
@@ -663,19 +673,19 @@ class Messaging {
663
673
  } else {
664
674
  params = {
665
675
  messageId: paramsOrFirst,
666
- content: rest[0],
667
- topics: rest[1],
668
- users: rest[2],
669
- targets: rest[3],
676
+ topics: rest[0],
677
+ users: rest[1],
678
+ targets: rest[2],
679
+ content: rest[3],
670
680
  draft: rest[4],
671
681
  scheduledAt: rest[5]
672
682
  };
673
683
  }
674
684
  const messageId = params.messageId;
675
- const content = params.content;
676
685
  const topics = params.topics;
677
686
  const users = params.users;
678
687
  const targets = params.targets;
688
+ const content = params.content;
679
689
  const draft = params.draft;
680
690
  const scheduledAt = params.scheduledAt;
681
691
  if (typeof messageId === "undefined" || messageId === "") {
@@ -688,9 +698,6 @@ class Messaging {
688
698
  encodeURIComponent(String(messageId))
689
699
  );
690
700
  const apiPayload = {};
691
- if (typeof content !== "undefined") {
692
- apiPayload["content"] = content;
693
- }
694
701
  if (typeof topics !== "undefined") {
695
702
  apiPayload["topics"] = topics;
696
703
  }
@@ -700,6 +707,9 @@ class Messaging {
700
707
  if (typeof targets !== "undefined") {
701
708
  apiPayload["targets"] = targets;
702
709
  }
710
+ if (typeof content !== "undefined") {
711
+ apiPayload["content"] = content;
712
+ }
703
713
  if (typeof draft !== "undefined") {
704
714
  apiPayload["draft"] = draft;
705
715
  }
@@ -2856,7 +2866,8 @@ class Messaging {
2856
2866
  name: rest[0],
2857
2867
  subscribe: rest[1],
2858
2868
  qos: rest[2],
2859
- expiry: rest[3]
2869
+ expiry: rest[3],
2870
+ description: rest[4]
2860
2871
  };
2861
2872
  }
2862
2873
  const topicId = params.topicId;
@@ -2864,6 +2875,7 @@ class Messaging {
2864
2875
  const subscribe = params.subscribe;
2865
2876
  const qos = params.qos;
2866
2877
  const expiry = params.expiry;
2878
+ const description = params.description;
2867
2879
  if (typeof topicId === "undefined") {
2868
2880
  throw new client.OwbaseException('Missing required parameter: "topicId"');
2869
2881
  }
@@ -2887,6 +2899,9 @@ class Messaging {
2887
2899
  if (typeof expiry !== "undefined") {
2888
2900
  apiPayload["expiry"] = expiry;
2889
2901
  }
2902
+ if (typeof description !== "undefined") {
2903
+ apiPayload["description"] = description;
2904
+ }
2890
2905
  const uri = new URL(this.client.config.endpoint + apiPath);
2891
2906
  const apiHeaders = {
2892
2907
  "X-Owbase-Project": this.client.config.project,
@@ -2930,7 +2945,8 @@ class Messaging {
2930
2945
  name: rest[0],
2931
2946
  subscribe: rest[1],
2932
2947
  qos: rest[2],
2933
- expiry: rest[3]
2948
+ expiry: rest[3],
2949
+ description: rest[4]
2934
2950
  };
2935
2951
  }
2936
2952
  const topicId = params.topicId;
@@ -2938,6 +2954,7 @@ class Messaging {
2938
2954
  const subscribe = params.subscribe;
2939
2955
  const qos = params.qos;
2940
2956
  const expiry = params.expiry;
2957
+ const description = params.description;
2941
2958
  if (typeof topicId === "undefined" || topicId === "") {
2942
2959
  throw new client.OwbaseException('Missing required parameter: "topicId"');
2943
2960
  }
@@ -2958,6 +2975,9 @@ class Messaging {
2958
2975
  if (typeof expiry !== "undefined") {
2959
2976
  apiPayload["expiry"] = expiry;
2960
2977
  }
2978
+ if (typeof description !== "undefined") {
2979
+ apiPayload["description"] = description;
2980
+ }
2961
2981
  const uri = new URL(this.client.config.endpoint + apiPath);
2962
2982
  const apiHeaders = {
2963
2983
  "X-Owbase-Project": this.client.config.project,