Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / wa-motif-open-api-module   js

Repository URL to install this package:

Version: 0.0.1 

/ bundles / wa-motif-open-api-module.umd.min.js

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("web-console-core"),require("typescript-string-operations")):"function"==typeof define&&define.amd?define("wa-motif-open-api-module",["exports","@angular/core","web-console-core","typescript-string-operations"],o):o(e["wa-motif-open-api-module"]={},e.ng.core,null,null)}(this,function(e,o,n,i){"use strict";var t=function(){function e(){}return e.API_ENDPOINT_PRFIX="/rest/v2",e}(),c=t.API_ENDPOINT_PRFIX+"/platform/domains/{0}/users",r=function(){},s=function(){function e(e){this.motifConnector=e,console.log("MotifConnectorService=",e)}return e.prototype.getUsersList=function(t){var r=this;return new Promise(function(o,e){var n=i.String.Format(c,t);r.motifConnector.get(n).subscribe(function(e){console.log("Get Users List done: ",e),o(e)},e)})},e.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:n.MotifConnectorService}]},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(n.MotifConnectorService))},token:e,providedIn:"root"}),e}(),u=t.API_ENDPOINT_PRFIX+"/platform/domains",f=t.API_ENDPOINT_PRFIX+"/platform/domains/{0}",a=function(){},p=function(){function e(e){this.motifConnector=e,console.log("MotifConnectorService=",e)}return e.prototype.getDomainList=function(){var n=this;return new Promise(function(o,e){n.motifConnector.get(u).subscribe(function(e){console.log("Get Domain List done: ",e),o(e)},e)})},e.prototype.createDomain=function(n){var t=this;return new Promise(function(o,e){t.motifConnector.post(u,{description:n.description,name:n.name}).subscribe(function(e){console.log("Add new Domain done: ",e),o(e)},e)})},e.prototype.deleteDomain=function(n){var t=this;return new Promise(function(o,e){t.motifConnector["delete"](i.String.Format(f,n)).subscribe(function(e){console.log("Domain deleted: ",e),o(e)},e)})},e.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:n.MotifConnectorService}]},e.ngInjectableDef=o.defineInjectable({factory:function(){return new e(o.inject(n.MotifConnectorService))},token:e,providedIn:"root"}),e}(),d=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{imports:[n.WebConsoleCoreModule],entryComponents:[],declarations:[]}]}],e}();e.User=r,e.UsersService=s,e.Domain=a,e.DomainsService=p,e.WAMotifOpenApiModule=d,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=wa-motif-open-api-module.umd.min.js.map