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

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 +45 -29
  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 +8 -7
  11. package/dist/esm/connect/socket.js +1 -5
  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 +1 -2
  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 +4898 -2404
  18. package/dist/foundation-comms.d.ts +47 -31
  19. package/docs/api/foundation-comms.connect.md +1 -0
  20. package/docs/api/foundation-comms.connect.streamwithoutautoteardown.md +37 -0
  21. package/docs/api/foundation-comms.datasourceeventhandler.md +56 -30
  22. package/docs/api/foundation-comms.defaultentitydatasource._initialized.md +15 -0
  23. package/docs/api/foundation-comms.defaultentitydatasource.cache.md +19 -0
  24. package/docs/api/foundation-comms.defaultentitydatasource.disconnect.md +19 -0
  25. package/docs/api/foundation-comms.defaultentitydatasource.entitycache.md +14 -0
  26. package/docs/api/foundation-comms.defaultentitydatasource.entitymap.md +14 -0
  27. package/docs/api/foundation-comms.defaultentitydatasource.initialize.md +19 -0
  28. package/docs/api/foundation-comms.defaultentitydatasource.initialized.md +16 -0
  29. package/docs/api/foundation-comms.defaultentitydatasource.isempty.md +19 -0
  30. package/docs/api/foundation-comms.defaultentitydatasource.mapper.md +14 -0
  31. package/docs/api/foundation-comms.defaultentitydatasource.md +38 -0
  32. package/docs/api/foundation-comms.defaultentitydatasource.rowid.md +14 -0
  33. package/docs/api/foundation-comms.defaultentitydatasource.sourceref.md +14 -0
  34. package/docs/api/foundation-comms.defaultentitydatasource.subscription.md +14 -0
  35. package/docs/api/foundation-comms.defaultentitydatasource.subscriptionloggedoff.md +14 -0
  36. package/docs/api/foundation-comms.defaultkvstorage._constructor_.md +25 -0
  37. package/docs/api/foundation-comms.defaultkvstorage.md +30 -0
  38. package/docs/api/foundation-comms.defaultkvstorage.user.md +14 -0
  39. package/docs/api/foundation-comms.defaultkvstorageconfig.md +16 -0
  40. package/docs/api/foundation-comms.entitydatasource.cache.md +19 -0
  41. package/docs/api/foundation-comms.entitydatasource.disconnect.md +22 -0
  42. package/docs/api/foundation-comms.entitydatasource.initialize.md +29 -0
  43. package/docs/api/foundation-comms.entitydatasource.isempty.md +19 -0
  44. package/docs/api/foundation-comms.entitydatasource.md +81 -0
  45. package/docs/api/foundation-comms.entitydatasourceinit.fetchmeta.md +14 -0
  46. package/docs/api/foundation-comms.entitydatasourceinit.mapper.md +14 -0
  47. package/docs/api/foundation-comms.entitydatasourceinit.md +25 -0
  48. package/docs/api/foundation-comms.entitydatasourceinit.options.md +14 -0
  49. package/docs/api/foundation-comms.extractfielddefinitions.md +14 -1
  50. package/docs/api/foundation-comms.getkvstorage.md +1 -1
  51. package/docs/api/foundation-comms.keyvalue.base64.md +16 -0
  52. package/docs/api/foundation-comms.keyvalue.expiration.md +16 -0
  53. package/docs/api/foundation-comms.keyvalue.key.md +16 -0
  54. package/docs/api/foundation-comms.keyvalue.md +27 -0
  55. package/docs/api/foundation-comms.keyvalue.metadata.md +18 -0
  56. package/docs/api/foundation-comms.keyvalue.value.md +16 -0
  57. package/docs/api/foundation-comms.keyvaluetransfer.deserialize.md +25 -0
  58. package/docs/api/foundation-comms.keyvaluetransfer.kv.md +14 -0
  59. package/docs/api/foundation-comms.keyvaluetransfer.md +30 -0
  60. package/docs/api/foundation-comms.keyvaluetransfer.serialize.md +25 -0
  61. package/docs/api/foundation-comms.kveventfailureresponse.md +21 -0
  62. package/docs/api/foundation-comms.kveventmessagetype.md +24 -0
  63. package/docs/api/foundation-comms.kvmessagetype.md +24 -0
  64. package/docs/api/foundation-comms.kvstorage.delete.md +25 -0
  65. package/docs/api/foundation-comms.kvstorage.get.md +18 -0
  66. package/docs/api/foundation-comms.kvstorage.get_1.md +25 -0
  67. package/docs/api/foundation-comms.kvstorage.list.md +18 -0
  68. package/docs/api/foundation-comms.kvstorage.md +31 -0
  69. package/docs/api/foundation-comms.kvstorage.put.md +25 -0
  70. package/docs/api/foundation-comms.kvstorageconfig.account.md +16 -0
  71. package/docs/api/foundation-comms.kvstorageconfig.authemail.md +21 -0
  72. package/docs/api/foundation-comms.kvstorageconfig.authkey.md +16 -0
  73. package/docs/api/foundation-comms.kvstorageconfig.md +26 -0
  74. package/docs/api/foundation-comms.kvstorageconfig.namespace.md +16 -0
  75. package/docs/api/foundation-comms.kvvalue.md +16 -0
  76. package/docs/api/foundation-comms.md +19 -6
  77. package/docs/api/foundation-comms.messagehaserrorcode.md +13 -1
  78. package/docs/api/foundation-comms.messageorthrow.md +14 -1
  79. package/docs/api/foundation-comms.retryinterval.md +15 -1
  80. package/docs/api/foundation-comms.socket.md +1 -0
  81. package/docs/api/foundation-comms.socket.sendforstreamwithoutteardown.md +31 -0
  82. package/docs/api/foundation-comms.tofieldmetadata.md +14 -1
  83. package/docs/{api-report.md → api-report.md.api.md} +47 -31
  84. package/package.json +14 -14
