@remit/electrodb-entities 0.0.21 → 0.0.22
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 +99 -1
- package/index.d.cts +72 -0
- package/index.d.mts +72 -0
- package/index.d.ts +72 -0
- package/index.mjs +98 -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.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;
|
|
3
|
+
exports.FilterAnchor = exports.MessageLabel = exports.CalendarFeedToken = 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: {
|
|
@@ -5167,6 +5167,104 @@ exports.CalendarEventIndex = {
|
|
|
5167
5167
|
version: "1"
|
|
5168
5168
|
}
|
|
5169
5169
|
};
|
|
5170
|
+
exports.CalendarFeedToken = {
|
|
5171
|
+
attributes: {
|
|
5172
|
+
feedTokenId: {
|
|
5173
|
+
type: "string",
|
|
5174
|
+
required: true,
|
|
5175
|
+
validate: value => {
|
|
5176
|
+
if (typeof value === "string" && value.length < 25)
|
|
5177
|
+
throw new Error("'feedTokenId' must be at least 25 characters");
|
|
5178
|
+
if (typeof value === "string" && value.length > 25)
|
|
5179
|
+
throw new Error("'feedTokenId' must be at most 25 characters");
|
|
5180
|
+
return true;
|
|
5181
|
+
}
|
|
5182
|
+
},
|
|
5183
|
+
accountConfigId: {
|
|
5184
|
+
type: "string",
|
|
5185
|
+
required: true,
|
|
5186
|
+
validate: value => {
|
|
5187
|
+
if (typeof value === "string" && value.length < 25)
|
|
5188
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
5189
|
+
if (typeof value === "string" && value.length > 25)
|
|
5190
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
5191
|
+
return true;
|
|
5192
|
+
}
|
|
5193
|
+
},
|
|
5194
|
+
calendarId: {
|
|
5195
|
+
type: "string",
|
|
5196
|
+
required: true,
|
|
5197
|
+
validate: value => {
|
|
5198
|
+
if (typeof value === "string" && value.length < 25)
|
|
5199
|
+
throw new Error("'calendarId' must be at least 25 characters");
|
|
5200
|
+
if (typeof value === "string" && value.length > 25)
|
|
5201
|
+
throw new Error("'calendarId' must be at most 25 characters");
|
|
5202
|
+
return true;
|
|
5203
|
+
}
|
|
5204
|
+
},
|
|
5205
|
+
tokenHash: {
|
|
5206
|
+
type: "string",
|
|
5207
|
+
required: true,
|
|
5208
|
+
validate: value => {
|
|
5209
|
+
if (typeof value === "string" && value.length > 64)
|
|
5210
|
+
throw new Error("'tokenHash' must be at most 64 characters");
|
|
5211
|
+
return true;
|
|
5212
|
+
}
|
|
5213
|
+
},
|
|
5214
|
+
createdAt: {
|
|
5215
|
+
type: "number",
|
|
5216
|
+
readOnly: true,
|
|
5217
|
+
required: true,
|
|
5218
|
+
default: () => Date.now(),
|
|
5219
|
+
set: () => Date.now()
|
|
5220
|
+
},
|
|
5221
|
+
rotatedAt: {
|
|
5222
|
+
type: "number",
|
|
5223
|
+
required: true,
|
|
5224
|
+
default: 0,
|
|
5225
|
+
validate: value => {
|
|
5226
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
5227
|
+
throw new Error("'rotatedAt' must be an integer");
|
|
5228
|
+
return true;
|
|
5229
|
+
}
|
|
5230
|
+
},
|
|
5231
|
+
updatedAt: {
|
|
5232
|
+
type: "number",
|
|
5233
|
+
watch: "*",
|
|
5234
|
+
required: true,
|
|
5235
|
+
default: () => Date.now(),
|
|
5236
|
+
set: () => Date.now()
|
|
5237
|
+
}
|
|
5238
|
+
},
|
|
5239
|
+
indexes: {
|
|
5240
|
+
byTokenHash: {
|
|
5241
|
+
pk: {
|
|
5242
|
+
field: "gsi0pk",
|
|
5243
|
+
composite: ["tokenHash"]
|
|
5244
|
+
},
|
|
5245
|
+
sk: {
|
|
5246
|
+
field: "gsi0sk",
|
|
5247
|
+
composite: []
|
|
5248
|
+
},
|
|
5249
|
+
index: "gsi0"
|
|
5250
|
+
},
|
|
5251
|
+
CalendarFeedToken: {
|
|
5252
|
+
pk: {
|
|
5253
|
+
field: "pk",
|
|
5254
|
+
composite: ["accountConfigId"]
|
|
5255
|
+
},
|
|
5256
|
+
sk: {
|
|
5257
|
+
field: "sk",
|
|
5258
|
+
composite: ["feedTokenId"]
|
|
5259
|
+
}
|
|
5260
|
+
}
|
|
5261
|
+
},
|
|
5262
|
+
model: {
|
|
5263
|
+
entity: "calendarFeedToken",
|
|
5264
|
+
service: "remit",
|
|
5265
|
+
version: "1"
|
|
5266
|
+
}
|
|
5267
|
+
};
|
|
5170
5268
|
exports.MessageLabel = {
|
|
5171
5269
|
attributes: {
|
|
5172
5270
|
messageLabelId: {
|
package/index.d.cts
CHANGED
|
@@ -4021,6 +4021,78 @@ export declare const CalendarEventIndex: {
|
|
|
4021
4021
|
readonly version: "1";
|
|
4022
4022
|
};
|
|
4023
4023
|
};
|
|
4024
|
+
export declare const CalendarFeedToken: {
|
|
4025
|
+
readonly attributes: {
|
|
4026
|
+
readonly feedTokenId: {
|
|
4027
|
+
readonly type: "string";
|
|
4028
|
+
readonly required: true;
|
|
4029
|
+
readonly validate: (value: unknown) => boolean;
|
|
4030
|
+
};
|
|
4031
|
+
readonly accountConfigId: {
|
|
4032
|
+
readonly type: "string";
|
|
4033
|
+
readonly required: true;
|
|
4034
|
+
readonly validate: (value: unknown) => boolean;
|
|
4035
|
+
};
|
|
4036
|
+
readonly calendarId: {
|
|
4037
|
+
readonly type: "string";
|
|
4038
|
+
readonly required: true;
|
|
4039
|
+
readonly validate: (value: unknown) => boolean;
|
|
4040
|
+
};
|
|
4041
|
+
readonly tokenHash: {
|
|
4042
|
+
readonly type: "string";
|
|
4043
|
+
readonly required: true;
|
|
4044
|
+
readonly validate: (value: unknown) => boolean;
|
|
4045
|
+
};
|
|
4046
|
+
readonly createdAt: {
|
|
4047
|
+
readonly type: "number";
|
|
4048
|
+
readonly readOnly: true;
|
|
4049
|
+
readonly required: true;
|
|
4050
|
+
readonly default: () => any;
|
|
4051
|
+
readonly set: () => any;
|
|
4052
|
+
};
|
|
4053
|
+
readonly rotatedAt: {
|
|
4054
|
+
readonly type: "number";
|
|
4055
|
+
readonly required: true;
|
|
4056
|
+
readonly default: 0;
|
|
4057
|
+
readonly validate: (value: unknown) => boolean;
|
|
4058
|
+
};
|
|
4059
|
+
readonly updatedAt: {
|
|
4060
|
+
readonly type: "number";
|
|
4061
|
+
readonly watch: "*";
|
|
4062
|
+
readonly required: true;
|
|
4063
|
+
readonly default: () => any;
|
|
4064
|
+
readonly set: () => any;
|
|
4065
|
+
};
|
|
4066
|
+
};
|
|
4067
|
+
readonly indexes: {
|
|
4068
|
+
readonly byTokenHash: {
|
|
4069
|
+
readonly pk: {
|
|
4070
|
+
readonly field: "gsi0pk";
|
|
4071
|
+
readonly composite: readonly ["tokenHash"];
|
|
4072
|
+
};
|
|
4073
|
+
readonly sk: {
|
|
4074
|
+
readonly field: "gsi0sk";
|
|
4075
|
+
readonly composite: readonly [];
|
|
4076
|
+
};
|
|
4077
|
+
readonly index: "gsi0";
|
|
4078
|
+
};
|
|
4079
|
+
readonly CalendarFeedToken: {
|
|
4080
|
+
readonly pk: {
|
|
4081
|
+
readonly field: "pk";
|
|
4082
|
+
readonly composite: readonly ["accountConfigId"];
|
|
4083
|
+
};
|
|
4084
|
+
readonly sk: {
|
|
4085
|
+
readonly field: "sk";
|
|
4086
|
+
readonly composite: readonly ["feedTokenId"];
|
|
4087
|
+
};
|
|
4088
|
+
};
|
|
4089
|
+
};
|
|
4090
|
+
readonly model: {
|
|
4091
|
+
readonly entity: "calendarFeedToken";
|
|
4092
|
+
readonly service: "remit";
|
|
4093
|
+
readonly version: "1";
|
|
4094
|
+
};
|
|
4095
|
+
};
|
|
4024
4096
|
export declare const MessageLabel: {
|
|
4025
4097
|
readonly attributes: {
|
|
4026
4098
|
readonly messageLabelId: {
|
package/index.d.mts
CHANGED
|
@@ -4021,6 +4021,78 @@ export declare const CalendarEventIndex: {
|
|
|
4021
4021
|
readonly version: "1";
|
|
4022
4022
|
};
|
|
4023
4023
|
};
|
|
4024
|
+
export declare const CalendarFeedToken: {
|
|
4025
|
+
readonly attributes: {
|
|
4026
|
+
readonly feedTokenId: {
|
|
4027
|
+
readonly type: "string";
|
|
4028
|
+
readonly required: true;
|
|
4029
|
+
readonly validate: (value: unknown) => boolean;
|
|
4030
|
+
};
|
|
4031
|
+
readonly accountConfigId: {
|
|
4032
|
+
readonly type: "string";
|
|
4033
|
+
readonly required: true;
|
|
4034
|
+
readonly validate: (value: unknown) => boolean;
|
|
4035
|
+
};
|
|
4036
|
+
readonly calendarId: {
|
|
4037
|
+
readonly type: "string";
|
|
4038
|
+
readonly required: true;
|
|
4039
|
+
readonly validate: (value: unknown) => boolean;
|
|
4040
|
+
};
|
|
4041
|
+
readonly tokenHash: {
|
|
4042
|
+
readonly type: "string";
|
|
4043
|
+
readonly required: true;
|
|
4044
|
+
readonly validate: (value: unknown) => boolean;
|
|
4045
|
+
};
|
|
4046
|
+
readonly createdAt: {
|
|
4047
|
+
readonly type: "number";
|
|
4048
|
+
readonly readOnly: true;
|
|
4049
|
+
readonly required: true;
|
|
4050
|
+
readonly default: () => any;
|
|
4051
|
+
readonly set: () => any;
|
|
4052
|
+
};
|
|
4053
|
+
readonly rotatedAt: {
|
|
4054
|
+
readonly type: "number";
|
|
4055
|
+
readonly required: true;
|
|
4056
|
+
readonly default: 0;
|
|
4057
|
+
readonly validate: (value: unknown) => boolean;
|
|
4058
|
+
};
|
|
4059
|
+
readonly updatedAt: {
|
|
4060
|
+
readonly type: "number";
|
|
4061
|
+
readonly watch: "*";
|
|
4062
|
+
readonly required: true;
|
|
4063
|
+
readonly default: () => any;
|
|
4064
|
+
readonly set: () => any;
|
|
4065
|
+
};
|
|
4066
|
+
};
|
|
4067
|
+
readonly indexes: {
|
|
4068
|
+
readonly byTokenHash: {
|
|
4069
|
+
readonly pk: {
|
|
4070
|
+
readonly field: "gsi0pk";
|
|
4071
|
+
readonly composite: readonly ["tokenHash"];
|
|
4072
|
+
};
|
|
4073
|
+
readonly sk: {
|
|
4074
|
+
readonly field: "gsi0sk";
|
|
4075
|
+
readonly composite: readonly [];
|
|
4076
|
+
};
|
|
4077
|
+
readonly index: "gsi0";
|
|
4078
|
+
};
|
|
4079
|
+
readonly CalendarFeedToken: {
|
|
4080
|
+
readonly pk: {
|
|
4081
|
+
readonly field: "pk";
|
|
4082
|
+
readonly composite: readonly ["accountConfigId"];
|
|
4083
|
+
};
|
|
4084
|
+
readonly sk: {
|
|
4085
|
+
readonly field: "sk";
|
|
4086
|
+
readonly composite: readonly ["feedTokenId"];
|
|
4087
|
+
};
|
|
4088
|
+
};
|
|
4089
|
+
};
|
|
4090
|
+
readonly model: {
|
|
4091
|
+
readonly entity: "calendarFeedToken";
|
|
4092
|
+
readonly service: "remit";
|
|
4093
|
+
readonly version: "1";
|
|
4094
|
+
};
|
|
4095
|
+
};
|
|
4024
4096
|
export declare const MessageLabel: {
|
|
4025
4097
|
readonly attributes: {
|
|
4026
4098
|
readonly messageLabelId: {
|
package/index.d.ts
CHANGED
|
@@ -4021,6 +4021,78 @@ export declare const CalendarEventIndex: {
|
|
|
4021
4021
|
readonly version: "1";
|
|
4022
4022
|
};
|
|
4023
4023
|
};
|
|
4024
|
+
export declare const CalendarFeedToken: {
|
|
4025
|
+
readonly attributes: {
|
|
4026
|
+
readonly feedTokenId: {
|
|
4027
|
+
readonly type: "string";
|
|
4028
|
+
readonly required: true;
|
|
4029
|
+
readonly validate: (value: unknown) => boolean;
|
|
4030
|
+
};
|
|
4031
|
+
readonly accountConfigId: {
|
|
4032
|
+
readonly type: "string";
|
|
4033
|
+
readonly required: true;
|
|
4034
|
+
readonly validate: (value: unknown) => boolean;
|
|
4035
|
+
};
|
|
4036
|
+
readonly calendarId: {
|
|
4037
|
+
readonly type: "string";
|
|
4038
|
+
readonly required: true;
|
|
4039
|
+
readonly validate: (value: unknown) => boolean;
|
|
4040
|
+
};
|
|
4041
|
+
readonly tokenHash: {
|
|
4042
|
+
readonly type: "string";
|
|
4043
|
+
readonly required: true;
|
|
4044
|
+
readonly validate: (value: unknown) => boolean;
|
|
4045
|
+
};
|
|
4046
|
+
readonly createdAt: {
|
|
4047
|
+
readonly type: "number";
|
|
4048
|
+
readonly readOnly: true;
|
|
4049
|
+
readonly required: true;
|
|
4050
|
+
readonly default: () => any;
|
|
4051
|
+
readonly set: () => any;
|
|
4052
|
+
};
|
|
4053
|
+
readonly rotatedAt: {
|
|
4054
|
+
readonly type: "number";
|
|
4055
|
+
readonly required: true;
|
|
4056
|
+
readonly default: 0;
|
|
4057
|
+
readonly validate: (value: unknown) => boolean;
|
|
4058
|
+
};
|
|
4059
|
+
readonly updatedAt: {
|
|
4060
|
+
readonly type: "number";
|
|
4061
|
+
readonly watch: "*";
|
|
4062
|
+
readonly required: true;
|
|
4063
|
+
readonly default: () => any;
|
|
4064
|
+
readonly set: () => any;
|
|
4065
|
+
};
|
|
4066
|
+
};
|
|
4067
|
+
readonly indexes: {
|
|
4068
|
+
readonly byTokenHash: {
|
|
4069
|
+
readonly pk: {
|
|
4070
|
+
readonly field: "gsi0pk";
|
|
4071
|
+
readonly composite: readonly ["tokenHash"];
|
|
4072
|
+
};
|
|
4073
|
+
readonly sk: {
|
|
4074
|
+
readonly field: "gsi0sk";
|
|
4075
|
+
readonly composite: readonly [];
|
|
4076
|
+
};
|
|
4077
|
+
readonly index: "gsi0";
|
|
4078
|
+
};
|
|
4079
|
+
readonly CalendarFeedToken: {
|
|
4080
|
+
readonly pk: {
|
|
4081
|
+
readonly field: "pk";
|
|
4082
|
+
readonly composite: readonly ["accountConfigId"];
|
|
4083
|
+
};
|
|
4084
|
+
readonly sk: {
|
|
4085
|
+
readonly field: "sk";
|
|
4086
|
+
readonly composite: readonly ["feedTokenId"];
|
|
4087
|
+
};
|
|
4088
|
+
};
|
|
4089
|
+
};
|
|
4090
|
+
readonly model: {
|
|
4091
|
+
readonly entity: "calendarFeedToken";
|
|
4092
|
+
readonly service: "remit";
|
|
4093
|
+
readonly version: "1";
|
|
4094
|
+
};
|
|
4095
|
+
};
|
|
4024
4096
|
export declare const MessageLabel: {
|
|
4025
4097
|
readonly attributes: {
|
|
4026
4098
|
readonly messageLabelId: {
|
package/index.mjs
CHANGED
|
@@ -5164,6 +5164,104 @@ export const CalendarEventIndex = {
|
|
|
5164
5164
|
version: "1"
|
|
5165
5165
|
}
|
|
5166
5166
|
};
|
|
5167
|
+
export const CalendarFeedToken = {
|
|
5168
|
+
attributes: {
|
|
5169
|
+
feedTokenId: {
|
|
5170
|
+
type: "string",
|
|
5171
|
+
required: true,
|
|
5172
|
+
validate: value => {
|
|
5173
|
+
if (typeof value === "string" && value.length < 25)
|
|
5174
|
+
throw new Error("'feedTokenId' must be at least 25 characters");
|
|
5175
|
+
if (typeof value === "string" && value.length > 25)
|
|
5176
|
+
throw new Error("'feedTokenId' must be at most 25 characters");
|
|
5177
|
+
return true;
|
|
5178
|
+
}
|
|
5179
|
+
},
|
|
5180
|
+
accountConfigId: {
|
|
5181
|
+
type: "string",
|
|
5182
|
+
required: true,
|
|
5183
|
+
validate: value => {
|
|
5184
|
+
if (typeof value === "string" && value.length < 25)
|
|
5185
|
+
throw new Error("'accountConfigId' must be at least 25 characters");
|
|
5186
|
+
if (typeof value === "string" && value.length > 25)
|
|
5187
|
+
throw new Error("'accountConfigId' must be at most 25 characters");
|
|
5188
|
+
return true;
|
|
5189
|
+
}
|
|
5190
|
+
},
|
|
5191
|
+
calendarId: {
|
|
5192
|
+
type: "string",
|
|
5193
|
+
required: true,
|
|
5194
|
+
validate: value => {
|
|
5195
|
+
if (typeof value === "string" && value.length < 25)
|
|
5196
|
+
throw new Error("'calendarId' must be at least 25 characters");
|
|
5197
|
+
if (typeof value === "string" && value.length > 25)
|
|
5198
|
+
throw new Error("'calendarId' must be at most 25 characters");
|
|
5199
|
+
return true;
|
|
5200
|
+
}
|
|
5201
|
+
},
|
|
5202
|
+
tokenHash: {
|
|
5203
|
+
type: "string",
|
|
5204
|
+
required: true,
|
|
5205
|
+
validate: value => {
|
|
5206
|
+
if (typeof value === "string" && value.length > 64)
|
|
5207
|
+
throw new Error("'tokenHash' must be at most 64 characters");
|
|
5208
|
+
return true;
|
|
5209
|
+
}
|
|
5210
|
+
},
|
|
5211
|
+
createdAt: {
|
|
5212
|
+
type: "number",
|
|
5213
|
+
readOnly: true,
|
|
5214
|
+
required: true,
|
|
5215
|
+
default: () => Date.now(),
|
|
5216
|
+
set: () => Date.now()
|
|
5217
|
+
},
|
|
5218
|
+
rotatedAt: {
|
|
5219
|
+
type: "number",
|
|
5220
|
+
required: true,
|
|
5221
|
+
default: 0,
|
|
5222
|
+
validate: value => {
|
|
5223
|
+
if (typeof value === "number" && !Number.isInteger(value))
|
|
5224
|
+
throw new Error("'rotatedAt' must be an integer");
|
|
5225
|
+
return true;
|
|
5226
|
+
}
|
|
5227
|
+
},
|
|
5228
|
+
updatedAt: {
|
|
5229
|
+
type: "number",
|
|
5230
|
+
watch: "*",
|
|
5231
|
+
required: true,
|
|
5232
|
+
default: () => Date.now(),
|
|
5233
|
+
set: () => Date.now()
|
|
5234
|
+
}
|
|
5235
|
+
},
|
|
5236
|
+
indexes: {
|
|
5237
|
+
byTokenHash: {
|
|
5238
|
+
pk: {
|
|
5239
|
+
field: "gsi0pk",
|
|
5240
|
+
composite: ["tokenHash"]
|
|
5241
|
+
},
|
|
5242
|
+
sk: {
|
|
5243
|
+
field: "gsi0sk",
|
|
5244
|
+
composite: []
|
|
5245
|
+
},
|
|
5246
|
+
index: "gsi0"
|
|
5247
|
+
},
|
|
5248
|
+
CalendarFeedToken: {
|
|
5249
|
+
pk: {
|
|
5250
|
+
field: "pk",
|
|
5251
|
+
composite: ["accountConfigId"]
|
|
5252
|
+
},
|
|
5253
|
+
sk: {
|
|
5254
|
+
field: "sk",
|
|
5255
|
+
composite: ["feedTokenId"]
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5258
|
+
},
|
|
5259
|
+
model: {
|
|
5260
|
+
entity: "calendarFeedToken",
|
|
5261
|
+
service: "remit",
|
|
5262
|
+
version: "1"
|
|
5263
|
+
}
|
|
5264
|
+
};
|
|
5167
5265
|
export const MessageLabel = {
|
|
5168
5266
|
attributes: {
|
|
5169
5267
|
messageLabelId: {
|