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
|
@@ -109,24 +109,24 @@ var Messaging = class {
|
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
112
|
+
* 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.
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* @param {string} messageId
|
|
116
|
+
* @param {string[]} topics
|
|
117
|
+
* @param {string[]} users
|
|
118
|
+
* @param {string[]} targets
|
|
119
|
+
* @param {string} subject
|
|
120
|
+
* @param {string} content
|
|
121
|
+
* @param {boolean} draft
|
|
122
|
+
* @param {boolean} html
|
|
123
|
+
* @param {string[]} cc
|
|
124
|
+
* @param {string[]} bcc
|
|
125
|
+
* @param {string} scheduledAt
|
|
126
|
+
* @param {string[]} attachments
|
|
127
|
+
* @throws {AppwriteException}
|
|
128
|
+
* @returns {Promise<Models.Message>}
|
|
129
|
+
*/
|
|
130
130
|
updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt, attachments) {
|
|
131
131
|
if (typeof messageId === "undefined") {
|
|
132
132
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -277,31 +277,31 @@ var Messaging = class {
|
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
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
|
-
|
|
280
|
+
* 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.
|
|
281
|
+
*
|
|
282
|
+
*
|
|
283
|
+
* @param {string} messageId
|
|
284
|
+
* @param {string[]} topics
|
|
285
|
+
* @param {string[]} users
|
|
286
|
+
* @param {string[]} targets
|
|
287
|
+
* @param {string} title
|
|
288
|
+
* @param {string} body
|
|
289
|
+
* @param {object} data
|
|
290
|
+
* @param {string} action
|
|
291
|
+
* @param {string} image
|
|
292
|
+
* @param {string} icon
|
|
293
|
+
* @param {string} sound
|
|
294
|
+
* @param {string} color
|
|
295
|
+
* @param {string} tag
|
|
296
|
+
* @param {number} badge
|
|
297
|
+
* @param {boolean} draft
|
|
298
|
+
* @param {string} scheduledAt
|
|
299
|
+
* @param {boolean} contentAvailable
|
|
300
|
+
* @param {boolean} critical
|
|
301
|
+
* @param {MessagePriority} priority
|
|
302
|
+
* @throws {AppwriteException}
|
|
303
|
+
* @returns {Promise<Models.Message>}
|
|
304
|
+
*/
|
|
305
305
|
updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
|
|
306
306
|
if (typeof messageId === "undefined") {
|
|
307
307
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -428,19 +428,19 @@ var Messaging = class {
|
|
|
428
428
|
);
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
431
|
+
* 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.
|
|
432
|
+
*
|
|
433
|
+
*
|
|
434
|
+
* @param {string} messageId
|
|
435
|
+
* @param {string[]} topics
|
|
436
|
+
* @param {string[]} users
|
|
437
|
+
* @param {string[]} targets
|
|
438
|
+
* @param {string} content
|
|
439
|
+
* @param {boolean} draft
|
|
440
|
+
* @param {string} scheduledAt
|
|
441
|
+
* @throws {AppwriteException}
|
|
442
|
+
* @returns {Promise<Models.Message>}
|
|
443
|
+
*/
|
|
444
444
|
updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
|
|
445
445
|
if (typeof messageId === "undefined") {
|
|
446
446
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -477,13 +477,13 @@ var Messaging = class {
|
|
|
477
477
|
);
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
480
|
+
* Get a message by its unique ID.
|
|
481
|
+
*
|
|
482
|
+
*
|
|
483
|
+
* @param {string} messageId
|
|
484
|
+
* @throws {AppwriteException}
|
|
485
|
+
* @returns {Promise<Models.Message>}
|
|
486
|
+
*/
|
|
487
487
|
getMessage(messageId) {
|
|
488
488
|
if (typeof messageId === "undefined") {
|
|
489
489
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -1657,13 +1657,13 @@ var Messaging = class {
|
|
|
1657
1657
|
);
|
|
1658
1658
|
}
|
|
1659
1659
|
/**
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1660
|
+
* Get a provider by its unique ID.
|
|
1661
|
+
*
|
|
1662
|
+
*
|
|
1663
|
+
* @param {string} providerId
|
|
1664
|
+
* @throws {AppwriteException}
|
|
1665
|
+
* @returns {Promise<Models.Provider>}
|
|
1666
|
+
*/
|
|
1667
1667
|
getProvider(providerId) {
|
|
1668
1668
|
if (typeof providerId === "undefined") {
|
|
1669
1669
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -1820,13 +1820,13 @@ var Messaging = class {
|
|
|
1820
1820
|
);
|
|
1821
1821
|
}
|
|
1822
1822
|
/**
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1823
|
+
* Get a topic by its unique ID.
|
|
1824
|
+
*
|
|
1825
|
+
*
|
|
1826
|
+
* @param {string} topicId
|
|
1827
|
+
* @throws {AppwriteException}
|
|
1828
|
+
* @returns {Promise<Models.Topic>}
|
|
1829
|
+
*/
|
|
1830
1830
|
getTopic(topicId) {
|
|
1831
1831
|
if (typeof topicId === "undefined") {
|
|
1832
1832
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -1843,15 +1843,15 @@ var Messaging = class {
|
|
|
1843
1843
|
);
|
|
1844
1844
|
}
|
|
1845
1845
|
/**
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1846
|
+
* Update a topic by its unique ID.
|
|
1847
|
+
*
|
|
1848
|
+
*
|
|
1849
|
+
* @param {string} topicId
|
|
1850
|
+
* @param {string} name
|
|
1851
|
+
* @param {string[]} subscribe
|
|
1852
|
+
* @throws {AppwriteException}
|
|
1853
|
+
* @returns {Promise<Models.Topic>}
|
|
1854
|
+
*/
|
|
1855
1855
|
updateTopic(topicId, name, subscribe) {
|
|
1856
1856
|
if (typeof topicId === "undefined") {
|
|
1857
1857
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -1994,14 +1994,14 @@ var Messaging = class {
|
|
|
1994
1994
|
);
|
|
1995
1995
|
}
|
|
1996
1996
|
/**
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
1997
|
+
* Get a subscriber by its unique ID.
|
|
1998
|
+
*
|
|
1999
|
+
*
|
|
2000
|
+
* @param {string} topicId
|
|
2001
|
+
* @param {string} subscriberId
|
|
2002
|
+
* @throws {AppwriteException}
|
|
2003
|
+
* @returns {Promise<Models.Subscriber>}
|
|
2004
|
+
*/
|
|
2005
2005
|
getSubscriber(topicId, subscriberId) {
|
|
2006
2006
|
if (typeof topicId === "undefined") {
|
|
2007
2007
|
throw new AppwriteException('Missing required parameter: "topicId"');
|