@etainabl/nodejs-sdk 1.3.110 → 1.3.112

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.
Files changed (49) hide show
  1. package/dist/esm/chunk-3YGWW265.js +64 -0
  2. package/dist/esm/chunk-3YGWW265.js.map +1 -0
  3. package/dist/esm/chunk-BIVFO5LG.js +2476 -0
  4. package/dist/esm/chunk-BIVFO5LG.js.map +1 -0
  5. package/dist/esm/chunk-CIKXN3GS.js +64 -0
  6. package/dist/esm/chunk-CIKXN3GS.js.map +1 -0
  7. package/dist/esm/chunk-E6O4HVLA.js +121 -0
  8. package/dist/esm/chunk-E6O4HVLA.js.map +1 -0
  9. package/dist/esm/chunk-HAEAETXR.js +210 -0
  10. package/dist/esm/chunk-HAEAETXR.js.map +1 -0
  11. package/dist/esm/chunk-ITSE4X2J.js +1733 -0
  12. package/dist/esm/chunk-ITSE4X2J.js.map +1 -0
  13. package/dist/esm/chunk-OWL7NKW5.js +47 -0
  14. package/dist/esm/chunk-OWL7NKW5.js.map +1 -0
  15. package/dist/esm/chunk-R63LRFTI.js +153 -0
  16. package/dist/esm/chunk-R63LRFTI.js.map +1 -0
  17. package/dist/esm/chunk-UFTVLHTW.js +114 -0
  18. package/dist/esm/chunk-UFTVLHTW.js.map +1 -0
  19. package/dist/esm/chunk-UZGMBQZB.js +13 -0
  20. package/dist/esm/chunk-UZGMBQZB.js.map +1 -0
  21. package/dist/esm/chunk-XXAWQ5GA.js +3359 -0
  22. package/dist/esm/chunk-XXAWQ5GA.js.map +1 -0
  23. package/dist/esm/dist-es-4ZHJVMJ4.js +21 -0
  24. package/dist/esm/dist-es-4ZHJVMJ4.js.map +1 -0
  25. package/dist/esm/dist-es-FD7XXZCE.js +305 -0
  26. package/dist/esm/dist-es-FD7XXZCE.js.map +1 -0
  27. package/dist/esm/dist-es-MXGFLXV2.js +379 -0
  28. package/dist/esm/dist-es-MXGFLXV2.js.map +1 -0
  29. package/dist/esm/dist-es-QPNGCVTW.js +67 -0
  30. package/dist/esm/dist-es-QPNGCVTW.js.map +1 -0
  31. package/dist/esm/dist-es-RHLCSE2G.js +200 -0
  32. package/dist/esm/dist-es-RHLCSE2G.js.map +1 -0
  33. package/dist/esm/dist-es-X5IH3XCT.js +88 -0
  34. package/dist/esm/dist-es-X5IH3XCT.js.map +1 -0
  35. package/dist/esm/dist-es-XEM2CDDP.js +163 -0
  36. package/dist/esm/dist-es-XEM2CDDP.js.map +1 -0
  37. package/dist/esm/index.js +4299 -81
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/loadSso-3QBKTJF3.js +655 -0
  40. package/dist/esm/loadSso-3QBKTJF3.js.map +1 -0
  41. package/dist/esm/sso-oidc-GZ3LZ3MF.js +827 -0
  42. package/dist/esm/sso-oidc-GZ3LZ3MF.js.map +1 -0
  43. package/dist/esm/sts-CIQKG7FB.js +1162 -0
  44. package/dist/esm/sts-CIQKG7FB.js.map +1 -0
  45. package/dist/index.d.cts +176 -82
  46. package/dist/index.d.ts +176 -82
  47. package/dist/index.js +21923 -1147
  48. package/dist/index.js.map +1 -1
  49. package/package.json +4 -2
package/dist/index.d.ts CHANGED
@@ -2,11 +2,12 @@ import * as axios from 'axios';
2
2
  import { CreateAxiosDefaults, AxiosInstance, AxiosRequestConfig } from 'axios';
3
3
  import { ObjectId, Db } from 'mongodb';
4
4
  export { ObjectId } from 'mongodb';
5
+ import { S3Client } from '@aws-sdk/client-s3';
6
+ import { SQSClient } from '@aws-sdk/client-sqs';
5
7
  import winston from 'winston';
6
8
  import moment from 'moment';
