@genesislcap/foundation-comms 14.225.4-alpha-5f6eefd.0 → 14.226.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/dist/dts/datasource/datasource.mixins.d.ts +29 -45
  2. package/dist/dts/datasource/datasource.mixins.d.ts.map +1 -1
  3. package/dist/dts/testing/mocks/auth/auth.d.ts +1 -1
  4. package/dist/dts/testing/mocks/auth/auth.d.ts.map +1 -1
  5. package/dist/dts/testing/mocks/connect/socket.d.ts +1 -1
  6. package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
  7. package/dist/dts/tsdoc-metadata.json +1 -1
  8. package/dist/esm/auth/auth.js +2 -2
  9. package/dist/esm/connect/connect.js +8 -8
  10. package/dist/esm/connect/http.connect.js +7 -8
  11. package/dist/esm/connect/socket.js +5 -1
  12. package/dist/esm/credentialManager/credentialManager.js +2 -2
  13. package/dist/esm/datasource/datasource.js +7 -7
  14. package/dist/esm/networkMonitor/config.js +2 -1
  15. package/dist/esm/resources/genesis/genesis.js +1 -1
  16. package/dist/esm/storage/kv/kv.service.js +3 -3
  17. package/dist/foundation-comms.api.json +2413 -4907
  18. package/dist/foundation-comms.d.ts +31 -47
  19. package/docs/api/foundation-comms.connect.md +0 -1
  20. package/docs/api/foundation-comms.datasourceeventhandler.md +30 -56
  21. package/docs/api/foundation-comms.extractfielddefinitions.md +1 -14
  22. package/docs/api/foundation-comms.getkvstorage.md +1 -1
  23. package/docs/api/foundation-comms.md +6 -19
  24. package/docs/api/foundation-comms.messagehaserrorcode.md +1 -13
  25. package/docs/api/foundation-comms.messageorthrow.md +1 -14
  26. package/docs/api/foundation-comms.retryinterval.md +1 -15
  27. package/docs/api/foundation-comms.socket.md +0 -1
  28. package/docs/api/foundation-comms.tofieldmetadata.md +1 -14
  29. package/docs/{api-report.md.api.md → api-report.md} +31 -47
  30. package/package.json +14 -14
  31. package/docs/api/foundation-comms.connect.streamwithoutautoteardown.md +0 -37
  32. package/docs/api/foundation-comms.defaultentitydatasource._initialized.md +0 -15
  33. package/docs/api/foundation-comms.defaultentitydatasource.cache.md +0 -19
  34. package/docs/api/foundation-comms.defaultentitydatasource.disconnect.md +0 -19
  35. package/docs/api/foundation-comms.defaultentitydatasource.entitycache.md +0 -14
  36. package/docs/api/foundation-comms.defaultentitydatasource.entitymap.md +0 -14
  37. package/docs/api/foundation-comms.defaultentitydatasource.initialize.md +0 -19
  38. package/docs/api/foundation-comms.defaultentitydatasource.initialized.md +0 -16
  39. package/docs/api/foundation-comms.defaultentitydatasource.isempty.md +0 -19
  40. package/docs/api/foundation-comms.defaultentitydatasource.mapper.md +0 -14
  41. package/docs/api/foundation-comms.defaultentitydatasource.md +0 -38
  42. package/docs/api/foundation-comms.defaultentitydatasource.rowid.md +0 -14
  43. package/docs/api/foundation-comms.defaultentitydatasource.sourceref.md +0 -14
  44. package/docs/api/foundation-comms.defaultentitydatasource.subscription.md +0 -14
  45. package/docs/api/foundation-comms.defaultentitydatasource.subscriptionloggedoff.md +0 -14
  46. package/docs/api/foundation-comms.defaultkvstorage._constructor_.md +0 -25
  47. package/docs/api/foundation-comms.defaultkvstorage.md +0 -30
  48. package/docs/api/foundation-comms.defaultkvstorage.user.md +0 -14
  49. package/docs/api/foundation-comms.defaultkvstorageconfig.md +0 -16
  50. package/docs/api/foundation-comms.entitydatasource.cache.md +0 -19
  51. package/docs/api/foundation-comms.entitydatasource.disconnect.md +0 -22
  52. package/docs/api/foundation-comms.entitydatasource.initialize.md +0 -29
  53. package/docs/api/foundation-comms.entitydatasource.isempty.md +0 -19
  54. package/docs/api/foundation-comms.entitydatasource.md +0 -81
  55. package/docs/api/foundation-comms.entitydatasourceinit.fetchmeta.md +0 -14
  56. package/docs/api/foundation-comms.entitydatasourceinit.mapper.md +0 -14
  57. package/docs/api/foundation-comms.entitydatasourceinit.md +0 -25
  58. package/docs/api/foundation-comms.entitydatasourceinit.options.md +0 -14
  59. package/docs/api/foundation-comms.keyvalue.base64.md +0 -16
  60. package/docs/api/foundation-comms.keyvalue.expiration.md +0 -16
  61. package/docs/api/foundation-comms.keyvalue.key.md +0 -16
  62. package/docs/api/foundation-comms.keyvalue.md +0 -27
  63. package/docs/api/foundation-comms.keyvalue.metadata.md +0 -18
  64. package/docs/api/foundation-comms.keyvalue.value.md +0 -16
  65. package/docs/api/foundation-comms.keyvaluetransfer.deserialize.md +0 -25
  66. package/docs/api/foundation-comms.keyvaluetransfer.kv.md +0 -14
  67. package/docs/api/foundation-comms.keyvaluetransfer.md +0 -30
  68. package/docs/api/foundation-comms.keyvaluetransfer.serialize.md +0 -25
  69. package/docs/api/foundation-comms.kveventfailureresponse.md +0 -21
  70. package/docs/api/foundation-comms.kveventmessagetype.md +0 -24
  71. package/docs/api/foundation-comms.kvmessagetype.md +0 -24
  72. package/docs/api/foundation-comms.kvstorage.delete.md +0 -25
  73. package/docs/api/foundation-comms.kvstorage.get.md +0 -18
  74. package/docs/api/foundation-comms.kvstorage.get_1.md +0 -25
  75. package/docs/api/foundation-comms.kvstorage.list.md +0 -18
  76. package/docs/api/foundation-comms.kvstorage.md +0 -31
  77. package/docs/api/foundation-comms.kvstorage.put.md +0 -25
  78. package/docs/api/foundation-comms.kvstorageconfig.account.md +0 -16
  79. package/docs/api/foundation-comms.kvstorageconfig.authemail.md +0 -21
  80. package/docs/api/foundation-comms.kvstorageconfig.authkey.md +0 -16
  81. package/docs/api/foundation-comms.kvstorageconfig.md +0 -26
  82. package/docs/api/foundation-comms.kvstorageconfig.namespace.md +0 -16
  83. package/docs/api/foundation-comms.kvvalue.md +0 -16
  84. package/docs/api/foundation-comms.socket.sendforstreamwithoutteardown.md +0 -31