@@ -66,11 +66,15 @@ 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;
69
70
  spellcheck: boolean;
70
71
  title: string;
71
72
  translate: boolean;
72
73
  attachInternals(): ElementInternals;
73
74
  click(): void;
75
+ hidePopover(): void;
76
+ showPopover(): void;
77
+ togglePopover(force?: boolean): boolean;
74
78
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
75
79
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
76
80
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
@@ -99,9 +103,12 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
99
103
  slot: string;
100
104
  readonly tagName: string;
101
105
  attachShadow(init: ShadowRootInit): ShadowRoot;
106
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
102
107
  closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
103
108
  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];
104
110
  closest<E extends Element = Element>(selectors: string): E;
111
+ computedStyleMap(): StylePropertyMapReadOnly;
105
112
  getAttribute(qualifiedName: string): string;
106
113
  getAttributeNS(namespace: string, localName: string): string;
107
114
  getAttributeNames(): string[];
@@ -110,11 +117,14 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
110
117
  getBoundingClientRect(): DOMRect;
111
118
  getClientRects(): DOMRectList;
112
119
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
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]>;
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]>;
115
124
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
116
125
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
117
126
  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>;
118
128
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
119
129
  hasAttribute(qualifiedName: string): boolean;
120
130
  hasAttributeNS(namespace: string, localName: string): boolean;
@@ -172,24 +182,24 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
172
182
  normalize(): void;
173
183
  removeChild<T_2 extends Node>(child: T_2): T_2;
174
184
  replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
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;
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;
193
203
  dispatchEvent(event: Event): boolean;
194
204
  ariaAtomic: string;
195
205
  ariaAutoComplete: string;
@@ -197,9 +207,9 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
197
207
  ariaChecked: string;
198
208
  ariaColCount: string;
199
209
  ariaColIndex: string;
200
- ariaColIndexText: string;
201
210
  ariaColSpan: string;
202
211
  ariaCurrent: string;
212
+ ariaDescription: string;
203
213
  ariaDisabled: string;
204
214
  ariaExpanded: string;
205
215
  ariaHasPopup: string;
@@ -221,7 +231,6 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
221
231
  ariaRoleDescription: string;
222
232
  ariaRowCount: string;
223
233
  ariaRowIndex: string;
224
- ariaRowIndexText: string;
225
234
  ariaRowSpan: string;
226
235
  ariaSelected: string;
227
236
  ariaSetSize: string;
@@ -246,17 +255,19 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
246
255
  readonly lastElementChild: Element;
247
256
  append(...nodes: (string | Node)[]): void;
248
257
  prepend(...nodes: (string | Node)[]): void;
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];
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];
251
262
  querySelector<E_1 extends Element = Element>(selectors: string): E_1;
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]>;
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]>;
254
267
  querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
