@genesislcap/foundation-comms 14.187.1-alpha-3406925.0 → 14.187.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. package/dist/dts/connect/connect.d.ts +6 -11
  2. package/dist/dts/connect/connect.d.ts.map +1 -1
  3. package/dist/dts/connect/http.connect.d.ts +2 -2
  4. package/dist/dts/connect/http.connect.d.ts.map +1 -1
  5. package/dist/dts/connect/message.d.ts +0 -11
  6. package/dist/dts/connect/message.d.ts.map +1 -1
  7. package/dist/dts/connect/socket.d.ts +2 -6
  8. package/dist/dts/connect/socket.d.ts.map +1 -1
  9. package/dist/dts/datasource/datasource.d.ts +19 -49
  10. package/dist/dts/datasource/datasource.d.ts.map +1 -1
  11. package/dist/dts/datasource/datasource.types.d.ts +22 -14
  12. package/dist/dts/datasource/datasource.types.d.ts.map +1 -1
  13. package/dist/dts/datasource/entityDatasource.d.ts +8 -5
  14. package/dist/dts/datasource/entityDatasource.d.ts.map +1 -1
  15. package/dist/dts/datasource/index.d.ts +0 -2
  16. package/dist/dts/datasource/index.d.ts.map +1 -1
  17. package/dist/dts/index.d.ts +0 -1
  18. package/dist/dts/index.d.ts.map +1 -1
  19. package/dist/dts/testing/mocks/auth/auth.d.ts +0 -3
  20. package/dist/dts/testing/mocks/auth/auth.d.ts.map +1 -1
  21. package/dist/dts/testing/mocks/connect/connect.d.ts +2 -3
  22. package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
  23. package/dist/dts/testing/mocks/connect/socket.d.ts +0 -1
  24. package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
  25. package/dist/dts/testing/mocks/datasource/datasource.d.ts +4 -22
  26. package/dist/dts/testing/mocks/datasource/datasource.d.ts.map +1 -1
  27. package/dist/dts/testing/mocks/index.d.ts +0 -1
  28. package/dist/dts/testing/mocks/index.d.ts.map +1 -1
  29. package/dist/esm/connect/connect.js +15 -12
  30. package/dist/esm/connect/http.connect.js +3 -5
  31. package/dist/esm/connect/message.js +0 -2
  32. package/dist/esm/connect/socket.js +6 -19
  33. package/dist/esm/datasource/datasource.js +58 -133
  34. package/dist/esm/datasource/datasource.types.js +18 -2
  35. package/dist/esm/datasource/entityDatasource.js +0 -6
  36. package/dist/esm/datasource/index.js +0 -2
  37. package/dist/esm/index.js +0 -1
  38. package/dist/esm/testing/mocks/auth/auth.js +0 -10
  39. package/dist/esm/testing/mocks/connect/connect.js +2 -9
  40. package/dist/esm/testing/mocks/connect/socket.js +0 -2
  41. package/dist/esm/testing/mocks/datasource/datasource.js +0 -59
  42. package/dist/esm/testing/mocks/index.js +0 -1
  43. package/dist/foundation-comms.api.json +6042 -10797
  44. package/dist/foundation-comms.d.ts +37 -696
  45. package/docs/api/foundation-comms.connect.connect.md +2 -2
  46. package/docs/api/foundation-comms.connect.getavailableresources.md +2 -2
  47. package/docs/api/foundation-comms.connect.md +0 -1
  48. package/docs/api/{foundation-comms.datasource.status.md → foundation-comms.datasource.fieldmetadata.md} +4 -3
  49. package/docs/api/foundation-comms.datasource.init.md +2 -2
  50. package/docs/api/foundation-comms.datasource.md +2 -3
  51. package/docs/api/foundation-comms.datasourceconfig.md +1 -2
  52. package/docs/api/foundation-comms.defaultconnect.connect.md +2 -2
  53. package/docs/api/foundation-comms.defaultconnect.getavailableresources.md +2 -2
  54. package/docs/api/foundation-comms.defaultconnect.md +0 -1
  55. package/docs/api/foundation-comms.defaultdatasource._constructor_.md +2 -3
  56. package/docs/api/{foundation-comms.defaultdatasource.fetchmetadatarequired.md → foundation-comms.defaultdatasource._stream.md} +3 -4
  57. package/docs/api/foundation-comms.defaultdatasource.availableindexes.md +1 -2
  58. package/docs/api/foundation-comms.defaultdatasource.fieldmetadata.md +0 -1
  59. package/docs/api/foundation-comms.defaultdatasource.initialized.md +1 -3
  60. package/docs/api/foundation-comms.defaultdatasource.md +7 -10
  61. package/docs/api/foundation-comms.defaultdatasource.originalfielddef.md +1 -2
  62. package/docs/api/foundation-comms.defaultdatasource.requestfields.md +1 -2
  63. package/docs/api/foundation-comms.defaultdatasource.stream.md +1 -1
  64. package/docs/api/foundation-comms.defaultdatasource.validresourcename.md +0 -5
  65. package/docs/api/foundation-comms.defaultdatasourceconfig.md +1 -1
  66. package/docs/api/foundation-comms.defaulthttpconnect.getavailableresources.md +2 -2
  67. package/docs/api/foundation-comms.defaultsocket._constructor_.md +1 -2
  68. package/docs/api/foundation-comms.defaultsocket.connect.md +2 -2
  69. package/docs/api/foundation-comms.defaultsocket.md +1 -3
  70. package/docs/api/foundation-comms.eventmessagetype.md +0 -2
  71. package/docs/api/foundation-comms.md +2 -19
  72. package/docs/api/foundation-comms.socket.md +0 -6
  73. package/docs/api-report.md +25 -550
  74. package/package.json +12 -13
  75. package/dist/dts/datasource/datasource.config.d.ts +0 -44
  76. package/dist/dts/datasource/datasource.config.d.ts.map +0 -1
  77. package/dist/dts/datasource/datasource.mixins.d.ts +0 -367
  78. package/dist/dts/datasource/datasource.mixins.d.ts.map +0 -1
  79. package/dist/dts/resources/genesis/config.d.ts +0 -81
  80. package/dist/dts/resources/genesis/config.d.ts.map +0 -1
  81. package/dist/dts/resources/genesis/genesis.d.ts +0 -69
  82. package/dist/dts/resources/genesis/genesis.d.ts.map +0 -1
  83. package/dist/dts/resources/genesis/index.d.ts +0 -4
  84. package/dist/dts/resources/genesis/index.d.ts.map +0 -1
  85. package/dist/dts/resources/genesis/types.d.ts +0 -19
  86. package/dist/dts/resources/genesis/types.d.ts.map +0 -1
  87. package/dist/dts/resources/index.d.ts +0 -2
  88. package/dist/dts/resources/index.d.ts.map +0 -1
  89. package/dist/dts/testing/mocks/resources/genesis/genesis.d.ts +0 -16
  90. package/dist/dts/testing/mocks/resources/genesis/genesis.d.ts.map +0 -1
  91. package/dist/dts/testing/mocks/resources/genesis/index.d.ts +0 -2
  92. package/dist/dts/testing/mocks/resources/genesis/index.d.ts.map +0 -1
  93. package/dist/dts/testing/mocks/resources/index.d.ts +0 -2
  94. package/dist/dts/testing/mocks/resources/index.d.ts.map +0 -1
  95. package/dist/esm/datasource/datasource.config.js +0 -41
  96. package/dist/esm/datasource/datasource.mixins.js +0 -86
  97. package/dist/esm/resources/genesis/config.js +0 -51
  98. package/dist/esm/resources/genesis/genesis.js +0 -114
  99. package/dist/esm/resources/genesis/index.js +0 -3
  100. package/dist/esm/resources/genesis/types.js +0 -4
  101. package/dist/esm/resources/index.js +0 -1
  102. package/dist/esm/testing/mocks/resources/genesis/genesis.js +0 -25
  103. package/dist/esm/testing/mocks/resources/genesis/index.js +0 -1
  104. package/dist/esm/testing/mocks/resources/index.js +0 -1
  105. package/docs/api/foundation-comms.connect.host.md +0 -11
  106. package/docs/api/foundation-comms.datasourceconfig.eventemitter.md +0 -18
  107. package/docs/api/foundation-comms.datasourceeventhandler.md +0 -353
  108. package/docs/api/foundation-comms.datasourcemetadata.availableindexes.md +0 -11
  109. package/docs/api/foundation-comms.datasourcemetadata.fetchmetadatarequired.md +0 -11
  110. package/docs/api/foundation-comms.datasourcemetadata.fieldmetadata.md +0 -11
  111. package/docs/api/foundation-comms.datasourcemetadata.md +0 -24
  112. package/docs/api/foundation-comms.datasourcemetadata.originalfielddef.md +0 -11
  113. package/docs/api/foundation-comms.datasourcemetadata.requestfields.md +0 -11
  114. package/docs/api/foundation-comms.datasourcestatus.md +0 -21
  115. package/docs/api/foundation-comms.datasourcestatuschanged.md +0 -13
  116. package/docs/api/foundation-comms.datasourcestatuschangedevent.md +0 -15
  117. package/docs/api/foundation-comms.defaultconnect.host.md +0 -11
  118. package/docs/api/foundation-comms.defaultdatasource.fetchandapplymetadata.md +0 -22
  119. package/docs/api/foundation-comms.defaultdatasource.resources.md +0 -11
  120. package/docs/api/foundation-comms.defaultdatasource.status.md +0 -12
  121. package/docs/api/foundation-comms.defaultgenesisresources._constructor_.md +0 -21
  122. package/docs/api/foundation-comms.defaultgenesisresources.config.md +0 -11
  123. package/docs/api/foundation-comms.defaultgenesisresources.connect.md +0 -11
  124. package/docs/api/foundation-comms.defaultgenesisresources.destroy.md +0 -17
  125. package/docs/api/foundation-comms.defaultgenesisresources.getresources.md +0 -15
  126. package/docs/api/foundation-comms.defaultgenesisresources.getresourcetypefor.md +0 -24
  127. package/docs/api/foundation-comms.defaultgenesisresources.isvalidresource.md +0 -24
  128. package/docs/api/foundation-comms.defaultgenesisresources.md +0 -40
  129. package/docs/api/foundation-comms.defaultgenesisresources.postloadedmessage.md +0 -15
  130. package/docs/api/foundation-comms.defaultgenesisresources.resources.md +0 -11
  131. package/docs/api/foundation-comms.defaultgenesisresources.resourcespromise.md +0 -11
  132. package/docs/api/foundation-comms.defaultgenesisresourcesconfig.md +0 -13
  133. package/docs/api/foundation-comms.defaultsocket.config.md +0 -11
  134. package/docs/api/foundation-comms.defaultsocket.host.md +0 -11
  135. package/docs/api/foundation-comms.genesisresources.destroy.md +0 -13
  136. package/docs/api/foundation-comms.genesisresources.getresourcetypefor.md +0 -13
  137. package/docs/api/foundation-comms.genesisresources.isvalidresource.md +0 -13
  138. package/docs/api/foundation-comms.genesisresources.md +0 -26
  139. package/docs/api/foundation-comms.genesisresourceschannel.md +0 -33
  140. package/docs/api/foundation-comms.genesisresourceschannelid.md +0 -12
  141. package/docs/api/foundation-comms.genesisresourcesconfig.md +0 -21
  142. package/docs/api/foundation-comms.genesisresourcesconfig.throwwhenunavailable.md +0 -13
  143. package/docs/api/foundation-comms.genesisresourcesconfig.throwwhenunknown.md +0 -13
  144. package/docs/api/foundation-comms.genesisresourcesevents.md +0 -17
  145. package/docs/api/foundation-comms.genesisresourcesmock.destroy.md +0 -15
  146. package/docs/api/foundation-comms.genesisresourcesmock.getresourcetypefor.md +0 -24
  147. package/docs/api/foundation-comms.genesisresourcesmock.isvalidresource.md +0 -24
  148. package/docs/api/foundation-comms.genesisresourcesmock.md +0 -30
  149. package/docs/api/foundation-comms.genesisresourcesmock.nextisvalidresourceresponse.md +0 -11
  150. package/docs/api/foundation-comms.genesisresourcesmock.nextresourcetypeforresponse.md +0 -11
  151. package/docs/api/foundation-comms.genesisresourcesmock.resources.md +0 -11
  152. package/docs/api/foundation-comms.getgenesisresources.md +0 -30
  153. package/docs/api/foundation-comms.getgenesisresourceschannel.md +0 -39
  154. package/docs/api/foundation-comms.resourceitem.md +0 -15
  155. package/docs/api/foundation-comms.resourcesmessage.md +0 -18
  156. package/docs/api/foundation-comms.socket.host.md +0 -11
