{"version":3,"sources":["node_modules/@vendasta/platform-users/fesm2020/vendasta-platform-users.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\nimport * as i1 from '@angular/common/http';\nimport { HttpHeaders } from '@angular/common/http';\nimport { map } from 'rxjs/operators';\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums.\n// *********************************\nvar ResourceScope = /*#__PURE__*/function (ResourceScope) {\n ResourceScope[ResourceScope[\"RESOURCE_SCOPE_INVALID\"] = 0] = \"RESOURCE_SCOPE_INVALID\";\n ResourceScope[ResourceScope[\"RESOURCE_SCOPE_NONE\"] = 1] = \"RESOURCE_SCOPE_NONE\";\n ResourceScope[ResourceScope[\"RESOURCE_SCOPE_OWN\"] = 2] = \"RESOURCE_SCOPE_OWN\";\n ResourceScope[ResourceScope[\"RESOURCE_SCOPE_TEAM\"] = 3] = \"RESOURCE_SCOPE_TEAM\";\n ResourceScope[ResourceScope[\"RESOURCE_SCOPE_ALL\"] = 4] = \"RESOURCE_SCOPE_ALL\";\n return ResourceScope;\n}(ResourceScope || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums Index.\n// *********************************\n\nfunction enumStringToValue$4(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass PagedRequestOptions {\n static fromProto(proto) {\n let m = new PagedRequestOptions();\n m = Object.assign(m, proto);\n if (proto.pageSize) {\n m.pageSize = parseInt(proto.pageSize, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.cursor !== 'undefined') {\n toReturn['cursor'] = this.cursor;\n }\n if (typeof this.pageSize !== 'undefined') {\n toReturn['pageSize'] = this.pageSize;\n }\n return toReturn;\n }\n}\nclass PagedResponseMetadata {\n static fromProto(proto) {\n let m = new PagedResponseMetadata();\n m = Object.assign(m, proto);\n if (proto.totalResults) {\n m.totalResults = parseInt(proto.totalResults, 10);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n if (typeof this.totalResults !== 'undefined') {\n toReturn['totalResults'] = this.totalResults;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$3(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass ListAssociatedUsersRequest {\n static fromProto(proto) {\n let m = new ListAssociatedUsersRequest();\n m = Object.assign(m, proto);\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.accountId !== 'undefined') {\n toReturn['accountId'] = this.accountId;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n return toReturn;\n }\n}\nclass ListAssociatedUsersResponse {\n static fromProto(proto) {\n let m = new ListAssociatedUsersResponse();\n m = Object.assign(m, proto);\n if (proto.associations) {\n m.associations = proto.associations.map(UserAssociations.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.associations !== 'undefined' && this.associations !== null) {\n toReturn['associations'] = 'toApiJson' in this.associations ? this.associations.toApiJson() : this.associations;\n }\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {\n toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;\n }\n return toReturn;\n }\n}\nclass UserAssociations {\n static fromProto(proto) {\n let m = new UserAssociations();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$2(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass FieldMask {\n static fromProto(proto) {\n let m = new FieldMask();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.paths !== 'undefined') {\n toReturn['paths'] = this.paths;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue$1(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass GetPermissionsRequest {\n static fromProto(proto) {\n let m = new GetPermissionsRequest();\n m = Object.assign(m, proto);\n if (proto.fieldMask) {\n m.fieldMask = FieldMask.fromProto(proto.fieldMask);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {\n toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;\n }\n return toReturn;\n }\n}\nclass GetPermissionsResponse {\n static fromProto(proto) {\n let m = new GetPermissionsResponse();\n m = Object.assign(m, proto);\n if (proto.permissions) {\n m.permissions = Permissions.fromProto(proto.permissions);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.permissions !== 'undefined' && this.permissions !== null) {\n toReturn['permissions'] = 'toApiJson' in this.permissions ? this.permissions.toApiJson() : this.permissions;\n }\n return toReturn;\n }\n}\nclass Namespace {\n static fromProto(proto) {\n let m = new Namespace();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.namespaceId !== 'undefined') {\n toReturn['namespaceId'] = this.namespaceId;\n }\n if (typeof this.namespaceType !== 'undefined') {\n toReturn['namespaceType'] = this.namespaceType;\n }\n return toReturn;\n }\n}\nclass Permissions {\n static fromProto(proto) {\n let m = new Permissions();\n m = Object.assign(m, proto);\n if (proto.namespace) {\n m.namespace = proto.namespace.map(Namespace.fromProto);\n }\n if (proto.contacts) {\n m.contacts = Resource.fromProto(proto.contacts);\n }\n if (proto.activities) {\n m.activities = Resource.fromProto(proto.activities);\n }\n if (proto.companies) {\n m.companies = Resource.fromProto(proto.companies);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.userId !== 'undefined') {\n toReturn['userId'] = this.userId;\n }\n if (typeof this.namespace !== 'undefined' && this.namespace !== null) {\n toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;\n }\n if (typeof this.contacts !== 'undefined' && this.contacts !== null) {\n toReturn['contacts'] = 'toApiJson' in this.contacts ? this.contacts.toApiJson() : this.contacts;\n }\n if (typeof this.activities !== 'undefined' && this.activities !== null) {\n toReturn['activities'] = 'toApiJson' in this.activities ? this.activities.toApiJson() : this.activities;\n }\n if (typeof this.companies !== 'undefined' && this.companies !== null) {\n toReturn['companies'] = 'toApiJson' in this.companies ? this.companies.toApiJson() : this.companies;\n }\n if (typeof this.restrictedToMarketId !== 'undefined') {\n toReturn['restrictedToMarketId'] = this.restrictedToMarketId;\n }\n return toReturn;\n }\n}\nclass Resource {\n static fromProto(proto) {\n let m = new Resource();\n m = Object.assign(m, proto);\n if (proto.readScope) {\n m.readScope = enumStringToValue$1(ResourceScope, proto.readScope);\n }\n if (proto.writeScope) {\n m.writeScope = enumStringToValue$1(ResourceScope, proto.writeScope);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.readScope !== 'undefined') {\n toReturn['readScope'] = this.readScope;\n }\n if (typeof this.writeScope !== 'undefined') {\n toReturn['writeScope'] = this.writeScope;\n }\n return toReturn;\n }\n}\nclass UpdatePermissionsRequest {\n static fromProto(proto) {\n let m = new UpdatePermissionsRequest();\n m = Object.assign(m, proto);\n if (proto.permissions) {\n m.permissions = Permissions.fromProto(proto.permissions);\n }\n if (proto.fieldMask) {\n m.fieldMask = FieldMask.fromProto(proto.fieldMask);\n }\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.permissions !== 'undefined' && this.permissions !== null) {\n toReturn['permissions'] = 'toApiJson' in this.permissions ? this.permissions.toApiJson() : this.permissions;\n }\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {\n toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;\n }\n return toReturn;\n }\n}\nfunction enumStringToValue(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass Access {\n static fromProto(proto) {\n let m = new Access();\n m = Object.assign(m, proto);\n return m;\n }\n constructor(kwargs) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n toApiJson() {\n const toReturn = {};\n if (typeof this.scope !== 'undefined') {\n toReturn['scope'] = this.scope;\n }\n if (typeof this.public !== 'undefined') {\n toReturn['public'] = this.public;\n }\n return toReturn;\n }\n}\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\n\nconst environment = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap = {\n 'local': 'platform-users-api.vendasta-local.com',\n 'test': '',\n 'demo': 'platform-users-demo.apigateway.co',\n 'prod': 'platform-users-prod.apigateway.co',\n 'production': 'platform-users-prod.apigateway.co'\n};\nlet HostService = /*#__PURE__*/(() => {\n class HostService {\n get host() {\n return hostMap[environment.toLowerCase()];\n }\n get hostWithScheme() {\n return 'https://' + this.host;\n }\n }\n HostService.ɵfac = function HostService_Factory(t) {\n return new (t || HostService)();\n };\n HostService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: HostService,\n factory: HostService.ɵfac,\n providedIn: 'root'\n });\n return HostService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet PermissionsApiService = /*#__PURE__*/(() => {\n class PermissionsApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n getPermissions(r) {\n const request = r.toApiJson ? r : new GetPermissionsRequest(r);\n return this.http.post(this._host + \"/platformusers.v1.PermissionsService/GetPermissions\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetPermissionsResponse.fromProto(resp)));\n }\n updatePermissions(r) {\n const request = r.toApiJson ? r : new UpdatePermissionsRequest(r);\n return this.http.post(this._host + \"/platformusers.v1.PermissionsService/UpdatePermissions\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n PermissionsApiService.ɵfac = function PermissionsApiService_Factory(t) {\n return new (t || PermissionsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n PermissionsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: PermissionsApiService,\n factory: PermissionsApiService.ɵfac,\n providedIn: 'root'\n });\n return PermissionsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nlet SMBAssociationsApiService = /*#__PURE__*/(() => {\n class SMBAssociationsApiService {\n constructor(http, hostService) {\n this.http = http;\n this.hostService = hostService;\n this._host = this.hostService.hostWithScheme;\n }\n apiOptions() {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n listAssociatedUsers(r) {\n const request = r.toApiJson ? r : new ListAssociatedUsersRequest(r);\n return this.http.post(this._host + \"/platformusers.v1.SMBAssociationsService/ListAssociatedUsers\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListAssociatedUsersResponse.fromProto(resp)));\n }\n }\n SMBAssociationsApiService.ɵfac = function SMBAssociationsApiService_Factory(t) {\n return new (t || SMBAssociationsApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n SMBAssociationsApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SMBAssociationsApiService,\n factory: SMBAssociationsApiService.ɵfac,\n providedIn: 'root'\n });\n return SMBAssociationsApiService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\n\n// MANUALLY CREATED FILE\n// Don't delete this by mistake when you update the SDK with mscli!\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Access, FieldMask, GetPermissionsRequest, GetPermissionsResponse, HostService, ListAssociatedUsersRequest, ListAssociatedUsersResponse, Namespace, PagedRequestOptions, PagedResponseMetadata, Permissions, PermissionsApiService, Resource, ResourceScope, SMBAssociationsApiService, UpdatePermissionsRequest, UserAssociations };\n"],"mappings":"sJAYA,IAAIA,EAA6B,SAAUA,EAAe,CACxD,OAAAA,EAAcA,EAAc,uBAA4B,CAAC,EAAI,yBAC7DA,EAAcA,EAAc,oBAAyB,CAAC,EAAI,sBAC1DA,EAAcA,EAAc,mBAAwB,CAAC,EAAI,qBACzDA,EAAcA,EAAc,oBAAyB,CAAC,EAAI,sBAC1DA,EAAcA,EAAc,mBAAwB,CAAC,EAAI,qBAClDA,CACT,EAAEA,GAAiB,CAAC,CAAC,EA+JrB,IAAMC,EAAN,MAAMC,CAAU,CACd,OAAO,UAAUC,EAAO,CACtB,IAAIC,EAAI,IAAIF,EACZ,OAAAE,EAAI,OAAO,OAAOA,EAAGD,CAAK,EACnBC,CACT,CACA,YAAYC,EAAQ,CACbA,GAGL,OAAO,OAAO,KAAMA,CAAM,CAC5B,CACA,WAAY,CACV,IAAMC,EAAW,CAAC,EAClB,OAAI,OAAO,KAAK,MAAU,MACxBA,EAAS,MAAW,KAAK,OAEpBA,CACT,CACF,EACA,SAASC,EAAoBC,EAASC,EAAO,CAC3C,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CACA,IAAMC,EAAN,MAAMC,CAAsB,CAC1B,OAAO,UAAUR,EAAO,CACtB,IAAIC,EAAI,IAAIO,EACZ,OAAAP,EAAI,OAAO,OAAOA,EAAGD,CAAK,EACtBA,EAAM,YACRC,EAAE,UAAYH,EAAU,UAAUE,EAAM,SAAS,GAE5CC,CACT,CACA,YAAYC,EAAQ,CACbA,GAGL,OAAO,OAAO,KAAMA,CAAM,CAC5B,CACA,WAAY,CACV,IAAMC,EAAW,CAAC,EAClB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MAAMA,CAAsB,CAC1B,YAAYC,EAAMC,EAAa,CAC7B,KAAK,KAAOD,EACZ,KAAK,YAAcC,EACnB,KAAK,MAAQ,KAAK,YAAY,cAChC,CACA,YAAa,CACX,MAAO,CACL,QAAS,IAAIC,EAAY,CACvB,eAAgB,kBAClB,CAAC,EACD,gBAAiB,EACnB,CACF,CACA,eAAeC,EAAG,CAChB,IAAMC,EAAUD,EAAE,UAAYA,EAAI,IAAIE,EAAsBF,CAAC,EAC7D,OAAO,KAAK,KAAK,KAAK,KAAK,MAAQ,sDAAuDC,EAAQ,UAAU,EAAG,KAAK,WAAW,CAAC,EAAE,KAAKE,EAAIC,GAAQC,EAAuB,UAAUD,CAAI,CAAC,CAAC,CAC5L,CACA,kBAAkBJ,EAAG,CACnB,IAAMC,EAAUD,EAAE,UAAYA,EAAI,IAAIM,EAAyBN,CAAC,EAChE,OAAO,KAAK,KAAK,KAAK,KAAK,MAAQ,yDAA0DC,EAAQ,UAAU,EAAGM,EAAAC,EAAA,GAC7G,KAAK,WAAW,GAD6F,CAEhH,QAAS,UACX,EAAC,CACH,CACF,CACA,OAAAZ,EAAsB,UAAO,SAAuCF,EAAG,CACrE,OAAO,IAAKA,GAAKE,GAA0Ba,EAAYC,CAAU,EAAMD,EAAShB,CAAW,CAAC,CAC9F,EACAG,EAAsB,WAA0BD,EAAmB,CACjE,MAAOC,EACP,QAASA,EAAsB,UAC/B,WAAY,MACd,CAAC,EACMA,CACT,GAAG","names":["ResourceScope","FieldMask","_FieldMask","proto","m","kwargs","toReturn","enumStringToValue$1","enumRef","value","GetPermissionsRequest","_GetPermissionsRequest","GetPermissionsResponse","_GetPermissionsResponse","Permissions","Namespace","_Namespace","_Permissions","Resource","_Resource","ResourceScope","UpdatePermissionsRequest","_UpdatePermissionsRequest","environment","hostMap","HostService","t","ɵɵdefineInjectable","PermissionsApiService","http","hostService","HttpHeaders","r","request","GetPermissionsRequest","map","resp","GetPermissionsResponse","UpdatePermissionsRequest","__spreadProps","__spreadValues","ɵɵinject","HttpClient"],"x_google_ignoreList":[0]}