@@ -66,15 +66,11 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
66
66
  readonly offsetTop: number;
67
67
  readonly offsetWidth: number;
68
68
  outerText: string;
69
- popover: string;
70
69
  spellcheck: boolean;
71
70
  title: string;
72
71
  translate: boolean;
73
72
  attachInternals(): ElementInternals;
74
73
  click(): void;
75
- hidePopover(): void;
76
- showPopover(): void;
77
- togglePopover(force?: boolean): boolean;
78
74
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
79
75
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
80
76
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
@@ -103,12 +99,9 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
103
99
  slot: string;
104
100
  readonly tagName: string;
105
101
  attachShadow(init: ShadowRootInit): ShadowRoot;
106
- checkVisibility(options?: CheckVisibilityOptions): boolean;
107
102
  closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
108
103
  closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
109
- closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
110
104
  closest<E extends Element = Element>(selectors: string): E;
111
- computedStyleMap(): StylePropertyMapReadOnly;
112
105
  getAttribute(qualifiedName: string): string;
113
106
  getAttributeNS(namespace: string, localName: string): string;
114
107
  getAttributeNames(): string[];
@@ -117,14 +110,11 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
117
110
  getBoundingClientRect(): DOMRect;
118
111
  getClientRects(): DOMRectList;
