@etainabl/nodejs-sdk 1.3.1 → 1.3.2
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 +92 -92
- package/dist/index.d.ts +92 -92
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -646,97 +646,97 @@ interface AuthOptions {
|
|
|
646
646
|
}
|
|
647
647
|
declare const _default$3: (auth: AuthOptions, instanceOptions?: CreateAxiosDefaults) => {
|
|
648
648
|
instance: AxiosInstance;
|
|
649
|
-
getAccount: (id: string, options?: AxiosRequestConfig
|
|
650
|
-
listAccounts: (options?: AxiosRequestConfig
|
|
651
|
-
updateAccount: (id: string, data: any, options?: AxiosRequestConfig
|
|
652
|
-
createAccount: (data: any, options?: AxiosRequestConfig
|
|
653
|
-
removeAccount: (id: string, options?: AxiosRequestConfig
|
|
654
|
-
getAccountSchema: (options?: AxiosRequestConfig
|
|
655
|
-
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig
|
|
656
|
-
getAsset: (id: string, options?: AxiosRequestConfig
|
|
657
|
-
listAssets: (options?: AxiosRequestConfig
|
|
658
|
-
updateAsset: (id: string, data: any, options?: AxiosRequestConfig
|
|
659
|
-
createAsset: (data: any, options?: AxiosRequestConfig
|
|
660
|
-
removeAsset: (id: string, options?: AxiosRequestConfig
|
|
661
|
-
getAssetSchema: (options?: AxiosRequestConfig
|
|
662
|
-
getAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
663
|
-
listAssetGroups: (options?: AxiosRequestConfig
|
|
664
|
-
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig
|
|
665
|
-
createAssetGroup: (data: any, options?: AxiosRequestConfig
|
|
666
|
-
removeAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
667
|
-
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig
|
|
668
|
-
getAssetGroupSchema: (options?: AxiosRequestConfig
|
|
669
|
-
getAutomation: (id: string, options?: AxiosRequestConfig
|
|
670
|
-
listAutomations: (options?: AxiosRequestConfig
|
|
671
|
-
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig
|
|
672
|
-
createAutomation: (data: any, options?: AxiosRequestConfig
|
|
673
|
-
removeAutomation: (id: string, options?: AxiosRequestConfig
|
|
674
|
-
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
675
|
-
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig
|
|
676
|
-
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig
|
|
677
|
-
getCompany: (id: string, options?: AxiosRequestConfig
|
|
678
|
-
getConsumption: (id: string, options?: AxiosRequestConfig
|
|
679
|
-
listConsumptions: (options?: AxiosRequestConfig
|
|
680
|
-
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig
|
|
681
|
-
createConsumption: (data: any, options?: AxiosRequestConfig
|
|
682
|
-
removeConsumption: (id: string, options?: AxiosRequestConfig
|
|
683
|
-
getConsumptionSchema: (options?: AxiosRequestConfig
|
|
684
|
-
getEmail: (id: string, options?: AxiosRequestConfig
|
|
685
|
-
listEmails: (options?: AxiosRequestConfig
|
|
686
|
-
updateEmail: (id: string, data: any, options?: AxiosRequestConfig
|
|
687
|
-
createEmail: (data: any, options?: AxiosRequestConfig
|
|
688
|
-
removeEmail: (id: string, options?: AxiosRequestConfig
|
|
689
|
-
getEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
690
|
-
listEmissionFactors: (options?: AxiosRequestConfig
|
|
691
|
-
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig
|
|
692
|
-
createEmissionFactor: (data: any, options?: AxiosRequestConfig
|
|
693
|
-
removeEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
694
|
-
getEntity: (id: string, options?: AxiosRequestConfig
|
|
695
|
-
listEntities: (options?: AxiosRequestConfig
|
|
696
|
-
updateEntity: (id: string, data: any, options?: AxiosRequestConfig
|
|
697
|
-
createEntity: (data: any, options?: AxiosRequestConfig
|
|
698
|
-
removeEntity: (id: string, options?: AxiosRequestConfig
|
|
699
|
-
getEntitiesSchema: (options?: AxiosRequestConfig
|
|
700
|
-
getLog: (id: string, options?: AxiosRequestConfig
|
|
701
|
-
listLogs: (options?: AxiosRequestConfig
|
|
702
|
-
updateLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
703
|
-
createLog: (data: any, options?: AxiosRequestConfig
|
|
704
|
-
removeLog: (id: string, options?: AxiosRequestConfig
|
|
705
|
-
getReading: (id: string, options?: AxiosRequestConfig
|
|
706
|
-
listReadings: (options?: AxiosRequestConfig
|
|
707
|
-
updateReading: (id: string, data: any, options?: AxiosRequestConfig
|
|
708
|
-
createReading: (data: any, options?: AxiosRequestConfig
|
|
709
|
-
removeReading: (id: string, options?: AxiosRequestConfig
|
|
710
|
-
getReadingSchema: (options?: AxiosRequestConfig
|
|
711
|
-
getReport: (id: string, options?: AxiosRequestConfig
|
|
712
|
-
listReports: (options?: AxiosRequestConfig
|
|
713
|
-
updateReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
714
|
-
createReport: (data: any, options?: AxiosRequestConfig
|
|
715
|
-
removeReport: (id: string, options?: AxiosRequestConfig
|
|
716
|
-
sendReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
717
|
-
getReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
718
|
-
listReportTemplates: (options?: AxiosRequestConfig
|
|
719
|
-
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig
|
|
720
|
-
createReportTemplate: (data: any, options?: AxiosRequestConfig
|
|
721
|
-
removeReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
722
|
-
getScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
723
|
-
listScheduledReports: (options?: AxiosRequestConfig
|
|
724
|
-
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
725
|
-
createScheduledReport: (data: any, options?: AxiosRequestConfig
|
|
726
|
-
removeScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
727
|
-
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
728
|
-
getInvoice: (id: string, options?: AxiosRequestConfig
|
|
729
|
-
listInvoices: (options?: AxiosRequestConfig
|
|
730
|
-
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig
|
|
731
|
-
createInvoice: (data: any, options?: AxiosRequestConfig
|
|
732
|
-
removeInvoice: (id: string, options?: AxiosRequestConfig
|
|
733
|
-
getInvoiceSchema: (options?: AxiosRequestConfig
|
|
734
|
-
listSuppliers: (options?: AxiosRequestConfig
|
|
735
|
-
getSupplierSchema: (options?: AxiosRequestConfig
|
|
736
|
-
getImportTemplate: (id: string, options?: AxiosRequestConfig
|
|
737
|
-
listDataIngest: (options?: AxiosRequestConfig
|
|
738
|
-
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig
|
|
739
|
-
createDataIngest: (data: any, options?: AxiosRequestConfig
|
|
649
|
+
getAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
650
|
+
listAccounts: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Account<string>>>;
|
|
651
|
+
updateAccount: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
652
|
+
createAccount: (data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
653
|
+
removeAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
654
|
+
getAccountSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
655
|
+
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
656
|
+
getAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
657
|
+
listAssets: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Asset<string>>>;
|
|
658
|
+
updateAsset: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
659
|
+
createAsset: (data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
660
|
+
removeAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
661
|
+
getAssetSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
662
|
+
getAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
663
|
+
listAssetGroups: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
664
|
+
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
665
|
+
createAssetGroup: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
666
|
+
removeAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
667
|
+
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
668
|
+
getAssetGroupSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
669
|
+
getAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
670
|
+
listAutomations: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Automation<string>>>;
|
|
671
|
+
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
672
|
+
createAutomation: (data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
673
|
+
removeAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
674
|
+
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
675
|
+
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
676
|
+
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
677
|
+
getCompany: (id: string, options?: AxiosRequestConfig) => Promise<Company<string>>;
|
|
678
|
+
getConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
679
|
+
listConsumptions: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
680
|
+
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
681
|
+
createConsumption: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
682
|
+
removeConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
683
|
+
getConsumptionSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
684
|
+
getEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
685
|
+
listEmails: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
686
|
+
updateEmail: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
687
|
+
createEmail: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
688
|
+
removeEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
689
|
+
getEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
690
|
+
listEmissionFactors: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
691
|
+
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
692
|
+
createEmissionFactor: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
693
|
+
removeEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
694
|
+
getEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
695
|
+
listEntities: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Entity<string>>>;
|
|
696
|
+
updateEntity: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
697
|
+
createEntity: (data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
698
|
+
removeEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
699
|
+
getEntitiesSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
700
|
+
getLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
701
|
+
listLogs: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Log<string>>>;
|
|
702
|
+
updateLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
703
|
+
createLog: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
704
|
+
removeLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
705
|
+
getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
706
|
+
listReadings: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Reading<string>>>;
|
|
707
|
+
updateReading: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
708
|
+
createReading: (data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
709
|
+
removeReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
710
|
+
getReadingSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
711
|
+
getReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
712
|
+
listReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Report<string>>>;
|
|
713
|
+
updateReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
714
|
+
createReport: (data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
715
|
+
removeReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
716
|
+
sendReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
717
|
+
getReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
718
|
+
listReportTemplates: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
719
|
+
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
720
|
+
createReportTemplate: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
721
|
+
removeReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
722
|
+
getScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
723
|
+
listScheduledReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
724
|
+
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
725
|
+
createScheduledReport: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
726
|
+
removeScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
727
|
+
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
728
|
+
getInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
729
|
+
listInvoices: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Invoice<string>>>;
|
|
730
|
+
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
731
|
+
createInvoice: (data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
732
|
+
removeInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
733
|
+
getInvoiceSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
734
|
+
listSuppliers: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Supplier<string>>>;
|
|
735
|
+
getSupplierSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
736
|
+
getImportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
737
|
+
listDataIngest: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<DataIngest<string>>>;
|
|
738
|
+
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
739
|
+
createDataIngest: (data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
740
740
|
};
|
|
741
741
|
|
|
742
742
|
declare const _default$2: (namespace: string) => winston.Logger;
|
|
@@ -767,7 +767,7 @@ declare const accountTypeUnitMap: {
|
|
|
767
767
|
[key: string]: ETNUnit[];
|
|
768
768
|
};
|
|
769
769
|
declare const convertItems: (items: Item[], type: AccountType, defaultUnits: ETNUnit | undefined, accountFactor: number | undefined) => any;
|
|
770
|
-
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number |
|
|
770
|
+
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number | "") => {
|
|
771
771
|
type: AccountType;
|
|
772
772
|
unit: ETNUnit;
|
|
773
773
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -646,97 +646,97 @@ interface AuthOptions {
|
|
|
646
646
|
}
|
|
647
647
|
declare const _default$3: (auth: AuthOptions, instanceOptions?: CreateAxiosDefaults) => {
|
|
648
648
|
instance: AxiosInstance;
|
|
649
|
-
getAccount: (id: string, options?: AxiosRequestConfig
|
|
650
|
-
listAccounts: (options?: AxiosRequestConfig
|
|
651
|
-
updateAccount: (id: string, data: any, options?: AxiosRequestConfig
|
|
652
|
-
createAccount: (data: any, options?: AxiosRequestConfig
|
|
653
|
-
removeAccount: (id: string, options?: AxiosRequestConfig
|
|
654
|
-
getAccountSchema: (options?: AxiosRequestConfig
|
|
655
|
-
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig
|
|
656
|
-
getAsset: (id: string, options?: AxiosRequestConfig
|
|
657
|
-
listAssets: (options?: AxiosRequestConfig
|
|
658
|
-
updateAsset: (id: string, data: any, options?: AxiosRequestConfig
|
|
659
|
-
createAsset: (data: any, options?: AxiosRequestConfig
|
|
660
|
-
removeAsset: (id: string, options?: AxiosRequestConfig
|
|
661
|
-
getAssetSchema: (options?: AxiosRequestConfig
|
|
662
|
-
getAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
663
|
-
listAssetGroups: (options?: AxiosRequestConfig
|
|
664
|
-
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig
|
|
665
|
-
createAssetGroup: (data: any, options?: AxiosRequestConfig
|
|
666
|
-
removeAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
667
|
-
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig
|
|
668
|
-
getAssetGroupSchema: (options?: AxiosRequestConfig
|
|
669
|
-
getAutomation: (id: string, options?: AxiosRequestConfig
|
|
670
|
-
listAutomations: (options?: AxiosRequestConfig
|
|
671
|
-
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig
|
|
672
|
-
createAutomation: (data: any, options?: AxiosRequestConfig
|
|
673
|
-
removeAutomation: (id: string, options?: AxiosRequestConfig
|
|
674
|
-
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
675
|
-
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig
|
|
676
|
-
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig
|
|
677
|
-
getCompany: (id: string, options?: AxiosRequestConfig
|
|
678
|
-
getConsumption: (id: string, options?: AxiosRequestConfig
|
|
679
|
-
listConsumptions: (options?: AxiosRequestConfig
|
|
680
|
-
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig
|
|
681
|
-
createConsumption: (data: any, options?: AxiosRequestConfig
|
|
682
|
-
removeConsumption: (id: string, options?: AxiosRequestConfig
|
|
683
|
-
getConsumptionSchema: (options?: AxiosRequestConfig
|
|
684
|
-
getEmail: (id: string, options?: AxiosRequestConfig
|
|
685
|
-
listEmails: (options?: AxiosRequestConfig
|
|
686
|
-
updateEmail: (id: string, data: any, options?: AxiosRequestConfig
|
|
687
|
-
createEmail: (data: any, options?: AxiosRequestConfig
|
|
688
|
-
removeEmail: (id: string, options?: AxiosRequestConfig
|
|
689
|
-
getEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
690
|
-
listEmissionFactors: (options?: AxiosRequestConfig
|
|
691
|
-
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig
|
|
692
|
-
createEmissionFactor: (data: any, options?: AxiosRequestConfig
|
|
693
|
-
removeEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
694
|
-
getEntity: (id: string, options?: AxiosRequestConfig
|
|
695
|
-
listEntities: (options?: AxiosRequestConfig
|
|
696
|
-
updateEntity: (id: string, data: any, options?: AxiosRequestConfig
|
|
697
|
-
createEntity: (data: any, options?: AxiosRequestConfig
|
|
698
|
-
removeEntity: (id: string, options?: AxiosRequestConfig
|
|
699
|
-
getEntitiesSchema: (options?: AxiosRequestConfig
|
|
700
|
-
getLog: (id: string, options?: AxiosRequestConfig
|
|
701
|
-
listLogs: (options?: AxiosRequestConfig
|
|
702
|
-
updateLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
703
|
-
createLog: (data: any, options?: AxiosRequestConfig
|
|
704
|
-
removeLog: (id: string, options?: AxiosRequestConfig
|
|
705
|
-
getReading: (id: string, options?: AxiosRequestConfig
|
|
706
|
-
listReadings: (options?: AxiosRequestConfig
|
|
707
|
-
updateReading: (id: string, data: any, options?: AxiosRequestConfig
|
|
708
|
-
createReading: (data: any, options?: AxiosRequestConfig
|
|
709
|
-
removeReading: (id: string, options?: AxiosRequestConfig
|
|
710
|
-
getReadingSchema: (options?: AxiosRequestConfig
|
|
711
|
-
getReport: (id: string, options?: AxiosRequestConfig
|
|
712
|
-
listReports: (options?: AxiosRequestConfig
|
|
713
|
-
updateReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
714
|
-
createReport: (data: any, options?: AxiosRequestConfig
|
|
715
|
-
removeReport: (id: string, options?: AxiosRequestConfig
|
|
716
|
-
sendReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
717
|
-
getReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
718
|
-
listReportTemplates: (options?: AxiosRequestConfig
|
|
719
|
-
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig
|
|
720
|
-
createReportTemplate: (data: any, options?: AxiosRequestConfig
|
|
721
|
-
removeReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
722
|
-
getScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
723
|
-
listScheduledReports: (options?: AxiosRequestConfig
|
|
724
|
-
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
725
|
-
createScheduledReport: (data: any, options?: AxiosRequestConfig
|
|
726
|
-
removeScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
727
|
-
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
728
|
-
getInvoice: (id: string, options?: AxiosRequestConfig
|
|
729
|
-
listInvoices: (options?: AxiosRequestConfig
|
|
730
|
-
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig
|
|
731
|
-
createInvoice: (data: any, options?: AxiosRequestConfig
|
|
732
|
-
removeInvoice: (id: string, options?: AxiosRequestConfig
|
|
733
|
-
getInvoiceSchema: (options?: AxiosRequestConfig
|
|
734
|
-
listSuppliers: (options?: AxiosRequestConfig
|
|
735
|
-
getSupplierSchema: (options?: AxiosRequestConfig
|
|
736
|
-
getImportTemplate: (id: string, options?: AxiosRequestConfig
|
|
737
|
-
listDataIngest: (options?: AxiosRequestConfig
|
|
738
|
-
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig
|
|
739
|
-
createDataIngest: (data: any, options?: AxiosRequestConfig
|
|
649
|
+
getAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
650
|
+
listAccounts: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Account<string>>>;
|
|
651
|
+
updateAccount: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
652
|
+
createAccount: (data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
653
|
+
removeAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
654
|
+
getAccountSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
655
|
+
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
656
|
+
getAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
657
|
+
listAssets: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Asset<string>>>;
|
|
658
|
+
updateAsset: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
659
|
+
createAsset: (data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
660
|
+
removeAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
661
|
+
getAssetSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
662
|
+
getAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
663
|
+
listAssetGroups: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
664
|
+
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
665
|
+
createAssetGroup: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
666
|
+
removeAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
667
|
+
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
668
|
+
getAssetGroupSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
669
|
+
getAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
670
|
+
listAutomations: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Automation<string>>>;
|
|
671
|
+
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
672
|
+
createAutomation: (data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
673
|
+
removeAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
674
|
+
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
675
|
+
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
676
|
+
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
677
|
+
getCompany: (id: string, options?: AxiosRequestConfig) => Promise<Company<string>>;
|
|
678
|
+
getConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
679
|
+
listConsumptions: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
680
|
+
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
681
|
+
createConsumption: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
682
|
+
removeConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
683
|
+
getConsumptionSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
684
|
+
getEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
685
|
+
listEmails: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
686
|
+
updateEmail: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
687
|
+
createEmail: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
688
|
+
removeEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
689
|
+
getEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
690
|
+
listEmissionFactors: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
691
|
+
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
692
|
+
createEmissionFactor: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
693
|
+
removeEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
694
|
+
getEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
695
|
+
listEntities: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Entity<string>>>;
|
|
696
|
+
updateEntity: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
697
|
+
createEntity: (data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
698
|
+
removeEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
699
|
+
getEntitiesSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
700
|
+
getLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
701
|
+
listLogs: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Log<string>>>;
|
|
702
|
+
updateLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
703
|
+
createLog: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
704
|
+
removeLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
705
|
+
getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
706
|
+
listReadings: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Reading<string>>>;
|
|
707
|
+
updateReading: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
708
|
+
createReading: (data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
709
|
+
removeReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
710
|
+
getReadingSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
711
|
+
getReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
712
|
+
listReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Report<string>>>;
|
|
713
|
+
updateReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
714
|
+
createReport: (data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
715
|
+
removeReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
716
|
+
sendReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
717
|
+
getReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
718
|
+
listReportTemplates: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
719
|
+
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
720
|
+
createReportTemplate: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
721
|
+
removeReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
722
|
+
getScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
723
|
+
listScheduledReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
724
|
+
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
725
|
+
createScheduledReport: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
726
|
+
removeScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
727
|
+
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
728
|
+
getInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
729
|
+
listInvoices: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Invoice<string>>>;
|
|
730
|
+
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
731
|
+
createInvoice: (data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
732
|
+
removeInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
733
|
+
getInvoiceSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
734
|
+
listSuppliers: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Supplier<string>>>;
|
|
735
|
+
getSupplierSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
736
|
+
getImportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
737
|
+
listDataIngest: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<DataIngest<string>>>;
|
|
738
|
+
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
739
|
+
createDataIngest: (data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
740
740
|
};
|
|
741
741
|
|
|
742
742
|
declare const _default$2: (namespace: string) => winston.Logger;
|
|
@@ -767,7 +767,7 @@ declare const accountTypeUnitMap: {
|
|
|
767
767
|
[key: string]: ETNUnit[];
|
|
768
768
|
};
|
|
769
769
|
declare const convertItems: (items: Item[], type: AccountType, defaultUnits: ETNUnit | undefined, accountFactor: number | undefined) => any;
|
|
770
|
-
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number |
|
|
770
|
+
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number | "") => {
|
|
771
771
|
type: AccountType;
|
|
772
772
|
unit: ETNUnit;
|
|
773
773
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etainabl/nodejs-sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"axios": "^1.8.4",
|
|
32
32
|
"moment": "^2.29.4",
|
|
33
|
-
"mongodb": "^6.
|
|
33
|
+
"mongodb": "^6.15.0",
|
|
34
34
|
"winston": "^3.10.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|