@@ -3,7 +3,7 @@ import type { Metadata, SchemaResponse } from '../metadata';
3
3
  import { MetaCache } from '../metadata';
4
4
  import { ConnectEventsEmitter } from './connect.events';
5
5
  import { ConnectConfig } from './connect.types';
6
- import { CommitParams, Message, MessageBuilder, RequestParams, ResourcesMessage } from './message';
6
+ import { CommitParams, Message, MessageBuilder, RequestParams } from './message';
7
7
  import type { SocketObservable } from './socket';
8
8
  import { Socket } from './socket';
9
9
  /**
@@ -51,10 +51,10 @@ export interface Connect {
51
51
  /**
52
52
  * Connects to a server at the specified host.
53
53
  * @public
54
- * @param host - The host to connect to. Defaults to {@link @genesislcap/foundation-utils#GENESIS_SOCKET_URL | GENESIS_SOCKET_URL}.
54
+ * @param host - The host to connect to.
55
55
  * @returns A promise that resolves with a boolean indicating whether the connection was successful.
56
56
  */
57
- connect(host?: string): Promise<boolean>;
57
+ connect(host: string): Promise<boolean>;
58
58
  /**
59
59
  * Disconnects from the server.
60
60
  * @public
@@ -156,7 +156,7 @@ export interface Connect {
156
156
  * @param params - An object containing optional parameters to include in the request.
157
157
  * @returns A promise that resolves to a Message containing the server's response with available resources.
158
158
  */
