@energycap/energycap-sdk-angular 8.2511.6467-develop-20251111-1017 → 8.2511.6468-develop-20251111-1246
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/api/energyManager.service.d.ts +151 -0
- package/esm2022/api/energyManager.service.mjs +409 -1
- package/esm2022/model/cancellationToken.mjs +23 -0
- package/esm2022/model/models.mjs +9 -1
- package/esm2022/model/safeWaitHandle.mjs +22 -0
- package/esm2022/model/vemChatCreate.mjs +26 -0
- package/esm2022/model/vemChatEdit.mjs +18 -0
- package/esm2022/model/vemChatMessageCreate.mjs +18 -0
- package/esm2022/model/vemChatMessageResponse.mjs +38 -0
- package/esm2022/model/vemChatResponse.mjs +26 -0
- package/esm2022/model/waitHandle.mjs +15 -0
- package/fesm2022/energycap-energycap-sdk-angular.mjs +595 -1
- package/fesm2022/energycap-energycap-sdk-angular.mjs.map +1 -1
- package/model/cancellationToken.d.ts +23 -0
- package/model/models.d.ts +8 -0
- package/model/safeWaitHandle.d.ts +21 -0
- package/model/vemChatCreate.d.ts +25 -0
- package/model/vemChatEdit.d.ts +17 -0
- package/model/vemChatMessageCreate.d.ts +17 -0
- package/model/vemChatMessageResponse.d.ts +36 -0
- package/model/vemChatResponse.d.ts +25 -0
- package/model/waitHandle.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
2
2
|
import { HttpResponse } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { VemChatCreate } from '../model/vemChatCreate';
|
|
5
|
+
import { VemChatEdit } from '../model/vemChatEdit';
|
|
6
|
+
import { VemChatMessageCreate } from '../model/vemChatMessageCreate';
|
|
7
|
+
import { VemChatMessageResponse } from '../model/vemChatMessageResponse';
|
|
8
|
+
import { VemChatResponse } from '../model/vemChatResponse';
|
|
4
9
|
import { VirtualEnergyManagerAskResponse } from '../model/virtualEnergyManagerAskResponse';
|
|
5
10
|
import { Configuration } from '../configuration';
|
|
6
11
|
import * as i0 from "@angular/core";
|
|
@@ -35,6 +40,79 @@ export declare class EnergyManagerService {
|
|
|
35
40
|
}, extraHttpRequestHeaders?: {
|
|
36
41
|
[header: string]: string | string[];
|
|
37
42
|
}): Observable<VirtualEnergyManagerAskResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Create a VEM chat for the user making the request. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
45
|
+
*
|
|
46
|
+
* @param body
|
|
47
|
+
*/
|
|
48
|
+
createChat(body?: VemChatCreate, extraHttpRequestParams?: {
|
|
49
|
+
search: string | {
|
|
50
|
+
[param: string]: string | string[];
|
|
51
|
+
};
|
|
52
|
+
}, extraHttpRequestHeaders?: {
|
|
53
|
+
[header: string]: string | string[];
|
|
54
|
+
}): Observable<VemChatResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new message in the specified chat and streams the response to the client. Since chat history is persisted, it manages response ID internally. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
57
|
+
* This method processes the user's message asynchronously and streams the response directly to the client. The response is sent as plain text with no caching, and the connection is kept alive during the streaming process.
|
|
58
|
+
* @param chatId The identifier of the chat where the message will be created.
|
|
59
|
+
* @param body An object containing the details of the message to be created, including its content.
|
|
60
|
+
*/
|
|
61
|
+
createMessage(chatId: number, body?: VemChatMessageCreate, extraHttpRequestParams?: {
|
|
62
|
+
search: string | {
|
|
63
|
+
[param: string]: string | string[];
|
|
64
|
+
};
|
|
65
|
+
}, extraHttpRequestHeaders?: {
|
|
66
|
+
[header: string]: string | string[];
|
|
67
|
+
}): Observable<any>;
|
|
68
|
+
/**
|
|
69
|
+
* Delete a VEM chat. Chat needs to belong the user making the request. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
70
|
+
*
|
|
71
|
+
* @param chatId
|
|
72
|
+
*/
|
|
73
|
+
deleteChat(chatId: number, extraHttpRequestParams?: {
|
|
74
|
+
search: string | {
|
|
75
|
+
[param: string]: string | string[];
|
|
76
|
+
};
|
|
77
|
+
}, extraHttpRequestHeaders?: {
|
|
78
|
+
[header: string]: string | string[];
|
|
79
|
+
}): Observable<any>;
|
|
80
|
+
/**
|
|
81
|
+
* Edit a VEM chat. Chat needs to belong the user making the request. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
82
|
+
*
|
|
83
|
+
* @param chatId
|
|
84
|
+
* @param body
|
|
85
|
+
*/
|
|
86
|
+
editChat(chatId: number, body?: VemChatEdit, extraHttpRequestParams?: {
|
|
87
|
+
search: string | {
|
|
88
|
+
[param: string]: string | string[];
|
|
89
|
+
};
|
|
90
|
+
}, extraHttpRequestHeaders?: {
|
|
91
|
+
[header: string]: string | string[];
|
|
92
|
+
}): Observable<VemChatResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves all VEM chat messages for a given chat ID. Chat needs to be active (not deleted) and belong to the user making the request. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
95
|
+
*
|
|
96
|
+
* @param chatId Chat id identifier
|
|
97
|
+
*/
|
|
98
|
+
getUserChatMessages(chatId: number, extraHttpRequestParams?: {
|
|
99
|
+
search: string | {
|
|
100
|
+
[param: string]: string | string[];
|
|
101
|
+
};
|
|
102
|
+
}, extraHttpRequestHeaders?: {
|
|
103
|
+
[header: string]: string | string[];
|
|
104
|
+
}): Observable<Array<VemChatMessageResponse>>;
|
|
105
|
+
/**
|
|
106
|
+
* Retrieves all VEM chats created by the user making the request. It filters out inactive/deleted chats. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
getUserChats(extraHttpRequestParams?: {
|
|
110
|
+
search: string | {
|
|
111
|
+
[param: string]: string | string[];
|
|
112
|
+
};
|
|
113
|
+
}, extraHttpRequestHeaders?: {
|
|
114
|
+
[header: string]: string | string[];
|
|
115
|
+
}): Observable<Array<VemChatResponse>>;
|
|
38
116
|
/**
|
|
39
117
|
*
|
|
40
118
|
*
|
|
@@ -48,6 +126,79 @@ export declare class EnergyManagerService {
|
|
|
48
126
|
}, extraHttpRequestHeaders?: {
|
|
49
127
|
[header: string]: string | string[];
|
|
50
128
|
}): Observable<HttpResponse<VirtualEnergyManagerAskResponse>>;
|
|
129
|
+
/**
|
|
130
|
+
* Create a VEM chat for the user making the request. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
131
|
+
*
|
|
132
|
+
* @param body
|
|
133
|
+
*/
|
|
134
|
+
createChatWithHttpInfo(body?: VemChatCreate, extraHttpRequestParams?: {
|
|
135
|
+
search: string | {
|
|
136
|
+
[param: string]: string | string[];
|
|
137
|
+
};
|
|
138
|
+
}, extraHttpRequestHeaders?: {
|
|
139
|
+
[header: string]: string | string[];
|
|
140
|
+
}): Observable<HttpResponse<VemChatResponse>>;
|
|
141
|
+
/**
|
|
142
|
+
* Creates a new message in the specified chat and streams the response to the client. Since chat history is persisted, it manages response ID internally. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
143
|
+
* This method processes the user's message asynchronously and streams the response directly to the client. The response is sent as plain text with no caching, and the connection is kept alive during the streaming process.
|
|
144
|
+
* @param chatId The identifier of the chat where the message will be created.
|
|
145
|
+
* @param body An object containing the details of the message to be created, including its content.
|
|
146
|
+
*/
|
|
147
|
+
createMessageWithHttpInfo(chatId: number, body?: VemChatMessageCreate, extraHttpRequestParams?: {
|
|
148
|
+
search: string | {
|
|
149
|
+
[param: string]: string | string[];
|
|
150
|
+
};
|
|
151
|
+
}, extraHttpRequestHeaders?: {
|
|
152
|
+
[header: string]: string | string[];
|
|
153
|
+
}): Observable<HttpResponse<any>>;
|
|
154
|
+
/**
|
|
155
|
+
* Delete a VEM chat. Chat needs to belong the user making the request. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
156
|
+
*
|
|
157
|
+
* @param chatId
|
|
158
|
+
*/
|
|
159
|
+
deleteChatWithHttpInfo(chatId: number, extraHttpRequestParams?: {
|
|
160
|
+
search: string | {
|
|
161
|
+
[param: string]: string | string[];
|
|
162
|
+
};
|
|
163
|
+
}, extraHttpRequestHeaders?: {
|
|
164
|
+
[header: string]: string | string[];
|
|
165
|
+
}): Observable<HttpResponse<any>>;
|
|
166
|
+
/**
|
|
167
|
+
* Edit a VEM chat. Chat needs to belong the user making the request. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
168
|
+
*
|
|
169
|
+
* @param chatId
|
|
170
|
+
* @param body
|
|
171
|
+
*/
|
|
172
|
+
editChatWithHttpInfo(chatId: number, body?: VemChatEdit, extraHttpRequestParams?: {
|
|
173
|
+
search: string | {
|
|
174
|
+
[param: string]: string | string[];
|
|
175
|
+
};
|
|
176
|
+
}, extraHttpRequestHeaders?: {
|
|
177
|
+
[header: string]: string | string[];
|
|
178
|
+
}): Observable<HttpResponse<VemChatResponse>>;
|
|
179
|
+
/**
|
|
180
|
+
* Retrieves all VEM chat messages for a given chat ID. Chat needs to be active (not deleted) and belong to the user making the request. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
181
|
+
*
|
|
182
|
+
* @param chatId Chat id identifier
|
|
183
|
+
*/
|
|
184
|
+
getUserChatMessagesWithHttpInfo(chatId: number, extraHttpRequestParams?: {
|
|
185
|
+
search: string | {
|
|
186
|
+
[param: string]: string | string[];
|
|
187
|
+
};
|
|
188
|
+
}, extraHttpRequestHeaders?: {
|
|
189
|
+
[header: string]: string | string[];
|
|
190
|
+
}): Observable<HttpResponse<Array<VemChatMessageResponse>>>;
|
|
191
|
+
/**
|
|
192
|
+
* Retrieves all VEM chats created by the user making the request. It filters out inactive/deleted chats. It requires the 'VirtualEnergyManager' feature flag to be enabled for the user.
|
|
193
|
+
*
|
|
194
|
+
*/
|
|
195
|
+
getUserChatsWithHttpInfo(extraHttpRequestParams?: {
|
|
196
|
+
search: string | {
|
|
197
|
+
[param: string]: string | string[];
|
|
198
|
+
};
|
|
199
|
+
}, extraHttpRequestHeaders?: {
|
|
200
|
+
[header: string]: string | string[];
|
|
201
|
+
}): Observable<HttpResponse<Array<VemChatResponse>>>;
|
|
51
202
|
static ɵfac: i0.ɵɵFactoryDeclaration<EnergyManagerService, [null, { optional: true; }, { optional: true; }]>;
|
|
52
203
|
static ɵprov: i0.ɵɵInjectableDeclaration<EnergyManagerService>;
|
|
53
204
|
}
|