ngx-nearit-api
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("rxjs/operators"),require("rxjs"),require("lodash"),require("queueing-subject/lib"),require("rxjs-websockets/lib"),require("@auth0/angular-jwt"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-nearit-api",["exports","@angular/core","@angular/common/http","rxjs/operators","rxjs","lodash","queueing-subject/lib","rxjs-websockets/lib","@auth0/angular-jwt","@angular/common"],e):e(t["ngx-nearit-api"]={},t.ng.core,t.ng.common.http,t.rxjs.operators,t.rxjs,t.lodash,t.lib,t.websocketConnect,t.angularJwt,t.ng.common)}(this,function(t,n,r,a,o,i,s,u,e,p){"use strict";u=u&&u.hasOwnProperty("default")?u["default"]:u;var c=function(t,e){return(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])})(t,e)};function l(t,e){function r(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var f=function(){return(f=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function R(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}var d=function(){function l(){}return l.toJsonModel=function(t,e){var r={};if(t&&(r.id=t.id,r.type=t.type,this.populateJsonAttributes(r,t),t.relationships&&(r.relationships=this.populateJsonRelationships(t.relationships)),t.meta&&(r.meta=this.populateJsonMeta(t.meta)),e)){r.included={},r.included=this.populateInclude(r,t,e,{})}return r},l.toJsonArrayModel=function(t,e,r){var n,o,i=[];try{for(var a=R(t),s=a.next();!s.done;s=a.next()){var u=s.value;i.push(l.toJsonModel(u,e))}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a["return"])&&o.call(a)}finally{if(n)throw n.error}}if(r){var p={};return p.meta=this.populateJsonMeta(r),p.array=i,p}return i},l.toJsonApiModel=function(t){var e,r,n={data:{attributes:{}}};for(var o in n.data.id=t.id,n.data.type=t.type,t)this.notAttributeType(o)||(n.data.attributes[o]=t[o]);if(t.relationships){n.data.relationships={};try{for(var i=R(Object.keys(t.relationships)),a=i.next();!a.done;a=i.next()){o=a.value;n.data.relationships[o]=t.relationships[o]}}catch(s){e={error:s}}finally{try{a&&!a.done&&(r=i["return"])&&r.call(i)}finally{if(e)throw e.error}}}return n},l.populateJsonAttributes=function(t,e){var r,n;if(e&&e.attributes)try{for(var o=R(Object.keys(e.attributes)),i=o.next();!i.done;i=o.next()){var a=i.value;t[a]=e.attributes[a]}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}},l.populateJsonRelationships=function(t){var e,r,n={};try{for(var o=R(Object.keys(t)),i=o.next();!i.done;i=o.next()){var a=i.value;n[a]=t[a]}}catch(s){e={error:s}}finally{try{i&&!i.done&&(r=o["return"])&&r.call(o)}finally{if(e)throw e.error}}return n},l.populateJsonMeta=function(t){var e,r,n={};try{for(var o=R(Object.keys(t)),i=o.next();!i.done;i=o.next()){var a=i.value;n[a]=t[a]}}catch(s){e={error:s}}finally{try{i&&!i.done&&(r=o["return"])&&r.call(o)}finally{if(e)throw e.error}}return n},l.populateInclude=function(f,d,h,y){var t,e,r=function(t){var e,r,n=d.relationships[t].data;if(f.included[t]={},!n)return"continue";if(Array.isArray(n)){var o=[],i=function(e){var t={},r=h.find(function(t){return t.id===e.id});if(!r)return"continue";if(t.id=r.id,g.populateJsonAttributes(t,r),r.meta&&(t.meta=g.populateJsonMeta(r.meta)),r.relationships&&!y[e.id]){y[e.id]=e.id;var n=g.populateInclude({included:{}},r,h,y);t.included=n,t.relationships=g.populateJsonRelationships(r.relationships)}o.push(t)};try{for(var a=R(n),s=a.next();!s.done;s=a.next()){i(s.value)}}catch(l){e={error:l}}finally{try{s&&!s.done&&(r=a["return"])&&r.call(a)}finally{if(e)throw e.error}}f.included[t]=o}else if("parent"===t)f.included[t].id=n.id;else{var u={},p=h.find(function(t){return t.id===n.id});if(p){if(u.id=p.id,g.populateJsonAttributes(u,p),p.meta&&(u.meta=g.populateJsonMeta(p.meta)),p.relationships&&!y[n.id]){y[n.id]=n.id;var c=g.populateInclude({included:{}},p,h,y);u.included=c,u.relationships=g.populateJsonRelationships(p.relationships)}f.included[t]=u}}},g=this;try{for(var n=R(Object.keys(d.relationships)),o=n.next();!o.done;o=n.next()){r(o.value)}}catch(i){t={error:i}}finally{try{o&&!o.done&&(e=n["return"])&&e.call(n)}finally{if(t)throw t.error}}return f.included},l.createFilter=function(t){var e,r,n,o,i,a,s,u,p,c,l,f,d={};t.sort&&(d.sort=t.sort),t.include&&(d.include=t.include),t.polyglot&&(d.polyglot=t.polyglot);var h=t.filter;for(var y in h)if(h[y]instanceof Object)try{for(var g=R(Object.keys(h[y])),v=g.next();!v.done;v=g.next()){var j=v.value;d["filter["+y+"]["+j+"]"]=h[y][j]}}catch(x){e={error:x}}finally{try{v&&!v.done&&(r=g["return"])&&r.call(g)}finally{if(e)throw e.error}}else d["filter["+y+"]"]=h[y];if(t.filterMultipleFields&&(d.filter=t.filterMultipleFields),t.startsWith)try{for(var A=R(Object.keys(t.startsWith)),m=A.next();!m.done;m=A.next()){d["filter["+(y=m.value)+"][starts_with]"]=t.startsWith[y]}}catch(S){n={error:S}}finally{try{m&&!m.done&&(o=A["return"])&&o.call(A)}finally{if(n)throw n.error}}if(t.starts)try{for(var I=R(Object.keys(t.starts)),b=I.next();!b.done;b=I.next()){d["filter["+(y=b.value)+"][start]"]=t.starts[y]}}catch(k){i={error:k}}finally{try{b&&!b.done&&(a=I["return"])&&a.call(I)}finally{if(i)throw i.error}}if(t.ends)try{for(var _=R(Object.keys(t.ends)),C=_.next();!C.done;C=_.next()){d["filter["+(y=C.value)+"][end]"]=t.ends[y]}}catch(M){s={error:M}}finally{try{C&&!C.done&&(u=_["return"])&&u.call(_)}finally{if(s)throw s.error}}if(t.contains)try{for(var E=R(Object.keys(t.contains)),w=E.next();!w.done;w=E.next()){d["filter["+(y=w.value)+"][contains]"]=t.contains[y]}}catch(O){p={error:O}}finally{try{w&&!w.done&&(c=E["return"])&&c.call(E)}finally{if(p)throw p.error}}if(t.page)try{for(var U=R(Object.keys(t.page)),P=U.next();!P.done;P=U.next()){d["page["+(y=P.value)+"]"]=t.page[y]}}catch(T){l={error:T}}finally{try{P&&!P.done&&(f=U["return"])&&f.call(U)}finally{if(l)throw l.error}}return t.search&&(d.search=t.search),t.app_id&&(d.app_id=t.app_id),t.price&&(d.price=t.price),d},l.notAttributeType=function(t){return"relationships"===t||"meta"===t||"included"===t||"id"===t||"type"===t},l.addRelationship=function(t,e){var r=e.key,n=e.type,o=e.data,i=f({},t);if(i.relationships||(i.relationships={}),Array.isArray(o)){if(0===o.length)return;i.relationships[r]={data:[]};for(var a=0;a<o.length;a++){var s=o[a];null!=s&&""!==s&&i.relationships[r].data.push({id:s,type:n})}}else i.relationships[r]={data:{id:o,type:n}};return i},l.cleanRelationships=function(t){return t&&t.relationships&&delete t.relationships,t},l}(),h=function(){function t(t){this.http=t}return t.prototype._get=function(t,e,r){return r&&r.params&&(r.params=d.createFilter(r.params)),e&&(t=t+"/"+e),this.http.get(t,r).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){return d.toJsonModel(i.get(t,"data",{}),i.get(t,"included",null))}))},t.prototype._getAll=function(t,e){return e&&e.params&&(e.params=d.createFilter(e.params)),this.http.get(t,e).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){return d.toJsonArrayModel(i.get(t,"data",[]))}))},t.prototype._post=function(t,e,r){return this.http.post(t,d.toJsonApiModel(e)).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){return d.toJsonModel(i.get(t,"data",{}),i.get(t,"included",null))}))},t.prototype._put=function(t,e,r,n){return this.http.put(t+"/"+e,d.toJsonApiModel(r)).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){return d.toJsonModel(i.get(t,"data",{}),i.get(t,"included",null))}))},t.prototype._delete=function(t,e,r){return this.http["delete"](t+"/"+e,r).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){if(t&&t.data)return d.toJsonModel(i.get(t,"data",{}),i.get(t,"included",null))}))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:r.HttpClient}]},t}(),y=function(){function t(t,e){this.jsonApiClient=t,this.config=e,this.resourceUrl=e.baseUrl+"/accounts"}return t.prototype.create=function(t,e,r){var n=this.setupRelationships(t,e);return this.jsonApiClient._post(this.resourceUrl,n,r)},t.prototype.readAll=function(t){return this.jsonApiClient._getAll(this.resourceUrl,t)},t.prototype.read=function(t,e){return this.jsonApiClient._get(this.resourceUrl,t,e)},t.prototype.update=function(t,e,r,n){var o=this.setupRelationships(e,r);return this.jsonApiClient._put(this.resourceUrl,t,o,n)},t.prototype["delete"]=function(t,e){return this.jsonApiClient._delete(this.resourceUrl,t,e)},t.prototype.setupRelationships=function(t,e){return t=d.addRelationship(t,{key:"parent",type:"accounts",data:e}),delete(t=d.addRelationship(t,{key:"apps",type:"apps",data:t.apps})).apps,t},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t}(),g=function(){function t(t,e,r){this.jsonApiClient=t,this._resourceUrl=e,this._config=r,this.config=r,this.resourceUrl=r.baseUrl+e}return t.prototype.create=function(t,e){return this.jsonApiClient._post(this.resourceUrl,t,e)},t.prototype.readAll=function(t){return this.jsonApiClient._getAll(this.resourceUrl,t)},t.prototype.read=function(t,e){return this.jsonApiClient._get(this.resourceUrl,t,e)},t.prototype.update=function(t,e,r){return this.jsonApiClient._put(this.resourceUrl,t,e,r)},t.prototype["delete"]=function(t,e){return this.jsonApiClient._delete(this.resourceUrl,t,e)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:h},null,{type:undefined}]},t}(),v=function(r){function t(t,e){return r.call(this,t,"/apps",e)||this}return l(t,r),t.prototype.getStats=function(t){return this.jsonApiClient._get(this.resourceUrl+"/"+t+"/stats")},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t}(g),j=function(){function t(t,e){this.jsonApiClient=t,this.config=e,this.resourceURL=e.baseUrl}return t.prototype.login=function(t,e){return this.jsonApiClient._post(this.resourceURL+"/auth",t,e)},t.prototype.signup=function(t,e){return this.jsonApiClient._post(this.resourceURL+"/signup",t,e)},t.prototype.impersonate=function(t,e){return this.jsonApiClient._get(this.resourceURL+"/masks/as",t,e)},t.prototype.deImpersonate=function(t){return this.jsonApiClient._get(this.resourceURL+"/masks/up","",t)},t.prototype.sendRecoveryEmail=function(t,e){return this.jsonApiClient._post(this.resourceURL+"/auth/new_password",{type:"authorization",email:t},e)},t.prototype.validateChangePasswordToken=function(t,e){return this.jsonApiClient._post(this.resourceURL+"/auth/exchange_token",{type:"authorization",token:t},e)},t.prototype.updatePassword=function(e,r,t){var n,o=this,i=this.resourceURL+"/accounts";return this.jsonApiClient._get(i,e,t).pipe(a.flatMap(function(t){return n=f({},t,{password:r}),o.jsonApiClient._put(i,e,n)}),a.map(function(){return n}))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t}(),A=function(r){function t(t,e){return r.call(this,t,"/plugins/geopolis/beacons",e)||this}return l(t,r),t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(g),m=function(){function t(){}return t.RECIPE_FIRED="RECIPE_FIRED",t.INSTALLATION_CREATEDì="INSTALLATION_CREATED",t.UPLOAD_PROCESSED="UPLOAD_PROCESSED",t.IMAGE_PROCESSED="IMAGE_PROCESSED",t.TEST_DEVICE_ENROLLED="TEST_DEVICE_ENROLLED",t.TEST_DEVICE_UNENROLLED="TEST_DEVICE_UNENROLLED",t.TEST_PUSH_SENT="TEST_PUSH_SENT",t}(),I=function(){function t(t){this.config=t,this.wssUrl=t.wssUrl}return t.prototype.init=function(t,e){var r=u(this.wssUrl+"/apps/"+e+"?jwt="+t,new s.QueueingSubject);this.messages=r.messages,this.connectionStatus=r.connectionStatus},t.prototype.register=function(){return this.messages.pipe(a.retryWhen(function(t){return t.delay(1e3)}),a.map(function(t){return t?JSON.parse(t):t}))},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(),b=function(){function t(t,e,r){this.jsonApiClient=t,this.ws=e,this.config=r,this.resourceUrl=r.baseUrl+"/media/images"}return t.prototype.create=function(t,e){return this.jsonApiClient._post(this.resourceUrl,t,e)},t.prototype.upload=function(t,e,r){var n=this;return o.of({name:r.name,image:r.base64,app_id:e,creator_id:t}).pipe(a.flatMap(function(t){return n.create(t)}),a.flatMap(function(t){return n.currentImgId=t.id,n.ws.register()}),a.filter(function(t){return t&&t.event===m.IMAGE_PROCESSED&&t.data.id===n.currentImgId}),a.first(),a.map(function(t){return i.get(t,"data.attributes.image.url")}),a.finalize(function(){return n.currentImgId=null}))},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:I},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject(I),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(),_=function(r){function t(t,e){return r.call(this,t,"/installations",e)||this}return l(t,r),t.prototype.sendTestInvitation=function(t,e){return this.jsonApiClient._post(this.config.baseUrl+"/apps/"+t+"/send_test_invitation?email="+e,{})},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(g),C=function(r){function t(t,e){return r.call(this,t,"/profiles",e)||this}return l(t,r),t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(g),E=function(r){function t(t,e){return r.call(this,t,"/plugins/push-machine/configurations",e)||this}return l(t,r),t.prototype.convertP12=function(t){return this.jsonApiClient._post(this.config.baseUrl+"/certificates/p12toPEM",t)},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(g),w=function(){function t(t,e){this.jsonApiClient=t,this.config=e,this.resourceUrl=e.baseUrl+"/plugins/thehitman/actions/custom_trigger/bundles"}return t.prototype.create=function(t,e,r){var n=this.setHeaders(t,r);return this.jsonApiClient._post(this.resourceUrl,e,n)},t.prototype.read=function(t,e,r){var n=this.setHeaders(t,r);return this.jsonApiClient._get(this.resourceUrl,e,n)},t.prototype.readAll=function(t,e){var r=this.setHeaders(t,e);return this.jsonApiClient._getAll(this.resourceUrl,r)},t.prototype["delete"]=function(t,e,r){var n=this.setHeaders(t,r);return this.jsonApiClient._delete(this.resourceUrl,e,n)},t.prototype.setHeaders=function(t,e){return f({},e,{headers:{"X-Near-App-Id":t}})},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(),U=function(){function t(t,e){this.jsonApiClient=t,this.config=e,this.resourceUrl=e.baseUrl+"/plugins/congrego/configurations"}return t.prototype.update=function(t,e,r){var n=this,o={mappings:{},id:t,type:"configurations"};return e.map(function(t){o.mappings[t.id]={kind:t.kind,label:t.label,choices:t.choices,allowed:t.allowed}}),this.jsonApiClient._put(this.resourceUrl,t,o,r).pipe(a.map(function(t){return n.toMappingList(t)}))},t.prototype.read=function(t,e){var r=this;return this.jsonApiClient._get(this.resourceUrl,t,e).pipe(a.map(function(t){return r.toMappingList(t)}))},t.prototype.toMappingList=function(e){var r=[];return Object.keys(e.mappings).forEach(function(t){r.push({id:t,label:e.mappings[t].label,kind:e.mappings[t].kind,choices:e.mappings[t].choices,allowed:e.mappings[t].allowed})}),r},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(),P=function(){function t(){}return t.root="root",t.impersonate="impersonate",t.owner="agent",t.developer="app-manager",t.marketer="marketer",t.cashier="cashier",t}(),x=function(){function e(){}return e.getIcon=function(t){switch(t){case e.BOOLEAN:return"type_booleano";case e.DATE:return"calendar_medium";case e.NUMERIC:return"type_number_small";case e.TEXT:return"text_small";case e.LIST:case e.MULTI:return"type_enumeration_small";default:return"icon_not_found"}},e.asArray=function(){return[e.LIST,e.MULTI,e.BOOLEAN,e.DATE,e.NUMERIC,e.TEXT]},e.BOOLEAN="boolean",e.DATE="date",e.NUMERIC="numeric",e.TEXT="text",e.LIST="list",e.MULTI="multi",e}(),S=function(){function t(){}return t.prototype.hasAuthorization=function(t,e){var r,n;try{for(var o=R(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.role===P[a])return!0;if(P[a]===P.impersonate&&t.impersonate)return!0}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return!1},t.prototype.decodeJwt=function(t){return(new e.JwtHelperService).decodeToken(t)},t.prototype.jwtToNrtAccount=function(t){var e=this.decodeJwt(t),r={token:t,id:e.data.account.id,role:e.data.account.role_key};return i.has(e,"data.super_account.role_key")?r.impersonate=e.data.super_account.role_key:delete r.impersonate,r},t.prototype.gotUserInfo=function(t){return null!=t.email},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),k=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[[y,{provide:"nrtApiConfig",useValue:t}],[S,{provide:"nrtApiConfig",useValue:t}],[v,{provide:"nrtApiConfig",useValue:t}],[j,{provide:"nrtApiConfig",useValue:t}],[A,{provide:"nrtApiConfig",useValue:t}],[b,{provide:"nrtApiConfig",useValue:t}],[_,{provide:"nrtApiConfig",useValue:t}],[h,{provide:"nrtApiConfig",useValue:t}],[C,{provide:"nrtApiConfig",useValue:t}],[E,{provide:"nrtApiConfig",useValue:t}],[U,{provide:"nrtApiConfig",useValue:t}]]}},e.decorators=[{type:n.NgModule,args:[{imports:[p.CommonModule,r.HttpClientModule]}]}],e}(),M=function(){function t(){this.operationFilter={}}return t.prototype.build=function(){return this.operationFilter},t.prototype.pageable=function(t){return this.operationFilter.page=t,this},t.prototype.search=function(t){return this.operationFilter.search=t,this},t.prototype.sortBy=function(t){return this.operationFilter.sort=t,this},t.prototype.include=function(t){return this.operationFilter.include=t,this},t.prototype.byCustomFilter=function(t,e){return this.operationFilter.filter||(this.operationFilter.filter={}),this.operationFilter.filter[t]=e,this},t.prototype.byAppId=function(t){return this.operationFilter=f({},this.operationFilter,{filter:{app_id:t}}),this},t}();t.NrtApiModule=k,t.AccountProviderService=y,t.AppProviderService=v,t.AuthProviderService=j,t.BeaconProviderService=A,t.ImageProviderService=b,t.InstallationProviderService=_,t.ProfileProviderService=C,t.PushConfigurationProviderService=E,t.InAppEventProviderService=w,t.UserDataMappingProviderService=U,t.NrtRole=P,t.NrtUserDataMappingType=x,t.NrtWsEvents=m,t.NrtWsService=I,t.NrtFilterBuilder=M,t.AccountUtilsService=S,t.ɵg=h,t.ɵa=y,t.ɵb=v,t.ɵc=j,t.ɵd=A,t.ɵe=b,t.ɵf=_,t.ɵh=C,t.ɵk=U,t.ɵj=g,t.ɵi=E,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("rxjs/operators"),require("rxjs"),require("lodash"),require("queueing-subject/lib"),require("rxjs-websockets/lib"),require("@auth0/angular-jwt"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-nearit-api",["exports","@angular/core","@angular/common/http","rxjs/operators","rxjs","lodash","queueing-subject/lib","rxjs-websockets/lib","@auth0/angular-jwt","@angular/common"],e):e(t["ngx-nearit-api"]={},t.ng.core,t.ng.common.http,t.rxjs.operators,t.rxjs,t.lodash,t.lib,t.websocketConnect,t.angularJwt,t.ng.common)}(this,function(t,n,r,a,o,i,s,u,e,p){"use strict";u=u&&u.hasOwnProperty("default")?u["default"]:u;var c=function(t,e){return(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])})(t,e)};function l(t,e){function r(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var f=function(){return(f=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function R(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}var d=function(){function l(){}return l.toJsonModel=function(t,e){var r={};if(t&&(r.id=t.id,r.type=t.type,this.populateJsonAttributes(r,t),t.relationships&&(r.relationships=this.populateJsonRelationships(t.relationships)),t.meta&&(r.meta=this.populateJsonMeta(t.meta)),e)){r.included={},r.included=this.populateInclude(r,t,e,{})}return r},l.toJsonArrayModel=function(t,e,r){var n,o,i=[];try{for(var a=R(t),s=a.next();!s.done;s=a.next()){var u=s.value;i.push(l.toJsonModel(u,e))}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a["return"])&&o.call(a)}finally{if(n)throw n.error}}if(r){var p={};return p.meta=this.populateJsonMeta(r),p.array=i,p}return i},l.toJsonApiModel=function(t){var e,r,n={data:{attributes:{}}};for(var o in n.data.id=t.id,n.data.type=t.type,t)this.notAttributeType(o)||(n.data.attributes[o]=t[o]);if(t.relationships){n.data.relationships={};try{for(var i=R(Object.keys(t.relationships)),a=i.next();!a.done;a=i.next()){o=a.value;n.data.relationships[o]=t.relationships[o]}}catch(s){e={error:s}}finally{try{a&&!a.done&&(r=i["return"])&&r.call(i)}finally{if(e)throw e.error}}}return n},l.populateJsonAttributes=function(t,e){var r,n;if(e&&e.attributes)try{for(var o=R(Object.keys(e.attributes)),i=o.next();!i.done;i=o.next()){var a=i.value;t[a]=e.attributes[a]}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}},l.populateJsonRelationships=function(t){var e,r,n={};try{for(var o=R(Object.keys(t)),i=o.next();!i.done;i=o.next()){var a=i.value;n[a]=t[a]}}catch(s){e={error:s}}finally{try{i&&!i.done&&(r=o["return"])&&r.call(o)}finally{if(e)throw e.error}}return n},l.populateJsonMeta=function(t){var e,r,n={};try{for(var o=R(Object.keys(t)),i=o.next();!i.done;i=o.next()){var a=i.value;n[a]=t[a]}}catch(s){e={error:s}}finally{try{i&&!i.done&&(r=o["return"])&&r.call(o)}finally{if(e)throw e.error}}return n},l.populateInclude=function(f,d,h,y){var t,e,r=function(t){var e,r,n=d.relationships[t].data;if(f.included[t]={},!n)return"continue";if(Array.isArray(n)){var o=[],i=function(e){var t={},r=h.find(function(t){return t.id===e.id});if(!r)return"continue";if(t.id=r.id,g.populateJsonAttributes(t,r),r.meta&&(t.meta=g.populateJsonMeta(r.meta)),r.relationships&&!y[e.id]){y[e.id]=e.id;var n=g.populateInclude({included:{}},r,h,y);t.included=n,t.relationships=g.populateJsonRelationships(r.relationships)}o.push(t)};try{for(var a=R(n),s=a.next();!s.done;s=a.next()){i(s.value)}}catch(l){e={error:l}}finally{try{s&&!s.done&&(r=a["return"])&&r.call(a)}finally{if(e)throw e.error}}f.included[t]=o}else if("parent"===t)f.included[t].id=n.id;else{var u={},p=h.find(function(t){return t.id===n.id});if(p){if(u.id=p.id,g.populateJsonAttributes(u,p),p.meta&&(u.meta=g.populateJsonMeta(p.meta)),p.relationships&&!y[n.id]){y[n.id]=n.id;var c=g.populateInclude({included:{}},p,h,y);u.included=c,u.relationships=g.populateJsonRelationships(p.relationships)}f.included[t]=u}}},g=this;try{for(var n=R(Object.keys(d.relationships)),o=n.next();!o.done;o=n.next()){r(o.value)}}catch(i){t={error:i}}finally{try{o&&!o.done&&(e=n["return"])&&e.call(n)}finally{if(t)throw t.error}}return f.included},l.createFilter=function(t){var e,r,n,o,i,a,s,u,p,c,l,f,d={};t.sort&&(d.sort=t.sort),t.include&&(d.include=t.include),t.polyglot&&(d.polyglot=t.polyglot);var h=t.filter;for(var y in h)if(h[y]instanceof Object)try{for(var g=R(Object.keys(h[y])),v=g.next();!v.done;v=g.next()){var j=v.value;d["filter["+y+"]["+j+"]"]=h[y][j]}}catch(x){e={error:x}}finally{try{v&&!v.done&&(r=g["return"])&&r.call(g)}finally{if(e)throw e.error}}else d["filter["+y+"]"]=h[y];if(t.filterMultipleFields&&(d.filter=t.filterMultipleFields),t.startsWith)try{for(var A=R(Object.keys(t.startsWith)),m=A.next();!m.done;m=A.next()){d["filter["+(y=m.value)+"][starts_with]"]=t.startsWith[y]}}catch(S){n={error:S}}finally{try{m&&!m.done&&(o=A["return"])&&o.call(A)}finally{if(n)throw n.error}}if(t.starts)try{for(var I=R(Object.keys(t.starts)),b=I.next();!b.done;b=I.next()){d["filter["+(y=b.value)+"][start]"]=t.starts[y]}}catch(k){i={error:k}}finally{try{b&&!b.done&&(a=I["return"])&&a.call(I)}finally{if(i)throw i.error}}if(t.ends)try{for(var _=R(Object.keys(t.ends)),C=_.next();!C.done;C=_.next()){d["filter["+(y=C.value)+"][end]"]=t.ends[y]}}catch(T){s={error:T}}finally{try{C&&!C.done&&(u=_["return"])&&u.call(_)}finally{if(s)throw s.error}}if(t.contains)try{for(var E=R(Object.keys(t.contains)),w=E.next();!w.done;w=E.next()){d["filter["+(y=w.value)+"][contains]"]=t.contains[y]}}catch(M){p={error:M}}finally{try{w&&!w.done&&(c=E["return"])&&c.call(E)}finally{if(p)throw p.error}}if(t.page)try{for(var U=R(Object.keys(t.page)),P=U.next();!P.done;P=U.next()){d["page["+(y=P.value)+"]"]=t.page[y]}}catch(O){l={error:O}}finally{try{P&&!P.done&&(f=U["return"])&&f.call(U)}finally{if(l)throw l.error}}return t.search&&(d.search=t.search),t.app_id&&(d.app_id=t.app_id),t.price&&(d.price=t.price),d},l.notAttributeType=function(t){return"relationships"===t||"meta"===t||"included"===t||"id"===t||"type"===t},l.addRelationship=function(t,e){var r=e.key,n=e.type,o=e.data,i=f({},t);if(i.relationships||(i.relationships={}),Array.isArray(o)){if(0===o.length)return;i.relationships[r]={data:[]};for(var a=0;a<o.length;a++){var s=o[a];null!=s&&""!==s&&i.relationships[r].data.push({id:s,type:n})}}else i.relationships[r]={data:{id:o,type:n}};return i},l.cleanRelationships=function(t){return t&&t.relationships&&delete t.relationships,t},l}(),h=function(){function t(t){this.http=t}return t.prototype._get=function(t,e,r){return r&&r.params&&(r.params=d.createFilter(r.params)),e&&(t=t+"/"+e),this.http.get(t,r).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){return d.toJsonModel(i.get(t,"data",{}),i.get(t,"included",null))}))},t.prototype._getAll=function(t,e){return e&&e.params&&(e.params=d.createFilter(e.params)),this.http.get(t,e).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){return d.toJsonArrayModel(i.get(t,"data",[]))}))},t.prototype._post=function(t,e,r){return this.http.post(t,d.toJsonApiModel(e)).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){return d.toJsonModel(i.get(t,"data",{}),i.get(t,"included",null))}))},t.prototype._put=function(t,e,r,n){return this.http.put(t+"/"+e,d.toJsonApiModel(r)).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){return d.toJsonModel(i.get(t,"data",{}),i.get(t,"included",null))}))},t.prototype._delete=function(t,e,r){return this.http["delete"](t+"/"+e,r).pipe(a.retry(2),a.catchError(function(t){return o.throwError(t)}),a.map(function(t){if(t&&t.data)return d.toJsonModel(i.get(t,"data",{}),i.get(t,"included",null))}))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:r.HttpClient}]},t}(),y=function(){function t(t,e){this.jsonApiClient=t,this.config=e,this.resourceUrl=e.baseUrl+"/accounts"}return t.prototype.create=function(t,e,r){var n=this.setupRelationships(t,e);return this.jsonApiClient._post(this.resourceUrl,n,r)},t.prototype.readAll=function(t){return this.jsonApiClient._getAll(this.resourceUrl,t)},t.prototype.read=function(t,e){return this.jsonApiClient._get(this.resourceUrl,t,e)},t.prototype.update=function(t,e,r,n){var o=this.setupRelationships(e,r);return this.jsonApiClient._put(this.resourceUrl,t,o,n)},t.prototype["delete"]=function(t,e){return this.jsonApiClient._delete(this.resourceUrl,t,e)},t.prototype.setupRelationships=function(t,e){return t=d.addRelationship(t,{key:"parent",type:"accounts",data:e}),delete(t=d.addRelationship(t,{key:"apps",type:"apps",data:t.apps})).apps,t},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t}(),g=function(){function t(t,e,r){this.jsonApiClient=t,this._resourceUrl=e,this._config=r,this.config=r,this.resourceUrl=r.baseUrl+e}return t.prototype.create=function(t,e){return this.jsonApiClient._post(this.resourceUrl,t,e)},t.prototype.readAll=function(t){return this.jsonApiClient._getAll(this.resourceUrl,t)},t.prototype.read=function(t,e){return this.jsonApiClient._get(this.resourceUrl,t,e)},t.prototype.update=function(t,e,r){return this.jsonApiClient._put(this.resourceUrl,t,e,r)},t.prototype["delete"]=function(t,e){return this.jsonApiClient._delete(this.resourceUrl,t,e)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:h},null,{type:undefined}]},t}(),v=function(r){function t(t,e){return r.call(this,t,"/apps",e)||this}return l(t,r),t.prototype.getStats=function(t){return this.jsonApiClient._get(this.resourceUrl+"/"+t+"/stats")},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t}(g),j=function(){function t(t,e){this.jsonApiClient=t,this.config=e,this.resourceURL=e.baseUrl}return t.prototype.login=function(t,e){return this.jsonApiClient._post(this.resourceURL+"/auth",t,e)},t.prototype.signup=function(t,e){return this.jsonApiClient._post(this.resourceURL+"/signup",t,e)},t.prototype.impersonate=function(t,e){return this.jsonApiClient._get(this.resourceURL+"/masks/as",t,e)},t.prototype.deImpersonate=function(t){return this.jsonApiClient._get(this.resourceURL+"/masks/up","",t)},t.prototype.sendRecoveryEmail=function(t,e){return this.jsonApiClient._post(this.resourceURL+"/auth/new_password",{type:"authorization",email:t},e)},t.prototype.validateChangePasswordToken=function(t,e){return this.jsonApiClient._post(this.resourceURL+"/auth/exchange_token",{type:"authorization",token:t},e)},t.prototype.updatePassword=function(e,r,t){var n,o=this,i=this.resourceURL+"/accounts";return this.jsonApiClient._get(i,e,t).pipe(a.flatMap(function(t){return n=f({},t,{password:r}),o.jsonApiClient._put(i,e,n)}),a.map(function(){return n}))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t}(),A=function(r){function t(t,e){return r.call(this,t,"/plugins/geopolis/beacons",e)||this}return l(t,r),t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(g),m=function(){function t(){}return t.RECIPE_FIRED="RECIPE_FIRED",t.INSTALLATION_CREATEDì="INSTALLATION_CREATED",t.UPLOAD_PROCESSED="UPLOAD_PROCESSED",t.IMAGE_PROCESSED="IMAGE_PROCESSED",t.TEST_DEVICE_ENROLLED="TEST_DEVICE_ENROLLED",t.TEST_DEVICE_UNENROLLED="TEST_DEVICE_UNENROLLED",t.TEST_PUSH_SENT="TEST_PUSH_SENT",t}(),I=function(){function t(t){this.config=t,this.wssUrl=t.wssUrl}return t.prototype.init=function(t,e){var r=u(this.wssUrl+"/apps/"+e+"?jwt="+t,new s.QueueingSubject);this.messages=r.messages,this.connectionStatus=r.connectionStatus},t.prototype.register=function(){return this.messages.pipe(a.retryWhen(function(t){return t?t.delay(1e3):null}),a.map(function(t){return t?JSON.parse(t):t}))},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(),b=function(){function t(t,e,r){this.jsonApiClient=t,this.ws=e,this.config=r,this.resourceUrl=r.baseUrl+"/media/images"}return t.prototype.create=function(t,e){return this.jsonApiClient._post(this.resourceUrl,t,e)},t.prototype.upload=function(t,e,r){var n=this;return o.of({name:r.name,image:r.base64,app_id:e,creator_id:t}).pipe(a.flatMap(function(t){return n.create(t)}),a.flatMap(function(t){return n.currentImgId=t.id,n.ws.register()}),a.filter(function(t){return t&&t.event===m.IMAGE_PROCESSED&&t.data.id===n.currentImgId}),a.first(),a.map(function(t){return i.get(t,"data.attributes.image.url")}),a.finalize(function(){return n.currentImgId=null}))},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:I},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject(I),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(),_=function(r){function t(t,e){return r.call(this,t,"/installations",e)||this}return l(t,r),t.prototype.sendTestInvitation=function(t,e){return this.jsonApiClient._post(this.config.baseUrl+"/apps/"+t+"/send_test_invitation?email="+e,{})},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(g),C=function(r){function t(t,e){return r.call(this,t,"/profiles",e)||this}return l(t,r),t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(g),E=function(r){function t(t,e){return r.call(this,t,"/plugins/push-machine/configurations",e)||this}return l(t,r),t.prototype.convertP12=function(t){return this.jsonApiClient._post(this.config.baseUrl+"/certificates/p12toPEM",t)},t.prototype.sendTestPush=function(t,e){var r=this.config.baseUrl+"/plugins/push-machine/pushes/send_push_test?app_id="+t+"&installation_ids="+e;return this.jsonApiClient._post(r,{})},t.prototype.getTestPushReport=function(t){var e=this.config.baseUrl+"/plugins/push-machine/pushes/test/stats?app_id="+t;return this.jsonApiClient._getAll(e)},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(g),w=function(){function t(t,e){this.jsonApiClient=t,this.config=e,this.resourceUrl=e.baseUrl+"/plugins/thehitman/actions/custom_trigger/bundles"}return t.prototype.create=function(t,e,r){var n=this.setHeaders(t,r);return this.jsonApiClient._post(this.resourceUrl,e,n)},t.prototype.read=function(t,e,r){var n=this.setHeaders(t,r);return this.jsonApiClient._get(this.resourceUrl,e,n)},t.prototype.readAll=function(t,e){var r=this.setHeaders(t,e);return this.jsonApiClient._getAll(this.resourceUrl,r)},t.prototype["delete"]=function(t,e,r){var n=this.setHeaders(t,r);return this.jsonApiClient._delete(this.resourceUrl,e,n)},t.prototype.setHeaders=function(t,e){return f({},e,{headers:{"X-Near-App-Id":t}})},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(),U=function(){function t(t,e){this.jsonApiClient=t,this.config=e,this.resourceUrl=e.baseUrl+"/plugins/congrego/configurations"}return t.prototype.update=function(t,e,r){var n=this,o={mappings:{},id:t,type:"configurations"};return e.map(function(t){o.mappings[t.id]={kind:t.kind,label:t.label,choices:t.choices,allowed:t.allowed}}),this.jsonApiClient._put(this.resourceUrl,t,o,r).pipe(a.map(function(t){return n.toMappingList(t)}))},t.prototype.read=function(t,e){var r=this;return this.jsonApiClient._get(this.resourceUrl,t,e).pipe(a.map(function(t){return r.toMappingList(t)}))},t.prototype.toMappingList=function(e){var r=[];return Object.keys(e.mappings).forEach(function(t){r.push({id:t,label:e.mappings[t].label,kind:e.mappings[t].kind,choices:e.mappings[t].choices,allowed:e.mappings[t].allowed})}),r},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:h},{type:undefined,decorators:[{type:n.Inject,args:["nrtApiConfig"]}]}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(h),n.inject("nrtApiConfig"))},token:t,providedIn:"root"}),t}(),P=function(){function t(){}return t.root="root",t.impersonate="impersonate",t.owner="agent",t.developer="app-manager",t.marketer="marketer",t.cashier="cashier",t}(),x=function(){function e(){}return e.getIcon=function(t){switch(t){case e.BOOLEAN:return"type_booleano";case e.DATE:return"calendar_medium";case e.NUMERIC:return"type_number_small";case e.TEXT:return"text_small";case e.LIST:case e.MULTI:return"type_enumeration_small";default:return"icon_not_found"}},e.asArray=function(){return[e.LIST,e.MULTI,e.BOOLEAN,e.DATE,e.NUMERIC,e.TEXT]},e.BOOLEAN="boolean",e.DATE="date",e.NUMERIC="numeric",e.TEXT="text",e.LIST="list",e.MULTI="multi",e}(),S=function(){function t(){}return t.prototype.hasAuthorization=function(t,e){var r,n;try{for(var o=R(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.role===P[a])return!0;if(P[a]===P.impersonate&&t.impersonate)return!0}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return!1},t.prototype.decodeJwt=function(t){return(new e.JwtHelperService).decodeToken(t)},t.prototype.jwtToNrtAccount=function(t){var e=this.decodeJwt(t),r={token:t,id:e.data.account.id,role:e.data.account.role_key};return i.has(e,"data.super_account.role_key")?r.impersonate=e.data.super_account.role_key:delete r.impersonate,r},t.prototype.gotUserInfo=function(t){return null!=t.email},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),k=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[[y,{provide:"nrtApiConfig",useValue:t}],[S,{provide:"nrtApiConfig",useValue:t}],[v,{provide:"nrtApiConfig",useValue:t}],[j,{provide:"nrtApiConfig",useValue:t}],[A,{provide:"nrtApiConfig",useValue:t}],[b,{provide:"nrtApiConfig",useValue:t}],[_,{provide:"nrtApiConfig",useValue:t}],[h,{provide:"nrtApiConfig",useValue:t}],[C,{provide:"nrtApiConfig",useValue:t}],[E,{provide:"nrtApiConfig",useValue:t}],[U,{provide:"nrtApiConfig",useValue:t}]]}},e.decorators=[{type:n.NgModule,args:[{imports:[p.CommonModule,r.HttpClientModule]}]}],e}(),T=function(){function t(){this.operationFilter={}}return t.prototype.build=function(){return this.operationFilter},t.prototype.pageable=function(t){return this.operationFilter.page=t,this},t.prototype.search=function(t){return this.operationFilter.search=t,this},t.prototype.sortBy=function(t){return this.operationFilter.sort=t,this},t.prototype.include=function(t){return this.operationFilter.include=t,this},t.prototype.byCustomFilter=function(t,e){return this.operationFilter.filter||(this.operationFilter.filter={}),this.operationFilter.filter[t]=e,this},t.prototype.byAppId=function(t){return this.operationFilter=f({},this.operationFilter,{filter:{app_id:t}}),this},t}();t.NrtApiModule=k,t.AccountProviderService=y,t.AppProviderService=v,t.AuthProviderService=j,t.BeaconProviderService=A,t.ImageProviderService=b,t.InstallationProviderService=_,t.ProfileProviderService=C,t.PushConfigurationProviderService=E,t.InAppEventProviderService=w,t.UserDataMappingProviderService=U,t.NrtRole=P,t.NrtUserDataMappingType=x,t.NrtWsEvents=m,t.NrtWsService=I,t.NrtFilterBuilder=T,t.AccountUtilsService=S,t.ɵg=h,t.ɵa=y,t.ɵb=v,t.ɵc=j,t.ɵd=A,t.ɵe=b,t.ɵf=_,t.ɵh=C,t.ɵk=U,t.ɵj=g,t.ɵi=E,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngx-nearit-api.umd.min.js.map |
@@ -447,2 +447,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbi1hcGktdXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtbmVhcml0LWFwaS8iLCJzb3VyY2VzIjpbImxpYi9qc29uLWFwaS9qc29uLWFwaS11dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsa0NBUUM7OztJQVBDLDBCQUFZOztJQUNaLDRCQUFjOztJQUNkLDRCQUF3Qjs7SUFDeEIsOEJBQWE7O0lBQ2IscUNBQW9COztJQUNwQiw0QkFBVzs7SUFDWCxnQ0FBZTs7Ozs7QUFHakIsc0NBS0M7OztJQUpDLDhCQUFZOztJQUNaLGdDQUFjOztJQUNkLHNDQUFpQjs7SUFDakIseUNBQW9COzs7OztBQUl0QiwwQ0FHQzs7O0lBRkMsb0NBQVc7O0lBQ1gscUNBQVk7Ozs7O0FBR2QseUNBSUM7OztJQUhDLGtDQUFZOztJQUNaLG1DQUFhOztJQUNiLG1DQUFVOzs7Ozs7Ozs7QUFZWixNQUFNLE9BQU8sWUFBWTtJQUV2QixnQkFBZ0IsQ0FBQzs7Ozs7OztJQUtqQixNQUFNLENBQUMsV0FBVyxDQUFFLFlBQTBCLEVBQUUsWUFBa0I7O2NBQzFELFNBQVMsR0FBaUIsRUFBRTtRQUVsQyxJQU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4gICAqL1xuICBzdGF0aWMgcG9wdWxhdGVKc29uQXR0cmlidXRlcyAoanNvbk1vZGVsLCBqc29uQXBpTW9kZWwpIHtcblxuICAgIGlmICghanNvbkFwaU1vZGVsIHx8ICFqc29uQXBpTW9kZWwuYXR0cmlidXRlcykge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGZvciAoY29uc3Qga2V5IG9mIE9iamVjdC5rZXlzKGpzb25BcGlNb2RlbC5hdHRyaWJ1dGVzKSkge1xuICAgICAganNvbk1vZGVsW2tleV0gPSBqc29uQXBpTW9kZWwuYXR0cmlidXRlc1trZXldO1xuICAgIH1cblxuICAgIC8qIExFR0FDWVxuICAgIGZvciAobGV0IGtleSBpbiBqc29uQXBpTW9kZWwuYXR0cmlidXRlcykge1xuICAgICAganNvbk1vZGVsW2tleV0gPSBqc29uQXBpTW9kZWwuYXR0cmlidXRlc1trZXldO1xuICAgIH0qL1xuXG4gIH1cblxuICAvKipcbiAgICogQ29weSBqc29uIGFwaSByZWxhdGlvbnNoaXAgdG8gYSBqc29uIG1vZGVsLlxuICAgKiBXaWxsIGJlIGluc2VydGVkIGFzIGEgbmVzdGVkIG9iamVjdCBpbnRvIHRoZSBwYXJlbnQgbW9kZWwuXG4gICAqL1xuICBzdGF0aWMgcG9wdWxhdGVKc29uUmVsYXRpb25zaGlwcyAocmVsYXRpb25zaGlwcykge1xuXG4gICAgY29uc3QgcmVsYXRpb25zaGlwc09iamVjdCA9IHt9O1xuXG4gICAgZm9yIChjb25zdCBrZXkgb2YgT2JqZWN0LmtleXMocmVsYXRpb25zaGlwcykpIHtcbiAgICAgIHJlbGF0aW9uc2hpcHNPYmplY3Rba2V5XSA9IHJlbGF0aW9uc2hpcHNba2V5XTtcbiAgICB9XG5cbiAgICAvKiBMRUdBQ1lcbiAgICBmb3IgKGxldCBrZXkgaW4gcmVsYXRpb25zaGlwcykge1xuICAgICAgcmVsYXRpb25zaGlwc09iamVjdFtrZXldID0gcmVsYXRpb25zaGl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yB8fCBrZXkgPT09ICdpZCcgfHwga2V5ID09PSAndHlwZScpO1xuICB9XG5cblxuXG4gIC8qKlxuICAgKi9cbiAgc3RhdGljIGFkZFJlbGF0aW9uc2hpcCAoc291cmNlOiBhbnksIHsga2V5LCB0eXBlLCBkYXRhfTogSnNvbkFwaVJlbGF0aW9uc2hpcCk6IGFueSB7XG5cbiAgICBjb25zdCBjb3B5ID0geyAuLi5zb3VyY2UgfTtcblxuICAgIGlmICghY29weS5yZWxhdGlvbnNoaXBzKSB7XG4gICAgICBjb3B5LnJlbGF0aW9uc2hpcHMgPSB7fTtcbiAgICB9XG5cbiAgICBpZiAoQXJyYXkuaXNBcnJheShkYXRhKSkge1xuXG4gICAgICBpZiAoZGF0YS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgcmV0dXJuO1xuICAgICAgfVxuXG4gICAgICBjb3B5LnJlbGF0aW9uc2hpcHNba2V5XSA9IHtcbiAgICAgICAgZGF0YTogW11cbiAgICAgIH07XG5cbiAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgZGF0YS5sZW5ndGg7IGkrKykge1xuICAgICAgICBjb25zdCBjdXJyVmFsdWUgPSBkYXRhW2ldO1xuICAgICAgICBpZiAoY3VyclZhbHVlID09PSBudWxsIHx8IHR5cGVvZiBjdXJyVmFsdWUgPT09ICd1bmRlZmluZWQnIHx8IGN1cnJWYWx1ZSA9PT0gJycpIHtcbiAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvcHkucmVsYXRpb25zaGlwc1trZXldLmRhdGEucHVzaCh7XG4gICAgICAgICAgaWQ6IGN1cnJWYWx1ZSxcbiAgICAgICAgICB0eXBlXG4gICAgICAgIH0pO1xuXG4gICAgICB9XG5cbiAgICB9IGVsc2Uge1xuICAgICAgY29weS5yZWxhdGlvbnNoaXBzW2tleV0gPSB7XG4gICAgICAgIGRhdGE6IHtcbiAgICAgICAgICBpZDogZGF0YSxcbiAgICAgICAgICB0eXBlXG4gIC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dGVGaWx0ZXI6IEpzb25BcGlVdGlscy5jcmVhdGVGaWx0ZXIsXG4gICAgbm90QXR0cmlidXRlVHlwZTogSnNvbkFwaVV0aWxzLm5vdEF0dHJpYnV0ZVR5cGUsXG4gICAgYWRkUmVsYXRpb25zaGlwOiBKc29uQXBpVXRpbHMuYWRkUmVsYXRpb25zaGlwLFxuICAgIGNsZWFuUmVsYXRpb25zaGlwczogSnNvbkFwaVV0aWxzLmNsZWFuUmVsYXRpb25zaGlwc1xuICB9O1xuXG59Ki9cbiJdfQ== |
@@ -17,2 +17,3 @@ /** | ||
export {} from './nrt-push-configuration.model'; | ||
export {} from './nrt-push-delivery-stats.model'; | ||
export {} from './nrt-profile.model'; | ||
@@ -22,2 +23,2 @@ export { NrtRole } from './nrt-role.model'; | ||
export { NrtUserDataMappingType } from './nrt-user-data-mapping.model'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtbmVhcml0LWFwaS8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLGVBQWMscUJBQXFCLENBQUM7QUFDcEMsZUFBYyxpQkFBaUIsQ0FBQztBQUNoQyxlQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGVBQWMseUJBQXlCLENBQUM7QUFDeEMsZUFBYywyQkFBMkIsQ0FBQztBQUMxQyxlQUFjLG9CQUFvQixDQUFDO0FBQ25DLGVBQWMseUJBQXlCLENBQUM7QUFDeEMsZUFBYyxrQkFBa0IsQ0FBQztBQUNqQyxlQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGVBQWMsMEJBQTBCLENBQUM7QUFDekMsZUFBYywwQkFBMEIsQ0FBQztBQUN6QyxlQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGVBQWMscUJBQXFCLENBQUM7QUFDcEMsd0JB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ydEFwaUNvbmZpZyB9IF0sXG4gICAgICAgIFsgSW5zdGFsbGF0aW9uUHJvdmlkZXJTZXJ2aWNlLCB7IHByb3ZpZGU6ICducnRBcGlDb25maWcnLCB1c2VWYWx1ZTogbnJ0QXBpQ29uZmlnIH0gXSxcbiAgICAgICAgW8KgSnNvbkFwaUNsaWVudFNlcnZpY2UsIHsgcHJvdmlkZTogJ25ydEFwaUNvbmZpZycsIHVzZVZhbHVlOiBucnRBcGlDb25maWcgfSBdLFxuICAgICAgICBbwqBQcm9maWxlUHJvdmlkZXJTZXJ2aWNlLCB7IHByb3ZpZGU6ICducnRBcGlDb25maWcnLCB1c2VWYWx1ZTogbnJ0QXBpQ29uZmlnIH0gXSxcbiAgICAgICAgW8KgUHVzaENvbmZpZ3VyYXRpb25Qcm92aWRlclNlcnZpY2UsIHsgcHJvdmlkZTogJ25ydEFwaUNvbmZpZycsIHVzZVZhbHVlOiBucnRBcGlDb25maWcgfSBdLFxuICAgICAgICBbIFVzZXJEYXRhTWFwcGluZ1Byb3ZpZGVyU2VydmljZSwgeyBwcm92aWRlOiAnbnJ0QXBpQ29uZmlnJywgdXNlVmFsdWU6IG5ydEFwaUNvbmZpZyB9IF1cbiAgICAgIF1cbiAgICB9O1xuICB9XG59XG4iXX0= |
@@ -59,3 +59,3 @@ /** | ||
register() { | ||
return this.messages.pipe(retryWhen((errors) => errors.delay(1000)), map(message => (message) ? JSON.parse(message) : message)); | ||
return this.messages.pipe(retryWhen((errors) => (errors) ? errors.delay(1000) : null), map(message => (message) ? JSON.parse(message) : message)); | ||
} | ||
@@ -86,2 +86,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnJ0LXdzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtbmVhcml0LWFwaS8iLCJzb3VyY2VzIjpbImxpYi9ucnQtd3MvbnJ0LXdzLnNlcnZpY2UudHMiXSwibmFtZXMiO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0aGlzLndzc1VybH0vYXBwcy8ke2FwcElkfT9qd3Q9JHt0b2tlbn1gLFxuICAgICAgbmV3IFF1ZXVlaW5nU3ViamVjdDxzdHJpbmc+KClcbiAgICApO1xuICAgIHRoaXMubWVzc2FnZXMgPSBjb25uZWN0aW9uLm1lc3NhZ2VzO1xuICAgIHRoaXMuY29ubmVjdGlvblN0YXR1cyA9IGNvbm5lY3Rpb24uY29ubmVjdGlvblN0YXR1cztcbiAgfVxuXG4gIHJlZ2lzdGVyKCk6IE9ic2VydmFibGU8YW55PiB7XG4gICAgcmV0dXJuIHRoaXMubWVzc2FnZXMucGlwZShcbiAgICAgIHJldHJ5V2hlbiggKGVycm9yczogYW55KSA9PiAoZXJyb3JzKSA/IGVycm9ycy5kZWxheSgxMDAwKSA6IG51bGwgKSxcbiAgICAgIG1hcCggbWVzc2FnZSA9PiAobWVzc2FnZSkgPyBKU09OLnBhcnNlKG1lc3NhZ2UpIDogbWVzc2FnZSApXG4gICAgKTtcbiAgfVxuXG59XG4iXX0= |
@@ -37,2 +37,26 @@ /** | ||
} | ||
/** | ||
* @param {?} appId | ||
* @param {?} installationId | ||
* @return {?} | ||
*/ | ||
sendTestPush(appId, installationId) { | ||
/** @type {?} */ | ||
const url = this.config.baseUrl + | ||
'/plugins/push-machine/pushes/send_push_test' + | ||
'?app_id=' + appId + | ||
'&installation_ids=' + installationId; | ||
return this.jsonApiClient._post(url, {}); | ||
} | ||
/** | ||
* @param {?} appId | ||
* @return {?} | ||
*/ | ||
getTestPushReport(appId) { | ||
/** @type {?} */ | ||
const url = this.config.baseUrl + | ||
'/plugins/push-machine/pushes/test/stats' + | ||
'?app_id=' + appId; | ||
return this.jsonApiClient._getAll(url); | ||
} | ||
} | ||
@@ -50,2 +74,2 @@ PushConfigurationProviderService.decorators = [ | ||
/** @nocollapse */ PushConfigurationProviderService.ngInjectableDef = i0.defineInjectable({ factory: function PushConfigurationProviderService_Factory() { return new PushConfigurationProviderService(i0.inject(i1.JsonApiClientService), i0.inject("nrtApiConfig")); }, token: PushConfigurationProviderService, providedIn: "root" }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVzaC1jb25maWd1cmF0aW9uLXByb3ZpZGVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtbmVhcml0LWFwaS8iLCJzb3VyY2VzIjpbImxpYi9wcm92aWRlcnMvcHVzaC1jb25maWd1cmF0aW9uLXByb3ZpZGVyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDOzs7Ozs7QUFJOUQsNkNBSUM7OztJQUhDLHVDQUFhOztJQUNiLHNDQUFZOztJQUNaLDJDQUFrQjs7QUFNcEIsTUFBTSxPQUFPLGdDQUFpQyxTQUFRLG1CQUF5Qzs7Ozs7SUFFN0YsWUFBWSxhQUFtQyxFQUNYLE1BQW9CO1FBQ3RELEtBQUssQ0FBQyxhQUFhLEVBQUUsc0NBQXNDLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDdkUsQ0FBQzs7Ozs7SUFFRCxVQUFVLENBQUMsR0FBNEI7UUFDckMsT0FBTyxJQUFJLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sR0FBRyx3QkFBd0IsRUFBRSxHQUFHLENBQUMsQ0FBQztJQUN2RixDQUFDOzs7WUFaRixVQUFVLFNBQUM7Z0JBQ1YsVUFBVSxFQUFFLE1BQU07YUFDbkI7Ozs7WUFiUSxvQkFBb0I7NENBaUJkLE1BQU0sU0FBQyxjQU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lbFdpdGhFcnJvcnMsXG4gICAgdG9Kc29uQXJyYXlNb2RlbDogSnNvbkFwaVV0aWxzLnRvSnNvbkFycmF5TW9kZWwsXG4gICAgdG9Kc29uQXBpTW9kZWw6IEpzb25BcGlVdGlscy50b0pzb25BcGlNb2RlbCxcbiAgICBwb3B1bGF0ZUpzb25BdHRyaWJ1dGVzOiBKc29uQXBpVXRpbHMucG9wdWxhdGVKc29uQXR0cmlidXRlcyxcbiAgICBwb3B1bGF0ZUpzb25SZWxhdGlvbnNoaXBzOiBKc29uQXBpVXRpbHMucG9wdWxhdGVKc29uUmVsYXRpb25zaGlwcyxcbiAgICBwb3B1bGF0ZUpzb25MaW5rczogSnNvbkFwaVV0aWxzLnBvcHVsYXRlSnNvbkxpbmtzLFxuICAgIHBvcHVsYXRlSnNvbk1ldGE6IEpzb25BcGlVdGlscy5wb3B1bGF0ZUpzb25NZXRhLFxuICAgIHBvcHVsYXRlSW5jbHVkZTogSnNvbkFwaVV0aWxzLnBvcHVsYXRlSW5jbHVkZSxcbiAgICBjcmVhdGVGaWx0ZXI6IEpzb25BcGlVdGlscy5jcmVhdGVGaWx0ZXIsXG4gICAgbm90QXR0cmlidXRlVHlwZTogSnNvbkFwaVV0aWxzLm5vdEF0dHJpYnV0ZVR5cGUsXG4gICAgYWRkUmVsYXRpb25zaGlwOiBKc29uQXBpVXRpbHMuYWRkUmVsYXRpb25zaGlwLFxuICAgIGNsZWFuUmVsYXRpb25zaGlwczogSnNvbkFwaVV0aWxzLmNsZWFuUmVsYXRpb25zaGlwc1xuICB9O1xuXG59Ki9cbiJdfQ== |
@@ -17,2 +17,3 @@ /** | ||
export {} from './nrt-push-configuration.model'; | ||
export {} from './nrt-push-delivery-stats.model'; | ||
export {} from './nrt-profile.model'; | ||
@@ -22,2 +23,2 @@ export { NrtRole } from './nrt-role.model'; | ||
export { NrtUserDataMappingType } from './nrt-user-data-mapping.model'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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29uZmlnIH0gXSxcbiAgICAgICAgW8KgUHVzaENvbmZpZ3VyYXRpb25Qcm92aWRlclNlcnZpY2UsIHsgcHJvdmlkZTogJ25ydEFwaUNvbmZpZycsIHVzZVZhbHVlOiBucnRBcGlDb25maWcgfSBdLFxuICAgICAgICBbIFVzZXJEYXRhTWFwcGluZ1Byb3ZpZGVyU2VydmljZSwgeyBwcm92aWRlOiAnbnJ0QXBpQ29uZmlnJywgdXNlVmFsdWU6IG5ydEFwaUNvbmZpZyB9IF1cbiAgICAgIF1cbiAgICB9O1xuICB9XG59XG4iXX0= |
@@ -67,3 +67,3 @@ /** | ||
function () { | ||
return this.messages.pipe(retryWhen(function (errors) { return errors.delay(1000); }), map(function (message) { return (message) ? JSON.parse(message) : message; })); | ||
return this.messages.pipe(retryWhen(function (errors) { return (errors) ? errors.delay(1000) : null; }), map(function (message) { return (message) ? JSON.parse(message) : message; })); | ||
}; | ||
@@ -96,2 +96,2 @@ NrtWsService.decorators = [ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnJ0LXdzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtbmVhcml0LWFwaS8iLCJzb3VyY2VzIjpbImxpYi9ucnQtd3MvbnJ0LXdzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN2RCxPQUFPLGdCQUFnQixNQUFNLHFCQUFxQixDQUFDO0FBRW5ELE9BQU8sRUFBRSxTQUFTLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBSWhEO0lBUUU7SUFBZSxDQUFDO0lBUEEsd0JBQVksR0FBRyxjQUFjLENBQU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ICAgIHRoaXMuY29ubmVjdGlvblN0YXR1cyA9IGNvbm5lY3Rpb24uY29ubmVjdGlvblN0YXR1cztcbiAgfVxuXG4gIHJlZ2lzdGVyKCk6IE9ic2VydmFibGU8YW55PiB7XG4gICAgcmV0dXJuIHRoaXMubWVzc2FnZXMucGlwZShcbiAgICAgIHJldHJ5V2hlbiggKGVycm9yczogYW55KSA9PiAoZXJyb3JzKSA/IGVycm9ycy5kZWxheSgxMDAwKSA6IG51bGwgKSxcbiAgICAgIG1hcCggbWVzc2FnZSA9PiAobWVzc2FnZSkgPyBKU09OLnBhcnNlKG1lc3NhZ2UpIDogbWVzc2FnZSApXG4gICAgKTtcbiAgfVxuXG59XG4iXX0= |
@@ -39,2 +39,35 @@ /** | ||
}; | ||
/** | ||
* @param {?} appId | ||
* @param {?} installationId | ||
* @return {?} | ||
*/ | ||
PushConfigurationProviderService.prototype.sendTestPush = /** | ||
* @param {?} appId | ||
* @param {?} installationId | ||
* @return {?} | ||
*/ | ||
function (appId, installationId) { | ||
/** @type {?} */ | ||
var url = this.config.baseUrl + | ||
'/plugins/push-machine/pushes/send_push_test' + | ||
'?app_id=' + appId + | ||
'&installation_ids=' + installationId; | ||
return this.jsonApiClient._post(url, {}); | ||
}; | ||
/** | ||
* @param {?} appId | ||
* @return {?} | ||
*/ | ||
PushConfigurationProviderService.prototype.getTestPushReport = /** | ||
* @param {?} appId | ||
* @return {?} | ||
*/ | ||
function (appId) { | ||
/** @type {?} */ | ||
var url = this.config.baseUrl + | ||
'/plugins/push-machine/pushes/test/stats' + | ||
'?app_id=' + appId; | ||
return this.jsonApiClient._getAll(url); | ||
}; | ||
PushConfigurationProviderService.decorators = [ | ||
@@ -54,2 +87,2 @@ { type: Injectable, args: [{ | ||
export { PushConfigurationProviderService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVzaC1jb25maWd1cmF0aW9uLXByb3ZpZGVyLnNlcnZpY2UuanMiLCJzb3Vy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0YWxsYXRpb25faWRzPScgKyBpbnN0YWxsYXRpb25JZDtcbiAgICByZXR1cm4gdGhpcy5qc29uQXBpQ2xpZW50Ll9wb3N0KHVybCwge30pO1xuICB9XG5cbiAgZ2V0VGVzdFB1c2hSZXBvcnQoYXBwSWQ6IHN0cmluZyk6IE9ic2VydmFibGU8TnJ0UHVzaERlbGl2ZXJ5U3RhdHNbXT4ge1xuICAgIGNvbnN0IHVybCA9IHRoaXMuY29uZmlnLmJhc2VVcmwgK1xuICAgICAgICAgICAgICAgICcvcGx1Z2lucy9wdXNoLW1hY2hpbmUvcHVzaGVzL3Rlc3Qvc3RhdHMnICtcbiAgICAgICAgICAgICAgICAnP2FwcF9pZD0nICsgYXBwSWQ7XG4gICAgcmV0dXJuIHRoaXMuanNvbkFwaUNsaWVudC5fZ2V0QWxsKHVybCk7XG4gIH1cbn1cbiJdfQ== |
@@ -13,2 +13,3 @@ export * from './nrt-account.model'; | ||
export * from './nrt-push-configuration.model'; | ||
export * from './nrt-push-delivery-stats.model'; | ||
export * from './nrt-profile.model'; | ||
@@ -15,0 +16,0 @@ export * from './nrt-role.model'; |
import { JsonApiClientService } from '../json-api/json-api-client.service'; | ||
import { CrudProviderService } from './crud-provider.service'; | ||
import { NrtApiConfig } from '../../public_api'; | ||
import { NrtPushConfiguration } from '../models'; | ||
import { NrtPushConfiguration, NrtPushDeliveryStats } from '../models'; | ||
import { Observable } from 'rxjs'; | ||
export interface NrtP12ConversionRequest { | ||
@@ -12,3 +13,5 @@ type: string; | ||
constructor(jsonApiClient: JsonApiClientService, config: NrtApiConfig); | ||
convertP12(req: NrtP12ConversionRequest): import("rxjs/internal/Observable").Observable<any>; | ||
convertP12(req: NrtP12ConversionRequest): Observable<any>; | ||
sendTestPush(appId: string, installationId: string): Observable<any>; | ||
getTestPushReport(appId: string): Observable<NrtPushDeliveryStats[]>; | ||
} |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"exports":[{"from":"./lib/nrt-user-data-mapping.model"}],"metadata":{"NrtApiConfig":{"__symbolic":"interface"},"NrtApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":13},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":16,"character":27}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["nrtApiConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"NrtApiModule"},"providers":[[{"__symbolic":"reference","name":"ɵa"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"AccountUtilsService"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵb"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵc"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵd"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵe"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵf"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵg"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵh"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵi"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵk"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}]]}}}},"NrtWsEvents":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"RECIPE_FIRED":"RECIPE_FIRED","INSTALLATION_CREATEDì":"INSTALLATION_CREATED","UPLOAD_PROCESSED":"UPLOAD_PROCESSED","IMAGE_PROCESSED":"IMAGE_PROCESSED","TEST_DEVICE_ENROLLED":"TEST_DEVICE_ENROLLED","TEST_DEVICE_UNENROLLED":"TEST_DEVICE_UNENROLLED","TEST_PUSH_SENT":"TEST_PUSH_SENT"}},"NrtWsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":15},"arguments":["nrtApiConfig"]}]],"parameters":[{"__symbolic":"reference","name":"NrtApiConfig"}]}],"init":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NrtFilterPage":{"__symbolic":"interface"},"NrtFilter":{"__symbolic":"interface"},"NrtFilterBuilder":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"build":[{"__symbolic":"method"}],"pageable":[{"__symbolic":"method"}],"search":[{"__symbolic":"method"}],"sortBy":[{"__symbolic":"method"}],"include":[{"__symbolic":"method"}],"byCustomFilter":[{"__symbolic":"method"}],"byAppId":[{"__symbolic":"method"}]}},"AccountUtilsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"hasAuthorization":[{"__symbolic":"method"}],"decodeJwt":[{"__symbolic":"method"}],"jwtToNrtAccount":[{"__symbolic":"method"}],"gotUserInfo":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":18,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":21,"character":30}]}],"_get":[{"__symbolic":"method"}],"_getAll":[{"__symbolic":"method"}],"_post":[{"__symbolic":"method"}],"_put":[{"__symbolic":"method"}],"_delete":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵj"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":18,"character":15},"arguments":["nrtApiConfig"]}]],"parameters":[{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"NrtApiConfig"}]}],"convertP12":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵj":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵg"},null,{"__symbolic":"reference","name":"NrtApiConfig"}]}],"create":[{"__symbolic":"method"}],"readAll":[{"__symbolic":"method"}],"read":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}]}}},"origins":{"NrtApiConfig":"./lib/nrt-api.module","NrtApiModule":"./lib/nrt-api.module","NrtWsEvents":"./lib/nrt-ws/nrt-ws.service","NrtWsService":"./lib/nrt-ws/nrt-ws.service","NrtFilterPage":"./lib/nrt-filter-builder/nrt-filter-builder","NrtFilter":"./lib/nrt-filter-builder/nrt-filter-builder","NrtFilterBuilder":"./lib/nrt-filter-builder/nrt-filter-builder","AccountUtilsService":"./lib/account-utils/account-utils.service","ɵa":"./lib/providers","ɵb":"./lib/providers","ɵc":"./lib/providers","ɵd":"./lib/providers","ɵe":"./lib/providers","ɵf":"./lib/providers","ɵg":"./lib/json-api/json-api-client.service","ɵh":"./lib/providers","ɵi":"./lib/providers/push-configuration-provider.service","ɵj":"./lib/providers/crud-provider.service","ɵk":"./lib/providers"},"importAs":"ngx-nearit-api"} | ||
{"__symbolic":"module","version":4,"exports":[{"from":"./lib/nrt-user-data-mapping.model"}],"metadata":{"NrtApiConfig":{"__symbolic":"interface"},"NrtApiModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":13},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":16,"character":27}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["nrtApiConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"NrtApiModule"},"providers":[[{"__symbolic":"reference","name":"ɵa"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"AccountUtilsService"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵb"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵc"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵd"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵe"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵf"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵg"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵh"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵi"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}],[{"__symbolic":"reference","name":"ɵk"},{"provide":"nrtApiConfig","useValue":{"__symbolic":"reference","name":"nrtApiConfig"}}]]}}}},"NrtWsEvents":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"RECIPE_FIRED":"RECIPE_FIRED","INSTALLATION_CREATEDì":"INSTALLATION_CREATED","UPLOAD_PROCESSED":"UPLOAD_PROCESSED","IMAGE_PROCESSED":"IMAGE_PROCESSED","TEST_DEVICE_ENROLLED":"TEST_DEVICE_ENROLLED","TEST_DEVICE_UNENROLLED":"TEST_DEVICE_UNENROLLED","TEST_PUSH_SENT":"TEST_PUSH_SENT"}},"NrtWsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":15},"arguments":["nrtApiConfig"]}]],"parameters":[{"__symbolic":"reference","name":"NrtApiConfig"}]}],"init":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NrtFilterPage":{"__symbolic":"interface"},"NrtFilter":{"__symbolic":"interface"},"NrtFilterBuilder":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"build":[{"__symbolic":"method"}],"pageable":[{"__symbolic":"method"}],"search":[{"__symbolic":"method"}],"sortBy":[{"__symbolic":"method"}],"include":[{"__symbolic":"method"}],"byCustomFilter":[{"__symbolic":"method"}],"byAppId":[{"__symbolic":"method"}]}},"AccountUtilsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"hasAuthorization":[{"__symbolic":"method"}],"decodeJwt":[{"__symbolic":"method"}],"jwtToNrtAccount":[{"__symbolic":"method"}],"gotUserInfo":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":18,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":21,"character":30}]}],"_get":[{"__symbolic":"method"}],"_getAll":[{"__symbolic":"method"}],"_post":[{"__symbolic":"method"}],"_put":[{"__symbolic":"method"}],"_delete":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵj"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":13,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":19,"character":15},"arguments":["nrtApiConfig"]}]],"parameters":[{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"NrtApiConfig"}]}],"convertP12":[{"__symbolic":"method"}],"sendTestPush":[{"__symbolic":"method"}],"getTestPushReport":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵj":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵg"},null,{"__symbolic":"reference","name":"NrtApiConfig"}]}],"create":[{"__symbolic":"method"}],"readAll":[{"__symbolic":"method"}],"read":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}]}}},"origins":{"NrtApiConfig":"./lib/nrt-api.module","NrtApiModule":"./lib/nrt-api.module","NrtWsEvents":"./lib/nrt-ws/nrt-ws.service","NrtWsService":"./lib/nrt-ws/nrt-ws.service","NrtFilterPage":"./lib/nrt-filter-builder/nrt-filter-builder","NrtFilter":"./lib/nrt-filter-builder/nrt-filter-builder","NrtFilterBuilder":"./lib/nrt-filter-builder/nrt-filter-builder","AccountUtilsService":"./lib/account-utils/account-utils.service","ɵa":"./lib/providers","ɵb":"./lib/providers","ɵc":"./lib/providers","ɵd":"./lib/providers","ɵe":"./lib/providers","ɵf":"./lib/providers","ɵg":"./lib/json-api/json-api-client.service","ɵh":"./lib/providers","ɵi":"./lib/providers/push-configuration-provider.service","ɵj":"./lib/providers/crud-provider.service","ɵk":"./lib/providers"},"importAs":"ngx-nearit-api"} |
{ | ||
"name": "ngx-nearit-api", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://www.nearit.com", | ||
@@ -5,0 +5,0 @@ "author": "Claudio Suardi", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1237151
126
11495