@etainabl/nodejs-sdk 1.3.184 → 1.3.187
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/dist/esm/index.js +125 -55
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +94 -93
- package/dist/index.d.ts +94 -93
- package/dist/index.js +196 -126
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -493,8 +493,8 @@ interface CustomAlertTrigger<ID = string, DateType = Date | string, metadataType
|
|
|
493
493
|
processedAt?: DateType;
|
|
494
494
|
lastTriggeredEvent?: DateType;
|
|
495
495
|
companyId: ID;
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
userId: ID;
|
|
497
|
+
recipientUserIds?: ID[];
|
|
498
498
|
active: boolean;
|
|
499
499
|
createdAt?: DateType;
|
|
500
500
|
updatedAt?: DateType;
|
|
@@ -672,7 +672,7 @@ type FormattedReading = Omit<Reading<string, string>, '_id'>;
|
|
|
672
672
|
type FormattedInvoice = Omit<Invoice<string, string>, '_id' | 's3Key'>;
|
|
673
673
|
interface HandleErrorParams {
|
|
674
674
|
context: Context;
|
|
675
|
-
etnApi: ReturnType<typeof _default$
|
|
675
|
+
etnApi: ReturnType<typeof _default$4>;
|
|
676
676
|
automationRun: AutomationRun<string>;
|
|
677
677
|
lambdaSource: string;
|
|
678
678
|
error: Error;
|
|
@@ -1313,12 +1313,10 @@ interface Job<ID = string, DateType = Date | string> {
|
|
|
1313
1313
|
windowEnd?: DateType;
|
|
1314
1314
|
startedAt?: DateType;
|
|
1315
1315
|
completedAt?: DateType;
|
|
1316
|
-
heartbeatAt?: DateType;
|
|
1317
1316
|
expiresAt?: DateType;
|
|
1318
1317
|
error?: string;
|
|
1319
1318
|
metadata?: Record<string, any>;
|
|
1320
1319
|
companyId?: ID;
|
|
1321
|
-
userSub?: string;
|
|
1322
1320
|
createdAt?: DateType;
|
|
1323
1321
|
updatedAt?: DateType;
|
|
1324
1322
|
deleted?: boolean;
|
|
@@ -1369,7 +1367,7 @@ interface Notification<ID = string, DateType = Date | string> {
|
|
|
1369
1367
|
notificationTemplateId: ID;
|
|
1370
1368
|
scheduledAt?: DateType;
|
|
1371
1369
|
scheduledBy?: string;
|
|
1372
|
-
|
|
1370
|
+
userId: ID;
|
|
1373
1371
|
toastHasShown?: boolean;
|
|
1374
1372
|
message?: string;
|
|
1375
1373
|
status: string;
|
|
@@ -1408,6 +1406,54 @@ interface Notification<ID = string, DateType = Date | string> {
|
|
|
1408
1406
|
companyId?: ID;
|
|
1409
1407
|
}
|
|
1410
1408
|
|
|
1409
|
+
declare const EventNamesByCategory: {
|
|
1410
|
+
readonly automation: readonly ["automationFailed", "automationCompleted", "automationOverdue", "automationExtractorOverdue"];
|
|
1411
|
+
readonly report: readonly ["reportSuccess", "reportFailed"];
|
|
1412
|
+
readonly team: readonly ["newUserSignIn"];
|
|
1413
|
+
readonly dataQuality: readonly ["invoiceOverdue", "contractOverdue", "contractDueSoon", "readingOverdue", "readingDueSoon"];
|
|
1414
|
+
readonly discussion: readonly ["newDiscussionReply", "userAssignedToDiscussion", "discussionMessageDue"];
|
|
1415
|
+
readonly scraper: readonly ["scraperLoginError", "scraperHasNotRun", "scraperRunCompleted"];
|
|
1416
|
+
};
|
|
1417
|
+
type NotificationEventName = (typeof EventNamesByCategory)[keyof typeof EventNamesByCategory][number] | 'alertTrigger';
|
|
1418
|
+
type NotificationTemplateSeverity = 'error' | 'warning' | 'info' | 'success';
|
|
1419
|
+
type NotificationTemplateDefaultChannel = 'off' | 'inApp' | 'email' | 'sms';
|
|
1420
|
+
type NotificationTemplateConfigType = 'text' | 'number' | 'password' | 'textarea' | 'radio' | 'select' | 'select2' | 'select-old' | 'select-multiple' | 'select-array' | 'select-array-list' | 'select-array-search' | 'multi-check-options' | 'tag-manager' | 'datePicker' | 'dateTimePicker' | 'dateRangePicker' | 'file' | 'slider';
|
|
1421
|
+
interface NotificationTemplateConfigOption {
|
|
1422
|
+
label: string;
|
|
1423
|
+
value: string;
|
|
1424
|
+
}
|
|
1425
|
+
interface NotificationTemplateConfig {
|
|
1426
|
+
type: NotificationTemplateConfigType;
|
|
1427
|
+
label: string;
|
|
1428
|
+
options?: NotificationTemplateConfigOption[];
|
|
1429
|
+
default?: string | null;
|
|
1430
|
+
required?: boolean;
|
|
1431
|
+
placeholder?: string;
|
|
1432
|
+
}
|
|
1433
|
+
interface NotificationTemplateRoute {
|
|
1434
|
+
name?: string;
|
|
1435
|
+
params?: Record<string, any>;
|
|
1436
|
+
}
|
|
1437
|
+
interface NotificationTemplate<ID = string, DateType = Date | string> {
|
|
1438
|
+
_id: ID;
|
|
1439
|
+
name: string;
|
|
1440
|
+
description?: string;
|
|
1441
|
+
triggerDescription?: string;
|
|
1442
|
+
category: NotificationCategory;
|
|
1443
|
+
eventName: NotificationEventName;
|
|
1444
|
+
severity: NotificationTemplateSeverity;
|
|
1445
|
+
isSystem?: boolean;
|
|
1446
|
+
default: NotificationTemplateDefaultChannel;
|
|
1447
|
+
messageTemplate?: string;
|
|
1448
|
+
routeTemplate?: NotificationTemplateRoute;
|
|
1449
|
+
icon?: string;
|
|
1450
|
+
config?: Map<string, NotificationTemplateConfig> | Record<string, NotificationTemplateConfig>;
|
|
1451
|
+
active: boolean;
|
|
1452
|
+
enabledByDefault?: boolean;
|
|
1453
|
+
createdAt?: DateType;
|
|
1454
|
+
updatedAt?: DateType;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1411
1457
|
type NotificationContextMap = {
|
|
1412
1458
|
reportSuccess: {
|
|
1413
1459
|
report: {
|
|
@@ -1484,79 +1530,25 @@ type NotificationContextMap = {
|
|
|
1484
1530
|
loginTime: string;
|
|
1485
1531
|
};
|
|
1486
1532
|
};
|
|
1487
|
-
type
|
|
1488
|
-
|
|
1533
|
+
type NotificationContext = NotificationContextMap[keyof NotificationContextMap];
|
|
1534
|
+
type NotificationContextEventName = keyof NotificationContextMap;
|
|
1535
|
+
interface NotificationSQSMessage<E extends NotificationContextEventName = NotificationContextEventName> {
|
|
1489
1536
|
eventName: E;
|
|
1490
1537
|
timestamp: string;
|
|
1491
1538
|
companyId: string;
|
|
1492
|
-
|
|
1539
|
+
userId: string;
|
|
1493
1540
|
alertTriggerId?: string;
|
|
1494
1541
|
notificationTemplateId?: string;
|
|
1495
1542
|
context: NotificationContextMap[E];
|
|
1496
1543
|
}
|
|
1497
|
-
interface SendNotificationMessageInput
|
|
1544
|
+
interface SendNotificationMessageInput {
|
|
1498
1545
|
companyId: string;
|
|
1499
|
-
|
|
1546
|
+
userId: string;
|
|
1500
1547
|
alertTriggerId?: string;
|
|
1501
1548
|
timestamp?: string;
|
|
1502
1549
|
notificationTemplateId?: string;
|
|
1503
1550
|
}
|
|
1504
1551
|
|
|
1505
|
-
declare const NotificationTemplateCategories: readonly ["automation", "report", "team", "dataQuality", "discussion", "scraper"];
|
|
1506
|
-
type NotificationTemplateCategory = (typeof NotificationTemplateCategories)[number];
|
|
1507
|
-
declare const EventNamesByCategory: {
|
|
1508
|
-
readonly automation: readonly ["automationFailed", "automationCompleted", "automationOverdue", "automationExtractorOverdue"];
|
|
1509
|
-
readonly report: readonly ["reportSuccess", "reportFailed"];
|
|
1510
|
-
readonly team: readonly ["newUserSignIn"];
|
|
1511
|
-
readonly dataQuality: readonly ["invoiceOverdue", "contractOverdue", "contractDueSoon", "readingOverdue", "readingDueSoon"];
|
|
1512
|
-
readonly discussion: readonly ["newDiscussionReply", "userAssignedToDiscussion", "discussionMessageDue"];
|
|
1513
|
-
readonly scraper: readonly ["scraperLoginError", "scraperHasNotRun", "scraperRunCompleted"];
|
|
1514
|
-
};
|
|
1515
|
-
type AutomationEventName = (typeof EventNamesByCategory.automation)[number];
|
|
1516
|
-
type ReportEventName = (typeof EventNamesByCategory.report)[number];
|
|
1517
|
-
type TeamEventName = (typeof EventNamesByCategory.team)[number];
|
|
1518
|
-
type DataQualityEventName = (typeof EventNamesByCategory.dataQuality)[number];
|
|
1519
|
-
type DiscussionEventName = (typeof EventNamesByCategory.discussion)[number];
|
|
1520
|
-
type ScraperEventName = (typeof EventNamesByCategory.scraper)[number];
|
|
1521
|
-
type NotificationEventName = NotificationEventType;
|
|
1522
|
-
type NotificationTemplateSeverity = 'error' | 'warning' | 'info' | 'success';
|
|
1523
|
-
type NotificationTemplateDefaultChannel = 'off' | 'inApp' | 'email' | 'sms';
|
|
1524
|
-
type NotificationTemplateConfigType = 'text' | 'number' | 'password' | 'textarea' | 'radio' | 'select' | 'select2' | 'select-old' | 'select-multiple' | 'select-array' | 'select-array-list' | 'select-array-search' | 'multi-check-options' | 'tag-manager' | 'datePicker' | 'dateTimePicker' | 'dateRangePicker' | 'file' | 'slider';
|
|
1525
|
-
interface NotificationTemplateConfigOption {
|
|
1526
|
-
label: string;
|
|
1527
|
-
value: string;
|
|
1528
|
-
}
|
|
1529
|
-
interface NotificationTemplateConfig {
|
|
1530
|
-
type: NotificationTemplateConfigType;
|
|
1531
|
-
label: string;
|
|
1532
|
-
options?: NotificationTemplateConfigOption[];
|
|
1533
|
-
default?: string | null;
|
|
1534
|
-
required?: boolean;
|
|
1535
|
-
placeholder?: string;
|
|
1536
|
-
}
|
|
1537
|
-
interface NotificationTemplateRoute {
|
|
1538
|
-
name?: string;
|
|
1539
|
-
params?: Record<string, any>;
|
|
1540
|
-
}
|
|
1541
|
-
interface NotificationTemplate<ID = string, DateType = Date | string> {
|
|
1542
|
-
_id: ID;
|
|
1543
|
-
name: string;
|
|
1544
|
-
description?: string;
|
|
1545
|
-
triggerDescription?: string;
|
|
1546
|
-
category: NotificationTemplateCategory;
|
|
1547
|
-
eventName: NotificationEventName;
|
|
1548
|
-
severity: NotificationTemplateSeverity;
|
|
1549
|
-
isSystem?: boolean;
|
|
1550
|
-
default: NotificationTemplateDefaultChannel;
|
|
1551
|
-
messageTemplate?: string;
|
|
1552
|
-
routeTemplate?: NotificationTemplateRoute;
|
|
1553
|
-
icon?: string;
|
|
1554
|
-
config?: Map<string, NotificationTemplateConfig> | Record<string, NotificationTemplateConfig>;
|
|
1555
|
-
active: boolean;
|
|
1556
|
-
createdAt?: DateType;
|
|
1557
|
-
updatedAt?: DateType;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
1552
|
interface Log<IDType = ObjectId | string> {
|
|
1561
1553
|
_id: IDType;
|
|
1562
1554
|
message: string;
|
|
@@ -1739,14 +1731,13 @@ type NotificationChannels = {
|
|
|
1739
1731
|
sms: boolean;
|
|
1740
1732
|
};
|
|
1741
1733
|
type NotificationTemplatesMap = Record<string, boolean>;
|
|
1742
|
-
type NotificationCategoryKey = (typeof NotificationCategoryList)[number];
|
|
1743
1734
|
type NotificationCategoryPreferences<IDType = ObjectId | string> = {
|
|
1744
1735
|
channels: NotificationChannels;
|
|
1745
1736
|
templates: NotificationTemplatesMap;
|
|
1746
1737
|
};
|
|
1747
1738
|
type NotificationPreferences<IDType = ObjectId | string> = {
|
|
1748
1739
|
channels: NotificationChannels;
|
|
1749
|
-
categories: Record<
|
|
1740
|
+
categories: Record<NotificationCategory, NotificationCategoryPreferences<IDType>>;
|
|
1750
1741
|
};
|
|
1751
1742
|
interface User<IDType = ObjectId | string> {
|
|
1752
1743
|
_id: IDType;
|
|
@@ -1810,7 +1801,7 @@ interface AuthOptions {
|
|
|
1810
1801
|
token?: string;
|
|
1811
1802
|
userOnly?: boolean;
|
|
1812
1803
|
}
|
|
1813
|
-
declare const _default$
|
|
1804
|
+
declare const _default$4: (auth: AuthOptions, instanceOptions?: CreateAxiosDefaults) => {
|
|
1814
1805
|
instance: AxiosInstance;
|
|
1815
1806
|
getAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
1816
1807
|
listAccounts: <P = Account<string>>(options?: AxiosRequestConfig) => Promise<ETNPagedResponse<P>>;
|
|
@@ -1987,7 +1978,7 @@ interface EmailTemplateOptions {
|
|
|
1987
1978
|
footer?: string;
|
|
1988
1979
|
includeTimestamp?: boolean;
|
|
1989
1980
|
}
|
|
1990
|
-
declare const _default$
|
|
1981
|
+
declare const _default$3: (options: EmailTemplateOptions) => string;
|
|
1991
1982
|
|
|
1992
1983
|
interface NotificationEmailOptions {
|
|
1993
1984
|
title: string;
|
|
@@ -2005,18 +1996,18 @@ interface NotificationEmailOptions {
|
|
|
2005
1996
|
}>;
|
|
2006
1997
|
}
|
|
2007
1998
|
declare function generateNotificationEmail(options: NotificationEmailOptions): string;
|
|
2008
|
-
declare const _default$
|
|
1999
|
+
declare const _default$2: {
|
|
2009
2000
|
generateNotificationEmail: typeof generateNotificationEmail;
|
|
2010
2001
|
};
|
|
2011
2002
|
|
|
2012
|
-
interface LoggerOptions {
|
|
2013
|
-
betterstack: boolean;
|
|
2014
|
-
betterStackHost: string;
|
|
2015
|
-
}
|
|
2016
2003
|
interface ExtendedLogger extends winston.Logger {
|
|
2017
2004
|
logtail?: Logtail;
|
|
2018
2005
|
}
|
|
2019
|
-
|
|
2006
|
+
interface LoggerOptions {
|
|
2007
|
+
feature?: string;
|
|
2008
|
+
}
|
|
2009
|
+
declare function logger(namespace: string, options?: LoggerOptions): ExtendedLogger;
|
|
2010
|
+
declare function loggerWithBetterStack(namespace: string, options?: LoggerOptions): Promise<ExtendedLogger>;
|
|
2020
2011
|
|
|
2021
2012
|
declare function connectToDatabase(retryAttempt?: number): Promise<Db>;
|
|
2022
2013
|
declare const _default$1: {
|
|
@@ -2027,34 +2018,29 @@ declare const _default: {
|
|
|
2027
2018
|
postMessage: (message: string) => Promise<axios.AxiosResponse<any, any>>;
|
|
2028
2019
|
};
|
|
2029
2020
|
|
|
2030
|
-
declare namespace notification {
|
|
2031
|
-
export { };
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
2021
|
interface SendNotificationMessageOptions {
|
|
2035
2022
|
queueUrl?: string;
|
|
2036
2023
|
sqsClient?: SQSClient;
|
|
2037
2024
|
}
|
|
2038
|
-
type
|
|
2039
|
-
type SendNotificationParams<T extends NotificationType> = {
|
|
2025
|
+
type SendNotificationParams<T extends NotificationContextEventName> = {
|
|
2040
2026
|
eventName: T;
|
|
2041
2027
|
context: NotificationContextMap[T];
|
|
2042
|
-
input: SendNotificationMessageInput
|
|
2028
|
+
input: SendNotificationMessageInput;
|
|
2043
2029
|
options?: SendNotificationMessageOptions;
|
|
2044
2030
|
};
|
|
2045
|
-
type SendNotificationBatchParams<T extends
|
|
2031
|
+
type SendNotificationBatchParams<T extends NotificationContextEventName> = {
|
|
2046
2032
|
messages: Array<{
|
|
2047
2033
|
eventName: T;
|
|
2048
2034
|
context: NotificationContextMap[T];
|
|
2049
|
-
input: SendNotificationMessageInput
|
|
2035
|
+
input: SendNotificationMessageInput;
|
|
2050
2036
|
}>;
|
|
2051
2037
|
options?: SendNotificationMessageOptions;
|
|
2052
2038
|
};
|
|
2053
|
-
declare function createNotificationMessage<T extends
|
|
2054
|
-
declare function sendNotificationMessage<T extends
|
|
2039
|
+
declare function createNotificationMessage<T extends NotificationContextEventName>(eventName: T, context: NotificationContextMap[T], input: SendNotificationMessageInput): NotificationSQSMessage<T>;
|
|
2040
|
+
declare function sendNotificationMessage<T extends NotificationContextEventName>({ eventName, context, input, options }: SendNotificationParams<T>): Promise<{
|
|
2055
2041
|
messageId: string;
|
|
2056
2042
|
}>;
|
|
2057
|
-
declare function sendNotificationMessageBatch<T extends
|
|
2043
|
+
declare function sendNotificationMessageBatch<T extends NotificationContextEventName>({ messages, options }: SendNotificationBatchParams<T>): Promise<{
|
|
2058
2044
|
messageIds: string[];
|
|
2059
2045
|
}>;
|
|
2060
2046
|
|
|
@@ -2108,7 +2094,7 @@ declare const automationServices: {
|
|
|
2108
2094
|
}[];
|
|
2109
2095
|
|
|
2110
2096
|
declare function updateBatchJobStatus({ etnApi, automationRun, accountKey, status, errorMessage }: {
|
|
2111
|
-
etnApi: ReturnType<typeof _default$
|
|
2097
|
+
etnApi: ReturnType<typeof _default$4>;
|
|
2112
2098
|
automationRun: AutomationRun<string>;
|
|
2113
2099
|
accountKey?: string;
|
|
2114
2100
|
status: 'completed' | 'failed';
|
|
@@ -2126,7 +2112,7 @@ interface StepFunctionEvent {
|
|
|
2126
2112
|
}
|
|
2127
2113
|
declare class IngestHandler {
|
|
2128
2114
|
protected event: SQSEvent | SNSEvent | APIGatewayEvent | S3Event;
|
|
2129
|
-
protected log: ReturnType<typeof
|
|
2115
|
+
protected log: ReturnType<typeof logger>;
|
|
2130
2116
|
protected sqsReceiptHandle: string | undefined;
|
|
2131
2117
|
constructor(event: any);
|
|
2132
2118
|
isSQSEvent(event: any): event is SQSEvent;
|
|
@@ -2187,11 +2173,25 @@ type SendToSqsBatchedResult = {
|
|
|
2187
2173
|
};
|
|
2188
2174
|
declare const sendToSqsBatched: <T>(messages: SqsBatchMessage<T>[], options: SendToSqsBatchedOptions) => Promise<SendToSqsBatchedResult>;
|
|
2189
2175
|
|
|
2176
|
+
interface ResolvedNotificationPreferences {
|
|
2177
|
+
channels: NotificationChannels;
|
|
2178
|
+
categories: Record<string, {
|
|
2179
|
+
channels: NotificationChannels;
|
|
2180
|
+
templates: Array<{
|
|
2181
|
+
_id: string;
|
|
2182
|
+
name: string;
|
|
2183
|
+
enabled: boolean;
|
|
2184
|
+
}>;
|
|
2185
|
+
}>;
|
|
2186
|
+
}
|
|
2187
|
+
declare function resolveNotificationPreferences(userPreferences: NotificationPreferences, systemTemplates: (NotificationTemplate<ObjectId, Date> | NotificationTemplate<string, string>)[]): ResolvedNotificationPreferences;
|
|
2188
|
+
|
|
2190
2189
|
type index$1_FetchPage<T> = FetchPage<T>;
|
|
2191
2190
|
type index$1_IngestHandler = IngestHandler;
|
|
2192
2191
|
declare const index$1_IngestHandler: typeof IngestHandler;
|
|
2193
2192
|
type index$1_PaginatedFetchOptions = PaginatedFetchOptions;
|
|
2194
2193
|
type index$1_PaginatedResponse<T> = PaginatedResponse<T>;
|
|
2194
|
+
type index$1_ResolvedNotificationPreferences = ResolvedNotificationPreferences;
|
|
2195
2195
|
type index$1_SendToSqsBatchedOptions = SendToSqsBatchedOptions;
|
|
2196
2196
|
type index$1_SendToSqsBatchedResult = SendToSqsBatchedResult;
|
|
2197
2197
|
type index$1_SqsBatchMessage<T> = SqsBatchMessage<T>;
|
|
@@ -2201,12 +2201,13 @@ declare const index$1_automationSources: typeof automationSources;
|
|
|
2201
2201
|
declare const index$1_getMeterPointNumberBottomLine: typeof getMeterPointNumberBottomLine;
|
|
2202
2202
|
declare const index$1_isTransientError: typeof isTransientError;
|
|
2203
2203
|
declare const index$1_paginatedFetch: typeof paginatedFetch;
|
|
2204
|
+
declare const index$1_resolveNotificationPreferences: typeof resolveNotificationPreferences;
|
|
2204
2205
|
declare const index$1_sendToSqsBatched: typeof sendToSqsBatched;
|
|
2205
2206
|
declare const index$1_updateBatchJobStatus: typeof updateBatchJobStatus;
|
|
2206
2207
|
declare const index$1_utilityTypes: typeof utilityTypes;
|
|
2207
2208
|
declare const index$1_wasteCategories: typeof wasteCategories;
|
|
2208
2209
|
declare namespace index$1 {
|
|
2209
|
-
export { type index$1_FetchPage as FetchPage, index$1_IngestHandler as IngestHandler, type index$1_PaginatedFetchOptions as PaginatedFetchOptions, type index$1_PaginatedResponse as PaginatedResponse, type index$1_SendToSqsBatchedOptions as SendToSqsBatchedOptions, type index$1_SendToSqsBatchedResult as SendToSqsBatchedResult, type index$1_SqsBatchMessage as SqsBatchMessage, type index$1_SqsMessageAttribute as SqsMessageAttribute, index$1_automationServices as automationServices, index$1_automationSources as automationSources, index$1_getMeterPointNumberBottomLine as getMeterPointNumberBottomLine, index$1_isTransientError as isTransientError, index$1_paginatedFetch as paginatedFetch, index$1_sendToSqsBatched as sendToSqsBatched, units$1 as units, index$1_updateBatchJobStatus as updateBatchJobStatus, index$1_utilityTypes as utilityTypes, index$1_wasteCategories as wasteCategories };
|
|
2210
|
+
export { type index$1_FetchPage as FetchPage, index$1_IngestHandler as IngestHandler, type index$1_PaginatedFetchOptions as PaginatedFetchOptions, type index$1_PaginatedResponse as PaginatedResponse, type index$1_ResolvedNotificationPreferences as ResolvedNotificationPreferences, type index$1_SendToSqsBatchedOptions as SendToSqsBatchedOptions, type index$1_SendToSqsBatchedResult as SendToSqsBatchedResult, type index$1_SqsBatchMessage as SqsBatchMessage, type index$1_SqsMessageAttribute as SqsMessageAttribute, index$1_automationServices as automationServices, index$1_automationSources as automationSources, index$1_getMeterPointNumberBottomLine as getMeterPointNumberBottomLine, index$1_isTransientError as isTransientError, index$1_paginatedFetch as paginatedFetch, index$1_resolveNotificationPreferences as resolveNotificationPreferences, index$1_sendToSqsBatched as sendToSqsBatched, units$1 as units, index$1_updateBatchJobStatus as updateBatchJobStatus, index$1_utilityTypes as utilityTypes, index$1_wasteCategories as wasteCategories };
|
|
2210
2211
|
}
|
|
2211
2212
|
|
|
2212
2213
|
interface ETNModel {
|
|
@@ -2277,7 +2278,7 @@ type ETNModels = keyof typeof models;
|
|
|
2277
2278
|
declare abstract class Model {
|
|
2278
2279
|
openai: OpenAI;
|
|
2279
2280
|
protected models: Record<ETNModels, ETNModel>;
|
|
2280
|
-
protected log: ReturnType<typeof
|
|
2281
|
+
protected log: ReturnType<typeof logger>;
|
|
2281
2282
|
constructor();
|
|
2282
2283
|
}
|
|
2283
2284
|
|
|
@@ -2333,4 +2334,4 @@ declare namespace scrapers {
|
|
|
2333
2334
|
export type { scrapers_ETNAccount as ETNAccount };
|
|
2334
2335
|
}
|
|
2335
2336
|
|
|
2336
|
-
export { type AccessLevel, type Account, type AccountResult, type Action, type ActionType, type Asset, type Automation, type
|
|
2337
|
+
export { type AccessLevel, type Account, type AccountResult, type Action, type ActionType, type Asset, type Automation, type AutomationRun, type AutomationRunLog, type AutomationRunSummary, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, type Consumption, type CreateScraperRunParams, type CustomAlertTrigger, type CustomAlertTriggerQueueMessage, type DataIngest, type DefaultField, type DeliveryStatus, type ETNEvent, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, EventNamesByCategory, type FileFormat, type ImportTemplate, type Invoice, type InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValidation, type InvoiceValidationInvoice, type InvoiceValidationResults, type InvoiceValidationRule, type InvoiceValues, type Job, type JobStatus, type Log, type Notification, type NotificationAction, type NotificationCategory, NotificationCategoryList, type NotificationCategoryPreferences, type NotificationChannels, type NotificationContext, type NotificationContextEventName, type NotificationContextMap, NotificationDefaultChannels, type NotificationEventName, type NotificationPreferences, type NotificationSQSMessage, type NotificationTemplate, type NotificationTemplateConfig, type NotificationTemplateConfigOption, type NotificationTemplateConfigType, type NotificationTemplateDefaultChannel, type NotificationTemplateRoute, type NotificationTemplateSeverity, type NotificationTemplatesMap, type Portal, type PortalSupplierSchema, type Problem, type ProblemCodes, type ProblemDetails, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ReportTemplate, type ReportType, type ScraperRun, type SendNotificationMessageInput, type Setting, type SourceType, type Supplier, type User, type UtilityType, type WasteCategories, type WasteTypes, _default$4 as api, consumption, _default$1 as db, _default$3 as emailTemplate, integrations, logger, loggerWithBetterStack, monitoring, _default$2 as notificationEmailTemplate, notificationQueue, index as openai, reporting, scrapers, _default as slack, units, index$1 as utils };
|