Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@project-sunbird/client-services

Package Overview
Dependencies
Maintainers
7
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@project-sunbird/client-services - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

models/group/index.d.ts

3

core/http-service/implementation/http-client-adapters/http-client-browser-adapter.d.ts
import { Observable } from 'rxjs';
import { HttpClient } from './http-client';
import { CsHttpSerializer } from '../../interface';
import { CsResponse } from '../../interface';
import { CsHttpSerializer, CsResponse } from '../../interface';
export declare class HttpClientBrowserAdapter implements HttpClient {

@@ -6,0 +5,0 @@ private headers;

@@ -1,1 +0,1 @@

!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,function(){return n={},o.m=r={1:function(t,e,r){"use strict";var n,o,i,s,u=r(16);(o=n=n||{}).JSON="json",o.URLENCODED="urlencoded",o.UTF8="utf8",o.RAW="raw",(s=i=i||{}).GET="GET",s.POST="POST",s.PATCH="PATCH";var p,c,f=(Object.defineProperty(a.prototype,"serializer",{get:function(){return this._serializer},set:function(t){this._serializer=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"withBearerToken",{get:function(){return this._withBearerToken},set:function(t){this._withBearerToken=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"body",{get:function(){return this._body},set:function(t){this._body=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"path",{get:function(){return this._path},set:function(t){this._path=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"responseInterceptors",{get:function(){return this._responseInterceptors},set:function(t){this._responseInterceptors=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headers",{get:function(){return this._headers},set:function(t){this._headers=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parameters",{get:function(){return this._parameters},set:function(t){this._parameters=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"withUserToken",{get:function(){return this._withUserToken},set:function(t){this._withUserToken=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"requestInterceptors",{get:function(){return this._requestInterceptors},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"host",{get:function(){return this._host},enumerable:!0,configurable:!0}),a.prototype.toJSON=function(){return JSON.stringify({body:this._body,type:this._type,host:this._host,path:this._path,serializer:this._serializer,withBearerToken:this._withBearerToken,withUserToken:this._withUserToken,headers:this._headers,parameters:this._parameters})},a.Builder=(h.prototype.withHost=function(t){return this.request._host=t,this},h.prototype.withPath=function(t){return this.request._path=t,this},h.prototype.withType=function(t){return this.request._type=t,this},h.prototype.withResponseInterceptor=function(t){return this.request._responseInterceptors.push(t),this},h.prototype.withRequestInterceptor=function(t){return this.request._requestInterceptors.push(t),this},h.prototype.withHeaders=function(t){return this.request._headers=t,this},h.prototype.withBody=function(t){return this.request._body=t,this},h.prototype.withParameters=function(t){return this.request._parameters=t,this},h.prototype.withBearerToken=function(t){return this.request.withBearerToken=t,this},h.prototype.withUserToken=function(t){return this.request.withUserToken=t,this},h.prototype.withSerializer=function(t){return this.request._serializer=t,this},h.prototype.build=function(){if(!this.request._path)throw new u.a("withPath() is required");if(!this.request._type)throw new u.a("withType() is required");return this.request},h),a);function a(){this._serializer=n.JSON,this._responseInterceptors=[],this._withBearerToken=!1,this._headers={},this._body={},this._parameters={},this._withUserToken=!1,this._requestInterceptors=[]}function h(){this.request=new a}(c=p=p||{})[c.HTTP_UNAUTHORISED=401]="HTTP_UNAUTHORISED",c[c.HTTP_FORBIDDEN=403]="HTTP_FORBIDDEN",c[c.HTTP_SUCCESS=200]="HTTP_SUCCESS",c[c.HTTP_BAD_REQUEST=400]="HTTP_BAD_REQUEST";var y=(Object.defineProperty(_.prototype,"responseCode",{get:function(){return this._responseCode},set:function(t){this._responseCode=t},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"errorMesg",{get:function(){return this._errorMesg},set:function(t){this._errorMesg=t},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"body",{get:function(){return this._body},set:function(t){this._body=t},enumerable:!0,configurable:!0}),_);function _(){}r.d(e,"c",function(){return n}),r.d(e,"a",function(){return i}),r.d(e,"d",function(){return f}),r.d(e,"b",function(){return p}),r.d(e,"e",function(){return y})},16:function(t,e,r){"use strict";r.d(e,"a",function(){return u});var n,o,i=r(4),s=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=(o=i.a,s(p,o),p);function p(t){var e=o.call(this,t,"REQUEST_BUILD_ERROR")||this;return Object.setPrototypeOf(e,p.prototype),e}},4:function(t,e,r){"use strict";r.d(e,"a",function(){return s});var n,o,i=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=(o=Error,i(u,o),Object.defineProperty(u.prototype,"code",{get:function(){return this._code},enumerable:!0,configurable:!0}),u);function u(t,e){var r=o.call(this,t)||this;return r._code=e,Object.setPrototypeOf(r,u.prototype),r}},6:function(t,e,r){"use strict";var n,o,i=r(4),s=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=(o=i.a,s(p,o),p);function p(t,e){var r=o.call(this,t,"HTTP_CLIENT_ERROR")||this;return r.response=e,Object.setPrototypeOf(r,p.prototype),r}var c,f,a=(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=(f=i.a,a(y,f),y);function y(t,e){var r=f.call(this,t,"HTTP_SERVER_ERROR")||this;return r.response=e,Object.setPrototypeOf(r,y.prototype),r}var _,d,l=(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),b=(d=i.a,l(O,d),O);function O(t){var e=d.call(this,t,"NETWORK_ERROR")||this;return Object.setPrototypeOf(e,O.prototype),e}var T=r(16);r.d(e,"a",function(){return u}),r.d(e,"b",function(){return h}),r.d(e,"c",function(){return b}),r.d(e,"d",function(){return T.a})},66:function(t,e,r){"use strict";r.r(e);var n=r(6);r.d(e,"CsHttpClientError",function(){return n.a}),r.d(e,"CsHttpServerError",function(){return n.b}),r.d(e,"CsNetworkError",function(){return n.c}),r.d(e,"CsRequestBuilderError",function(){return n.d});var o=r(1);r.d(e,"CsHttpSerializer",function(){return o.c}),r.d(e,"CsHttpRequestType",function(){return o.a}),r.d(e,"CsRequest",function(){return o.d}),r.d(e,"CsHttpResponseCode",function(){return o.b}),r.d(e,"CsResponse",function(){return o.e})}},o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=66);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,n});
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,function(){return n={},o.m=r={16:function(t,e,r){"use strict";r.d(e,"a",function(){return u});var n,o,i=r(4),s=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=(o=i.a,s(p,o),p);function p(t){var e=o.call(this,t,"REQUEST_BUILD_ERROR")||this;return Object.setPrototypeOf(e,p.prototype),e}},2:function(t,e,r){"use strict";var n,o,i,s,u=r(16);(o=n=n||{}).JSON="json",o.URLENCODED="urlencoded",o.UTF8="utf8",o.RAW="raw",(s=i=i||{}).GET="GET",s.POST="POST",s.PATCH="PATCH";var p,c,f=(Object.defineProperty(a.prototype,"serializer",{get:function(){return this._serializer},set:function(t){this._serializer=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"withBearerToken",{get:function(){return this._withBearerToken},set:function(t){this._withBearerToken=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"body",{get:function(){return this._body},set:function(t){this._body=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"path",{get:function(){return this._path},set:function(t){this._path=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"responseInterceptors",{get:function(){return this._responseInterceptors},set:function(t){this._responseInterceptors=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headers",{get:function(){return this._headers},set:function(t){this._headers=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parameters",{get:function(){return this._parameters},set:function(t){this._parameters=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"withUserToken",{get:function(){return this._withUserToken},set:function(t){this._withUserToken=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"requestInterceptors",{get:function(){return this._requestInterceptors},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"host",{get:function(){return this._host},enumerable:!0,configurable:!0}),a.prototype.toJSON=function(){return JSON.stringify({body:this._body,type:this._type,host:this._host,path:this._path,serializer:this._serializer,withBearerToken:this._withBearerToken,withUserToken:this._withUserToken,headers:this._headers,parameters:this._parameters})},a.Builder=(h.prototype.withHost=function(t){return this.request._host=t,this},h.prototype.withPath=function(t){return this.request._path=t,this},h.prototype.withType=function(t){return this.request._type=t,this},h.prototype.withResponseInterceptor=function(t){return this.request._responseInterceptors.push(t),this},h.prototype.withRequestInterceptor=function(t){return this.request._requestInterceptors.push(t),this},h.prototype.withHeaders=function(t){return this.request._headers=t,this},h.prototype.withBody=function(t){return this.request._body=t,this},h.prototype.withParameters=function(t){return this.request._parameters=t,this},h.prototype.withBearerToken=function(t){return this.request.withBearerToken=t,this},h.prototype.withUserToken=function(t){return this.request.withUserToken=t,this},h.prototype.withSerializer=function(t){return this.request._serializer=t,this},h.prototype.build=function(){if(!this.request._path)throw new u.a("withPath() is required");if(!this.request._type)throw new u.a("withType() is required");return this.request},h),a);function a(){this._serializer=n.JSON,this._responseInterceptors=[],this._withBearerToken=!1,this._headers={},this._body={},this._parameters={},this._withUserToken=!1,this._requestInterceptors=[]}function h(){this.request=new a}(c=p=p||{})[c.HTTP_UNAUTHORISED=401]="HTTP_UNAUTHORISED",c[c.HTTP_FORBIDDEN=403]="HTTP_FORBIDDEN",c[c.HTTP_SUCCESS=200]="HTTP_SUCCESS",c[c.HTTP_BAD_REQUEST=400]="HTTP_BAD_REQUEST";var y=(Object.defineProperty(_.prototype,"responseCode",{get:function(){return this._responseCode},set:function(t){this._responseCode=t},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"errorMesg",{get:function(){return this._errorMesg},set:function(t){this._errorMesg=t},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"body",{get:function(){return this._body},set:function(t){this._body=t},enumerable:!0,configurable:!0}),_);function _(){}r.d(e,"c",function(){return n}),r.d(e,"a",function(){return i}),r.d(e,"d",function(){return f}),r.d(e,"b",function(){return p}),r.d(e,"e",function(){return y})},4:function(t,e,r){"use strict";r.d(e,"a",function(){return s});var n,o,i=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=(o=Error,i(u,o),Object.defineProperty(u.prototype,"code",{get:function(){return this._code},enumerable:!0,configurable:!0}),u);function u(t,e){var r=o.call(this,t)||this;return r._code=e,Object.setPrototypeOf(r,u.prototype),r}},6:function(t,e,r){"use strict";var n,o,i=r(4),s=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=(o=i.a,s(p,o),p);function p(t,e){var r=o.call(this,t,"HTTP_CLIENT_ERROR")||this;return r.response=e,Object.setPrototypeOf(r,p.prototype),r}var c,f,a=(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=(f=i.a,a(y,f),y);function y(t,e){var r=f.call(this,t,"HTTP_SERVER_ERROR")||this;return r.response=e,Object.setPrototypeOf(r,y.prototype),r}var _,d,l=(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),b=(d=i.a,l(O,d),O);function O(t){var e=d.call(this,t,"NETWORK_ERROR")||this;return Object.setPrototypeOf(e,O.prototype),e}var T=r(16);r.d(e,"a",function(){return u}),r.d(e,"b",function(){return h}),r.d(e,"c",function(){return b}),r.d(e,"d",function(){return T.a})},70:function(t,e,r){"use strict";r.r(e);var n=r(6);r.d(e,"CsHttpClientError",function(){return n.a}),r.d(e,"CsHttpServerError",function(){return n.b}),r.d(e,"CsNetworkError",function(){return n.c}),r.d(e,"CsRequestBuilderError",function(){return n.d});var o=r(2);r.d(e,"CsHttpSerializer",function(){return o.c}),r.d(e,"CsHttpRequestType",function(){return o.a}),r.d(e,"CsRequest",function(){return o.d}),r.d(e,"CsHttpResponseCode",function(){return o.b}),r.d(e,"CsResponse",function(){return o.e})}},o.c=n,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=70);function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,n});

@@ -1,2 +0,2 @@

!function(r,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var e in n)("object"==typeof exports?exports:r)[e]=n[e]}}(window,function(){return e={},o.m=n={0:function(r,t,n){"use strict";n.d(t,"a",function(){return o});var e=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){r&&(new Error).stack;e=r},get useDeprecatedSynchronousErrorHandling(){return e}}},11:function(r,t,n){"use strict";n.d(t,"a",function(){return e});var e=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},12:function(r,t,n){"use strict";n.d(t,"a",function(){return e});var e=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},13:function(r,t,n){"use strict";n.d(t,"a",function(){return o});
!function(r,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var e in n)("object"==typeof exports?exports:r)[e]=n[e]}}(window,function(){return e={},o.m=n={0:function(r,t,n){"use strict";n.d(t,"a",function(){return o});var e=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){r&&(new Error).stack;e=r},get useDeprecatedSynchronousErrorHandling(){return e}}},1:function(r,t,n){"use strict";var i=n(8);var s=n(12),u=n(14);var e=n(11);function o(r){return r}function c(t){return 0===t.length?o:1===t.length?t[0]:function(r){return t.reduce(function(r,t){return t(r)},r)}}var a=n(0);n.d(t,"a",function(){return f});var f=function(){function n(r){this._isScalar=!1,r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,n){var e=this.operator,o=function(r,t,n){if(r){if(r instanceof i.a)return r;if(r[s.a])return r[s.a]()}return r||t||n?new i.a(r,t,n):new i.a(u.a)}(r,t,n);if(e?o.add(e.call(o,this.source)):o.add(this.source||a.a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){a.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),!function(r){for(;r;){var t=r.closed,n=r.destination,e=r.isStopped;if(t||e)return!1;r=n&&n instanceof i.a?n:null}return!0}(t)?console.warn(r):t.error(r)}},n.prototype.forEach=function(e,r){var o=this;return new(r=p(r))(function(r,t){var n;n=o.subscribe(function(r){try{e(r)}catch(r){t(r),n&&n.unsubscribe()}},t,r)})},n.prototype._subscribe=function(r){var t=this.source;return t&&t.subscribe(r)},n.prototype[e.a]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return 0===r.length?this:c(r)(this)},n.prototype.toPromise=function(r){var e=this;return new(r=p(r))(function(r,t){var n;e.subscribe(function(r){return n=r},function(r){return t(r)},function(){return r(n)})})},n.create=function(r){return new n(r)},n}();function p(r){if(!(r=r||(a.a.Promise||Promise)))throw new Error("no Promise impl found");return r}},11:function(r,t,n){"use strict";n.d(t,"a",function(){return e});var e=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},12:function(r,t,n){"use strict";n.d(t,"a",function(){return e});var e=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},13:function(r,t,n){"use strict";n.d(t,"a",function(){return o});
/*! *****************************************************************************

@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation. All rights reserved.

***************************************************************************** */
var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])})(r,t)};function o(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},14:function(r,t,n){"use strict";n.d(t,"a",function(){return i});var e=n(0),o=n(7),i={closed:!0,next:function(r){},error:function(r){if(e.a.useDeprecatedSynchronousErrorHandling)throw r;Object(o.a)(r)},complete:function(){}}},17:function(r,t,n){"use strict";n.d(t,"a",function(){return e});var i=n(2),s=n(3);function e(e,o){return new i.a(function(r){var t=new s.a,n=0;return t.add(o.schedule(function(){n!==e.length?(r.next(e[n++]),r.closed||t.add(this.schedule())):r.complete()})),t})}},18:function(r,t,n){"use strict";function e(r){return"function"==typeof r}n.d(t,"a",function(){return e})},2:function(r,t,n){"use strict";var i=n(8);var s=n(12),u=n(14);var e=n(11);function o(r){return r}function c(t){return 0===t.length?o:1===t.length?t[0]:function(r){return t.reduce(function(r,t){return t(r)},r)}}var a=n(0);n.d(t,"a",function(){return f});var f=function(){function n(r){this._isScalar=!1,r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,n){var e=this.operator,o=function(r,t,n){if(r){if(r instanceof i.a)return r;if(r[s.a])return r[s.a]()}return r||t||n?new i.a(r,t,n):new i.a(u.a)}(r,t,n);if(e?o.add(e.call(o,this.source)):o.add(this.source||a.a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){a.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),!function(r){for(;r;){var t=r.closed,n=r.destination,e=r.isStopped;if(t||e)return!1;r=n&&n instanceof i.a?n:null}return!0}(t)?console.warn(r):t.error(r)}},n.prototype.forEach=function(e,r){var o=this;return new(r=p(r))(function(r,t){var n;n=o.subscribe(function(r){try{e(r)}catch(r){t(r),n&&n.unsubscribe()}},t,r)})},n.prototype._subscribe=function(r){var t=this.source;return t&&t.subscribe(r)},n.prototype[e.a]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return 0===r.length?this:c(r)(this)},n.prototype.toPromise=function(r){var e=this;return new(r=p(r))(function(r,t){var n;e.subscribe(function(r){return n=r},function(r){return t(r)},function(){return r(n)})})},n.create=function(r){return new n(r)},n}();function p(r){if(!(r=r||(a.a.Promise||Promise)))throw new Error("no Promise impl found");return r}},22:function(r,t,n){"use strict";function e(r){return null!==r&&"object"==typeof r}n.d(t,"a",function(){return e})},23:function(r,t,n){"use strict";n.d(t,"a",function(){return e});var e=function(e){return function(r){for(var t=0,n=e.length;t<n&&!r.closed;t++)r.next(e[t]);r.complete()}}},3:function(r,t,n){"use strict";var c=function(){return Array.isArray||function(r){return r&&"number"==typeof r.length}}(),a=n(22),f=n(18),p=function(){function r(r){return Error.call(this),this.message=r?r.length+" errors occurred during unsubscription:\n"+r.map(function(r,t){return t+1+") "+r.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=r,this}return r.prototype=Object.create(Error.prototype),r}();n.d(t,"a",function(){return e});var e=function(){function u(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._unsubscribe=r)}var r;return u.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this._parentOrParents,n=this._unsubscribe,e=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof u)r.remove(this);else if(null!==r)for(var o=0;o<r.length;++o){r[o].remove(this)}if(Object(f.a)(n))try{n.call(this)}catch(r){t=r instanceof p?h(r.errors):[r]}if(c(e)){o=-1;for(var i=e.length;++o<i;){var s=e[o];if(Object(a.a)(s))try{s.unsubscribe()}catch(r){t=t||[],r instanceof p?t=t.concat(h(r.errors)):t.push(r)}}}if(t)throw new p(t)}},u.prototype.add=function(r){var t=r;if(!r)return u.EMPTY;switch(typeof r){case"function":t=new u(r);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof u)){var n=t;(t=new u)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+r+" added to Subscription.")}var e=t._parentOrParents;if(null===e)t._parentOrParents=this;else if(e instanceof u){if(e===this)return t;t._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return t;e.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[t]:o.push(t),t},u.prototype.remove=function(r){var t=this._subscriptions;if(t){var n=t.indexOf(r);-1!==n&&t.splice(n,1)}},u.EMPTY=((r=new u).closed=!0,r),u}();function h(r){return r.reduce(function(r,t){return r.concat(t instanceof p?t.errors:t)},[])}},68:function(r,t,n){"use strict";n.r(t);var e=n(69),o=(i.prototype.interceptRequest=function(r){return console.log("CsRequestLoggerInterceptor: ","request:",JSON.stringify(r)),Object(e.a)(r)},i);function i(){}var s=(u.prototype.interceptResponse=function(r,t){return console.log("CsResponseLoggerInterceptor: ","request:",JSON.stringify(r),"response:",JSON.stringify(t)),Object(e.a)(t)},u);function u(){}n.d(t,"CsRequestLoggerInterceptor",function(){return o}),n.d(t,"CsResponseLoggerInterceptor",function(){return s})},69:function(r,t,n){"use strict";var s=n(2),u=n(23),c=n(17);function e(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n,e,o,i=r[r.length-1];return(o=i)&&"function"==typeof o.schedule?(r.pop(),Object(c.a)(r,i)):(n=r,e?Object(c.a)(n,e):new s.a(Object(u.a)(n)))}n.d(t,"a",function(){return e})},7:function(r,t,n){"use strict";function e(r){setTimeout(function(){throw r},0)}n.d(t,"a",function(){return e})},8:function(r,t,n){"use strict";n.d(t,"a",function(){return u});var e=n(13),c=n(18),a=n(14),o=n(3),s=n(12),i=n(0),f=n(7),u=function(o){function i(r,t,n){var e=o.call(this)||this;switch(e.syncErrorValue=null,e.syncErrorThrown=!1,e.syncErrorThrowable=!1,e.isStopped=!1,arguments.length){case 0:e.destination=a.a;break;case 1:if(!r){e.destination=a.a;break}if("object"==typeof r){r instanceof i?(e.syncErrorThrowable=r.syncErrorThrowable,(e.destination=r).add(e)):(e.syncErrorThrowable=!0,e.destination=new p(e,r));break}default:e.syncErrorThrowable=!0,e.destination=new p(e,r,t,n)}return e}return e.a(i,o),i.prototype[s.a]=function(){return this},i.create=function(r,t,n){var e=new i(r,t,n);return e.syncErrorThrowable=!1,e},i.prototype.next=function(r){this.isStopped||this._next(r)},i.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this))},i.prototype._next=function(r){this.destination.next(r)},i.prototype._error=function(r){this.destination.error(r),this.unsubscribe()},i.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},i.prototype._unsubscribeAndRecycle=function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this},i}(o.a),p=function(u){function r(r,t,n,e){var o,i=u.call(this)||this;i._parentSubscriber=r;var s=i;return Object(c.a)(t)?o=t:t&&(o=t.next,n=t.error,e=t.complete,t!==a.a&&(s=Object.create(t),Object(c.a)(s.unsubscribe)&&i.add(s.unsubscribe.bind(s)),s.unsubscribe=i.unsubscribe.bind(i))),i._context=s,i._next=o,i._error=n,i._complete=e,i}return e.a(r,u),r.prototype.next=function(r){if(!this.isStopped&&this._next){var t=this._parentSubscriber;i.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}},r.prototype.error=function(r){if(!this.isStopped){var t=this._parentSubscriber,n=i.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,r):this.__tryOrUnsub(this._error,r),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=r,t.syncErrorThrown=!0):Object(f.a)(r),this.unsubscribe();else{if(this.unsubscribe(),n)throw r;Object(f.a)(r)}}},r.prototype.complete=function(){var r=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return r._complete.call(r._context)};i.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,n):this.__tryOrUnsub(n),this.unsubscribe()}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(r,t){try{r.call(this._context,t)}catch(r){if(this.unsubscribe(),i.a.useDeprecatedSynchronousErrorHandling)throw r;Object(f.a)(r)}},r.prototype.__tryOrSetError=function(t,r,n){if(!i.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,n)}catch(r){return i.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0):(Object(f.a)(r),!0)}return!1},r.prototype._unsubscribe=function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe()},r}(u)}},o.c=e,o.d=function(r,t,n){o.o(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:n})},o.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},o.t=function(t,r){if(1&r&&(t=o(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var e in t)o.d(n,e,function(r){return t[r]}.bind(null,e));return n},o.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(t,"a",t),t},o.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},o.p="",o(o.s=68);function o(r){if(e[r])return e[r].exports;var t=e[r]={i:r,l:!1,exports:{}};return n[r].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,e});
var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])})(r,t)};function o(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},14:function(r,t,n){"use strict";n.d(t,"a",function(){return i});var e=n(0),o=n(7),i={closed:!0,next:function(r){},error:function(r){if(e.a.useDeprecatedSynchronousErrorHandling)throw r;Object(o.a)(r)},complete:function(){}}},17:function(r,t,n){"use strict";n.d(t,"a",function(){return e});var i=n(1),s=n(3);function e(e,o){return new i.a(function(r){var t=new s.a,n=0;return t.add(o.schedule(function(){n!==e.length?(r.next(e[n++]),r.closed||t.add(this.schedule())):r.complete()})),t})}},18:function(r,t,n){"use strict";function e(r){return"function"==typeof r}n.d(t,"a",function(){return e})},23:function(r,t,n){"use strict";function e(r){return null!==r&&"object"==typeof r}n.d(t,"a",function(){return e})},24:function(r,t,n){"use strict";n.d(t,"a",function(){return e});var e=function(e){return function(r){for(var t=0,n=e.length;t<n&&!r.closed;t++)r.next(e[t]);r.complete()}}},3:function(r,t,n){"use strict";var c=function(){return Array.isArray||function(r){return r&&"number"==typeof r.length}}(),a=n(23),f=n(18),p=function(){function r(r){return Error.call(this),this.message=r?r.length+" errors occurred during unsubscription:\n"+r.map(function(r,t){return t+1+") "+r.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=r,this}return r.prototype=Object.create(Error.prototype),r}();n.d(t,"a",function(){return e});var e=function(){function u(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._unsubscribe=r)}var r;return u.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this._parentOrParents,n=this._unsubscribe,e=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof u)r.remove(this);else if(null!==r)for(var o=0;o<r.length;++o){r[o].remove(this)}if(Object(f.a)(n))try{n.call(this)}catch(r){t=r instanceof p?h(r.errors):[r]}if(c(e)){o=-1;for(var i=e.length;++o<i;){var s=e[o];if(Object(a.a)(s))try{s.unsubscribe()}catch(r){t=t||[],r instanceof p?t=t.concat(h(r.errors)):t.push(r)}}}if(t)throw new p(t)}},u.prototype.add=function(r){var t=r;if(!r)return u.EMPTY;switch(typeof r){case"function":t=new u(r);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof u)){var n=t;(t=new u)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+r+" added to Subscription.")}var e=t._parentOrParents;if(null===e)t._parentOrParents=this;else if(e instanceof u){if(e===this)return t;t._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return t;e.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[t]:o.push(t),t},u.prototype.remove=function(r){var t=this._subscriptions;if(t){var n=t.indexOf(r);-1!==n&&t.splice(n,1)}},u.EMPTY=((r=new u).closed=!0,r),u}();function h(r){return r.reduce(function(r,t){return r.concat(t instanceof p?t.errors:t)},[])}},7:function(r,t,n){"use strict";function e(r){setTimeout(function(){throw r},0)}n.d(t,"a",function(){return e})},74:function(r,t,n){"use strict";n.r(t);var e=n(75),o=(i.prototype.interceptRequest=function(r){return console.log("CsRequestLoggerInterceptor: ","request:",JSON.stringify(r)),Object(e.a)(r)},i);function i(){}var s=(u.prototype.interceptResponse=function(r,t){return console.log("CsResponseLoggerInterceptor: ","request:",JSON.stringify(r),"response:",JSON.stringify(t)),Object(e.a)(t)},u);function u(){}n.d(t,"CsRequestLoggerInterceptor",function(){return o}),n.d(t,"CsResponseLoggerInterceptor",function(){return s})},75:function(r,t,n){"use strict";var s=n(1),u=n(24),c=n(17);function e(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n,e,o,i=r[r.length-1];return(o=i)&&"function"==typeof o.schedule?(r.pop(),Object(c.a)(r,i)):(n=r,e?Object(c.a)(n,e):new s.a(Object(u.a)(n)))}n.d(t,"a",function(){return e})},8:function(r,t,n){"use strict";n.d(t,"a",function(){return u});var e=n(13),c=n(18),a=n(14),o=n(3),s=n(12),i=n(0),f=n(7),u=function(o){function i(r,t,n){var e=o.call(this)||this;switch(e.syncErrorValue=null,e.syncErrorThrown=!1,e.syncErrorThrowable=!1,e.isStopped=!1,arguments.length){case 0:e.destination=a.a;break;case 1:if(!r){e.destination=a.a;break}if("object"==typeof r){r instanceof i?(e.syncErrorThrowable=r.syncErrorThrowable,(e.destination=r).add(e)):(e.syncErrorThrowable=!0,e.destination=new p(e,r));break}default:e.syncErrorThrowable=!0,e.destination=new p(e,r,t,n)}return e}return e.a(i,o),i.prototype[s.a]=function(){return this},i.create=function(r,t,n){var e=new i(r,t,n);return e.syncErrorThrowable=!1,e},i.prototype.next=function(r){this.isStopped||this._next(r)},i.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this))},i.prototype._next=function(r){this.destination.next(r)},i.prototype._error=function(r){this.destination.error(r),this.unsubscribe()},i.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},i.prototype._unsubscribeAndRecycle=function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this},i}(o.a),p=function(u){function r(r,t,n,e){var o,i=u.call(this)||this;i._parentSubscriber=r;var s=i;return Object(c.a)(t)?o=t:t&&(o=t.next,n=t.error,e=t.complete,t!==a.a&&(s=Object.create(t),Object(c.a)(s.unsubscribe)&&i.add(s.unsubscribe.bind(s)),s.unsubscribe=i.unsubscribe.bind(i))),i._context=s,i._next=o,i._error=n,i._complete=e,i}return e.a(r,u),r.prototype.next=function(r){if(!this.isStopped&&this._next){var t=this._parentSubscriber;i.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}},r.prototype.error=function(r){if(!this.isStopped){var t=this._parentSubscriber,n=i.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,r):this.__tryOrUnsub(this._error,r),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=r,t.syncErrorThrown=!0):Object(f.a)(r),this.unsubscribe();else{if(this.unsubscribe(),n)throw r;Object(f.a)(r)}}},r.prototype.complete=function(){var r=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return r._complete.call(r._context)};i.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,n):this.__tryOrUnsub(n),this.unsubscribe()}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(r,t){try{r.call(this._context,t)}catch(r){if(this.unsubscribe(),i.a.useDeprecatedSynchronousErrorHandling)throw r;Object(f.a)(r)}},r.prototype.__tryOrSetError=function(t,r,n){if(!i.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,n)}catch(r){return i.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0):(Object(f.a)(r),!0)}return!1},r.prototype._unsubscribe=function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe()},r}(u)}},o.c=e,o.d=function(r,t,n){o.o(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:n})},o.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},o.t=function(t,r){if(1&r&&(t=o(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var e in t)o.d(n,e,function(r){return t[r]}.bind(null,e));return n},o.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(t,"a",t),t},o.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},o.p="",o(o.s=74);function o(r){if(e[r])return e[r].exports;var t=e[r]={i:r,l:!1,exports:{}};return n[r].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,e});

