@etainabl/nodejs-sdk 1.3.0 → 1.3.1
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 +10 -10
- package/dist/index.d.ts +10 -10
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -125,7 +125,7 @@ interface Account<IDType = ObjectId | string> {
|
|
|
125
125
|
error?: string;
|
|
126
126
|
uploaded?: boolean;
|
|
127
127
|
};
|
|
128
|
-
automationIds?:
|
|
128
|
+
automationIds?: IDType[];
|
|
129
129
|
customIntegrations?: object;
|
|
130
130
|
tags?: string[];
|
|
131
131
|
supplierId?: IDType;
|
|
@@ -190,7 +190,7 @@ interface Benchmark {
|
|
|
190
190
|
fieldCode: string;
|
|
191
191
|
fieldValue: string;
|
|
192
192
|
}
|
|
193
|
-
interface Document {
|
|
193
|
+
interface Document<IDType = ObjectId | string> {
|
|
194
194
|
s3Key?: string;
|
|
195
195
|
name: string;
|
|
196
196
|
extension?: string;
|
|
@@ -201,15 +201,15 @@ interface Document {
|
|
|
201
201
|
providerData?: object;
|
|
202
202
|
certificate?: object;
|
|
203
203
|
createdAt: Date;
|
|
204
|
-
accountIds?:
|
|
204
|
+
accountIds?: IDType[];
|
|
205
205
|
}
|
|
206
|
-
interface TimelineEvent {
|
|
206
|
+
interface TimelineEvent<IDType = ObjectId | string> {
|
|
207
207
|
date: Date;
|
|
208
208
|
title: string;
|
|
209
209
|
status: string;
|
|
210
210
|
content?: string;
|
|
211
211
|
icon?: string;
|
|
212
|
-
accountIds?:
|
|
212
|
+
accountIds?: IDType[];
|
|
213
213
|
}
|
|
214
214
|
interface AssetRecommendation<IDType = ObjectId | string> {
|
|
215
215
|
recommendationId: IDType;
|
|
@@ -250,20 +250,20 @@ interface Asset<IDType = ObjectId | string> {
|
|
|
250
250
|
floodRisks: FloodRisk[];
|
|
251
251
|
recentCrimes: Crime[];
|
|
252
252
|
recentAirQuality: AirQuality;
|
|
253
|
-
documents?: Document[];
|
|
253
|
+
documents?: Document<IDType>[];
|
|
254
254
|
epbCertificates: any[];
|
|
255
255
|
status?: string;
|
|
256
256
|
settings: AssetSettings;
|
|
257
257
|
recommendations?: AssetRecommendation[];
|
|
258
258
|
statusHistory: StatusHistory[];
|
|
259
|
-
timelineEvents: TimelineEvent[];
|
|
259
|
+
timelineEvents: TimelineEvent<IDType>[];
|
|
260
260
|
benchmarks: Benchmark[];
|
|
261
261
|
lastPopulated?: Date;
|
|
262
262
|
deletedOn?: Date;
|
|
263
263
|
batchId?: string;
|
|
264
264
|
companyId: IDType;
|
|
265
265
|
entityId: IDType;
|
|
266
|
-
assetGroupIds:
|
|
266
|
+
assetGroupIds: IDType[];
|
|
267
267
|
userSub: string;
|
|
268
268
|
gresbId?: string;
|
|
269
269
|
}
|
|
@@ -296,8 +296,8 @@ interface Automation<IDType = ObjectId | string> {
|
|
|
296
296
|
data: Record<string, any>;
|
|
297
297
|
sourceData: Record<string, any>;
|
|
298
298
|
frequency?: FrequencyType;
|
|
299
|
-
accountIds?:
|
|
300
|
-
assetIds?:
|
|
299
|
+
accountIds?: IDType[];
|
|
300
|
+
assetIds?: IDType[];
|
|
301
301
|
userSub: string;
|
|
302
302
|
companyId: IDType;
|
|
303
303
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ interface Account<IDType = ObjectId | string> {
|
|
|
125
125
|
error?: string;
|
|
126
126
|
uploaded?: boolean;
|
|
127
127
|
};
|
|
128
|
-
automationIds?:
|
|
128
|
+
automationIds?: IDType[];
|
|
129
129
|
customIntegrations?: object;
|
|
130
130
|
tags?: string[];
|
|
131
131
|
supplierId?: IDType;
|
|
@@ -190,7 +190,7 @@ interface Benchmark {
|
|
|
190
190
|
fieldCode: string;
|
|
191
191
|
fieldValue: string;
|
|
192
192
|
}
|
|
193
|
-
interface Document {
|
|
193
|
+
interface Document<IDType = ObjectId | string> {
|
|
194
194
|
s3Key?: string;
|
|
195
195
|
name: string;
|
|
196
196
|
extension?: string;
|
|
@@ -201,15 +201,15 @@ interface Document {
|
|
|
201
201
|
providerData?: object;
|
|
202
202
|
certificate?: object;
|
|
203
203
|
createdAt: Date;
|
|
204
|
-
accountIds?:
|
|
204
|
+
accountIds?: IDType[];
|
|
205
205
|
}
|
|
206
|
-
interface TimelineEvent {
|
|
206
|
+
interface TimelineEvent<IDType = ObjectId | string> {
|
|
207
207
|
date: Date;
|
|
208
208
|
title: string;
|
|
209
209
|
status: string;
|
|
210
210
|
content?: string;
|
|
211
211
|
icon?: string;
|
|
212
|
-
accountIds?:
|
|
212
|
+
accountIds?: IDType[];
|
|
213
213
|
}
|
|
214
214
|
interface AssetRecommendation<IDType = ObjectId | string> {
|
|
215
215
|
recommendationId: IDType;
|
|
@@ -250,20 +250,20 @@ interface Asset<IDType = ObjectId | string> {
|
|
|
250
250
|
floodRisks: FloodRisk[];
|
|
251
251
|
recentCrimes: Crime[];
|
|
252
252
|
recentAirQuality: AirQuality;
|
|
253
|
-
documents?: Document[];
|
|
253
|
+
documents?: Document<IDType>[];
|
|
254
254
|
epbCertificates: any[];
|
|
255
255
|
status?: string;
|
|
256
256
|
settings: AssetSettings;
|
|
257
257
|
recommendations?: AssetRecommendation[];
|
|
258
258
|
statusHistory: StatusHistory[];
|
|
259
|
-
timelineEvents: TimelineEvent[];
|
|
259
|
+
timelineEvents: TimelineEvent<IDType>[];
|
|
260
260
|
benchmarks: Benchmark[];
|
|
261
261
|
lastPopulated?: Date;
|
|
262
262
|
deletedOn?: Date;
|
|
263
263
|
batchId?: string;
|
|
264
264
|
companyId: IDType;
|
|
265
265
|
entityId: IDType;
|
|
266
|
-
assetGroupIds:
|
|
266
|
+
assetGroupIds: IDType[];
|
|
267
267
|
userSub: string;
|
|
268
268
|
gresbId?: string;
|
|
269
269
|
}
|
|
@@ -296,8 +296,8 @@ interface Automation<IDType = ObjectId | string> {
|
|
|
296
296
|
data: Record<string, any>;
|
|
297
297
|
sourceData: Record<string, any>;
|
|
298
298
|
frequency?: FrequencyType;
|
|
299
|
-
accountIds?:
|
|
300
|
-
assetIds?:
|
|
299
|
+
accountIds?: IDType[];
|
|
300
|
+
assetIds?: IDType[];
|
|
301
301
|
userSub: string;
|
|
302
302
|
companyId: IDType;
|
|
303
303
|
}
|