@remit/electrodb-entities 0.0.16 → 0.0.18
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 +133 -2
- package/index.d.cts +108 -1
- package/index.d.mts +108 -1
- package/index.d.ts +108 -1
- package/index.mjs +132 -1
- 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.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.EnvelopeAddress = exports.MessageReference = exports.BodyPart = exports.Message = exports.Address = exports.OutboxAttachment = exports.OutboxMessage = exports.ThreadMessage = exports.OrganizeJobRequest = exports.Label = exports.Filter = exports.Mailbox = exports.Account = exports.AccountConfig = exports.Quarantine = exports.AccountExportRequest = void 0;
|
|
3
|
+
exports.FilterAnchor = exports.MessageLabel = 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.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: {
|
|
@@ -591,7 +591,7 @@ exports.Account = {
|
|
|
591
591
|
required: true
|
|
592
592
|
},
|
|
593
593
|
connectionState: {
|
|
594
|
-
type: ["not_authenticated", "authenticated", "selected", "logout", "reauth_required"],
|
|
594
|
+
type: ["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"],
|
|
595
595
|
required: true
|
|
596
596
|
},
|
|
597
597
|
lastConnectedAt: {
|
|
@@ -1792,6 +1792,16 @@ exports.OutboxMessage = {
|
|
|
1792
1792
|
type: "string",
|
|
1793
1793
|
required: false
|
|
1794
1794
|
},
|
|
1795
|
+
appendedUid: {
|
|
1796
|
+
type: "number",
|
|
1797
|
+
required: true,
|
|
1798
|
+
default: 0,
|
|
1799
|
+
validate: value => {
|
|
1800
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1801
|
+
throw new Error("'appendedUid' must be an integer");
|
|
1802
|
+
return true;
|
|
1803
|
+
}
|
|
1804
|
+
},
|
|
1795
1805
|
createdAt: {
|
|
1796
1806
|
type: "number",
|
|
1797
1807
|
readOnly: true,
|
|
@@ -3099,6 +3109,127 @@ exports.EnvelopeAddress = {
|
|
|
3099
3109
|
version: "1"
|
|
3100
3110
|
}
|
|
3101
3111
|
};
|
|
3112
|
+
exports.ConfigImport = {
|
|
3113
|
+
attributes: {
|
|
3114
|
+
importId: {
|
|
3115
|
+
type: "string",
|
|
3116
|
+
required: true,
|
|
3117
|
+
validate: value => {
|
|
3118
|
+
if (typeof value === "string" && value.length < 25)
|
|
3119
|
+
throw new Error("'importId' must be at least 25 characters");
|
|
3120
|
+
if (typeof value === "string" && value.length > 25)
|
|
3121
|
+
throw new Error("'importId' must be at most 25 characters");
|
|
3122
|
+
return true;
|
|
3123
|
+
}
|
|
3124
|
+
},
|
|
3125
|
+
accountConfigId: {
|
|
3126
|
+
type: "string",
|
|
3127
|
+
required: true,
|
|
3128
|
+
validate: value => {
|
|
3129
|
+
if (typeof value === "string" && value.length < 25)
|
|
3130
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
3131
|
+
if (typeof value === "string" && value.length > 25)
|
|
3132
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
3133
|
+
return true;
|
|
3134
|
+
}
|
|
3135
|
+
},
|
|
3136
|
+
schemaVersion: {
|
|
3137
|
+
type: "number",
|
|
3138
|
+
required: true,
|
|
3139
|
+
validate: value => {
|
|
3140
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3141
|
+
throw new Error("'schemaVersion' must be an integer");
|
|
3142
|
+
return true;
|
|
3143
|
+
}
|
|
3144
|
+
},
|
|
3145
|
+
state: {
|
|
3146
|
+
type: ["Pending", "Complete"],
|
|
3147
|
+
required: true,
|
|
3148
|
+
default: "Pending"
|
|
3149
|
+
},
|
|
3150
|
+
document: {
|
|
3151
|
+
type: (0, electrodb_1.CustomAttributeType)("any"),
|
|
3152
|
+
required: true
|
|
3153
|
+
},
|
|
3154
|
+
unresolvedRefs: {
|
|
3155
|
+
type: "list",
|
|
3156
|
+
items: {
|
|
3157
|
+
type: "map",
|
|
3158
|
+
properties: {
|
|
3159
|
+
kind: {
|
|
3160
|
+
type: ["FolderRole", "MailboxOverride", "FilterAction"],
|
|
3161
|
+
required: true
|
|
3162
|
+
},
|
|
3163
|
+
accountId: {
|
|
3164
|
+
type: "string",
|
|
3165
|
+
required: true
|
|
3166
|
+
},
|
|
3167
|
+
folderPath: {
|
|
3168
|
+
type: "string",
|
|
3169
|
+
required: true
|
|
3170
|
+
},
|
|
3171
|
+
target: {
|
|
3172
|
+
type: "string",
|
|
3173
|
+
required: true
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
required: true
|
|
3178
|
+
},
|
|
3179
|
+
createdAt: {
|
|
3180
|
+
type: "number",
|
|
3181
|
+
readOnly: true,
|
|
3182
|
+
required: true,
|
|
3183
|
+
default: () => Date.now(),
|
|
3184
|
+
set: () => Date.now()
|
|
3185
|
+
},
|
|
3186
|
+
completedAt: {
|
|
3187
|
+
type: "number",
|
|
3188
|
+
required: true,
|
|
3189
|
+
default: 0,
|
|
3190
|
+
validate: value => {
|
|
3191
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3192
|
+
throw new Error("'completedAt' must be an integer");
|
|
3193
|
+
return true;
|
|
3194
|
+
}
|
|
3195
|
+
},
|
|
3196
|
+
updatedAt: {
|
|
3197
|
+
type: "number",
|
|
3198
|
+
watch: "*",
|
|
3199
|
+
required: true,
|
|
3200
|
+
default: () => Date.now(),
|
|
3201
|
+
set: () => Date.now()
|
|
3202
|
+
}
|
|
3203
|
+
},
|
|
3204
|
+
indexes: {
|
|
3205
|
+
byAccountConfigId: {
|
|
3206
|
+
pk: {
|
|
3207
|
+
field: "gsi0pk",
|
|
3208
|
+
composite: ["accountConfigId"]
|
|
3209
|
+
},
|
|
3210
|
+
sk: {
|
|
3211
|
+
field: "gsi0sk",
|
|
3212
|
+
composite: ["createdAt"]
|
|
3213
|
+
},
|
|
3214
|
+
index: "gsi0"
|
|
3215
|
+
},
|
|
3216
|
+
ConfigImport: {
|
|
3217
|
+
pk: {
|
|
3218
|
+
field: "pk",
|
|
3219
|
+
composite: ["importId"]
|
|
3220
|
+
},
|
|
3221
|
+
sk: {
|
|
3222
|
+
field: "sk",
|
|
3223
|
+
composite: []
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
},
|
|
3227
|
+
model: {
|
|
3228
|
+
entity: "configImport",
|
|
3229
|
+
service: "remit",
|
|
3230
|
+
version: "1"
|
|
3231
|
+
}
|
|
3232
|
+
};
|
|
3102
3233
|
exports.AccountSetting = {
|
|
3103
3234
|
attributes: {
|
|
3104
3235
|
accountSettingId: {
|
package/index.d.cts
CHANGED
|
@@ -435,7 +435,7 @@ export declare const Account: {
|
|
|
435
435
|
readonly required: true;
|
|
436
436
|
};
|
|
437
437
|
readonly connectionState: {
|
|
438
|
-
readonly type: readonly ["not_authenticated", "authenticated", "selected", "logout", "reauth_required"];
|
|
438
|
+
readonly type: readonly ["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"];
|
|
439
439
|
readonly required: true;
|
|
440
440
|
};
|
|
441
441
|
readonly lastConnectedAt: {
|
|
@@ -1364,6 +1364,12 @@ export declare const OutboxMessage: {
|
|
|
1364
1364
|
readonly type: "string";
|
|
1365
1365
|
readonly required: false;
|
|
1366
1366
|
};
|
|
1367
|
+
readonly appendedUid: {
|
|
1368
|
+
readonly type: "number";
|
|
1369
|
+
readonly required: true;
|
|
1370
|
+
readonly default: 0;
|
|
1371
|
+
readonly validate: (value: unknown) => boolean;
|
|
1372
|
+
};
|
|
1367
1373
|
readonly createdAt: {
|
|
1368
1374
|
readonly type: "number";
|
|
1369
1375
|
readonly readOnly: true;
|
|
@@ -2435,6 +2441,107 @@ export declare const EnvelopeAddress: {
|
|
|
2435
2441
|
readonly version: "1";
|
|
2436
2442
|
};
|
|
2437
2443
|
};
|
|
2444
|
+
export declare const ConfigImport: {
|
|
2445
|
+
readonly attributes: {
|
|
2446
|
+
readonly importId: {
|
|
2447
|
+
readonly type: "string";
|
|
2448
|
+
readonly required: true;
|
|
2449
|
+
readonly validate: (value: unknown) => boolean;
|
|
2450
|
+
};
|
|
2451
|
+
readonly accountConfigId: {
|
|
2452
|
+
readonly type: "string";
|
|
2453
|
+
readonly required: true;
|
|
2454
|
+
readonly validate: (value: unknown) => boolean;
|
|
2455
|
+
};
|
|
2456
|
+
readonly schemaVersion: {
|
|
2457
|
+
readonly type: "number";
|
|
2458
|
+
readonly required: true;
|
|
2459
|
+
readonly validate: (value: unknown) => boolean;
|
|
2460
|
+
};
|
|
2461
|
+
readonly state: {
|
|
2462
|
+
readonly type: readonly ["Pending", "Complete"];
|
|
2463
|
+
readonly required: true;
|
|
2464
|
+
readonly default: "Pending";
|
|
2465
|
+
};
|
|
2466
|
+
readonly document: {
|
|
2467
|
+
readonly type: any;
|
|
2468
|
+
readonly required: true;
|
|
2469
|
+
};
|
|
2470
|
+
readonly unresolvedRefs: {
|
|
2471
|
+
readonly type: "list";
|
|
2472
|
+
readonly items: {
|
|
2473
|
+
readonly type: "map";
|
|
2474
|
+
readonly properties: {
|
|
2475
|
+
readonly kind: {
|
|
2476
|
+
readonly type: readonly ["FolderRole", "MailboxOverride", "FilterAction"];
|
|
2477
|
+
readonly required: true;
|
|
2478
|
+
};
|
|
2479
|
+
readonly accountId: {
|
|
2480
|
+
readonly type: "string";
|
|
2481
|
+
readonly required: true;
|
|
2482
|
+
};
|
|
2483
|
+
readonly folderPath: {
|
|
2484
|
+
readonly type: "string";
|
|
2485
|
+
readonly required: true;
|
|
2486
|
+
};
|
|
2487
|
+
readonly target: {
|
|
2488
|
+
readonly type: "string";
|
|
2489
|
+
readonly required: true;
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
readonly required: true;
|
|
2494
|
+
};
|
|
2495
|
+
readonly createdAt: {
|
|
2496
|
+
readonly type: "number";
|
|
2497
|
+
readonly readOnly: true;
|
|
2498
|
+
readonly required: true;
|
|
2499
|
+
readonly default: () => any;
|
|
2500
|
+
readonly set: () => any;
|
|
2501
|
+
};
|
|
2502
|
+
readonly completedAt: {
|
|
2503
|
+
readonly type: "number";
|
|
2504
|
+
readonly required: true;
|
|
2505
|
+
readonly default: 0;
|
|
2506
|
+
readonly validate: (value: unknown) => boolean;
|
|
2507
|
+
};
|
|
2508
|
+
readonly updatedAt: {
|
|
2509
|
+
readonly type: "number";
|
|
2510
|
+
readonly watch: "*";
|
|
2511
|
+
readonly required: true;
|
|
2512
|
+
readonly default: () => any;
|
|
2513
|
+
readonly set: () => any;
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
readonly indexes: {
|
|
2517
|
+
readonly byAccountConfigId: {
|
|
2518
|
+
readonly pk: {
|
|
2519
|
+
readonly field: "gsi0pk";
|
|
2520
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2521
|
+
};
|
|
2522
|
+
readonly sk: {
|
|
2523
|
+
readonly field: "gsi0sk";
|
|
2524
|
+
readonly composite: readonly ["createdAt"];
|
|
2525
|
+
};
|
|
2526
|
+
readonly index: "gsi0";
|
|
2527
|
+
};
|
|
2528
|
+
readonly ConfigImport: {
|
|
2529
|
+
readonly pk: {
|
|
2530
|
+
readonly field: "pk";
|
|
2531
|
+
readonly composite: readonly ["importId"];
|
|
2532
|
+
};
|
|
2533
|
+
readonly sk: {
|
|
2534
|
+
readonly field: "sk";
|
|
2535
|
+
readonly composite: readonly [];
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
};
|
|
2539
|
+
readonly model: {
|
|
2540
|
+
readonly entity: "configImport";
|
|
2541
|
+
readonly service: "remit";
|
|
2542
|
+
readonly version: "1";
|
|
2543
|
+
};
|
|
2544
|
+
};
|
|
2438
2545
|
export declare const AccountSetting: {
|
|
2439
2546
|
readonly attributes: {
|
|
2440
2547
|
readonly accountSettingId: {
|
package/index.d.mts
CHANGED
|
@@ -435,7 +435,7 @@ export declare const Account: {
|
|
|
435
435
|
readonly required: true;
|
|
436
436
|
};
|
|
437
437
|
readonly connectionState: {
|
|
438
|
-
readonly type: readonly ["not_authenticated", "authenticated", "selected", "logout", "reauth_required"];
|
|
438
|
+
readonly type: readonly ["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"];
|
|
439
439
|
readonly required: true;
|
|
440
440
|
};
|
|
441
441
|
readonly lastConnectedAt: {
|
|
@@ -1364,6 +1364,12 @@ export declare const OutboxMessage: {
|
|
|
1364
1364
|
readonly type: "string";
|
|
1365
1365
|
readonly required: false;
|
|
1366
1366
|
};
|
|
1367
|
+
readonly appendedUid: {
|
|
1368
|
+
readonly type: "number";
|
|
1369
|
+
readonly required: true;
|
|
1370
|
+
readonly default: 0;
|
|
1371
|
+
readonly validate: (value: unknown) => boolean;
|
|
1372
|
+
};
|
|
1367
1373
|
readonly createdAt: {
|
|
1368
1374
|
readonly type: "number";
|
|
1369
1375
|
readonly readOnly: true;
|
|
@@ -2435,6 +2441,107 @@ export declare const EnvelopeAddress: {
|
|
|
2435
2441
|
readonly version: "1";
|
|
2436
2442
|
};
|
|
2437
2443
|
};
|
|
2444
|
+
export declare const ConfigImport: {
|
|
2445
|
+
readonly attributes: {
|
|
2446
|
+
readonly importId: {
|
|
2447
|
+
readonly type: "string";
|
|
2448
|
+
readonly required: true;
|
|
2449
|
+
readonly validate: (value: unknown) => boolean;
|
|
2450
|
+
};
|
|
2451
|
+
readonly accountConfigId: {
|
|
2452
|
+
readonly type: "string";
|
|
2453
|
+
readonly required: true;
|
|
2454
|
+
readonly validate: (value: unknown) => boolean;
|
|
2455
|
+
};
|
|
2456
|
+
readonly schemaVersion: {
|
|
2457
|
+
readonly type: "number";
|
|
2458
|
+
readonly required: true;
|
|
2459
|
+
readonly validate: (value: unknown) => boolean;
|
|
2460
|
+
};
|
|
2461
|
+
readonly state: {
|
|
2462
|
+
readonly type: readonly ["Pending", "Complete"];
|
|
2463
|
+
readonly required: true;
|
|
2464
|
+
readonly default: "Pending";
|
|
2465
|
+
};
|
|
2466
|
+
readonly document: {
|
|
2467
|
+
readonly type: any;
|
|
2468
|
+
readonly required: true;
|
|
2469
|
+
};
|
|
2470
|
+
readonly unresolvedRefs: {
|
|
2471
|
+
readonly type: "list";
|
|
2472
|
+
readonly items: {
|
|
2473
|
+
readonly type: "map";
|
|
2474
|
+
readonly properties: {
|
|
2475
|
+
readonly kind: {
|
|
2476
|
+
readonly type: readonly ["FolderRole", "MailboxOverride", "FilterAction"];
|
|
2477
|
+
readonly required: true;
|
|
2478
|
+
};
|
|
2479
|
+
readonly accountId: {
|
|
2480
|
+
readonly type: "string";
|
|
2481
|
+
readonly required: true;
|
|
2482
|
+
};
|
|
2483
|
+
readonly folderPath: {
|
|
2484
|
+
readonly type: "string";
|
|
2485
|
+
readonly required: true;
|
|
2486
|
+
};
|
|
2487
|
+
readonly target: {
|
|
2488
|
+
readonly type: "string";
|
|
2489
|
+
readonly required: true;
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
readonly required: true;
|
|
2494
|
+
};
|
|
2495
|
+
readonly createdAt: {
|
|
2496
|
+
readonly type: "number";
|
|
2497
|
+
readonly readOnly: true;
|
|
2498
|
+
readonly required: true;
|
|
2499
|
+
readonly default: () => any;
|
|
2500
|
+
readonly set: () => any;
|
|
2501
|
+
};
|
|
2502
|
+
readonly completedAt: {
|
|
2503
|
+
readonly type: "number";
|
|
2504
|
+
readonly required: true;
|
|
2505
|
+
readonly default: 0;
|
|
2506
|
+
readonly validate: (value: unknown) => boolean;
|
|
2507
|
+
};
|
|
2508
|
+
readonly updatedAt: {
|
|
2509
|
+
readonly type: "number";
|
|
2510
|
+
readonly watch: "*";
|
|
2511
|
+
readonly required: true;
|
|
2512
|
+
readonly default: () => any;
|
|
2513
|
+
readonly set: () => any;
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
readonly indexes: {
|
|
2517
|
+
readonly byAccountConfigId: {
|
|
2518
|
+
readonly pk: {
|
|
2519
|
+
readonly field: "gsi0pk";
|
|
2520
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2521
|
+
};
|
|
2522
|
+
readonly sk: {
|
|
2523
|
+
readonly field: "gsi0sk";
|
|
2524
|
+
readonly composite: readonly ["createdAt"];
|
|
2525
|
+
};
|
|
2526
|
+
readonly index: "gsi0";
|
|
2527
|
+
};
|
|
2528
|
+
readonly ConfigImport: {
|
|
2529
|
+
readonly pk: {
|
|
2530
|
+
readonly field: "pk";
|
|
2531
|
+
readonly composite: readonly ["importId"];
|
|
2532
|
+
};
|
|
2533
|
+
readonly sk: {
|
|
2534
|
+
readonly field: "sk";
|
|
2535
|
+
readonly composite: readonly [];
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
};
|
|
2539
|
+
readonly model: {
|
|
2540
|
+
readonly entity: "configImport";
|
|
2541
|
+
readonly service: "remit";
|
|
2542
|
+
readonly version: "1";
|
|
2543
|
+
};
|
|
2544
|
+
};
|
|
2438
2545
|
export declare const AccountSetting: {
|
|
2439
2546
|
readonly attributes: {
|
|
2440
2547
|
readonly accountSettingId: {
|
package/index.d.ts
CHANGED
|
@@ -435,7 +435,7 @@ export declare const Account: {
|
|
|
435
435
|
readonly required: true;
|
|
436
436
|
};
|
|
437
437
|
readonly connectionState: {
|
|
438
|
-
readonly type: readonly ["not_authenticated", "authenticated", "selected", "logout", "reauth_required"];
|
|
438
|
+
readonly type: readonly ["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"];
|
|
439
439
|
readonly required: true;
|
|
440
440
|
};
|
|
441
441
|
readonly lastConnectedAt: {
|
|
@@ -1364,6 +1364,12 @@ export declare const OutboxMessage: {
|
|
|
1364
1364
|
readonly type: "string";
|
|
1365
1365
|
readonly required: false;
|
|
1366
1366
|
};
|
|
1367
|
+
readonly appendedUid: {
|
|
1368
|
+
readonly type: "number";
|
|
1369
|
+
readonly required: true;
|
|
1370
|
+
readonly default: 0;
|
|
1371
|
+
readonly validate: (value: unknown) => boolean;
|
|
1372
|
+
};
|
|
1367
1373
|
readonly createdAt: {
|
|
1368
1374
|
readonly type: "number";
|
|
1369
1375
|
readonly readOnly: true;
|
|
@@ -2435,6 +2441,107 @@ export declare const EnvelopeAddress: {
|
|
|
2435
2441
|
readonly version: "1";
|
|
2436
2442
|
};
|
|
2437
2443
|
};
|
|
2444
|
+
export declare const ConfigImport: {
|
|
2445
|
+
readonly attributes: {
|
|
2446
|
+
readonly importId: {
|
|
2447
|
+
readonly type: "string";
|
|
2448
|
+
readonly required: true;
|
|
2449
|
+
readonly validate: (value: unknown) => boolean;
|
|
2450
|
+
};
|
|
2451
|
+
readonly accountConfigId: {
|
|
2452
|
+
readonly type: "string";
|
|
2453
|
+
readonly required: true;
|
|
2454
|
+
readonly validate: (value: unknown) => boolean;
|
|
2455
|
+
};
|
|
2456
|
+
readonly schemaVersion: {
|
|
2457
|
+
readonly type: "number";
|
|
2458
|
+
readonly required: true;
|
|
2459
|
+
readonly validate: (value: unknown) => boolean;
|
|
2460
|
+
};
|
|
2461
|
+
readonly state: {
|
|
2462
|
+
readonly type: readonly ["Pending", "Complete"];
|
|
2463
|
+
readonly required: true;
|
|
2464
|
+
readonly default: "Pending";
|
|
2465
|
+
};
|
|
2466
|
+
readonly document: {
|
|
2467
|
+
readonly type: any;
|
|
2468
|
+
readonly required: true;
|
|
2469
|
+
};
|
|
2470
|
+
readonly unresolvedRefs: {
|
|
2471
|
+
readonly type: "list";
|
|
2472
|
+
readonly items: {
|
|
2473
|
+
readonly type: "map";
|
|
2474
|
+
readonly properties: {
|
|
2475
|
+
readonly kind: {
|
|
2476
|
+
readonly type: readonly ["FolderRole", "MailboxOverride", "FilterAction"];
|
|
2477
|
+
readonly required: true;
|
|
2478
|
+
};
|
|
2479
|
+
readonly accountId: {
|
|
2480
|
+
readonly type: "string";
|
|
2481
|
+
readonly required: true;
|
|
2482
|
+
};
|
|
2483
|
+
readonly folderPath: {
|
|
2484
|
+
readonly type: "string";
|
|
2485
|
+
readonly required: true;
|
|
2486
|
+
};
|
|
2487
|
+
readonly target: {
|
|
2488
|
+
readonly type: "string";
|
|
2489
|
+
readonly required: true;
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
readonly required: true;
|
|
2494
|
+
};
|
|
2495
|
+
readonly createdAt: {
|
|
2496
|
+
readonly type: "number";
|
|
2497
|
+
readonly readOnly: true;
|
|
2498
|
+
readonly required: true;
|
|
2499
|
+
readonly default: () => any;
|
|
2500
|
+
readonly set: () => any;
|
|
2501
|
+
};
|
|
2502
|
+
readonly completedAt: {
|
|
2503
|
+
readonly type: "number";
|
|
2504
|
+
readonly required: true;
|
|
2505
|
+
readonly default: 0;
|
|
2506
|
+
readonly validate: (value: unknown) => boolean;
|
|
2507
|
+
};
|
|
2508
|
+
readonly updatedAt: {
|
|
2509
|
+
readonly type: "number";
|
|
2510
|
+
readonly watch: "*";
|
|
2511
|
+
readonly required: true;
|
|
2512
|
+
readonly default: () => any;
|
|
2513
|
+
readonly set: () => any;
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
readonly indexes: {
|
|
2517
|
+
readonly byAccountConfigId: {
|
|
2518
|
+
readonly pk: {
|
|
2519
|
+
readonly field: "gsi0pk";
|
|
2520
|
+
readonly composite: readonly ["accountConfigId"];
|
|
2521
|
+
};
|
|
2522
|
+
readonly sk: {
|
|
2523
|
+
readonly field: "gsi0sk";
|
|
2524
|
+
readonly composite: readonly ["createdAt"];
|
|
2525
|
+
};
|
|
2526
|
+
readonly index: "gsi0";
|
|
2527
|
+
};
|
|
2528
|
+
readonly ConfigImport: {
|
|
2529
|
+
readonly pk: {
|
|
2530
|
+
readonly field: "pk";
|
|
2531
|
+
readonly composite: readonly ["importId"];
|
|
2532
|
+
};
|
|
2533
|
+
readonly sk: {
|
|
2534
|
+
readonly field: "sk";
|
|
2535
|
+
readonly composite: readonly [];
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
};
|
|
2539
|
+
readonly model: {
|
|
2540
|
+
readonly entity: "configImport";
|
|
2541
|
+
readonly service: "remit";
|
|
2542
|
+
readonly version: "1";
|
|
2543
|
+
};
|
|
2544
|
+
};
|
|
2438
2545
|
export declare const AccountSetting: {
|
|
2439
2546
|
readonly attributes: {
|
|
2440
2547
|
readonly accountSettingId: {
|
package/index.mjs
CHANGED
|
@@ -588,7 +588,7 @@ export const Account = {
|
|
|
588
588
|
required: true
|
|
589
589
|
},
|
|
590
590
|
connectionState: {
|
|
591
|
-
type: ["not_authenticated", "authenticated", "selected", "logout", "reauth_required"],
|
|
591
|
+
type: ["not_authenticated", "authenticated", "selected", "logout", "reauth_required", "credentials_missing"],
|
|
592
592
|
required: true
|
|
593
593
|
},
|
|
594
594
|
lastConnectedAt: {
|
|
@@ -1789,6 +1789,16 @@ export const OutboxMessage = {
|
|
|
1789
1789
|
type: "string",
|
|
1790
1790
|
required: false
|
|
1791
1791
|
},
|
|
1792
|
+
appendedUid: {
|
|
1793
|
+
type: "number",
|
|
1794
|
+
required: true,
|
|
1795
|
+
default: 0,
|
|
1796
|
+
validate: value => {
|
|
1797
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1798
|
+
throw new Error("'appendedUid' must be an integer");
|
|
1799
|
+
return true;
|
|
1800
|
+
}
|
|
1801
|
+
},
|
|
1792
1802
|
createdAt: {
|
|
1793
1803
|
type: "number",
|
|
1794
1804
|
readOnly: true,
|
|
@@ -3096,6 +3106,127 @@ export const EnvelopeAddress = {
|
|
|
3096
3106
|
version: "1"
|
|
3097
3107
|
}
|
|
3098
3108
|
};
|
|
3109
|
+
export const ConfigImport = {
|
|
3110
|
+
attributes: {
|
|
3111
|
+
importId: {
|
|
3112
|
+
type: "string",
|
|
3113
|
+
required: true,
|
|
3114
|
+
validate: value => {
|
|
3115
|
+
if (typeof value === "string" && value.length < 25)
|
|
3116
|
+
throw new Error("'importId' must be at least 25 characters");
|
|
3117
|
+
if (typeof value === "string" && value.length > 25)
|
|
3118
|
+
throw new Error("'importId' must be at most 25 characters");
|
|
3119
|
+
return true;
|
|
3120
|
+
}
|
|
3121
|
+
},
|
|
3122
|
+
accountConfigId: {
|
|
3123
|
+
type: "string",
|
|
3124
|
+
required: true,
|
|
3125
|
+
validate: value => {
|
|
3126
|
+
if (typeof value === "string" && value.length < 25)
|
|
3127
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
3128
|
+
if (typeof value === "string" && value.length > 25)
|
|
3129
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
3130
|
+
return true;
|
|
3131
|
+
}
|
|
3132
|
+
},
|
|
3133
|
+
schemaVersion: {
|
|
3134
|
+
type: "number",
|
|
3135
|
+
required: true,
|
|
3136
|
+
validate: value => {
|
|
3137
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3138
|
+
throw new Error("'schemaVersion' must be an integer");
|
|
3139
|
+
return true;
|
|
3140
|
+
}
|
|
3141
|
+
},
|
|
3142
|
+
state: {
|
|
3143
|
+
type: ["Pending", "Complete"],
|
|
3144
|
+
required: true,
|
|
3145
|
+
default: "Pending"
|
|
3146
|
+
},
|
|
3147
|
+
document: {
|
|
3148
|
+
type: CustomAttributeType("any"),
|
|
3149
|
+
required: true
|
|
3150
|
+
},
|
|
3151
|
+
unresolvedRefs: {
|
|
3152
|
+
type: "list",
|
|
3153
|
+
items: {
|
|
3154
|
+
type: "map",
|
|
3155
|
+
properties: {
|
|
3156
|
+
kind: {
|
|
3157
|
+
type: ["FolderRole", "MailboxOverride", "FilterAction"],
|
|
3158
|
+
required: true
|
|
3159
|
+
},
|
|
3160
|
+
accountId: {
|
|
3161
|
+
type: "string",
|
|
3162
|
+
required: true
|
|
3163
|
+
},
|
|
3164
|
+
folderPath: {
|
|
3165
|
+
type: "string",
|
|
3166
|
+
required: true
|
|
3167
|
+
},
|
|
3168
|
+
target: {
|
|
3169
|
+
type: "string",
|
|
3170
|
+
required: true
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
},
|
|
3174
|
+
required: true
|
|
3175
|
+
},
|
|
3176
|
+
createdAt: {
|
|
3177
|
+
type: "number",
|
|
3178
|
+
readOnly: true,
|
|
3179
|
+
required: true,
|
|
3180
|
+
default: () => Date.now(),
|
|
3181
|
+
set: () => Date.now()
|
|
3182
|
+
},
|
|
3183
|
+
completedAt: {
|
|
3184
|
+
type: "number",
|
|
3185
|
+
required: true,
|
|
3186
|
+
default: 0,
|
|
3187
|
+
validate: value => {
|
|
3188
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
3189
|
+
throw new Error("'completedAt' must be an integer");
|
|
3190
|
+
return true;
|
|
3191
|
+
}
|
|
3192
|
+
},
|
|
3193
|
+
updatedAt: {
|
|
3194
|
+
type: "number",
|
|
3195
|
+
watch: "*",
|
|
3196
|
+
required: true,
|
|
3197
|
+
default: () => Date.now(),
|
|
3198
|
+
set: () => Date.now()
|
|
3199
|
+
}
|
|
3200
|
+
},
|
|
3201
|
+
indexes: {
|
|
3202
|
+
byAccountConfigId: {
|
|
3203
|
+
pk: {
|
|
3204
|
+
field: "gsi0pk",
|
|
3205
|
+
composite: ["accountConfigId"]
|
|
3206
|
+
},
|
|
3207
|
+
sk: {
|
|
3208
|
+
field: "gsi0sk",
|
|
3209
|
+
composite: ["createdAt"]
|
|
3210
|
+
},
|
|
3211
|
+
index: "gsi0"
|
|
3212
|
+
},
|
|
3213
|
+
ConfigImport: {
|
|
3214
|
+
pk: {
|
|
3215
|
+
field: "pk",
|
|
3216
|
+
composite: ["importId"]
|
|
3217
|
+
},
|
|
3218
|
+
sk: {
|
|
3219
|
+
field: "sk",
|
|
3220
|
+
composite: []
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
},
|
|
3224
|
+
model: {
|
|
3225
|
+
entity: "configImport",
|
|
3226
|
+
service: "remit",
|
|
3227
|
+
version: "1"
|
|
3228
|
+
}
|
|
3229
|
+
};
|
|
3099
3230
|
export const AccountSetting = {
|
|
3100
3231
|
attributes: {
|
|
3101
3232
|
accountSettingId: {
|