@genesislcap/foundation-comms 14.302.0 → 14.302.1-alpha-945e484.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/auth/loginDTOMapper.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/connect/reconnectStrategy.d.ts.map +1 -1
- package/dist/dts/connect/socket.d.ts.map +1 -1
- package/dist/dts/connect/ticker.d.ts +1 -1
- package/dist/dts/connect/ticker.d.ts.map +1 -1
- package/dist/dts/connect/updateState.d.ts.map +1 -1
- package/dist/dts/credentialManager/credentialManager.types.d.ts +0 -1
- package/dist/dts/credentialManager/credentialManager.types.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.mixins.d.ts +259 -218
- package/dist/dts/datasource/datasource.mixins.d.ts.map +1 -1
- package/dist/dts/datasource/entityDatasource.d.ts.map +1 -1
- package/dist/dts/metadata/metadata.utils.d.ts.map +1 -1
- package/dist/dts/networkMonitor/service.d.ts.map +1 -1
- package/dist/dts/testing/mocks/auth/auth.d.ts +1 -2
- package/dist/dts/testing/mocks/auth/auth.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts +1 -1
- package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +1 -1
- package/dist/esm/auth/auth.js +2 -2
- package/dist/esm/connect/connect.js +8 -8
- package/dist/esm/connect/http.connect.js +8 -7
- package/dist/esm/connect/socket.js +16 -19
- package/dist/esm/connect/ticker.js +8 -6
- package/dist/esm/credentialManager/credentialManager.js +2 -2
- package/dist/esm/datasource/datasource.js +7 -7
- package/dist/esm/networkMonitor/config.js +1 -2
- package/dist/esm/resources/genesis/genesis.js +1 -1
- package/dist/esm/storage/kv/kv.service.js +3 -3
- package/dist/foundation-comms.api.json +3341 -626
- package/dist/foundation-comms.d.ts +261 -222
- package/docs/api/foundation-comms.auth.login.md +33 -3
- package/docs/api/foundation-comms.auth.md +128 -10
- package/docs/api/foundation-comms.autherror._constructor_.md +63 -5
- package/docs/api/foundation-comms.autherror.haserrorcode.md +31 -3
- package/docs/api/foundation-comms.autherror.md +178 -15
- package/docs/api/foundation-comms.authtype.md +73 -6
- package/docs/api/foundation-comms.connect.commitevent.md +47 -4
- package/docs/api/foundation-comms.connect.connect.md +33 -3
- package/docs/api/foundation-comms.connect.datalogoff.md +33 -3
- package/docs/api/foundation-comms.connect.getavailableresources.md +33 -3
- package/docs/api/foundation-comms.connect.getjsonschema.md +33 -3
- package/docs/api/foundation-comms.connect.getmetadata.md +49 -4
- package/docs/api/foundation-comms.connect.getmorecolumns.md +33 -3
- package/docs/api/foundation-comms.connect.getmorerows.md +49 -4
- package/docs/api/foundation-comms.connect.md +287 -22
- package/docs/api/foundation-comms.connect.request.md +49 -4
- package/docs/api/foundation-comms.connect.snapshot.md +49 -4
- package/docs/api/foundation-comms.connect.stream.md +81 -6
- package/docs/api/foundation-comms.connect.streamstate.md +97 -7
- package/docs/api/foundation-comms.connect.streamwithoutautoteardown.md +112 -0
- package/docs/api/foundation-comms.connectconfig.md +79 -5
- package/docs/api/foundation-comms.connectevents.addcommitlistener.md +33 -3
- package/docs/api/foundation-comms.connectevents.addcommitresponselistener.md +33 -3
- package/docs/api/foundation-comms.connectevents.addmetadatalistener.md +33 -3
- package/docs/api/foundation-comms.connectevents.addstreamlistener.md +65 -5
- package/docs/api/foundation-comms.connectevents.md +56 -6
- package/docs/api/foundation-comms.connecteventsemitter.md +78 -8
- package/docs/api/foundation-comms.connecteventsemitter.oncommitevent.md +49 -4
- package/docs/api/foundation-comms.connecteventsemitter.oncommitresponseevent.md +49 -4
- package/docs/api/foundation-comms.connecteventsemitter.onmetadataevent.md +65 -5
- package/docs/api/foundation-comms.connecteventsemitter.onstreamcompleteevent.md +49 -4
- package/docs/api/foundation-comms.connecteventsemitter.onstreamerrorevent.md +65 -5
- package/docs/api/foundation-comms.connecteventsemitter.onstreamevent.md +81 -6
- package/docs/api/foundation-comms.credentialmanager.createbasiccredentials.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.createrefreshcredentials.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.createssocredentials.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.getcredentials.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.getcredentialsfromcontainer.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.md +287 -27
- package/docs/api/foundation-comms.credentialmanager.normaliselegacycredentialdata.md +49 -4
- package/docs/api/foundation-comms.credentialmanager.storecredentials.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.storecredentialsincontainer.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.storecredentialsincookie.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.validatebasiccredentials.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.validaterefreshcredentials.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.validatessocredentials.md +33 -3
- package/docs/api/foundation-comms.credentialmanager.validateusercredentialdata.md +49 -4
- package/docs/api/foundation-comms.credentialmanagerconfig.md +39 -3
- package/docs/api/foundation-comms.credentialmanagercookieconfig.md +92 -6
- package/docs/api/foundation-comms.criteriafilterstofields.md +33 -3
- package/docs/api/foundation-comms.dataserverresultfilter.md +49 -4
- package/docs/api/foundation-comms.datasource.addview.md +33 -3
- package/docs/api/foundation-comms.datasource.clearfilter.md +33 -3
- package/docs/api/foundation-comms.datasource.createitem.md +33 -3
- package/docs/api/foundation-comms.datasource.datahandler.md +33 -3
- package/docs/api/foundation-comms.datasource.deleteitem.md +33 -3
- package/docs/api/foundation-comms.datasource.dropview.md +33 -3
- package/docs/api/foundation-comms.datasource.getmetadata.md +33 -3
- package/docs/api/foundation-comms.datasource.init.md +65 -5
- package/docs/api/foundation-comms.datasource.md +304 -25
- package/docs/api/foundation-comms.datasource.setfilter.md +65 -5
- package/docs/api/foundation-comms.datasource.snapshot.md +33 -3
- package/docs/api/foundation-comms.datasource.snapshotfiltered.md +33 -3
- package/docs/api/foundation-comms.datasource.updatedata.md +33 -3
- package/docs/api/foundation-comms.datasource.updateitem.md +49 -4
- package/docs/api/foundation-comms.datasource.validresourcename.md +31 -3
- package/docs/api/foundation-comms.datasourceconfig.criteriatofields.md +31 -3
- package/docs/api/foundation-comms.datasourceconfig.dataserverresultfilter.md +47 -4
- package/docs/api/foundation-comms.datasourceconfig.md +88 -8
- package/docs/api/foundation-comms.datasourcedefaults.md +148 -8
- package/docs/api/foundation-comms.datasourceeventhandler.md +300 -219
- package/docs/api/foundation-comms.datasourcemetadata.md +151 -9
- package/docs/api/foundation-comms.datasourceoptions.md +307 -17
- package/docs/api/foundation-comms.dataupdate.md +79 -5
- package/docs/api/foundation-comms.dataview.md +98 -6
- package/docs/api/foundation-comms.defaultauth._constructor_.md +87 -7
- package/docs/api/foundation-comms.defaultauth.login.md +31 -3
- package/docs/api/foundation-comms.defaultauth.md +195 -15
- package/docs/api/foundation-comms.defaultconnect._constructor_.md +87 -7
- package/docs/api/foundation-comms.defaultconnect.commitevent.md +47 -4
- package/docs/api/foundation-comms.defaultconnect.connect.md +33 -3
- package/docs/api/foundation-comms.defaultconnect.datalogoff.md +31 -3
- package/docs/api/foundation-comms.defaultconnect.getavailableresources.md +33 -3
- package/docs/api/foundation-comms.defaultconnect.getjsonschema.md +47 -4
- package/docs/api/foundation-comms.defaultconnect.getmetadata.md +47 -4
- package/docs/api/foundation-comms.defaultconnect.getmorecolumns.md +31 -3
- package/docs/api/foundation-comms.defaultconnect.getmorerows.md +47 -4
- package/docs/api/foundation-comms.defaultconnect.md +384 -30
- package/docs/api/foundation-comms.defaultconnect.request.md +47 -4
- package/docs/api/foundation-comms.defaultconnect.send.md +47 -4
- package/docs/api/foundation-comms.defaultconnect.setvalidsession.md +31 -3
- package/docs/api/foundation-comms.defaultconnect.snapshot.md +47 -4
- package/docs/api/foundation-comms.defaultconnect.stream.md +75 -6
- package/docs/api/foundation-comms.defaultconnect.streamstate.md +95 -7
- package/docs/api/foundation-comms.defaultconnect.streamwithoutautoteardown.md +75 -6
- package/docs/api/foundation-comms.defaultconnectevents.addcommitlistener.md +33 -3
- package/docs/api/foundation-comms.defaultconnectevents.addcommitresponselistener.md +33 -3
- package/docs/api/foundation-comms.defaultconnectevents.addmetadatalistener.md +33 -3
- package/docs/api/foundation-comms.defaultconnectevents.addstreamlistener.md +65 -5
- package/docs/api/foundation-comms.defaultconnectevents.md +157 -12
- package/docs/api/foundation-comms.defaultconnectevents.oncommitevent.md +47 -4
- package/docs/api/foundation-comms.defaultconnectevents.oncommitresponseevent.md +49 -4
- package/docs/api/foundation-comms.defaultconnectevents.onmetadataevent.md +65 -5
- package/docs/api/foundation-comms.defaultconnectevents.onstreamcompleteevent.md +49 -4
- package/docs/api/foundation-comms.defaultconnectevents.onstreamerrorevent.md +65 -5
- package/docs/api/foundation-comms.defaultconnectevents.onstreamevent.md +81 -6
- package/docs/api/foundation-comms.defaultcredentialmanager._constructor_.md +47 -4
- package/docs/api/foundation-comms.defaultcredentialmanager.createbasiccredentials.md +31 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.createrefreshcredentials.md +33 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.createssocredentials.md +33 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.getcredentials.md +33 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.getcredentialsfromcontainer.md +33 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.md +348 -30
- package/docs/api/foundation-comms.defaultcredentialmanager.normaliselegacycredentialdata.md +49 -4
- package/docs/api/foundation-comms.defaultcredentialmanager.storecredentials.md +31 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.storecredentialsincontainer.md +31 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.storecredentialsincookie.md +31 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.validatebasiccredentials.md +31 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.validaterefreshcredentials.md +31 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.validatessocredentials.md +31 -3
- package/docs/api/foundation-comms.defaultcredentialmanager.validateusercredentialdata.md +47 -4
- package/docs/api/foundation-comms.defaultdatasource._constructor_.md +87 -7
- package/docs/api/foundation-comms.defaultdatasource.fetchandapplymetadata.md +31 -3
- package/docs/api/foundation-comms.defaultdatasource.init.md +63 -5
- package/docs/api/foundation-comms.defaultdatasource.md +488 -32
- package/docs/api/foundation-comms.defaultdatasource.snapshot.md +33 -3
- package/docs/api/foundation-comms.defaultdatasource.snapshotfiltered.md +33 -3
- package/docs/api/foundation-comms.defaultdatasource.validresourcename.md +31 -3
- package/docs/api/foundation-comms.defaultentitydatasource._initialized.md +15 -0
- package/docs/api/foundation-comms.defaultentitydatasource.cache.md +19 -0
- package/docs/api/foundation-comms.defaultentitydatasource.disconnect.md +19 -0
- package/docs/api/foundation-comms.defaultentitydatasource.entitycache.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.entitymap.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.initialize.md +19 -0
- package/docs/api/foundation-comms.defaultentitydatasource.initialized.md +16 -0
- package/docs/api/foundation-comms.defaultentitydatasource.isempty.md +19 -0
- package/docs/api/foundation-comms.defaultentitydatasource.mapper.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.md +312 -0
- package/docs/api/foundation-comms.defaultentitydatasource.rowid.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.sourceref.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.subscription.md +14 -0
- package/docs/api/foundation-comms.defaultentitydatasource.subscriptionloggedoff.md +14 -0
- package/docs/api/foundation-comms.defaultfoundationanalytics._constructor_.md +31 -3
- package/docs/api/foundation-comms.defaultfoundationanalytics.md +74 -7
- package/docs/api/foundation-comms.defaultfoundationanalytics.trackevent.md +45 -4
- package/docs/api/foundation-comms.defaultfoundationanalytics.trackevent_1.md +45 -4
- package/docs/api/foundation-comms.defaultgenesisresources._constructor_.md +45 -4
- package/docs/api/foundation-comms.defaultgenesisresources.getresourcetypefor.md +33 -3
- package/docs/api/foundation-comms.defaultgenesisresources.isvalidresource.md +33 -3
- package/docs/api/foundation-comms.defaultgenesisresources.md +230 -17
- package/docs/api/foundation-comms.defaulthttp._constructor_.md +31 -3
- package/docs/api/foundation-comms.defaulthttp.get.md +45 -4
- package/docs/api/foundation-comms.defaulthttp.md +72 -7
- package/docs/api/foundation-comms.defaulthttp.post.md +45 -4
- package/docs/api/foundation-comms.defaulthttpconnect._constructor_.md +101 -8
- package/docs/api/foundation-comms.defaulthttpconnect.commitevent.md +47 -4
- package/docs/api/foundation-comms.defaulthttpconnect.connect.md +31 -3
- package/docs/api/foundation-comms.defaulthttpconnect.datalogoff.md +31 -3
- package/docs/api/foundation-comms.defaulthttpconnect.getavailableresources.md +33 -3
- package/docs/api/foundation-comms.defaulthttpconnect.getjsonschema.md +31 -3
- package/docs/api/foundation-comms.defaulthttpconnect.getmetadata.md +47 -4
- package/docs/api/foundation-comms.defaulthttpconnect.getmorecolumns.md +31 -3
- package/docs/api/foundation-comms.defaulthttpconnect.getmorerows.md +31 -3
- package/docs/api/foundation-comms.defaulthttpconnect.md +376 -30
- package/docs/api/foundation-comms.defaulthttpconnect.request.md +47 -4
- package/docs/api/foundation-comms.defaulthttpconnect.send.md +47 -4
- package/docs/api/foundation-comms.defaulthttpconnect.setvalidsession.md +31 -3
- package/docs/api/foundation-comms.defaulthttpconnect.snapshot.md +47 -4
- package/docs/api/foundation-comms.defaulthttpconnect.stream.md +75 -6
- package/docs/api/foundation-comms.defaulthttpconnect.streamstate.md +95 -7
- package/docs/api/foundation-comms.defaulthttpconnect.streamwithoutautoteardown.md +75 -6
- package/docs/api/foundation-comms.defaultkvstorage._constructor_.md +81 -0
- package/docs/api/foundation-comms.defaultkvstorage.md +98 -0
- package/docs/api/foundation-comms.defaultkvstorage.user.md +14 -0
- package/docs/api/foundation-comms.defaultkvstorageconfig.md +16 -0
- package/docs/api/foundation-comms.defaultmessagebuilder._constructor_.md +45 -4
- package/docs/api/foundation-comms.defaultmessagebuilder.createchangepasswordmessage.md +59 -5
- package/docs/api/foundation-comms.defaultmessagebuilder.createcommitmessage.md +47 -4
- package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogoffmessage.md +31 -3
- package/docs/api/foundation-comms.defaultmessagebuilder.createdatalogonmessage.md +47 -4
- package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordmessage.md +61 -5
- package/docs/api/foundation-comms.defaultmessagebuilder.createforgotpasswordtokenmessage.md +75 -6
- package/docs/api/foundation-comms.defaultmessagebuilder.createheartbeatpingmessage.md +33 -3
- package/docs/api/foundation-comms.defaultmessagebuilder.createhttpheadersfrommessage.md +47 -4
- package/docs/api/foundation-comms.defaultmessagebuilder.createloginmessage.md +31 -3
- package/docs/api/foundation-comms.defaultmessagebuilder.createlogoutmessage.md +33 -3
- package/docs/api/foundation-comms.defaultmessagebuilder.createmetarequestmessage.md +47 -4
- package/docs/api/foundation-comms.defaultmessagebuilder.createmorecolumnsmessage.md +31 -3
- package/docs/api/foundation-comms.defaultmessagebuilder.createmorerowsmessage.md +47 -4
- package/docs/api/foundation-comms.defaultmessagebuilder.createrequestmessage.md +47 -4
- package/docs/api/foundation-comms.defaultmessagebuilder.createresourcesmessage.md +33 -3
- package/docs/api/foundation-comms.defaultmessagebuilder.md +240 -21
- package/docs/api/foundation-comms.defaultmetacache.getjsonschemafor.md +31 -3
- package/docs/api/foundation-comms.defaultmetacache.getmetadatafor.md +31 -3
- package/docs/api/foundation-comms.defaultmetacache.hasjsonschemafor.md +31 -3
- package/docs/api/foundation-comms.defaultmetacache.hasmetadatafor.md +31 -3
- package/docs/api/foundation-comms.defaultmetacache.md +145 -12
- package/docs/api/foundation-comms.defaultmetacache.setjsonschemafor.md +45 -4
- package/docs/api/foundation-comms.defaultmetacache.setmetadatafor.md +45 -4
- package/docs/api/foundation-comms.defaultnetworkmonitor.addresource.md +49 -4
- package/docs/api/foundation-comms.defaultnetworkmonitor.md +155 -13
- package/docs/api/foundation-comms.defaultnetworkmonitor.removeresource.md +33 -3
- package/docs/api/foundation-comms.defaultsession.getitem.md +45 -4
- package/docs/api/foundation-comms.defaultsession.getlocalstorageitem.md +31 -3
- package/docs/api/foundation-comms.defaultsession.getsessionstorageitem.md +31 -3
- package/docs/api/foundation-comms.defaultsession.md +212 -18
- package/docs/api/foundation-comms.defaultsession.removeitem.md +45 -4
- package/docs/api/foundation-comms.defaultsession.removelocalstorageitem.md +31 -3
- package/docs/api/foundation-comms.defaultsession.removesessionstorageitem.md +31 -3
- package/docs/api/foundation-comms.defaultsession.setauthresult.md +31 -3
- package/docs/api/foundation-comms.defaultsession.setitem.md +59 -5
- package/docs/api/foundation-comms.defaultsession.setlocalstorageitem.md +45 -4
- package/docs/api/foundation-comms.defaultsession.setsessionstorageitem.md +45 -4
- package/docs/api/foundation-comms.defaultsession.setstoragekeyprefix.md +31 -3
- package/docs/api/foundation-comms.defaultsocket._constructor_.md +115 -9
- package/docs/api/foundation-comms.defaultsocket.connect.md +65 -5
- package/docs/api/foundation-comms.defaultsocket.md +373 -25
- package/docs/api/foundation-comms.defaultsocket.send.md +47 -4
- package/docs/api/foundation-comms.defaultsocket.sendforstream.md +75 -6
- package/docs/api/foundation-comms.defaultsocket.sendforstreamwithoutteardown.md +59 -5
- package/docs/api/foundation-comms.defaultsocketstatus.md +334 -22
- package/docs/api/foundation-comms.defaultsocketstatus.onclose.md +31 -3
- package/docs/api/foundation-comms.entitydatasource.cache.md +19 -0
- package/docs/api/foundation-comms.entitydatasource.disconnect.md +22 -0
- package/docs/api/foundation-comms.entitydatasource.initialize.md +57 -0
- package/docs/api/foundation-comms.entitydatasource.isempty.md +19 -0
- package/docs/api/foundation-comms.entitydatasource.md +171 -0
- package/docs/api/foundation-comms.entitydatasourceinit.fetchmeta.md +14 -0
- package/docs/api/foundation-comms.entitydatasourceinit.mapper.md +14 -0
- package/docs/api/foundation-comms.entitydatasourceinit.md +99 -0
- package/docs/api/foundation-comms.entitydatasourceinit.options.md +14 -0
- package/docs/api/foundation-comms.eventmessagetype.md +213 -16
- package/docs/api/foundation-comms.extractfielddefinitions.md +44 -1
- package/docs/api/foundation-comms.fieldtypeenum.md +129 -10
- package/docs/api/foundation-comms.foundationanalytics.md +45 -5
- package/docs/api/foundation-comms.foundationanalytics.trackevent.md +49 -4
- package/docs/api/foundation-comms.foundationanalytics.trackevent_1.md +49 -4
- package/docs/api/foundation-comms.foundationanalytics.trackevent_2.md +49 -4
- package/docs/api/foundation-comms.foundationanalyticsevent.controlclicked.md +39 -3
- package/docs/api/foundation-comms.foundationanalyticsevent.md +34 -4
- package/docs/api/foundation-comms.foundationanalyticsevent.routechanged.md +58 -4
- package/docs/api/foundation-comms.foundationanalyticseventtype.md +45 -4
- package/docs/api/foundation-comms.genesisresources.md +98 -6
- package/docs/api/foundation-comms.genesisresourcesconfig.md +60 -4
- package/docs/api/foundation-comms.genesisresourcesmock.getresourcetypefor.md +33 -3
- package/docs/api/foundation-comms.genesisresourcesmock.isvalidresource.md +33 -3
- package/docs/api/foundation-comms.genesisresourcesmock.md +142 -11
- package/docs/api/foundation-comms.getkvstorage.md +1 -1
- package/docs/api/foundation-comms.http.get.md +45 -4
- package/docs/api/foundation-comms.http.md +30 -4
- package/docs/api/foundation-comms.http.post.md +45 -4
- package/docs/api/foundation-comms.httprequestinit.md +41 -3
- package/docs/api/foundation-comms.jsonschemacache.getjsonschemafor.md +31 -3
- package/docs/api/foundation-comms.jsonschemacache.hasjsonschemafor.md +31 -3
- package/docs/api/foundation-comms.jsonschemacache.md +78 -8
- package/docs/api/foundation-comms.jsonschemacache.setjsonschemafor.md +45 -4
- package/docs/api/foundation-comms.keyvalue.base64.md +16 -0
- package/docs/api/foundation-comms.keyvalue.expiration.md +16 -0
- package/docs/api/foundation-comms.keyvalue.key.md +16 -0
- package/docs/api/foundation-comms.keyvalue.md +137 -0
- package/docs/api/foundation-comms.keyvalue.metadata.md +18 -0
- package/docs/api/foundation-comms.keyvalue.value.md +16 -0
- package/docs/api/foundation-comms.keyvaluetransfer.deserialize.md +53 -0
- package/docs/api/foundation-comms.keyvaluetransfer.kv.md +14 -0
- package/docs/api/foundation-comms.keyvaluetransfer.md +98 -0
- package/docs/api/foundation-comms.keyvaluetransfer.serialize.md +53 -0
- package/docs/api/foundation-comms.kveventfailureresponse.md +21 -0
- package/docs/api/foundation-comms.kveventmessagetype.md +69 -0
- package/docs/api/foundation-comms.kvmessagetype.md +69 -0
- package/docs/api/foundation-comms.kvstorage.delete.md +53 -0
- package/docs/api/foundation-comms.kvstorage.get.md +18 -0
- package/docs/api/foundation-comms.kvstorage.get_1.md +53 -0
- package/docs/api/foundation-comms.kvstorage.list.md +18 -0
- package/docs/api/foundation-comms.kvstorage.md +91 -0
- package/docs/api/foundation-comms.kvstorage.put.md +53 -0
- package/docs/api/foundation-comms.kvstorageconfig.account.md +16 -0
- package/docs/api/foundation-comms.kvstorageconfig.authemail.md +21 -0
- package/docs/api/foundation-comms.kvstorageconfig.authkey.md +16 -0
- package/docs/api/foundation-comms.kvstorageconfig.md +118 -0
- package/docs/api/foundation-comms.kvstorageconfig.namespace.md +16 -0
- package/docs/api/foundation-comms.kvvalue.md +16 -0
- package/docs/api/foundation-comms.logoutresult.md +60 -4
- package/docs/api/foundation-comms.md +2081 -189
- package/docs/api/foundation-comms.messagebuilder.createchangepasswordmessage.md +65 -5
- package/docs/api/foundation-comms.messagebuilder.createcommitmessage.md +49 -4
- package/docs/api/foundation-comms.messagebuilder.createdatalogoffmessage.md +33 -3
- package/docs/api/foundation-comms.messagebuilder.createdatalogonmessage.md +49 -4
- package/docs/api/foundation-comms.messagebuilder.createforgotpasswordmessage.md +65 -5
- package/docs/api/foundation-comms.messagebuilder.createforgotpasswordtokenmessage.md +81 -6
- package/docs/api/foundation-comms.messagebuilder.createheartbeatpingmessage.md +33 -3
- package/docs/api/foundation-comms.messagebuilder.createhttpheadersfrommessage.md +49 -4
- package/docs/api/foundation-comms.messagebuilder.createloginmessage.md +33 -3
- package/docs/api/foundation-comms.messagebuilder.createlogoutmessage.md +33 -3
- package/docs/api/foundation-comms.messagebuilder.createmetarequestmessage.md +49 -4
- package/docs/api/foundation-comms.messagebuilder.createmorecolumnsmessage.md +33 -3
- package/docs/api/foundation-comms.messagebuilder.createmorerowsmessage.md +49 -4
- package/docs/api/foundation-comms.messagebuilder.createrequestmessage.md +49 -4
- package/docs/api/foundation-comms.messagebuilder.createresourcesmessage.md +33 -3
- package/docs/api/foundation-comms.messagebuilder.md +186 -18
- package/docs/api/foundation-comms.messagecode.md +45 -4
- package/docs/api/foundation-comms.messagedetails.md +188 -18
- package/docs/api/foundation-comms.messagehaserrorcode.md +58 -1
- package/docs/api/foundation-comms.messageorthrow.md +44 -1
- package/docs/api/foundation-comms.messagetype.md +213 -16
- package/docs/api/foundation-comms.metadatacache.getmetadatafor.md +33 -3
- package/docs/api/foundation-comms.metadatacache.hasmetadatafor.md +33 -3
- package/docs/api/foundation-comms.metadatacache.md +86 -8
- package/docs/api/foundation-comms.metadatacache.setmetadatafor.md +49 -4
- package/docs/api/foundation-comms.monitoredresourcechecksresult.md +94 -6
- package/docs/api/foundation-comms.networkmonitor.addresource.md +49 -4
- package/docs/api/foundation-comms.networkmonitor.md +96 -10
- package/docs/api/foundation-comms.networkmonitor.removeresource.md +33 -3
- package/docs/api/foundation-comms.networkmonitor.runallchecks.md +49 -4
- package/docs/api/foundation-comms.networkmonitorconfig.md +231 -13
- package/docs/api/foundation-comms.normalisecriteria.md +49 -4
- package/docs/api/foundation-comms.resourcetype.md +59 -5
- package/docs/api/foundation-comms.retryinterval.md +60 -1
- package/docs/api/foundation-comms.serializedsocketstatus.md +217 -13
- package/docs/api/foundation-comms.serializer.deserialize.md +33 -3
- package/docs/api/foundation-comms.serializer.deserialize_1.md +33 -3
- package/docs/api/foundation-comms.serializer.deserialize_2.md +33 -3
- package/docs/api/foundation-comms.serializer.md +56 -6
- package/docs/api/foundation-comms.serializer.serialize.md +33 -3
- package/docs/api/foundation-comms.session.getitem.md +49 -4
- package/docs/api/foundation-comms.session.getlocalstorageitem.md +33 -3
- package/docs/api/foundation-comms.session.getsessionstorageitem.md +33 -3
- package/docs/api/foundation-comms.session.md +196 -18
- package/docs/api/foundation-comms.session.removeitem.md +49 -4
- package/docs/api/foundation-comms.session.removelocalstorageitem.md +33 -3
- package/docs/api/foundation-comms.session.removesessionstorageitem.md +33 -3
- package/docs/api/foundation-comms.session.setauthresult.md +33 -3
- package/docs/api/foundation-comms.session.setitem.md +65 -5
- package/docs/api/foundation-comms.session.setlocalstorageitem.md +49 -4
- package/docs/api/foundation-comms.session.setsessionstorageitem.md +49 -4
- package/docs/api/foundation-comms.session.setstoragekeyprefix.md +33 -3
- package/docs/api/foundation-comms.socket.connect.md +63 -5
- package/docs/api/foundation-comms.socket.md +109 -10
- package/docs/api/foundation-comms.socket.send.md +47 -4
- package/docs/api/foundation-comms.socket.sendforstream.md +75 -6
- package/docs/api/foundation-comms.socket.sendforstreamwithoutteardown.md +91 -0
- package/docs/api/foundation-comms.socketmessagehandler._constructor_.md +73 -6
- package/docs/api/foundation-comms.socketmessagehandler.md +137 -9
- package/docs/api/foundation-comms.socketobservable._constructor_.md +31 -3
- package/docs/api/foundation-comms.socketobservable.md +31 -3
- package/docs/api/foundation-comms.socketreconnectstrategy.md +45 -4
- package/docs/api/foundation-comms.socketstatus.md +69 -7
- package/docs/api/foundation-comms.socketstatus.onclose.md +31 -3
- package/docs/api/foundation-comms.socketsubject.md +31 -3
- package/docs/api/foundation-comms.tofieldmetadata.md +44 -1
- package/docs/api/foundation-comms.until.md +49 -4
- package/docs/api/index.md +21 -3
- package/docs/api-report.md.api.md +2909 -0
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/networkMonitor/service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAOpD,OAAO,EAAE,aAAa,EAAE,MAAM,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UjB;;;;;;;;;;OAUG;IACH,SAAS,CAAC,+BAA+B,CACvC,YAAY,EAAE,sBAAsB,EACpC,QAAQ,GAAE,OAAc,GACvB,sBAAsB;IAWzB;;OAEG;IACH,SAAS,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB;IA0BvF;;;OAGG;IACH,SAAS,CAAC,qBAAqB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO;IAgCxE;;OAEG;IACH,SAAS,CAAC,qBAAqB,CAAC,YAAY,EAAE,MAAM;IAIpD;;OAEG;IACH,SAAS,CAAC,eAAe;IAIzB;;OAEG;IACH,SAAS,CAAC,gBAAgB;IAK1B;;OAEG;IACH,SAAS,CAAC,wBAAwB;CAOnC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAElD"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { SetUserProperties } from '@genesislcap/foundation-user/dist/esm';
|
|
1
|
+
import { type User, type SetUserProperties } from '@genesislcap/foundation-user';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import type { Auth, AuthInfo, LoginResult, LogoutResult } from '../../../';
|
|
5
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/auth/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/auth/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,IAAI,EAAE,KAAK,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAE9F,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,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;IAGxC,OAAO,CAAC,iBAAiB,CAAuC;IAChE,IAAI,WAAW,IAAI,UAAU,CAAC,OAAO,CAAC,CAErC;IAED,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;IAYvD,aAAa;CAKd"}
|
|
@@ -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>;
|
|
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,
|
|
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"}
|
package/dist/esm/auth/auth.js
CHANGED
|
@@ -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(
|
|
53
|
-
return __awaiter(this,
|
|
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(
|
|
121
|
-
|
|
122
|
-
|
|
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(
|
|
154
|
-
|
|
155
|
-
|
|
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(
|
|
71
|
-
body:
|
|
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(
|
|
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(
|
|
178
|
-
return __awaiter(this,
|
|
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),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var DefaultSocket_1;
|
|
1
2
|
import { __awaiter, __decorate, __param } from "tslib";
|
|
2
3
|
import { User } from '@genesislcap/foundation-user';
|
|
3
4
|
import { LOGIN_DETAILS_URL, LOGIN_URL } from '@genesislcap/foundation-utils';
|
|
@@ -84,7 +85,7 @@ export class SocketMessageHandler {
|
|
|
84
85
|
* Default Socket implementation.
|
|
85
86
|
* @public
|
|
86
87
|
*/
|
|
87
|
-
let DefaultSocket = class DefaultSocket {
|
|
88
|
+
let DefaultSocket = DefaultSocket_1 = class DefaultSocket {
|
|
88
89
|
get isConfigured() {
|
|
89
90
|
return this.status.isConfigured;
|
|
90
91
|
}
|
|
@@ -120,11 +121,7 @@ let DefaultSocket = class DefaultSocket {
|
|
|
120
121
|
var _a;
|
|
121
122
|
return (_a = this.url) !== null && _a !== void 0 ? _a : GENESIS_SOCKET_URL;
|
|
122
123
|
}
|
|
123
|
-
constructor(messageBuilder, session, serializer, uuid, status,
|
|
124
|
-
/**
|
|
125
|
-
* Temp putting the user in place to bridge the hasValidSession logic.
|
|
126
|
-
*/
|
|
127
|
-
user, config) {
|
|
124
|
+
constructor(messageBuilder, session, serializer, uuid, status, user, config) {
|
|
128
125
|
this.messageBuilder = messageBuilder;
|
|
129
126
|
this.session = session;
|
|
130
127
|
this.serializer = serializer;
|
|
@@ -189,7 +186,7 @@ let DefaultSocket = class DefaultSocket {
|
|
|
189
186
|
deserializer: (event) => this.serializer.deserialize(event),
|
|
190
187
|
});
|
|
191
188
|
const onNextMessage = (receivedMessage) => __awaiter(this, void 0, void 0, function* () {
|
|
192
|
-
var
|
|
189
|
+
var _a;
|
|
193
190
|
const responseMessageReceivedLog = `Response Message received for SourceRef: ${receivedMessage.SOURCE_REF} | MessageType: ${receivedMessage.MESSAGE_TYPE}`;
|
|
194
191
|
this.logMessageTypeFlow(receivedMessage.MESSAGE_TYPE, logger.info, responseMessageReceivedLog);
|
|
195
192
|
const { SOURCE_REF, MESSAGE_TYPE } = receivedMessage;
|
|
@@ -208,7 +205,7 @@ let DefaultSocket = class DefaultSocket {
|
|
|
208
205
|
const systemDetails = receivedMessage.DETAILS;
|
|
209
206
|
// Reconfigures the heartbeat with system details from the login response
|
|
210
207
|
if (systemDetails.HEARTBEAT_INTERVAL_SECS &&
|
|
211
|
-
((
|
|
208
|
+
((_a = this.connectOptions) === null || _a === void 0 ? void 0 : _a.heartbeatInterval) === undefined) {
|
|
212
209
|
this.heartbeatInterval =
|
|
213
210
|
systemDetails.HEARTBEAT_INTERVAL_SECS * this.secondsMultiplier;
|
|
214
211
|
this.prepareHeartbeat();
|
|
@@ -296,14 +293,14 @@ let DefaultSocket = class DefaultSocket {
|
|
|
296
293
|
handleCookieBasedReauth() {
|
|
297
294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
298
295
|
// checking for stale locks, so we don't block reauth forever
|
|
299
|
-
const lockTimestamp = parseInt(localStorage.getItem(
|
|
296
|
+
const lockTimestamp = parseInt(localStorage.getItem(DefaultSocket_1.REAUTH_ACTION_LOCK_KEY) || '0');
|
|
300
297
|
const LOCK_TIMEOUT_MS = 30000;
|
|
301
298
|
if (Date.now() - lockTimestamp > LOCK_TIMEOUT_MS) {
|
|
302
|
-
localStorage.removeItem(
|
|
299
|
+
localStorage.removeItem(DefaultSocket_1.REAUTH_ACTION_LOCK_KEY);
|
|
303
300
|
}
|
|
304
301
|
// this is to prevent multiple tabs from trying to reauthenticate at the same time
|
|
305
|
-
if (!localStorage.getItem(
|
|
306
|
-
localStorage.setItem(
|
|
302
|
+
if (!localStorage.getItem(DefaultSocket_1.REAUTH_ACTION_LOCK_KEY)) {
|
|
303
|
+
localStorage.setItem(DefaultSocket_1.REAUTH_ACTION_LOCK_KEY, Date.now().toString());
|
|
307
304
|
// session might already be extended on another tab, so we first check if user is
|
|
308
305
|
// authenticated and if it is we just reconnect as cookies are shared between tabs and
|
|
309
306
|
// the browser uses latest one when establishing connection with ws
|
|
@@ -324,7 +321,7 @@ let DefaultSocket = class DefaultSocket {
|
|
|
324
321
|
window.location.reload();
|
|
325
322
|
}
|
|
326
323
|
}
|
|
327
|
-
localStorage.removeItem(
|
|
324
|
+
localStorage.removeItem(DefaultSocket_1.REAUTH_ACTION_LOCK_KEY);
|
|
328
325
|
// connect again to a new stream to use new session token from obtained cookie
|
|
329
326
|
yield this.connect();
|
|
330
327
|
}
|
|
@@ -335,7 +332,7 @@ let DefaultSocket = class DefaultSocket {
|
|
|
335
332
|
});
|
|
336
333
|
}
|
|
337
334
|
onStorageEvent(event) {
|
|
338
|
-
if (event.key ===
|
|
335
|
+
if (event.key === DefaultSocket_1.REAUTH_ACTION_LOCK_KEY && event.newValue === null) {
|
|
339
336
|
this.connect();
|
|
340
337
|
window.removeEventListener('storage', this.onStorageEvent);
|
|
341
338
|
}
|
|
@@ -356,11 +353,11 @@ let DefaultSocket = class DefaultSocket {
|
|
|
356
353
|
this.heartbeatTicker.stop();
|
|
357
354
|
}
|
|
358
355
|
const sendHeartbeat = () => __awaiter(this, void 0, void 0, function* () {
|
|
359
|
-
var
|
|
356
|
+
var _a, _b, _c;
|
|
360
357
|
if (!this.isConnected)
|
|
361
358
|
return;
|
|
362
|
-
const ping = this.messageBuilder.createHeartbeatPingMessage((
|
|
363
|
-
if ((
|
|
359
|
+
const ping = this.messageBuilder.createHeartbeatPingMessage((_a = this.connectOptions) === null || _a === void 0 ? void 0 : _a.verboseHeartbeat);
|
|
360
|
+
if ((_b = this.connectOptions) === null || _b === void 0 ? void 0 : _b.heartbeatPingCallback) {
|
|
364
361
|
this.connectOptions.heartbeatPingCallback(ping);
|
|
365
362
|
}
|
|
366
363
|
const pong = yield this.send(ping);
|
|
@@ -369,7 +366,7 @@ let DefaultSocket = class DefaultSocket {
|
|
|
369
366
|
if (this.user.isAuthenticated && !pong.IS_AUTHENTICATED) {
|
|
370
367
|
this.handleExpiredSession();
|
|
371
368
|
}
|
|
372
|
-
if ((
|
|
369
|
+
if ((_c = this.connectOptions) === null || _c === void 0 ? void 0 : _c.heartbeatPongCallback) {
|
|
373
370
|
this.connectOptions.heartbeatPongCallback(pong);
|
|
374
371
|
}
|
|
375
372
|
this.heartbeatIsEnabled =
|
|
@@ -571,7 +568,7 @@ __decorate([
|
|
|
571
568
|
__decorate([
|
|
572
569
|
observable
|
|
573
570
|
], DefaultSocket.prototype, "heartbeatIsEnabled", void 0);
|
|
574
|
-
DefaultSocket = __decorate([
|
|
571
|
+
DefaultSocket = DefaultSocket_1 = __decorate([
|
|
575
572
|
__param(0, MessageBuilder),
|
|
576
573
|
__param(1, Session),
|
|
577
574
|
__param(2, JSONSerializer),
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export class Ticker {
|
|
2
2
|
constructor(interval) {
|
|
3
3
|
this.interval = interval;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
}
|
|
5
|
+
get workerScript() {
|
|
6
|
+
return `
|
|
7
|
+
const startTime = Date.now();
|
|
8
|
+
setInterval(function() {
|
|
9
|
+
self.postMessage(Date.now() - startTime);
|
|
10
|
+
}, ${this.interval});
|
|
11
|
+
`;
|
|
10
12
|
}
|
|
11
13
|
start(tick) {
|
|
12
14
|
this.stop();
|
|
@@ -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,
|
|
203
|
+
getCredentialsFromContainer() {
|
|
204
|
+
return __awaiter(this, arguments, void 0, function* (options = defaultCredentialRequestOptions) {
|
|
205
205
|
if (!supportsCredentialsContainer()) {
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
@@ -60,8 +60,8 @@ let DefaultDatasource = class DefaultDatasource {
|
|
|
60
60
|
// additional checks? regex? or maybe we can ask the server if it's a valid resource in the future
|
|
61
61
|
return true;
|
|
62
62
|
}
|
|
63
|
-
init(
|
|
64
|
-
return __awaiter(this,
|
|
63
|
+
init(options_1) {
|
|
64
|
+
return __awaiter(this, arguments, void 0, function* (options, fetchMeta = this.fetchMetadataRequired, startStream = this.startStreamRequired) {
|
|
65
65
|
this.fetchMetadataRequired = fetchMeta;
|
|
66
66
|
this.options = Object.assign(Object.assign({}, this.config.options), options);
|
|
67
67
|
// Invalidate parameter cache when options change
|
|
@@ -155,8 +155,8 @@ let DefaultDatasource = class DefaultDatasource {
|
|
|
155
155
|
ORDER_BY,
|
|
156
156
|
REVERSE: this.options.reverse,
|
|
157
157
|
// REQUEST_SERVER only
|
|
158
|
-
DISABLE_POLLING: this.options.disablePolling,
|
|
159
|
-
POLLING_INTERVAL: this.options.pollingInterval,
|
|
158
|
+
DISABLE_POLLING: this.options.disablePolling, // component-level only
|
|
159
|
+
POLLING_INTERVAL: this.options.pollingInterval, // component-level only
|
|
160
160
|
REQUEST: this.options.request,
|
|
161
161
|
};
|
|
162
162
|
logger.debug('Getting configured params:', this._allParams);
|
|
@@ -215,8 +215,8 @@ let DefaultDatasource = class DefaultDatasource {
|
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
-
snapshotFiltered(
|
|
219
|
-
return __awaiter(this,
|
|
218
|
+
snapshotFiltered() {
|
|
219
|
+
return __awaiter(this, arguments, void 0, function* (rowId = 'ROW_REF') {
|
|
220
220
|
const result = yield this.snapshot();
|
|
221
221
|
if (Array.isArray(result)) {
|
|
222
222
|
return result;
|
|
@@ -271,8 +271,8 @@ let DefaultDatasource = class DefaultDatasource {
|
|
|
271
271
|
return this.pollTrigger$.pipe(startWith(0), switchMap(() => timer(0, pollInterval).pipe(switchMap(fetchSnapshot$))));
|
|
272
272
|
}
|
|
273
273
|
fetchAndApplyMetadata(resourceName) {
|
|
274
|
-
var _a, _b;
|
|
275
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a, _b;
|
|
276
276
|
try {
|
|
277
277
|
logger.debug(`Requesting metadata for ${this.options.resourceName} Datasource`);
|
|
278
278
|
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 =
|
|
25
|
+
const isConnected = 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,
|