@remit/electrodb-entities 0.0.10 → 0.0.12
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 +154 -1
- package/index.d.cts +105 -0
- package/index.d.mts +105 -0
- package/index.d.ts +105 -0
- package/index.mjs +153 -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.BodyPartContent = exports.BodyPartStorage = exports.RawMessageStorage = exports.BodyPartParameter = 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.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.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;
|
|
4
4
|
const electrodb_1 = require("electrodb");
|
|
5
5
|
exports.AccountExportRequest = {
|
|
6
6
|
attributes: {
|
|
@@ -1836,6 +1836,149 @@ exports.OutboxMessage = {
|
|
|
1836
1836
|
version: "1"
|
|
1837
1837
|
}
|
|
1838
1838
|
};
|
|
1839
|
+
exports.OutboxAttachment = {
|
|
1840
|
+
attributes: {
|
|
1841
|
+
outboxAttachmentId: {
|
|
1842
|
+
type: "string",
|
|
1843
|
+
required: true,
|
|
1844
|
+
validate: value => {
|
|
1845
|
+
if (typeof value === "string" && value.length < 25)
|
|
1846
|
+
throw new Error("'outboxAttachmentId' must be at least 25 characters");
|
|
1847
|
+
if (typeof value === "string" && value.length > 25)
|
|
1848
|
+
throw new Error("'outboxAttachmentId' must be at most 25 characters");
|
|
1849
|
+
return true;
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
outboxMessageId: {
|
|
1853
|
+
type: "string",
|
|
1854
|
+
required: true,
|
|
1855
|
+
validate: value => {
|
|
1856
|
+
if (typeof value === "string" && value.length < 25)
|
|
1857
|
+
throw new Error("'outboxMessageId' must be at least 25 characters");
|
|
1858
|
+
if (typeof value === "string" && value.length > 25)
|
|
1859
|
+
throw new Error("'outboxMessageId' must be at most 25 characters");
|
|
1860
|
+
return true;
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
accountId: {
|
|
1864
|
+
type: "string",
|
|
1865
|
+
required: true,
|
|
1866
|
+
validate: value => {
|
|
1867
|
+
if (typeof value === "string" && value.length < 25)
|
|
1868
|
+
throw new Error("'accountId' must be at least 25 characters");
|
|
1869
|
+
if (typeof value === "string" && value.length > 25)
|
|
1870
|
+
throw new Error("'accountId' must be at most 25 characters");
|
|
1871
|
+
return true;
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1874
|
+
accountConfigId: {
|
|
1875
|
+
type: "string",
|
|
1876
|
+
required: true,
|
|
1877
|
+
validate: value => {
|
|
1878
|
+
if (typeof value === "string" && value.length < 25)
|
|
1879
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
1880
|
+
if (typeof value === "string" && value.length > 25)
|
|
1881
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
1882
|
+
return true;
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
filename: {
|
|
1886
|
+
type: "string",
|
|
1887
|
+
required: true,
|
|
1888
|
+
validate: value => {
|
|
1889
|
+
if (typeof value === "string" && value.length > 256)
|
|
1890
|
+
throw new Error("'filename' must be at most 256 characters");
|
|
1891
|
+
return true;
|
|
1892
|
+
}
|
|
1893
|
+
},
|
|
1894
|
+
contentType: {
|
|
1895
|
+
type: "string",
|
|
1896
|
+
required: true,
|
|
1897
|
+
validate: value => {
|
|
1898
|
+
if (typeof value === "string" && value.length > 256)
|
|
1899
|
+
throw new Error("'contentType' must be at most 256 characters");
|
|
1900
|
+
return true;
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
sizeBytes: {
|
|
1904
|
+
type: "number",
|
|
1905
|
+
required: true,
|
|
1906
|
+
validate: value => {
|
|
1907
|
+
if (typeof value === "number" && value < 0)
|
|
1908
|
+
throw new Error("'sizeBytes' must be at least 0");
|
|
1909
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1910
|
+
throw new Error("'sizeBytes' must be an integer");
|
|
1911
|
+
return true;
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
state: {
|
|
1915
|
+
type: ["Pending", "Stored"],
|
|
1916
|
+
required: true
|
|
1917
|
+
},
|
|
1918
|
+
storageKey: {
|
|
1919
|
+
type: "string",
|
|
1920
|
+
required: true,
|
|
1921
|
+
validate: value => {
|
|
1922
|
+
if (typeof value === "string" && value.length > 2048)
|
|
1923
|
+
throw new Error("'storageKey' must be at most 2048 characters");
|
|
1924
|
+
return true;
|
|
1925
|
+
}
|
|
1926
|
+
},
|
|
1927
|
+
reservationExpiresAt: {
|
|
1928
|
+
type: "number",
|
|
1929
|
+
required: true,
|
|
1930
|
+
validate: value => {
|
|
1931
|
+
if (typeof value === "number" && value < 0)
|
|
1932
|
+
throw new Error("'reservationExpiresAt' must be at least 0");
|
|
1933
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1934
|
+
throw new Error("'reservationExpiresAt' must be an integer");
|
|
1935
|
+
return true;
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1938
|
+
createdAt: {
|
|
1939
|
+
type: "number",
|
|
1940
|
+
readOnly: true,
|
|
1941
|
+
required: true,
|
|
1942
|
+
default: () => Date.now(),
|
|
1943
|
+
set: () => Date.now()
|
|
1944
|
+
},
|
|
1945
|
+
updatedAt: {
|
|
1946
|
+
type: "number",
|
|
1947
|
+
watch: "*",
|
|
1948
|
+
required: true,
|
|
1949
|
+
default: () => Date.now(),
|
|
1950
|
+
set: () => Date.now()
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
indexes: {
|
|
1954
|
+
byOutboxMessageId: {
|
|
1955
|
+
pk: {
|
|
1956
|
+
field: "gsi0pk",
|
|
1957
|
+
composite: ["outboxMessageId"]
|
|
1958
|
+
},
|
|
1959
|
+
sk: {
|
|
1960
|
+
field: "gsi0sk",
|
|
1961
|
+
composite: ["createdAt"]
|
|
1962
|
+
},
|
|
1963
|
+
index: "gsi0"
|
|
1964
|
+
},
|
|
1965
|
+
OutboxAttachment: {
|
|
1966
|
+
pk: {
|
|
1967
|
+
field: "pk",
|
|
1968
|
+
composite: ["outboxAttachmentId"]
|
|
1969
|
+
},
|
|
1970
|
+
sk: {
|
|
1971
|
+
field: "sk",
|
|
1972
|
+
composite: []
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
},
|
|
1976
|
+
model: {
|
|
1977
|
+
entity: "outboxAttachment",
|
|
1978
|
+
service: "remit",
|
|
1979
|
+
version: "1"
|
|
1980
|
+
}
|
|
1981
|
+
};
|
|
1839
1982
|
exports.Address = {
|
|
1840
1983
|
attributes: {
|
|
1841
1984
|
addressId: {
|
|
@@ -2478,6 +2621,16 @@ exports.Message = {
|
|
|
2478
2621
|
return true;
|
|
2479
2622
|
}
|
|
2480
2623
|
},
|
|
2624
|
+
spamReport: {
|
|
2625
|
+
type: "map",
|
|
2626
|
+
properties: {
|
|
2627
|
+
reportedAt: {
|
|
2628
|
+
type: "number",
|
|
2629
|
+
required: true
|
|
2630
|
+
}
|
|
2631
|
+
},
|
|
2632
|
+
required: false
|
|
2633
|
+
},
|
|
2481
2634
|
createdAt: {
|
|
2482
2635
|
type: "number",
|
|
2483
2636
|
readOnly: true,
|
package/index.d.cts
CHANGED
|
@@ -1408,6 +1408,101 @@ export declare const OutboxMessage: {
|
|
|
1408
1408
|
readonly version: "1";
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
+
export declare const OutboxAttachment: {
|
|
1412
|
+
readonly attributes: {
|
|
1413
|
+
readonly outboxAttachmentId: {
|
|
1414
|
+
readonly type: "string";
|
|
1415
|
+
readonly required: true;
|
|
1416
|
+
readonly validate: (value: unknown) => boolean;
|
|
1417
|
+
};
|
|
1418
|
+
readonly outboxMessageId: {
|
|
1419
|
+
readonly type: "string";
|
|
1420
|
+
readonly required: true;
|
|
1421
|
+
readonly validate: (value: unknown) => boolean;
|
|
1422
|
+
};
|
|
1423
|
+
readonly accountId: {
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
readonly required: true;
|
|
1426
|
+
readonly validate: (value: unknown) => boolean;
|
|
1427
|
+
};
|
|
1428
|
+
readonly accountConfigId: {
|
|
1429
|
+
readonly type: "string";
|
|
1430
|
+
readonly required: true;
|
|
1431
|
+
readonly validate: (value: unknown) => boolean;
|
|
1432
|
+
};
|
|
1433
|
+
readonly filename: {
|
|
1434
|
+
readonly type: "string";
|
|
1435
|
+
readonly required: true;
|
|
1436
|
+
readonly validate: (value: unknown) => boolean;
|
|
1437
|
+
};
|
|
1438
|
+
readonly contentType: {
|
|
1439
|
+
readonly type: "string";
|
|
1440
|
+
readonly required: true;
|
|
1441
|
+
readonly validate: (value: unknown) => boolean;
|
|
1442
|
+
};
|
|
1443
|
+
readonly sizeBytes: {
|
|
1444
|
+
readonly type: "number";
|
|
1445
|
+
readonly required: true;
|
|
1446
|
+
readonly validate: (value: unknown) => boolean;
|
|
1447
|
+
};
|
|
1448
|
+
readonly state: {
|
|
1449
|
+
readonly type: readonly ["Pending", "Stored"];
|
|
1450
|
+
readonly required: true;
|
|
1451
|
+
};
|
|
1452
|
+
readonly storageKey: {
|
|
1453
|
+
readonly type: "string";
|
|
1454
|
+
readonly required: true;
|
|
1455
|
+
readonly validate: (value: unknown) => boolean;
|
|
1456
|
+
};
|
|
1457
|
+
readonly reservationExpiresAt: {
|
|
1458
|
+
readonly type: "number";
|
|
1459
|
+
readonly required: true;
|
|
1460
|
+
readonly validate: (value: unknown) => boolean;
|
|
1461
|
+
};
|
|
1462
|
+
readonly createdAt: {
|
|
1463
|
+
readonly type: "number";
|
|
1464
|
+
readonly readOnly: true;
|
|
1465
|
+
readonly required: true;
|
|
1466
|
+
readonly default: () => any;
|
|
1467
|
+
readonly set: () => any;
|
|
1468
|
+
};
|
|
1469
|
+
readonly updatedAt: {
|
|
1470
|
+
readonly type: "number";
|
|
1471
|
+
readonly watch: "*";
|
|
1472
|
+
readonly required: true;
|
|
1473
|
+
readonly default: () => any;
|
|
1474
|
+
readonly set: () => any;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
readonly indexes: {
|
|
1478
|
+
readonly byOutboxMessageId: {
|
|
1479
|
+
readonly pk: {
|
|
1480
|
+
readonly field: "gsi0pk";
|
|
1481
|
+
readonly composite: readonly ["outboxMessageId"];
|
|
1482
|
+
};
|
|
1483
|
+
readonly sk: {
|
|
1484
|
+
readonly field: "gsi0sk";
|
|
1485
|
+
readonly composite: readonly ["createdAt"];
|
|
1486
|
+
};
|
|
1487
|
+
readonly index: "gsi0";
|
|
1488
|
+
};
|
|
1489
|
+
readonly OutboxAttachment: {
|
|
1490
|
+
readonly pk: {
|
|
1491
|
+
readonly field: "pk";
|
|
1492
|
+
readonly composite: readonly ["outboxAttachmentId"];
|
|
1493
|
+
};
|
|
1494
|
+
readonly sk: {
|
|
1495
|
+
readonly field: "sk";
|
|
1496
|
+
readonly composite: readonly [];
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
readonly model: {
|
|
1501
|
+
readonly entity: "outboxAttachment";
|
|
1502
|
+
readonly service: "remit";
|
|
1503
|
+
readonly version: "1";
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1411
1506
|
export declare const Address: {
|
|
1412
1507
|
readonly attributes: {
|
|
1413
1508
|
readonly addressId: {
|
|
@@ -1946,6 +2041,16 @@ export declare const Message: {
|
|
|
1946
2041
|
readonly required: false;
|
|
1947
2042
|
readonly validate: (value: unknown) => boolean;
|
|
1948
2043
|
};
|
|
2044
|
+
readonly spamReport: {
|
|
2045
|
+
readonly type: "map";
|
|
2046
|
+
readonly properties: {
|
|
2047
|
+
readonly reportedAt: {
|
|
2048
|
+
readonly type: "number";
|
|
2049
|
+
readonly required: true;
|
|
2050
|
+
};
|
|
2051
|
+
};
|
|
2052
|
+
readonly required: false;
|
|
2053
|
+
};
|
|
1949
2054
|
readonly createdAt: {
|
|
1950
2055
|
readonly type: "number";
|
|
1951
2056
|
readonly readOnly: true;
|
package/index.d.mts
CHANGED
|
@@ -1408,6 +1408,101 @@ export declare const OutboxMessage: {
|
|
|
1408
1408
|
readonly version: "1";
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
+
export declare const OutboxAttachment: {
|
|
1412
|
+
readonly attributes: {
|
|
1413
|
+
readonly outboxAttachmentId: {
|
|
1414
|
+
readonly type: "string";
|
|
1415
|
+
readonly required: true;
|
|
1416
|
+
readonly validate: (value: unknown) => boolean;
|
|
1417
|
+
};
|
|
1418
|
+
readonly outboxMessageId: {
|
|
1419
|
+
readonly type: "string";
|
|
1420
|
+
readonly required: true;
|
|
1421
|
+
readonly validate: (value: unknown) => boolean;
|
|
1422
|
+
};
|
|
1423
|
+
readonly accountId: {
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
readonly required: true;
|
|
1426
|
+
readonly validate: (value: unknown) => boolean;
|
|
1427
|
+
};
|
|
1428
|
+
readonly accountConfigId: {
|
|
1429
|
+
readonly type: "string";
|
|
1430
|
+
readonly required: true;
|
|
1431
|
+
readonly validate: (value: unknown) => boolean;
|
|
1432
|
+
};
|
|
1433
|
+
readonly filename: {
|
|
1434
|
+
readonly type: "string";
|
|
1435
|
+
readonly required: true;
|
|
1436
|
+
readonly validate: (value: unknown) => boolean;
|
|
1437
|
+
};
|
|
1438
|
+
readonly contentType: {
|
|
1439
|
+
readonly type: "string";
|
|
1440
|
+
readonly required: true;
|
|
1441
|
+
readonly validate: (value: unknown) => boolean;
|
|
1442
|
+
};
|
|
1443
|
+
readonly sizeBytes: {
|
|
1444
|
+
readonly type: "number";
|
|
1445
|
+
readonly required: true;
|
|
1446
|
+
readonly validate: (value: unknown) => boolean;
|
|
1447
|
+
};
|
|
1448
|
+
readonly state: {
|
|
1449
|
+
readonly type: readonly ["Pending", "Stored"];
|
|
1450
|
+
readonly required: true;
|
|
1451
|
+
};
|
|
1452
|
+
readonly storageKey: {
|
|
1453
|
+
readonly type: "string";
|
|
1454
|
+
readonly required: true;
|
|
1455
|
+
readonly validate: (value: unknown) => boolean;
|
|
1456
|
+
};
|
|
1457
|
+
readonly reservationExpiresAt: {
|
|
1458
|
+
readonly type: "number";
|
|
1459
|
+
readonly required: true;
|
|
1460
|
+
readonly validate: (value: unknown) => boolean;
|
|
1461
|
+
};
|
|
1462
|
+
readonly createdAt: {
|
|
1463
|
+
readonly type: "number";
|
|
1464
|
+
readonly readOnly: true;
|
|
1465
|
+
readonly required: true;
|
|
1466
|
+
readonly default: () => any;
|
|
1467
|
+
readonly set: () => any;
|
|
1468
|
+
};
|
|
1469
|
+
readonly updatedAt: {
|
|
1470
|
+
readonly type: "number";
|
|
1471
|
+
readonly watch: "*";
|
|
1472
|
+
readonly required: true;
|
|
1473
|
+
readonly default: () => any;
|
|
1474
|
+
readonly set: () => any;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
readonly indexes: {
|
|
1478
|
+
readonly byOutboxMessageId: {
|
|
1479
|
+
readonly pk: {
|
|
1480
|
+
readonly field: "gsi0pk";
|
|
1481
|
+
readonly composite: readonly ["outboxMessageId"];
|
|
1482
|
+
};
|
|
1483
|
+
readonly sk: {
|
|
1484
|
+
readonly field: "gsi0sk";
|
|
1485
|
+
readonly composite: readonly ["createdAt"];
|
|
1486
|
+
};
|
|
1487
|
+
readonly index: "gsi0";
|
|
1488
|
+
};
|
|
1489
|
+
readonly OutboxAttachment: {
|
|
1490
|
+
readonly pk: {
|
|
1491
|
+
readonly field: "pk";
|
|
1492
|
+
readonly composite: readonly ["outboxAttachmentId"];
|
|
1493
|
+
};
|
|
1494
|
+
readonly sk: {
|
|
1495
|
+
readonly field: "sk";
|
|
1496
|
+
readonly composite: readonly [];
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
readonly model: {
|
|
1501
|
+
readonly entity: "outboxAttachment";
|
|
1502
|
+
readonly service: "remit";
|
|
1503
|
+
readonly version: "1";
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1411
1506
|
export declare const Address: {
|
|
1412
1507
|
readonly attributes: {
|
|
1413
1508
|
readonly addressId: {
|
|
@@ -1946,6 +2041,16 @@ export declare const Message: {
|
|
|
1946
2041
|
readonly required: false;
|
|
1947
2042
|
readonly validate: (value: unknown) => boolean;
|
|
1948
2043
|
};
|
|
2044
|
+
readonly spamReport: {
|
|
2045
|
+
readonly type: "map";
|
|
2046
|
+
readonly properties: {
|
|
2047
|
+
readonly reportedAt: {
|
|
2048
|
+
readonly type: "number";
|
|
2049
|
+
readonly required: true;
|
|
2050
|
+
};
|
|
2051
|
+
};
|
|
2052
|
+
readonly required: false;
|
|
2053
|
+
};
|
|
1949
2054
|
readonly createdAt: {
|
|
1950
2055
|
readonly type: "number";
|
|
1951
2056
|
readonly readOnly: true;
|
package/index.d.ts
CHANGED
|
@@ -1408,6 +1408,101 @@ export declare const OutboxMessage: {
|
|
|
1408
1408
|
readonly version: "1";
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
+
export declare const OutboxAttachment: {
|
|
1412
|
+
readonly attributes: {
|
|
1413
|
+
readonly outboxAttachmentId: {
|
|
1414
|
+
readonly type: "string";
|
|
1415
|
+
readonly required: true;
|
|
1416
|
+
readonly validate: (value: unknown) => boolean;
|
|
1417
|
+
};
|
|
1418
|
+
readonly outboxMessageId: {
|
|
1419
|
+
readonly type: "string";
|
|
1420
|
+
readonly required: true;
|
|
1421
|
+
readonly validate: (value: unknown) => boolean;
|
|
1422
|
+
};
|
|
1423
|
+
readonly accountId: {
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
readonly required: true;
|
|
1426
|
+
readonly validate: (value: unknown) => boolean;
|
|
1427
|
+
};
|
|
1428
|
+
readonly accountConfigId: {
|
|
1429
|
+
readonly type: "string";
|
|
1430
|
+
readonly required: true;
|
|
1431
|
+
readonly validate: (value: unknown) => boolean;
|
|
1432
|
+
};
|
|
1433
|
+
readonly filename: {
|
|
1434
|
+
readonly type: "string";
|
|
1435
|
+
readonly required: true;
|
|
1436
|
+
readonly validate: (value: unknown) => boolean;
|
|
1437
|
+
};
|
|
1438
|
+
readonly contentType: {
|
|
1439
|
+
readonly type: "string";
|
|
1440
|
+
readonly required: true;
|
|
1441
|
+
readonly validate: (value: unknown) => boolean;
|
|
1442
|
+
};
|
|
1443
|
+
readonly sizeBytes: {
|
|
1444
|
+
readonly type: "number";
|
|
1445
|
+
readonly required: true;
|
|
1446
|
+
readonly validate: (value: unknown) => boolean;
|
|
1447
|
+
};
|
|
1448
|
+
readonly state: {
|
|
1449
|
+
readonly type: readonly ["Pending", "Stored"];
|
|
1450
|
+
readonly required: true;
|
|
1451
|
+
};
|
|
1452
|
+
readonly storageKey: {
|
|
1453
|
+
readonly type: "string";
|
|
1454
|
+
readonly required: true;
|
|
1455
|
+
readonly validate: (value: unknown) => boolean;
|
|
1456
|
+
};
|
|
1457
|
+
readonly reservationExpiresAt: {
|
|
1458
|
+
readonly type: "number";
|
|
1459
|
+
readonly required: true;
|
|
1460
|
+
readonly validate: (value: unknown) => boolean;
|
|
1461
|
+
};
|
|
1462
|
+
readonly createdAt: {
|
|
1463
|
+
readonly type: "number";
|
|
1464
|
+
readonly readOnly: true;
|
|
1465
|
+
readonly required: true;
|
|
1466
|
+
readonly default: () => any;
|
|
1467
|
+
readonly set: () => any;
|
|
1468
|
+
};
|
|
1469
|
+
readonly updatedAt: {
|
|
1470
|
+
readonly type: "number";
|
|
1471
|
+
readonly watch: "*";
|
|
1472
|
+
readonly required: true;
|
|
1473
|
+
readonly default: () => any;
|
|
1474
|
+
readonly set: () => any;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
readonly indexes: {
|
|
1478
|
+
readonly byOutboxMessageId: {
|
|
1479
|
+
readonly pk: {
|
|
1480
|
+
readonly field: "gsi0pk";
|
|
1481
|
+
readonly composite: readonly ["outboxMessageId"];
|
|
1482
|
+
};
|
|
1483
|
+
readonly sk: {
|
|
1484
|
+
readonly field: "gsi0sk";
|
|
1485
|
+
readonly composite: readonly ["createdAt"];
|
|
1486
|
+
};
|
|
1487
|
+
readonly index: "gsi0";
|
|
1488
|
+
};
|
|
1489
|
+
readonly OutboxAttachment: {
|
|
1490
|
+
readonly pk: {
|
|
1491
|
+
readonly field: "pk";
|
|
1492
|
+
readonly composite: readonly ["outboxAttachmentId"];
|
|
1493
|
+
};
|
|
1494
|
+
readonly sk: {
|
|
1495
|
+
readonly field: "sk";
|
|
1496
|
+
readonly composite: readonly [];
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
readonly model: {
|
|
1501
|
+
readonly entity: "outboxAttachment";
|
|
1502
|
+
readonly service: "remit";
|
|
1503
|
+
readonly version: "1";
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1411
1506
|
export declare const Address: {
|
|
1412
1507
|
readonly attributes: {
|
|
1413
1508
|
readonly addressId: {
|
|
@@ -1946,6 +2041,16 @@ export declare const Message: {
|
|
|
1946
2041
|
readonly required: false;
|
|
1947
2042
|
readonly validate: (value: unknown) => boolean;
|
|
1948
2043
|
};
|
|
2044
|
+
readonly spamReport: {
|
|
2045
|
+
readonly type: "map";
|
|
2046
|
+
readonly properties: {
|
|
2047
|
+
readonly reportedAt: {
|
|
2048
|
+
readonly type: "number";
|
|
2049
|
+
readonly required: true;
|
|
2050
|
+
};
|
|
2051
|
+
};
|
|
2052
|
+
readonly required: false;
|
|
2053
|
+
};
|
|
1949
2054
|
readonly createdAt: {
|
|
1950
2055
|
readonly type: "number";
|
|
1951
2056
|
readonly readOnly: true;
|
package/index.mjs
CHANGED
|
@@ -1833,6 +1833,149 @@ export const OutboxMessage = {
|
|
|
1833
1833
|
version: "1"
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
+
export const OutboxAttachment = {
|
|
1837
|
+
attributes: {
|
|
1838
|
+
outboxAttachmentId: {
|
|
1839
|
+
type: "string",
|
|
1840
|
+
required: true,
|
|
1841
|
+
validate: value => {
|
|
1842
|
+
if (typeof value === "string" && value.length < 25)
|
|
1843
|
+
throw new Error("'outboxAttachmentId' must be at least 25 characters");
|
|
1844
|
+
if (typeof value === "string" && value.length > 25)
|
|
1845
|
+
throw new Error("'outboxAttachmentId' must be at most 25 characters");
|
|
1846
|
+
return true;
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
outboxMessageId: {
|
|
1850
|
+
type: "string",
|
|
1851
|
+
required: true,
|
|
1852
|
+
validate: value => {
|
|
1853
|
+
if (typeof value === "string" && value.length < 25)
|
|
1854
|
+
throw new Error("'outboxMessageId' must be at least 25 characters");
|
|
1855
|
+
if (typeof value === "string" && value.length > 25)
|
|
1856
|
+
throw new Error("'outboxMessageId' must be at most 25 characters");
|
|
1857
|
+
return true;
|
|
1858
|
+
}
|
|
1859
|
+
},
|
|
1860
|
+
accountId: {
|
|
1861
|
+
type: "string",
|
|
1862
|
+
required: true,
|
|
1863
|
+
validate: value => {
|
|
1864
|
+
if (typeof value === "string" && value.length < 25)
|
|
1865
|
+
throw new Error("'accountId' must be at least 25 characters");
|
|
1866
|
+
if (typeof value === "string" && value.length > 25)
|
|
1867
|
+
throw new Error("'accountId' must be at most 25 characters");
|
|
1868
|
+
return true;
|
|
1869
|
+
}
|
|
1870
|
+
},
|
|
1871
|
+
accountConfigId: {
|
|
1872
|
+
type: "string",
|
|
1873
|
+
required: true,
|
|
1874
|
+
validate: value => {
|
|
1875
|
+
if (typeof value === "string" && value.length < 25)
|
|
1876
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
1877
|
+
if (typeof value === "string" && value.length > 25)
|
|
1878
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
1879
|
+
return true;
|
|
1880
|
+
}
|
|
1881
|
+
},
|
|
1882
|
+
filename: {
|
|
1883
|
+
type: "string",
|
|
1884
|
+
required: true,
|
|
1885
|
+
validate: value => {
|
|
1886
|
+
if (typeof value === "string" && value.length > 256)
|
|
1887
|
+
throw new Error("'filename' must be at most 256 characters");
|
|
1888
|
+
return true;
|
|
1889
|
+
}
|
|
1890
|
+
},
|
|
1891
|
+
contentType: {
|
|
1892
|
+
type: "string",
|
|
1893
|
+
required: true,
|
|
1894
|
+
validate: value => {
|
|
1895
|
+
if (typeof value === "string" && value.length > 256)
|
|
1896
|
+
throw new Error("'contentType' must be at most 256 characters");
|
|
1897
|
+
return true;
|
|
1898
|
+
}
|
|
1899
|
+
},
|
|
1900
|
+
sizeBytes: {
|
|
1901
|
+
type: "number",
|
|
1902
|
+
required: true,
|
|
1903
|
+
validate: value => {
|
|
1904
|
+
if (typeof value === "number" && value < 0)
|
|
1905
|
+
throw new Error("'sizeBytes' must be at least 0");
|
|
1906
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1907
|
+
throw new Error("'sizeBytes' must be an integer");
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
},
|
|
1911
|
+
state: {
|
|
1912
|
+
type: ["Pending", "Stored"],
|
|
1913
|
+
required: true
|
|
1914
|
+
},
|
|
1915
|
+
storageKey: {
|
|
1916
|
+
type: "string",
|
|
1917
|
+
required: true,
|
|
1918
|
+
validate: value => {
|
|
1919
|
+
if (typeof value === "string" && value.length > 2048)
|
|
1920
|
+
throw new Error("'storageKey' must be at most 2048 characters");
|
|
1921
|
+
return true;
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1924
|
+
reservationExpiresAt: {
|
|
1925
|
+
type: "number",
|
|
1926
|
+
required: true,
|
|
1927
|
+
validate: value => {
|
|
1928
|
+
if (typeof value === "number" && value < 0)
|
|
1929
|
+
throw new Error("'reservationExpiresAt' must be at least 0");
|
|
1930
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
1931
|
+
throw new Error("'reservationExpiresAt' must be an integer");
|
|
1932
|
+
return true;
|
|
1933
|
+
}
|
|
1934
|
+
},
|
|
1935
|
+
createdAt: {
|
|
1936
|
+
type: "number",
|
|
1937
|
+
readOnly: true,
|
|
1938
|
+
required: true,
|
|
1939
|
+
default: () => Date.now(),
|
|
1940
|
+
set: () => Date.now()
|
|
1941
|
+
},
|
|
1942
|
+
updatedAt: {
|
|
1943
|
+
type: "number",
|
|
1944
|
+
watch: "*",
|
|
1945
|
+
required: true,
|
|
1946
|
+
default: () => Date.now(),
|
|
1947
|
+
set: () => Date.now()
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
indexes: {
|
|
1951
|
+
byOutboxMessageId: {
|
|
1952
|
+
pk: {
|
|
1953
|
+
field: "gsi0pk",
|
|
1954
|
+
composite: ["outboxMessageId"]
|
|
1955
|
+
},
|
|
1956
|
+
sk: {
|
|
1957
|
+
field: "gsi0sk",
|
|
1958
|
+
composite: ["createdAt"]
|
|
1959
|
+
},
|
|
1960
|
+
index: "gsi0"
|
|
1961
|
+
},
|
|
1962
|
+
OutboxAttachment: {
|
|
1963
|
+
pk: {
|
|
1964
|
+
field: "pk",
|
|
1965
|
+
composite: ["outboxAttachmentId"]
|
|
1966
|
+
},
|
|
1967
|
+
sk: {
|
|
1968
|
+
field: "sk",
|
|
1969
|
+
composite: []
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
},
|
|
1973
|
+
model: {
|
|
1974
|
+
entity: "outboxAttachment",
|
|
1975
|
+
service: "remit",
|
|
1976
|
+
version: "1"
|
|
1977
|
+
}
|
|
1978
|
+
};
|
|
1836
1979
|
export const Address = {
|
|
1837
1980
|
attributes: {
|
|
1838
1981
|
addressId: {
|
|
@@ -2475,6 +2618,16 @@ export const Message = {
|
|
|
2475
2618
|
return true;
|
|
2476
2619
|
}
|
|
2477
2620
|
},
|
|
2621
|
+
spamReport: {
|
|
2622
|
+
type: "map",
|
|
2623
|
+
properties: {
|
|
2624
|
+
reportedAt: {
|
|
2625
|
+
type: "number",
|
|
2626
|
+
required: true
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2629
|
+
required: false
|
|
2630
|
+
},
|
|
2478
2631
|
createdAt: {
|
|
2479
2632
|
type: "number",
|
|
2480
2633
|
readOnly: true,
|