255
268
  replaceChildren(...nodes: (string | Node)[]): void;
256
269
  readonly assignedSlot: HTMLSlotElement;
257
- oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
258
- oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
259
- onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
270
+ readonly attributeStyleMap: StylePropertyMap;
260
271
  readonly style: CSSStyleDeclaration;
261
272
  contentEditable: string;
262
273
  enterKeyHint: string;
@@ -269,6 +280,7 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
269
280
  onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
270
281
  onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
271
282
  onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
283
+ onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
272
284
  onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
273
285
  oncancel: (this: GlobalEventHandlers, ev: Event) => any;
274
286
  oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
@@ -277,7 +289,9 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
277
289
  onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
278
290
  onclose: (this: GlobalEventHandlers, ev: Event) => any;
279
291
  oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
292
+ oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
280
293
  oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
294
+ oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
281
295
  ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
282
296
  ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
283
297
  ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
@@ -310,6 +324,7 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
310
324
  onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
311
325
  onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
312
326
  onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
327
+ onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
313
328
  onpause: (this: GlobalEventHandlers, ev: Event) => any;
314
329
  onplay: (this: GlobalEventHandlers, ev: Event) => any;
315
330
  onplaying: (this: GlobalEventHandlers, ev: Event) => any;
@@ -326,6 +341,7 @@ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FA
326
341
  onreset: (this: GlobalEventHandlers, ev: Event) => any;
327
342
  onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
328
343
  onscroll: (this: GlobalEventHandlers, ev: Event) => any;
344
+ onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
329
345
  onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
330
346
  onseeked: (this: GlobalEventHandlers, ev: Event) => any;
331
347
  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';
1
2
  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":"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"}
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"}
@@ -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<any>>;
18
+ socketMessagesSubject: SocketSubject<Message>;
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,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"}
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"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.34.9"
8
+ "packageVersion": "7.48.0"
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;
43
42
  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;