119
112
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
120
- getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
121
- getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
122
- getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
123
- getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
113
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
114
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
124
115
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
125
116
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
126
117
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
127
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
128
118
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
129
119
  hasAttribute(qualifiedName: string): boolean;
130
120
  hasAttributeNS(namespace: string, localName: string): boolean;
@@ -182,24 +172,24 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
182
172
  normalize(): void;
183
173
  removeChild<T_2 extends Node>(child: T_2): T_2;
184
174
  replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
185
- readonly ELEMENT_NODE: 1;
186
- readonly ATTRIBUTE_NODE: 2;
187
- readonly TEXT_NODE: 3;
188
- readonly CDATA_SECTION_NODE: 4;
189
- readonly ENTITY_REFERENCE_NODE: 5;
190
- readonly ENTITY_NODE: 6;
191
- readonly PROCESSING_INSTRUCTION_NODE: 7;
192
- readonly COMMENT_NODE: 8;
193
- readonly DOCUMENT_NODE: 9;
194
- readonly DOCUMENT_TYPE_NODE: 10;
195
- readonly DOCUMENT_FRAGMENT_NODE: 11;
196
- readonly NOTATION_NODE: 12;
197
- readonly DOCUMENT_POSITION_DISCONNECTED: 1;
198
- readonly DOCUMENT_POSITION_PRECEDING: 2;
199
- readonly DOCUMENT_POSITION_FOLLOWING: 4;
200
- readonly DOCUMENT_POSITION_CONTAINS: 8;
201
- readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
202
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
175
+ readonly ATTRIBUTE_NODE: number;
176
+ readonly CDATA_SECTION_NODE: number;
177
+ readonly COMMENT_NODE: number;
178
+ readonly DOCUMENT_FRAGMENT_NODE: number;
179
+ readonly DOCUMENT_NODE: number;
180
+ readonly DOCUMENT_POSITION_CONTAINED_BY: number;
181
+ readonly DOCUMENT_POSITION_CONTAINS: number;
182
+ readonly DOCUMENT_POSITION_DISCONNECTED: number;
183
+ readonly DOCUMENT_POSITION_FOLLOWING: number;
184
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
185
+ readonly DOCUMENT_POSITION_PRECEDING: number;
186
+ readonly DOCUMENT_TYPE_NODE: number;
187
+ readonly ELEMENT_NODE: number;
188
+ readonly ENTITY_NODE: number;
189
+ readonly ENTITY_REFERENCE_NODE: number;
190
+ readonly NOTATION_NODE: number;
191
+ readonly PROCESSING_INSTRUCTION_NODE: number;
192
+ readonly TEXT_NODE: number;
203
193
  dispatchEvent(event: Event): boolean;
204
194
  ariaAtomic: string;
205
195
  ariaAutoComplete: string;
@@ -207,9 +197,9 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
207
197
  ariaChecked: string;
208
198
  ariaColCount: string;
209
199
  ariaColIndex: string;
200
+ ariaColIndexText: string;
210
201
  ariaColSpan: string;
211
202
  ariaCurrent: string;
212
- ariaDescription: string;
213
203
  ariaDisabled: string;
214
204
  ariaExpanded: string;
215
205
  ariaHasPopup: string;
@@ -231,6 +221,7 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
231
221
  ariaRoleDescription: string;
232
222
  ariaRowCount: string;
233
223
  ariaRowIndex: string;
224
+ ariaRowIndexText: string;
234
225
  ariaRowSpan: string;
235
226
  ariaSelected: string;
236
227
  ariaSetSize: string;
@@ -255,19 +246,17 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
255
246
  readonly lastElementChild: Element;
256
247
  append(...nodes: (string | Node)[]): void;
