@remit/electrodb-entities 0.0.36 → 0.0.38
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 +1 -136
- package/index.d.cts +0 -101
- package/index.d.mts +0 -101
- package/index.d.ts +0 -101
- package/index.mjs +0 -135
- 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.
|
|
3
|
+
exports.MessageLabel = exports.CalendarFeedToken = exports.CalendarEventIndex = 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: {
|
|
@@ -5143,141 +5143,6 @@ exports.RawMessageStorage = {
|
|
|
5143
5143
|
version: "1"
|
|
5144
5144
|
}
|
|
5145
5145
|
};
|
|
5146
|
-
exports.BodyPartStorage = {
|
|
5147
|
-
attributes: {
|
|
5148
|
-
bodyPartStorageId: {
|
|
5149
|
-
type: "string",
|
|
5150
|
-
required: true,
|
|
5151
|
-
validate: value => {
|
|
5152
|
-
if (typeof value === "string" && value.length < 25)
|
|
5153
|
-
throw new Error("'bodyPartStorageId' must be at least 25 characters");
|
|
5154
|
-
if (typeof value === "string" && value.length > 25)
|
|
5155
|
-
throw new Error("'bodyPartStorageId' must be at most 25 characters");
|
|
5156
|
-
return true;
|
|
5157
|
-
}
|
|
5158
|
-
},
|
|
5159
|
-
messageId: {
|
|
5160
|
-
type: "string",
|
|
5161
|
-
required: true,
|
|
5162
|
-
validate: value => {
|
|
5163
|
-
if (typeof value === "string" && value.length < 25)
|
|
5164
|
-
throw new Error("'messageId' must be at least 25 characters");
|
|
5165
|
-
if (typeof value === "string" && value.length > 25)
|
|
5166
|
-
throw new Error("'messageId' must be at most 25 characters");
|
|
5167
|
-
return true;
|
|
5168
|
-
}
|
|
5169
|
-
},
|
|
5170
|
-
bodyPartId: {
|
|
5171
|
-
type: "string",
|
|
5172
|
-
required: true,
|
|
5173
|
-
validate: value => {
|
|
5174
|
-
if (typeof value === "string" && value.length < 25)
|
|
5175
|
-
throw new Error("'bodyPartId' must be at least 25 characters");
|
|
5176
|
-
if (typeof value === "string" && value.length > 25)
|
|
5177
|
-
throw new Error("'bodyPartId' must be at most 25 characters");
|
|
5178
|
-
return true;
|
|
5179
|
-
}
|
|
5180
|
-
},
|
|
5181
|
-
storageType: {
|
|
5182
|
-
type: ["s3", "filesystem", "inline", "database"],
|
|
5183
|
-
required: true
|
|
5184
|
-
},
|
|
5185
|
-
storageLocation: {
|
|
5186
|
-
type: "string",
|
|
5187
|
-
required: true
|
|
5188
|
-
},
|
|
5189
|
-
storageKey: {
|
|
5190
|
-
type: "string",
|
|
5191
|
-
required: true
|
|
5192
|
-
},
|
|
5193
|
-
decodedSizeBytes: {
|
|
5194
|
-
type: "number",
|
|
5195
|
-
required: true,
|
|
5196
|
-
validate: value => {
|
|
5197
|
-
if (typeof value === "number" && value < 0)
|
|
5198
|
-
throw new Error("'decodedSizeBytes' must be at least 0");
|
|
5199
|
-
if (typeof value === "number" && !Number.isInteger(value))
|
|
5200
|
-
throw new Error("'decodedSizeBytes' must be an integer");
|
|
5201
|
-
return true;
|
|
5202
|
-
}
|
|
5203
|
-
},
|
|
5204
|
-
checksumSha256: {
|
|
5205
|
-
type: "string",
|
|
5206
|
-
required: true,
|
|
5207
|
-
validate: value => {
|
|
5208
|
-
if (typeof value === "string" && value.length < 64)
|
|
5209
|
-
throw new Error("'checksumSha256' must be at least 64 characters");
|
|
5210
|
-
if (typeof value === "string" && value.length > 64)
|
|
5211
|
-
throw new Error("'checksumSha256' must be at most 64 characters");
|
|
5212
|
-
return true;
|
|
5213
|
-
}
|
|
5214
|
-
},
|
|
5215
|
-
contentEncoding: {
|
|
5216
|
-
type: ["none", "gzip", "zstd"],
|
|
5217
|
-
required: true
|
|
5218
|
-
},
|
|
5219
|
-
isDeduped: {
|
|
5220
|
-
type: "boolean",
|
|
5221
|
-
required: true
|
|
5222
|
-
},
|
|
5223
|
-
dedupHash: {
|
|
5224
|
-
type: "string",
|
|
5225
|
-
required: false
|
|
5226
|
-
},
|
|
5227
|
-
storedAt: {
|
|
5228
|
-
type: "number",
|
|
5229
|
-
required: true,
|
|
5230
|
-
validate: value => {
|
|
5231
|
-
if (typeof value === "number" && !Number.isInteger(value))
|
|
5232
|
-
throw new Error("'storedAt' must be an integer");
|
|
5233
|
-
return true;
|
|
5234
|
-
}
|
|
5235
|
-
},
|
|
5236
|
-
createdAt: {
|
|
5237
|
-
type: "number",
|
|
5238
|
-
readOnly: true,
|
|
5239
|
-
required: true,
|
|
5240
|
-
default: () => Date.now(),
|
|
5241
|
-
set: () => Date.now()
|
|
5242
|
-
},
|
|
5243
|
-
updatedAt: {
|
|
5244
|
-
type: "number",
|
|
5245
|
-
watch: "*",
|
|
5246
|
-
required: true,
|
|
5247
|
-
default: () => Date.now(),
|
|
5248
|
-
set: () => Date.now()
|
|
5249
|
-
}
|
|
5250
|
-
},
|
|
5251
|
-
indexes: {
|
|
5252
|
-
byMessageId: {
|
|
5253
|
-
pk: {
|
|
5254
|
-
field: "gsi2pk",
|
|
5255
|
-
composite: ["messageId"]
|
|
5256
|
-
},
|
|
5257
|
-
sk: {
|
|
5258
|
-
field: "gsi2sk",
|
|
5259
|
-
composite: ["bodyPartStorageId"]
|
|
5260
|
-
},
|
|
5261
|
-
index: "gsi2",
|
|
5262
|
-
collection: "messageData"
|
|
5263
|
-
},
|
|
5264
|
-
BodyPartStorage: {
|
|
5265
|
-
pk: {
|
|
5266
|
-
field: "pk",
|
|
5267
|
-
composite: ["bodyPartStorageId"]
|
|
5268
|
-
},
|
|
5269
|
-
sk: {
|
|
5270
|
-
field: "sk",
|
|
5271
|
-
composite: []
|
|
5272
|
-
}
|
|
5273
|
-
}
|
|
5274
|
-
},
|
|
5275
|
-
model: {
|
|
5276
|
-
entity: "bodyPartStorage",
|
|
5277
|
-
service: "remit",
|
|
5278
|
-
version: "1"
|
|
5279
|
-
}
|
|
5280
|
-
};
|
|
5281
5146
|
exports.CalendarEventIndex = {
|
|
5282
5147
|
attributes: {
|
|
5283
5148
|
calendarId: {
|
package/index.d.cts
CHANGED
|
@@ -4019,107 +4019,6 @@ export declare const RawMessageStorage: {
|
|
|
4019
4019
|
readonly version: "1";
|
|
4020
4020
|
};
|
|
4021
4021
|
};
|
|
4022
|
-
export declare const BodyPartStorage: {
|
|
4023
|
-
readonly attributes: {
|
|
4024
|
-
readonly bodyPartStorageId: {
|
|
4025
|
-
readonly type: "string";
|
|
4026
|
-
readonly required: true;
|
|
4027
|
-
readonly validate: (value: unknown) => boolean;
|
|
4028
|
-
};
|
|
4029
|
-
readonly messageId: {
|
|
4030
|
-
readonly type: "string";
|
|
4031
|
-
readonly required: true;
|
|
4032
|
-
readonly validate: (value: unknown) => boolean;
|
|
4033
|
-
};
|
|
4034
|
-
readonly bodyPartId: {
|
|
4035
|
-
readonly type: "string";
|
|
4036
|
-
readonly required: true;
|
|
4037
|
-
readonly validate: (value: unknown) => boolean;
|
|
4038
|
-
};
|
|
4039
|
-
readonly storageType: {
|
|
4040
|
-
readonly type: readonly ["s3", "filesystem", "inline", "database"];
|
|
4041
|
-
readonly required: true;
|
|
4042
|
-
};
|
|
4043
|
-
readonly storageLocation: {
|
|
4044
|
-
readonly type: "string";
|
|
4045
|
-
readonly required: true;
|
|
4046
|
-
};
|
|
4047
|
-
readonly storageKey: {
|
|
4048
|
-
readonly type: "string";
|
|
4049
|
-
readonly required: true;
|
|
4050
|
-
};
|
|
4051
|
-
readonly decodedSizeBytes: {
|
|
4052
|
-
readonly type: "number";
|
|
4053
|
-
readonly required: true;
|
|
4054
|
-
readonly validate: (value: unknown) => boolean;
|
|
4055
|
-
};
|
|
4056
|
-
readonly checksumSha256: {
|
|
4057
|
-
readonly type: "string";
|
|
4058
|
-
readonly required: true;
|
|
4059
|
-
readonly validate: (value: unknown) => boolean;
|
|
4060
|
-
};
|
|
4061
|
-
readonly contentEncoding: {
|
|
4062
|
-
readonly type: readonly ["none", "gzip", "zstd"];
|
|
4063
|
-
readonly required: true;
|
|
4064
|
-
};
|
|
4065
|
-
readonly isDeduped: {
|
|
4066
|
-
readonly type: "boolean";
|
|
4067
|
-
readonly required: true;
|
|
4068
|
-
};
|
|
4069
|
-
readonly dedupHash: {
|
|
4070
|
-
readonly type: "string";
|
|
4071
|
-
readonly required: false;
|
|
4072
|
-
};
|
|
4073
|
-
readonly storedAt: {
|
|
4074
|
-
readonly type: "number";
|
|
4075
|
-
readonly required: true;
|
|
4076
|
-
readonly validate: (value: unknown) => boolean;
|
|
4077
|
-
};
|
|
4078
|
-
readonly createdAt: {
|
|
4079
|
-
readonly type: "number";
|
|
4080
|
-
readonly readOnly: true;
|
|
4081
|
-
readonly required: true;
|
|
4082
|
-
readonly default: () => any;
|
|
4083
|
-
readonly set: () => any;
|
|
4084
|
-
};
|
|
4085
|
-
readonly updatedAt: {
|
|
4086
|
-
readonly type: "number";
|
|
4087
|
-
readonly watch: "*";
|
|
4088
|
-
readonly required: true;
|
|
4089
|
-
readonly default: () => any;
|
|
4090
|
-
readonly set: () => any;
|
|
4091
|
-
};
|
|
4092
|
-
};
|
|
4093
|
-
readonly indexes: {
|
|
4094
|
-
readonly byMessageId: {
|
|
4095
|
-
readonly pk: {
|
|
4096
|
-
readonly field: "gsi2pk";
|
|
4097
|
-
readonly composite: readonly ["messageId"];
|
|
4098
|
-
};
|
|
4099
|
-
readonly sk: {
|
|
4100
|
-
readonly field: "gsi2sk";
|
|
4101
|
-
readonly composite: readonly ["bodyPartStorageId"];
|
|
4102
|
-
};
|
|
4103
|
-
readonly index: "gsi2";
|
|
4104
|
-
readonly collection: "messageData";
|
|
4105
|
-
};
|
|
4106
|
-
readonly BodyPartStorage: {
|
|
4107
|
-
readonly pk: {
|
|
4108
|
-
readonly field: "pk";
|
|
4109
|
-
readonly composite: readonly ["bodyPartStorageId"];
|
|
4110
|
-
};
|
|
4111
|
-
readonly sk: {
|
|
4112
|
-
readonly field: "sk";
|
|
4113
|
-
readonly composite: readonly [];
|
|
4114
|
-
};
|
|
4115
|
-
};
|
|
4116
|
-
};
|
|
4117
|
-
readonly model: {
|
|
4118
|
-
readonly entity: "bodyPartStorage";
|
|
4119
|
-
readonly service: "remit";
|
|
4120
|
-
readonly version: "1";
|
|
4121
|
-
};
|
|
4122
|
-
};
|
|
4123
4022
|
export declare const CalendarEventIndex: {
|
|
4124
4023
|
readonly attributes: {
|
|
4125
4024
|
readonly calendarId: {
|
package/index.d.mts
CHANGED
|
@@ -4019,107 +4019,6 @@ export declare const RawMessageStorage: {
|
|
|
4019
4019
|
readonly version: "1";
|
|
4020
4020
|
};
|
|
4021
4021
|
};
|
|
4022
|
-
export declare const BodyPartStorage: {
|
|
4023
|
-
readonly attributes: {
|
|
4024
|
-
readonly bodyPartStorageId: {
|
|
4025
|
-
readonly type: "string";
|
|
4026
|
-
readonly required: true;
|
|
4027
|
-
readonly validate: (value: unknown) => boolean;
|
|
4028
|
-
};
|
|
4029
|
-
readonly messageId: {
|
|
4030
|
-
readonly type: "string";
|
|
4031
|
-
readonly required: true;
|
|
4032
|
-
readonly validate: (value: unknown) => boolean;
|
|
4033
|
-
};
|
|
4034
|
-
readonly bodyPartId: {
|
|
4035
|
-
readonly type: "string";
|
|
4036
|
-
readonly required: true;
|
|
4037
|
-
readonly validate: (value: unknown) => boolean;
|
|
4038
|
-
};
|
|
4039
|
-
readonly storageType: {
|
|
4040
|
-
readonly type: readonly ["s3", "filesystem", "inline", "database"];
|
|
4041
|
-
readonly required: true;
|
|
4042
|
-
};
|
|
4043
|
-
readonly storageLocation: {
|
|
4044
|
-
readonly type: "string";
|
|
4045
|
-
readonly required: true;
|
|
4046
|
-
};
|
|
4047
|
-
readonly storageKey: {
|
|
4048
|
-
readonly type: "string";
|
|
4049
|
-
readonly required: true;
|
|
4050
|
-
};
|
|
4051
|
-
readonly decodedSizeBytes: {
|
|
4052
|
-
readonly type: "number";
|
|
4053
|
-
readonly required: true;
|
|
4054
|
-
readonly validate: (value: unknown) => boolean;
|
|
4055
|
-
};
|
|
4056
|
-
readonly checksumSha256: {
|
|
4057
|
-
readonly type: "string";
|
|
4058
|
-
readonly required: true;
|
|
4059
|
-
readonly validate: (value: unknown) => boolean;
|
|
4060
|
-
};
|
|
4061
|
-
readonly contentEncoding: {
|
|
4062
|
-
readonly type: readonly ["none", "gzip", "zstd"];
|
|
4063
|
-
readonly required: true;
|
|
4064
|
-
};
|
|
4065
|
-
readonly isDeduped: {
|
|
4066
|
-
readonly type: "boolean";
|
|
4067
|
-
readonly required: true;
|
|
4068
|
-
};
|
|
4069
|
-
readonly dedupHash: {
|
|
4070
|
-
readonly type: "string";
|
|
4071
|
-
readonly required: false;
|
|
4072
|
-
};
|
|
4073
|
-
readonly storedAt: {
|
|
4074
|
-
readonly type: "number";
|
|
4075
|
-
readonly required: true;
|
|
4076
|
-
readonly validate: (value: unknown) => boolean;
|
|
4077
|
-
};
|
|
4078
|
-
readonly createdAt: {
|
|
4079
|
-
readonly type: "number";
|
|
4080
|
-
readonly readOnly: true;
|
|
4081
|
-
readonly required: true;
|
|
4082
|
-
readonly default: () => any;
|
|
4083
|
-
readonly set: () => any;
|
|
4084
|
-
};
|
|
4085
|
-
readonly updatedAt: {
|
|
4086
|
-
readonly type: "number";
|
|
4087
|
-
readonly watch: "*";
|
|
4088
|
-
readonly required: true;
|
|
4089
|
-
readonly default: () => any;
|
|
4090
|
-
readonly set: () => any;
|
|
4091
|
-
};
|
|
4092
|
-
};
|
|
4093
|
-
readonly indexes: {
|
|
4094
|
-
readonly byMessageId: {
|
|
4095
|
-
readonly pk: {
|
|
4096
|
-
readonly field: "gsi2pk";
|
|
4097
|
-
readonly composite: readonly ["messageId"];
|
|
4098
|
-
};
|
|
4099
|
-
readonly sk: {
|
|
4100
|
-
readonly field: "gsi2sk";
|
|
4101
|
-
readonly composite: readonly ["bodyPartStorageId"];
|
|
4102
|
-
};
|
|
4103
|
-
readonly index: "gsi2";
|
|
4104
|
-
readonly collection: "messageData";
|
|
4105
|
-
};
|
|
4106
|
-
readonly BodyPartStorage: {
|
|
4107
|
-
readonly pk: {
|
|
4108
|
-
readonly field: "pk";
|
|
4109
|
-
readonly composite: readonly ["bodyPartStorageId"];
|
|
4110
|
-
};
|
|
4111
|
-
readonly sk: {
|
|
4112
|
-
readonly field: "sk";
|
|
4113
|
-
readonly composite: readonly [];
|
|
4114
|
-
};
|
|
4115
|
-
};
|
|
4116
|
-
};
|
|
4117
|
-
readonly model: {
|
|
4118
|
-
readonly entity: "bodyPartStorage";
|
|
4119
|
-
readonly service: "remit";
|
|
4120
|
-
readonly version: "1";
|
|
4121
|
-
};
|
|
4122
|
-
};
|
|
4123
4022
|
export declare const CalendarEventIndex: {
|
|
4124
4023
|
readonly attributes: {
|
|
4125
4024
|
readonly calendarId: {
|
package/index.d.ts
CHANGED
|
@@ -4019,107 +4019,6 @@ export declare const RawMessageStorage: {
|
|
|
4019
4019
|
readonly version: "1";
|
|
4020
4020
|
};
|
|
4021
4021
|
};
|
|
4022
|
-
export declare const BodyPartStorage: {
|
|
4023
|
-
readonly attributes: {
|
|
4024
|
-
readonly bodyPartStorageId: {
|
|
4025
|
-
readonly type: "string";
|
|
4026
|
-
readonly required: true;
|
|
4027
|
-
readonly validate: (value: unknown) => boolean;
|
|
4028
|
-
};
|
|
4029
|
-
readonly messageId: {
|
|
4030
|
-
readonly type: "string";
|
|
4031
|
-
readonly required: true;
|
|
4032
|
-
readonly validate: (value: unknown) => boolean;
|
|
4033
|
-
};
|
|
4034
|
-
readonly bodyPartId: {
|
|
4035
|
-
readonly type: "string";
|
|
4036
|
-
readonly required: true;
|
|
4037
|
-
readonly validate: (value: unknown) => boolean;
|
|
4038
|
-
};
|
|
4039
|
-
readonly storageType: {
|
|
4040
|
-
readonly type: readonly ["s3", "filesystem", "inline", "database"];
|
|
4041
|
-
readonly required: true;
|
|
4042
|
-
};
|
|
4043
|
-
readonly storageLocation: {
|
|
4044
|
-
readonly type: "string";
|
|
4045
|
-
readonly required: true;
|
|
4046
|
-
};
|
|
4047
|
-
readonly storageKey: {
|
|
4048
|
-
readonly type: "string";
|
|
4049
|
-
readonly required: true;
|
|
4050
|
-
};
|
|
4051
|
-
readonly decodedSizeBytes: {
|
|
4052
|
-
readonly type: "number";
|
|
4053
|
-
readonly required: true;
|
|
4054
|
-
readonly validate: (value: unknown) => boolean;
|
|
4055
|
-
};
|
|
4056
|
-
readonly checksumSha256: {
|
|
4057
|
-
readonly type: "string";
|
|
4058
|
-
readonly required: true;
|
|
4059
|
-
readonly validate: (value: unknown) => boolean;
|
|
4060
|
-
};
|
|
4061
|
-
readonly contentEncoding: {
|
|
4062
|
-
readonly type: readonly ["none", "gzip", "zstd"];
|
|
4063
|
-
readonly required: true;
|
|
4064
|
-
};
|
|
4065
|
-
readonly isDeduped: {
|
|
4066
|
-
readonly type: "boolean";
|
|
4067
|
-
readonly required: true;
|
|
4068
|
-
};
|
|
4069
|
-
readonly dedupHash: {
|
|
4070
|
-
readonly type: "string";
|
|
4071
|
-
readonly required: false;
|
|
4072
|
-
};
|
|
4073
|
-
readonly storedAt: {
|
|
4074
|
-
readonly type: "number";
|
|
4075
|
-
readonly required: true;
|
|
4076
|
-
readonly validate: (value: unknown) => boolean;
|
|
4077
|
-
};
|
|
4078
|
-
readonly createdAt: {
|
|
4079
|
-
readonly type: "number";
|
|
4080
|
-
readonly readOnly: true;
|
|
4081
|
-
readonly required: true;
|
|
4082
|
-
readonly default: () => any;
|
|
4083
|
-
readonly set: () => any;
|
|
4084
|
-
};
|
|
4085
|
-
readonly updatedAt: {
|
|
4086
|
-
readonly type: "number";
|
|
4087
|
-
readonly watch: "*";
|
|
4088
|
-
readonly required: true;
|
|
4089
|
-
readonly default: () => any;
|
|
4090
|
-
readonly set: () => any;
|
|
4091
|
-
};
|
|
4092
|
-
};
|
|
4093
|
-
readonly indexes: {
|
|
4094
|
-
readonly byMessageId: {
|
|
4095
|
-
readonly pk: {
|
|
4096
|
-
readonly field: "gsi2pk";
|
|
4097
|
-
readonly composite: readonly ["messageId"];
|
|
4098
|
-
};
|
|
4099
|
-
readonly sk: {
|
|
4100
|
-
readonly field: "gsi2sk";
|
|
4101
|
-
readonly composite: readonly ["bodyPartStorageId"];
|
|
4102
|
-
};
|
|
4103
|
-
readonly index: "gsi2";
|
|
4104
|
-
readonly collection: "messageData";
|
|
4105
|
-
};
|
|
4106
|
-
readonly BodyPartStorage: {
|
|
4107
|
-
readonly pk: {
|
|
4108
|
-
readonly field: "pk";
|
|
4109
|
-
readonly composite: readonly ["bodyPartStorageId"];
|
|
4110
|
-
};
|
|
4111
|
-
readonly sk: {
|
|
4112
|
-
readonly field: "sk";
|
|
4113
|
-
readonly composite: readonly [];
|
|
4114
|
-
};
|
|
4115
|
-
};
|
|
4116
|
-
};
|
|
4117
|
-
readonly model: {
|
|
4118
|
-
readonly entity: "bodyPartStorage";
|
|
4119
|
-
readonly service: "remit";
|
|
4120
|
-
readonly version: "1";
|
|
4121
|
-
};
|
|
4122
|
-
};
|
|
4123
4022
|
export declare const CalendarEventIndex: {
|
|
4124
4023
|
readonly attributes: {
|
|
4125
4024
|
readonly calendarId: {
|
package/index.mjs
CHANGED
|
@@ -5140,141 +5140,6 @@ export const RawMessageStorage = {
|
|
|
5140
5140
|
version: "1"
|
|
5141
5141
|
}
|
|
5142
5142
|
};
|
|
5143
|
-
export const BodyPartStorage = {
|
|
5144
|
-
attributes: {
|
|
5145
|
-
bodyPartStorageId: {
|
|
5146
|
-
type: "string",
|
|
5147
|
-
required: true,
|
|
5148
|
-
validate: value => {
|
|
5149
|
-
if (typeof value === "string" && value.length < 25)
|
|
5150
|
-
throw new Error("'bodyPartStorageId' must be at least 25 characters");
|
|
5151
|
-
if (typeof value === "string" && value.length > 25)
|
|
5152
|
-
throw new Error("'bodyPartStorageId' must be at most 25 characters");
|
|
5153
|
-
return true;
|
|
5154
|
-
}
|
|
5155
|
-
},
|
|
5156
|
-
messageId: {
|
|
5157
|
-
type: "string",
|
|
5158
|
-
required: true,
|
|
5159
|
-
validate: value => {
|
|
5160
|
-
if (typeof value === "string" && value.length < 25)
|
|
5161
|
-
throw new Error("'messageId' must be at least 25 characters");
|
|
5162
|
-
if (typeof value === "string" && value.length > 25)
|
|
5163
|
-
throw new Error("'messageId' must be at most 25 characters");
|
|
5164
|
-
return true;
|
|
5165
|
-
}
|
|
5166
|
-
},
|
|
5167
|
-
bodyPartId: {
|
|
5168
|
-
type: "string",
|
|
5169
|
-
required: true,
|
|
5170
|
-
validate: value => {
|
|
5171
|
-
if (typeof value === "string" && value.length < 25)
|
|
5172
|
-
throw new Error("'bodyPartId' must be at least 25 characters");
|
|
5173
|
-
if (typeof value === "string" && value.length > 25)
|
|
5174
|
-
throw new Error("'bodyPartId' must be at most 25 characters");
|
|
5175
|
-
return true;
|
|
5176
|
-
}
|
|
5177
|
-
},
|
|
5178
|
-
storageType: {
|
|
5179
|
-
type: ["s3", "filesystem", "inline", "database"],
|
|
5180
|
-
required: true
|
|
5181
|
-
},
|
|
5182
|
-
storageLocation: {
|
|
5183
|
-
type: "string",
|
|
5184
|
-
required: true
|
|
5185
|
-
},
|
|
5186
|
-
storageKey: {
|
|
5187
|
-
type: "string",
|
|
5188
|
-
required: true
|
|
5189
|
-
},
|
|
5190
|
-
decodedSizeBytes: {
|
|
5191
|
-
type: "number",
|
|
5192
|
-
required: true,
|
|
5193
|
-
validate: value => {
|
|
5194
|
-
if (typeof value === "number" && value < 0)
|
|
5195
|
-
throw new Error("'decodedSizeBytes' must be at least 0");
|
|
5196
|
-
if (typeof value === "number" && !Number.isInteger(value))
|
|
5197
|
-
throw new Error("'decodedSizeBytes' must be an integer");
|
|
5198
|
-
return true;
|
|
5199
|
-
}
|
|
5200
|
-
},
|
|
5201
|
-
checksumSha256: {
|
|
5202
|
-
type: "string",
|
|
5203
|
-
required: true,
|
|
5204
|
-
validate: value => {
|
|
5205
|
-
if (typeof value === "string" && value.length < 64)
|
|
5206
|
-
throw new Error("'checksumSha256' must be at least 64 characters");
|
|
5207
|
-
if (typeof value === "string" && value.length > 64)
|
|
5208
|
-
throw new Error("'checksumSha256' must be at most 64 characters");
|
|
5209
|
-
return true;
|
|
5210
|
-
}
|
|
5211
|
-
},
|
|
5212
|
-
contentEncoding: {
|
|
5213
|
-
type: ["none", "gzip", "zstd"],
|
|
5214
|
-
required: true
|
|
5215
|
-
},
|
|
5216
|
-
isDeduped: {
|
|
5217
|
-
type: "boolean",
|
|
5218
|
-
required: true
|
|
5219
|
-
},
|
|
5220
|
-
dedupHash: {
|
|
5221
|
-
type: "string",
|
|
5222
|
-
required: false
|
|
5223
|
-
},
|
|
5224
|
-
storedAt: {
|
|
5225
|
-
type: "number",
|
|
5226
|
-
required: true,
|
|
5227
|
-
validate: value => {
|
|
5228
|
-
if (typeof value === "number" && !Number.isInteger(value))
|
|
5229
|
-
throw new Error("'storedAt' must be an integer");
|
|
5230
|
-
return true;
|
|
5231
|
-
}
|
|
5232
|
-
},
|
|
5233
|
-
createdAt: {
|
|
5234
|
-
type: "number",
|
|
5235
|
-
readOnly: true,
|
|
5236
|
-
required: true,
|
|
5237
|
-
default: () => Date.now(),
|
|
5238
|
-
set: () => Date.now()
|
|
5239
|
-
},
|
|
5240
|
-
updatedAt: {
|
|
5241
|
-
type: "number",
|
|
5242
|
-
watch: "*",
|
|
5243
|
-
required: true,
|
|
5244
|
-
default: () => Date.now(),
|
|
5245
|
-
set: () => Date.now()
|
|
5246
|
-
}
|
|
5247
|
-
},
|
|
5248
|
-
indexes: {
|
|
5249
|
-
byMessageId: {
|
|
5250
|
-
pk: {
|
|
5251
|
-
field: "gsi2pk",
|
|
5252
|
-
composite: ["messageId"]
|
|
5253
|
-
},
|
|
5254
|
-
sk: {
|
|
5255
|
-
field: "gsi2sk",
|
|
5256
|
-
composite: ["bodyPartStorageId"]
|
|
5257
|
-
},
|
|
5258
|
-
index: "gsi2",
|
|
5259
|
-
collection: "messageData"
|
|
5260
|
-
},
|
|
5261
|
-
BodyPartStorage: {
|
|
5262
|
-
pk: {
|
|
5263
|
-
field: "pk",
|
|
5264
|
-
composite: ["bodyPartStorageId"]
|
|
5265
|
-
},
|
|
5266
|
-
sk: {
|
|
5267
|
-
field: "sk",
|
|
5268
|
-
composite: []
|
|
5269
|
-
}
|
|
5270
|
-
}
|
|
5271
|
-
},
|
|
5272
|
-
model: {
|
|
5273
|
-
entity: "bodyPartStorage",
|
|
5274
|
-
service: "remit",
|
|
5275
|
-
version: "1"
|
|
5276
|
-
}
|
|
5277
|
-
};
|
|
5278
5143
|
export const CalendarEventIndex = {
|
|
5279
5144
|
attributes: {
|
|
5280
5145
|
calendarId: {
|