159
- getAvailableResources(params?: RequestParams): Promise<ResourcesMessage>;
159
+ getAvailableResources(params?: RequestParams): Promise<Message>;
160
160
  /**
161
161
  * Sends a request to the server to retrieve data or perform an action.
162
162
  * @public
@@ -165,10 +165,6 @@ export interface Connect {
165
165
  * @returns A promise that resolves to a Message containing the server's response.
166
166
  */
167
167
  commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
168
- /**
169
- * @returns The host provided.
170
- */
171
- host: string;
172
168
  }
173
169
  /**
174
170
  * The default implementation for the Connect interface (WS-only).
@@ -184,7 +180,6 @@ export declare class DefaultConnect implements Connect {
184
180
  get isConnected(): boolean;
185
181
  get isConnectedSubject(): BehaviorSubject<boolean>;
186
182
  get isConnected$(): Observable<boolean>;
187
- get host(): string;
188
183
  constructor(socket: Socket, messageBuilder: MessageBuilder, metaCache: MetaCache, events: ConnectEventsEmitter, config: ConnectConfig);
189
184
  httpMode(): boolean;
190
185
  /**
@@ -192,7 +187,7 @@ export declare class DefaultConnect implements Connect {
192
187
  */
193
188
  setValidSession(valid: boolean): void;