257
248
  prepend(...nodes: (string | Node)[]): void;
258
- querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9];
259
- querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10];
260
- querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
261
- querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
249
+ querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
250
+ querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
262
251
  querySelector<E_1 extends Element = Element>(selectors: string): E_1;
263
- querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
264
- querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
265
- querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
266
- querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
252
+ querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
253
+ querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
267
254
  querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
268
255
  replaceChildren(...nodes: (string | Node)[]): void;
269
256
  readonly assignedSlot: HTMLSlotElement;
270
- readonly attributeStyleMap: StylePropertyMap;
257
+ oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
258
+ oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
259
+ onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
271
260
  readonly style: CSSStyleDeclaration;
272
261
  contentEditable: string;
273
262
  enterKeyHint: string;
@@ -280,7 +269,6 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
280
269
  onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
281
270
  onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
282
271
  onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
283
- onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
284
272
  onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
285
273
  oncancel: (this: GlobalEventHandlers, ev: Event) => any;
286
274
  oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
@@ -289,9 +277,7 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
289
277
  onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
290
278
  onclose: (this: GlobalEventHandlers, ev: Event) => any;
291
279
  oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
292
- oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
293
280
  oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
294
- oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
295
281
  ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
296
282
  ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
297
283
  ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
@@ -324,7 +310,6 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
324
310
  onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
325
311
  onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
326
312
  onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
327
- onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
328
313
  onpause: (this: GlobalEventHandlers, ev: Event) => any;
329
314
  onplay: (this: GlobalEventHandlers, ev: Event) => any;
330
315
  onplaying: (this: GlobalEventHandlers, ev: Event) => any;
@@ -341,7 +326,6 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
341
326
  onreset: (this: GlobalEventHandlers, ev: Event) => any;
342
327
  onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
343
328
  onscroll: (this: GlobalEventHandlers, ev: Event) => any;
344
- onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
345
329
  onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
346
330
  onseeked: (this: GlobalEventHandlers, ev: Event) => any;
347
331
  onseeking: (this: GlobalEventHandlers, ev: Event) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"datasource.mixins.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.mixins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EACL,gBAAgB,EAEhB,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,sBAAsB,WAAY,UAAU,WAAW,GAAG,WAAW;;0BAGhD,gBAAgB;QAC9C;;WAEG;sBACW,MAAM;QACpB;;;;;WAKG;2CACgC,4BAA4B,KAAK,IAAI;QA4BxE;;;WAGG;sCAC2B,gBAAgB,QAAQ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBzE,CAAC"}
