@remit/electrodb-entities 0.0.33 → 0.0.35
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 +182 -209
- package/index.d.cts +135 -158
- package/index.d.mts +135 -158
- package/index.d.ts +135 -158
- package/index.mjs +181 -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.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,
|
|
@@ -3536,6 +3637,15 @@ exports.CalendarSuggestion = {
|
|
|
3536
3637
|
return true;
|
|
3537
3638
|
}
|
|
3538
3639
|
},
|
|
3640
|
+
endsAtUtc: {
|
|
3641
|
+
type: "string",
|
|
3642
|
+
required: true,
|
|
3643
|
+
validate: value => {
|
|
3644
|
+
if (typeof value === "string" && value.length > 64)
|
|
3645
|
+
throw new Error("'endsAtUtc' must be at most 64 characters");
|
|
3646
|
+
return true;
|
|
3647
|
+
}
|
|
3648
|
+
},
|
|
3539
3649
|
allDay: {
|
|
3540
3650
|
type: "boolean",
|
|
3541
3651
|
required: true,
|
|
@@ -4812,6 +4922,52 @@ exports.BodyPartParameter = {
|
|
|
4812
4922
|
version: "1"
|
|
4813
4923
|
}
|
|
4814
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
|
+
};
|
|
4815
4971
|
exports.RawMessageStorage = {
|
|
4816
4972
|
attributes: {
|
|
4817
4973
|
rawStorageId: {
|
|
@@ -5072,101 +5228,6 @@ exports.BodyPartStorage = {
|
|
|
5072
5228
|
version: "1"
|
|
5073
5229
|
}
|
|
5074
5230
|
};
|
|
5075
|
-
exports.BodyPartContent = {
|
|
5076
|
-
attributes: {
|
|
5077
|
-
bodyPartContentId: {
|
|
5078
|
-
type: "string",
|
|
5079
|
-
required: true,
|
|
5080
|
-
validate: value => {
|
|
5081
|
-
if (typeof value === "string" && value.length < 25)
|
|
5082
|
-
throw new Error("'bodyPartContentId' must be at least 25 characters");
|
|
5083
|
-
if (typeof value === "string" && value.length > 25)
|
|
5084
|
-
throw new Error("'bodyPartContentId' must be at most 25 characters");
|
|
5085
|
-
return true;
|
|
5086
|
-
}
|
|
5087
|
-
},
|
|
5088
|
-
messageId: {
|
|
5089
|
-
type: "string",
|
|
5090
|
-
required: true,
|
|
5091
|
-
validate: value => {
|
|
5092
|
-
if (typeof value === "string" && value.length < 25)
|
|
5093
|
-
throw new Error("'messageId' must be at least 25 characters");
|
|
5094
|
-
if (typeof value === "string" && value.length > 25)
|
|
5095
|
-
throw new Error("'messageId' must be at most 25 characters");
|
|
5096
|
-
return true;
|
|
5097
|
-
}
|
|
5098
|
-
},
|
|
5099
|
-
bodyPartId: {
|
|
5100
|
-
type: "string",
|
|
5101
|
-
required: true,
|
|
5102
|
-
validate: value => {
|
|
5103
|
-
if (typeof value === "string" && value.length < 25)
|
|
5104
|
-
throw new Error("'bodyPartId' must be at least 25 characters");
|
|
5105
|
-
if (typeof value === "string" && value.length > 25)
|
|
5106
|
-
throw new Error("'bodyPartId' must be at most 25 characters");
|
|
5107
|
-
return true;
|
|
5108
|
-
}
|
|
5109
|
-
},
|
|
5110
|
-
content: {
|
|
5111
|
-
type: "string",
|
|
5112
|
-
required: true
|
|
5113
|
-
},
|
|
5114
|
-
contentLength: {
|
|
5115
|
-
type: "number",
|
|
5116
|
-
required: true,
|
|
5117
|
-
validate: value => {
|
|
5118
|
-
if (typeof value === "number" && value < 0)
|
|
5119
|
-
throw new Error("'contentLength' must be at least 0");
|
|
5120
|
-
if (typeof value === "number" && !Number.isInteger(value))
|
|
5121
|
-
throw new Error("'contentLength' must be an integer");
|
|
5122
|
-
return true;
|
|
5123
|
-
}
|
|
5124
|
-
},
|
|
5125
|
-
createdAt: {
|
|
5126
|
-
type: "number",
|
|
5127
|
-
readOnly: true,
|
|
5128
|
-
required: true,
|
|
5129
|
-
default: () => Date.now(),
|
|
5130
|
-
set: () => Date.now()
|
|
5131
|
-
},
|
|
5132
|
-
updatedAt: {
|
|
5133
|
-
type: "number",
|
|
5134
|
-
watch: "*",
|
|
5135
|
-
required: true,
|
|
5136
|
-
default: () => Date.now(),
|
|
5137
|
-
set: () => Date.now()
|
|
5138
|
-
}
|
|
5139
|
-
},
|
|
5140
|
-
indexes: {
|
|
5141
|
-
byMessageId: {
|
|
5142
|
-
pk: {
|
|
5143
|
-
field: "gsi2pk",
|
|
5144
|
-
composite: ["messageId"]
|
|
5145
|
-
},
|
|
5146
|
-
sk: {
|
|
5147
|
-
field: "gsi2sk",
|
|
5148
|
-
composite: ["bodyPartContentId"]
|
|
5149
|
-
},
|
|
5150
|
-
index: "gsi2",
|
|
5151
|
-
collection: "messageData"
|
|
5152
|
-
},
|
|
5153
|
-
BodyPartContent: {
|
|
5154
|
-
pk: {
|
|
5155
|
-
field: "pk",
|
|
5156
|
-
composite: ["bodyPartContentId"]
|
|
5157
|
-
},
|
|
5158
|
-
sk: {
|
|
5159
|
-
field: "sk",
|
|
5160
|
-
composite: []
|
|
5161
|
-
}
|
|
5162
|
-
}
|
|
5163
|
-
},
|
|
5164
|
-
model: {
|
|
5165
|
-
entity: "bodyPartContent",
|
|
5166
|
-
service: "remit",
|
|
5167
|
-
version: "1"
|
|
5168
|
-
}
|
|
5169
|
-
};
|
|
5170
5231
|
exports.CalendarEventIndex = {
|
|
5171
5232
|
attributes: {
|
|
5172
5233
|
calendarId: {
|
|
@@ -5497,91 +5558,3 @@ exports.MessageLabel = {
|
|
|
5497
5558
|
version: "1"
|
|
5498
5559
|
}
|
|
5499
5560
|
};
|
|
5500
|
-
exports.FilterAnchor = {
|
|
5501
|
-
attributes: {
|
|
5502
|
-
accountConfigId: {
|
|
5503
|
-
type: "string",
|
|
5504
|
-
required: true,
|
|
5505
|
-
validate: value => {
|
|
5506
|
-
if (typeof value === "string" && value.length < 25)
|
|
5507
|
-
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
5508
|
-
if (typeof value === "string" && value.length > 25)
|
|
5509
|
-
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
5510
|
-
return true;
|
|
5511
|
-
}
|
|
5512
|
-
},
|
|
5513
|
-
filterId: {
|
|
5514
|
-
type: "string",
|
|
5515
|
-
required: true,
|
|
5516
|
-
validate: value => {
|
|
5517
|
-
if (typeof value === "string" && value.length < 25)
|
|
5518
|
-
throw new Error("'filterId' must be at least 25 characters");
|
|
5519
|
-
if (typeof value === "string" && value.length > 25)
|
|
5520
|
-
throw new Error("'filterId' must be at most 25 characters");
|
|
5521
|
-
return true;
|
|
5522
|
-
}
|
|
5523
|
-
},
|
|
5524
|
-
anchorEmbedding: {
|
|
5525
|
-
type: "list",
|
|
5526
|
-
items: {
|
|
5527
|
-
type: "number"
|
|
5528
|
-
},
|
|
5529
|
-
required: true
|
|
5530
|
-
},
|
|
5531
|
-
anchorEmbeddingId: {
|
|
5532
|
-
type: "string",
|
|
5533
|
-
required: true
|
|
5534
|
-
},
|
|
5535
|
-
anchorSourceText: {
|
|
5536
|
-
type: "string",
|
|
5537
|
-
required: true,
|
|
5538
|
-
validate: value => {
|
|
5539
|
-
if (typeof value === "string" && value.length > 512)
|
|
5540
|
-
throw new Error("'anchorSourceText' must be at most 512 characters");
|
|
5541
|
-
return true;
|
|
5542
|
-
}
|
|
5543
|
-
},
|
|
5544
|
-
anchorMessageId: {
|
|
5545
|
-
type: "string",
|
|
5546
|
-
required: true,
|
|
5547
|
-
validate: value => {
|
|
5548
|
-
if (typeof value === "string" && value.length < 25)
|
|
5549
|
-
throw new Error("'anchorMessageId' must be at least 25 characters");
|
|
5550
|
-
if (typeof value === "string" && value.length > 25)
|
|
5551
|
-
throw new Error("'anchorMessageId' must be at most 25 characters");
|
|
5552
|
-
return true;
|
|
5553
|
-
}
|
|
5554
|
-
},
|
|
5555
|
-
createdAt: {
|
|
5556
|
-
type: "number",
|
|
5557
|
-
readOnly: true,
|
|
5558
|
-
required: true,
|
|
5559
|
-
default: () => Date.now(),
|
|
5560
|
-
set: () => Date.now()
|
|
5561
|
-
},
|
|
5562
|
-
updatedAt: {
|
|
5563
|
-
type: "number",
|
|
5564
|
-
watch: "*",
|
|
5565
|
-
required: true,
|
|
5566
|
-
default: () => Date.now(),
|
|
5567
|
-
set: () => Date.now()
|
|
5568
|
-
}
|
|
5569
|
-
},
|
|
5570
|
-
indexes: {
|
|
5571
|
-
FilterAnchor: {
|
|
5572
|
-
pk: {
|
|
5573
|
-
field: "pk",
|
|
5574
|
-
composite: ["accountConfigId"]
|
|
5575
|
-
},
|
|
5576
|
-
sk: {
|
|
5577
|
-
field: "sk",
|
|
5578
|
-
composite: ["filterId"]
|
|
5579
|
-
}
|
|
5580
|
-
}
|
|
5581
|
-
},
|
|
5582
|
-
model: {
|
|
5583
|
-
entity: "filterAnchor",
|
|
5584
|
-
service: "remit",
|
|
5585
|
-
version: "1"
|
|
5586
|
-
}
|
|
5587
|
-
};
|