194
189
  send<T>(message: Message<any>, needsHandling?: boolean): Promise<any>;
195
- connect(host?: string): Promise<boolean>;
190
+ connect(host: string): Promise<boolean>;
196
191
  disconnect(): void;
197
192
  snapshot(resourceName: string, params?: any): Promise<Message>;
198
193
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
@@ -204,7 +199,7 @@ export declare class DefaultConnect implements Connect {
204
199
  getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
205
200
  getJSONSchema(resourceName: string, useCache?: boolean): Promise<SchemaResponse>;
206
201
  request(resourceName: string, params?: RequestParams): Promise<Message>;
207
- getAvailableResources(params?: any): Promise<ResourcesMessage>;
202
+ getAvailableResources(params?: any): Promise<Message>;
208
203
  commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
209
204
  }
210
205
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EACL,YAAY,EAEZ,OAAO,EACP,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B,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAef,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMhD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKnD,UAAU,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMrD,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAmC9E,aAAa,CACxB,YAAY,EAAE,MAAM,EACpB,QAAQ,GAAE,OAAc,GACvB,OAAO,CAAC,cAAc,CAAC;IAiCnB,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IASvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAM/C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;CAOrF;AAID;;;GAGG;AACH,eAAO,MAAM,SAAS,+DAAkE,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,OAAO,+DAEnB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC"}
@@ -6,7 +6,7 @@ import { Session } from '../session';
6
6
  import type { Connect } from './connect';
7
7
  import { Http } from './http';
8
8
  import { HttpConnectConfig } from './http.connect.types';
9
- import { CommitParams, Message, MessageBuilder, RequestParams, ResourcesMessage } from './message';
9
+ import { CommitParams, Message, MessageBuilder, RequestParams } from './message';
10
10
  import { SocketObservable } from './socket';
