@etainabl/nodejs-sdk 1.3.42 → 1.3.44
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 +113 -106
- package/dist/index.d.ts +113 -106
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -25,8 +25,8 @@ declare const accountTypeUnitMap: {
|
|
|
25
25
|
};
|
|
26
26
|
declare const convertItems: (items: Item[], type: AccountType, defaultUnits: ETNUnit | undefined, accountFactor: number | undefined) => any;
|
|
27
27
|
declare const simpleConvert: (value: number, fromUnit: string, toUnit: string) => number;
|
|
28
|
-
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number |
|
|
29
|
-
type:
|
|
28
|
+
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number | "") => {
|
|
29
|
+
type: AccountType;
|
|
30
30
|
unit: ETNUnit;
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -168,6 +168,13 @@ interface Account<IDType = ObjectId | string> {
|
|
|
168
168
|
error?: string;
|
|
169
169
|
uploaded?: boolean;
|
|
170
170
|
};
|
|
171
|
+
gridfetch?: {
|
|
172
|
+
meterDetails?: {};
|
|
173
|
+
lastFetched?: {
|
|
174
|
+
meterDetails?: Date;
|
|
175
|
+
halfHourly?: Date;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
171
178
|
automationIds?: IDType[];
|
|
172
179
|
customIntegrations?: object;
|
|
173
180
|
tags?: string[];
|
|
@@ -778,110 +785,110 @@ interface AuthOptions {
|
|
|
778
785
|
}
|
|
779
786
|
declare const _default$3: (auth: AuthOptions, instanceOptions?: CreateAxiosDefaults) => {
|
|
780
787
|
instance: AxiosInstance;
|
|
781
|
-
getAccount: (id: string, options?: AxiosRequestConfig
|
|
782
|
-
listAccounts: (options?: AxiosRequestConfig
|
|
783
|
-
updateAccount: (id: string, data: any, options?: AxiosRequestConfig
|
|
784
|
-
createAccount: (data: any, options?: AxiosRequestConfig
|
|
785
|
-
removeAccount: (id: string, options?: AxiosRequestConfig
|
|
786
|
-
getAccountSchema: (options?: AxiosRequestConfig
|
|
787
|
-
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig
|
|
788
|
-
getAsset: (id: string, options?: AxiosRequestConfig
|
|
789
|
-
listAssets: (options?: AxiosRequestConfig
|
|
790
|
-
updateAsset: (id: string, data: any, options?: AxiosRequestConfig
|
|
791
|
-
createAsset: (data: any, options?: AxiosRequestConfig
|
|
792
|
-
removeAsset: (id: string, options?: AxiosRequestConfig
|
|
793
|
-
getAssetSchema: (options?: AxiosRequestConfig
|
|
794
|
-
getAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
795
|
-
listAssetGroups: (options?: AxiosRequestConfig
|
|
796
|
-
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig
|
|
797
|
-
createAssetGroup: (data: any, options?: AxiosRequestConfig
|
|
798
|
-
removeAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
799
|
-
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig
|
|
800
|
-
getAssetGroupSchema: (options?: AxiosRequestConfig
|
|
801
|
-
getAutomation: (id: string, options?: AxiosRequestConfig
|
|
802
|
-
listAutomations: (options?: AxiosRequestConfig
|
|
803
|
-
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig
|
|
804
|
-
createAutomation: (data: any, options?: AxiosRequestConfig
|
|
805
|
-
removeAutomation: (id: string, options?: AxiosRequestConfig
|
|
806
|
-
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
807
|
-
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig
|
|
808
|
-
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig
|
|
809
|
-
getCompany: (id: string, options?: AxiosRequestConfig
|
|
810
|
-
getCompanyInvoiceValidationRules: (id: string, options?: AxiosRequestConfig
|
|
811
|
-
getConsumption: (id: string, options?: AxiosRequestConfig
|
|
812
|
-
listConsumptions: (options?: AxiosRequestConfig
|
|
813
|
-
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig
|
|
814
|
-
createConsumption: (data: any, options?: AxiosRequestConfig
|
|
815
|
-
removeConsumption: (id: string, options?: AxiosRequestConfig
|
|
816
|
-
getConsumptionSchema: (options?: AxiosRequestConfig
|
|
817
|
-
getEmail: (id: string, options?: AxiosRequestConfig
|
|
818
|
-
listEmails: (options?: AxiosRequestConfig
|
|
819
|
-
updateEmail: (id: string, data: any, options?: AxiosRequestConfig
|
|
820
|
-
createEmail: (data: any, options?: AxiosRequestConfig
|
|
821
|
-
removeEmail: (id: string, options?: AxiosRequestConfig
|
|
822
|
-
getEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
823
|
-
listEmissionFactors: (options?: AxiosRequestConfig
|
|
824
|
-
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig
|
|
825
|
-
createEmissionFactor: (data: any, options?: AxiosRequestConfig
|
|
826
|
-
removeEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
827
|
-
getEntity: (id: string, options?: AxiosRequestConfig
|
|
828
|
-
listEntities: (options?: AxiosRequestConfig
|
|
829
|
-
updateEntity: (id: string, data: any, options?: AxiosRequestConfig
|
|
830
|
-
createEntity: (data: any, options?: AxiosRequestConfig
|
|
831
|
-
removeEntity: (id: string, options?: AxiosRequestConfig
|
|
832
|
-
getEntitiesSchema: (options?: AxiosRequestConfig
|
|
833
|
-
getLog: (id: string, options?: AxiosRequestConfig
|
|
834
|
-
listLogs: (options?: AxiosRequestConfig
|
|
835
|
-
updateLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
836
|
-
createLog: (data: any, options?: AxiosRequestConfig
|
|
837
|
-
removeLog: (id: string, options?: AxiosRequestConfig
|
|
838
|
-
getReading: (id: string, options?: AxiosRequestConfig
|
|
839
|
-
listReadings: (options?: AxiosRequestConfig
|
|
840
|
-
updateReading: (id: string, data: any, options?: AxiosRequestConfig
|
|
841
|
-
createReading: (data: any, options?: AxiosRequestConfig
|
|
842
|
-
removeReading: (id: string, options?: AxiosRequestConfig
|
|
843
|
-
getReadingSchema: (options?: AxiosRequestConfig
|
|
844
|
-
getReport: (id: string, options?: AxiosRequestConfig
|
|
845
|
-
listReports: (options?: AxiosRequestConfig
|
|
846
|
-
updateReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
847
|
-
createReport: (data: any, options?: AxiosRequestConfig
|
|
848
|
-
removeReport: (id: string, options?: AxiosRequestConfig
|
|
849
|
-
sendReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
850
|
-
getReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
851
|
-
listReportTemplates: (options?: AxiosRequestConfig
|
|
852
|
-
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig
|
|
853
|
-
createReportTemplate: (data: any, options?: AxiosRequestConfig
|
|
854
|
-
removeReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
855
|
-
getScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
856
|
-
listScheduledReports: (options?: AxiosRequestConfig
|
|
857
|
-
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
858
|
-
createScheduledReport: (data: any, options?: AxiosRequestConfig
|
|
859
|
-
removeScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
860
|
-
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
861
|
-
getInvoice: (id: string, options?: AxiosRequestConfig
|
|
862
|
-
listInvoices: (options?: AxiosRequestConfig
|
|
863
|
-
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig
|
|
864
|
-
createInvoice: (data: any, options?: AxiosRequestConfig
|
|
865
|
-
removeInvoice: (id: string, options?: AxiosRequestConfig
|
|
866
|
-
getInvoiceSchema: (options?: AxiosRequestConfig
|
|
867
|
-
getInvoiceCapture: (id: string, options?: AxiosRequestConfig
|
|
868
|
-
listInvoicesCapture: (options?: AxiosRequestConfig
|
|
869
|
-
updateInvoiceCapture: (id: string, data: any, options?: AxiosRequestConfig
|
|
870
|
-
createInvoiceCapture: (data: any, options?: AxiosRequestConfig
|
|
871
|
-
removeInvoiceCapture: (id: string, options?: AxiosRequestConfig
|
|
872
|
-
getInvoiceCaptureSchema: (options?: AxiosRequestConfig
|
|
873
|
-
getInvoiceValidation: (id: string, options?: AxiosRequestConfig
|
|
874
|
-
listInvoicesValidation: (options?: AxiosRequestConfig
|
|
875
|
-
updateInvoiceValidation: (id: string, data: any, options?: AxiosRequestConfig
|
|
876
|
-
createInvoiceValidation: (data: any, options?: AxiosRequestConfig
|
|
877
|
-
removeInvoiceValidation: (id: string, options?: AxiosRequestConfig
|
|
878
|
-
getInvoiceValidationSchema: (options?: AxiosRequestConfig
|
|
879
|
-
listSuppliers: (options?: AxiosRequestConfig
|
|
880
|
-
getSupplierSchema: (options?: AxiosRequestConfig
|
|
881
|
-
getImportTemplate: (id: string, options?: AxiosRequestConfig
|
|
882
|
-
listDataIngest: (options?: AxiosRequestConfig
|
|
883
|
-
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig
|
|
884
|
-
createDataIngest: (data: any, options?: AxiosRequestConfig
|
|
788
|
+
getAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
789
|
+
listAccounts: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Account<string>>>;
|
|
790
|
+
updateAccount: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
791
|
+
createAccount: (data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
792
|
+
removeAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
793
|
+
getAccountSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
794
|
+
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
795
|
+
getAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
796
|
+
listAssets: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Asset<string>>>;
|
|
797
|
+
updateAsset: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
798
|
+
createAsset: (data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
799
|
+
removeAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
800
|
+
getAssetSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
801
|
+
getAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
802
|
+
listAssetGroups: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
803
|
+
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
804
|
+
createAssetGroup: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
805
|
+
removeAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
806
|
+
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
807
|
+
getAssetGroupSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
808
|
+
getAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
809
|
+
listAutomations: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Automation<string>>>;
|
|
810
|
+
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
811
|
+
createAutomation: (data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
812
|
+
removeAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
813
|
+
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
814
|
+
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
815
|
+
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
816
|
+
getCompany: (id: string, options?: AxiosRequestConfig) => Promise<Company<string>>;
|
|
817
|
+
getCompanyInvoiceValidationRules: (id: string, options?: AxiosRequestConfig) => Promise<CompanyInvoiceValidationRule<string>[]>;
|
|
818
|
+
getConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
819
|
+
listConsumptions: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
820
|
+
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
821
|
+
createConsumption: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
822
|
+
removeConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
823
|
+
getConsumptionSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
824
|
+
getEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
825
|
+
listEmails: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
826
|
+
updateEmail: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
827
|
+
createEmail: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
828
|
+
removeEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
829
|
+
getEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
830
|
+
listEmissionFactors: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
831
|
+
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
832
|
+
createEmissionFactor: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
833
|
+
removeEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
834
|
+
getEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
835
|
+
listEntities: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Entity<string>>>;
|
|
836
|
+
updateEntity: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
837
|
+
createEntity: (data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
838
|
+
removeEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
839
|
+
getEntitiesSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
840
|
+
getLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
841
|
+
listLogs: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Log<string>>>;
|
|
842
|
+
updateLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
843
|
+
createLog: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
844
|
+
removeLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
845
|
+
getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
846
|
+
listReadings: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Reading<string>>>;
|
|
847
|
+
updateReading: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
848
|
+
createReading: (data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
849
|
+
removeReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
850
|
+
getReadingSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
851
|
+
getReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
852
|
+
listReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Report<string>>>;
|
|
853
|
+
updateReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
854
|
+
createReport: (data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
855
|
+
removeReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
856
|
+
sendReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
857
|
+
getReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
858
|
+
listReportTemplates: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
859
|
+
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
860
|
+
createReportTemplate: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
861
|
+
removeReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
862
|
+
getScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
863
|
+
listScheduledReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
864
|
+
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
865
|
+
createScheduledReport: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
866
|
+
removeScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
867
|
+
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
868
|
+
getInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
869
|
+
listInvoices: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Invoice<string>>>;
|
|
870
|
+
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
871
|
+
createInvoice: (data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
872
|
+
removeInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
873
|
+
getInvoiceSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
874
|
+
getInvoiceCapture: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
875
|
+
listInvoicesCapture: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<InvoiceCapture<string>>>;
|
|
876
|
+
updateInvoiceCapture: (id: string, data: any, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
877
|
+
createInvoiceCapture: (data: any, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
878
|
+
removeInvoiceCapture: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
879
|
+
getInvoiceCaptureSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
880
|
+
getInvoiceValidation: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
881
|
+
listInvoicesValidation: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<InvoiceValidation<string>>>;
|
|
882
|
+
updateInvoiceValidation: (id: string, data: any, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
883
|
+
createInvoiceValidation: (data: any, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
884
|
+
removeInvoiceValidation: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
885
|
+
getInvoiceValidationSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
886
|
+
listSuppliers: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Supplier<string>>>;
|
|
887
|
+
getSupplierSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
888
|
+
getImportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
889
|
+
listDataIngest: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<DataIngest<string>>>;
|
|
890
|
+
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
891
|
+
createDataIngest: (data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
885
892
|
};
|
|
886
893
|
|
|
887
894
|
declare const _default$2: (namespace: string) => winston.Logger;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,8 +25,8 @@ declare const accountTypeUnitMap: {
|
|
|
25
25
|
};
|
|
26
26
|
declare const convertItems: (items: Item[], type: AccountType, defaultUnits: ETNUnit | undefined, accountFactor: number | undefined) => any;
|
|
27
27
|
declare const simpleConvert: (value: number, fromUnit: string, toUnit: string) => number;
|
|
28
|
-
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number |
|
|
29
|
-
type:
|
|
28
|
+
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number | "") => {
|
|
29
|
+
type: AccountType;
|
|
30
30
|
unit: ETNUnit;
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -168,6 +168,13 @@ interface Account<IDType = ObjectId | string> {
|
|
|
168
168
|
error?: string;
|
|
169
169
|
uploaded?: boolean;
|
|
170
170
|
};
|
|
171
|
+
gridfetch?: {
|
|
172
|
+
meterDetails?: {};
|
|
173
|
+
lastFetched?: {
|
|
174
|
+
meterDetails?: Date;
|
|
175
|
+
halfHourly?: Date;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
171
178
|
automationIds?: IDType[];
|
|
172
179
|
customIntegrations?: object;
|
|
173
180
|
tags?: string[];
|
|
@@ -778,110 +785,110 @@ interface AuthOptions {
|
|
|
778
785
|
}
|
|
779
786
|
declare const _default$3: (auth: AuthOptions, instanceOptions?: CreateAxiosDefaults) => {
|
|
780
787
|
instance: AxiosInstance;
|
|
781
|
-
getAccount: (id: string, options?: AxiosRequestConfig
|
|
782
|
-
listAccounts: (options?: AxiosRequestConfig
|
|
783
|
-
updateAccount: (id: string, data: any, options?: AxiosRequestConfig
|
|
784
|
-
createAccount: (data: any, options?: AxiosRequestConfig
|
|
785
|
-
removeAccount: (id: string, options?: AxiosRequestConfig
|
|
786
|
-
getAccountSchema: (options?: AxiosRequestConfig
|
|
787
|
-
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig
|
|
788
|
-
getAsset: (id: string, options?: AxiosRequestConfig
|
|
789
|
-
listAssets: (options?: AxiosRequestConfig
|
|
790
|
-
updateAsset: (id: string, data: any, options?: AxiosRequestConfig
|
|
791
|
-
createAsset: (data: any, options?: AxiosRequestConfig
|
|
792
|
-
removeAsset: (id: string, options?: AxiosRequestConfig
|
|
793
|
-
getAssetSchema: (options?: AxiosRequestConfig
|
|
794
|
-
getAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
795
|
-
listAssetGroups: (options?: AxiosRequestConfig
|
|
796
|
-
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig
|
|
797
|
-
createAssetGroup: (data: any, options?: AxiosRequestConfig
|
|
798
|
-
removeAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
799
|
-
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig
|
|
800
|
-
getAssetGroupSchema: (options?: AxiosRequestConfig
|
|
801
|
-
getAutomation: (id: string, options?: AxiosRequestConfig
|
|
802
|
-
listAutomations: (options?: AxiosRequestConfig
|
|
803
|
-
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig
|
|
804
|
-
createAutomation: (data: any, options?: AxiosRequestConfig
|
|
805
|
-
removeAutomation: (id: string, options?: AxiosRequestConfig
|
|
806
|
-
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
807
|
-
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig
|
|
808
|
-
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig
|
|
809
|
-
getCompany: (id: string, options?: AxiosRequestConfig
|
|
810
|
-
getCompanyInvoiceValidationRules: (id: string, options?: AxiosRequestConfig
|
|
811
|
-
getConsumption: (id: string, options?: AxiosRequestConfig
|
|
812
|
-
listConsumptions: (options?: AxiosRequestConfig
|
|
813
|
-
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig
|
|
814
|
-
createConsumption: (data: any, options?: AxiosRequestConfig
|
|
815
|
-
removeConsumption: (id: string, options?: AxiosRequestConfig
|
|
816
|
-
getConsumptionSchema: (options?: AxiosRequestConfig
|
|
817
|
-
getEmail: (id: string, options?: AxiosRequestConfig
|
|
818
|
-
listEmails: (options?: AxiosRequestConfig
|
|
819
|
-
updateEmail: (id: string, data: any, options?: AxiosRequestConfig
|
|
820
|
-
createEmail: (data: any, options?: AxiosRequestConfig
|
|
821
|
-
removeEmail: (id: string, options?: AxiosRequestConfig
|
|
822
|
-
getEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
823
|
-
listEmissionFactors: (options?: AxiosRequestConfig
|
|
824
|
-
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig
|
|
825
|
-
createEmissionFactor: (data: any, options?: AxiosRequestConfig
|
|
826
|
-
removeEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
827
|
-
getEntity: (id: string, options?: AxiosRequestConfig
|
|
828
|
-
listEntities: (options?: AxiosRequestConfig
|
|
829
|
-
updateEntity: (id: string, data: any, options?: AxiosRequestConfig
|
|
830
|
-
createEntity: (data: any, options?: AxiosRequestConfig
|
|
831
|
-
removeEntity: (id: string, options?: AxiosRequestConfig
|
|
832
|
-
getEntitiesSchema: (options?: AxiosRequestConfig
|
|
833
|
-
getLog: (id: string, options?: AxiosRequestConfig
|
|
834
|
-
listLogs: (options?: AxiosRequestConfig
|
|
835
|
-
updateLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
836
|
-
createLog: (data: any, options?: AxiosRequestConfig
|
|
837
|
-
removeLog: (id: string, options?: AxiosRequestConfig
|
|
838
|
-
getReading: (id: string, options?: AxiosRequestConfig
|
|
839
|
-
listReadings: (options?: AxiosRequestConfig
|
|
840
|
-
updateReading: (id: string, data: any, options?: AxiosRequestConfig
|
|
841
|
-
createReading: (data: any, options?: AxiosRequestConfig
|
|
842
|
-
removeReading: (id: string, options?: AxiosRequestConfig
|
|
843
|
-
getReadingSchema: (options?: AxiosRequestConfig
|
|
844
|
-
getReport: (id: string, options?: AxiosRequestConfig
|
|
845
|
-
listReports: (options?: AxiosRequestConfig
|
|
846
|
-
updateReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
847
|
-
createReport: (data: any, options?: AxiosRequestConfig
|
|
848
|
-
removeReport: (id: string, options?: AxiosRequestConfig
|
|
849
|
-
sendReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
850
|
-
getReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
851
|
-
listReportTemplates: (options?: AxiosRequestConfig
|
|
852
|
-
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig
|
|
853
|
-
createReportTemplate: (data: any, options?: AxiosRequestConfig
|
|
854
|
-
removeReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
855
|
-
getScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
856
|
-
listScheduledReports: (options?: AxiosRequestConfig
|
|
857
|
-
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
858
|
-
createScheduledReport: (data: any, options?: AxiosRequestConfig
|
|
859
|
-
removeScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
860
|
-
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
861
|
-
getInvoice: (id: string, options?: AxiosRequestConfig
|
|
862
|
-
listInvoices: (options?: AxiosRequestConfig
|
|
863
|
-
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig
|
|
864
|
-
createInvoice: (data: any, options?: AxiosRequestConfig
|
|
865
|
-
removeInvoice: (id: string, options?: AxiosRequestConfig
|
|
866
|
-
getInvoiceSchema: (options?: AxiosRequestConfig
|
|
867
|
-
getInvoiceCapture: (id: string, options?: AxiosRequestConfig
|
|
868
|
-
listInvoicesCapture: (options?: AxiosRequestConfig
|
|
869
|
-
updateInvoiceCapture: (id: string, data: any, options?: AxiosRequestConfig
|
|
870
|
-
createInvoiceCapture: (data: any, options?: AxiosRequestConfig
|
|
871
|
-
removeInvoiceCapture: (id: string, options?: AxiosRequestConfig
|
|
872
|
-
getInvoiceCaptureSchema: (options?: AxiosRequestConfig
|
|
873
|
-
getInvoiceValidation: (id: string, options?: AxiosRequestConfig
|
|
874
|
-
listInvoicesValidation: (options?: AxiosRequestConfig
|
|
875
|
-
updateInvoiceValidation: (id: string, data: any, options?: AxiosRequestConfig
|
|
876
|
-
createInvoiceValidation: (data: any, options?: AxiosRequestConfig
|
|
877
|
-
removeInvoiceValidation: (id: string, options?: AxiosRequestConfig
|
|
878
|
-
getInvoiceValidationSchema: (options?: AxiosRequestConfig
|
|
879
|
-
listSuppliers: (options?: AxiosRequestConfig
|
|
880
|
-
getSupplierSchema: (options?: AxiosRequestConfig
|
|
881
|
-
getImportTemplate: (id: string, options?: AxiosRequestConfig
|
|
882
|
-
listDataIngest: (options?: AxiosRequestConfig
|
|
883
|
-
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig
|
|
884
|
-
createDataIngest: (data: any, options?: AxiosRequestConfig
|
|
788
|
+
getAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
789
|
+
listAccounts: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Account<string>>>;
|
|
790
|
+
updateAccount: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
791
|
+
createAccount: (data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
792
|
+
removeAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
793
|
+
getAccountSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
794
|
+
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
795
|
+
getAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
796
|
+
listAssets: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Asset<string>>>;
|
|
797
|
+
updateAsset: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
798
|
+
createAsset: (data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
799
|
+
removeAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
800
|
+
getAssetSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
801
|
+
getAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
802
|
+
listAssetGroups: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
803
|
+
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
804
|
+
createAssetGroup: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
805
|
+
removeAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
806
|
+
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
807
|
+
getAssetGroupSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
808
|
+
getAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
809
|
+
listAutomations: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Automation<string>>>;
|
|
810
|
+
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
811
|
+
createAutomation: (data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
812
|
+
removeAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
813
|
+
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
814
|
+
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
815
|
+
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
816
|
+
getCompany: (id: string, options?: AxiosRequestConfig) => Promise<Company<string>>;
|
|
817
|
+
getCompanyInvoiceValidationRules: (id: string, options?: AxiosRequestConfig) => Promise<CompanyInvoiceValidationRule<string>[]>;
|
|
818
|
+
getConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
819
|
+
listConsumptions: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
820
|
+
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
821
|
+
createConsumption: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
822
|
+
removeConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
823
|
+
getConsumptionSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
824
|
+
getEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
825
|
+
listEmails: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
826
|
+
updateEmail: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
827
|
+
createEmail: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
828
|
+
removeEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
829
|
+
getEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
830
|
+
listEmissionFactors: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
831
|
+
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
832
|
+
createEmissionFactor: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
833
|
+
removeEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
834
|
+
getEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
835
|
+
listEntities: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Entity<string>>>;
|
|
836
|
+
updateEntity: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
837
|
+
createEntity: (data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
838
|
+
removeEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
839
|
+
getEntitiesSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
840
|
+
getLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
841
|
+
listLogs: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Log<string>>>;
|
|
842
|
+
updateLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
843
|
+
createLog: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
844
|
+
removeLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
845
|
+
getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
846
|
+
listReadings: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Reading<string>>>;
|
|
847
|
+
updateReading: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
848
|
+
createReading: (data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
849
|
+
removeReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
850
|
+
getReadingSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
851
|
+
getReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
852
|
+
listReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Report<string>>>;
|
|
853
|
+
updateReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
854
|
+
createReport: (data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
855
|
+
removeReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
856
|
+
sendReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
857
|
+
getReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
858
|
+
listReportTemplates: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
859
|
+
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
860
|
+
createReportTemplate: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
861
|
+
removeReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
862
|
+
getScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
863
|
+
listScheduledReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
864
|
+
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
865
|
+
createScheduledReport: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
866
|
+
removeScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
867
|
+
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
868
|
+
getInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
869
|
+
listInvoices: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Invoice<string>>>;
|
|
870
|
+
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
871
|
+
createInvoice: (data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
872
|
+
removeInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
873
|
+
getInvoiceSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
874
|
+
getInvoiceCapture: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
875
|
+
listInvoicesCapture: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<InvoiceCapture<string>>>;
|
|
876
|
+
updateInvoiceCapture: (id: string, data: any, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
877
|
+
createInvoiceCapture: (data: any, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
878
|
+
removeInvoiceCapture: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
879
|
+
getInvoiceCaptureSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
880
|
+
getInvoiceValidation: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
881
|
+
listInvoicesValidation: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<InvoiceValidation<string>>>;
|
|
882
|
+
updateInvoiceValidation: (id: string, data: any, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
883
|
+
createInvoiceValidation: (data: any, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
884
|
+
removeInvoiceValidation: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
885
|
+
getInvoiceValidationSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
886
|
+
listSuppliers: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Supplier<string>>>;
|
|
887
|
+
getSupplierSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
888
|
+
getImportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
889
|
+
listDataIngest: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<DataIngest<string>>>;
|
|
890
|
+
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
891
|
+
createDataIngest: (data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
885
892
|
};
|
|
886
893
|
|
|
887
894
|
declare const _default$2: (namespace: string) => winston.Logger;
|