@remit/data-ports 0.0.91 → 0.0.93
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/account-settings.d.ts +4 -2
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +1 -4
- package/package.json +2 -2
|
@@ -363,9 +363,11 @@ export type AnyAccountSettingValue = z.infer<typeof BooleanSettingSchema | typeo
|
|
|
363
363
|
*/
|
|
364
364
|
export declare function parseAccountSettingValue<N extends AccountSettingNameValue>(name: N, value: unknown): AccountSettingValueFor<N>;
|
|
365
365
|
export declare function parseAccountSettingValue(name: StoredSettingName, value: unknown): AnyAccountSettingValue;
|
|
366
|
+
type SafeParseResult<T> = ReturnType<z.ZodType<T>["safeParse"]>;
|
|
366
367
|
/**
|
|
367
368
|
* Non-throwing variant: returns the zod SafeParse result so a caller with a
|
|
368
369
|
* recovery path can branch on `success`. Accepts composite names like above.
|
|
369
370
|
*/
|
|
370
|
-
export declare function safeParseAccountSettingValue<N extends AccountSettingNameValue>(name: N, value: unknown):
|
|
371
|
-
export declare function safeParseAccountSettingValue(name: StoredSettingName, value: unknown):
|
|
371
|
+
export declare function safeParseAccountSettingValue<N extends AccountSettingNameValue>(name: N, value: unknown): SafeParseResult<AccountSettingValueFor<N>>;
|
|
372
|
+
export declare function safeParseAccountSettingValue(name: StoredSettingName, value: unknown): SafeParseResult<AnyAccountSettingValue>;
|
|
373
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -37,4 +37,4 @@ export type { IThreadMessageRepository } from "./interfaces/thread-message.js";
|
|
|
37
37
|
export type { MessageSettlementFields } from "./message-settlement.js";
|
|
38
38
|
export { abandonedMutationOf, hasAbandonedDelete, hasAbandonedMove, } from "./message-settlement.js";
|
|
39
39
|
export { FILTER_NO_ACTION, isSenderMuted, isSenderMuteFilter, } from "./sender-mute.js";
|
|
40
|
-
export type { AccountConfigDescription, AccountConfigItem, AccountDescription, AccountExportRequestItem, AccountItem, AccountSchedulerPage, AccountSettingItem, AccountSettingValue, AddressFlags, AddressItem, BodyPartItem, BodyPartParameterItem, BodyPartParameterUpsertInput,
|
|
40
|
+
export type { AccountConfigDescription, AccountConfigItem, AccountDescription, AccountExportRequestItem, AccountItem, AccountSchedulerPage, AccountSettingItem, AccountSettingValue, AddressFlags, AddressItem, BodyPartItem, BodyPartParameterItem, BodyPartParameterUpsertInput, BodyPartUpsertInput, CalendarCollectionItem, CalendarEventIndexItem, CalendarFeedTokenItem, CalendarObjectItem, CalendarOccurrenceInput, CalendarSuggestionItem, ConfigImportItem, ConfigImportUnresolvedRefItem, CreateAccountConfigInput, CreateAccountExportRequestInput, CreateAccountInput, CreateAddressInput, CreateCalendarCollectionInput, CreateConfigImportInput, CreateEnvelopeAddressInput, CreateEnvelopeInput, CreateFilterInput, CreateLabelInput, CreateMailboxInput, CreateMailboxResult, CreateMessageFlagInput, CreateMessageInput, CreateMessageLabelInput, CreateOrganizeJobRequestInput, CreateOutboxMessageInput, CreateThreadMessageInput, EnvelopeAddressItem, EnvelopeItem, FilterItem, FlagsMergePatch, LabelItem, ListOptions, MailboxItem, MailboxLockItem, MailboxSpecialUseItem, MailboxSpecialUseValue, MailboxStatePredicate, MailboxSubtreeTransitionIntent, MailboxTransitionIntent, MailboxTransitionWrite, MessageData, MessageDescription, MessageFlagItem, MessageFlagPushItem, MessageIdSource, MessageItem, MessageLabelItem, MessagePlacementMoveItem, MessageReferenceInput, MessageReferenceItem, ObserveSenderSignerStandingInput, OrganizeJobRequestItem, OutboxAttachmentItem, OutboxMessageItem, PlacementPredicate, PlacementTransitionInput, PutCalendarFeedTokenInput, PutCalendarObjectInput, PutCalendarSuggestionInput, PutMessageFlagPushInput, PutMessagePlacementMoveInput, QuarantineItem, QuarantineMimeNodeItem, QuarantineUpsertInput, RawMessageStorageItem, RemovableAccountField, ResultList, SearchOptions, SenderSignerStandingItem, SyncWarningItem, SyncWarningKey, ThreadMessageFieldTerm, ThreadMessageItem, UpdateAccountConfigInput, UpdateAccountExportRequestInput, UpdateAccountInput, UpdateAddressInput, UpdateCalendarCollectionInput, UpdateConfigImportInput, UpdateEnvelopeInput, UpdateFilterInput, UpdateLabelInput, UpdateMailboxInput, UpdateMessageInput, UpdateOrganizeJobRequestInput, UpdateOutboxMessageInput, UpdateThreadMessageInput, UpsertAccountSettingInput, WithMailboxLockResult, } from "./types.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccountConfigSchema, AccountSchema, AddressSchema, BodyPartParameterSchema, BodyPartSchema,
|
|
1
|
+
import type { AccountConfigSchema, AccountSchema, AddressSchema, BodyPartParameterSchema, BodyPartSchema, CalendarCollectionSchema, CalendarEventIndexSchema, CalendarFeedTokenSchema, CalendarObjectSchema, CalendarSuggestionSchema, ConfigImportSchema, ConfigImportUnresolvedRefSchema, EnvelopeAddressSchema, EnvelopeSchema, FilterSchema, LabelSchema, MailboxLockSchema, MailboxSchema, MailboxSpecialUseEntrySchema, MailboxSpecialUseSchema, MessageFlagPushSchema, MessageFlagSchema, MessageLabelSchema, MessagePlacementMoveSchema, MessageRecordSchema, OrganizeJobRequestSchema, OutboxAttachmentSchema, OutboxMessageSchema, QuarantineSchema, RawMessageStorageSchema, SenderSignerStandingSchema, SyncWarningSchema, ThreadMessageSchema } from "@remit/api-zod-schemas";
|
|
2
2
|
import type { ReferenceType } from "@remit/domain-enums";
|
|
3
3
|
import type { z } from "zod";
|
|
4
4
|
export type ResultList<T> = {
|
|
@@ -44,7 +44,6 @@ export type MessageReferenceInput = Pick<MessageReferenceItem, "messageIdValue"
|
|
|
44
44
|
export type EnvelopeAddressItem = z.infer<typeof EnvelopeAddressSchema>;
|
|
45
45
|
export type BodyPartParameterItem = z.infer<typeof BodyPartParameterSchema>;
|
|
46
46
|
export type RawMessageStorageItem = z.infer<typeof RawMessageStorageSchema>;
|
|
47
|
-
export type BodyPartStorageItem = z.infer<typeof BodyPartStorageSchema>;
|
|
48
47
|
export type EnvelopeItem = z.infer<typeof EnvelopeSchema>;
|
|
49
48
|
export type MailboxLockItem = z.infer<typeof MailboxLockSchema>;
|
|
50
49
|
export type MailboxSpecialUseItem = z.infer<typeof MailboxSpecialUseEntrySchema>;
|
|
@@ -133,7 +132,6 @@ export type MessageData = {
|
|
|
133
132
|
bodyPart: BodyPartItem[];
|
|
134
133
|
bodyPartParameter: BodyPartParameterItem[];
|
|
135
134
|
rawMessageStorage: RawMessageStorageItem[];
|
|
136
|
-
bodyPartStorage: BodyPartStorageItem[];
|
|
137
135
|
};
|
|
138
136
|
export type MessageDescription = {
|
|
139
137
|
message: MessageItem[];
|
|
@@ -144,7 +142,6 @@ export type MessageDescription = {
|
|
|
144
142
|
bodyPart: BodyPartItem[];
|
|
145
143
|
bodyPartParameter: BodyPartParameterItem[];
|
|
146
144
|
rawMessageStorage: RawMessageStorageItem[];
|
|
147
|
-
bodyPartStorage: BodyPartStorageItem[];
|
|
148
145
|
};
|
|
149
146
|
export type WithMailboxLockResult<T> = {
|
|
150
147
|
executed: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remit/data-ports",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.93",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@remit/api-zod-schemas": "*"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"zod": "^3.25.0"
|
|
34
|
+
"zod": "^3.25.0 || ^4.6.7"
|
|
35
35
|
},
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"publishConfig": {
|