http-request-manager 18.5.9 → 18.5.10
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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "http-request-manager",
|
|
3
|
-
"version": "18.5.
|
|
3
|
+
"version": "18.5.10",
|
|
4
4
|
"homepage": "https://wavecoders.ca",
|
|
5
5
|
"author": "Mike Bonifacio <wavecoders@gmail.com> (http://wavecoders@gmail.com/)",
|
|
6
6
|
"description": "This is an Angular Module containing Components/Services using Material",
|
|
@@ -12,6 +12,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
12
12
|
import * as _angular_forms from '@angular/forms';
|
|
13
13
|
import { FormBuilder, FormArray, FormControl } from '@angular/forms';
|
|
14
14
|
import { DataSource } from '@angular/cdk/collections';
|
|
15
|
+
import * as http_request_manager from 'http-request-manager';
|
|
15
16
|
import * as i4 from '@angular/common';
|
|
16
17
|
import * as i7 from '@angular/material/button';
|
|
17
18
|
import * as i18 from '@angular/material/tabs';
|
|
@@ -213,44 +214,23 @@ declare class ChannelInfo implements ChannelInfoInterface {
|
|
|
213
214
|
static adapt(item?: any): ChannelInfo;
|
|
214
215
|
}
|
|
215
216
|
|
|
217
|
+
interface WSUserInterface {
|
|
218
|
+
sessionId: string;
|
|
219
|
+
content: any;
|
|
220
|
+
}
|
|
221
|
+
declare class WSUser implements WSUserInterface {
|
|
222
|
+
sessionId: string;
|
|
223
|
+
content: any;
|
|
224
|
+
constructor(sessionId: string, content: any);
|
|
225
|
+
static adapt(item?: any): WSUser;
|
|
226
|
+
}
|
|
227
|
+
|
|
216
228
|
declare enum CommunicationType {
|
|
217
229
|
MESSAGE = 0,
|
|
218
230
|
ALERT = 1,
|
|
219
231
|
OTHER = 2
|
|
220
232
|
}
|
|
221
233
|
|
|
222
|
-
interface ChannelMessageInterface {
|
|
223
|
-
fromUser: string | null;
|
|
224
|
-
toUser: string | null;
|
|
225
|
-
content: string | null;
|
|
226
|
-
issued: Date;
|
|
227
|
-
type: CommunicationType;
|
|
228
|
-
}
|
|
229
|
-
declare class ChannelMessage implements ChannelMessageInterface {
|
|
230
|
-
fromUser: string | null;
|
|
231
|
-
toUser: string | null;
|
|
232
|
-
content: string | null;
|
|
233
|
-
issued: Date;
|
|
234
|
-
type: CommunicationType;
|
|
235
|
-
constructor(fromUser?: string | null, toUser?: string | null, content?: string | null, issued?: Date, type?: CommunicationType);
|
|
236
|
-
static adapt(item?: any): ChannelMessage;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
interface UserMessageInterface {
|
|
240
|
-
fromUser: any;
|
|
241
|
-
toUser?: any;
|
|
242
|
-
content?: string;
|
|
243
|
-
issued?: Date;
|
|
244
|
-
}
|
|
245
|
-
declare class UserMessage implements UserMessageInterface {
|
|
246
|
-
fromUser: any;
|
|
247
|
-
toUser?: any;
|
|
248
|
-
content?: string | undefined;
|
|
249
|
-
issued?: Date | undefined;
|
|
250
|
-
constructor(fromUser: any, toUser?: any, content?: string | undefined, issued?: Date | undefined);
|
|
251
|
-
static adapt(item?: any): UserMessage;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
234
|
interface DatabaseStorageInterface {
|
|
255
235
|
table: string;
|
|
256
236
|
expiresIn: string;
|
|
@@ -273,17 +253,6 @@ declare class RequestOptions implements RequestOptionsInterface {
|
|
|
273
253
|
static adapt(item?: any): RequestOptions;
|
|
274
254
|
}
|
|
275
255
|
|
|
276
|
-
interface WSUserInterface {
|
|
277
|
-
id: string;
|
|
278
|
-
adapter?: Function;
|
|
279
|
-
}
|
|
280
|
-
declare class WSUser implements WSUserInterface {
|
|
281
|
-
id: string;
|
|
282
|
-
adapter?: Function | undefined;
|
|
283
|
-
constructor(id?: string, adapter?: Function | undefined);
|
|
284
|
-
static adapt(item?: any): WSUser;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
256
|
interface TableSchemaDefInterface {
|
|
288
257
|
table: string;
|
|
289
258
|
schema: string;
|
|
@@ -351,6 +320,23 @@ declare class DatabaseManagerService extends DbService {
|
|
|
351
320
|
static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerService>;
|
|
352
321
|
}
|
|
353
322
|
|
|
323
|
+
interface ChannelMessageInterface {
|
|
324
|
+
sessionId: string;
|
|
325
|
+
content: any;
|
|
326
|
+
message: string;
|
|
327
|
+
users: WSUser[];
|
|
328
|
+
issued: number;
|
|
329
|
+
}
|
|
330
|
+
declare class ChannelMessage implements ChannelMessageInterface {
|
|
331
|
+
sessionId: string;
|
|
332
|
+
content: any;
|
|
333
|
+
message: string;
|
|
334
|
+
users: WSUser[];
|
|
335
|
+
issued: number;
|
|
336
|
+
constructor(sessionId: string, content: any, message?: string, users?: WSUser[], issued?: number);
|
|
337
|
+
static adapt(item?: any): ChannelMessage;
|
|
338
|
+
}
|
|
339
|
+
|
|
354
340
|
interface APIStateManagerData<T> {
|
|
355
341
|
data: T[];
|
|
356
342
|
dataObject: T | null;
|
|
@@ -387,16 +373,16 @@ declare class HTTPManagerStateService<T extends {
|
|
|
387
373
|
private userList;
|
|
388
374
|
userList$: Observable<any[]>;
|
|
389
375
|
private user;
|
|
390
|
-
user$: Observable<
|
|
376
|
+
user$: Observable<WSUser | null>;
|
|
391
377
|
private communicationMessages;
|
|
392
|
-
communicationMessages$: Observable<
|
|
378
|
+
communicationMessages$: Observable<any[]>;
|
|
393
379
|
private latestCommunicationMessages;
|
|
394
|
-
latestCommunicationMessages$: Observable<
|
|
380
|
+
latestCommunicationMessages$: Observable<any>;
|
|
395
381
|
private userAction;
|
|
396
382
|
userAction$: Observable<any>;
|
|
397
383
|
channels: ChannelInfo[];
|
|
398
384
|
channelList: string[];
|
|
399
|
-
messages:
|
|
385
|
+
messages: WSUser[];
|
|
400
386
|
wsConnection: boolean;
|
|
401
387
|
wsOptions: WSOptions;
|
|
402
388
|
status$: Observable<boolean>;
|
|
@@ -404,7 +390,7 @@ declare class HTTPManagerStateService<T extends {
|
|
|
404
390
|
setApiRequestOptions(apiOptions?: ApiRequest, dataType?: DataType, database?: DatabaseStorage): void;
|
|
405
391
|
private setupConnectionStatus;
|
|
406
392
|
readonly initWS: (observableOrValue: WSOptions | Observable<WSOptions>) => Subscription;
|
|
407
|
-
appendMessages(message:
|
|
393
|
+
appendMessages(message: any): void;
|
|
408
394
|
latestMessage(): void;
|
|
409
395
|
clearMessages(): void;
|
|
410
396
|
get ApiRequestOptions(): ApiRequest;
|
|
@@ -427,7 +413,7 @@ declare class HTTPManagerStateService<T extends {
|
|
|
427
413
|
readonly createStream: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
428
414
|
readonly fetchStream: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
429
415
|
private wsCommunication;
|
|
430
|
-
wsMessaging(message: ChannelMessage,
|
|
416
|
+
wsMessaging(message: ChannelMessage, channels?: string[]): void;
|
|
431
417
|
private isEmpty;
|
|
432
418
|
private updateRequestOptions;
|
|
433
419
|
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerStateService<any>, never>;
|
|
@@ -1478,29 +1464,12 @@ declare class RequestManagerWsDemoComponent implements OnInit {
|
|
|
1478
1464
|
wsServer: string;
|
|
1479
1465
|
jwtToken: string;
|
|
1480
1466
|
user: any;
|
|
1481
|
-
user$: Observable<
|
|
1482
|
-
users$: Observable<any[]>;
|
|
1467
|
+
user$: Observable<WSUser | null>;
|
|
1483
1468
|
attempts$: Observable<number>;
|
|
1484
1469
|
nextRetry$: Observable<number>;
|
|
1485
1470
|
connectionStatus$: Observable<boolean>;
|
|
1486
|
-
messages: _angular_forms.FormGroup<{
|
|
1487
|
-
[x: string]: FormControl<unknown>;
|
|
1488
|
-
}>;
|
|
1489
|
-
get toUser(): FormControl;
|
|
1490
|
-
get content(): FormControl;
|
|
1491
|
-
get isValid(): boolean;
|
|
1492
|
-
data$: Observable<any>;
|
|
1493
1471
|
isPending$: Observable<boolean>;
|
|
1494
|
-
fromMe: (user: string, fromUser: string) => boolean;
|
|
1495
|
-
communicationMessages$: Observable<UserMessage[]>;
|
|
1496
|
-
latestCommunicationMessages$: Observable<UserMessage | null>;
|
|
1497
|
-
chat$: Observable<{
|
|
1498
|
-
user: any;
|
|
1499
|
-
messages: any[];
|
|
1500
|
-
} | any>;
|
|
1501
1472
|
ngOnInit(): void;
|
|
1502
|
-
onSendMessage(): void;
|
|
1503
|
-
onSendAlert(): void;
|
|
1504
1473
|
static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerWsDemoComponent, never>;
|
|
1505
1474
|
static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerWsDemoComponent, "app-request-manager-ws-demo", never, { "server": { "alias": "server"; "required": false; }; "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "user": { "alias": "user"; "required": false; }; }, {}, never, never, false, never>;
|
|
1506
1475
|
}
|
|
@@ -1587,7 +1556,7 @@ declare class WsDataControlComponent implements OnInit {
|
|
|
1587
1556
|
jwtToken: string;
|
|
1588
1557
|
user: any;
|
|
1589
1558
|
stateDataRequestService: StateDataRequestService;
|
|
1590
|
-
user$: rxjs.Observable<
|
|
1559
|
+
user$: rxjs.Observable<http_request_manager.WSUser | null>;
|
|
1591
1560
|
users$: rxjs.Observable<any[]>;
|
|
1592
1561
|
userAction$: rxjs.Observable<any>;
|
|
1593
1562
|
data$: rxjs.Observable<any>;
|
|
@@ -1608,23 +1577,24 @@ declare class WsMessagingComponent implements OnInit {
|
|
|
1608
1577
|
user: any;
|
|
1609
1578
|
fb: FormBuilder;
|
|
1610
1579
|
stateRequestServiceDemo: StateRequestServiceDemo;
|
|
1611
|
-
user$: Observable<
|
|
1580
|
+
user$: Observable<WSUser | null>;
|
|
1612
1581
|
users$: Observable<any[]>;
|
|
1613
1582
|
data$: Observable<any>;
|
|
1614
1583
|
messages: _angular_forms.FormGroup<{
|
|
1615
|
-
|
|
1584
|
+
toUsers: FormControl<WSUser[] | null>;
|
|
1585
|
+
content: FormControl<string | null>;
|
|
1616
1586
|
}>;
|
|
1617
|
-
get
|
|
1587
|
+
get toUsers(): FormControl;
|
|
1618
1588
|
get content(): FormControl;
|
|
1619
1589
|
get isValid(): boolean;
|
|
1620
|
-
communicationMessages$: Observable<
|
|
1621
|
-
latestCommunicationMessages$: Observable<
|
|
1590
|
+
communicationMessages$: Observable<any[]>;
|
|
1591
|
+
latestCommunicationMessages$: Observable<any>;
|
|
1622
1592
|
chat$: Observable<{
|
|
1623
1593
|
user: any;
|
|
1624
1594
|
messages: any[];
|
|
1625
1595
|
} | any>;
|
|
1626
1596
|
ngOnInit(): void;
|
|
1627
|
-
onSendMessage(): void;
|
|
1597
|
+
onSendMessage(user: WSUser): void;
|
|
1628
1598
|
onSendAlert(): void;
|
|
1629
1599
|
static ɵfac: i0.ɵɵFactoryDeclaration<WsMessagingComponent, never>;
|
|
1630
1600
|
static ɵcmp: i0.ɵɵComponentDeclaration<WsMessagingComponent, "app-ws-messaging", never, { "server": { "alias": "server"; "required": false; }; "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "user": { "alias": "user"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1729,5 +1699,5 @@ declare class HttpRequestManagerModule {
|
|
|
1729
1699
|
static ɵinj: i0.ɵɵInjectorDeclaration<HttpRequestManagerModule>;
|
|
1730
1700
|
}
|
|
1731
1701
|
|
|
1732
|
-
export { ApiRequest, AppService, AsymmetricalEncryptionService, CONFIG_SETTINGS_TOKEN, ChannelInfo,
|
|
1733
|
-
export type { APIStateManagerData, ApiRequestInterface, ChannelInfoInterface,
|
|
1702
|
+
export { ApiRequest, AppService, AsymmetricalEncryptionService, CONFIG_SETTINGS_TOKEN, ChannelInfo, CommunicationType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsManagerService, PathQueryService, Random, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomSignature, RandomStr, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UtilsService, WSOptions, WSUser, WebsocketService, WithCredentialsInterceptor, countdown, delayedRetry, requestPolling, requestStreaming };
|
|
1703
|
+
export type { APIStateManagerData, ApiRequestInterface, ChannelInfoInterface, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, LocalStorageOptionsInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateStorageOptionsInterface, StateStoreManagerData, StorageDataInterface, StorageOptionInterface, TableRecord, TableSchemaDefInterface, WSOptionsInterface, WSUserInterface };
|
|
Binary file
|