1
+ {"version":3,"file":"datasource.mixins.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.mixins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EACL,gBAAgB,EAEhB,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,sBAAsB,WAAY,UAAU,WAAW,GAAG,WAAW;;0BAGhD,gBAAgB;QAC9C;;WAEG;sBACW,MAAM;QACpB;;;;;WAKG;2CACgC,4BAA4B,KAAK,IAAI;QA4BxE;;;WAGG;sCAC2B,gBAAgB,QAAQ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBzE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { SetUserProperties } from '@genesislcap/foundation-user';
2
1
  import type { User } from '@genesislcap/foundation-user';
2
+ import { SetUserProperties } from '@genesislcap/foundation-user/dist/esm';
3
3
  import type { Auth, AuthInfo, LoginResult, LogoutResult } from '../../../';
4
4
  /**
5
5
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/auth/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE3E;;GAEG;AACH,qBAAa,QAAS,YAAW,IAAI;IACvB,SAAS,UAAS;IAClB,gBAAgB,EAAE,WAAW,CAAQ;IACrC,WAAW,EAAE,IAAI,CAAQ;IACzB,UAAU,EAAE,OAAO,CAAS;IAExC,eAAe,EAAE,WAAW,CAAC;IAC7B,gBAAgB,EAAE,YAAY,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlD,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC;IAI/B,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAI3C,WAAW,CAAC,UAAU,GAAE,OAAO,CAAC,iBAAiB,CAAM;IAWvD,aAAa;CAId"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/auth/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE3E;;GAEG;AACH,qBAAa,QAAS,YAAW,IAAI;IACvB,SAAS,UAAS;IAClB,gBAAgB,EAAE,WAAW,CAAQ;IACrC,WAAW,EAAE,IAAI,CAAQ;IACzB,UAAU,EAAE,OAAO,CAAS;IAExC,eAAe,EAAE,WAAW,CAAC;IAC7B,gBAAgB,EAAE,YAAY,CAAC;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlD,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC;IAI/B,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAI3C,WAAW,CAAC,UAAU,GAAE,OAAO,CAAC,iBAAiB,CAAM;IAWvD,aAAa;CAId"}
@@ -15,7 +15,7 @@ export declare class SocketMock implements Socket {
15
15
  isReconnecting: boolean;
16
16
  host: string;
17
17
  nextMessage: Message;
18
- socketMessagesSubject: SocketSubject<Message>;
18
+ socketMessagesSubject: SocketSubject<Message<any>>;
19
19
  connect(host: string, options?: SocketConnectOptions, reconnectOptions?: SocketReconnectOptions): Promise<boolean>;
20
20
  disconnect(): void;
21
21
  send<T>(message: Message<any>): Promise<Message | any>;
@@ -1 +1 @@
1
- {"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/connect/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;GAEG;AACH,qBAAa,UAAW,YAAW,MAAM;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,sBAAsB,EAAE,OAAO,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,eAAe,CAAC,OAAO,CAAC,CAA6B;IACzE,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,MAAM,CAAe;IAE3B,WAAW,EAAE,OAAO,CAAC;IACrB,qBAAqB,yBAAgC;IAErD,OAAO,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oBAAoB,EAC9B,gBAAgB,CAAC,EAAE,sBAAsB,GACxC,OAAO,CAAC,OAAO,CAAC;IAKZ,UAAU,IAAI,IAAI;IAElB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC;IAItD,aAAa,CAAC,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EACrB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,UAAU,CAAC,EAAE,QAAQ,GACpB,UAAU,CAAC,OAAO,CAAC;IAItB,4BAA4B,CAAC,CAAC,EAC5B,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EACrB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,GAChB,UAAU,CAAC,OAAO,CAAC;IAIf,cAAc,IAAI,aAAa,CAAC,OAAO,CAAC;IAI/C,KAAK,IAAI,IAAI;CAGd"}
1
+ {"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/connect/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;GAEG;AACH,qBAAa,UAAW,YAAW,MAAM;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,sBAAsB,EAAE,OAAO,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,eAAe,CAAC,OAAO,CAAC,CAA6B;IACzE,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,MAAM,CAAe;IAE3B,WAAW,EAAE,OAAO,CAAC;IACrB,qBAAqB,8BAAgC;IAErD,OAAO,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,oBAAoB,EAC9B,gBAAgB,CAAC,EAAE,sBAAsB,GACxC,OAAO,CAAC,OAAO,CAAC;IAKZ,UAAU,IAAI,IAAI;IAElB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,GAAG,GAAG,CAAC;IAItD,aAAa,CAAC,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EACrB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,UAAU,CAAC,EAAE,QAAQ,GACpB,UAAU,CAAC,OAAO,CAAC;IAItB,4BAA4B,CAAC,CAAC,EAC5B,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EACrB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,GAChB,UAAU,CAAC,OAAO,CAAC;IAIf,cAAc,IAAI,aAAa,CAAC,OAAO,CAAC;IAI/C,KAAK,IAAI,IAAI;CAGd"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.48.0"
8
+ "packageVersion": "7.34.9"
9
9
  }
10
10
  ]
11
11
  }
@@ -39,8 +39,8 @@ let DefaultAuth = class DefaultAuth {
39
39
  });
40
40
  }
41
41
  login(credentials) {
42
+ var _a;
42
43
  return __awaiter(this, void 0, void 0, function* () {
43
- var _a;
44
44
  this.isWorking = true;
45
45
  try {
46
46
  const loginMessage = this.messageBuilder.createLoginMessage(credentials);
@@ -82,8 +82,8 @@ let DefaultAuth = class DefaultAuth {
82
82
  });
83
83
  }
84
84
  logout() {
85
+ var _a;
85
86
  return __awaiter(this, void 0, void 0, function* () {
86
- var _a;
87
87
  this.isWorking = true;
88
88
  let logoutResult = {
89
89
  success: false,
@@ -49,8 +49,8 @@ let DefaultConnect = class DefaultConnect {
49
49
  send(message, needsHandling) {
50
50
  return this.socket.send(message, needsHandling);
51
51
  }
52
- connect() {
53
- return __awaiter(this, arguments, void 0, function* (host = GENESIS_SOCKET_URL) {
52
+ connect(host = GENESIS_SOCKET_URL) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
54
  this.socket.reset();
55
55
  return this.socket.connect(host, this.config.connect, this.config.reconnect);
56
56
  });
@@ -117,9 +117,9 @@ let DefaultConnect = class DefaultConnect {
117
117
  return this.socket.send(dataLogoffMessage);
118
118
  });
119
119
  }
120
- getMetadata(resourceName_1) {
121
- return __awaiter(this, arguments, void 0, function* (resourceName, useCache = true) {
122
- var _a;
120
+ getMetadata(resourceName, useCache = true) {
121
+ var _a;
122
+ return __awaiter(this, void 0, void 0, function* () {
123
123
  if (useCache) {
124
124
  if (this.metaCache.hasMetadataFor(resourceName)) {
125
125
  logger.debug(`Cached metadata retrieved for ${resourceName}`);
@@ -150,9 +150,9 @@ let DefaultConnect = class DefaultConnect {
150
150
  return details;
151
151
  });
152
152
  }
153
- getJSONSchema(resourceName_1) {
154
- return __awaiter(this, arguments, void 0, function* (resourceName, useCache = true) {
155
- var _a;
153
+ getJSONSchema(resourceName, useCache = true) {
154
+ var _a;
155
+ return __awaiter(this, void 0, void 0, function* () {
156
156
  if (useCache) {
157
157
  if (this.metaCache.hasJsonSchemaFor(resourceName)) {
158
158
  logger.debug(`Cached JsonSchema retrieved for ${resourceName}`);
@@ -1,4 +1,3 @@
1
- var DefaultHttpConnect_1;
2
1
  import { __awaiter, __decorate, __param } from "tslib";
3
2
  import { JSONSerializer } from '@genesislcap/foundation-utils';
4
3
  import { observable, volatile } from '@microsoft/fast-element';
@@ -15,7 +14,7 @@ import { updateState } from './updateState';
15
14
  * The default implementation for the Connect interface (HTTP-only).
16
15
  * @public
17
16
  */
18
- let DefaultHttpConnect = DefaultHttpConnect_1 = class DefaultHttpConnect {
17
+ let DefaultHttpConnect = class DefaultHttpConnect {
19
18
  get isConnected() {
20
19
  return this._isConnected;
21
20
  }
@@ -68,8 +67,8 @@ let DefaultHttpConnect = DefaultHttpConnect_1 = class DefaultHttpConnect {
68
67
  });
69
68
  }
70
69
  send(message, needsHandling) {
71
- return this.http.post(DefaultHttpConnect_1.getUrl(this.host, message), {
72
- body: DefaultHttpConnect_1.getBody(message),
70
+ return this.http.post(DefaultHttpConnect.getUrl(this.host, message), {
71
+ body: DefaultHttpConnect.getBody(message),
73
72
  headers: this.messageBuilder.createHTTPHeadersFromMessage(message),
74
73
  });
75
74
  }
@@ -145,7 +144,7 @@ let DefaultHttpConnect = DefaultHttpConnect_1 = class DefaultHttpConnect {
145
144
  }
146
145
  getMessage(message) {
147
146
  return __awaiter(this, void 0, void 0, function* () {
148
- return this.http.get(DefaultHttpConnect_1.getUrl(this.host, message), {
147
+ return this.http.get(DefaultHttpConnect.getUrl(this.host, message), {
149
148
  headers: this.messageBuilder.createHTTPHeadersFromMessage(message),
150
149
  });
151
150
  });
@@ -175,8 +174,8 @@ let DefaultHttpConnect = DefaultHttpConnect_1 = class DefaultHttpConnect {
175
174
  });
176
175
  });
177
176
  }
178
- getMetadata(resourceName_1) {
179
- return __awaiter(this, arguments, void 0, function* (resourceName, useCache = true) {
177
+ getMetadata(resourceName, useCache = true) {
178
+ return __awaiter(this, void 0, void 0, function* () {
180
179
  const metaRequestMessage = this.messageBuilder.createMetaRequestMessage(resourceName);
181
180
  logger.debug(`HTTP MODE - ${metaRequestMessage.MESSAGE_TYPE} (metadata) message created -> `, metaRequestMessage);
182
181
  // what was top level payload using websockets is now under DETAILS for some reason
@@ -302,7 +301,7 @@ __decorate([
302
301
  __decorate([
303
302
  volatile
304
303
  ], DefaultHttpConnect.prototype, "isConnected", null);
305
- DefaultHttpConnect = DefaultHttpConnect_1 = __decorate([
304
+ DefaultHttpConnect = __decorate([
306
305
  __param(0, Http),
307
306
  __param(1, MessageBuilder),
308
307
  __param(2, Session),
@@ -116,7 +116,11 @@ let DefaultSocket = class DefaultSocket {
116
116
  var _a;
117
117
  return (_a = this.url) !== null && _a !== void 0 ? _a : GENESIS_SOCKET_URL;
118
118
  }
119
- constructor(messageBuilder, session, serializer, uuid, status, user, config) {
119
+ constructor(messageBuilder, session, serializer, uuid, status,
120
+ /**
121
+ * Temp putting the user in place to bridge the hasValidSession logic.
122
+ */
123
+ user, config) {
120
124
  this.messageBuilder = messageBuilder;
121
125
  this.session = session;
122
126
  this.serializer = serializer;
@@ -200,8 +200,8 @@ let DefaultCredentialManager = class DefaultCredentialManager {
200
200
  return navigator.credentials.store(credentials);
201
201
  });
202
202
  }
203
- getCredentialsFromContainer() {
204
- return __awaiter(this, arguments, void 0, function* (options = defaultCredentialRequestOptions) {
203
+ getCredentialsFromContainer(options = defaultCredentialRequestOptions) {
204
+ return __awaiter(this, void 0, void 0, function* () {
205
205
  if (!supportsCredentialsContainer()) {
206
206
  return;
207
207
  }
@@ -53,8 +53,8 @@ let DefaultDatasource = class DefaultDatasource {
53
53
  // additional checks? regex? or maybe we can ask the server if it's a valid resource in the future
54
54
  return true;
55
55
  }
56
- init(options_1) {
57
- return __awaiter(this, arguments, void 0, function* (options, fetchMeta = this.fetchMetadataRequired, startStream = this.startStreamRequired) {
56
+ init(options, fetchMeta = this.fetchMetadataRequired, startStream = this.startStreamRequired) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
58
  this.fetchMetadataRequired = fetchMeta;
59
59
  this.options = Object.assign(Object.assign({}, this.config.options), options);
60
60
  const resourceName = this.options.resourceName;
@@ -133,8 +133,8 @@ let DefaultDatasource = class DefaultDatasource {
133
133
  ORDER_BY,
134
134
  REVERSE: this.options.reverse,
135
135
  // REQUEST_SERVER only
136
- DISABLE_POLLING: this.options.disablePolling, // component-level only
137
- POLLING_INTERVAL: this.options.pollingInterval, // component-level only
136
+ DISABLE_POLLING: this.options.disablePolling,
137
+ POLLING_INTERVAL: this.options.pollingInterval,
138
138
  REQUEST: this.options.request,
139
139
  };
140
140
  logger.debug('Getting configured params:', params);
@@ -187,8 +187,8 @@ let DefaultDatasource = class DefaultDatasource {
187
187
  }
188
188
  });
189
189
  }
190
- snapshotFiltered() {
191
- return __awaiter(this, arguments, void 0, function* (rowId = 'ROW_REF') {
190
+ snapshotFiltered(rowId = 'ROW_REF') {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
192
  const result = yield this.snapshot();
193
193
  if (Array.isArray(result)) {
194
194
  return result;
@@ -230,8 +230,8 @@ let DefaultDatasource = class DefaultDatasource {
230
230
  }));
231
231
  }
232
232
  fetchAndApplyMetadata(resourceName) {
233
+ var _a, _b;
233
234
  return __awaiter(this, void 0, void 0, function* () {
234
- var _a, _b;
235
235
  try {
236
236
  logger.debug(`Requesting metadata for ${this.options.resourceName} Datasource`);
237
237
  const meta = yield this.connect.getMetadata(this.options.resourceName);
@@ -18,11 +18,12 @@ export const defaultNetworkMonitorConfig = {
18
18
  * The default when a custom check function is not explicitly provided for a resource.
19
19
  */
20
20
  resourceChecks: (sourceRef) => __awaiter(void 0, void 0, void 0, function* () {
21
+ var _a;
21
22
  const connect = getConnect();
22
23
  const message = yield connect.getMoreColumns(sourceRef);
23
24
  const lastUpdated = Date.now();
24
25
  const lastMessage = message;
25
- const isConnected = (message === null || message === void 0 ? void 0 : message.MESSAGE_TYPE) === MessageType.MORE_COLUMNS_ACK;
26
+ const isConnected = (_a = (message === null || message === void 0 ? void 0 : message.MESSAGE_TYPE) === MessageType.MORE_COLUMNS_ACK) !== null && _a !== void 0 ? _a : false;
26
27
  return {
27
28
  isConnected,
28
29
  lastUpdated,
@@ -54,8 +54,8 @@ let DefaultGenesisResources = class DefaultGenesisResources {
54
54
  this.resourcesPromise = undefined;
55
55
  }
56
56
  fetchResources() {
57
+ var _a;
57
58
  return __awaiter(this, void 0, void 0, function* () {
58
- var _a;
59
59
  if (this.resources) {
60
60
  return Promise.resolve();
61
61
  }
@@ -22,8 +22,8 @@ let DefaultKVStorage = class DefaultKVStorage {
22
22
  * @internal
23
23
  */
24
24
  checkAvailability() {
25
+ var _a;
25
26
  return __awaiter(this, void 0, void 0, function* () {
26
- var _a;
27
27
  const allSystemTables = yield this.connect.request('SYSTEM_TABLES');
28
28
  const isKVStoreAvailable = !!((_a = allSystemTables === null || allSystemTables === void 0 ? void 0 : allSystemTables.REPLY) === null || _a === void 0 ? void 0 : _a.find((table) => table.TABLE_NAME === 'KEY_VALUE'));
29
29
  if (!isKVStoreAvailable) {
@@ -61,8 +61,8 @@ let DefaultKVStorage = class DefaultKVStorage {
61
61
  });
62
62
  }
63
63
  get(key) {
64
+ var _a;
64
65
  return __awaiter(this, void 0, void 0, function* () {
65
- var _a;
66
66
  const params = {
67
67
  REQUEST: {
68
68
  USER_NAME: (_a = this.kvStorageConfig.authEmail) !== null && _a !== void 0 ? _a : this.user.userName,
@@ -112,8 +112,8 @@ let DefaultKVStorage = class DefaultKVStorage {
112
112
  * ```
113
113
  */
114
114
  list() {
115
+ var _a;
115
116
  return __awaiter(this, void 0, void 0, function* () {
116
- var _a;
117
117
  const params = {
118
118
  REQUEST: {
119
119
  USER_NAME: (_a = this.kvStorageConfig.authEmail) !== null && _a !== void 0 ? _a : this.user.userName,