{"version":3,"sources":["node_modules/@vendasta/platform-users/fesm2020/vendasta-platform-users.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injectable, inject } from '@angular/core';\nimport { HttpClient, 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_OWN_UNOWNED\"] = 3] = \"RESOURCE_SCOPE_OWN_UNOWNED\";\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.\n// *********************************\nvar NamespaceContext = /*#__PURE__*/function (NamespaceContext) {\n NamespaceContext[NamespaceContext[\"NAMESPACE_CONTEXT_INVALID\"] = 0] = \"NAMESPACE_CONTEXT_INVALID\";\n NamespaceContext[NamespaceContext[\"NAMESPACE_CONTEXT_PARTNER\"] = 1] = \"NAMESPACE_CONTEXT_PARTNER\";\n NamespaceContext[NamespaceContext[\"NAMESPACE_CONTEXT_ACCOUNT_GROUP\"] = 2] = \"NAMESPACE_CONTEXT_ACCOUNT_GROUP\";\n return NamespaceContext;\n}(NamespaceContext || {});\nvar SpecialRestrictedValue = /*#__PURE__*/function (SpecialRestrictedValue) {\n SpecialRestrictedValue[SpecialRestrictedValue[\"INVALID\"] = 0] = \"INVALID\";\n SpecialRestrictedValue[SpecialRestrictedValue[\"EMPTY\"] = 1] = \"EMPTY\";\n SpecialRestrictedValue[SpecialRestrictedValue[\"ALL\"] = 2] = \"ALL\";\n return SpecialRestrictedValue;\n}(SpecialRestrictedValue || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums Index.\n// *********************************\n\nfunction enumStringToValue$5(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$4(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$3(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$2(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 if (proto.opportunities) {\n m.opportunities = Resource.fromProto(proto.opportunities);\n }\n if (proto.customObjects) {\n m.customObjects = Resource.fromProto(proto.customObjects);\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 if (typeof this.opportunities !== 'undefined' && this.opportunities !== null) {\n toReturn['opportunities'] = 'toApiJson' in this.opportunities ? this.opportunities.toApiJson() : this.opportunities;\n }\n if (typeof this.customObjects !== 'undefined' && this.customObjects !== null) {\n toReturn['customObjects'] = 'toApiJson' in this.customObjects ? this.customObjects.toApiJson() : this.customObjects;\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$2(ResourceScope, proto.readScope);\n }\n if (proto.writeScope) {\n m.writeScope = enumStringToValue$2(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$1(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}\nfunction enumStringToValue(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass HasViewAccessResponseAccess {\n static fromProto(proto) {\n let m = new HasViewAccessResponseAccess();\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.viewId !== 'undefined') {\n toReturn['viewId'] = this.viewId;\n }\n if (typeof this.hasAccess !== 'undefined') {\n toReturn['hasAccess'] = this.hasAccess;\n }\n return toReturn;\n }\n}\nclass GetRestrictionsRequest {\n static fromProto(proto) {\n let m = new GetRestrictionsRequest();\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.viewId !== 'undefined') {\n toReturn['viewId'] = this.viewId;\n }\n return toReturn;\n }\n}\nclass GetRestrictionsResponse {\n static fromProto(proto) {\n let m = new GetRestrictionsResponse();\n m = Object.assign(m, proto);\n if (proto.restrictions) {\n m.restrictions = proto.restrictions.map(GetRestrictionsResponseRestriction.fromProto);\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.restrictions !== 'undefined' && this.restrictions !== null) {\n toReturn['restrictions'] = 'toApiJson' in this.restrictions ? this.restrictions.toApiJson() : this.restrictions;\n }\n return toReturn;\n }\n}\nclass GetUserIdentifiersRequest {\n static fromProto(proto) {\n let m = new GetUserIdentifiersRequest();\n m = Object.assign(m, proto);\n if (proto.namespaceContext) {\n m.namespaceContext = enumStringToValue(NamespaceContext, proto.namespaceContext);\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.namespace !== 'undefined') {\n toReturn['namespace'] = this.namespace;\n }\n if (typeof this.namespaceContext !== 'undefined') {\n toReturn['namespaceContext'] = this.namespaceContext;\n }\n if (typeof this.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n return toReturn;\n }\n}\nclass GetUserIdentifiersResponse {\n static fromProto(proto) {\n let m = new GetUserIdentifiersResponse();\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.userIdentifiers !== 'undefined') {\n toReturn['userIdentifiers'] = this.userIdentifiers;\n }\n return toReturn;\n }\n}\nclass HasViewAccessRequest {\n static fromProto(proto) {\n let m = new HasViewAccessRequest();\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.viewIds !== 'undefined') {\n toReturn['viewIds'] = this.viewIds;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.marketId !== 'undefined') {\n toReturn['marketId'] = this.marketId;\n }\n if (typeof this.ownerId !== 'undefined') {\n toReturn['ownerId'] = this.ownerId;\n }\n return toReturn;\n }\n}\nclass HasViewAccessResponse {\n static fromProto(proto) {\n let m = new HasViewAccessResponse();\n m = Object.assign(m, proto);\n if (proto.access) {\n m.access = proto.access.map(HasViewAccessResponseAccess.fromProto);\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.access !== 'undefined' && this.access !== null) {\n toReturn['access'] = 'toApiJson' in this.access ? this.access.toApiJson() : this.access;\n }\n return toReturn;\n }\n}\nclass ListNamespacesRequest {\n static fromProto(proto) {\n let m = new ListNamespacesRequest();\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.email !== 'undefined') {\n toReturn['email'] = this.email;\n }\n return toReturn;\n }\n}\nclass ListNamespacesResponse {\n static fromProto(proto) {\n let m = new ListNamespacesResponse();\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.namespaces !== 'undefined') {\n toReturn['namespaces'] = this.namespaces;\n }\n return toReturn;\n }\n}\nclass GetRestrictionsResponseRestriction {\n static fromProto(proto) {\n let m = new GetRestrictionsResponseRestriction();\n m = Object.assign(m, proto);\n if (proto.groupId) {\n m.groupId = proto.groupId.map(GetRestrictionsResponseRestrictionValue.fromProto);\n }\n if (proto.ownerId) {\n m.ownerId = proto.ownerId.map(GetRestrictionsResponseRestrictionValue.fromProto);\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.viewId !== 'undefined') {\n toReturn['viewId'] = this.viewId;\n }\n if (typeof this.partnerId !== 'undefined') {\n toReturn['partnerId'] = this.partnerId;\n }\n if (typeof this.groupId !== 'undefined' && this.groupId !== null) {\n toReturn['groupId'] = 'toApiJson' in this.groupId ? this.groupId.toApiJson() : this.groupId;\n }\n if (typeof this.ownerId !== 'undefined' && this.ownerId !== null) {\n toReturn['ownerId'] = 'toApiJson' in this.ownerId ? this.ownerId.toApiJson() : this.ownerId;\n }\n return toReturn;\n }\n}\nclass GetRestrictionsResponseRestrictionValue {\n static fromProto(proto) {\n let m = new GetRestrictionsResponseRestrictionValue();\n m = Object.assign(m, proto);\n if (proto.other) {\n m.other = enumStringToValue(SpecialRestrictedValue, proto.other);\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.stringValue !== 'undefined') {\n toReturn['stringValue'] = this.stringValue;\n }\n if (typeof this.other !== 'undefined') {\n toReturn['other'] = this.other;\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(__ngFactoryType__) {\n return new (__ngFactoryType__ || 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() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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(__ngFactoryType__) {\n return new (__ngFactoryType__ || PermissionsApiService)();\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() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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(__ngFactoryType__) {\n return new (__ngFactoryType__ || SMBAssociationsApiService)();\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// API Service.\n// *********************************\nlet UsersApiService = /*#__PURE__*/(() => {\n class UsersApiService {\n constructor() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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 listNamespaces(r) {\n const request = r.toApiJson ? r : new ListNamespacesRequest(r);\n return this.http.post(this._host + \"/platformusers.v1.UsersService/ListNamespaces\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ListNamespacesResponse.fromProto(resp)));\n }\n getUserIdentifiers(r) {\n const request = r.toApiJson ? r : new GetUserIdentifiersRequest(r);\n return this.http.post(this._host + \"/platformusers.v1.UsersService/GetUserIdentifiers\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetUserIdentifiersResponse.fromProto(resp)));\n }\n }\n UsersApiService.ɵfac = function UsersApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || UsersApiService)();\n };\n UsersApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: UsersApiService,\n factory: UsersApiService.ɵfac,\n providedIn: 'root'\n });\n return UsersApiService;\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 ViewAccessApiService = /*#__PURE__*/(() => {\n class ViewAccessApiService {\n constructor() {\n this.hostService = inject(HostService);\n this.http = inject(HttpClient);\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 hasViewAccess(r) {\n const request = r.toApiJson ? r : new HasViewAccessRequest(r);\n return this.http.post(this._host + \"/platformusers.v1.ViewAccessService/HasViewAccess\", request.toApiJson(), this.apiOptions()).pipe(map(resp => HasViewAccessResponse.fromProto(resp)));\n }\n getRestrictions(r) {\n const request = r.toApiJson ? r : new GetRestrictionsRequest(r);\n return this.http.post(this._host + \"/platformusers.v1.ViewAccessService/GetRestrictions\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetRestrictionsResponse.fromProto(resp)));\n }\n }\n ViewAccessApiService.ɵfac = function ViewAccessApiService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ViewAccessApiService)();\n };\n ViewAccessApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ViewAccessApiService,\n factory: ViewAccessApiService.ɵfac,\n providedIn: 'root'\n });\n return ViewAccessApiService;\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, GetRestrictionsRequest, GetRestrictionsResponse, GetRestrictionsResponseRestriction, GetRestrictionsResponseRestrictionValue, GetUserIdentifiersRequest, GetUserIdentifiersResponse, HasViewAccessRequest, HasViewAccessResponse, HasViewAccessResponseAccess, HostService, ListAssociatedUsersRequest, ListAssociatedUsersResponse, ListNamespacesRequest, ListNamespacesResponse, Namespace, NamespaceContext, PagedRequestOptions, PagedResponseMetadata, Permissions, PermissionsApiService, Resource, ResourceScope, SMBAssociationsApiService, SpecialRestrictedValue, UpdatePermissionsRequest, UserAssociations, UsersApiService, ViewAccessApiService };\n"],"mappings":"oLAuNA,SAASA,EAAoBC,EAASC,EAAO,CAC3C,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CAiOA,SAASC,EAAkBF,EAASC,EAAO,CACzC,OAAI,OAAOA,GAAU,SACZA,EAEFD,EAAQC,CAAK,CACtB,CAlcA,IAWIE,EAcAC,EAMAC,EAoKEC,EA0BAC,EA6BAC,EAuBAC,EAuBAC,EA8DAC,EA6BAC,EAgEAC,EAuBAC,EAoBAC,EAuBAC,EA6BAC,EAoBAC,EA6BAC,EAuBAC,EAoBAC,EAoBAC,EAmCAC,EAkCAC,EACAC,EAOFC,EA6BAC,EAuFAC,EA4CAC,EA/3BJC,EAAAC,EAAA,KAAAC,IACAA,IACAC,IACAC,IAQI/B,EAA6B,SAAUA,EAAe,CACxD,OAAAA,EAAcA,EA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,EAAE,UAAYA,EAAI,IAAIhD,EAAuBgD,CAAC,EAC9D,OAAO,KAAK,KAAK,KAAK,KAAK,MAAQ,sDAAuDC,EAAQ,UAAU,EAAG,KAAK,WAAW,CAAC,EAAE,KAAKC,EAAIC,GAAQlD,EAAwB,UAAUkD,CAAI,CAAC,CAAC,CAC7L,CACF,CACA,OAAApC,EAAqB,UAAO,SAAsC4B,EAAmB,CACnF,OAAO,IAAKA,GAAqB5B,EACnC,EACAA,EAAqB,WAA0B6B,EAAmB,CAChE,MAAO7B,EACP,QAASA,EAAqB,UAC9B,WAAY,MACd,CAAC,EACMA,CACT,GAAG","names":["enumStringToValue$2","enumRef","value","enumStringToValue","ResourceScope","NamespaceContext","SpecialRestrictedValue","FieldMask","GetPermissionsRequest","GetPermissionsResponse","Namespace","Permissions","Resource","UpdatePermissionsRequest","HasViewAccessResponseAccess","GetRestrictionsRequest","GetRestrictionsResponse","GetUserIdentifiersRequest","GetUserIdentifiersResponse","HasViewAccessRequest","HasViewAccessResponse","ListNamespacesRequest","ListNamespacesResponse","GetRestrictionsResponseRestriction","GetRestrictionsResponseRestrictionValue","environment","hostMap","HostService","PermissionsApiService","UsersApiService","ViewAccessApiService","init_vendasta_platform_users","__esmMin","init_core","init_http","init_operators","_FieldMask","proto","m","kwargs","toReturn","_GetPermissionsRequest","_GetPermissionsResponse","_Namespace","_Permissions","_Resource","_UpdatePermissionsRequest","_HasViewAccessResponseAccess","_GetRestrictionsRequest","_GetRestrictionsResponse","_GetUserIdentifiersRequest","_GetUserIdentifiersResponse","_HasViewAccessRequest","_HasViewAccessResponse","_ListNamespacesRequest","_ListNamespacesResponse","_GetRestrictionsResponseRestriction","_GetRestrictionsResponseRestrictionValue","__ngFactoryType__","ɵɵdefineInjectable","inject","HttpClient","HttpHeaders","r","request","map","resp","__spreadProps","__spreadValues"],"x_google_ignoreList":[0]}