@remit/electrodb-entities 0.0.34 → 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 +223 -209
- package/index.d.cts +174 -158
- package/index.d.mts +174 -158
- package/index.d.ts +174 -158
- package/index.mjs +222 -208
- package/package.json +4 -4
package/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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: {
|
|
@@ -336,6 +336,131 @@ exports.Quarantine = {
|
|
|
336
336
|
version: "1"
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
|
+
exports.SyncWarning = {
|
|
340
|
+
attributes: {
|
|
341
|
+
syncWarningId: {
|
|
342
|
+
type: "string",
|
|
343
|
+
required: true,
|
|
344
|
+
validate: value => {
|
|
345
|
+
if (typeof value === "string" && value.length < 25)
|
|
346
|
+
throw new Error("'syncWarningId' must be at least 25 characters");
|
|
347
|
+
if (typeof value === "string" && value.length > 25)
|
|
348
|
+
throw new Error("'syncWarningId' must be at most 25 characters");
|
|
349
|
+
return true;
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
accountConfigId: {
|
|
353
|
+
type: "string",
|
|
354
|
+
required: true,
|
|
355
|
+
validate: value => {
|
|
356
|
+
if (typeof value === "string" && value.length < 25)
|
|
357
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
358
|
+
if (typeof value === "string" && value.length > 25)
|
|
359
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
360
|
+
return true;
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
accountId: {
|
|
364
|
+
type: "string",
|
|
365
|
+
required: true,
|
|
366
|
+
validate: value => {
|
|
367
|
+
if (typeof value === "string" && value.length < 25)
|
|
368
|
+
throw new Error("'accountId' must be at least 25 characters");
|
|
369
|
+
if (typeof value === "string" && value.length > 25)
|
|
370
|
+
throw new Error("'accountId' must be at most 25 characters");
|
|
371
|
+
return true;
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
mailboxId: {
|
|
375
|
+
type: "string",
|
|
376
|
+
required: true,
|
|
377
|
+
validate: value => {
|
|
378
|
+
if (typeof value === "string" && value.length < 25)
|
|
379
|
+
throw new Error("'mailboxId' must be at least 25 characters");
|
|
380
|
+
if (typeof value === "string" && value.length > 25)
|
|
381
|
+
throw new Error("'mailboxId' must be at most 25 characters");
|
|
382
|
+
return true;
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
uidValidity: {
|
|
386
|
+
type: "number",
|
|
387
|
+
required: true,
|
|
388
|
+
validate: value => {
|
|
389
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
390
|
+
throw new Error("'uidValidity' must be an integer");
|
|
391
|
+
return true;
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
uid: {
|
|
395
|
+
type: "number",
|
|
396
|
+
required: true,
|
|
397
|
+
validate: value => {
|
|
398
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
399
|
+
throw new Error("'uid' must be an integer");
|
|
400
|
+
return true;
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
stage: {
|
|
404
|
+
type: ["Header", "Body"],
|
|
405
|
+
required: true
|
|
406
|
+
},
|
|
407
|
+
attempts: {
|
|
408
|
+
type: "number",
|
|
409
|
+
required: true,
|
|
410
|
+
validate: value => {
|
|
411
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
412
|
+
throw new Error("'attempts' must be an integer");
|
|
413
|
+
return true;
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
createdAt: {
|
|
417
|
+
type: "number",
|
|
418
|
+
readOnly: true,
|
|
419
|
+
required: true,
|
|
420
|
+
default: () => Date.now(),
|
|
421
|
+
set: () => Date.now()
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
indexes: {
|
|
425
|
+
byMailboxId: {
|
|
426
|
+
pk: {
|
|
427
|
+
field: "gsi2pk",
|
|
428
|
+
composite: ["mailboxId"]
|
|
429
|
+
},
|
|
430
|
+
sk: {
|
|
431
|
+
field: "gsi2sk",
|
|
432
|
+
composite: []
|
|
433
|
+
},
|
|
434
|
+
index: "gsi2"
|
|
435
|
+
},
|
|
436
|
+
byAccountConfigId: {
|
|
437
|
+
pk: {
|
|
438
|
+
field: "gsi1pk",
|
|
439
|
+
composite: ["accountConfigId"]
|
|
440
|
+
},
|
|
441
|
+
sk: {
|
|
442
|
+
field: "gsi1sk",
|
|
443
|
+
composite: ["createdAt"]
|
|
444
|
+
},
|
|
445
|
+
index: "gsi1"
|
|
446
|
+
},
|
|
447
|
+
SyncWarning: {
|
|
448
|
+
pk: {
|
|
449
|
+
field: "pk",
|
|
450
|
+
composite: ["syncWarningId"]
|
|
451
|
+
},
|
|
452
|
+
sk: {
|
|
453
|
+
field: "sk",
|
|
454
|
+
composite: []
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
model: {
|
|
459
|
+
entity: "syncWarning",
|
|
460
|
+
service: "remit",
|
|
461
|
+
version: "1"
|
|
462
|
+
}
|
|
463
|
+
};
|
|
339
464
|
exports.AccountConfig = {
|
|
340
465
|
attributes: {
|
|
341
466
|
accountConfigId: {
|
|
@@ -1050,11 +1175,6 @@ exports.Filter = {
|
|
|
1050
1175
|
required: true,
|
|
1051
1176
|
default: "None"
|
|
1052
1177
|
},
|
|
1053
|
-
hasAnchor: {
|
|
1054
|
-
type: "boolean",
|
|
1055
|
-
required: true,
|
|
1056
|
-
default: false
|
|
1057
|
-
},
|
|
1058
1178
|
ruleChangedAt: {
|
|
1059
1179
|
type: "number",
|
|
1060
1180
|
required: true,
|
|
@@ -1278,11 +1398,6 @@ exports.OrganizeJobRequest = {
|
|
|
1278
1398
|
required: true,
|
|
1279
1399
|
default: "None"
|
|
1280
1400
|
},
|
|
1281
|
-
anchorMessageId: {
|
|
1282
|
-
type: "string",
|
|
1283
|
-
required: true,
|
|
1284
|
-
default: "None"
|
|
1285
|
-
},
|
|
1286
1401
|
matchOperator: {
|
|
1287
1402
|
type: ["And", "Or"],
|
|
1288
1403
|
required: true,
|
|
@@ -1305,16 +1420,6 @@ exports.OrganizeJobRequest = {
|
|
|
1305
1420
|
},
|
|
1306
1421
|
required: true
|
|
1307
1422
|
},
|
|
1308
|
-
similarityThreshold: {
|
|
1309
|
-
type: "number",
|
|
1310
|
-
required: true,
|
|
1311
|
-
default: 0.75,
|
|
1312
|
-
validate: value => {
|
|
1313
|
-
if (typeof value === "number" && !Number.isFinite(value))
|
|
1314
|
-
throw new Error("'similarityThreshold' must be a finite number");
|
|
1315
|
-
return true;
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
1423
|
actionLabelId: {
|
|
1319
1424
|
type: "string",
|
|
1320
1425
|
required: true,
|
|
@@ -2800,7 +2905,7 @@ exports.Address = {
|
|
|
2800
2905
|
version: "1"
|
|
2801
2906
|
}
|
|
2802
2907
|
};
|
|
2803
|
-
exports.
|
|
2908
|
+
exports.MessageRecord = {
|
|
2804
2909
|
attributes: {
|
|
2805
2910
|
messageId: {
|
|
2806
2911
|
type: "string",
|
|
@@ -2866,10 +2971,6 @@ exports.Message = {
|
|
|
2866
2971
|
return true;
|
|
2867
2972
|
}
|
|
2868
2973
|
},
|
|
2869
|
-
messageIdHeader: {
|
|
2870
|
-
type: "string",
|
|
2871
|
-
required: false
|
|
2872
|
-
},
|
|
2873
2974
|
envelopeId: {
|
|
2874
2975
|
type: "string",
|
|
2875
2976
|
required: true,
|
|
@@ -4821,6 +4922,102 @@ exports.BodyPartParameter = {
|
|
|
4821
4922
|
version: "1"
|
|
4822
4923
|
}
|
|
4823
4924
|
};
|
|
4925
|
+
exports.BodyStructureRefetch = {
|
|
4926
|
+
attributes: {
|
|
4927
|
+
messageId: {
|
|
4928
|
+
type: "string",
|
|
4929
|
+
required: true,
|
|
4930
|
+
validate: value => {
|
|
4931
|
+
if (typeof value === "string" && value.length < 25)
|
|
4932
|
+
throw new Error("'messageId' must be at least 25 characters");
|
|
4933
|
+
if (typeof value === "string" && value.length > 25)
|
|
4934
|
+
throw new Error("'messageId' must be at most 25 characters");
|
|
4935
|
+
return true;
|
|
4936
|
+
}
|
|
4937
|
+
},
|
|
4938
|
+
createdAt: {
|
|
4939
|
+
type: "number",
|
|
4940
|
+
readOnly: true,
|
|
4941
|
+
required: true,
|
|
4942
|
+
default: () => Date.now(),
|
|
4943
|
+
set: () => Date.now()
|
|
4944
|
+
},
|
|
4945
|
+
updatedAt: {
|
|
4946
|
+
type: "number",
|
|
4947
|
+
watch: "*",
|
|
4948
|
+
required: true,
|
|
4949
|
+
default: () => Date.now(),
|
|
4950
|
+
set: () => Date.now()
|
|
4951
|
+
}
|
|
4952
|
+
},
|
|
4953
|
+
indexes: {
|
|
4954
|
+
BodyStructureRefetch: {
|
|
4955
|
+
pk: {
|
|
4956
|
+
field: "pk",
|
|
4957
|
+
composite: ["messageId"]
|
|
4958
|
+
},
|
|
4959
|
+
sk: {
|
|
4960
|
+
field: "sk",
|
|
4961
|
+
composite: []
|
|
4962
|
+
}
|
|
4963
|
+
}
|
|
4964
|
+
},
|
|
4965
|
+
model: {
|
|
4966
|
+
entity: "bodyStructureRefetch",
|
|
4967
|
+
service: "remit",
|
|
4968
|
+
version: "1"
|
|
4969
|
+
}
|
|
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
|
+
};
|
|
4824
5021
|
exports.RawMessageStorage = {
|
|
4825
5022
|
attributes: {
|
|
4826
5023
|
rawStorageId: {
|
|
@@ -5081,101 +5278,6 @@ exports.BodyPartStorage = {
|
|
|
5081
5278
|
version: "1"
|
|
5082
5279
|
}
|
|
5083
5280
|
};
|
|
5084
|
-
exports.BodyPartContent = {
|
|
5085
|
-
attributes: {
|
|
5086
|
-
bodyPartContentId: {
|
|
5087
|
-
type: "string",
|
|
5088
|
-
required: true,
|
|
5089
|
-
validate: value => {
|
|
5090
|
-
if (typeof value === "string" && value.length < 25)
|
|
5091
|
-
throw new Error("'bodyPartContentId' must be at least 25 characters");
|
|
5092
|
-
if (typeof value === "string" && value.length > 25)
|
|
5093
|
-
throw new Error("'bodyPartContentId' must be at most 25 characters");
|
|
5094
|
-
return true;
|
|
5095
|
-
}
|
|
5096
|
-
},
|
|
5097
|
-
messageId: {
|
|
5098
|
-
type: "string",
|
|
5099
|
-
required: true,
|
|
5100
|
-
validate: value => {
|
|
5101
|
-
if (typeof value === "string" && value.length < 25)
|
|
5102
|
-
throw new Error("'messageId' must be at least 25 characters");
|
|
5103
|
-
if (typeof value === "string" && value.length > 25)
|
|
5104
|
-
throw new Error("'messageId' must be at most 25 characters");
|
|
5105
|
-
return true;
|
|
5106
|
-
}
|
|
5107
|
-
},
|
|
5108
|
-
bodyPartId: {
|
|
5109
|
-
type: "string",
|
|
5110
|
-
required: true,
|
|
5111
|
-
validate: value => {
|
|
5112
|
-
if (typeof value === "string" && value.length < 25)
|
|
5113
|
-
throw new Error("'bodyPartId' must be at least 25 characters");
|
|
5114
|
-
if (typeof value === "string" && value.length > 25)
|
|
5115
|
-
throw new Error("'bodyPartId' must be at most 25 characters");
|
|
5116
|
-
return true;
|
|
5117
|
-
}
|
|
5118
|
-
},
|
|
5119
|
-
content: {
|
|
5120
|
-
type: "string",
|
|
5121
|
-
required: true
|
|
5122
|
-
},
|
|
5123
|
-
contentLength: {
|
|
5124
|
-
type: "number",
|
|
5125
|
-
required: true,
|
|
5126
|
-
validate: value => {
|
|
5127
|
-
if (typeof value === "number" && value < 0)
|
|
5128
|
-
throw new Error("'contentLength' must be at least 0");
|
|
5129
|
-
if (typeof value === "number" && !Number.isInteger(value))
|
|
5130
|
-
throw new Error("'contentLength' must be an integer");
|
|
5131
|
-
return true;
|
|
5132
|
-
}
|
|
5133
|
-
},
|
|
5134
|
-
createdAt: {
|
|
5135
|
-
type: "number",
|
|
5136
|
-
readOnly: true,
|
|
5137
|
-
required: true,
|
|
5138
|
-
default: () => Date.now(),
|
|
5139
|
-
set: () => Date.now()
|
|
5140
|
-
},
|
|
5141
|
-
updatedAt: {
|
|
5142
|
-
type: "number",
|
|
5143
|
-
watch: "*",
|
|
5144
|
-
required: true,
|
|
5145
|
-
default: () => Date.now(),
|
|
5146
|
-
set: () => Date.now()
|
|
5147
|
-
}
|
|
5148
|
-
},
|
|
5149
|
-
indexes: {
|
|
5150
|
-
byMessageId: {
|
|
5151
|
-
pk: {
|
|
5152
|
-
field: "gsi2pk",
|
|
5153
|
-
composite: ["messageId"]
|
|
5154
|
-
},
|
|
5155
|
-
sk: {
|
|
5156
|
-
field: "gsi2sk",
|
|
5157
|
-
composite: ["bodyPartContentId"]
|
|
5158
|
-
},
|
|
5159
|
-
index: "gsi2",
|
|
5160
|
-
collection: "messageData"
|
|
5161
|
-
},
|
|
5162
|
-
BodyPartContent: {
|
|
5163
|
-
pk: {
|
|
5164
|
-
field: "pk",
|
|
5165
|
-
composite: ["bodyPartContentId"]
|
|
5166
|
-
},
|
|
5167
|
-
sk: {
|
|
5168
|
-
field: "sk",
|
|
5169
|
-
composite: []
|
|
5170
|
-
}
|
|
5171
|
-
}
|
|
5172
|
-
},
|
|
5173
|
-
model: {
|
|
5174
|
-
entity: "bodyPartContent",
|
|
5175
|
-
service: "remit",
|
|
5176
|
-
version: "1"
|
|
5177
|
-
}
|
|
5178
|
-
};
|
|
5179
5281
|
exports.CalendarEventIndex = {
|
|
5180
5282
|
attributes: {
|
|
5181
5283
|
calendarId: {
|
|
@@ -5506,91 +5608,3 @@ exports.MessageLabel = {
|
|
|
5506
5608
|
version: "1"
|
|
5507
5609
|
}
|
|
5508
5610
|
};
|
|
5509
|
-
exports.FilterAnchor = {
|
|
5510
|
-
attributes: {
|
|
5511
|
-
accountConfigId: {
|
|
5512
|
-
type: "string",
|
|
5513
|
-
required: true,
|
|
5514
|
-
validate: value => {
|
|
5515
|
-
if (typeof value === "string" && value.length < 25)
|
|
5516
|
-
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
5517
|
-
if (typeof value === "string" && value.length > 25)
|
|
5518
|
-
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
5519
|
-
return true;
|
|
5520
|
-
}
|
|
5521
|
-
},
|
|
5522
|
-
filterId: {
|
|
5523
|
-
type: "string",
|
|
5524
|
-
required: true,
|
|
5525
|
-
validate: value => {
|
|
5526
|
-
if (typeof value === "string" && value.length < 25)
|
|
5527
|
-
throw new Error("'filterId' must be at least 25 characters");
|
|
5528
|
-
if (typeof value === "string" && value.length > 25)
|
|
5529
|
-
throw new Error("'filterId' must be at most 25 characters");
|
|
5530
|
-
return true;
|
|
5531
|
-
}
|
|
5532
|
-
},
|
|
5533
|
-
anchorEmbedding: {
|
|
5534
|
-
type: "list",
|
|
5535
|
-
items: {
|
|
5536
|
-
type: "number"
|
|
5537
|
-
},
|
|
5538
|
-
required: true
|
|
5539
|
-
},
|
|
5540
|
-
anchorEmbeddingId: {
|
|
5541
|
-
type: "string",
|
|
5542
|
-
required: true
|
|
5543
|
-
},
|
|
5544
|
-
anchorSourceText: {
|
|
5545
|
-
type: "string",
|
|
5546
|
-
required: true,
|
|
5547
|
-
validate: value => {
|
|
5548
|
-
if (typeof value === "string" && value.length > 512)
|
|
5549
|
-
throw new Error("'anchorSourceText' must be at most 512 characters");
|
|
5550
|
-
return true;
|
|
5551
|
-
}
|
|
5552
|
-
},
|
|
5553
|
-
anchorMessageId: {
|
|
5554
|
-
type: "string",
|
|
5555
|
-
required: true,
|
|
5556
|
-
validate: value => {
|
|
5557
|
-
if (typeof value === "string" && value.length < 25)
|
|
5558
|
-
throw new Error("'anchorMessageId' must be at least 25 characters");
|
|
5559
|
-
if (typeof value === "string" && value.length > 25)
|
|
5560
|
-
throw new Error("'anchorMessageId' must be at most 25 characters");
|
|
5561
|
-
return true;
|
|
5562
|
-
}
|
|
5563
|
-
},
|
|
5564
|
-
createdAt: {
|
|
5565
|
-
type: "number",
|
|
5566
|
-
readOnly: true,
|
|
5567
|
-
required: true,
|
|
5568
|
-
default: () => Date.now(),
|
|
5569
|
-
set: () => Date.now()
|
|
5570
|
-
},
|
|
5571
|
-
updatedAt: {
|
|
5572
|
-
type: "number",
|
|
5573
|
-
watch: "*",
|
|
5574
|
-
required: true,
|
|
5575
|
-
default: () => Date.now(),
|
|
5576
|
-
set: () => Date.now()
|
|
5577
|
-
}
|
|
5578
|
-
},
|
|
5579
|
-
indexes: {
|
|
5580
|
-
FilterAnchor: {
|
|
5581
|
-
pk: {
|
|
5582
|
-
field: "pk",
|
|
5583
|
-
composite: ["accountConfigId"]
|
|
5584
|
-
},
|
|
5585
|
-
sk: {
|
|
5586
|
-
field: "sk",
|
|
5587
|
-
composite: ["filterId"]
|
|
5588
|
-
}
|
|
5589
|
-
}
|
|
5590
|
-
},
|
|
5591
|
-
model: {
|
|
5592
|
-
entity: "filterAnchor",
|
|
5593
|
-
service: "remit",
|
|
5594
|
-
version: "1"
|
|
5595
|
-
}
|
|
5596
|
-
};
|