@remit/electrodb-entities 0.0.35 → 0.0.36
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/index.cjs +51 -1
- package/index.d.cts +44 -0
- package/index.d.mts +44 -0
- package/index.d.ts +44 -0
- package/index.mjs +50 -0
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageLabel = exports.CalendarFeedToken = exports.CalendarEventIndex = exports.BodyPartStorage = exports.RawMessageStorage = exports.BodyStructureRefetch = exports.BodyPartParameter = exports.SenderSignerStanding = exports.Envelope = exports.MessageFlagPush = exports.MessagePlacementMove = exports.MessageFlag = exports.MailboxLock = exports.MailboxFlag = exports.MailboxSpecialUseEntry = exports.MailboxAttributeEntry = exports.AccountSetting = exports.ConfigImport = exports.EnvelopeAddress = exports.CalendarSuggestion = exports.MessageReference = exports.BodyPart = exports.MessageRecord = exports.Address = exports.OutboxAttachment = exports.OutboxMessage = exports.ThreadMessage = exports.CalendarObject = exports.CalendarCollection = exports.OrganizeJobRequest = exports.Label = exports.Filter = exports.Mailbox = exports.Account = exports.AccountConfig = exports.SyncWarning = exports.Quarantine = exports.AccountExportRequest = void 0;
|
|
3
|
+
exports.MessageLabel = exports.CalendarFeedToken = exports.CalendarEventIndex = exports.BodyPartStorage = exports.RawMessageStorage = exports.MessageSearchText = exports.BodyStructureRefetch = exports.BodyPartParameter = exports.SenderSignerStanding = exports.Envelope = exports.MessageFlagPush = exports.MessagePlacementMove = exports.MessageFlag = exports.MailboxLock = exports.MailboxFlag = exports.MailboxSpecialUseEntry = exports.MailboxAttributeEntry = exports.AccountSetting = exports.ConfigImport = exports.EnvelopeAddress = exports.CalendarSuggestion = exports.MessageReference = exports.BodyPart = exports.MessageRecord = exports.Address = exports.OutboxAttachment = exports.OutboxMessage = exports.ThreadMessage = exports.CalendarObject = exports.CalendarCollection = exports.OrganizeJobRequest = exports.Label = exports.Filter = exports.Mailbox = exports.Account = exports.AccountConfig = exports.SyncWarning = exports.Quarantine = exports.AccountExportRequest = void 0;
|
|
4
4
|
const electrodb_1 = require("electrodb");
|
|
5
5
|
exports.AccountExportRequest = {
|
|
6
6
|
attributes: {
|
|
@@ -4968,6 +4968,56 @@ exports.BodyStructureRefetch = {
|
|
|
4968
4968
|
version: "1"
|
|
4969
4969
|
}
|
|
4970
4970
|
};
|
|
4971
|
+
exports.MessageSearchText = {
|
|
4972
|
+
attributes: {
|
|
4973
|
+
messageId: {
|
|
4974
|
+
type: "string",
|
|
4975
|
+
required: true,
|
|
4976
|
+
validate: value => {
|
|
4977
|
+
if (typeof value === "string" && value.length < 25)
|
|
4978
|
+
throw new Error("'messageId' must be at least 25 characters");
|
|
4979
|
+
if (typeof value === "string" && value.length > 25)
|
|
4980
|
+
throw new Error("'messageId' must be at most 25 characters");
|
|
4981
|
+
return true;
|
|
4982
|
+
}
|
|
4983
|
+
},
|
|
4984
|
+
text: {
|
|
4985
|
+
type: "string",
|
|
4986
|
+
required: true
|
|
4987
|
+
},
|
|
4988
|
+
createdAt: {
|
|
4989
|
+
type: "number",
|
|
4990
|
+
readOnly: true,
|
|
4991
|
+
required: true,
|
|
4992
|
+
default: () => Date.now(),
|
|
4993
|
+
set: () => Date.now()
|
|
4994
|
+
},
|
|
4995
|
+
updatedAt: {
|
|
4996
|
+
type: "number",
|
|
4997
|
+
watch: "*",
|
|
4998
|
+
required: true,
|
|
4999
|
+
default: () => Date.now(),
|
|
5000
|
+
set: () => Date.now()
|
|
5001
|
+
}
|
|
5002
|
+
},
|
|
5003
|
+
indexes: {
|
|
5004
|
+
MessageSearchText: {
|
|
5005
|
+
pk: {
|
|
5006
|
+
field: "pk",
|
|
5007
|
+
composite: ["messageId"]
|
|
5008
|
+
},
|
|
5009
|
+
sk: {
|
|
5010
|
+
field: "sk",
|
|
5011
|
+
composite: []
|
|
5012
|
+
}
|
|
5013
|
+
}
|
|
5014
|
+
},
|
|
5015
|
+
model: {
|
|
5016
|
+
entity: "messageSearchText",
|
|
5017
|
+
service: "remit",
|
|
5018
|
+
version: "1"
|
|
5019
|
+
}
|
|
5020
|
+
};
|
|
4971
5021
|
exports.RawMessageStorage = {
|
|
4972
5022
|
attributes: {
|
|
4973
5023
|
rawStorageId: {
|
package/index.d.cts
CHANGED
|
@@ -3882,6 +3882,50 @@ export declare const BodyStructureRefetch: {
|
|
|
3882
3882
|
readonly version: "1";
|
|
3883
3883
|
};
|
|
3884
3884
|
};
|
|
3885
|
+
export declare const MessageSearchText: {
|
|
3886
|
+
readonly attributes: {
|
|
3887
|
+
readonly messageId: {
|
|
3888
|
+
readonly type: "string";
|
|
3889
|
+
readonly required: true;
|
|
3890
|
+
readonly validate: (value: unknown) => boolean;
|
|
3891
|
+
};
|
|
3892
|
+
readonly text: {
|
|
3893
|
+
readonly type: "string";
|
|
3894
|
+
readonly required: true;
|
|
3895
|
+
};
|
|
3896
|
+
readonly createdAt: {
|
|
3897
|
+
readonly type: "number";
|
|
3898
|
+
readonly readOnly: true;
|
|
3899
|
+
readonly required: true;
|
|
3900
|
+
readonly default: () => any;
|
|
3901
|
+
readonly set: () => any;
|
|
3902
|
+
};
|
|
3903
|
+
readonly updatedAt: {
|
|
3904
|
+
readonly type: "number";
|
|
3905
|
+
readonly watch: "*";
|
|
3906
|
+
readonly required: true;
|
|
3907
|
+
readonly default: () => any;
|
|
3908
|
+
readonly set: () => any;
|
|
3909
|
+
};
|
|
3910
|
+
};
|
|
3911
|
+
readonly indexes: {
|
|
3912
|
+
readonly MessageSearchText: {
|
|
3913
|
+
readonly pk: {
|
|
3914
|
+
readonly field: "pk";
|
|
3915
|
+
readonly composite: readonly ["messageId"];
|
|
3916
|
+
};
|
|
3917
|
+
readonly sk: {
|
|
3918
|
+
readonly field: "sk";
|
|
3919
|
+
readonly composite: readonly [];
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3922
|
+
};
|
|
3923
|
+
readonly model: {
|
|
3924
|
+
readonly entity: "messageSearchText";
|
|
3925
|
+
readonly service: "remit";
|
|
3926
|
+
readonly version: "1";
|
|
3927
|
+
};
|
|
3928
|
+
};
|
|
3885
3929
|
export declare const RawMessageStorage: {
|
|
3886
3930
|
readonly attributes: {
|
|
3887
3931
|
readonly rawStorageId: {
|
package/index.d.mts
CHANGED
|
@@ -3882,6 +3882,50 @@ export declare const BodyStructureRefetch: {
|
|
|
3882
3882
|
readonly version: "1";
|
|
3883
3883
|
};
|
|
3884
3884
|
};
|
|
3885
|
+
export declare const MessageSearchText: {
|
|
3886
|
+
readonly attributes: {
|
|
3887
|
+
readonly messageId: {
|
|
3888
|
+
readonly type: "string";
|
|
3889
|
+
readonly required: true;
|
|
3890
|
+
readonly validate: (value: unknown) => boolean;
|
|
3891
|
+
};
|
|
3892
|
+
readonly text: {
|
|
3893
|
+
readonly type: "string";
|
|
3894
|
+
readonly required: true;
|
|
3895
|
+
};
|
|
3896
|
+
readonly createdAt: {
|
|
3897
|
+
readonly type: "number";
|
|
3898
|
+
readonly readOnly: true;
|
|
3899
|
+
readonly required: true;
|
|
3900
|
+
readonly default: () => any;
|
|
3901
|
+
readonly set: () => any;
|
|
3902
|
+
};
|
|
3903
|
+
readonly updatedAt: {
|
|
3904
|
+
readonly type: "number";
|
|
3905
|
+
readonly watch: "*";
|
|
3906
|
+
readonly required: true;
|
|
3907
|
+
readonly default: () => any;
|
|
3908
|
+
readonly set: () => any;
|
|
3909
|
+
};
|
|
3910
|
+
};
|
|
3911
|
+
readonly indexes: {
|
|
3912
|
+
readonly MessageSearchText: {
|
|
3913
|
+
readonly pk: {
|
|
3914
|
+
readonly field: "pk";
|
|
3915
|
+
readonly composite: readonly ["messageId"];
|
|
3916
|
+
};
|
|
3917
|
+
readonly sk: {
|
|
3918
|
+
readonly field: "sk";
|
|
3919
|
+
readonly composite: readonly [];
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3922
|
+
};
|
|
3923
|
+
readonly model: {
|
|
3924
|
+
readonly entity: "messageSearchText";
|
|
3925
|
+
readonly service: "remit";
|
|
3926
|
+
readonly version: "1";
|
|
3927
|
+
};
|
|
3928
|
+
};
|
|
3885
3929
|
export declare const RawMessageStorage: {
|
|
3886
3930
|
readonly attributes: {
|
|
3887
3931
|
readonly rawStorageId: {
|
package/index.d.ts
CHANGED
|
@@ -3882,6 +3882,50 @@ export declare const BodyStructureRefetch: {
|
|
|
3882
3882
|
readonly version: "1";
|
|
3883
3883
|
};
|
|
3884
3884
|
};
|
|
3885
|
+
export declare const MessageSearchText: {
|
|
3886
|
+
readonly attributes: {
|
|
3887
|
+
readonly messageId: {
|
|
3888
|
+
readonly type: "string";
|
|
3889
|
+
readonly required: true;
|
|
3890
|
+
readonly validate: (value: unknown) => boolean;
|
|
3891
|
+
};
|
|
3892
|
+
readonly text: {
|
|
3893
|
+
readonly type: "string";
|
|
3894
|
+
readonly required: true;
|
|
3895
|
+
};
|
|
3896
|
+
readonly createdAt: {
|
|
3897
|
+
readonly type: "number";
|
|
3898
|
+
readonly readOnly: true;
|
|
3899
|
+
readonly required: true;
|
|
3900
|
+
readonly default: () => any;
|
|
3901
|
+
readonly set: () => any;
|
|
3902
|
+
};
|
|
3903
|
+
readonly updatedAt: {
|
|
3904
|
+
readonly type: "number";
|
|
3905
|
+
readonly watch: "*";
|
|
3906
|
+
readonly required: true;
|
|
3907
|
+
readonly default: () => any;
|
|
3908
|
+
readonly set: () => any;
|
|
3909
|
+
};
|
|
3910
|
+
};
|
|
3911
|
+
readonly indexes: {
|
|
3912
|
+
readonly MessageSearchText: {
|
|
3913
|
+
readonly pk: {
|
|
3914
|
+
readonly field: "pk";
|
|
3915
|
+
readonly composite: readonly ["messageId"];
|
|
3916
|
+
};
|
|
3917
|
+
readonly sk: {
|
|
3918
|
+
readonly field: "sk";
|
|
3919
|
+
readonly composite: readonly [];
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3922
|
+
};
|
|
3923
|
+
readonly model: {
|
|
3924
|
+
readonly entity: "messageSearchText";
|
|
3925
|
+
readonly service: "remit";
|
|
3926
|
+
readonly version: "1";
|
|
3927
|
+
};
|
|
3928
|
+
};
|
|
3885
3929
|
export declare const RawMessageStorage: {
|
|
3886
3930
|
readonly attributes: {
|
|
3887
3931
|
readonly rawStorageId: {
|
package/index.mjs
CHANGED
|
@@ -4965,6 +4965,56 @@ export const BodyStructureRefetch = {
|
|
|
4965
4965
|
version: "1"
|
|
4966
4966
|
}
|
|
4967
4967
|
};
|
|
4968
|
+
export const MessageSearchText = {
|
|
4969
|
+
attributes: {
|
|
4970
|
+
messageId: {
|
|
4971
|
+
type: "string",
|
|
4972
|
+
required: true,
|
|
4973
|
+
validate: value => {
|
|
4974
|
+
if (typeof value === "string" && value.length < 25)
|
|
4975
|
+
throw new Error("'messageId' must be at least 25 characters");
|
|
4976
|
+
if (typeof value === "string" && value.length > 25)
|
|
4977
|
+
throw new Error("'messageId' must be at most 25 characters");
|
|
4978
|
+
return true;
|
|
4979
|
+
}
|
|
4980
|
+
},
|
|
4981
|
+
text: {
|
|
4982
|
+
type: "string",
|
|
4983
|
+
required: true
|
|
4984
|
+
},
|
|
4985
|
+
createdAt: {
|
|
4986
|
+
type: "number",
|
|
4987
|
+
readOnly: true,
|
|
4988
|
+
required: true,
|
|
4989
|
+
default: () => Date.now(),
|
|
4990
|
+
set: () => Date.now()
|
|
4991
|
+
},
|
|
4992
|
+
updatedAt: {
|
|
4993
|
+
type: "number",
|
|
4994
|
+
watch: "*",
|
|
4995
|
+
required: true,
|
|
4996
|
+
default: () => Date.now(),
|
|
4997
|
+
set: () => Date.now()
|
|
4998
|
+
}
|
|
4999
|
+
},
|
|
5000
|
+
indexes: {
|
|
5001
|
+
MessageSearchText: {
|
|
5002
|
+
pk: {
|
|
5003
|
+
field: "pk",
|
|
5004
|
+
composite: ["messageId"]
|
|
5005
|
+
},
|
|
5006
|
+
sk: {
|
|
5007
|
+
field: "sk",
|
|
5008
|
+
composite: []
|
|
5009
|
+
}
|
|
5010
|
+
}
|
|
5011
|
+
},
|
|
5012
|
+
model: {
|
|
5013
|
+
entity: "messageSearchText",
|
|
5014
|
+
service: "remit",
|
|
5015
|
+
version: "1"
|
|
5016
|
+
}
|
|
5017
|
+
};
|
|
4968
5018
|
export const RawMessageStorage = {
|
|
4969
5019
|
attributes: {
|
|
4970
5020
|
rawStorageId: {
|