@etainabl/nodejs-sdk 1.3.36 → 1.3.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +15 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +119 -108
- package/dist/index.d.ts +119 -108
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ declare const accountTypeUnitMap: {
|
|
|
24
24
|
[key: string]: ETNUnit[];
|
|
25
25
|
};
|
|
26
26
|
declare const convertItems: (items: Item[], type: AccountType, defaultUnits: ETNUnit | undefined, accountFactor: number | undefined) => any;
|
|
27
|
-
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number |
|
|
28
|
-
type:
|
|
27
|
+
declare const checkAccountTypeVsUnits: (type: string, unit: string, additionalLog?: number | "") => {
|
|
28
|
+
type: AccountType;
|
|
29
29
|
unit: ETNUnit;
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -55,6 +55,8 @@ interface StatusHistory {
|
|
|
55
55
|
notes?: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
type WasteCategories = 'General Waste' | 'Food' | 'Mixed Recyclables' | 'WEEE' | 'Batteries' | 'Confi. Shredding' | 'General bulky' | 'Glass' | 'Other';
|
|
59
|
+
type WasteTypes = 'EfW' | 'Compost' | 'Recyclable' | 'N/A';
|
|
58
60
|
interface PortalAccountSchema extends Portal {
|
|
59
61
|
invoiceFilenames: any[];
|
|
60
62
|
}
|
|
@@ -357,6 +359,7 @@ interface InvoiceValidationResults<IDType = ObjectId | string> {
|
|
|
357
359
|
invoiceValidationRuleId: IDType;
|
|
358
360
|
comment: string;
|
|
359
361
|
status: 'passed' | 'warning' | 'failed' | 'error';
|
|
362
|
+
overrideStatus?: 'passed' | 'warning' | 'failed' | 'error';
|
|
360
363
|
checkedAt: Date;
|
|
361
364
|
}
|
|
362
365
|
interface InvoiceValidation<IDType = ObjectId | string> {
|
|
@@ -366,6 +369,7 @@ interface InvoiceValidation<IDType = ObjectId | string> {
|
|
|
366
369
|
invoiceCaptureId: IDType;
|
|
367
370
|
invoiceId?: IDType;
|
|
368
371
|
batchId?: string;
|
|
372
|
+
accountIdMatches?: object;
|
|
369
373
|
companyId: IDType;
|
|
370
374
|
userSub: string;
|
|
371
375
|
}
|
|
@@ -618,6 +622,7 @@ interface InvoiceCapture<IDType = ObjectId | string> {
|
|
|
618
622
|
startTime?: Date;
|
|
619
623
|
endTime?: Date | null;
|
|
620
624
|
s3Key: string;
|
|
625
|
+
assignedUserId?: string;
|
|
621
626
|
batchId: string;
|
|
622
627
|
textractJobId?: string;
|
|
623
628
|
textractJobStatus?: string;
|
|
@@ -762,110 +767,110 @@ interface AuthOptions {
|
|
|
762
767
|
}
|
|
763
768
|
declare const _default$3: (auth: AuthOptions, instanceOptions?: CreateAxiosDefaults) => {
|
|
764
769
|
instance: AxiosInstance;
|
|
765
|
-
getAccount: (id: string, options?: AxiosRequestConfig
|
|
766
|
-
listAccounts: (options?: AxiosRequestConfig
|
|
767
|
-
updateAccount: (id: string, data: any, options?: AxiosRequestConfig
|
|
768
|
-
createAccount: (data: any, options?: AxiosRequestConfig
|
|
769
|
-
removeAccount: (id: string, options?: AxiosRequestConfig
|
|
770
|
-
getAccountSchema: (options?: AxiosRequestConfig
|
|
771
|
-
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig
|
|
772
|
-
getAsset: (id: string, options?: AxiosRequestConfig
|
|
773
|
-
listAssets: (options?: AxiosRequestConfig
|
|
774
|
-
updateAsset: (id: string, data: any, options?: AxiosRequestConfig
|
|
775
|
-
createAsset: (data: any, options?: AxiosRequestConfig
|
|
776
|
-
removeAsset: (id: string, options?: AxiosRequestConfig
|
|
777
|
-
getAssetSchema: (options?: AxiosRequestConfig
|
|
778
|
-
getAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
779
|
-
listAssetGroups: (options?: AxiosRequestConfig
|
|
780
|
-
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig
|
|
781
|
-
createAssetGroup: (data: any, options?: AxiosRequestConfig
|
|
782
|
-
removeAssetGroup: (id: string, options?: AxiosRequestConfig
|
|
783
|
-
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig
|
|
784
|
-
getAssetGroupSchema: (options?: AxiosRequestConfig
|
|
785
|
-
getAutomation: (id: string, options?: AxiosRequestConfig
|
|
786
|
-
listAutomations: (options?: AxiosRequestConfig
|
|
787
|
-
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig
|
|
788
|
-
createAutomation: (data: any, options?: AxiosRequestConfig
|
|
789
|
-
removeAutomation: (id: string, options?: AxiosRequestConfig
|
|
790
|
-
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
791
|
-
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig
|
|
792
|
-
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig
|
|
793
|
-
getCompany: (id: string, options?: AxiosRequestConfig
|
|
794
|
-
getCompanyInvoiceValidationRules: (id: string, options?: AxiosRequestConfig
|
|
795
|
-
getConsumption: (id: string, options?: AxiosRequestConfig
|
|
796
|
-
listConsumptions: (options?: AxiosRequestConfig
|
|
797
|
-
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig
|
|
798
|
-
createConsumption: (data: any, options?: AxiosRequestConfig
|
|
799
|
-
removeConsumption: (id: string, options?: AxiosRequestConfig
|
|
800
|
-
getConsumptionSchema: (options?: AxiosRequestConfig
|
|
801
|
-
getEmail: (id: string, options?: AxiosRequestConfig
|
|
802
|
-
listEmails: (options?: AxiosRequestConfig
|
|
803
|
-
updateEmail: (id: string, data: any, options?: AxiosRequestConfig
|
|
804
|
-
createEmail: (data: any, options?: AxiosRequestConfig
|
|
805
|
-
removeEmail: (id: string, options?: AxiosRequestConfig
|
|
806
|
-
getEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
807
|
-
listEmissionFactors: (options?: AxiosRequestConfig
|
|
808
|
-
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig
|
|
809
|
-
createEmissionFactor: (data: any, options?: AxiosRequestConfig
|
|
810
|
-
removeEmissionFactor: (id: string, options?: AxiosRequestConfig
|
|
811
|
-
getEntity: (id: string, options?: AxiosRequestConfig
|
|
812
|
-
listEntities: (options?: AxiosRequestConfig
|
|
813
|
-
updateEntity: (id: string, data: any, options?: AxiosRequestConfig
|
|
814
|
-
createEntity: (data: any, options?: AxiosRequestConfig
|
|
815
|
-
removeEntity: (id: string, options?: AxiosRequestConfig
|
|
816
|
-
getEntitiesSchema: (options?: AxiosRequestConfig
|
|
817
|
-
getLog: (id: string, options?: AxiosRequestConfig
|
|
818
|
-
listLogs: (options?: AxiosRequestConfig
|
|
819
|
-
updateLog: (id: string, data: any, options?: AxiosRequestConfig
|
|
820
|
-
createLog: (data: any, options?: AxiosRequestConfig
|
|
821
|
-
removeLog: (id: string, options?: AxiosRequestConfig
|
|
822
|
-
getReading: (id: string, options?: AxiosRequestConfig
|
|
823
|
-
listReadings: (options?: AxiosRequestConfig
|
|
824
|
-
updateReading: (id: string, data: any, options?: AxiosRequestConfig
|
|
825
|
-
createReading: (data: any, options?: AxiosRequestConfig
|
|
826
|
-
removeReading: (id: string, options?: AxiosRequestConfig
|
|
827
|
-
getReadingSchema: (options?: AxiosRequestConfig
|
|
828
|
-
getReport: (id: string, options?: AxiosRequestConfig
|
|
829
|
-
listReports: (options?: AxiosRequestConfig
|
|
830
|
-
updateReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
831
|
-
createReport: (data: any, options?: AxiosRequestConfig
|
|
832
|
-
removeReport: (id: string, options?: AxiosRequestConfig
|
|
833
|
-
sendReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
834
|
-
getReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
835
|
-
listReportTemplates: (options?: AxiosRequestConfig
|
|
836
|
-
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig
|
|
837
|
-
createReportTemplate: (data: any, options?: AxiosRequestConfig
|
|
838
|
-
removeReportTemplate: (id: string, options?: AxiosRequestConfig
|
|
839
|
-
getScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
840
|
-
listScheduledReports: (options?: AxiosRequestConfig
|
|
841
|
-
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
842
|
-
createScheduledReport: (data: any, options?: AxiosRequestConfig
|
|
843
|
-
removeScheduledReport: (id: string, options?: AxiosRequestConfig
|
|
844
|
-
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig
|
|
845
|
-
getInvoice: (id: string, options?: AxiosRequestConfig
|
|
846
|
-
listInvoices: (options?: AxiosRequestConfig
|
|
847
|
-
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig
|
|
848
|
-
createInvoice: (data: any, options?: AxiosRequestConfig
|
|
849
|
-
removeInvoice: (id: string, options?: AxiosRequestConfig
|
|
850
|
-
getInvoiceSchema: (options?: AxiosRequestConfig
|
|
851
|
-
getInvoiceCapture: (id: string, options?: AxiosRequestConfig
|
|
852
|
-
listInvoicesCapture: (options?: AxiosRequestConfig
|
|
853
|
-
updateInvoiceCapture: (id: string, data: any, options?: AxiosRequestConfig
|
|
854
|
-
createInvoiceCapture: (data: any, options?: AxiosRequestConfig
|
|
855
|
-
removeInvoiceCapture: (id: string, options?: AxiosRequestConfig
|
|
856
|
-
getInvoiceCaptureSchema: (options?: AxiosRequestConfig
|
|
857
|
-
getInvoiceValidation: (id: string, options?: AxiosRequestConfig
|
|
858
|
-
listInvoicesValidation: (options?: AxiosRequestConfig
|
|
859
|
-
updateInvoiceValidation: (id: string, data: any, options?: AxiosRequestConfig
|
|
860
|
-
createInvoiceValidation: (data: any, options?: AxiosRequestConfig
|
|
861
|
-
removeInvoiceValidation: (id: string, options?: AxiosRequestConfig
|
|
862
|
-
getInvoiceValidationSchema: (options?: AxiosRequestConfig
|
|
863
|
-
listSuppliers: (options?: AxiosRequestConfig
|
|
864
|
-
getSupplierSchema: (options?: AxiosRequestConfig
|
|
865
|
-
getImportTemplate: (id: string, options?: AxiosRequestConfig
|
|
866
|
-
listDataIngest: (options?: AxiosRequestConfig
|
|
867
|
-
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig
|
|
868
|
-
createDataIngest: (data: any, options?: AxiosRequestConfig
|
|
770
|
+
getAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
771
|
+
listAccounts: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Account<string>>>;
|
|
772
|
+
updateAccount: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
773
|
+
createAccount: (data: any, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
774
|
+
removeAccount: (id: string, options?: AxiosRequestConfig) => Promise<Account<string>>;
|
|
775
|
+
getAccountSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
776
|
+
invalidateAccountCache: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
777
|
+
getAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
778
|
+
listAssets: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Asset<string>>>;
|
|
779
|
+
updateAsset: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
780
|
+
createAsset: (data: any, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
781
|
+
removeAsset: (id: string, options?: AxiosRequestConfig) => Promise<Asset<string>>;
|
|
782
|
+
getAssetSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
783
|
+
getAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
784
|
+
listAssetGroups: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
785
|
+
updateAssetGroup: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
786
|
+
createAssetGroup: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
787
|
+
removeAssetGroup: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
788
|
+
getAssetGroupAssets: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
789
|
+
getAssetGroupSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
790
|
+
getAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
791
|
+
listAutomations: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Automation<string>>>;
|
|
792
|
+
updateAutomation: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
793
|
+
createAutomation: (data: any, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
794
|
+
removeAutomation: (id: string, options?: AxiosRequestConfig) => Promise<Automation<string>>;
|
|
795
|
+
createAutomationLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
796
|
+
updateAutomationLog: (id: string, subId: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
797
|
+
removeAutomationLog: (id: string, subId: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
798
|
+
getCompany: (id: string, options?: AxiosRequestConfig) => Promise<Company<string>>;
|
|
799
|
+
getCompanyInvoiceValidationRules: (id: string, options?: AxiosRequestConfig) => Promise<CompanyInvoiceValidationRule<string>[]>;
|
|
800
|
+
getConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
801
|
+
listConsumptions: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
802
|
+
updateConsumption: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
803
|
+
createConsumption: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
804
|
+
removeConsumption: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
805
|
+
getConsumptionSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
806
|
+
getEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
807
|
+
listEmails: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
808
|
+
updateEmail: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
809
|
+
createEmail: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
810
|
+
removeEmail: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
811
|
+
getEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
812
|
+
listEmissionFactors: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
813
|
+
updateEmissionFactor: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
814
|
+
createEmissionFactor: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
815
|
+
removeEmissionFactor: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
816
|
+
getEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
817
|
+
listEntities: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Entity<string>>>;
|
|
818
|
+
updateEntity: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
819
|
+
createEntity: (data: any, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
820
|
+
removeEntity: (id: string, options?: AxiosRequestConfig) => Promise<Entity<string>>;
|
|
821
|
+
getEntitiesSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
822
|
+
getLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
823
|
+
listLogs: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Log<string>>>;
|
|
824
|
+
updateLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
825
|
+
createLog: (data: any, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
826
|
+
removeLog: (id: string, options?: AxiosRequestConfig) => Promise<Log<string>>;
|
|
827
|
+
getReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
828
|
+
listReadings: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Reading<string>>>;
|
|
829
|
+
updateReading: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
830
|
+
createReading: (data: any, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
831
|
+
removeReading: (id: string, options?: AxiosRequestConfig) => Promise<Reading<string>>;
|
|
832
|
+
getReadingSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
833
|
+
getReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
834
|
+
listReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Report<string>>>;
|
|
835
|
+
updateReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
836
|
+
createReport: (data: any, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
837
|
+
removeReport: (id: string, options?: AxiosRequestConfig) => Promise<Report<string>>;
|
|
838
|
+
sendReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
839
|
+
getReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
840
|
+
listReportTemplates: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
841
|
+
updateReportTemplate: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
842
|
+
createReportTemplate: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
843
|
+
removeReportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
844
|
+
getScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
845
|
+
listScheduledReports: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<any>>;
|
|
846
|
+
updateScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
847
|
+
createScheduledReport: (data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
848
|
+
removeScheduledReport: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
849
|
+
sendScheduledReport: (id: string, data: any, options?: AxiosRequestConfig) => Promise<any>;
|
|
850
|
+
getInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
851
|
+
listInvoices: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Invoice<string>>>;
|
|
852
|
+
updateInvoice: (id: string, data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
853
|
+
createInvoice: (data: any, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
854
|
+
removeInvoice: (id: string, options?: AxiosRequestConfig) => Promise<Invoice<string>>;
|
|
855
|
+
getInvoiceSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
856
|
+
getInvoiceCapture: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
857
|
+
listInvoicesCapture: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<InvoiceCapture<string>>>;
|
|
858
|
+
updateInvoiceCapture: (id: string, data: any, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
859
|
+
createInvoiceCapture: (data: any, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
860
|
+
removeInvoiceCapture: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceCapture<string>>;
|
|
861
|
+
getInvoiceCaptureSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
862
|
+
getInvoiceValidation: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
863
|
+
listInvoicesValidation: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<InvoiceValidation<string>>>;
|
|
864
|
+
updateInvoiceValidation: (id: string, data: any, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
865
|
+
createInvoiceValidation: (data: any, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
866
|
+
removeInvoiceValidation: (id: string, options?: AxiosRequestConfig) => Promise<InvoiceValidation<string>>;
|
|
867
|
+
getInvoiceValidationSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
868
|
+
listSuppliers: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<Supplier<string>>>;
|
|
869
|
+
getSupplierSchema: (options?: AxiosRequestConfig) => Promise<any>;
|
|
870
|
+
getImportTemplate: (id: string, options?: AxiosRequestConfig) => Promise<any>;
|
|
871
|
+
listDataIngest: (options?: AxiosRequestConfig) => Promise<ETNPagedResponse<DataIngest<string>>>;
|
|
872
|
+
updateDataIngest: (id: string, data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
873
|
+
createDataIngest: (data: any, options?: AxiosRequestConfig) => Promise<DataIngest<string>>;
|
|
869
874
|
};
|
|
870
875
|
|
|
871
876
|
declare const _default$2: (namespace: string) => winston.Logger;
|
|
@@ -921,10 +926,16 @@ declare const automationServices: {
|
|
|
921
926
|
category: AutomationServiceCategory;
|
|
922
927
|
}[];
|
|
923
928
|
|
|
929
|
+
declare const wasteCategories: {
|
|
930
|
+
name: WasteCategories;
|
|
931
|
+
type: WasteTypes;
|
|
932
|
+
}[];
|
|
933
|
+
|
|
924
934
|
declare const index_automationServices: typeof automationServices;
|
|
925
935
|
declare const index_automationSources: typeof automationSources;
|
|
936
|
+
declare const index_wasteCategories: typeof wasteCategories;
|
|
926
937
|
declare namespace index {
|
|
927
|
-
export { index_automationServices as automationServices, index_automationSources as automationSources };
|
|
938
|
+
export { index_automationServices as automationServices, index_automationSources as automationSources, index_wasteCategories as wasteCategories };
|
|
928
939
|
}
|
|
929
940
|
|
|
930
|
-
export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type Invoice, type InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValidation, type InvoiceValidationResults, type InvoiceValidationRule, type InvoiceValues, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, type UtilityType, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, reporting, _default as slack, units, index as utils };
|
|
941
|
+
export { type Account, type Asset, type Automation, type AutomationService, type AutomationServiceCategory, type AutomationSource, type Company, type CompanyInvoiceValidationRule, type CompanyInvoiceValidationSettings, type CreateScraperRunParams, type DataIngest, type ETNPagedResponse$1 as ETNPagedResponse, type Email, type Entity, type Invoice, type InvoiceCapture, type InvoiceCaptureMetadata, type InvoiceCaptureMetadataResult, type InvoiceRate, type InvoiceRateType, type InvoiceValidation, type InvoiceValidationResults, type InvoiceValidationRule, type InvoiceValues, type Log, type Reading, type Report, type ReportMetadata, type ReportSource, type ReportSourceIdItem, type ScraperRun, type Supplier, type UtilityType, type WasteCategories, type WasteTypes, _default$3 as api, consumption, _default$1 as db, _default$2 as logger, monitoring, reporting, _default as slack, units, index as utils };
|
package/dist/index.js
CHANGED
|
@@ -638,7 +638,8 @@ var getScheduledReportRunTimes = (schedule, limit = 1, taskTime = (0, import_mom
|
|
|
638
638
|
var utils_exports = {};
|
|
639
639
|
__export(utils_exports, {
|
|
640
640
|
automationServices: () => automationServices,
|
|
641
|
-
automationSources: () => automationSources
|
|
641
|
+
automationSources: () => automationSources,
|
|
642
|
+
wasteCategories: () => wasteCategories
|
|
642
643
|
});
|
|
643
644
|
|
|
644
645
|
// src/utils/automation.ts
|
|
@@ -851,6 +852,19 @@ var automationServices = [
|
|
|
851
852
|
}
|
|
852
853
|
];
|
|
853
854
|
|
|
855
|
+
// src/utils/account.ts
|
|
856
|
+
var wasteCategories = [
|
|
857
|
+
{ name: "General Waste", type: "EfW" },
|
|
858
|
+
{ name: "Food", type: "Compost" },
|
|
859
|
+
{ name: "Mixed Recyclables", type: "Recyclable" },
|
|
860
|
+
{ name: "WEEE", type: "EfW" },
|
|
861
|
+
{ name: "Batteries", type: "Recyclable" },
|
|
862
|
+
{ name: "Confi. Shredding", type: "EfW" },
|
|
863
|
+
{ name: "General bulky", type: "EfW" },
|
|
864
|
+
{ name: "Glass", type: "Recyclable" },
|
|
865
|
+
{ name: "Other", type: "N/A" }
|
|
866
|
+
];
|
|
867
|
+
|
|
854
868
|
// src/types/index.ts
|
|
855
869
|
var import_mongodb2 = require("mongodb");
|
|
856
870
|
// Annotate the CommonJS export names for ESM import in node:
|