@etainabl/nodejs-sdk 1.3.138 → 1.3.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -581,21 +581,12 @@ interface Asset<IDType = ObjectId | string> {
581
581
  type AutomationSource = 'ftp' | 'email' | 's3' | 'manual';
582
582
  type AutomationService = 'accountStatus' | 'autometer' | 'bacnet' | 'beringar' | 'carlogavazzivmuc' | 'carlogavazziuwp' | 'cxgmulticolumn' | 'cxgmultitimecolumn' | 'cxgsinglecolumn' | 'etnsinglecolumn' | 'etnmulticolumn' | 'etnmultitimecolumn' | 'singlecolumn' | 'multicolumn' | 'multitimecolumn' | 'deepki' | '4dmonitoring' | 'crownamr' | 'elogbooks' | 'elveco' | 'elveco2108' | 'gridfetch' | 'imserv' | 'meteruk' | 'mjchurch' | 'msmsolutions' | 'niagaran4' | 'octanise' | 'orsis' | 'schneider' | 'schneideregx' | 'schneidercomx' | 'sentinel' | 'siemens' | 'siemenstem' | 'smartflow' | 'smartvatten' | 'sms' | 'soclean' | 'solarman' | 'solis' | 'sse' | 'stark' | 'synapsys' | 'trendlogs' | 'trio' | 'dataimport';
583
583
  type AutomationServiceCategory = 'system' | 'company' | 'account';
584
- interface Log$1<IDType = ObjectId | string> {
584
+ type FrequencyType = 'never' | 'trigger' | 'hourly' | 'daily' | 'weekly' | 'monthly';
585
+ interface AccountSchema<IDType = ObjectId | string> {
585
586
  _id: IDType;
586
- message: string;
587
- timestamp: Date;
588
- batchId?: string;
589
- source?: string;
587
+ status: 'success' | 'error';
588
+ lastSync: Date;
590
589
  }
591
- interface LastCollection {
592
- collectedAt: Date | null;
593
- data: Record<string, any> | null;
594
- error: Record<string, any> | null;
595
- status: 'success' | 'error' | 'pending';
596
- source: Record<string, any> | null;
597
- }
598
- type FrequencyType = 'never' | 'trigger' | 'hourly' | 'daily' | 'weekly' | 'monthly';
599
590
  interface Automation<IDType = ObjectId | string> {
600
591
  _id: IDType;
601
592
  description?: string;
@@ -603,13 +594,11 @@ interface Automation<IDType = ObjectId | string> {
603
594
  category: AutomationServiceCategory;
604
595
  source: AutomationSource;
605
596
  active: boolean;
606
- status?: 'running' | 'pending';
607
- lastCollection: LastCollection;
608
- logs: Log$1[];
597
+ status: 'active' | 'inactive' | 'warning';
609
598
  data: Record<string, any>;
610
599
  sourceData: Record<string, any>;
611
600
  frequency?: FrequencyType;
612
- accountIds?: IDType[];
601
+ accountItems?: AccountSchema<IDType>[];
613
602
  assetIds?: IDType[];
614
603
  userSub: string;
615
604
  companyId: IDType;
@@ -1115,7 +1104,7 @@ interface Invoice<IDType = ObjectId | string, DateType = Date> {
1115
1104
  assignedTo?: string;
1116
1105
  noScrape?: boolean;
1117
1106
  scraperInvoiceId?: string;
1118
- captureComments: {
1107
+ captureComments?: {
1119
1108
  recipient: string;
1120
1109
  supplier: string;
1121
1110
  invoiceCosts: string;
package/dist/index.d.ts CHANGED
@@ -581,21 +581,12 @@ interface Asset<IDType = ObjectId | string> {
581
581
  type AutomationSource = 'ftp' | 'email' | 's3' | 'manual';
582
582
  type AutomationService = 'accountStatus' | 'autometer' | 'bacnet' | 'beringar' | 'carlogavazzivmuc' | 'carlogavazziuwp' | 'cxgmulticolumn' | 'cxgmultitimecolumn' | 'cxgsinglecolumn' | 'etnsinglecolumn' | 'etnmulticolumn' | 'etnmultitimecolumn' | 'singlecolumn' | 'multicolumn' | 'multitimecolumn' | 'deepki' | '4dmonitoring' | 'crownamr' | 'elogbooks' | 'elveco' | 'elveco2108' | 'gridfetch' | 'imserv' | 'meteruk' | 'mjchurch' | 'msmsolutions' | 'niagaran4' | 'octanise' | 'orsis' | 'schneider' | 'schneideregx' | 'schneidercomx' | 'sentinel' | 'siemens' | 'siemenstem' | 'smartflow' | 'smartvatten' | 'sms' | 'soclean' | 'solarman' | 'solis' | 'sse' | 'stark' | 'synapsys' | 'trendlogs' | 'trio' | 'dataimport';
583
583
  type AutomationServiceCategory = 'system' | 'company' | 'account';
584
- interface Log$1<IDType = ObjectId | string> {
584
+ type FrequencyType = 'never' | 'trigger' | 'hourly' | 'daily' | 'weekly' | 'monthly';
585
+ interface AccountSchema<IDType = ObjectId | string> {
585
586
  _id: IDType;
586
- message: string;
587
- timestamp: Date;
588
- batchId?: string;
589
- source?: string;
587
+ status: 'success' | 'error';
588
+ lastSync: Date;
590
589
  }
591
- interface LastCollection {
592
- collectedAt: Date | null;
593
- data: Record<string, any> | null;
594
- error: Record<string, any> | null;
595
- status: 'success' | 'error' | 'pending';
596
- source: Record<string, any> | null;
597
- }
598
- type FrequencyType = 'never' | 'trigger' | 'hourly' | 'daily' | 'weekly' | 'monthly';
599
590
  interface Automation<IDType = ObjectId | string> {
600
591
  _id: IDType;
601
592
  description?: string;
@@ -603,13 +594,11 @@ interface Automation<IDType = ObjectId | string> {
603
594
  category: AutomationServiceCategory;
604
595
  source: AutomationSource;
605
596
  active: boolean;
606
- status?: 'running' | 'pending';
607
- lastCollection: LastCollection;
608
- logs: Log$1[];
597
+ status: 'active' | 'inactive' | 'warning';
609
598
  data: Record<string, any>;
610
599
  sourceData: Record<string, any>;
611
600
  frequency?: FrequencyType;
612
- accountIds?: IDType[];
601
+ accountItems?: AccountSchema<IDType>[];
613
602
  assetIds?: IDType[];
614
603
  userSub: string;
615
604
  companyId: IDType;
@@ -1115,7 +1104,7 @@ interface Invoice<IDType = ObjectId | string, DateType = Date> {
1115
1104
  assignedTo?: string;
1116
1105
  noScrape?: boolean;
1117
1106
  scraperInvoiceId?: string;
1118
- captureComments: {
1107
+ captureComments?: {
1119
1108
  recipient: string;
1120
1109
  supplier: string;
1121
1110
  invoiceCosts: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etainabl/nodejs-sdk",
3
- "version": "1.3.138",
3
+ "version": "1.3.140",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",