@appwrite.io/console 0.4.2 → 0.6.0-rc.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.
- package/.github/workflows/publish.yml +2 -2
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/cjs/sdk.js +2115 -109
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2115 -110
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2115 -109
- package/docs/examples/account/add-authenticator.md +18 -0
- package/docs/examples/account/create-challenge.md +18 -0
- package/docs/examples/account/list-providers.md +18 -0
- package/docs/examples/account/update-challenge.md +18 -0
- package/docs/examples/account/update-m-f-a.md +18 -0
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/verify-authenticator.md +18 -0
- package/docs/examples/messaging/create-apns-provider.md +18 -0
- package/docs/examples/messaging/create-email-message.md +18 -0
- package/docs/examples/messaging/create-fcm-provider.md +18 -0
- package/docs/examples/messaging/create-mailgun-provider.md +18 -0
- package/docs/examples/messaging/create-msg91provider.md +18 -0
- package/docs/examples/messaging/create-push-message.md +18 -0
- package/docs/examples/messaging/create-s-m-s-message.md +18 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +18 -0
- package/docs/examples/messaging/create-subscriber.md +18 -0
- package/docs/examples/messaging/create-telesign-provider.md +18 -0
- package/docs/examples/messaging/create-textmagic-provider.md +18 -0
- package/docs/examples/messaging/create-topic.md +18 -0
- package/docs/examples/messaging/create-twilio-provider.md +18 -0
- package/docs/examples/messaging/create-vonage-provider.md +18 -0
- package/docs/examples/messaging/delete-provider.md +18 -0
- package/docs/examples/messaging/delete-subscriber.md +18 -0
- package/docs/examples/messaging/delete-topic.md +18 -0
- package/docs/examples/messaging/get-message.md +18 -0
- package/docs/examples/messaging/get-provider.md +18 -0
- package/docs/examples/messaging/get-subscriber.md +18 -0
- package/docs/examples/messaging/get-topic.md +18 -0
- package/docs/examples/messaging/list-message-logs.md +18 -0
- package/docs/examples/messaging/list-messages.md +18 -0
- package/docs/examples/messaging/list-provider-logs.md +18 -0
- package/docs/examples/messaging/list-providers.md +18 -0
- package/docs/examples/messaging/list-subscriber-logs.md +18 -0
- package/docs/examples/messaging/list-subscribers.md +18 -0
- package/docs/examples/messaging/list-topic-logs.md +18 -0
- package/docs/examples/messaging/list-topics.md +18 -0
- package/docs/examples/messaging/update-apns-provider.md +18 -0
- package/docs/examples/messaging/update-email.md +18 -0
- package/docs/examples/messaging/update-fcm-provider.md +18 -0
- package/docs/examples/messaging/update-mailgun-provider.md +18 -0
- package/docs/examples/messaging/update-msg91provider.md +18 -0
- package/docs/examples/messaging/update-push-notification.md +18 -0
- package/docs/examples/messaging/update-s-m-s.md +18 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +18 -0
- package/docs/examples/messaging/update-telesign-provider.md +18 -0
- package/docs/examples/messaging/update-textmagic-provider.md +18 -0
- package/docs/examples/messaging/update-topic.md +18 -0
- package/docs/examples/messaging/update-twilio-provider.md +18 -0
- package/docs/examples/messaging/update-vonage-provider.md +18 -0
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/projects/get-usage.md +18 -0
- package/docs/examples/projects/update-auth-mfa-factors.md +18 -0
- package/docs/examples/users/create-target.md +18 -0
- package/docs/examples/users/delete-target.md +18 -0
- package/docs/examples/users/get-target.md +18 -0
- package/docs/examples/users/list-targets.md +18 -0
- package/docs/examples/users/update-target.md +18 -0
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/index.ts +1 -0
- package/src/models.ts +547 -151
- package/src/services/account.ts +158 -0
- package/src/services/messaging.ts +1901 -0
- package/src/services/project.ts +4 -22
- package/src/services/projects.ts +58 -0
- package/src/services/storage.ts +1 -1
- package/src/services/users.ts +188 -1
- package/types/index.d.ts +1 -0
- package/types/models.d.ts +547 -151
- package/types/services/account.d.ts +56 -0
- package/types/services/messaging.d.ts +553 -0
- package/types/services/project.d.ts +2 -4
- package/types/services/projects.d.ts +20 -0
- package/types/services/storage.d.ts +1 -1
- package/types/services/users.d.ts +59 -1
|
@@ -177,10 +177,11 @@ export declare class Users extends Service {
|
|
|
177
177
|
*
|
|
178
178
|
*
|
|
179
179
|
* @param {string} range
|
|
180
|
+
* @param {string} provider
|
|
180
181
|
* @throws {AppwriteException}
|
|
181
182
|
* @returns {Promise}
|
|
182
183
|
*/
|
|
183
|
-
getUsage(range?: string): Promise<Models.UsageUsers>;
|
|
184
|
+
getUsage(range?: string, provider?: string): Promise<Models.UsageUsers>;
|
|
184
185
|
/**
|
|
185
186
|
* Get user
|
|
186
187
|
*
|
|
@@ -353,6 +354,63 @@ export declare class Users extends Service {
|
|
|
353
354
|
* @returns {Promise}
|
|
354
355
|
*/
|
|
355
356
|
updateStatus<Preferences extends Models.Preferences>(userId: string, status: boolean): Promise<Models.User<Preferences>>;
|
|
357
|
+
/**
|
|
358
|
+
* List User Targets
|
|
359
|
+
*
|
|
360
|
+
*
|
|
361
|
+
* @param {string} userId
|
|
362
|
+
* @param {string} queries
|
|
363
|
+
* @throws {AppwriteException}
|
|
364
|
+
* @returns {Promise}
|
|
365
|
+
*/
|
|
366
|
+
listTargets(userId: string, queries?: string): Promise<Models.TargetList>;
|
|
367
|
+
/**
|
|
368
|
+
* Create User Target
|
|
369
|
+
*
|
|
370
|
+
*
|
|
371
|
+
* @param {string} userId
|
|
372
|
+
* @param {string} targetId
|
|
373
|
+
* @param {string} providerType
|
|
374
|
+
* @param {string} identifier
|
|
375
|
+
* @param {string} providerId
|
|
376
|
+
* @param {string} name
|
|
377
|
+
* @throws {AppwriteException}
|
|
378
|
+
* @returns {Promise}
|
|
379
|
+
*/
|
|
380
|
+
createTarget(userId: string, targetId: string, providerType: string, identifier: string, providerId?: string, name?: string): Promise<Models.Target>;
|
|
381
|
+
/**
|
|
382
|
+
* Get User Target
|
|
383
|
+
*
|
|
384
|
+
*
|
|
385
|
+
* @param {string} userId
|
|
386
|
+
* @param {string} targetId
|
|
387
|
+
* @throws {AppwriteException}
|
|
388
|
+
* @returns {Promise}
|
|
389
|
+
*/
|
|
390
|
+
getTarget(userId: string, targetId: string): Promise<Models.Target>;
|
|
391
|
+
/**
|
|
392
|
+
* Update User target
|
|
393
|
+
*
|
|
394
|
+
*
|
|
395
|
+
* @param {string} userId
|
|
396
|
+
* @param {string} targetId
|
|
397
|
+
* @param {string} identifier
|
|
398
|
+
* @param {string} providerId
|
|
399
|
+
* @param {string} name
|
|
400
|
+
* @throws {AppwriteException}
|
|
401
|
+
* @returns {Promise}
|
|
402
|
+
*/
|
|
403
|
+
updateTarget(userId: string, targetId: string, identifier?: string, providerId?: string, name?: string): Promise<Models.Target>;
|
|
404
|
+
/**
|
|
405
|
+
* Delete user target
|
|
406
|
+
*
|
|
407
|
+
*
|
|
408
|
+
* @param {string} userId
|
|
409
|
+
* @param {string} targetId
|
|
410
|
+
* @throws {AppwriteException}
|
|
411
|
+
* @returns {Promise}
|
|
412
|
+
*/
|
|
413
|
+
deleteTarget(userId: string, targetId: string): Promise<{}>;
|
|
356
414
|
/**
|
|
357
415
|
* Update email verification
|
|
358
416
|
*
|