@marcoappio/marco-config 4.0.26 → 5.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.
- package/dist/constants/api.d.ts +9 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/constants/api.js +8 -0
- package/dist/constants/emailAccounts.d.ts.map +1 -1
- package/dist/constants/emailAccounts.js +14 -1
- package/dist/constants/emailProvider.js +1 -1
- package/dist/constants/index.d.ts +11 -3
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +7 -5
- package/dist/constants/messages.d.ts.map +1 -1
- package/dist/constants/oauth.d.ts +2 -2
- package/dist/constants/oauth.d.ts.map +1 -1
- package/dist/constants/oauth.js +5 -1
- package/dist/constants/user.d.ts +1 -1
- package/dist/constants/user.d.ts.map +1 -1
- package/dist/constants/user.js +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/marcoPublicConfig.d.ts +48 -0
- package/dist/marcoPublicConfig.d.ts.map +1 -0
- package/dist/marcoPublicConfig.js +132 -0
- package/dist/schemas/app.d.ts +2 -2
- package/dist/schemas/app.d.ts.map +1 -1
- package/dist/schemas/app.js +3 -3
- package/dist/schemas/auth.d.ts +1 -1
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +2 -2
- package/dist/schemas/boolean.d.ts +5 -0
- package/dist/schemas/boolean.d.ts.map +1 -0
- package/dist/schemas/boolean.js +4 -0
- package/dist/schemas/emailAccount.d.ts +10 -10
- package/dist/schemas/emailAccount.d.ts.map +1 -1
- package/dist/schemas/emailAccount.js +13 -13
- package/dist/schemas/id.d.ts +1 -6
- package/dist/schemas/id.d.ts.map +1 -1
- package/dist/schemas/id.js +1 -2
- package/dist/schemas/index.d.ts +512 -60
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +23 -9
- package/dist/schemas/labels.d.ts +5 -0
- package/dist/schemas/labels.d.ts.map +1 -0
- package/dist/schemas/labels.js +5 -0
- package/dist/schemas/models/account.d.ts +3 -3
- package/dist/schemas/models/account.d.ts.map +1 -1
- package/dist/schemas/models/account.js +8 -8
- package/dist/schemas/models/contact.d.ts +2 -2
- package/dist/schemas/models/contact.d.ts.map +1 -1
- package/dist/schemas/models/contact.js +4 -4
- package/dist/schemas/models/draft.d.ts +9 -9
- package/dist/schemas/models/draft.d.ts.map +1 -1
- package/dist/schemas/models/draft.js +9 -9
- package/dist/schemas/models/index.d.ts +5 -5
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +5 -5
- package/dist/schemas/models/thread.d.ts +46 -28
- package/dist/schemas/models/thread.d.ts.map +1 -1
- package/dist/schemas/models/thread.js +12 -11
- package/dist/schemas/models/user.d.ts +71 -3
- package/dist/schemas/models/user.d.ts.map +1 -1
- package/dist/schemas/models/user.js +24 -5
- package/dist/schemas/mutators/index.d.ts +2 -0
- package/dist/schemas/mutators/index.d.ts.map +1 -0
- package/dist/schemas/mutators/index.js +1 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts +314 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -0
- package/dist/schemas/mutators/mutatorSchemas.js +229 -0
- package/dist/schemas/mutators/mutatorSchemas.test.d.ts +2 -0
- package/dist/schemas/mutators/mutatorSchemas.test.d.ts.map +1 -0
- package/dist/schemas/mutators/mutatorSchemas.test.js +39 -0
- package/dist/schemas/number.d.ts +5 -3
- package/dist/schemas/number.d.ts.map +1 -1
- package/dist/schemas/number.js +5 -4
- package/dist/schemas/oauth.d.ts +2 -2
- package/dist/schemas/oauth.d.ts.map +1 -1
- package/dist/schemas/oauth.js +3 -3
- package/dist/schemas/paginatedResponse.d.ts +10 -0
- package/dist/schemas/paginatedResponse.d.ts.map +1 -0
- package/dist/schemas/paginatedResponse.js +5 -0
- package/dist/schemas/pushNotifications.d.ts +3 -3
- package/dist/schemas/pushNotifications.d.ts.map +1 -1
- package/dist/schemas/pushNotifications.js +4 -3
- package/dist/schemas/string.d.ts +4 -2
- package/dist/schemas/string.d.ts.map +1 -1
- package/dist/schemas/string.js +5 -4
- package/dist/schemas/stripe.d.ts +43 -0
- package/dist/schemas/stripe.d.ts.map +1 -0
- package/dist/schemas/stripe.js +48 -0
- package/dist/schemas/websocket.d.ts +14 -0
- package/dist/schemas/websocket.d.ts.map +1 -0
- package/dist/schemas/websocket.js +10 -0
- package/dist/sdk/endpoints/createEndpointConfig.d.ts +12 -0
- package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -0
- package/dist/sdk/endpoints/createEndpointConfig.js +21 -0
- package/dist/sdk/endpoints/index.d.ts +308 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/index.js +6 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +31 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.js +4 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +30 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +18 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +22 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/index.js +4 -0
- package/dist/sdk/endpoints/private/index.d.ts +156 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/index.js +12 -0
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +70 -0
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/account/getAccounts.js +26 -0
- package/dist/sdk/endpoints/private/models/account/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/account/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/account/index.js +1 -0
- package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +41 -0
- package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/contact/getContacts.js +26 -0
- package/dist/sdk/endpoints/private/models/contact/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/contact/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/contact/index.js +1 -0
- package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +62 -0
- package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/draft/getDrafts.js +25 -0
- package/dist/sdk/endpoints/private/models/draft/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/draft/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/draft/index.js +1 -0
- package/dist/sdk/endpoints/private/models/index.d.ts +13 -0
- package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/index.js +12 -0
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +63 -0
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThread.js +17 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +63 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +17 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +79 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadList.js +47 -0
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +83 -0
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreads.js +36 -0
- package/dist/sdk/endpoints/private/models/thread/index.d.ts +5 -0
- package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/index.js +4 -0
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts +75 -0
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/user/getUser.js +16 -0
- package/dist/sdk/endpoints/private/models/user/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/user/index.js +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +35 -0
- package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createAccount.js +18 -0
- package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +42 -0
- package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createAlias.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +44 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +27 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +18 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +33 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +43 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts +14 -0
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/index.js +13 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +49 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +21 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +44 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +33 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +44 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +49 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +42 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setSettings.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +28 -0
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +18 -0
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +45 -0
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +60 -0
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +27 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +18 -0
- package/dist/sdk/endpoints/private/mutations/draft/index.d.ts +10 -0
- package/dist/sdk/endpoints/private/mutations/draft/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/index.js +9 -0
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +45 -0
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +85 -0
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +47 -0
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +20 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/index.js +10 -0
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +40 -0
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +19 -0
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/index.js +10 -0
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +40 -0
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +19 -0
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +35 -0
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +35 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +35 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/createView.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +23 -0
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +17 -0
- package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +28 -0
- package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/deleteView.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/index.d.ts +9 -0
- package/dist/sdk/endpoints/private/mutations/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/index.js +8 -0
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +32 -0
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +37 -0
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +33 -0
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +43 -0
- package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/updateView.js +19 -0
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts +30 -0
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.js +19 -0
- package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts +27 -0
- package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/createCheckoutSession.js +20 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
- package/dist/sdk/endpoints/private/user/index.d.ts +90 -0
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/index.js +10 -0
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +28 -0
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.js +19 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +133 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +68 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +36 -0
- package/dist/sdk/endpoints/public/config/index.d.ts +10 -0
- package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/config/index.js +15 -0
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts +8 -0
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/healthcheck/index.js +10 -0
- package/dist/sdk/endpoints/public/index.d.ts +149 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/index.js +8 -0
- package/dist/sdk/index.d.ts +485 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +6 -0
- package/dist/sdk/validation/errors.d.ts +338 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -0
- package/dist/sdk/validation/errors.js +145 -0
- package/dist/sdk/validation/index.d.ts +178 -0
- package/dist/sdk/validation/index.d.ts.map +1 -0
- package/dist/sdk/validation/index.js +3 -0
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +11 -0
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +1 -0
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.js +22 -0
- package/dist/sdk/validation/utils/flattenRequirements/index.d.ts +2 -0
- package/dist/sdk/validation/utils/flattenRequirements/index.d.ts.map +1 -0
- package/dist/sdk/validation/utils/flattenRequirements/index.js +1 -0
- package/dist/sdk/validation/utils/index.d.ts +7 -0
- package/dist/sdk/validation/utils/index.d.ts.map +1 -0
- package/dist/sdk/validation/utils/index.js +4 -0
- package/dist/types/AuthData.d.ts +4 -0
- package/dist/types/AuthData.d.ts.map +1 -0
- package/dist/types/AuthData.js +1 -0
- package/dist/types/DraftAttachmentUploadStatus.d.ts +1 -1
- package/dist/types/DraftAttachmentUploadStatus.d.ts.map +1 -1
- package/dist/types/DraftStatus.d.ts +1 -1
- package/dist/types/DraftStatus.d.ts.map +1 -1
- package/dist/types/DraftType.d.ts +1 -1
- package/dist/types/DraftType.d.ts.map +1 -1
- package/dist/types/Endpoint.d.ts +25 -0
- package/dist/types/Endpoint.d.ts.map +1 -0
- package/dist/types/Endpoint.js +1 -0
- package/dist/types/IMAPConnectionStatus.d.ts +1 -1
- package/dist/types/IMAPConnectionStatus.d.ts.map +1 -1
- package/dist/types/IMAPSourceLocation.d.ts +1 -1
- package/dist/types/LabelSpecialUse.d.ts +1 -1
- package/dist/types/LabelSpecialUse.d.ts.map +1 -1
- package/dist/types/MarcoPlatform.d.ts +1 -1
- package/dist/types/MarcoPlatform.d.ts.map +1 -1
- package/dist/types/MessageRecipientType.d.ts +1 -1
- package/dist/types/MessageRecipientType.d.ts.map +1 -1
- package/dist/types/OAuthProvider.d.ts +1 -1
- package/dist/types/OAuthProvider.d.ts.map +1 -1
- package/dist/types/PokeEvent.d.ts +6 -0
- package/dist/types/PokeEvent.d.ts.map +1 -0
- package/dist/types/PokeEvent.js +1 -0
- package/dist/types/SDKError.d.ts +4 -0
- package/dist/types/SDKError.d.ts.map +1 -0
- package/dist/types/SDKError.js +1 -0
- package/dist/types/StripeSubscriptionStatus.d.ts +3 -0
- package/dist/types/StripeSubscriptionStatus.d.ts.map +1 -0
- package/dist/types/StripeSubscriptionStatus.js +10 -0
- package/dist/types/SubscriptionTier.d.ts +3 -0
- package/dist/types/SubscriptionTier.d.ts.map +1 -0
- package/dist/types/SubscriptionTier.js +1 -0
- package/dist/types/UserSettings.d.ts +15 -16
- package/dist/types/UserSettings.d.ts.map +1 -1
- package/dist/types/UserSettings.js +29 -15
- package/dist/types/index.d.ts +17 -11
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +17 -11
- package/dist/utils/accounts/generateAccountColor.d.ts.map +1 -1
- package/dist/utils/accounts/generateAccountColor.js +15 -10
- package/dist/utils/accounts/index.d.ts +3 -1
- package/dist/utils/accounts/index.d.ts.map +1 -1
- package/dist/utils/accounts/index.js +4 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/labels/index.d.ts +3 -2
- package/dist/utils/labels/index.d.ts.map +1 -1
- package/dist/utils/labels/index.js +4 -1
- package/dist/utils/threads/index.d.ts +4 -2
- package/dist/utils/threads/index.d.ts.map +1 -1
- package/dist/utils/threads/index.js +6 -2
- package/dist/utils/threads/parseLabelIdList/index.d.ts +2 -0
- package/dist/utils/threads/parseLabelIdList/index.d.ts.map +1 -0
- package/dist/utils/threads/parseLabelIdList/index.js +1 -0
- package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +1 -1
- package/dist/utils/threads/processSearchTerm/index.d.ts +2 -0
- package/dist/utils/threads/processSearchTerm/index.d.ts.map +1 -0
- package/dist/utils/threads/processSearchTerm/index.js +1 -0
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +1 -1
- package/package.json +13 -28
- package/dist/appwrite/appwrite.d.ts +0 -77
- package/dist/appwrite/appwrite.d.ts.map +0 -1
- package/dist/appwrite/appwrite.js +0 -61
- package/dist/appwrite/appwrite.test.d.ts +0 -2
- package/dist/appwrite/appwrite.test.d.ts.map +0 -1
- package/dist/appwrite/appwrite.test.js +0 -901
- package/dist/appwrite/commands.d.ts +0 -5093
- package/dist/appwrite/commands.d.ts.map +0 -1
- package/dist/appwrite/commands.js +0 -208
- package/dist/appwrite/commands.test.d.ts +0 -2
- package/dist/appwrite/commands.test.d.ts.map +0 -1
- package/dist/appwrite/commands.test.js +0 -425
- package/dist/appwrite/decodedSchemas.d.ts +0 -35
- package/dist/appwrite/decodedSchemas.d.ts.map +0 -1
- package/dist/appwrite/decodedSchemas.js +0 -18
- package/dist/appwrite/functions.d.ts +0 -2806
- package/dist/appwrite/functions.d.ts.map +0 -1
- package/dist/appwrite/functions.js +0 -192
- package/dist/appwrite/functions.test.d.ts +0 -2
- package/dist/appwrite/functions.test.d.ts.map +0 -1
- package/dist/appwrite/functions.test.js +0 -370
- package/dist/appwrite/index.d.ts +0 -8
- package/dist/appwrite/index.d.ts.map +0 -1
- package/dist/appwrite/index.js +0 -5
- package/dist/appwrite/queryContracts/queryContracts.d.ts +0 -392
- package/dist/appwrite/queryContracts/queryContracts.d.ts.map +0 -1
- package/dist/appwrite/queryContracts/queryContracts.js +0 -299
- package/dist/appwrite/queryContracts/queryContracts.test.d.ts +0 -2
- package/dist/appwrite/queryContracts/queryContracts.test.d.ts.map +0 -1
- package/dist/appwrite/queryContracts/queryContracts.test.js +0 -39
- package/dist/appwrite/tableContract/identity.d.ts +0 -207
- package/dist/appwrite/tableContract/identity.d.ts.map +0 -1
- package/dist/appwrite/tableContract/identity.js +0 -169
- package/dist/appwrite/tableContract/index.d.ts +0 -3125
- package/dist/appwrite/tableContract/index.d.ts.map +0 -1
- package/dist/appwrite/tableContract/index.js +0 -94
- package/dist/appwrite/tableContract/index.test.d.ts +0 -2
- package/dist/appwrite/tableContract/index.test.d.ts.map +0 -1
- package/dist/appwrite/tableContract/index.test.js +0 -150
- package/dist/appwrite/tableContract/mailbox.d.ts +0 -276
- package/dist/appwrite/tableContract/mailbox.d.ts.map +0 -1
- package/dist/appwrite/tableContract/mailbox.js +0 -261
- package/dist/appwrite/tableContract/operational.d.ts +0 -247
- package/dist/appwrite/tableContract/operational.d.ts.map +0 -1
- package/dist/appwrite/tableContract/operational.js +0 -167
- package/dist/appwrite/tableContract/shared.d.ts +0 -145
- package/dist/appwrite/tableContract/shared.d.ts.map +0 -1
- package/dist/appwrite/tableContract/shared.js +0 -83
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/index.test.js +0 -106
- package/dist/schemas/models/mailboxAddress.test.d.ts +0 -2
- package/dist/schemas/models/mailboxAddress.test.d.ts.map +0 -1
- package/dist/schemas/models/mailboxAddress.test.js +0 -31
- package/dist/schemas/models/numericSemantics.test.d.ts +0 -2
- package/dist/schemas/models/numericSemantics.test.d.ts.map +0 -1
- package/dist/schemas/models/numericSemantics.test.js +0 -24
- package/dist/schemas/models/user.test.d.ts +0 -2
- package/dist/schemas/models/user.test.d.ts.map +0 -1
- package/dist/schemas/models/user.test.js +0 -18
- package/dist/schemas/scalars.d.ts +0 -13
- package/dist/schemas/scalars.d.ts.map +0 -1
- package/dist/schemas/scalars.js +0 -15
- package/dist/schemas/scalars.test.d.ts +0 -2
- package/dist/schemas/scalars.test.d.ts.map +0 -1
- package/dist/schemas/scalars.test.js +0 -44
- package/dist/schemas/schemaValues.test.d.ts +0 -2
- package/dist/schemas/schemaValues.test.d.ts.map +0 -1
- package/dist/schemas/schemaValues.test.js +0 -21
- package/dist/utils/valibot/index.d.ts +0 -3
- package/dist/utils/valibot/index.d.ts.map +0 -1
- package/dist/utils/valibot/index.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,UAAU,CAAA;AAGpE,YAAY,EAAE,cAAc,EAAE,CAAA;AAE9B,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxB,CAAA"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import { app } from './app
|
|
2
|
-
import { auth } from './auth
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { app } from './app';
|
|
2
|
+
import { auth } from './auth';
|
|
3
|
+
import { boolean } from './boolean';
|
|
4
|
+
import { emailAccount } from './emailAccount';
|
|
5
|
+
import { id } from './id';
|
|
6
|
+
import { labels } from './labels';
|
|
7
|
+
import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, threadFullSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './models';
|
|
8
|
+
import { mutatorSchemas } from './mutators';
|
|
9
|
+
import { number } from './number';
|
|
10
|
+
import { oauth } from './oauth';
|
|
11
|
+
import { pushNotifications } from './pushNotifications';
|
|
12
|
+
import { string } from './string';
|
|
13
|
+
import { stripeUserDataSchema } from './stripe';
|
|
14
|
+
import { websocket } from './websocket';
|
|
15
|
+
export { mutatorSchemas } from './mutators';
|
|
10
16
|
export const marcoSchemas = {
|
|
11
17
|
app,
|
|
12
18
|
auth,
|
|
19
|
+
boolean,
|
|
13
20
|
emailAccount,
|
|
14
21
|
id,
|
|
22
|
+
labels,
|
|
15
23
|
models: {
|
|
16
24
|
accountAliasSchema,
|
|
17
25
|
accountLabelSchema,
|
|
@@ -20,15 +28,21 @@ export const marcoSchemas = {
|
|
|
20
28
|
draftAttachmentSchema,
|
|
21
29
|
draftBodySchema,
|
|
22
30
|
draftSchema,
|
|
31
|
+
stripeUserDataSchema,
|
|
23
32
|
threadFullSchema,
|
|
33
|
+
threadListSchema,
|
|
24
34
|
threadMessageAttachmentSchema,
|
|
25
35
|
threadMessageRecipientSchema,
|
|
26
36
|
threadMessageSchema,
|
|
27
37
|
threadSchema,
|
|
38
|
+
userPushNotificationTokenSchema,
|
|
39
|
+
userSchema,
|
|
28
40
|
userViewSchema,
|
|
29
41
|
},
|
|
42
|
+
mutators: mutatorSchemas,
|
|
30
43
|
number,
|
|
31
44
|
oauth,
|
|
32
45
|
pushNotifications,
|
|
33
46
|
string,
|
|
47
|
+
websocket,
|
|
34
48
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/schemas/labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,MAAM;;CAElB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as v from 'valibot';
|
|
2
2
|
export declare const accountAliasSchema: v.ObjectSchema<{
|
|
3
3
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
4
4
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -13,7 +13,7 @@ export declare const accountLabelSchema: v.ObjectSchema<{
|
|
|
13
13
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
14
14
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
15
|
readonly specialUse: v.NullableSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
|
|
16
|
-
readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number,
|
|
16
|
+
readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
17
17
|
readonly unreadCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
18
18
|
}, undefined>;
|
|
19
19
|
export declare const accountSchema: v.ObjectSchema<{
|
|
@@ -35,7 +35,7 @@ export declare const accountSchema: v.ObjectSchema<{
|
|
|
35
35
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
36
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
37
|
readonly specialUse: v.NullableSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
|
|
38
|
-
readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number,
|
|
38
|
+
readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
39
39
|
readonly unreadCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
40
40
|
}, undefined>, undefined>, undefined>;
|
|
41
41
|
readonly mailProcessedCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/account.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,kBAAkB;;;;;;;aAO7B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;aAQ7B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAYxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA;AACzD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { id } from '../../schemas/id
|
|
3
|
-
import { number } from '../../schemas/number
|
|
4
|
-
import { string } from '../../schemas/string
|
|
5
|
-
import { IMAP_CONNECTION_STATUSES, LABEL_SPECIAL_USES } from '../../types
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { id } from '../../schemas/id';
|
|
3
|
+
import { number } from '../../schemas/number';
|
|
4
|
+
import { string } from '../../schemas/string';
|
|
5
|
+
import { IMAP_CONNECTION_STATUSES, LABEL_SPECIAL_USES } from '../../types';
|
|
6
6
|
export const accountAliasSchema = v.object({
|
|
7
7
|
accountId: id.accountId.required(),
|
|
8
8
|
emailAddress: string.required(),
|
|
@@ -18,7 +18,7 @@ export const accountLabelSchema = v.object({
|
|
|
18
18
|
path: string.required(),
|
|
19
19
|
specialUse: v.nullable(v.picklist(LABEL_SPECIAL_USES)),
|
|
20
20
|
uidValidity: number.positiveInteger(),
|
|
21
|
-
unreadCount: number.
|
|
21
|
+
unreadCount: number.positiveInteger(),
|
|
22
22
|
});
|
|
23
23
|
export const accountSchema = v.object({
|
|
24
24
|
aliases: v.optional(v.array(accountAliasSchema)),
|
|
@@ -27,8 +27,8 @@ export const accountSchema = v.object({
|
|
|
27
27
|
id: id.accountId.required(),
|
|
28
28
|
imapConnectionStatus: v.picklist(IMAP_CONNECTION_STATUSES),
|
|
29
29
|
labels: v.optional(v.array(accountLabelSchema)),
|
|
30
|
-
mailProcessedCount: number.
|
|
31
|
-
mailTotalCount: number.
|
|
30
|
+
mailProcessedCount: number.positiveInteger(),
|
|
31
|
+
mailTotalCount: number.positiveInteger(),
|
|
32
32
|
primaryAlias: v.optional(v.nullable(accountAliasSchema)),
|
|
33
33
|
primaryAliasId: id.aliasId.nullable(),
|
|
34
34
|
userId: id.userId.required(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as v from 'valibot';
|
|
2
2
|
export declare const contactSchema: v.ObjectSchema<{
|
|
3
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
3
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ContactId">]>, undefined>;
|
|
5
5
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
6
|
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/contact.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,aAAa;;;;;aAKxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { id } from '../../schemas/id
|
|
3
|
-
import { string } from '../../schemas/string
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { id } from '../../schemas/id';
|
|
3
|
+
import { string } from '../../schemas/string';
|
|
4
4
|
export const contactSchema = v.object({
|
|
5
|
-
emailAddress: string.
|
|
5
|
+
emailAddress: string.required(),
|
|
6
6
|
id: id.contactId.required(),
|
|
7
7
|
name: string.nullable(),
|
|
8
8
|
userId: id.userId.required(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as v from 'valibot';
|
|
2
2
|
export declare const draftAttachmentSchema: v.ObjectSchema<{
|
|
3
3
|
readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
4
4
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -8,10 +8,10 @@ export declare const draftAttachmentSchema: v.ObjectSchema<{
|
|
|
8
8
|
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
9
9
|
}, undefined>;
|
|
10
10
|
export declare const draftBodySchema: v.ObjectSchema<{
|
|
11
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
12
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
11
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
12
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
13
13
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
14
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
14
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
export declare const draftSchema: v.ObjectSchema<{
|
|
17
17
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
@@ -24,10 +24,10 @@ export declare const draftSchema: v.ObjectSchema<{
|
|
|
24
24
|
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
25
25
|
}, undefined>, undefined>;
|
|
26
26
|
readonly body: v.ObjectSchema<{
|
|
27
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
28
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
27
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
28
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
29
29
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
30
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
30
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
31
31
|
}, undefined>;
|
|
32
32
|
readonly error: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
33
|
readonly fromAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
@@ -35,11 +35,11 @@ export declare const draftSchema: v.ObjectSchema<{
|
|
|
35
35
|
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
36
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
37
37
|
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
38
|
-
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number,
|
|
38
|
+
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
39
39
|
readonly status: v.PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_IN_PROGRESS", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
|
|
40
40
|
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
41
|
readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
|
|
42
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number,
|
|
42
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
43
43
|
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
44
44
|
}, undefined>;
|
|
45
45
|
export type Draft = v.InferOutput<typeof draftSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/draft.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,qBAAqB;;;;;;;aAOhC,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;aAK1B,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAgBtB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,CAAA;AACrD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACzE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { id } from '../../schemas/id
|
|
3
|
-
import { number } from '../../schemas/number
|
|
4
|
-
import { string } from '../../schemas/string
|
|
5
|
-
import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES } from '../../types
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { id } from '../../schemas/id';
|
|
3
|
+
import { number } from '../../schemas/number';
|
|
4
|
+
import { string } from '../../schemas/string';
|
|
5
|
+
import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES } from '../../types';
|
|
6
6
|
export const draftAttachmentSchema = v.object({
|
|
7
7
|
draftId: id.draftId.required(),
|
|
8
8
|
fileName: string.required(),
|
|
9
9
|
id: id.attachmentId.required(),
|
|
10
10
|
mimeType: string.required(),
|
|
11
11
|
status: v.picklist(DRAFT_ATTACHMENT_UPLOAD_STATUSES),
|
|
12
|
-
totalSize: number.
|
|
12
|
+
totalSize: number.positiveInteger(),
|
|
13
13
|
});
|
|
14
14
|
export const draftBodySchema = v.object({
|
|
15
|
-
bcc: v.array(string.
|
|
16
|
-
cc: v.array(string.
|
|
15
|
+
bcc: v.array(string.required()),
|
|
16
|
+
cc: v.array(string.required()),
|
|
17
17
|
content: v.pipe(v.string(), v.maxLength(384000)),
|
|
18
|
-
to: v.array(string.
|
|
18
|
+
to: v.array(string.required()),
|
|
19
19
|
});
|
|
20
20
|
export const draftSchema = v.object({
|
|
21
21
|
accountId: id.accountId.required(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { type Account, type AccountAlias, type AccountLabel, accountAliasSchema, accountLabelSchema, accountSchema } from './account
|
|
2
|
-
export { type Contact, contactSchema } from './contact
|
|
3
|
-
export { type Draft, type DraftAttachment, type DraftBody, draftAttachmentSchema, draftBodySchema, draftSchema } from './draft
|
|
4
|
-
export { type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread
|
|
5
|
-
export { type UserView, userViewSchema } from './user
|
|
1
|
+
export { type Account, type AccountAlias, type AccountLabel, accountAliasSchema, accountLabelSchema, accountSchema, } from './account';
|
|
2
|
+
export { type Contact, contactSchema } from './contact';
|
|
3
|
+
export { type Draft, type DraftAttachment, type DraftBody, draftAttachmentSchema, draftBodySchema, draftSchema, } from './draft';
|
|
4
|
+
export { type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadFullSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
|
|
5
|
+
export { type User, type UserPushNotificationToken, type UserView, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './user';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,qBAAqB,EACrB,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,+BAA+B,EAC/B,UAAU,EACV,cAAc,GACf,MAAM,QAAQ,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { accountAliasSchema, accountLabelSchema, accountSchema } from './account
|
|
2
|
-
export { contactSchema } from './contact
|
|
3
|
-
export { draftAttachmentSchema, draftBodySchema, draftSchema } from './draft
|
|
4
|
-
export { threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread
|
|
5
|
-
export { userViewSchema } from './user
|
|
1
|
+
export { accountAliasSchema, accountLabelSchema, accountSchema, } from './account';
|
|
2
|
+
export { contactSchema } from './contact';
|
|
3
|
+
export { draftAttachmentSchema, draftBodySchema, draftSchema, } from './draft';
|
|
4
|
+
export { threadFullSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
|
|
5
|
+
export { userPushNotificationTokenSchema, userSchema, userViewSchema, } from './user';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as v from 'valibot';
|
|
2
2
|
export declare const threadMessageAttachmentSchema: v.ObjectSchema<{
|
|
3
3
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
4
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
@@ -7,7 +7,7 @@ export declare const threadMessageAttachmentSchema: v.ObjectSchema<{
|
|
|
7
7
|
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
8
8
|
}, undefined>;
|
|
9
9
|
export declare const threadMessageRecipientSchema: v.ObjectSchema<{
|
|
10
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
10
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
11
11
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
12
12
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
13
13
|
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
@@ -22,18 +22,18 @@ export declare const threadMessageSchema: v.ObjectSchema<{
|
|
|
22
22
|
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
23
23
|
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
24
24
|
}, undefined>, undefined>;
|
|
25
|
-
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number,
|
|
25
|
+
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
26
26
|
readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
27
27
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
28
28
|
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
29
29
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
30
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
30
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
31
31
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
32
32
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
33
|
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
34
34
|
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
35
35
|
}, undefined>, undefined>;
|
|
36
|
-
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
36
|
+
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
37
|
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
38
|
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
39
39
|
readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -44,35 +44,37 @@ export declare const threadSchema: v.ObjectSchema<{
|
|
|
44
44
|
hasAttachments: v.BooleanSchema<undefined>;
|
|
45
45
|
id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
46
46
|
labelIdList: v.StringSchema<undefined>;
|
|
47
|
-
latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number,
|
|
47
|
+
latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
48
48
|
latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
49
49
|
messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
50
50
|
previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
51
|
seen: v.BooleanSchema<undefined>;
|
|
52
|
-
senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
52
|
+
senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
53
|
senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
-
snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number,
|
|
54
|
+
snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
55
|
+
subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
|
+
userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
57
|
+
words: v.StringSchema<undefined>;
|
|
58
|
+
}, undefined>;
|
|
59
|
+
export declare const threadListSchema: v.ObjectSchema<{
|
|
60
|
+
accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
61
|
+
flagged: v.BooleanSchema<undefined>;
|
|
62
|
+
hasAttachments: v.BooleanSchema<undefined>;
|
|
63
|
+
id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
64
|
+
labelIdList: v.StringSchema<undefined>;
|
|
65
|
+
latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
66
|
+
latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
67
|
+
messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
68
|
+
previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
69
|
+
seen: v.BooleanSchema<undefined>;
|
|
70
|
+
senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
71
|
+
senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
72
|
+
snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
55
73
|
subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
74
|
userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
57
75
|
words: v.StringSchema<undefined>;
|
|
58
76
|
}, undefined>;
|
|
59
77
|
export declare const threadFullSchema: v.ObjectSchema<{
|
|
60
|
-
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
61
|
-
readonly flagged: v.BooleanSchema<undefined>;
|
|
62
|
-
readonly hasAttachments: v.BooleanSchema<undefined>;
|
|
63
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
64
|
-
readonly labelIdList: v.StringSchema<undefined>;
|
|
65
|
-
readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
66
|
-
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
67
|
-
readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
68
|
-
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
69
|
-
readonly seen: v.BooleanSchema<undefined>;
|
|
70
|
-
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
|
|
71
|
-
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
72
|
-
readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>, undefined>;
|
|
73
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
74
|
-
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
75
|
-
readonly words: v.StringSchema<undefined>;
|
|
76
78
|
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
77
79
|
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
78
80
|
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -82,25 +84,41 @@ export declare const threadFullSchema: v.ObjectSchema<{
|
|
|
82
84
|
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
83
85
|
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
84
86
|
}, undefined>, undefined>;
|
|
85
|
-
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number,
|
|
87
|
+
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
86
88
|
readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
87
89
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
88
90
|
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
89
91
|
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
90
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
92
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
91
93
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
92
94
|
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
93
95
|
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
94
96
|
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
95
97
|
}, undefined>, undefined>;
|
|
96
|
-
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.
|
|
98
|
+
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
97
99
|
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
98
100
|
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
99
101
|
readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
100
102
|
}, undefined>, undefined>;
|
|
103
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
104
|
+
readonly flagged: v.BooleanSchema<undefined>;
|
|
105
|
+
readonly hasAttachments: v.BooleanSchema<undefined>;
|
|
106
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
107
|
+
readonly labelIdList: v.StringSchema<undefined>;
|
|
108
|
+
readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
109
|
+
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
110
|
+
readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
111
|
+
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
112
|
+
readonly seen: v.BooleanSchema<undefined>;
|
|
113
|
+
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
114
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
115
|
+
readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
116
|
+
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
117
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
118
|
+
readonly words: v.StringSchema<undefined>;
|
|
101
119
|
}, undefined>;
|
|
102
120
|
export type Thread = v.InferOutput<typeof threadFullSchema>;
|
|
103
|
-
export type ThreadListItem = v.InferOutput<typeof
|
|
121
|
+
export type ThreadListItem = v.InferOutput<typeof threadListSchema>;
|
|
104
122
|
export type ThreadMessage = v.InferOutput<typeof threadMessageSchema>;
|
|
105
123
|
export type ThreadMessageAttachment = v.InferOutput<typeof threadMessageAttachmentSchema>;
|
|
106
124
|
export type ThreadMessageRecipient = v.InferOutput<typeof threadMessageRecipientSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/thread.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,6BAA6B;;;;;;aAMxC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;aAMvC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;aAY9B,CAAA;AAqBF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;aAA8B,CAAA;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;aAAe,CAAA;AAE5C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAG3B,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACnE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACrE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACzF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { messages } from '../../constants/messages
|
|
3
|
-
import { id } from '../../schemas/id
|
|
4
|
-
import { number } from '../../schemas/number
|
|
5
|
-
import { string } from '../../schemas/string
|
|
6
|
-
import { MESSAGE_RECIPIENT_TYPES } from '../../types
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { messages } from '../../constants/messages';
|
|
3
|
+
import { id } from '../../schemas/id';
|
|
4
|
+
import { number } from '../../schemas/number';
|
|
5
|
+
import { string } from '../../schemas/string';
|
|
6
|
+
import { MESSAGE_RECIPIENT_TYPES } from '../../types';
|
|
7
7
|
export const threadMessageAttachmentSchema = v.object({
|
|
8
8
|
fileName: string.required(),
|
|
9
9
|
id: id.attachmentId.required(),
|
|
10
10
|
mimeType: string.required(),
|
|
11
|
-
size: number.
|
|
11
|
+
size: number.positiveInteger(),
|
|
12
12
|
threadMessageId: id.messageId.required(),
|
|
13
13
|
});
|
|
14
14
|
export const threadMessageRecipientSchema = v.object({
|
|
15
|
-
emailAddress: string.
|
|
15
|
+
emailAddress: string.required(),
|
|
16
16
|
id: id.recipientId.required(),
|
|
17
17
|
name: string.nullable(),
|
|
18
18
|
threadMessageId: id.messageId.required(),
|
|
@@ -26,7 +26,7 @@ export const threadMessageSchema = v.object({
|
|
|
26
26
|
id: id.messageId.required(),
|
|
27
27
|
previewText: string.required(messages.PREVIEW_TEXT_MAX_LENGTH),
|
|
28
28
|
recipients: v.array(threadMessageRecipientSchema),
|
|
29
|
-
senderEmail: string.
|
|
29
|
+
senderEmail: string.required(),
|
|
30
30
|
senderName: string.nullable(),
|
|
31
31
|
threadId: id.threadId.required(),
|
|
32
32
|
unsubscribeUrl: string.nullable(),
|
|
@@ -39,10 +39,10 @@ const threadBaseEntries = {
|
|
|
39
39
|
labelIdList: v.string(),
|
|
40
40
|
latestMessageDate: number.positiveInteger(),
|
|
41
41
|
latestMessageId: id.messageId.required(),
|
|
42
|
-
messageCount: number.
|
|
42
|
+
messageCount: number.positiveInteger(),
|
|
43
43
|
previewText: string.required(messages.PREVIEW_TEXT_MAX_LENGTH),
|
|
44
44
|
seen: v.boolean(),
|
|
45
|
-
senderEmail: string.
|
|
45
|
+
senderEmail: string.required(),
|
|
46
46
|
senderName: string.nullable(),
|
|
47
47
|
snoozedUntil: v.nullable(number.positiveInteger()),
|
|
48
48
|
subject: string.nullable(),
|
|
@@ -50,6 +50,7 @@ const threadBaseEntries = {
|
|
|
50
50
|
words: v.string(),
|
|
51
51
|
};
|
|
52
52
|
export const threadSchema = v.object(threadBaseEntries);
|
|
53
|
+
export const threadListSchema = threadSchema;
|
|
53
54
|
export const threadFullSchema = v.object({
|
|
54
55
|
...threadBaseEntries,
|
|
55
56
|
messages: v.array(threadMessageSchema),
|