11
11
  /**
12
12
  * The default implementation for the Connect interface (HTTP-only).
@@ -56,7 +56,7 @@ export declare class DefaultHttpConnect implements Connect {
56
56
  getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
57
57
  getJSONSchema(resourceName: string): Promise<SchemaResponse>;
58
58
  request(resourceName: string, params?: RequestParams): Promise<Message>;
59
- getAvailableResources(params?: any): Promise<ResourcesMessage>;
59
+ getAvailableResources(params?: any): Promise<Message>;
60
60
  commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
61
61
  private maybeTurbo;
62
62
  private updateIntervals;
@@ -1 +1 @@
1
- {"version":3,"file":"http.connect.d.ts","sourceRoot":"","sources":["../../../src/connect/http.connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,OAAO,EACL,eAAe,EAKf,UAAU,EAIX,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EACL,YAAY,EAEZ,OAAO,EACP,cAAc,EAGd,aAAa,EACb,gBAAgB,EACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAiB5C;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,OAAO;IAqCjC,IAAI,EAAE,IAAI;IACP,OAAO,CAAC,cAAc;IAC7B,OAAO,CAAC,OAAO;IACb,OAAO,CAAC,SAAS;IACZ,OAAO,CAAC,UAAU;IACf,OAAO,CAAC,MAAM;IAxC5B,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,UAA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AAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAS/C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAYpF,OAAO,CAAC,UAAU;IAkDlB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,8BAA8B;IAmBtC,OAAO,CAAC,MAAM,CAAC,OAAO;IAItB,OAAO,CAAC,MAAM,CAAC,MAAM;CAUtB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,+DAAsE,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { UUID } from '@genesislcap/foundation-utils';
2
2
  import { AuthInfo, LoginResult } from '../auth/auth.types';
3
- import type { ResourceItem } from '../resources/genesis/types';
4
3
  import { Session } from '../session';
5
4
  /**
6
5
  * General Message types
@@ -36,8 +35,6 @@ export declare enum EventMessageType {
36
35
  META_REQUEST = "META_REQUEST",
37
36
  JSON_SCHEMA_REQUEST = "JSON_SCHEMA_REQUEST",
38
37
  RESOURCES_REQUEST = "RESOURCES_REQUEST",
39
- RESOURCES_REQUEST_ACK = "RESOURCES_REQUEST_ACK",
40
- RESOURCES_REQUEST_NACK = "RESOURCES_REQUEST_NACK",
41
38
  EVENT_CHANGE_USER_PASSWORD = "EVENT_CHANGE_USER_PASSWORD",
42
39
  EVENT_SELF_SERVICE_PASSWORD_RESET = "EVENT_SELF_SERVICE_PASSWORD_RESET",
43
40
  EVENT_PASSWORD_RESET_ACTION = "EVENT_PASSWORD_RESET_ACTION"
@@ -250,14 +247,6 @@ export type PongMessage = Pick<Message, 'MESSAGE_TYPE' | 'SOURCE_REF' | 'USER_NA
250
247
  LAST_SENT?: number;
251
248
  RESOURCES?: Record<string, RESOURCE_DETAILS[]>;
252
249
  };
253
- /**
254
- * @public
255
- */
256
- export type ResourcesMessage = {
257
- MESSAGE_TYPE: EventMessageType.RESOURCES_REQUEST_ACK | EventMessageType.RESOURCES_REQUEST_NACK | MessageType.MSG_NACK;
258
- SOURCE_REF: string;
259
- RESOURCES: ResourceItem[];
260
- };
261
250
  /**
262
251
  * Parameters for a REQUEST message
263
252
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/connect/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAY,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;GAGG;AACH,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,UAAU,eAAe;IAEzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IAEjC,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IAErC,OAAO,YAAY;IACnB,QAAQ,aAAa;IAErB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,YAAY,iBAAiB;CAC9B;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,gBAAgB,qBAAqB;IACrC,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAE/C,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,YAAY,iBAAiB;IAC7B,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,qBAAqB,0BAA0B;IAC/C,sBAAsB,2BAA2B;IAEjD,0BAA0B,+BAA+B;IACzD,iCAAiC,sCAAsC;IACvE,2BAA2B,gCAAgC;CAC5D;AAED;;;GAGG;AACH,oBAAY,WAAW;IACrB,iBAAiB,sBAAsB;IACvC,oBAAoB,yBAAyB;CAC9C;AAED;;GAEG;AACH,yBAAiB,cAAc,CAAC;IAC9B;;;OAGG;IACH,KAAY,UAAU,GAAG;Q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,GAAG,OAAO;IAWjD,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAOpD,4BAA4B,CACjC,OAAO,EAAE,OAAO,EAChB,WAAW,GAAE,MAA0C,GACtD,WAAW;IAed,8DAA8D;IACvD,0BAA0B,CAAC,OAAO,UAAQ,GAAG,WAAW;CAShE;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
@@ -2,7 +2,6 @@ import { User } from '@genesislcap/foundation-user';
2
2
  import { JSONSerializer, UUID } from '@genesislcap/foundation-utils';
3
3
  import { Observable, Subject, Subscription } from 'rxjs';
4
4
  import { Session } from '../session';
5
- import { ConnectConfig } from './connect.types';
6
5
  import { Message, MessageBuilder } from './message';
7
6
  import { SocketReconnectOptions } from './reconnectStrategy';
8
7
  import { SocketStatus } from './socket.status';
@@ -94,7 +93,6 @@ export interface Socket extends Omit<SocketStatus, 'serialize' | 'onClose' | 're
94
93
  */
95
94
  sendForStreamWithoutTeardown<T>(message: Message<T | any>, onMessage: Function, onError: Function): Observable<Message>;
96
95
  socketMessages(): SocketSubject<Message>;
97
- host: string;
98
96
  }
99
97
  /**
100
98
  * Default Socket implementation.
@@ -110,7 +108,6 @@ export declare class DefaultSocket implements Socket {
110
108
  * Temp putting the user in place to bridge the hasValidSession logic.
111
109
  */
112
110
  protected user: User;
113
- protected config: ConnectConfig;
114
111
  private readonly defaultInterval;
115
112
  private readonly secondsMultiplier;
116
113
  private websocket;
@@ -126,7 +123,6 @@ export declare class DefaultSocket implements Socket {
126
123
  /** {@inheritDoc SerializedSocketStatus.hasValidSession} */
127
124
  get hasValidSession(): boolean;
128
125
  set hasValidSession(value: boolean);
129
- get host(): string;
130
126
  private heartbeatIsEnabled;
131
127
  private heartbeatInterval;
132
128
  private heartbeatTicker;
@@ -138,10 +134,10 @@ export declare class DefaultSocket implements Socket {
138
134
  /**
139
135
  * Temp putting the user in place to bridge the hasValidSession logic.
140
136
  */
141
- user: User, config: ConnectConfig);
137
+ user: User);
142
138
  private get heartbeatLoggingIsEnabled();
143
139
  private get messageLoggingIsEnabled();