@@ -1,1 +0,1 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(window,function(){return o={},n.m=r={4:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var o,n,u=(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=(n=Error,u(f,n),Object.defineProperty(f.prototype,"code",{get:function(){return this._code},enumerable:!0,configurable:!0}),f);function f(e,t){var r=n.call(this,e)||this;return r._code=t,Object.setPrototypeOf(r,f.prototype),r}},65:function(e,t,r){"use strict";r.r(t);var o=r(4);r.d(t,"CsError",function(){return o.a})}},n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=65);function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,o});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(window,function(){return o={},n.m=r={4:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var o,n,u=(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=(n=Error,u(f,n),Object.defineProperty(f.prototype,"code",{get:function(){return this._code},enumerable:!0,configurable:!0}),f);function f(e,t){var r=n.call(this,e)||this;return r._code=t,Object.setPrototypeOf(r,f.prototype),r}},69:function(e,t,r){"use strict";r.r(t);var o=r(4);r.d(t,"CsError",function(){return o.a})}},n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=69);function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,o});

@@ -0,6 +1,10 @@

import 'reflect-metadata';
import { CsHttpService } from './core/http-service/interface';
import { CsClassRoomService } from './services/class-room/interface';
import { CsGroupService } from './services/group/interface';
export interface CsGroupServiceConfig {
apiPath: string;
}
export interface CsConfig {
core: {
httpAdapter: 'HttpClientBrowserAdapter' | 'HttpClientCordovaAdapter';
httpAdapter?: 'HttpClientBrowserAdapter' | 'HttpClientCordovaAdapter';
global: {

@@ -19,2 +23,5 @@ channelId?: string;

};
services: {
groupServiceConfig?: CsGroupServiceConfig;
};
}

@@ -29,3 +36,3 @@ export declare class CsModule {

readonly httpService: CsHttpService;
readonly classRoomService: CsClassRoomService;
readonly groupService: CsGroupService;
readonly config: CsConfig;

@@ -32,0 +39,0 @@ init(config: CsConfig): Promise<void>;

@@ -20,4 +20,7 @@ export declare const InjectionTokens: {

services: {
CLASS_ROOM_SERVICE: symbol;
group: {
GROUP_SERVICE_API_PATH: symbol;
GROUP_SERVICE: symbol;
};
};
};

@@ -10,1 +10,2 @@ export * from './channel';

export * from './form';
export * from './group';
{
"name": "@project-sunbird/client-services",
"version": "3.0.1",
"version": "3.0.2",
"description": "Type definitions and models for Sunbird platform clients",

@@ -17,2 +17,3 @@ "main": "dist/index.js",

"dependencies": {
"reflect-metadata": "^0.1.13",
"inversify": "^5.0.1",

@@ -28,8 +29,9 @@ "qs": "^6.9.4"

"peerDependencies": {
"rxjs": ">=6"
"rxjs": "6.x.x"
},
"devDependencies": {
"jest": "^25.1.0",
"@types/jest": "~25.1.1",
"jest": "~25.1.0",
"rxjs": "^6.5.3",
"ts-jest": "^25.2.0",
"ts-jest": "~25.1.0",
"tslint": "^5.12.0",

@@ -36,0 +38,0 @@ "ts-loader": "^5.3.2",

@@ -1,1 +0,184 @@

# sunbird-client-services
# @project-sunbird/client-services
## Table of Contents
1. [Overview](#overview)
1. [Installation](#installation)
1. [Getting Started](#getting-started)
1. [Adapters](#adapters)
1. [Update Configuration](#update-configuration)
1. [Services](#services)
1. [CsGroupService](#csgroupservice)
## Overview
The library is grouped into Modules and SubModules as shown below -
```
@project-sunbird/client-services
├── /core
│   └── /http-service
│      └── /utilities
│      └── /interceptors
├── /models
│   ├── /channel
│   ├── /content
│   ├── /course
│   ├── /device
│   ├── /faq
│   ├── /form
│   ├── /group
│   ├── /organisation
│   ├── /page
│   └── /user
└── /services
├── /content
│   └── /utilities
│   └── /content-group-generator
└── /group
```
The public facing API is prefixed with 'Cs' namespace, as in -
- CsModule
- CsConfig
- CsGroupService
- ...
For instance,
- CsModule is part of the root module
- CsContentsGroupGenerator is a utlility within content service
Their respective imports would be -
```
import {CsModule} from "@project-sunbird/client-services";
import {CsContentsGroupGenerator} from "@project-sunbird/client-services/services/content/utilities/content-group-generator";
```
## Installation
To install the package
```
npm i @project-sunbird/client-services@3.x.x
```
The package requires the consumer to have rxjs@6.x.x installed as the only peerDependency
## Getting Started
To use the library CsModule, it needs to be initialised with basic configuration.
CsModule is a singleton and it would be best to check if it has already been initialised before attempting to initialise -
```
if (!CsModule.instance.isInitialised) { // Singleton initialised or not
await CsModule.instance.init({
core: {
httpAdapter: 'HttpClientBrowserAdapter', // optional - HttpClientBrowserAdapter or HttpClientCordovaAdapter, default - HttpClientBrowserAdapter
global: {
channelId: 'some_channel_id', // required
producerId: 'some_producer_id', // required
deviceId: 'some_random_device_id' // required
},
api: {
host: 'https://staging.ntp.net.in', // default host
authentication: {
// userToken: string; // optional
// bearerToken: string; // optional
}
}
},
services: {
// groupServiceConfig: CsGroupServiceConfig // optional
}
);
}
```
### Adapters
If the client for the library is a cordova project, use the 'HttpClientCordovaAdapter' adapter
or use 'HttpClientBrowserAdapter'. 'HttpClientBrowserAdapter' is the default if not specified.
### Update Configuration
The configuration can be dynamically reset after initialisation
```
const newConfig = {...CsModule.instance.config}; // copy existing config
newConfig.core.api.authentication = {
bearerToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXV.eyJpc3MiOiJzdGFnaW5nLmRpa3NoYS5hcHAtYTMzM2YzZjExZDM0YzlkNWYwZTE2MjUyYWMwZDVhYTZmMTBjYSIsImlhdCI6MTU4ODkxNDc1NX0.dEmjK6LStoenL_pRX1KwEtU4-opuUOUGI05ecex',
};
CsModule.instance.updateConfig(CsModule.instance.config);
// after login
newConfig.core.api.authentication = {
userToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXV.eyJpc3MiOiJzdGFnaW5nLmRpa3NoYS5hcHAtYTMzM2YzZjExZDM0YzlkNWYwZTE2MjUyYWMwZDVhYTZmMTBjYSIsImlhdCI6MTU4ODkxNDc1NX0.dEmjK6LStoenL_pRX1KwEtU4-opuUOUGI05ecex',
};
CsModule.instance.updateConfig(CsModule.instance.config);
```
### Accessing a service
The CsModule being a singleton, every service within would also be a singleton, To access any service -
```
const httpService = CsModule.instance.httpService; // handles API calls, interceptors (tokens, logging)
const groupService = CsModule.instance.groupService; // internally uses httpService
```
## Services
Every service by default will utilise the optional configuration declared during init() or updateConfig()
```
CsModule.instance.init({
...
services: {
groupServiceConfig: { // optional
apiPath: '/api/v1/group'
}
}
);
```
Additionally, methods of the service may have an optional argument that can override the global configuration explicitly
just for that method call
```
const group = await groupService.getById(
group1.identifier,
{ apiPath: '/api/v2/group' } // optional
).toPromise();
```
### CsGroupService
This service deals with user group management and has the following interface -
```
interface CsGroupService {
create(
name: string,
board: string,
medium: string | string[],
gradeLevel: string | string[],
subject: string | string[],
config?: CsGroupServiceConfig
): Observable<Group>;
deleteById(id: string, config?: CsGroupServiceConfig): Observable<void>;
getAll(config?: CsGroupServiceConfig): Observable<Group[]>;
getById(id: string, config?: CsGroupServiceConfig): Observable<Group>;
addMemberById(memberId: string, groupId: string, config?: CsGroupServiceConfig): Observable<Group>;
removeMemberById(memberId: string, groupId: string, config?: CsGroupServiceConfig): Observable<void>;
}
```

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc