@remit/electrodb-entities 0.0.20 → 0.0.21
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 +203 -1
- package/index.d.cts +150 -0
- package/index.d.mts +150 -0
- package/index.d.ts +150 -0
- package/index.mjs +202 -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.FilterAnchor = exports.MessageLabel = exports.CalendarEventIndex = exports.BodyPartContent = exports.BodyPartStorage = exports.RawMessageStorage = 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.MessageReference = exports.BodyPart = exports.Message = 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.Quarantine = exports.AccountExportRequest = void 0;
|
|
3
|
+
exports.FilterAnchor = exports.MessageLabel = exports.CalendarEventIndex = exports.BodyPartContent = exports.BodyPartStorage = exports.RawMessageStorage = 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.Message = 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.Quarantine = exports.AccountExportRequest = void 0;
|
|
4
4
|
const electrodb_1 = require("electrodb");
|
|
5
5
|
exports.AccountExportRequest = {
|
|
6
6
|
attributes: {
|
|
@@ -3319,6 +3319,208 @@ exports.MessageReference = {
|
|
|
3319
3319
|
version: "1"
|
|
3320
3320
|
}
|
|
3321
3321
|
};
|
|
3322
|
+
exports.CalendarSuggestion = {
|
|
3323
|
+
attributes: {
|
|
3324
|
+
suggestionId: {
|
|
3325
|
+
type: "string",
|
|
3326
|
+
required: true,
|
|
3327
|
+
validate: value => {
|
|
3328
|
+
if (typeof value === "string" && value.length < 25)
|
|
3329
|
+
throw new Error("'suggestionId' must be at least 25 characters");
|
|
3330
|
+
if (typeof value === "string" && value.length > 25)
|
|
3331
|
+
throw new Error("'suggestionId' must be at most 25 characters");
|
|
3332
|
+
return true;
|
|
3333
|
+
}
|
|
3334
|
+
},
|
|
3335
|
+
accountConfigId: {
|
|
3336
|
+
type: "string",
|
|
3337
|
+
required: true,
|
|
3338
|
+
validate: value => {
|
|
3339
|
+
if (typeof value === "string" && value.length < 25)
|
|
3340
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
3341
|
+
if (typeof value === "string" && value.length > 25)
|
|
3342
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
3343
|
+
return true;
|
|
3344
|
+
}
|
|
3345
|
+
},
|
|
3346
|
+
messageId: {
|
|
3347
|
+
type: "string",
|
|
3348
|
+
required: true,
|
|
3349
|
+
validate: value => {
|
|
3350
|
+
if (typeof value === "string" && value.length < 25)
|
|
3351
|
+
throw new Error("'messageId' must be at least 25 characters");
|
|
3352
|
+
if (typeof value === "string" && value.length > 25)
|
|
3353
|
+
throw new Error("'messageId' must be at most 25 characters");
|
|
3354
|
+
return true;
|
|
3355
|
+
}
|
|
3356
|
+
},
|
|
3357
|
+
bodyPartId: {
|
|
3358
|
+
type: "string",
|
|
3359
|
+
required: true,
|
|
3360
|
+
validate: value => {
|
|
3361
|
+
if (typeof value === "string" && value.length < 25)
|
|
3362
|
+
throw new Error("'bodyPartId' must be at least 25 characters");
|
|
3363
|
+
if (typeof value === "string" && value.length > 25)
|
|
3364
|
+
throw new Error("'bodyPartId' must be at most 25 characters");
|
|
3365
|
+
return true;
|
|
3366
|
+
}
|
|
3367
|
+
},
|
|
3368
|
+
icalUid: {
|
|
3369
|
+
type: "string",
|
|
3370
|
+
required: true,
|
|
3371
|
+
validate: value => {
|
|
3372
|
+
if (typeof value === "string" && value.length > 512)
|
|
3373
|
+
throw new Error("'icalUid' must be at most 512 characters");
|
|
3374
|
+
return true;
|
|
3375
|
+
}
|
|
3376
|
+
},
|
|
3377
|
+
sequence: {
|
|
3378
|
+
type: "number",
|
|
3379
|
+
required: true,
|
|
3380
|
+
default: 0,
|
|
3381
|
+
validate: value => {
|
|
3382
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3383
|
+
throw new Error("'sequence' must be an integer");
|
|
3384
|
+
return true;
|
|
3385
|
+
}
|
|
3386
|
+
},
|
|
3387
|
+
method: {
|
|
3388
|
+
type: ["Request", "Reply", "Cancel", "Counter", "Publish", "None"],
|
|
3389
|
+
required: true,
|
|
3390
|
+
default: "None"
|
|
3391
|
+
},
|
|
3392
|
+
source: {
|
|
3393
|
+
type: ["IcalendarPart", "IcalendarAttachment", "TextHeuristic"],
|
|
3394
|
+
required: true,
|
|
3395
|
+
default: "IcalendarPart"
|
|
3396
|
+
},
|
|
3397
|
+
state: {
|
|
3398
|
+
type: ["Pending", "Accepted", "Declined", "Tentative", "Dismissed", "Superseded"],
|
|
3399
|
+
required: true,
|
|
3400
|
+
default: "Pending"
|
|
3401
|
+
},
|
|
3402
|
+
summary: {
|
|
3403
|
+
type: "string",
|
|
3404
|
+
required: true,
|
|
3405
|
+
validate: value => {
|
|
3406
|
+
if (typeof value === "string" && value.length > 512)
|
|
3407
|
+
throw new Error("'summary' must be at most 512 characters");
|
|
3408
|
+
return true;
|
|
3409
|
+
}
|
|
3410
|
+
},
|
|
3411
|
+
dtStart: {
|
|
3412
|
+
type: "string",
|
|
3413
|
+
required: true,
|
|
3414
|
+
validate: value => {
|
|
3415
|
+
if (typeof value === "string" && value.length > 64)
|
|
3416
|
+
throw new Error("'dtStart' must be at most 64 characters");
|
|
3417
|
+
return true;
|
|
3418
|
+
}
|
|
3419
|
+
},
|
|
3420
|
+
dtEnd: {
|
|
3421
|
+
type: "string",
|
|
3422
|
+
required: true,
|
|
3423
|
+
validate: value => {
|
|
3424
|
+
if (typeof value === "string" && value.length > 64)
|
|
3425
|
+
throw new Error("'dtEnd' must be at most 64 characters");
|
|
3426
|
+
return true;
|
|
3427
|
+
}
|
|
3428
|
+
},
|
|
3429
|
+
allDay: {
|
|
3430
|
+
type: "boolean",
|
|
3431
|
+
required: true,
|
|
3432
|
+
default: false
|
|
3433
|
+
},
|
|
3434
|
+
location: {
|
|
3435
|
+
type: "string",
|
|
3436
|
+
required: true,
|
|
3437
|
+
default: "",
|
|
3438
|
+
validate: value => {
|
|
3439
|
+
if (typeof value === "string" && value.length > 512)
|
|
3440
|
+
throw new Error("'location' must be at most 512 characters");
|
|
3441
|
+
return true;
|
|
3442
|
+
}
|
|
3443
|
+
},
|
|
3444
|
+
organizer: {
|
|
3445
|
+
type: "string",
|
|
3446
|
+
required: true,
|
|
3447
|
+
default: "",
|
|
3448
|
+
validate: value => {
|
|
3449
|
+
if (typeof value === "string" && value.length > 256)
|
|
3450
|
+
throw new Error("'organizer' must be at most 256 characters");
|
|
3451
|
+
return true;
|
|
3452
|
+
}
|
|
3453
|
+
},
|
|
3454
|
+
zoneCertainty: {
|
|
3455
|
+
type: ["Local", "Explicit", "Ambiguous"],
|
|
3456
|
+
required: true,
|
|
3457
|
+
default: "Explicit"
|
|
3458
|
+
},
|
|
3459
|
+
icalData: {
|
|
3460
|
+
type: "string",
|
|
3461
|
+
required: true,
|
|
3462
|
+
default: ""
|
|
3463
|
+
},
|
|
3464
|
+
acceptedCalendarObjectId: {
|
|
3465
|
+
type: "string",
|
|
3466
|
+
required: true,
|
|
3467
|
+
default: ""
|
|
3468
|
+
},
|
|
3469
|
+
createdAt: {
|
|
3470
|
+
type: "number",
|
|
3471
|
+
readOnly: true,
|
|
3472
|
+
required: true,
|
|
3473
|
+
default: () => Date.now(),
|
|
3474
|
+
set: () => Date.now()
|
|
3475
|
+
},
|
|
3476
|
+
updatedAt: {
|
|
3477
|
+
type: "number",
|
|
3478
|
+
watch: "*",
|
|
3479
|
+
required: true,
|
|
3480
|
+
default: () => Date.now(),
|
|
3481
|
+
set: () => Date.now()
|
|
3482
|
+
}
|
|
3483
|
+
},
|
|
3484
|
+
indexes: {
|
|
3485
|
+
byState: {
|
|
3486
|
+
pk: {
|
|
3487
|
+
field: "gsi1pk",
|
|
3488
|
+
composite: ["accountConfigId"]
|
|
3489
|
+
},
|
|
3490
|
+
sk: {
|
|
3491
|
+
field: "gsi1sk",
|
|
3492
|
+
composite: ["state", "createdAt", "suggestionId"]
|
|
3493
|
+
},
|
|
3494
|
+
index: "gsi1"
|
|
3495
|
+
},
|
|
3496
|
+
byMessage: {
|
|
3497
|
+
pk: {
|
|
3498
|
+
field: "gsi0pk",
|
|
3499
|
+
composite: ["accountConfigId"]
|
|
3500
|
+
},
|
|
3501
|
+
sk: {
|
|
3502
|
+
field: "gsi0sk",
|
|
3503
|
+
composite: ["messageId", "suggestionId"]
|
|
3504
|
+
},
|
|
3505
|
+
index: "gsi0"
|
|
3506
|
+
},
|
|
3507
|
+
CalendarSuggestion: {
|
|
3508
|
+
pk: {
|
|
3509
|
+
field: "pk",
|
|
3510
|
+
composite: ["accountConfigId"]
|
|
3511
|
+
},
|
|
3512
|
+
sk: {
|
|
3513
|
+
field: "sk",
|
|
3514
|
+
composite: ["suggestionId"]
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
},
|
|
3518
|
+
model: {
|
|
3519
|
+
entity: "calendarSuggestion",
|
|
3520
|
+
service: "remit",
|
|
3521
|
+
version: "1"
|
|
3522
|
+
}
|
|
3523
|
+
};
|
|
3322
3524
|
exports.EnvelopeAddress = {
|
|
3323
3525
|
attributes: {
|
|
3324
3526
|
envelopeAddressId: {
|
package/index.d.cts
CHANGED
|
@@ -2599,6 +2599,156 @@ export declare const MessageReference: {
|
|
|
2599
2599
|
readonly version: "1";
|
|
2600
2600
|
};
|
|
2601
2601
|
};
|
|
2602
|
+
export declare const CalendarSuggestion: {
|
|
2603
|
+
readonly attributes: {
|
|
2604
|
+
readonly suggestionId: {
|
|
2605
|
+
readonly type: "string";
|
|
2606
|
+
readonly required: true;
|
|
2607
|
+
readonly validate: (value: unknown) => boolean;
|
|
2608
|
+
};
|
|
2609
|
+
readonly accountConfigId: {
|
|
2610
|
+
readonly type: "string";
|
|
2611
|
+
readonly required: true;
|
|
2612
|
+
readonly validate: (value: unknown) => boolean;
|
|
2613
|
+
};
|
|
2614
|
+
readonly messageId: {
|
|
2615
|
+
readonly type: "string";
|
|
2616
|
+
readonly required: true;
|
|
2617
|
+
readonly validate: (value: unknown) => boolean;
|
|
2618
|
+
};
|
|
2619
|
+
readonly bodyPartId: {
|
|
2620
|
+
readonly type: "string";
|
|
2621
|
+
readonly required: true;
|
|
2622
|
+
readonly validate: (value: unknown) => boolean;
|
|
2623
|
+
};
|
|
2624
|
+
readonly icalUid: {
|
|
2625
|
+
readonly type: "string";
|
|
2626
|
+
readonly required: true;
|
|
2627
|
+
readonly validate: (value: unknown) => boolean;
|
|
2628
|
+
};
|
|
2629
|
+
readonly sequence: {
|
|
2630
|
+
readonly type: "number";
|
|
2631
|
+
readonly required: true;
|
|
2632
|
+
readonly default: 0;
|
|
2633
|
+
readonly validate: (value: unknown) => boolean;
|
|
2634
|
+
};
|
|
2635
|
+
readonly method: {
|
|
2636
|
+
readonly type: readonly ["Request", "Reply", "Cancel", "Counter", "Publish", "None"];
|
|
2637
|
+
readonly required: true;
|
|
2638
|
+
readonly default: "None";
|
|
2639
|
+
};
|
|
2640
|
+
readonly source: {
|
|
2641
|
+
readonly type: readonly ["IcalendarPart", "IcalendarAttachment", "TextHeuristic"];
|
|
2642
|
+
readonly required: true;
|
|
2643
|
+
readonly default: "IcalendarPart";
|
|
2644
|
+
};
|
|
2645
|
+
readonly state: {
|
|
2646
|
+
readonly type: readonly ["Pending", "Accepted", "Declined", "Tentative", "Dismissed", "Superseded"];
|
|
2647
|
+
readonly required: true;
|
|
2648
|
+
readonly default: "Pending";
|
|
2649
|
+
};
|
|
2650
|
+
readonly summary: {
|
|
2651
|
+
readonly type: "string";
|
|
2652
|
+
readonly required: true;
|
|
2653
|
+
readonly validate: (value: unknown) => boolean;
|
|
2654
|
+
};
|
|
2655
|
+
readonly dtStart: {
|
|
2656
|
+
readonly type: "string";
|
|
2657
|
+
readonly required: true;
|
|
2658
|
+
readonly validate: (value: unknown) => boolean;
|
|
2659
|
+
};
|
|
2660
|
+
readonly dtEnd: {
|
|
2661
|
+
readonly type: "string";
|
|
2662
|
+
readonly required: true;
|
|
2663
|
+
readonly validate: (value: unknown) => boolean;
|
|
2664
|
+
};
|
|
2665
|
+
readonly allDay: {
|
|
2666
|
+
readonly type: "boolean";
|
|
2667
|
+
readonly required: true;
|
|
2668
|
+
readonly default: false;
|
|
2669
|
+
};
|
|
2670
|
+
readonly location: {
|
|
2671
|
+
readonly type: "string";
|
|
2672
|
+
readonly required: true;
|
|
2673
|
+
readonly default: "";
|
|
2674
|
+
readonly validate: (value: unknown) => boolean;
|
|
2675
|
+
};
|
|
2676
|
+
readonly organizer: {
|
|
2677
|
+
readonly type: "string";
|
|
2678
|
+
readonly required: true;
|
|
2679
|
+
readonly default: "";
|
|
2680
|
+
readonly validate: (value: unknown) => boolean;
|
|
2681
|
+
};
|
|
2682
|
+
readonly zoneCertainty: {
|
|
2683
|
+
readonly type: readonly ["Local", "Explicit", "Ambiguous"];
|
|
2684
|
+
readonly required: true;
|
|
2685
|
+
readonly default: "Explicit";
|
|
2686
|
+
};
|
|
2687
|
+
readonly icalData: {
|
|
2688
|
+
readonly type: "string";
|
|
2689
|
+
readonly required: true;
|
|
2690
|
+
readonly default: "";
|
|
2691
|
+
};
|
|
2692
|
+
readonly acceptedCalendarObjectId: {
|
|
2693
|
+
readonly type: "string";
|
|
2694
|
+
readonly required: true;
|
|
2695
|
+
readonly default: "";
|
|
2696
|
+
};
|
|
2697
|
+
readonly createdAt: {
|
|
2698
|
+
readonly type: "number";
|
|
2699
|
+
readonly readOnly: true;
|
|
2700
|
+
readonly required: true;
|
|
2701
|
+
readonly default: () => any;
|
|
2702
|
+
readonly set: () => any;
|
|
2703
|
+
};
|
|
2704
|
+
readonly updatedAt: {
|
|
2705
|
+
readonly type: "number";
|
|
2706
|
+
readonly watch: "*";
|
|
2707
|
+
readonly required: true;
|
|
2708
|
+
readonly default: () => any;
|
|
2709
|
+
readonly set: () => any;
|
|
2710
|
+
};
|
|
2711
|
+
};
|
|
2712
|
+
readonly indexes: {
|
|
2713
|
+
readonly byState: {
|
|
2714
|
+
readonly pk: {
|
|
2715
|
+
readonly field: "gsi1pk";
|
|
2716
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2717
|
+
};
|
|
2718
|
+
readonly sk: {
|
|
2719
|
+
readonly field: "gsi1sk";
|
|
2720
|
+
readonly composite: readonly ["state", "createdAt", "suggestionId"];
|
|
2721
|
+
};
|
|
2722
|
+
readonly index: "gsi1";
|
|
2723
|
+
};
|
|
2724
|
+
readonly byMessage: {
|
|
2725
|
+
readonly pk: {
|
|
2726
|
+
readonly field: "gsi0pk";
|
|
2727
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2728
|
+
};
|
|
2729
|
+
readonly sk: {
|
|
2730
|
+
readonly field: "gsi0sk";
|
|
2731
|
+
readonly composite: readonly ["messageId", "suggestionId"];
|
|
2732
|
+
};
|
|
2733
|
+
readonly index: "gsi0";
|
|
2734
|
+
};
|
|
2735
|
+
readonly CalendarSuggestion: {
|
|
2736
|
+
readonly pk: {
|
|
2737
|
+
readonly field: "pk";
|
|
2738
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2739
|
+
};
|
|
2740
|
+
readonly sk: {
|
|
2741
|
+
readonly field: "sk";
|
|
2742
|
+
readonly composite: readonly ["suggestionId"];
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2745
|
+
};
|
|
2746
|
+
readonly model: {
|
|
2747
|
+
readonly entity: "calendarSuggestion";
|
|
2748
|
+
readonly service: "remit";
|
|
2749
|
+
readonly version: "1";
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2602
2752
|
export declare const EnvelopeAddress: {
|
|
2603
2753
|
readonly attributes: {
|
|
2604
2754
|
readonly envelopeAddressId: {
|
package/index.d.mts
CHANGED
|
@@ -2599,6 +2599,156 @@ export declare const MessageReference: {
|
|
|
2599
2599
|
readonly version: "1";
|
|
2600
2600
|
};
|
|
2601
2601
|
};
|
|
2602
|
+
export declare const CalendarSuggestion: {
|
|
2603
|
+
readonly attributes: {
|
|
2604
|
+
readonly suggestionId: {
|
|
2605
|
+
readonly type: "string";
|
|
2606
|
+
readonly required: true;
|
|
2607
|
+
readonly validate: (value: unknown) => boolean;
|
|
2608
|
+
};
|
|
2609
|
+
readonly accountConfigId: {
|
|
2610
|
+
readonly type: "string";
|
|
2611
|
+
readonly required: true;
|
|
2612
|
+
readonly validate: (value: unknown) => boolean;
|
|
2613
|
+
};
|
|
2614
|
+
readonly messageId: {
|
|
2615
|
+
readonly type: "string";
|
|
2616
|
+
readonly required: true;
|
|
2617
|
+
readonly validate: (value: unknown) => boolean;
|
|
2618
|
+
};
|
|
2619
|
+
readonly bodyPartId: {
|
|
2620
|
+
readonly type: "string";
|
|
2621
|
+
readonly required: true;
|
|
2622
|
+
readonly validate: (value: unknown) => boolean;
|
|
2623
|
+
};
|
|
2624
|
+
readonly icalUid: {
|
|
2625
|
+
readonly type: "string";
|
|
2626
|
+
readonly required: true;
|
|
2627
|
+
readonly validate: (value: unknown) => boolean;
|
|
2628
|
+
};
|
|
2629
|
+
readonly sequence: {
|
|
2630
|
+
readonly type: "number";
|
|
2631
|
+
readonly required: true;
|
|
2632
|
+
readonly default: 0;
|
|
2633
|
+
readonly validate: (value: unknown) => boolean;
|
|
2634
|
+
};
|
|
2635
|
+
readonly method: {
|
|
2636
|
+
readonly type: readonly ["Request", "Reply", "Cancel", "Counter", "Publish", "None"];
|
|
2637
|
+
readonly required: true;
|
|
2638
|
+
readonly default: "None";
|
|
2639
|
+
};
|
|
2640
|
+
readonly source: {
|
|
2641
|
+
readonly type: readonly ["IcalendarPart", "IcalendarAttachment", "TextHeuristic"];
|
|
2642
|
+
readonly required: true;
|
|
2643
|
+
readonly default: "IcalendarPart";
|
|
2644
|
+
};
|
|
2645
|
+
readonly state: {
|
|
2646
|
+
readonly type: readonly ["Pending", "Accepted", "Declined", "Tentative", "Dismissed", "Superseded"];
|
|
2647
|
+
readonly required: true;
|
|
2648
|
+
readonly default: "Pending";
|
|
2649
|
+
};
|
|
2650
|
+
readonly summary: {
|
|
2651
|
+
readonly type: "string";
|
|
2652
|
+
readonly required: true;
|
|
2653
|
+
readonly validate: (value: unknown) => boolean;
|
|
2654
|
+
};
|
|
2655
|
+
readonly dtStart: {
|
|
2656
|
+
readonly type: "string";
|
|
2657
|
+
readonly required: true;
|
|
2658
|
+
readonly validate: (value: unknown) => boolean;
|
|
2659
|
+
};
|
|
2660
|
+
readonly dtEnd: {
|
|
2661
|
+
readonly type: "string";
|
|
2662
|
+
readonly required: true;
|
|
2663
|
+
readonly validate: (value: unknown) => boolean;
|
|
2664
|
+
};
|
|
2665
|
+
readonly allDay: {
|
|
2666
|
+
readonly type: "boolean";
|
|
2667
|
+
readonly required: true;
|
|
2668
|
+
readonly default: false;
|
|
2669
|
+
};
|
|
2670
|
+
readonly location: {
|
|
2671
|
+
readonly type: "string";
|
|
2672
|
+
readonly required: true;
|
|
2673
|
+
readonly default: "";
|
|
2674
|
+
readonly validate: (value: unknown) => boolean;
|
|
2675
|
+
};
|
|
2676
|
+
readonly organizer: {
|
|
2677
|
+
readonly type: "string";
|
|
2678
|
+
readonly required: true;
|
|
2679
|
+
readonly default: "";
|
|
2680
|
+
readonly validate: (value: unknown) => boolean;
|
|
2681
|
+
};
|
|
2682
|
+
readonly zoneCertainty: {
|
|
2683
|
+
readonly type: readonly ["Local", "Explicit", "Ambiguous"];
|
|
2684
|
+
readonly required: true;
|
|
2685
|
+
readonly default: "Explicit";
|
|
2686
|
+
};
|
|
2687
|
+
readonly icalData: {
|
|
2688
|
+
readonly type: "string";
|
|
2689
|
+
readonly required: true;
|
|
2690
|
+
readonly default: "";
|
|
2691
|
+
};
|
|
2692
|
+
readonly acceptedCalendarObjectId: {
|
|
2693
|
+
readonly type: "string";
|
|
2694
|
+
readonly required: true;
|
|
2695
|
+
readonly default: "";
|
|
2696
|
+
};
|
|
2697
|
+
readonly createdAt: {
|
|
2698
|
+
readonly type: "number";
|
|
2699
|
+
readonly readOnly: true;
|
|
2700
|
+
readonly required: true;
|
|
2701
|
+
readonly default: () => any;
|
|
2702
|
+
readonly set: () => any;
|
|
2703
|
+
};
|
|
2704
|
+
readonly updatedAt: {
|
|
2705
|
+
readonly type: "number";
|
|
2706
|
+
readonly watch: "*";
|
|
2707
|
+
readonly required: true;
|
|
2708
|
+
readonly default: () => any;
|
|
2709
|
+
readonly set: () => any;
|
|
2710
|
+
};
|
|
2711
|
+
};
|
|
2712
|
+
readonly indexes: {
|
|
2713
|
+
readonly byState: {
|
|
2714
|
+
readonly pk: {
|
|
2715
|
+
readonly field: "gsi1pk";
|
|
2716
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2717
|
+
};
|
|
2718
|
+
readonly sk: {
|
|
2719
|
+
readonly field: "gsi1sk";
|
|
2720
|
+
readonly composite: readonly ["state", "createdAt", "suggestionId"];
|
|
2721
|
+
};
|
|
2722
|
+
readonly index: "gsi1";
|
|
2723
|
+
};
|
|
2724
|
+
readonly byMessage: {
|
|
2725
|
+
readonly pk: {
|
|
2726
|
+
readonly field: "gsi0pk";
|
|
2727
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2728
|
+
};
|
|
2729
|
+
readonly sk: {
|
|
2730
|
+
readonly field: "gsi0sk";
|
|
2731
|
+
readonly composite: readonly ["messageId", "suggestionId"];
|
|
2732
|
+
};
|
|
2733
|
+
readonly index: "gsi0";
|
|
2734
|
+
};
|
|
2735
|
+
readonly CalendarSuggestion: {
|
|
2736
|
+
readonly pk: {
|
|
2737
|
+
readonly field: "pk";
|
|
2738
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2739
|
+
};
|
|
2740
|
+
readonly sk: {
|
|
2741
|
+
readonly field: "sk";
|
|
2742
|
+
readonly composite: readonly ["suggestionId"];
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2745
|
+
};
|
|
2746
|
+
readonly model: {
|
|
2747
|
+
readonly entity: "calendarSuggestion";
|
|
2748
|
+
readonly service: "remit";
|
|
2749
|
+
readonly version: "1";
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2602
2752
|
export declare const EnvelopeAddress: {
|
|
2603
2753
|
readonly attributes: {
|
|
2604
2754
|
readonly envelopeAddressId: {
|
package/index.d.ts
CHANGED
|
@@ -2599,6 +2599,156 @@ export declare const MessageReference: {
|
|
|
2599
2599
|
readonly version: "1";
|
|
2600
2600
|
};
|
|
2601
2601
|
};
|
|
2602
|
+
export declare const CalendarSuggestion: {
|
|
2603
|
+
readonly attributes: {
|
|
2604
|
+
readonly suggestionId: {
|
|
2605
|
+
readonly type: "string";
|
|
2606
|
+
readonly required: true;
|
|
2607
|
+
readonly validate: (value: unknown) => boolean;
|
|
2608
|
+
};
|
|
2609
|
+
readonly accountConfigId: {
|
|
2610
|
+
readonly type: "string";
|
|
2611
|
+
readonly required: true;
|
|
2612
|
+
readonly validate: (value: unknown) => boolean;
|
|
2613
|
+
};
|
|
2614
|
+
readonly messageId: {
|
|
2615
|
+
readonly type: "string";
|
|
2616
|
+
readonly required: true;
|
|
2617
|
+
readonly validate: (value: unknown) => boolean;
|
|
2618
|
+
};
|
|
2619
|
+
readonly bodyPartId: {
|
|
2620
|
+
readonly type: "string";
|
|
2621
|
+
readonly required: true;
|
|
2622
|
+
readonly validate: (value: unknown) => boolean;
|
|
2623
|
+
};
|
|
2624
|
+
readonly icalUid: {
|
|
2625
|
+
readonly type: "string";
|
|
2626
|
+
readonly required: true;
|
|
2627
|
+
readonly validate: (value: unknown) => boolean;
|
|
2628
|
+
};
|
|
2629
|
+
readonly sequence: {
|
|
2630
|
+
readonly type: "number";
|
|
2631
|
+
readonly required: true;
|
|
2632
|
+
readonly default: 0;
|
|
2633
|
+
readonly validate: (value: unknown) => boolean;
|
|
2634
|
+
};
|
|
2635
|
+
readonly method: {
|
|
2636
|
+
readonly type: readonly ["Request", "Reply", "Cancel", "Counter", "Publish", "None"];
|
|
2637
|
+
readonly required: true;
|
|
2638
|
+
readonly default: "None";
|
|
2639
|
+
};
|
|
2640
|
+
readonly source: {
|
|
2641
|
+
readonly type: readonly ["IcalendarPart", "IcalendarAttachment", "TextHeuristic"];
|
|
2642
|
+
readonly required: true;
|
|
2643
|
+
readonly default: "IcalendarPart";
|
|
2644
|
+
};
|
|
2645
|
+
readonly state: {
|
|
2646
|
+
readonly type: readonly ["Pending", "Accepted", "Declined", "Tentative", "Dismissed", "Superseded"];
|
|
2647
|
+
readonly required: true;
|
|
2648
|
+
readonly default: "Pending";
|
|
2649
|
+
};
|
|
2650
|
+
readonly summary: {
|
|
2651
|
+
readonly type: "string";
|
|
2652
|
+
readonly required: true;
|
|
2653
|
+
readonly validate: (value: unknown) => boolean;
|
|
2654
|
+
};
|
|
2655
|
+
readonly dtStart: {
|
|
2656
|
+
readonly type: "string";
|
|
2657
|
+
readonly required: true;
|
|
2658
|
+
readonly validate: (value: unknown) => boolean;
|
|
2659
|
+
};
|
|
2660
|
+
readonly dtEnd: {
|
|
2661
|
+
readonly type: "string";
|
|
2662
|
+
readonly required: true;
|
|
2663
|
+
readonly validate: (value: unknown) => boolean;
|
|
2664
|
+
};
|
|
2665
|
+
readonly allDay: {
|
|
2666
|
+
readonly type: "boolean";
|
|
2667
|
+
readonly required: true;
|
|
2668
|
+
readonly default: false;
|
|
2669
|
+
};
|
|
2670
|
+
readonly location: {
|
|
2671
|
+
readonly type: "string";
|
|
2672
|
+
readonly required: true;
|
|
2673
|
+
readonly default: "";
|
|
2674
|
+
readonly validate: (value: unknown) => boolean;
|
|
2675
|
+
};
|
|
2676
|
+
readonly organizer: {
|
|
2677
|
+
readonly type: "string";
|
|
2678
|
+
readonly required: true;
|
|
2679
|
+
readonly default: "";
|
|
2680
|
+
readonly validate: (value: unknown) => boolean;
|
|
2681
|
+
};
|
|
2682
|
+
readonly zoneCertainty: {
|
|
2683
|
+
readonly type: readonly ["Local", "Explicit", "Ambiguous"];
|
|
2684
|
+
readonly required: true;
|
|
2685
|
+
readonly default: "Explicit";
|
|
2686
|
+
};
|
|
2687
|
+
readonly icalData: {
|
|
2688
|
+
readonly type: "string";
|
|
2689
|
+
readonly required: true;
|
|
2690
|
+
readonly default: "";
|
|
2691
|
+
};
|
|
2692
|
+
readonly acceptedCalendarObjectId: {
|
|
2693
|
+
readonly type: "string";
|
|
2694
|
+
readonly required: true;
|
|
2695
|
+
readonly default: "";
|
|
2696
|
+
};
|
|
2697
|
+
readonly createdAt: {
|
|
2698
|
+
readonly type: "number";
|
|
2699
|
+
readonly readOnly: true;
|
|
2700
|
+
readonly required: true;
|
|
2701
|
+
readonly default: () => any;
|
|
2702
|
+
readonly set: () => any;
|
|
2703
|
+
};
|
|
2704
|
+
readonly updatedAt: {
|
|
2705
|
+
readonly type: "number";
|
|
2706
|
+
readonly watch: "*";
|
|
2707
|
+
readonly required: true;
|
|
2708
|
+
readonly default: () => any;
|
|
2709
|
+
readonly set: () => any;
|
|
2710
|
+
};
|
|
2711
|
+
};
|
|
2712
|
+
readonly indexes: {
|
|
2713
|
+
readonly byState: {
|
|
2714
|
+
readonly pk: {
|
|
2715
|
+
readonly field: "gsi1pk";
|
|
2716
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2717
|
+
};
|
|
2718
|
+
readonly sk: {
|
|
2719
|
+
readonly field: "gsi1sk";
|
|
2720
|
+
readonly composite: readonly ["state", "createdAt", "suggestionId"];
|
|
2721
|
+
};
|
|
2722
|
+
readonly index: "gsi1";
|
|
2723
|
+
};
|
|
2724
|
+
readonly byMessage: {
|
|
2725
|
+
readonly pk: {
|
|
2726
|
+
readonly field: "gsi0pk";
|
|
2727
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2728
|
+
};
|
|
2729
|
+
readonly sk: {
|
|
2730
|
+
readonly field: "gsi0sk";
|
|
2731
|
+
readonly composite: readonly ["messageId", "suggestionId"];
|
|
2732
|
+
};
|
|
2733
|
+
readonly index: "gsi0";
|
|
2734
|
+
};
|
|
2735
|
+
readonly CalendarSuggestion: {
|
|
2736
|
+
readonly pk: {
|
|
2737
|
+
readonly field: "pk";
|
|
2738
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2739
|
+
};
|
|
2740
|
+
readonly sk: {
|
|
2741
|
+
readonly field: "sk";
|
|
2742
|
+
readonly composite: readonly ["suggestionId"];
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2745
|
+
};
|
|
2746
|
+
readonly model: {
|
|
2747
|
+
readonly entity: "calendarSuggestion";
|
|
2748
|
+
readonly service: "remit";
|
|
2749
|
+
readonly version: "1";
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2602
2752
|
export declare const EnvelopeAddress: {
|
|
2603
2753
|
readonly attributes: {
|
|
2604
2754
|
readonly envelopeAddressId: {
|
package/index.mjs
CHANGED
|
@@ -3316,6 +3316,208 @@ export const MessageReference = {
|
|
|
3316
3316
|
version: "1"
|
|
3317
3317
|
}
|
|
3318
3318
|
};
|
|
3319
|
+
export const CalendarSuggestion = {
|
|
3320
|
+
attributes: {
|
|
3321
|
+
suggestionId: {
|
|
3322
|
+
type: "string",
|
|
3323
|
+
required: true,
|
|
3324
|
+
validate: value => {
|
|
3325
|
+
if (typeof value === "string" && value.length < 25)
|
|
3326
|
+
throw new Error("'suggestionId' must be at least 25 characters");
|
|
3327
|
+
if (typeof value === "string" && value.length > 25)
|
|
3328
|
+
throw new Error("'suggestionId' must be at most 25 characters");
|
|
3329
|
+
return true;
|
|
3330
|
+
}
|
|
3331
|
+
},
|
|
3332
|
+
accountConfigId: {
|
|
3333
|
+
type: "string",
|
|
3334
|
+
required: true,
|
|
3335
|
+
validate: value => {
|
|
3336
|
+
if (typeof value === "string" && value.length < 25)
|
|
3337
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
3338
|
+
if (typeof value === "string" && value.length > 25)
|
|
3339
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
3340
|
+
return true;
|
|
3341
|
+
}
|
|
3342
|
+
},
|
|
3343
|
+
messageId: {
|
|
3344
|
+
type: "string",
|
|
3345
|
+
required: true,
|
|
3346
|
+
validate: value => {
|
|
3347
|
+
if (typeof value === "string" && value.length < 25)
|
|
3348
|
+
throw new Error("'messageId' must be at least 25 characters");
|
|
3349
|
+
if (typeof value === "string" && value.length > 25)
|
|
3350
|
+
throw new Error("'messageId' must be at most 25 characters");
|
|
3351
|
+
return true;
|
|
3352
|
+
}
|
|
3353
|
+
},
|
|
3354
|
+
bodyPartId: {
|
|
3355
|
+
type: "string",
|
|
3356
|
+
required: true,
|
|
3357
|
+
validate: value => {
|
|
3358
|
+
if (typeof value === "string" && value.length < 25)
|
|
3359
|
+
throw new Error("'bodyPartId' must be at least 25 characters");
|
|
3360
|
+
if (typeof value === "string" && value.length > 25)
|
|
3361
|
+
throw new Error("'bodyPartId' must be at most 25 characters");
|
|
3362
|
+
return true;
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
icalUid: {
|
|
3366
|
+
type: "string",
|
|
3367
|
+
required: true,
|
|
3368
|
+
validate: value => {
|
|
3369
|
+
if (typeof value === "string" && value.length > 512)
|
|
3370
|
+
throw new Error("'icalUid' must be at most 512 characters");
|
|
3371
|
+
return true;
|
|
3372
|
+
}
|
|
3373
|
+
},
|
|
3374
|
+
sequence: {
|
|
3375
|
+
type: "number",
|
|
3376
|
+
required: true,
|
|
3377
|
+
default: 0,
|
|
3378
|
+
validate: value => {
|
|
3379
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3380
|
+
throw new Error("'sequence' must be an integer");
|
|
3381
|
+
return true;
|
|
3382
|
+
}
|
|
3383
|
+
},
|
|
3384
|
+
method: {
|
|
3385
|
+
type: ["Request", "Reply", "Cancel", "Counter", "Publish", "None"],
|
|
3386
|
+
required: true,
|
|
3387
|
+
default: "None"
|
|
3388
|
+
},
|
|
3389
|
+
source: {
|
|
3390
|
+
type: ["IcalendarPart", "IcalendarAttachment", "TextHeuristic"],
|
|
3391
|
+
required: true,
|
|
3392
|
+
default: "IcalendarPart"
|
|
3393
|
+
},
|
|
3394
|
+
state: {
|
|
3395
|
+
type: ["Pending", "Accepted", "Declined", "Tentative", "Dismissed", "Superseded"],
|
|
3396
|
+
required: true,
|
|
3397
|
+
default: "Pending"
|
|
3398
|
+
},
|
|
3399
|
+
summary: {
|
|
3400
|
+
type: "string",
|
|
3401
|
+
required: true,
|
|
3402
|
+
validate: value => {
|
|
3403
|
+
if (typeof value === "string" && value.length > 512)
|
|
3404
|
+
throw new Error("'summary' must be at most 512 characters");
|
|
3405
|
+
return true;
|
|
3406
|
+
}
|
|
3407
|
+
},
|
|
3408
|
+
dtStart: {
|
|
3409
|
+
type: "string",
|
|
3410
|
+
required: true,
|
|
3411
|
+
validate: value => {
|
|
3412
|
+
if (typeof value === "string" && value.length > 64)
|
|
3413
|
+
throw new Error("'dtStart' must be at most 64 characters");
|
|
3414
|
+
return true;
|
|
3415
|
+
}
|
|
3416
|
+
},
|
|
3417
|
+
dtEnd: {
|
|
3418
|
+
type: "string",
|
|
3419
|
+
required: true,
|
|
3420
|
+
validate: value => {
|
|
3421
|
+
if (typeof value === "string" && value.length > 64)
|
|
3422
|
+
throw new Error("'dtEnd' must be at most 64 characters");
|
|
3423
|
+
return true;
|
|
3424
|
+
}
|
|
3425
|
+
},
|
|
3426
|
+
allDay: {
|
|
3427
|
+
type: "boolean",
|
|
3428
|
+
required: true,
|
|
3429
|
+
default: false
|
|
3430
|
+
},
|
|
3431
|
+
location: {
|
|
3432
|
+
type: "string",
|
|
3433
|
+
required: true,
|
|
3434
|
+
default: "",
|
|
3435
|
+
validate: value => {
|
|
3436
|
+
if (typeof value === "string" && value.length > 512)
|
|
3437
|
+
throw new Error("'location' must be at most 512 characters");
|
|
3438
|
+
return true;
|
|
3439
|
+
}
|
|
3440
|
+
},
|
|
3441
|
+
organizer: {
|
|
3442
|
+
type: "string",
|
|
3443
|
+
required: true,
|
|
3444
|
+
default: "",
|
|
3445
|
+
validate: value => {
|
|
3446
|
+
if (typeof value === "string" && value.length > 256)
|
|
3447
|
+
throw new Error("'organizer' must be at most 256 characters");
|
|
3448
|
+
return true;
|
|
3449
|
+
}
|
|
3450
|
+
},
|
|
3451
|
+
zoneCertainty: {
|
|
3452
|
+
type: ["Local", "Explicit", "Ambiguous"],
|
|
3453
|
+
required: true,
|
|
3454
|
+
default: "Explicit"
|
|
3455
|
+
},
|
|
3456
|
+
icalData: {
|
|
3457
|
+
type: "string",
|
|
3458
|
+
required: true,
|
|
3459
|
+
default: ""
|
|
3460
|
+
},
|
|
3461
|
+
acceptedCalendarObjectId: {
|
|
3462
|
+
type: "string",
|
|
3463
|
+
required: true,
|
|
3464
|
+
default: ""
|
|
3465
|
+
},
|
|
3466
|
+
createdAt: {
|
|
3467
|
+
type: "number",
|
|
3468
|
+
readOnly: true,
|
|
3469
|
+
required: true,
|
|
3470
|
+
default: () => Date.now(),
|
|
3471
|
+
set: () => Date.now()
|
|
3472
|
+
},
|
|
3473
|
+
updatedAt: {
|
|
3474
|
+
type: "number",
|
|
3475
|
+
watch: "*",
|
|
3476
|
+
required: true,
|
|
3477
|
+
default: () => Date.now(),
|
|
3478
|
+
set: () => Date.now()
|
|
3479
|
+
}
|
|
3480
|
+
},
|
|
3481
|
+
indexes: {
|
|
3482
|
+
byState: {
|
|
3483
|
+
pk: {
|
|
3484
|
+
field: "gsi1pk",
|
|
3485
|
+
composite: ["accountConfigId"]
|
|
3486
|
+
},
|
|
3487
|
+
sk: {
|
|
3488
|
+
field: "gsi1sk",
|
|
3489
|
+
composite: ["state", "createdAt", "suggestionId"]
|
|
3490
|
+
},
|
|
3491
|
+
index: "gsi1"
|
|
3492
|
+
},
|
|
3493
|
+
byMessage: {
|
|
3494
|
+
pk: {
|
|
3495
|
+
field: "gsi0pk",
|
|
3496
|
+
composite: ["accountConfigId"]
|
|
3497
|
+
},
|
|
3498
|
+
sk: {
|
|
3499
|
+
field: "gsi0sk",
|
|
3500
|
+
composite: ["messageId", "suggestionId"]
|
|
3501
|
+
},
|
|
3502
|
+
index: "gsi0"
|
|
3503
|
+
},
|
|
3504
|
+
CalendarSuggestion: {
|
|
3505
|
+
pk: {
|
|
3506
|
+
field: "pk",
|
|
3507
|
+
composite: ["accountConfigId"]
|
|
3508
|
+
},
|
|
3509
|
+
sk: {
|
|
3510
|
+
field: "sk",
|
|
3511
|
+
composite: ["suggestionId"]
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
},
|
|
3515
|
+
model: {
|
|
3516
|
+
entity: "calendarSuggestion",
|
|
3517
|
+
service: "remit",
|
|
3518
|
+
version: "1"
|
|
3519
|
+
}
|
|
3520
|
+
};
|
|
3319
3521
|
export const EnvelopeAddress = {
|
|
3320
3522
|
attributes: {
|
|
3321
3523
|
envelopeAddressId: {
|