node-appwrite 17.1.0 → 17.2.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/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +2 -2
- package/dist/client.mjs.map +1 -1
- package/dist/models.d.mts +122 -97
- package/dist/models.d.ts +122 -97
- package/dist/services/account.d.mts +31 -31
- package/dist/services/account.d.ts +31 -31
- package/dist/services/account.js +81 -81
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +81 -81
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.d.mts +20 -20
- package/dist/services/avatars.d.ts +20 -20
- package/dist/services/avatars.js +79 -79
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs +79 -79
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.d.mts +67 -40
- package/dist/services/databases.d.ts +67 -40
- package/dist/services/databases.js +384 -295
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +384 -295
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +8 -8
- package/dist/services/functions.d.ts +8 -8
- package/dist/services/functions.js +38 -38
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +38 -38
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/graphql.mjs.map +1 -1
- package/dist/services/health.d.mts +1 -1
- package/dist/services/health.d.ts +1 -1
- package/dist/services/health.js +8 -8
- package/dist/services/health.js.map +1 -1
- package/dist/services/health.mjs +8 -8
- package/dist/services/health.mjs.map +1 -1
- package/dist/services/locale.d.mts +2 -2
- package/dist/services/locale.d.ts +2 -2
- package/dist/services/locale.js +7 -7
- package/dist/services/locale.js.map +1 -1
- package/dist/services/locale.mjs +7 -7
- package/dist/services/locale.mjs.map +1 -1
- package/dist/services/messaging.d.mts +8 -8
- package/dist/services/messaging.d.ts +8 -8
- package/dist/services/messaging.js +94 -94
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +94 -94
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/sites.d.mts +4 -4
- package/dist/services/sites.d.ts +4 -4
- package/dist/services/sites.js +24 -24
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs +24 -24
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +7 -7
- package/dist/services/storage.d.ts +7 -7
- package/dist/services/storage.js +16 -16
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +16 -16
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/teams.d.mts +17 -17
- package/dist/services/teams.d.ts +17 -17
- package/dist/services/teams.js +40 -40
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +40 -40
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/tokens.js.map +1 -1
- package/dist/services/tokens.mjs.map +1 -1
- package/dist/services/users.d.mts +26 -26
- package/dist/services/users.d.ts +26 -26
- package/dist/services/users.js +26 -26
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs +26 -26
- package/dist/services/users.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -110,24 +110,24 @@ class Messaging {
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
113
|
+
* Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* @param {string} messageId
|
|
117
|
+
* @param {string[]} topics
|
|
118
|
+
* @param {string[]} users
|
|
119
|
+
* @param {string[]} targets
|
|
120
|
+
* @param {string} subject
|
|
121
|
+
* @param {string} content
|
|
122
|
+
* @param {boolean} draft
|
|
123
|
+
* @param {boolean} html
|
|
124
|
+
* @param {string[]} cc
|
|
125
|
+
* @param {string[]} bcc
|
|
126
|
+
* @param {string} scheduledAt
|
|
127
|
+
* @param {string[]} attachments
|
|
128
|
+
* @throws {AppwriteException}
|
|
129
|
+
* @returns {Promise<Models.Message>}
|
|
130
|
+
*/
|
|
131
131
|
updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt, attachments) {
|
|
132
132
|
if (typeof messageId === "undefined") {
|
|
133
133
|
throw new client.AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -278,31 +278,31 @@ class Messaging {
|
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
281
|
+
* Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
282
|
+
*
|
|
283
|
+
*
|
|
284
|
+
* @param {string} messageId
|
|
285
|
+
* @param {string[]} topics
|
|
286
|
+
* @param {string[]} users
|
|
287
|
+
* @param {string[]} targets
|
|
288
|
+
* @param {string} title
|
|
289
|
+
* @param {string} body
|
|
290
|
+
* @param {object} data
|
|
291
|
+
* @param {string} action
|
|
292
|
+
* @param {string} image
|
|
293
|
+
* @param {string} icon
|
|
294
|
+
* @param {string} sound
|
|
295
|
+
* @param {string} color
|
|
296
|
+
* @param {string} tag
|
|
297
|
+
* @param {number} badge
|
|
298
|
+
* @param {boolean} draft
|
|
299
|
+
* @param {string} scheduledAt
|
|
300
|
+
* @param {boolean} contentAvailable
|
|
301
|
+
* @param {boolean} critical
|
|
302
|
+
* @param {MessagePriority} priority
|
|
303
|
+
* @throws {AppwriteException}
|
|
304
|
+
* @returns {Promise<Models.Message>}
|
|
305
|
+
*/
|
|
306
306
|
updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
|
|
307
307
|
if (typeof messageId === "undefined") {
|
|
308
308
|
throw new client.AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -429,19 +429,19 @@ class Messaging {
|
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
431
|
/**
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
432
|
+
* Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
433
|
+
*
|
|
434
|
+
*
|
|
435
|
+
* @param {string} messageId
|
|
436
|
+
* @param {string[]} topics
|
|
437
|
+
* @param {string[]} users
|
|
438
|
+
* @param {string[]} targets
|
|
439
|
+
* @param {string} content
|
|
440
|
+
* @param {boolean} draft
|
|
441
|
+
* @param {string} scheduledAt
|
|
442
|
+
* @throws {AppwriteException}
|
|
443
|
+
* @returns {Promise<Models.Message>}
|
|
444
|
+
*/
|
|
445
445
|
updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
|
|
446
446
|
if (typeof messageId === "undefined") {
|
|
447
447
|
throw new client.AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -478,13 +478,13 @@ class Messaging {
|
|
|
478
478
|
);
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
481
|
+
* Get a message by its unique ID.
|
|
482
|
+
*
|
|
483
|
+
*
|
|
484
|
+
* @param {string} messageId
|
|
485
|
+
* @throws {AppwriteException}
|
|
486
|
+
* @returns {Promise<Models.Message>}
|
|
487
|
+
*/
|
|
488
488
|
getMessage(messageId) {
|
|
489
489
|
if (typeof messageId === "undefined") {
|
|
490
490
|
throw new client.AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -1658,13 +1658,13 @@ class Messaging {
|
|
|
1658
1658
|
);
|
|
1659
1659
|
}
|
|
1660
1660
|
/**
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1661
|
+
* Get a provider by its unique ID.
|
|
1662
|
+
*
|
|
1663
|
+
*
|
|
1664
|
+
* @param {string} providerId
|
|
1665
|
+
* @throws {AppwriteException}
|
|
1666
|
+
* @returns {Promise<Models.Provider>}
|
|
1667
|
+
*/
|
|
1668
1668
|
getProvider(providerId) {
|
|
1669
1669
|
if (typeof providerId === "undefined") {
|
|
1670
1670
|
throw new client.AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -1821,13 +1821,13 @@ class Messaging {
|
|
|
1821
1821
|
);
|
|
1822
1822
|
}
|
|
1823
1823
|
/**
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1824
|
+
* Get a topic by its unique ID.
|
|
1825
|
+
*
|
|
1826
|
+
*
|
|
1827
|
+
* @param {string} topicId
|
|
1828
|
+
* @throws {AppwriteException}
|
|
1829
|
+
* @returns {Promise<Models.Topic>}
|
|
1830
|
+
*/
|
|
1831
1831
|
getTopic(topicId) {
|
|
1832
1832
|
if (typeof topicId === "undefined") {
|
|
1833
1833
|
throw new client.AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -1844,15 +1844,15 @@ class Messaging {
|
|
|
1844
1844
|
);
|
|
1845
1845
|
}
|
|
1846
1846
|
/**
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1847
|
+
* Update a topic by its unique ID.
|
|
1848
|
+
*
|
|
1849
|
+
*
|
|
1850
|
+
* @param {string} topicId
|
|
1851
|
+
* @param {string} name
|
|
1852
|
+
* @param {string[]} subscribe
|
|
1853
|
+
* @throws {AppwriteException}
|
|
1854
|
+
* @returns {Promise<Models.Topic>}
|
|
1855
|
+
*/
|
|
1856
1856
|
updateTopic(topicId, name, subscribe) {
|
|
1857
1857
|
if (typeof topicId === "undefined") {
|
|
1858
1858
|
throw new client.AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -1995,14 +1995,14 @@ class Messaging {
|
|
|
1995
1995
|
);
|
|
1996
1996
|
}
|
|
1997
1997
|
/**
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
1998
|
+
* Get a subscriber by its unique ID.
|
|
1999
|
+
*
|
|
2000
|
+
*
|
|
2001
|
+
* @param {string} topicId
|
|
2002
|
+
* @param {string} subscriberId
|
|
2003
|
+
* @throws {AppwriteException}
|
|
2004
|
+
* @returns {Promise<Models.Subscriber>}
|
|
2005
|
+
*/
|
|
2006
2006
|
getSubscriber(topicId, subscriberId) {
|
|
2007
2007
|
if (typeof topicId === "undefined") {
|
|
2008
2008
|
throw new client.AppwriteException('Missing required parameter: "topicId"');
|