144
- connect(host?: string, connectOptions?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
140
+ connect(host: string, connectOptions?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
145
141
  private prepareHeartbeat;
146
142
  private reconnect;
147
143
  reset(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../src/connect/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAsB,cAAc,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAGzF,OAAO,EAAE,UAAU,EAAgB,OAAO,EAAE,YAAY,EAAyB,MAAM,MAAM,CAAC;AAG9F,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAEL,OAAO,EACP,cAAc,EAIf,MAAM,WAAW,CAAC;AACnB,OAAO,EAKL,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG3D;;;;GAIG;AACH,qBAAa,aAAa,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;;CAI/C;AAED;;;;GAIG;AACH,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;gBACxC,GAAG,IAAI,EAAE,GAAG,EAAE;CAG3B;AAED;;;GAGG;AACH,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,CAAC;AAE9C;;;GAGG;AACH,qBAAa,oBAAoB;gBACnB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,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CAAC,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACzB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,UAAU,CAAC,EAAE,QAAQ,GACpB,UAAU,CAAC,OAAO,CAAC;IAgDf,4BAA4B,CAAC,CAAC,EACnC,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACzB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,GAChB,UAAU,CAAC,OAAO,CAAC;IAcf,cAAc,QAAO,cAAc,OAAO,CAAC,CAAoB;IAEtE,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,kBAAkB;CAkB3B;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,8DAAgE,CAAC;AAEpF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAElC"}
@@ -1,37 +1,30 @@
1
1
  import { Auth } from '../auth';
2
2
  import { Connect, Message, SocketObservable } from '../connect';
3
3
  import type { FieldMetadata, FilteredDataServerResult, IndexDetail, MetadataDetail, RequestServerResult } from '../metadata/metadata.types';
4
- import { GenesisResources } from '../resources';
5
- import { DatasourceConfig } from './datasource.config';
6
- import type { DatasourceOptions, DatasourceStatus, Dataview } from './datasource.types';
7
- import { ResourceType } from './datasource.types';
4
+ import type { DatasourceOptions, Dataview } from './datasource.types';
5
+ import { DatasourceConfig, ResourceType } from './datasource.types';
8
6
  /**
9
- * DatasourceMetadata interface.
7
+ * The default configuration for the Datasource service.
10
8
  * @public
11
9
  */
12
- export interface DatasourceMetadata {
13
- fetchMetadataRequired: boolean;
14
- readonly availableIndexes: IndexDetail[];
15
- readonly originalFieldDef: MetadataDetail[];
16
- readonly fieldMetadata: FieldMetadata[];
17
- readonly requestFields: MetadataDetail[];
18
- }
10
+ export declare const defaultDatasourceConfig: DatasourceConfig;
19
11
  /**
20
12
  * Datasource interface.
21
13
  * @public
22
14
  * @remarks
23
15
  * The public interface available on the injected store fragment.
24
16
  */
25
- export interface Datasource extends DatasourceMetadata {
17
+ export interface Datasource {
26
18
  /**
19
+ * Indicates whether the datasource has been initialized.
27
20
  * @public
28
21
  */
29
- status: Partial<DatasourceStatus>;
22
+ initialized: boolean;
30
23
  /**
31
- * Indicates whether the datasource has been initialized.
24
+ * Metadata about the fields of the datasource.
32
25
  * @public
33
26
  */
34
- initialized: boolean;
27
+ fieldMetadata: FieldMetadata[];
35
28
  /**
36
29
  * Indicates whether the datasource is read-only.
37
30
  * TODO: Should have is prefix
@@ -57,10 +50,10 @@ export interface Datasource extends DatasourceMetadata {
57
50
  * Initializes the datasource with the given options and fetches metadata if specified.
58
51
  * @public
59
52
  * @param options - The options to initialize the datasource with.
60
- * @param fetchMeta - Optional flag to fetch metadata for the datasource. Defaults to true.
53
+ * @param fetchMeta - Whether to fetch metadata for the datasource.
61
54
  * @returns A promise that resolves with a boolean indicating whether the initialization was successful.
62
55
  */
63
- init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
56
+ init(options: DatasourceOptions, fetchMeta: boolean): Promise<boolean>;
64
57
  /**
65
58
  * Deinitializes the datasource.
66
59
  * @remarks This should be called to clean up any resources when the datasource is no longer needed.
@@ -165,52 +158,29 @@ export interface Datasource extends DatasourceMetadata {
165
158
  export declare class DefaultDatasource implements Datasource {
166
159
  protected connect: Connect;
167
160
  protected auth: Auth;
168
- protected resources: GenesisResources;
169
161
  protected config: DatasourceConfig;
170
- /**
171
- * {@inheritDoc Datasource.status}
172
- */
173
- status: DatasourceStatus;
174
- /** {@inheritDoc DatasourceMetadata.fetchMetadataRequired} */
175
- fetchMetadataRequired: boolean;
176
- /** {@inheritDoc DatasourceMetadata.originalFieldDef} */
177
- originalFieldDef: MetadataDetail[];
178
- /** {@inheritDoc DatasourceMetadata.fieldMetadata} */
179
- fieldMetadata: FieldMetadata[];
180
- /** {@inheritDoc DatasourceMetadata.requestFields} */
181
- requestFields: MetadataDetail[];
182
- /** {@inheritDoc DatasourceMetadata.availableIndexes} */
183
- availableIndexes: IndexDetail[];
184
- /** {@inheritDoc Datasource.initialized} */
185
- get initialized(): boolean;
162
+ initialized: boolean;
186
163
  readOnly: boolean;
187
164
  protected options: DatasourceOptions;
188
165
  resourceType: ResourceType;
189
- stream: SocketObservable<FilteredDataServerResult | RequestServerResult>;
190
- constructor(connect: Connect, auth: Auth, resources: GenesisResources, config: DatasourceConfig);
191
- /**
192
- * @deprecated - Please use {@link (GenesisResources:interface).isValidResource} instead.
193
- */
166
+ protected _stream: SocketObservable<FilteredDataServerResult | RequestServerResult>;
167
+ protected originalFieldDef: MetadataDetail[];
168
+ protected requestFields: MetadataDetail[];
169
+ fieldMetadata: FieldMetadata[];
170
+ protected availableIndexes: IndexDetail[];
171
+ constructor(connect: Connect, auth: Auth, config?: DatasourceConfig);
194
172
  validResourceName(resourceName: string): boolean;
195
173
  init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
196
174
  deinit(): void;
197
175
  /** {@inheritDoc Datasource.destroy} */
198
176
  destroy(): void;
177
+ get stream(): SocketObservable<FilteredDataServerResult | RequestServerResult>;
199
178
  get params(): any;
200
179
  snapshot(): Promise<Message>;
201
180
  snapshotFiltered(rowId?: string): Promise<any[]>;
202
181
  private createStream;
203
182
  private createDataserverStream;
204
183
  private createReqRepStream;
205
- protected fetchAndApplyMetadata(resourceName: string): Promise<void>;
206
- /**
207
- * @internal
208
- */
209
- protected reportStatus(detail?: Partial<DatasourceStatus>): void;
210
- /**
211
- * @internal
212
- */
213
- protected normaliseStatus(status: Partial<DatasourceStatus>): DatasourceStatus;
214
184
  }
215
185
  /**
216
186
  * The DI token for the Datasource interface.
@@ -1 +1 @@
1
- {"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI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AU,kEAAwE,CAAC;AAEhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAE1C"}
@@ -1,4 +1,4 @@
1
- import type { FieldMetadata } from '../metadata/metadata.types';
1
+ import type { FieldMetadata, FilteredDataServerResult, RawDataServerResult } from '../metadata/metadata.types';
2
2
  /**
3
3
  * Types of Genesis resources.
4
4
  * @public
@@ -97,24 +97,32 @@ export interface DatasourceOptions {
97
97
  reverse?: boolean;
98
98
  }
99
99
  /**
100
- * DatasourceStatus.
100
+ * Default values for a DatasourceConfig
101
101
  * @public
102
102
  */
103
- export type DatasourceStatus = {
104
- name: string;
105
- type: `${ResourceType}`;
106
- isInitialized: boolean;
107
- metadataRequired: boolean;
108
- hasMetadata: boolean;
109
- };
103
+ export declare class DatasourceDefaults {
104
+ static readonly MAX_ROWS_250 = 250;
105
+ static readonly MAX_VIEW_1000 = 1000;
106
+ static readonly REQ_REP_POLLING_INTERVAL_MS = 10000;
107
+ static readonly DATASERVER_ROW_ID = "ROW_REF";
108
+ static readonly REQUEST_SERVER_ROW_ID = "RECORD_ID";
109
+ }
110
110
  /**
111
- * DatasourceStatusChanged.
111
+ * The configuration object for a Datasource
112
112
  * @public
113
113
  */
114
- export declare const DatasourceStatusChanged = "datasource-status-changed";
114
+ export interface DatasourceConfig {
115
+ options: DatasourceOptions;
116
+ criteriaToFields(filters: string): Record<string, string>;
117
+ dataServerResultFilter(result: RawDataServerResult, rowId?: string): FilteredDataServerResult;
118
+ }
115
119
  /**
116
- * DatasourceStatusChangedEvent.
117
- * @public
120
+ * The DI token for the DatasourceConfig interface.
121
+ *
122
+ * @privateRemarks
123
+ * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
124
+ *
125
+ * @internal
118
126
  */
119
- export type DatasourceStatusChangedEvent = CustomEvent<DatasourceStatus>;
127
+ export declare const DatasourceConfig: import("@microsoft/fast-foundation").InterfaceSymbol<DatasourceConfig>;
120
128
  //# sourceMappingURL=datasource.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;;GAGG;AACH,oBAAY,YAAY;IACtB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,YAAY,EAAE,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,WAAW,CAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC;;;GAGG;AACH,oBAAY,YAAY;IACtB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;I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MAAM,gBAAgB,wEAAyC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { DTOMapper } from '@genesislcap/foundation-utils';
2
2
  import type { SocketSubscription } from '../connect/socket';
3
3
  import type { FilteredDataServerResult, RowData } from '../metadata/metadata.types';
4
- import { Datasource, DefaultDatasource } from './datasource';
4
+ import { DefaultDatasource } from './datasource';
5
5
  import type { DatasourceOptions } from './datasource.types';
6
6
  /**
7
7
  * This is a wip. We need to see if and where this fits into our strategic shared datasource solution.
@@ -82,7 +82,12 @@ export interface EntityDatasourceInit<TDTO, TEntity> {
82
82
  *
83
83
  * @alpha
84
84
  */
85
- export interface EntityDatasource<TDTO, TEntity> extends Datasource {
85
+ export interface EntityDatasource<TDTO, TEntity> {
86
+ /**
87
+ * @remarks
88
+ * Datasource initialized.
89
+ */
90
+ readonly initialized: boolean;
86
91
  /**
87
92
  * @remarks
88
93
  * Initialize datasource.
@@ -121,9 +126,7 @@ export declare class DefaultEntityDatasource<TDTO, TEntity> extends DefaultDatas
121
126
  protected entityMap: Map<string, TEntity>;
122
127
  protected rowId: string;
123
128
  /** {@inheritDoc EntityDatasource.initialized} */
124
- protected _initialized: boolean;
125
- get initialized(): boolean;
126
- set initialized(value: boolean);
129
+ initialized: boolean;
127
130
  /** {@inheritDoc EntityDatasource.initialize} */
128
131
  initialize: (init: EntityDatasourceInit<TDTO, TEntity>) => Promise<boolean>;
129
132
  /** {@inheritDoc EntityDatasource.cache} */
@@ -1 +1 @@
1
- {"version":3,"file":"entityDatasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/entityDatasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EACV,wBAAwB,EAExB,OAAO,EACR,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM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B;IAED,6CAA6C;IAC7C,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,gDAAgD;IAChD,UAAU,QAAO,IAAI,CAGnB;IAEF,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;IAoB7D,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,SAAS,GAAE,OAAe,GAAG,IAAI;CAarF;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,kFAE5B,CAAC"}
@@ -1,7 +1,5 @@
1
1
  export * from './criteriaFiltersToFields';
2
2
  export * from './dataServerResultFilter';
3
- export * from './datasource.config';
4
- export * from './datasource.mixins';
5
3
  export * from './datasource';
6
4
  export * from './datasource.types';
7
5
  export * from './entityDatasource';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -5,7 +5,6 @@ export * from './credentialManager';
5
5
  export * from './datasource';
6
6
  export * from './metadata';
7
7
  export * from './networkMonitor';
8
- export * from './resources';
9
8
  export * from './session';
10
9
  export * from './storage';
11
10
  export * from './testing';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type { User } from '@genesislcap/foundation-user';
2
- import { SetUserProperties } from '@genesislcap/foundation-user/dist/esm';
3
2
  import type { Auth, AuthInfo, LoginResult, LogoutResult } from '../../../';
4
3
  /**
5
4
  * @internal
@@ -15,7 +14,5 @@ export declare class AuthMock implements Auth {
15
14
  login(credentials: AuthInfo): Promise<LoginResult>;
16
15
  logout(): Promise<LogoutResult>;
17
16
  reAuthFromSession(): Promise<boolean>;
18
- setTestUser(properties?: Partial<SetUserProperties>): void;
19
- resetTestUser(): void;
20
17
  }
21
18
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/auth/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,M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OAAO,CAAC,YAAY,CAAC;IAI/B,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;CAG5C"}
@@ -1,5 +1,5 @@
1
1
  import { BehaviorSubject, Observable } from 'rxjs';
2
- import type { CommitParams, Connect, Message, Metadata, RequestParams, SocketMock, ResourcesMessage, SocketObservable } from '../../../';
2
+ import type { CommitParams, Connect, Message, Metadata, RequestParams, SocketMock, SocketObservable } from '../../../';
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -7,7 +7,6 @@ export declare class ConnectMock implements Connect {
7
7
  isConnected: boolean;
8
8
  isWorking: boolean;
9
9
  socket: SocketMock;
10
- get host(): string;
11
10
  get isConnectedSubject(): BehaviorSubject<boolean>;
12
11
  get isConnected$(): Observable<boolean>;
13
12
  send<T>(message: Message<any>, needsHandling?: boolean): Promise<any>;
@@ -23,7 +22,7 @@ export declare class ConnectMock implements Connect {
23
22
  disconnect(): void;
24
23
  getMetadata(resourceName: string): Promise<Metadata>;
25
24
  request(resourceName: string, params?: RequestParams): Promise<Message>;
26
- getAvailableResources(params?: RequestParams): Promise<ResourcesMessage>;
25
+ getAvailableResources(params?: RequestParams): Promise<Message>;
27
26
  snapshot(resourceName: string, params?: any): Promise<Message>;
28
27
  stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
29
28
  streamState(resourceName: string, onMessage: Function, onError: Function, params?: any, initialState?: any[]): Observable<any[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/connect/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,WAAY,YAAW,OAAO;IACzC,WAAW,EA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YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAI5B,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIrD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIxD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIpD,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAGlD"}
@@ -13,7 +13,6 @@ export declare class SocketMock implements Socket {
13
13
  isConnected: boolean;
14
14
  isConnectedSubject: BehaviorSubject<boolean>;
15
15
  isReconnecting: boolean;
16
- host: string;
17
16
  nextMessage: Message;
18
17
  socketMessagesSubject: SocketSubject<Message<any>>;
19
18
  connect(host: string, options?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;