@etainabl/nodejs-sdk 1.3.161 → 1.3.163

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/index.d.cts CHANGED
@@ -808,8 +808,12 @@ interface InvoiceValidationInvoice {
808
808
  supplyAddress: string;
809
809
  utilityType: string;
810
810
  meterId: string;
811
+ supplierMatch: boolean;
812
+ accountMatch: boolean;
813
+ invoiceNumber: string;
811
814
  accountId?: string | null;
812
815
  supplierId?: string | null;
816
+ entityId?: string | null;
813
817
  }
814
818
  interface InvoiceValidationRule<IDType = ObjectId | string> {
815
819
  _id: IDType;
@@ -826,27 +830,31 @@ interface InvoiceValidationRule<IDType = ObjectId | string> {
826
830
  }
827
831
  interface InvoiceValidationResults<IDType = ObjectId | string> {
828
832
  invoiceValidationRuleId: IDType;
833
+ meterId?: string;
829
834
  comment: string;
830
835
  status: 'passed' | 'warning' | 'failed' | 'error';
831
836
  originalStatus: 'passed' | 'warning' | 'failed' | 'error';
832
- meterId?: string;
837
+ forcedStatus?: 'passed' | 'warning' | 'failed';
838
+ forcedBy?: IDType;
833
839
  checkedAt: Date;
834
840
  }
835
841
  interface InvoiceValidation<IDType = ObjectId | string> {
836
842
  _id: IDType;
837
843
  status: 'pending' | 'passed' | 'warning' | 'failed' | 'error';
838
844
  originalStatus: 'pending' | 'passed' | 'warning' | 'failed' | 'error';
839
- results: InvoiceValidationResults<IDType>[];
840
- invoiceCaptureId: IDType;
841
- invoiceResults: InvoiceValidationInvoice[];
845
+ completed: boolean;
846
+ completedAt?: Date | null;
847
+ completedBy?: IDType;
842
848
  assignedUserId?: IDType;
843
- summary?: string;
844
- invoiceIds?: IDType[];
849
+ results?: InvoiceValidationResults<IDType>[] | null;
850
+ invoiceCaptureId: IDType;
851
+ invoiceResults?: InvoiceValidationInvoice[];
852
+ summary?: string | null;
853
+ tags?: string[];
854
+ onHold: boolean;
845
855
  batchId?: string;
846
- accountIdMatches?: object;
847
856
  companyId: IDType;
848
857
  userSub: string;
849
- tags?: string[];
850
858
  }
851
859
 
852
860
  interface SupplierPortals<IDType = ObjectId | string> {
@@ -1515,6 +1523,7 @@ declare const _default$4: (auth: AuthOptions, instanceOptions?: CreateAxiosDefau
1515
1523
  listLogs: <P = Log<string>>(options?: AxiosRequestConfig) => Promise<ETNPagedResponse<P>>;
1516
1524
  updateLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
1517
1525
  createLog: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
1526
+ createLogBulk: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>[]>;
1518
1527
  removeLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
1519
1528
  getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string, Date>>;
1520
1529
  listReadings: <P = Reading<string, Date>>(options?: AxiosRequestConfig) => Promise<ETNPagedResponse<P>>;
package/dist/index.d.ts CHANGED
@@ -808,8 +808,12 @@ interface InvoiceValidationInvoice {
808
808
  supplyAddress: string;
809
809
  utilityType: string;
810
810
  meterId: string;
811
+ supplierMatch: boolean;
812
+ accountMatch: boolean;
813
+ invoiceNumber: string;
811
814
  accountId?: string | null;
812
815
  supplierId?: string | null;
816
+ entityId?: string | null;
813
817
  }
814
818
  interface InvoiceValidationRule<IDType = ObjectId | string> {
815
819
  _id: IDType;
@@ -826,27 +830,31 @@ interface InvoiceValidationRule<IDType = ObjectId | string> {
826
830
  }
827
831
  interface InvoiceValidationResults<IDType = ObjectId | string> {
828
832
  invoiceValidationRuleId: IDType;
833
+ meterId?: string;
829
834
  comment: string;
830
835
  status: 'passed' | 'warning' | 'failed' | 'error';
831
836
  originalStatus: 'passed' | 'warning' | 'failed' | 'error';
832
- meterId?: string;
837
+ forcedStatus?: 'passed' | 'warning' | 'failed';
838
+ forcedBy?: IDType;
833
839
  checkedAt: Date;
834
840
  }
835
841
  interface InvoiceValidation<IDType = ObjectId | string> {
836
842
  _id: IDType;
837
843
  status: 'pending' | 'passed' | 'warning' | 'failed' | 'error';
838
844
  originalStatus: 'pending' | 'passed' | 'warning' | 'failed' | 'error';
839
- results: InvoiceValidationResults<IDType>[];
840
- invoiceCaptureId: IDType;
841
- invoiceResults: InvoiceValidationInvoice[];
845
+ completed: boolean;
846
+ completedAt?: Date | null;
847
+ completedBy?: IDType;
842
848
  assignedUserId?: IDType;
843
- summary?: string;
844
- invoiceIds?: IDType[];
849
+ results?: InvoiceValidationResults<IDType>[] | null;
850
+ invoiceCaptureId: IDType;
851
+ invoiceResults?: InvoiceValidationInvoice[];
852
+ summary?: string | null;
853
+ tags?: string[];
854
+ onHold: boolean;
845
855
  batchId?: string;
846
- accountIdMatches?: object;
847
856
  companyId: IDType;
848
857
  userSub: string;
849
- tags?: string[];
850
858
  }
851
859
 
852
860
  interface SupplierPortals<IDType = ObjectId | string> {
@@ -1515,6 +1523,7 @@ declare const _default$4: (auth: AuthOptions, instanceOptions?: CreateAxiosDefau
1515
1523
  listLogs: <P = Log<string>>(options?: AxiosRequestConfig) => Promise<ETNPagedResponse<P>>;
1516
1524
  updateLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
1517
1525
  createLog: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
1526
+ createLogBulk: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>[]>;
1518
1527
  removeLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
1519
1528
  getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string, Date>>;
1520
1529
  listReadings: <P = Reading<string, Date>>(options?: AxiosRequestConfig) => Promise<ETNPagedResponse<P>>;
package/dist/index.js CHANGED
@@ -16492,6 +16492,7 @@ var api_default = (auth, instanceOptions = {}) => {
16492
16492
  listLogs: factory.list(etainablApi, "logs"),
16493
16493
  updateLog: factory.update(etainablApi, "logs"),
16494
16494
  createLog: factory.create(etainablApi, "logs"),
16495
+ createLogBulk: factory.create(etainablApi, "logs", "bulk"),
16495
16496
  removeLog: factory.remove(etainablApi, "logs"),
16496
16497
  // readings
16497
16498
  getReading: factory.getWithId(etainablApi, "readings"),