7
9
  import { ZodObject } from 'zod';
8
10
  import OpenAI from 'openai';
9
- import { SQSClient } from '@aws-sdk/client-sqs';
10
11
 
11
12
  declare const wasteCategories: readonly [{
12
13
  readonly name: "General Waste";
@@ -261,6 +262,7 @@ declare const units$1: readonly [{
261
262
  readonly types: readonly ["occupancy"];
262
263
  readonly defaultTypes: readonly ["occupancy"];
263
264
  }];
265
+ declare const getMeterPointNumberBottomLine: (meterPointNumber: string) => string;
264
266
 
265
267
  type UtilityType = (typeof utilityTypes)[number]['value'];
266
268
 
@@ -573,10 +575,10 @@ interface Asset<IDType = ObjectId | string> {
573
575
  gresbId?: string;
574
576
  }
575
577
 
576
- type AutomationSource = 'ftp' | 'email' | 's3';
578
+ type AutomationSource = 'ftp' | 'email' | 's3' | 'manual';
577
579
  type AutomationService = 'accountStatus' | 'autometer' | 'bacnet' | 'beringar' | 'carlogavazzivmuc' | 'carlogavazziuwp' | 'cxgmulticolumn' | 'cxgmultitimecolumn' | 'cxgsinglecolumn' | 'etnsinglecolumn' | 'etnmulticolumn' | 'etnmultitimecolumn' | 'singlecolumn' | 'multicolumn' | 'multitimecolumn' | 'deepki' | '4dmonitoring' | 'crownamr' | 'elogbooks' | 'elveco' | 'elveco2108' | 'gridfetch' | 'imserv' | 'meteruk' | 'mjchurch' | 'msmsolutions' | 'niagaran4' | 'octanise' | 'orsis' | 'schneider' | 'schneideregx' | 'schneidercomx' | 'sentinel' | 'siemens' | 'siemenstem' | 'smartflow' | 'smartvatten' | 'sms' | 'soclean' | 'solarman' | 'solis' | 'sse' | 'stark' | 'synapsys' | 'trendlogs' | 'trio' | 'dataimport';
578
580
  type AutomationServiceCategory = 'system' | 'company' | 'account';
579
- interface Log$2<IDType = ObjectId | string> {
581
+ interface Log$1<IDType = ObjectId | string> {
580
582
  _id: IDType;
581
583
  message: string;
582
584
  timestamp: Date;
@@ -600,7 +602,7 @@ interface Automation<IDType = ObjectId | string> {
600
602
  active: boolean;
601
603
  status?: 'running' | 'pending';
602
604
  lastCollection: LastCollection;
603
- logs: Log$2[];
605
+ logs: Log$1[];
604
606
  data: Record<string, any>;
605
607
  sourceData: Record<string, any>;
606
608
  frequency?: FrequencyType;
@@ -610,34 +612,152 @@ interface Automation<IDType = ObjectId | string> {
610
612
  companyId: IDType;
611
613
  }
612
614
 
613
- interface Log$1 {
614
- date: Date;
615
+ type FormattedConsumption = Omit<Consumption<string, string>, '_id'>;
616
+ type FormattedReading = Omit<Reading<string, string>, '_id'>;
617
+ type FormattedInvoice = Omit<Invoice<string, string>, '_id' | 's3Key'>;
618
+ declare const collectionTypes: readonly ["readings", "consumptions", "invoices"];
619
+ declare const errorCodes: readonly ["ACCOUNT_NOT_FOUND", "INVALID_DATE_FORMAT", "INVALID_TIME_FORMAT", "COLUMN_LIMIT_EXCEEDED", "INVALID_TIMESTAMP", "MISSING_DEVICE_ID", "UNSUPPORTED_UTILITY_TYPE", "VALIDATION_ERROR", "METER_READS_ZERO"];
620
+ interface DLQPayload {
621
+ originalMessage: string;
622
+ account?: Account<string>;
623
+ automation: Automation<string>;
624
+ automationRun: AutomationRun<string>;
625
+ error: {
626
+ message: string;
627
+ stack?: string;
628
+ timestamp: string;
629
+ };
630
+ context: {
631
+ messageId: string;
632
+ processingStage?: string;
633
+ };
634
+ }
635
+ type CollectionType = 'readings' | 'consumptions' | 'invoices';
636
+ interface UploadCsv {
637
+ csvContent: string;
638
+ s3Client?: S3Client;
639
+ automationRun: AutomationRun<string>;
640
+ collectionType: CollectionType;
641
+ orgFilename?: string;
642
+ }
643
+ declare function sendToDLQ({ payload, sqsClient }: {
644
+ payload: Partial<DLQPayload>;
645
+ sqsClient?: SQSClient;
646
+ }): Promise<void>;
647
+ declare function createCsv(data: (FormattedConsumption | FormattedReading | FormattedInvoice)[]): string;
648
+ declare function uploadCsv({ csvContent, automationRun, s3Client, orgFilename, collectionType }: UploadCsv): Promise<string>;
649
+
650
+ type integrations_CollectionType = CollectionType;
651
+ type integrations_DLQPayload = DLQPayload;
652
+ type integrations_FormattedConsumption = FormattedConsumption;
653
+ type integrations_FormattedInvoice = FormattedInvoice;
654
+ type integrations_FormattedReading = FormattedReading;
655
+ declare const integrations_collectionTypes: typeof collectionTypes;
656
+ declare const integrations_createCsv: typeof createCsv;
657
+ declare const integrations_errorCodes: typeof errorCodes;
658
+ declare const integrations_sendToDLQ: typeof sendToDLQ;
659
+ declare const integrations_uploadCsv: typeof uploadCsv;
660
+ declare namespace integrations {
661
+ export { type integrations_CollectionType as CollectionType, type integrations_DLQPayload as DLQPayload, type integrations_FormattedConsumption as FormattedConsumption, type integrations_FormattedInvoice as FormattedInvoice, type integrations_FormattedReading as FormattedReading, integrations_collectionTypes as collectionTypes, integrations_createCsv as createCsv, integrations_errorCodes as errorCodes, integrations_sendToDLQ as sendToDLQ, integrations_uploadCsv as uploadCsv };
662
+ }
663
+
664
+ interface AutomationRunLog<DateType = Date | string> {
665
+ date: DateType;
615
666
  message: string;
616
- status: string;
617
- attachment?: {
618
- s3Bucket: string;
619
- s3Key: string;
620
- filename: string;
667
+ status: 'error' | 'running' | 'success';
668
+ errorMessage?: string;
669
+ lambdaSource?: string;
670
+ lambdaRequestId?: string;
671
+ lambdaLogStreamName?: string;
672
+ lambdaMessageId?: string;
673
+ }
674
+ interface AccountResult<IDType = ObjectId | string, DateType = Date | string> {
675
+ accountId: IDType;
676
+ mpan: string;
677
+ deviceId?: string;
678
+ status: 'success' | 'warning' | 'error' | 'running';
679
+ processedRows?: number;
680
+ failedRows?: number;
681
+ dateRange?: {
682
+ from?: DateType;
683
+ to?: DateType;
621
684
  };
685
+ dataIngested?: number;
686
+ warnings?: {
687
+ code: ProblemCodes;
688
+ message: string;
689
+ row?: number;
690
+ field?: string;
691
+ value?: any;
692
+ expectedFormat?: string;
693
+ }[];
694
+ errors?: {
695
+ code: ProblemCodes;
696
+ message: string;
697
+ row?: number;
698
+ field?: string;
699
+ value?: any;
700
+ expectedFormat?: string;
701
+ }[];
702
+ }
703
+ type ProblemCodes = 'ACCOUNT_NOT_FOUND' | 'INVALID_DATE_FORMAT' | 'INVALID_TIME_FORMAT' | 'COLUMN_LIMIT_EXCEEDED' | 'INVALID_TIMESTAMP' | 'MISSING_DEVICE_ID' | 'UNSUPPORTED_UTILITY_TYPE' | 'VALIDATION_ERROR' | 'METER_READS_ZERO';
704
+ type ProblemDetails = {
705
+ deviceId?: string;
706
+ row?: number;
707
+ column?: string;
708
+ field?: string;
709
+ value?: any;
710
+ expectedFormat?: string;
711
+ };
712
+ interface Problem {
713
+ code: ProblemCodes;
714
+ status?: 'warning' | 'error';
715
+ message: string;
716
+ details?: ProblemDetails;
622
717
  }
623
- interface AutomationRun<IDType = ObjectId | string> {
718
+ interface SourceMetadata {
719
+ fileName: string;
720
+ fileSize: number;
721
+ fileType: string;
722
+ uploadMethod: 'manual' | 'email' | 'ftp' | 's3';
723
+ s3Bucket?: string;
724
+ s3Key?: string;
725
+ }
726
+ interface AutomationRunSummary {
727
+ totalRows?: number;
728
+ processedRows?: number;
729
+ failedRows?: number;
730
+ accountsNotFound?: number;
731
+ accountsFound?: number;
732
+ accountsWithWarnings?: number;
733
+ accountsWithErrors?: number;
734
+ }
735
+ interface AutomationRun<IDType = ObjectId | string, DateType = Date | string> {
624
736
  _id: IDType;
625
- logs: Log$1[];
626
- companyId: IDType;
627
737
  automationId: IDType;
628
- accountIds: IDType[];
629
- status: 'error' | 'completed' | 'running';
630
- context: {
631
- [key: string]: any;
738
+ companyId: IDType;
739
+ active: boolean;
740
+ category: 'dataFetcher' | 'dataExtractor';
741
+ status: 'running' | 'success' | 'failed' | 'completedWithWarnings';
742
+ collectionType?: CollectionType;
743
+ source?: SourceMetadata;
744
+ summary?: AutomationRunSummary;
745
+ accountResults?: AccountResult<IDType, DateType>[];
746
+ logs?: AutomationRunLog<DateType>[];
747
+ problems?: Problem[];
748
+ ingestFile?: {
749
+ s3Bucket: string;
750
+ s3Key: string;
751
+ fileName: string;
632
752
  };
633
753
  }
634
754
 
635
- interface Consumption<IDType = ObjectId | string> {
755
+ interface Consumption<IDType = ObjectId | string, DateType = Date> {
636
756
  _id: IDType;
637
757
  value: number;
638
- startTimestamp: Date;
639
- endTimestamp: Date;
640
- timestamp?: Date;
758
+ startTimestamp: DateType;
759
+ endTimestamp: DateType;
760
+ timestamp?: DateType;
641
761
  s3Key?: string;
642
762
  source?: string;
643
763
  category?: string;
@@ -658,6 +778,8 @@ interface Consumption<IDType = ObjectId | string> {
658
778
  companyId: IDType;
659
779
  metadata?: Record<string, any>;
660
780
  batchCorrectionId?: string;
781
+ createdAt?: DateType;
782
+ updatedAt?: DateType;
661
783
  }
662
784
 
663
785
  interface InvoiceValidationInvoice {
@@ -854,7 +976,7 @@ interface ImportTemplate<IDType = ObjectId | string, SpreadConfig = Record<strin
854
976
  companyId?: IDType;
855
977
  }
856
978
 
857
- interface InvoiceValues {
979
+ interface InvoiceValues<DateType = Date | string> {
858
980
  friendlyInvoiceNumber?: string;
859
981
  friendlySupplierRef?: string;
860
982
  friendlyStartDate?: string;
@@ -886,9 +1008,9 @@ interface InvoiceValues {
886
1008
  friendlyEndRead?: string;
887
1009
  invoiceNumber?: string;
888
1010
  supplierRef?: string;
889
- startDate?: Date;
890
- endDate?: Date;
891
- invoiceDate?: Date;
1011
+ startDate?: DateType;
1012
+ endDate?: DateType;
1013
+ invoiceDate?: DateType;
892
1014
  meterPointNumber?: string;
893
1015
  meterPointNumber2?: string;
894
1016
  meterSerialNumber?: string;
@@ -935,11 +1057,11 @@ interface InvoiceRate {
935
1057
  type InvoiceStatus = 'processing' | 'pending' | 'uploading' | 'queued' | 'captured' | 'error' | 'completed';
936
1058
  type FinancialStatus = 'approved' | 'new' | 'not-approved' | 'paid' | 'sent-for-payment';
937
1059
  type InvoiceRateType = 'unitRate' | 'daily' | 'levy' | 'tax' | 'kva' | 'waterRate' | 'wasteRate' | 'discount';
938
- interface Invoice<IDType = ObjectId | string> {
1060
+ interface Invoice<IDType = ObjectId | string, DateType = Date> {
939
1061
  _id: IDType;
940
1062
  jobId?: string | null;
941
- startTime?: Date;
942
- endTime?: Date | null;
1063
+ startTime?: DateType;
1064
+ endTime?: DateType | null;
943
1065
  s3Key: string;
944
1066
  s3TextractKey?: string | null;
945
1067
  stampedS3Key?: string | null;
@@ -951,7 +1073,7 @@ interface Invoice<IDType = ObjectId | string> {
951
1073
  type?: string | null;
952
1074
  tags?: string[];
953
1075
  manualResults?: Record<string, any>;
954
- values?: InvoiceValues;
1076
+ values?: InvoiceValues<DateType>;
955
1077
  rates?: InvoiceRate[];
956
1078
  detailedResults?: Record<string, any>;
957
1079
  templateVersion?: string | null;
@@ -966,7 +1088,7 @@ interface Invoice<IDType = ObjectId | string> {
966
1088
  assignedTo?: string;
967
1089
  noScrape?: boolean;
968
1090
  scraperInvoiceId?: string;
969
- confirmedAt?: Date | null;
1091
+ confirmedAt?: DateType | null;
970
1092
  confirmedBy?: string | null;
971
1093
  supplierId: IDType;
972
1094
  sisterId?: IDType;
@@ -981,8 +1103,9 @@ interface Invoice<IDType = ObjectId | string> {
981
1103
  validation?: any[];
982
1104
  automationId?: IDType;
983
1105
  ingestS3Key?: string;
984
- updatedAt?: Date;
985
- createdAt?: Date;
1106
+ updatedAt?: DateType;
1107
+ createdAt?: DateType;
1108
+ automationRunId?: IDType;
986
1109
  }
987
1110
 
988
1111
  interface InvoiceCaptureMetadataResult {
@@ -1051,9 +1174,9 @@ interface Log<IDType = ObjectId | string> {
1051
1174
  companyId?: IDType;
1052
1175
  }
1053
1176
 
1054
- interface Reading<IDType = ObjectId | string> {
1177
+ interface Reading<IDType = ObjectId | string, DateType = Date> {
1055
1178
  _id: IDType;
1056
- submittedAt: Date;
1179
+ submittedAt: DateType;
1057
1180
  value: number;
1058
1181
  units: ETNUnit;
1059
1182
  type?: string;
@@ -1078,6 +1201,8 @@ interface Reading<IDType = ObjectId | string> {
1078
1201
  batchCorrectionId?: string;
1079
1202
  metadata?: Record<string, any>;
1080
1203
  automationId?: IDType;
1204
+ createdAt?: DateType;
1205
+ updatedAt?: DateType;
1081
1206
  }
1082
1207
 
1083
1208
  type ReportSource = 'assetGroup' | 'asset' | 'account' | 'accountsByRegister';
@@ -1297,11 +1422,11 @@ declare const _default$4: (auth: AuthOptions, instanceOptions?: CreateAxiosDefau
1297
1422
  updateLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
1298
1423
  createLog: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
1299
1424
  removeLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
1300
- getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
1301
- listReadings: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Reading<string>>>;
1302
- updateReading: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
1303
- createReading: (data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
1304
- removeReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
1425
+ getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string, Date>>;
1426
+ listReadings: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Reading<string, Date>>>;
1427
+ updateReading: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Reading<string, Date>>;
1428
+ createReading: (data: any, options?: AxiosRequestConfig) => Promise<Reading<string, Date>>;
1429
+ removeReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string, Date>>;
1305
1430
  getReadingSchema: (options?: AxiosRequestConfig) => Promise<any>;
1306
1431
  getReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
1307
1432
  listReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Report<string>>>;
@@ -1320,11 +1445,11 @@ declare const _default$4: (auth: AuthOptions, instanceOptions?: CreateAxiosDefau
1320
1445
  createScheduledReport: (data: any, options?: AxiosRequestConfig) => Promise<any>;
1321
1446
  removeScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
1322
1447
  sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
1323
- getInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
1324
- listInvoices: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Invoice<string>>>;
1325
- updateInvoice: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
1326
- createInvoice: (data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
1327
- removeInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
1448
+ getInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string, Date>>;
1449
+ listInvoices: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Invoice<string, Date>>>;
1450
+ updateInvoice: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Invoice<string, Date>>;
1451
+ createInvoice: (data: any, options?: AxiosRequestConfig) => Promise<Invoice<string, Date>>;
1452
+ removeInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string, Date>>;
1328
1453
  getInvoiceSchema: (options?: AxiosRequestConfig) => Promise<any>;
1329
1454
  downloadInvoice: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
1330
1455
  getInvoiceCapture: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
@@ -1356,9 +1481,9 @@ declare const _default$4: (auth: AuthOptions, instanceOptions?: CreateAxiosDefau
1356
1481
  socketDisconnect: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
1357
1482
  listScraperRuns: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<ScraperRun<string>>>;
1358
1483
  updateScraperRun: (id: string, data: any, options?: AxiosRequestConfig) => Promise<ScraperRun<string>>;
1359
- createAutomationRun: (data: any, options?: AxiosRequestConfig) => Promise<AutomationRun<string>>;
1360
- listAutomationRun: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<AutomationRun<string>>>;
1361
- updateAutomationRun: (id: string, data: any, options?: AxiosRequestConfig) => Promise<AutomationRun<string>>;
1484
+ createAutomationRun: (data: any, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string | Date>>;
1485
+ listAutomationRun: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<AutomationRun<string, string | Date>>>;
1486
+ updateAutomationRun: (id: string, data: any, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string | Date>>;
1362
1487
  createAutomationRunLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
1363
1488
  globalSearch: (options?: AxiosRequestConfig) => Promise<any>;
1364
1489
  };
@@ -1432,10 +1557,11 @@ declare const automationServices: {
1432
1557
 
1433
1558
  declare const index$1_automationServices: typeof automationServices;
1434
1559
  declare const index$1_automationSources: typeof automationSources;
1560
+ declare const index$1_getMeterPointNumberBottomLine: typeof getMeterPointNumberBottomLine;
1435
1561
  declare const index$1_utilityTypes: typeof utilityTypes;
1436
1562
  declare const index$1_wasteCategories: typeof wasteCategories;
1437
1563
  declare namespace index$1 {
1438
- export { index$1_automationServices as automationServices, index$1_automationSources as automationSources, units$1 as units, index$1_utilityTypes as utilityTypes, index$1_wasteCategories as wasteCategories };
1564
+ export { index$1_automationServices as automationServices, index$1_automationSources as automationSources, index$1_getMeterPointNumberBottomLine as getMeterPointNumberBottomLine, units$1 as units, index$1_utilityTypes as utilityTypes, index$1_wasteCategories as wasteCategories };
1439
1565
  }
1440
1566
 
1441
1567
  interface ETNModel {
@@ -1527,36 +1653,4 @@ declare namespace index {
1527
1653
  export { index_Prompt as Prompt, type index_PromptInput as PromptInput, type index_PromptOptions as PromptOptions, type index_PromptResponse as PromptResponse };
1528
1654
  }
1529
1655
 
1530
- interface DLQPayload {
1531
- originalMessage: string;
1532
- account: Account<string>;
1533
- automation: Automation<string> | null;
1534
- automationRun: any | null;
1535
- error: {
1536
- message: string;
1537
- stack?: string;
1538
- timestamp: string;
1539
- };
1540
- context: {
1541
- messageId: string;
1542
- processingStage: string;
1543
- };
1544
- metadata: {
1545
- service: string;
1546
- accountName?: string;
1547
- meterPointNumber?: string;
1548
- companyId?: string;
1549
- };
1550
- }
1551
- declare function sendToDLQ({ QueueUrl, payload, dlqClient }: {
1552
- QueueUrl: string;
1553
- payload: Partial<DLQPayload>;
1554
- dlqClient: SQSClient;
1555
- }): Promise<void>;
1556
-
1557
- declare const integrations_sendToDLQ: typeof sendToDLQ;
1558
- declare namespace integrations {
1559
- export { integrations_sendToDLQ as sendToDLQ };
1560
- }
1561
-
1562
- export { type AccessLevel, type Account, type Asset, type Automation, type AutomationRun, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, type Consumption, type CreateScraperRunParams, type DataIngest, type DefaultField, type ETNEvent, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, 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 Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ReportTemplate, type ReportType, type ScraperRun, 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, _default$2 as logger, monitoring, index as openai, reporting, _default as slack, units, index$1 as utils };
1656
+ export { type AccessLevel, type Account, type AccountResult, 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 DataIngest, type DefaultField, type ETNEvent, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, 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 Log, type Problem, type ProblemCodes, type ProblemDetails, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ReportTemplate, type ReportType, type ScraperRun, 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, _default$2 as logger, monitoring, index as openai, reporting, _default as slack, units, index$1 as utils };