86
85
  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(host = GENESIS_SOCKET_URL) {
53
- return __awaiter(this, void 0, void 0, function* () {
52
+ connect() {
53
+ return __awaiter(this, arguments, void 0, function* (host = GENESIS_SOCKET_URL) {
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, useCache = true) {
121
- var _a;
122
- return __awaiter(this, void 0, void 0, function* () {
120
+ getMetadata(resourceName_1) {
121
+ return __awaiter(this, arguments, void 0, function* (resourceName, useCache = true) {
122
+ var _a;
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, useCache = true) {
154
- var _a;
155
- return __awaiter(this, void 0, void 0, function* () {
153
+ getJSONSchema(resourceName_1) {
154
+ return __awaiter(this, arguments, void 0, function* (resourceName, useCache = true) {
155
+ var _a;
156
156
  if (useCache) {
157
157
  if (this.metaCache.hasJsonSchemaFor(resourceName)) {
158
158
  logger.debug(`Cached JsonSchema retrieved for ${resourceName}`);
@@ -1,3 +1,4 @@
1
+ var DefaultHttpConnect_1;
1
2
  import { __awaiter, __decorate, __param } from "tslib";
2
3
  import { JSONSerializer } from '@genesislcap/foundation-utils';
3
4
  import { observable, volatile } from '@microsoft/fast-element';
@@ -14,7 +15,7 @@ import { updateState } from './updateState';
14
15
  * The default implementation for the Connect interface (HTTP-only).
15
16
  * @public
16
17
  */
17
- let DefaultHttpConnect = class DefaultHttpConnect {
18
+ let DefaultHttpConnect = DefaultHttpConnect_1 = class DefaultHttpConnect {
18
19
  get isConnected() {
19
20
  return this._isConnected;
20
21
  }
@@ -67,8 +68,8 @@ let DefaultHttpConnect = class DefaultHttpConnect {
67
68
  });
68
69
  }
69
70
  send(message, needsHandling) {
70
- return this.http.post(DefaultHttpConnect.getUrl(this.host, message), {
71
- body: DefaultHttpConnect.getBody(message),
71
+ return this.http.post(DefaultHttpConnect_1.getUrl(this.host, message), {
72
+ body: DefaultHttpConnect_1.getBody(message),
72
73
  headers: this.messageBuilder.createHTTPHeadersFromMessage(message),
73
74
  });
74
75
  }
@@ -144,7 +145,7 @@ let DefaultHttpConnect = class DefaultHttpConnect {
144
145
  }
145
146
  getMessage(message) {
146
147
  return __awaiter(this, void 0, void 0, function* () {
147
- return this.http.get(DefaultHttpConnect.getUrl(this.host, message), {
148
+ return this.http.get(DefaultHttpConnect_1.getUrl(this.host, message), {
148
149
  headers: this.messageBuilder.createHTTPHeadersFromMessage(message),
149
150
  });
150
151
  });
@@ -174,8 +175,8 @@ let DefaultHttpConnect = class DefaultHttpConnect {
174
175
  });
175
176
  });
176
177
  }
177
- getMetadata(resourceName, useCache = true) {
178
- return __awaiter(this, void 0, void 0, function* () {
178
+ getMetadata(resourceName_1) {
179
+ return __awaiter(this, arguments, void 0, function* (resourceName, useCache = true) {
179
180
  const metaRequestMessage = this.messageBuilder.createMetaRequestMessage(resourceName);
180
181
  logger.debug(`HTTP MODE - ${metaRequestMessage.MESSAGE_TYPE} (metadata) message created -> `, metaRequestMessage);
181
182
  // what was top level payload using websockets is now under DETAILS for some reason
@@ -301,7 +302,7 @@ __decorate([
301
302
  __decorate([
302
303
  volatile
303
304
  ], DefaultHttpConnect.prototype, "isConnected", null);
304
- DefaultHttpConnect = __decorate([
305
+ DefaultHttpConnect = DefaultHttpConnect_1 = __decorate([
305
306
  __param(0, Http),
306
307
  __param(1, MessageBuilder),
307
308
  __param(2, Session),
@@ -116,11 +116,7 @@ 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,
120
- /**
121
- * Temp putting the user in place to bridge the hasValidSession logic.
122
- */
123
- user, config) {
119
+ constructor(messageBuilder, session, serializer, uuid, status, user, config) {
124
120
  this.messageBuilder = messageBuilder;
125
121
  this.session = session;
126
122
  this.serializer = serializer;
@@ -200,8 +200,8 @@ let DefaultCredentialManager = class DefaultCredentialManager {
200
200
  return navigator.credentials.store(credentials);
201
201
  });
202
202
  }
203
- getCredentialsFromContainer(options = defaultCredentialRequestOptions) {
204
- return __awaiter(this, void 0, void 0, function* () {
203
+ getCredentialsFromContainer() {
204
+ return __awaiter(this, arguments, void 0, function* (options = defaultCredentialRequestOptions) {
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, fetchMeta = this.fetchMetadataRequired, startStream = this.startStreamRequired) {
57
- return __awaiter(this, void 0, void 0, function* () {
56
+ init(options_1) {
57
+ return __awaiter(this, arguments, void 0, function* (options, fetchMeta = this.fetchMetadataRequired, startStream = this.startStreamRequired) {
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,
137
- POLLING_INTERVAL: this.options.pollingInterval,
136
+ DISABLE_POLLING: this.options.disablePolling, // component-level only
137
+ POLLING_INTERVAL: this.options.pollingInterval, // component-level only
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(rowId = 'ROW_REF') {
191
- return __awaiter(this, void 0, void 0, function* () {
190
+ snapshotFiltered() {
191
+ return __awaiter(this, arguments, void 0, function* (rowId = 'ROW_REF') {
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;
234
233
  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,12 +18,11 @@ 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;
22
21
  const connect = getConnect();
23
22
  const message = yield connect.getMoreColumns(sourceRef);
24
23
  const lastUpdated = Date.now();
25
24
  const lastMessage = message;
26
- const isConnected = (_a = (message === null || message === void 0 ? void 0 : message.MESSAGE_TYPE) === MessageType.MORE_COLUMNS_ACK) !== null && _a !== void 0 ? _a : false;
25
+ const isConnected = (message === null || message === void 0 ? void 0 : message.MESSAGE_TYPE) === MessageType.MORE_COLUMNS_ACK;
27
26
  return {
28
27
  isConnected,
29
28
  lastUpdated,
@@ -54,8 +54,8 @@ let DefaultGenesisResources = class DefaultGenesisResources {
54
54
  this.resourcesPromise = undefined;
55
55
  }
56
56
  fetchResources() {
57
- var _a;
58
57
  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;
26
25
  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;
65
64
  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;
116
115
  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,