{"version":3,"sources":["node_modules/@vendasta/category/fesm2020/vendasta-category.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 CategoryClass = /*#__PURE__*/function (CategoryClass) {\n CategoryClass[CategoryClass[\"CATEGORY_CLASS_CONCRETE\"] = 0] = \"CATEGORY_CLASS_CONCRETE\";\n CategoryClass[CategoryClass[\"CATEGORY_CLASS_ABSTRACT\"] = 1] = \"CATEGORY_CLASS_ABSTRACT\";\n return CategoryClass;\n}(CategoryClass || {});\nvar CategoryType = /*#__PURE__*/function (CategoryType) {\n CategoryType[CategoryType[\"CATEGORY_TYPE_V_CATEGORY\"] = 0] = \"CATEGORY_TYPE_V_CATEGORY\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_V_TAX\"] = 1] = \"CATEGORY_TYPE_V_TAX\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_GOOGLE_PLACES\"] = 2] = \"CATEGORY_TYPE_GOOGLE_PLACES\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_GMB\"] = 3] = \"CATEGORY_TYPE_GMB\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_UBERALL\"] = 4] = \"CATEGORY_TYPE_UBERALL\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_YEXT\"] = 5] = \"CATEGORY_TYPE_YEXT\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_BING\"] = 6] = \"CATEGORY_TYPE_BING\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_DATA_AXLE\"] = 7] = \"CATEGORY_TYPE_DATA_AXLE\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_FOURSQUARE\"] = 9] = \"CATEGORY_TYPE_FOURSQUARE\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_LOCALEZE\"] = 10] = \"CATEGORY_TYPE_LOCALEZE\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_NEUSTAR\"] = 11] = \"CATEGORY_TYPE_NEUSTAR\";\n CategoryType[CategoryType[\"CATEGORY_TYPE_APPLE\"] = 12] = \"CATEGORY_TYPE_APPLE\";\n return CategoryType;\n}(CategoryType || {});\nvar Locale = /*#__PURE__*/function (Locale) {\n Locale[Locale[\"LOCALE_UNSET\"] = 0] = \"LOCALE_UNSET\";\n Locale[Locale[\"LOCALE_AFRIKAANS\"] = 1] = \"LOCALE_AFRIKAANS\";\n Locale[Locale[\"LOCALE_CZECH\"] = 2] = \"LOCALE_CZECH\";\n Locale[Locale[\"LOCALE_DUTCH\"] = 3] = \"LOCALE_DUTCH\";\n Locale[Locale[\"LOCALE_ENGLISH\"] = 4] = \"LOCALE_ENGLISH\";\n Locale[Locale[\"LOCALE_FRENCH\"] = 5] = \"LOCALE_FRENCH\";\n Locale[Locale[\"LOCALE_FRENCH_CANADA\"] = 6] = \"LOCALE_FRENCH_CANADA\";\n Locale[Locale[\"LOCALE_GERMAN\"] = 7] = \"LOCALE_GERMAN\";\n Locale[Locale[\"LOCALE_ITALIAN\"] = 8] = \"LOCALE_ITALIAN\";\n Locale[Locale[\"LOCALE_JAPANESE\"] = 9] = \"LOCALE_JAPANESE\";\n Locale[Locale[\"LOCALE_PORTUGUESE_BRAZIL\"] = 10] = \"LOCALE_PORTUGUESE_BRAZIL\";\n Locale[Locale[\"LOCALE_RUSSIAN\"] = 11] = \"LOCALE_RUSSIAN\";\n Locale[Locale[\"LOCALE_SPANISH_LATIN_AMERICA\"] = 12] = \"LOCALE_SPANISH_LATIN_AMERICA\";\n return Locale;\n}(Locale || {});\nvar SortDirection = /*#__PURE__*/function (SortDirection) {\n SortDirection[SortDirection[\"SORT_DIRECTION_UNSET\"] = 0] = \"SORT_DIRECTION_UNSET\";\n SortDirection[SortDirection[\"SORT_DIRECTION_ASCENDING\"] = 1] = \"SORT_DIRECTION_ASCENDING\";\n SortDirection[SortDirection[\"SORT_DIRECTION_DESCENDING\"] = 2] = \"SORT_DIRECTION_DESCENDING\";\n return SortDirection;\n}(SortDirection || {});\nvar SortField = /*#__PURE__*/function (SortField) {\n SortField[SortField[\"SORT_FIELD_UNSET\"] = 0] = \"SORT_FIELD_UNSET\";\n SortField[SortField[\"SORT_FIELD_NAME\"] = 1] = \"SORT_FIELD_NAME\";\n SortField[SortField[\"SORT_FIELD_FULL_NAME\"] = 2] = \"SORT_FIELD_FULL_NAME\";\n SortField[SortField[\"SORT_FIELD_SCORE\"] = 3] = \"SORT_FIELD_SCORE\";\n SortField[SortField[\"SORT_FIELD_EXTERNAL_ID\"] = 4] = \"SORT_FIELD_EXTERNAL_ID\";\n SortField[SortField[\"SORT_FIELD_CREATED\"] = 5] = \"SORT_FIELD_CREATED\";\n SortField[SortField[\"SORT_FIELD_UPDATED\"] = 6] = \"SORT_FIELD_UPDATED\";\n return SortField;\n}(SortField || {});\nvar TypeCategoryRelationship = /*#__PURE__*/function (TypeCategoryRelationship) {\n TypeCategoryRelationship[TypeCategoryRelationship[\"TYPE_CATEGORY_RELATIONSHIP_EXACT_MATCH\"] = 0] = \"TYPE_CATEGORY_RELATIONSHIP_EXACT_MATCH\";\n return TypeCategoryRelationship;\n}(TypeCategoryRelationship || {});\n// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Enums Index.\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 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$1(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(enumRef, value) {\n if (typeof value === 'number') {\n return value;\n }\n return enumRef[value];\n}\nclass BulkCreateCategoriesRequest {\n static fromProto(proto) {\n let m = new BulkCreateCategoriesRequest();\n m = Object.assign(m, proto);\n if (proto.categories) {\n m.categories = proto.categories.map(Category.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.categories !== 'undefined' && this.categories !== null) {\n toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;\n }\n return toReturn;\n }\n}\nclass BulkCreateCategoryRelationshipsRequest {\n static fromProto(proto) {\n let m = new BulkCreateCategoryRelationshipsRequest();\n m = Object.assign(m, proto);\n if (proto.categoryRelationships) {\n m.categoryRelationships = proto.categoryRelationships.map(CategoryRelationships.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.categoryRelationships !== 'undefined' && this.categoryRelationships !== null) {\n toReturn['categoryRelationships'] = 'toApiJson' in this.categoryRelationships ? this.categoryRelationships.toApiJson() : this.categoryRelationships;\n }\n return toReturn;\n }\n}\nclass BulkDeleteCategoryRelationshipsRequest {\n static fromProto(proto) {\n let m = new BulkDeleteCategoryRelationshipsRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\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.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n return toReturn;\n }\n}\nclass Category {\n static fromProto(proto) {\n let m = new Category();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\n }\n if (proto.class) {\n m.class = enumStringToValue(CategoryClass, proto.class);\n }\n if (proto.locale) {\n m.locale = CategoryLocale.fromProto(proto.locale);\n }\n if (proto.created) {\n m.created = new Date(proto.created);\n }\n if (proto.updated) {\n m.updated = new Date(proto.updated);\n }\n if (proto.translations) {\n m.translations = proto.translations.map(CategoryTranslation.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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.class !== 'undefined') {\n toReturn['class'] = this.class;\n }\n if (typeof this.locale !== 'undefined' && this.locale !== null) {\n toReturn['locale'] = 'toApiJson' in this.locale ? this.locale.toApiJson() : this.locale;\n }\n if (typeof this.isHidden !== 'undefined') {\n toReturn['isHidden'] = this.isHidden;\n }\n if (typeof this.isActive !== 'undefined') {\n toReturn['isActive'] = this.isActive;\n }\n if (typeof this.fullName !== 'undefined') {\n toReturn['fullName'] = this.fullName;\n }\n if (typeof this.created !== 'undefined' && this.created !== null) {\n toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;\n }\n if (typeof this.updated !== 'undefined' && this.updated !== null) {\n toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;\n }\n if (typeof this.translations !== 'undefined' && this.translations !== null) {\n toReturn['translations'] = 'toApiJson' in this.translations ? this.translations.toApiJson() : this.translations;\n }\n return toReturn;\n }\n}\nclass CategoryLocale {\n static fromProto(proto) {\n let m = new CategoryLocale();\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.country !== 'undefined') {\n toReturn['country'] = this.country;\n }\n if (typeof this.language !== 'undefined') {\n toReturn['language'] = this.language;\n }\n return toReturn;\n }\n}\nclass CategoryPagedRequestOptions {\n static fromProto(proto) {\n let m = new CategoryPagedRequestOptions();\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 CategoryPagedResponseMetadata {\n static fromProto(proto) {\n let m = new CategoryPagedResponseMetadata();\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.nextCursor !== 'undefined') {\n toReturn['nextCursor'] = this.nextCursor;\n }\n if (typeof this.hasMore !== 'undefined') {\n toReturn['hasMore'] = this.hasMore;\n }\n return toReturn;\n }\n}\nclass CategoryRelationships {\n static fromProto(proto) {\n let m = new CategoryRelationships();\n m = Object.assign(m, proto);\n if (proto.originCategory) {\n m.originCategory = enumStringToValue(CategoryType, proto.originCategory);\n }\n if (proto.targetCategory) {\n m.targetCategory = enumStringToValue(CategoryType, proto.targetCategory);\n }\n if (proto.typeCategoryRelationship) {\n m.typeCategoryRelationship = enumStringToValue(TypeCategoryRelationship, proto.typeCategoryRelationship);\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.originId !== 'undefined') {\n toReturn['originId'] = this.originId;\n }\n if (typeof this.targetId !== 'undefined') {\n toReturn['targetId'] = this.targetId;\n }\n if (typeof this.originCategory !== 'undefined') {\n toReturn['originCategory'] = this.originCategory;\n }\n if (typeof this.targetCategory !== 'undefined') {\n toReturn['targetCategory'] = this.targetCategory;\n }\n if (typeof this.typeCategoryRelationship !== 'undefined') {\n toReturn['typeCategoryRelationship'] = this.typeCategoryRelationship;\n }\n return toReturn;\n }\n}\nclass CategoryRequest {\n static fromProto(proto) {\n let m = new CategoryRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass CategorySearchRequest {\n static fromProto(proto) {\n let m = new CategorySearchRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\n }\n if (proto.pagingOptions) {\n m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);\n }\n if (proto.sortOptions) {\n m.sortOptions = proto.sortOptions.map(SortOptions.fromProto);\n }\n if (proto.languageAndLocale) {\n m.languageAndLocale = enumStringToValue(Locale, proto.languageAndLocale);\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.searchTerm !== 'undefined') {\n toReturn['searchTerm'] = this.searchTerm;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {\n toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;\n }\n if (typeof this.onlyVisible !== 'undefined') {\n toReturn['onlyVisible'] = this.onlyVisible;\n }\n if (typeof this.languageAndLocale !== 'undefined') {\n toReturn['languageAndLocale'] = this.languageAndLocale;\n }\n return toReturn;\n }\n}\nclass CategorySearchResponse {\n static fromProto(proto) {\n let m = new CategorySearchResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = proto.category.map(Category.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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\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 CategoryTranslation {\n static fromProto(proto) {\n let m = new CategoryTranslation();\n m = Object.assign(m, proto);\n if (proto.locale) {\n m.locale = enumStringToValue(Locale, proto.locale);\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.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.fullName !== 'undefined') {\n toReturn['fullName'] = this.fullName;\n }\n return toReturn;\n }\n}\nclass CreateCategoryRequest {\n static fromProto(proto) {\n let m = new CreateCategoryRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\n }\n if (proto.translations) {\n m.translations = proto.translations.map(CategoryTranslation.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.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.fullName !== 'undefined') {\n toReturn['fullName'] = this.fullName;\n }\n if (typeof this.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.isHidden !== 'undefined') {\n toReturn['isHidden'] = this.isHidden;\n }\n if (typeof this.isActive !== 'undefined') {\n toReturn['isActive'] = this.isActive;\n }\n if (typeof this.translations !== 'undefined' && this.translations !== null) {\n toReturn['translations'] = 'toApiJson' in this.translations ? this.translations.toApiJson() : this.translations;\n }\n return toReturn;\n }\n}\nclass CreateCategoryResponse {\n static fromProto(proto) {\n let m = new CreateCategoryResponse();\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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n return toReturn;\n }\n}\nclass DeleteCategoryByExternalIDAndTypeRequest {\n static fromProto(proto) {\n let m = new DeleteCategoryByExternalIDAndTypeRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass DeleteCategoryRelationshipByExternalIDAndTypeRequest {\n static fromProto(proto) {\n let m = new DeleteCategoryRelationshipByExternalIDAndTypeRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass DeleteCategoryRelationshipByOriginAndTargetRequest {\n static fromProto(proto) {\n let m = new DeleteCategoryRelationshipByOriginAndTargetRequest();\n m = Object.assign(m, proto);\n if (proto.origin) {\n m.origin = DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier.fromProto(proto.origin);\n }\n if (proto.target) {\n m.target = DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier.fromProto(proto.target);\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.origin !== 'undefined' && this.origin !== null) {\n toReturn['origin'] = 'toApiJson' in this.origin ? this.origin.toApiJson() : this.origin;\n }\n if (typeof this.target !== 'undefined' && this.target !== null) {\n toReturn['target'] = 'toApiJson' in this.target ? this.target.toApiJson() : this.target;\n }\n return toReturn;\n }\n}\nclass ValidateVCategoriesResponseErrorsEntry {\n static fromProto(proto) {\n let m = new ValidateVCategoriesResponseErrorsEntry();\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.key !== 'undefined') {\n toReturn['key'] = this.key;\n }\n if (typeof this.value !== 'undefined') {\n toReturn['value'] = this.value;\n }\n return toReturn;\n }\n}\nclass GetAllCategoryMappingsRequest {\n static fromProto(proto) {\n let m = new GetAllCategoryMappingsRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass GetAllCategoryMappingsResponse {\n static fromProto(proto) {\n let m = new GetAllCategoryMappingsResponse();\n m = Object.assign(m, proto);\n if (proto.origins) {\n m.origins = proto.origins.map(Category.fromProto);\n }\n if (proto.targets) {\n m.targets = proto.targets.map(Category.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.origins !== 'undefined' && this.origins !== null) {\n toReturn['origins'] = 'toApiJson' in this.origins ? this.origins.toApiJson() : this.origins;\n }\n if (typeof this.targets !== 'undefined' && this.targets !== null) {\n toReturn['targets'] = 'toApiJson' in this.targets ? this.targets.toApiJson() : this.targets;\n }\n return toReturn;\n }\n}\nclass GetCategoryByExternalIDsAndTypeRequest {\n static fromProto(proto) {\n let m = new GetCategoryByExternalIDsAndTypeRequest();\n m = Object.assign(m, proto);\n if (proto.categories) {\n m.categories = proto.categories.map(CategoryRequest.fromProto);\n }\n if (proto.languageAndLocale) {\n m.languageAndLocale = enumStringToValue(Locale, proto.languageAndLocale);\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.categories !== 'undefined' && this.categories !== null) {\n toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n if (typeof this.languageAndLocale !== 'undefined') {\n toReturn['languageAndLocale'] = this.languageAndLocale;\n }\n return toReturn;\n }\n}\nclass GetCategoryByExternalIDsAndTypeResponse {\n static fromProto(proto) {\n let m = new GetCategoryByExternalIDsAndTypeResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = proto.category.map(Category.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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass GetCategoryByNameAndTypeRequest {\n static fromProto(proto) {\n let m = new GetCategoryByNameAndTypeRequest();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.categoryName !== 'undefined') {\n toReturn['categoryName'] = this.categoryName;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCategoryByNameAndTypeResponse {\n static fromProto(proto) {\n let m = new GetCategoryByNameAndTypeResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = Category.fromProto(proto.category);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass GetCategoryListRequest {\n static fromProto(proto) {\n let m = new GetCategoryListRequest();\n m = Object.assign(m, proto);\n if (proto.type) {\n m.type = enumStringToValue(CategoryType, proto.type);\n }\n if (proto.pagingOptions) {\n m.pagingOptions = CategoryPagedRequestOptions.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.type !== 'undefined') {\n toReturn['type'] = this.type;\n }\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {\n toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCategoryListResponse {\n static fromProto(proto) {\n let m = new GetCategoryListResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = proto.category.map(Category.fromProto);\n }\n if (proto.pagingMetadata) {\n m.pagingMetadata = CategoryPagedResponseMetadata.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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\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 GetCategoryMappingRequest {\n static fromProto(proto) {\n let m = new GetCategoryMappingRequest();\n m = Object.assign(m, proto);\n if (proto.inputType) {\n m.inputType = enumStringToValue(CategoryType, proto.inputType);\n }\n if (proto.outputType) {\n m.outputType = enumStringToValue(CategoryType, proto.outputType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.inputType !== 'undefined') {\n toReturn['inputType'] = this.inputType;\n }\n if (typeof this.outputType !== 'undefined') {\n toReturn['outputType'] = this.outputType;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCategoryMappingResponse {\n static fromProto(proto) {\n let m = new GetCategoryMappingResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = Category.fromProto(proto.category);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass GetCategoryRequest {\n static fromProto(proto) {\n let m = new GetCategoryRequest();\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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetCategoryResponse {\n static fromProto(proto) {\n let m = new GetCategoryResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = Category.fromProto(proto.category);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass GetMultiCategoryMappingRequest {\n static fromProto(proto) {\n let m = new GetMultiCategoryMappingRequest();\n m = Object.assign(m, proto);\n if (proto.inputType) {\n m.inputType = enumStringToValue(CategoryType, proto.inputType);\n }\n if (proto.outputType) {\n m.outputType = enumStringToValue(CategoryType, proto.outputType);\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.externalIds !== 'undefined') {\n toReturn['externalIds'] = this.externalIds;\n }\n if (typeof this.inputType !== 'undefined') {\n toReturn['inputType'] = this.inputType;\n }\n if (typeof this.outputType !== 'undefined') {\n toReturn['outputType'] = this.outputType;\n }\n if (typeof this.locale !== 'undefined') {\n toReturn['locale'] = this.locale;\n }\n return toReturn;\n }\n}\nclass GetMultiCategoryMappingResponse {\n static fromProto(proto) {\n let m = new GetMultiCategoryMappingResponse();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = proto.category.map(Category.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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier {\n static fromProto(proto) {\n let m = new DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier();\n m = Object.assign(m, proto);\n if (proto.categoryType) {\n m.categoryType = enumStringToValue(CategoryType, proto.categoryType);\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.externalId !== 'undefined') {\n toReturn['externalId'] = this.externalId;\n }\n if (typeof this.categoryType !== 'undefined') {\n toReturn['categoryType'] = this.categoryType;\n }\n return toReturn;\n }\n}\nclass UpdateCategoryMappingsRequestMappings {\n static fromProto(proto) {\n let m = new UpdateCategoryMappingsRequestMappings();\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.referencesId !== 'undefined') {\n toReturn['referencesId'] = this.referencesId;\n }\n if (typeof this.referencedById !== 'undefined') {\n toReturn['referencedById'] = this.referencedById;\n }\n return toReturn;\n }\n}\nclass SortOptions {\n static fromProto(proto) {\n let m = new SortOptions();\n m = Object.assign(m, proto);\n if (proto.field) {\n m.field = enumStringToValue(SortField, proto.field);\n }\n if (proto.direction) {\n m.direction = enumStringToValue(SortDirection, proto.direction);\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.field !== 'undefined') {\n toReturn['field'] = this.field;\n }\n if (typeof this.direction !== 'undefined') {\n toReturn['direction'] = this.direction;\n }\n return toReturn;\n }\n}\nclass UpdateCategoryMappingsRequest {\n static fromProto(proto) {\n let m = new UpdateCategoryMappingsRequest();\n m = Object.assign(m, proto);\n if (proto.create) {\n m.create = UpdateCategoryMappingsRequestMappings.fromProto(proto.create);\n }\n if (proto.delete) {\n m.delete = UpdateCategoryMappingsRequestMappings.fromProto(proto.delete);\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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n if (typeof this.create !== 'undefined' && this.create !== null) {\n toReturn['create'] = 'toApiJson' in this.create ? this.create.toApiJson() : this.create;\n }\n if (typeof this.delete !== 'undefined' && this.delete !== null) {\n toReturn['delete'] = 'toApiJson' in this.delete ? this.delete.toApiJson() : this.delete;\n }\n return toReturn;\n }\n}\nclass UpdateCategoryRequest {\n static fromProto(proto) {\n let m = new UpdateCategoryRequest();\n m = Object.assign(m, proto);\n if (proto.updateFields) {\n m.updateFields = UpdateCategoryRequestUpdateFields.fromProto(proto.updateFields);\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.categoryId !== 'undefined') {\n toReturn['categoryId'] = this.categoryId;\n }\n if (typeof this.updateFields !== 'undefined' && this.updateFields !== null) {\n toReturn['updateFields'] = 'toApiJson' in this.updateFields ? this.updateFields.toApiJson() : this.updateFields;\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 UpdateCategoryRequestUpdateFields {\n static fromProto(proto) {\n let m = new UpdateCategoryRequestUpdateFields();\n m = Object.assign(m, proto);\n if (proto.translations) {\n m.translations = proto.translations.map(CategoryTranslation.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.name !== 'undefined') {\n toReturn['name'] = this.name;\n }\n if (typeof this.fullName !== 'undefined') {\n toReturn['fullName'] = this.fullName;\n }\n if (typeof this.isActive !== 'undefined') {\n toReturn['isActive'] = this.isActive;\n }\n if (typeof this.isHidden !== 'undefined') {\n toReturn['isHidden'] = this.isHidden;\n }\n if (typeof this.translations !== 'undefined' && this.translations !== null) {\n toReturn['translations'] = 'toApiJson' in this.translations ? this.translations.toApiJson() : this.translations;\n }\n return toReturn;\n }\n}\nclass ValidateCategoryRequest {\n static fromProto(proto) {\n let m = new ValidateCategoryRequest();\n m = Object.assign(m, proto);\n if (proto.category) {\n m.category = Category.fromProto(proto.category);\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.category !== 'undefined' && this.category !== null) {\n toReturn['category'] = 'toApiJson' in this.category ? this.category.toApiJson() : this.category;\n }\n return toReturn;\n }\n}\nclass ValidateCategoryResponse {\n static fromProto(proto) {\n let m = new ValidateCategoryResponse();\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.isValid !== 'undefined') {\n toReturn['isValid'] = this.isValid;\n }\n return toReturn;\n }\n}\nclass ValidateVCategoriesRequest {\n static fromProto(proto) {\n let m = new ValidateVCategoriesRequest();\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.externalIds !== 'undefined') {\n toReturn['externalIds'] = this.externalIds;\n }\n return toReturn;\n }\n}\nclass ValidateVCategoriesResponse {\n static fromProto(proto) {\n let m = new ValidateVCategoriesResponse();\n m = Object.assign(m, proto);\n if (proto.errors) {\n m.errors = Object.keys(proto.errors).reduce((obj, k) => {\n obj[k] = proto.errors[k];\n return obj;\n }, {});\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.errors !== 'undefined' && this.errors !== null) {\n toReturn['errors'] = 'toApiJson' in this.errors ? this.errors.toApiJson() : this.errors;\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': 'category-api.vendasta-local.com',\n 'test': '',\n 'demo': 'category-demo.apigateway.co',\n 'prod': 'category-prod.apigateway.co',\n 'production': 'category-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 CategoriesApiService = /*#__PURE__*/(() => {\n class CategoriesApiService {\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 getCategory(r) {\n const request = r.toApiJson ? r : new GetCategoryRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategory\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryResponse.fromProto(resp)));\n }\n getCategoryList(r) {\n const request = r.toApiJson ? r : new GetCategoryListRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryList\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryListResponse.fromProto(resp)));\n }\n getCategoryMapping(r) {\n const request = r.toApiJson ? r : new GetCategoryMappingRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryMapping\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryMappingResponse.fromProto(resp)));\n }\n bulkCreateCategories(r) {\n const request = r.toApiJson ? r : new BulkCreateCategoriesRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/BulkCreateCategories\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n bulkCreateCategoryRelationships(r) {\n const request = r.toApiJson ? r : new BulkCreateCategoryRelationshipsRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/BulkCreateCategoryRelationships\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n bulkDeleteCategoryRelationships(r) {\n const request = r.toApiJson ? r : new BulkDeleteCategoryRelationshipsRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/BulkDeleteCategoryRelationships\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n validateCategory(r) {\n const request = r.toApiJson ? r : new ValidateCategoryRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/ValidateCategory\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ValidateCategoryResponse.fromProto(resp)));\n }\n getCategoryByNameAndType(r) {\n const request = r.toApiJson ? r : new GetCategoryByNameAndTypeRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryByNameAndType\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryByNameAndTypeResponse.fromProto(resp)));\n }\n deleteCategoryByExternalIdAndType(r) {\n const request = r.toApiJson ? r : new DeleteCategoryByExternalIDAndTypeRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/DeleteCategoryByExternalIDAndType\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n deleteCategoryRelationshipByExternalIdAndType(r) {\n const request = r.toApiJson ? r : new DeleteCategoryRelationshipByExternalIDAndTypeRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/DeleteCategoryRelationshipByExternalIDAndType\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n getCategoryByExternalIDsAndType(r) {\n const request = r.toApiJson ? r : new GetCategoryByExternalIDsAndTypeRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryByExternalIDsAndType\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetCategoryByExternalIDsAndTypeResponse.fromProto(resp)));\n }\n getMultiCategoryMapping(r) {\n const request = r.toApiJson ? r : new GetMultiCategoryMappingRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetMultiCategoryMapping\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetMultiCategoryMappingResponse.fromProto(resp)));\n }\n getCategoryBySearchTerm(r) {\n const request = r.toApiJson ? r : new CategorySearchRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetCategoryBySearchTerm\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CategorySearchResponse.fromProto(resp)));\n }\n deleteCategoryRelationshipByOriginAndTarget(r) {\n const request = r.toApiJson ? r : new DeleteCategoryRelationshipByOriginAndTargetRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/DeleteCategoryRelationshipByOriginAndTarget\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n updateCategory(r) {\n const request = r.toApiJson ? r : new UpdateCategoryRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/UpdateCategory\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n createCategory(r) {\n const request = r.toApiJson ? r : new CreateCategoryRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/CreateCategory\", request.toApiJson(), this.apiOptions()).pipe(map(resp => CreateCategoryResponse.fromProto(resp)));\n }\n getAllCategoryMappings(r) {\n const request = r.toApiJson ? r : new GetAllCategoryMappingsRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/GetAllCategoryMappings\", request.toApiJson(), this.apiOptions()).pipe(map(resp => GetAllCategoryMappingsResponse.fromProto(resp)));\n }\n updateCategoryMappings(r) {\n const request = r.toApiJson ? r : new UpdateCategoryMappingsRequest(r);\n return this.http.post(this._host + \"/category.v1.Categories/UpdateCategoryMappings\", request.toApiJson(), {\n ...this.apiOptions(),\n observe: 'response'\n });\n }\n }\n CategoriesApiService.ɵfac = function CategoriesApiService_Factory(t) {\n return new (t || CategoriesApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n CategoriesApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: CategoriesApiService,\n factory: CategoriesApiService.ɵfac,\n providedIn: 'root'\n });\n return CategoriesApiService;\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 VCategoryValidationApiService = /*#__PURE__*/(() => {\n class VCategoryValidationApiService {\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 validateVCategories(r) {\n const request = r.toApiJson ? r : new ValidateVCategoriesRequest(r);\n return this.http.post(this._host + \"/category.v1.VCategoryValidation/ValidateVCategories\", request.toApiJson(), this.apiOptions()).pipe(map(resp => ValidateVCategoriesResponse.fromProto(resp)));\n }\n }\n VCategoryValidationApiService.ɵfac = function VCategoryValidationApiService_Factory(t) {\n return new (t || VCategoryValidationApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(HostService));\n };\n VCategoryValidationApiService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: VCategoryValidationApiService,\n factory: VCategoryValidationApiService.ɵfac,\n providedIn: 'root'\n });\n return VCategoryValidationApiService;\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// *********************************\nlet CategoryService = /*#__PURE__*/(() => {\n class CategoryService {\n constructor(_api) {\n this._api = _api;\n }\n getCategory(categoryId) {\n return this._api.getCategory({\n categoryId: categoryId\n }).pipe(map(res => res.category));\n }\n getCategoryByExternalIDsAndType(categories, locale) {\n return this._api.getCategoryByExternalIDsAndType({\n categories: categories,\n locale: locale\n }).pipe(map(res => res.category));\n }\n getCategoryList(type, pagingOptions) {\n return this._api.getCategoryList({\n type: type,\n pagingOptions: pagingOptions\n }).pipe(map(res => res.category));\n }\n getCategoryMapping(externalId, inputType, outputType) {\n return this._api.getCategoryMapping({\n externalId: externalId,\n inputType: inputType,\n outputType: outputType\n }).pipe(map(res => res.category));\n }\n validateCategory(category) {\n return this._api.validateCategory({\n category: category\n }).pipe(map(res => res.isValid));\n }\n getCategoryBySearchTerm(searchTerm, type, pagingOptions, sortOptions) {\n return this._api.getCategoryBySearchTerm({\n searchTerm,\n type,\n pagingOptions,\n sortOptions\n }).pipe(map(res => res.category));\n }\n }\n CategoryService.ɵfac = function CategoryService_Factory(t) {\n return new (t || CategoryService)(i0.ɵɵinject(CategoriesApiService));\n };\n CategoryService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: CategoryService,\n factory: CategoryService.ɵfac,\n providedIn: 'root'\n });\n return CategoryService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst localeMap = new Map([['af', Locale.LOCALE_AFRIKAANS], ['cs', Locale.LOCALE_CZECH], ['nl', Locale.LOCALE_DUTCH], ['en', Locale.LOCALE_ENGLISH], ['fr', Locale.LOCALE_FRENCH], ['fr-ca', Locale.LOCALE_FRENCH_CANADA], ['de', Locale.LOCALE_GERMAN], ['it', Locale.LOCALE_ITALIAN], ['ja', Locale.LOCALE_JAPANESE], ['pt-br', Locale.LOCALE_PORTUGUESE_BRAZIL], ['ru', Locale.LOCALE_RUSSIAN], ['es-419', Locale.LOCALE_SPANISH_LATIN_AMERICA],\n// fallback options to handle regional language codes that are not supported by the API\n['es', Locale.LOCALE_SPANISH_LATIN_AMERICA], ['pt', Locale.LOCALE_PORTUGUESE_BRAZIL]]);\nclass CategoryUtils {\n /**\n * Convert user's language to Locale enum value\n * @param language user's language\n * @returns `Locale` enum value\n * @example CategoryUtils.localeFromLanguage('en') => Locale.LOCALE_ENGLISH\n */\n static localeFromLanguage(language) {\n const selectedLanguage = language?.toLowerCase() ?? '';\n const locale = localeMap.get(selectedLanguage);\n if (locale) {\n return locale;\n }\n // search for a fallback option based on the first slice of the language code\n const baseLanguage = selectedLanguage.split('-')[0];\n return localeMap.get(baseLanguage);\n }\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Access, BulkCreateCategoriesRequest, BulkCreateCategoryRelationshipsRequest, BulkDeleteCategoryRelationshipsRequest, CategoriesApiService, Category, CategoryClass, CategoryLocale, CategoryPagedRequestOptions, CategoryPagedResponseMetadata, CategoryRelationships, CategoryRequest, CategorySearchRequest, CategorySearchResponse, CategoryService, CategoryTranslation, CategoryType, CategoryUtils, CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryByExternalIDAndTypeRequest, DeleteCategoryRelationshipByExternalIDAndTypeRequest, DeleteCategoryRelationshipByOriginAndTargetRequest, DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier, FieldMask, GetAllCategoryMappingsRequest, GetAllCategoryMappingsResponse, GetCategoryByExternalIDsAndTypeRequest, GetCategoryByExternalIDsAndTypeResponse, GetCategoryByNameAndTypeRequest, GetCategoryByNameAndTypeResponse, GetCategoryListRequest, GetCategoryListResponse, GetCategoryMappingRequest, GetCategoryMappingResponse, GetCategoryRequest, GetCategoryResponse, GetMultiCategoryMappingRequest, GetMultiCategoryMappingResponse, Locale, PagedRequestOptions, PagedResponseMetadata, SortDirection, SortField, SortOptions, TypeCategoryRelationship, UpdateCategoryMappingsRequest, UpdateCategoryMappingsRequestMappings, UpdateCategoryRequest, UpdateCategoryRequestUpdateFields, VCategoryValidationApiService, ValidateCategoryRequest, ValidateCategoryResponse, ValidateVCategoriesRequest, ValidateVCategoriesResponse, ValidateVCategoriesResponseErrorsEntry };\n"],"mappings":"wJAYA,IAAIA,GAA6B,SAAUA,EAAe,CACxD,OAAAA,EAAcA,EAAc,wBAA6B,CAAC,EAAI,0BAC9DA,EAAcA,EAAc,wBAA6B,CAAC,EAAI,0BACvDA,CACT,EAAEA,IAAiB,CAAC,CAAC,EACjBC,EAA4B,SAAUA,EAAc,CACtD,OAAAA,EAAaA,EAAa,yBAA8B,CAAC,EAAI,2BAC7DA,EAAaA,EAAa,oBAAyB,CAAC,EAAI,sBACxDA,EAAaA,EAAa,4BAAiC,CAAC,EAAI,8BAChEA,EAAaA,EAAa,kBAAuB,CAAC,EAAI,oBACtDA,EAAaA,EAAa,sBAA2B,CAAC,EAAI,wBAC1DA,EAAaA,EAAa,mBAAwB,CAAC,EAAI,qBACvDA,EAAaA,EAAa,mBAAwB,CAAC,EAAI,qBACvDA,EAAaA,EAAa,wBAA6B,CAAC,EAAI,0BAC5DA,EAAaA,EAAa,yBAA8B,CAAC,EAAI,2BAC7DA,EAAaA,EAAa,uBAA4B,EAAE,EAAI,yBAC5DA,EAAaA,EAAa,sBAA2B,EAAE,EAAI,wBAC3DA,EAAaA,EAAa,oBAAyB,EAAE,EAAI,sBAClDA,CACT,EAAEA,GAAgB,CAAC,CA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AkDC,EAAQ,UAAU,EAAGU,EAAAC,EAAA,GACrG,KAAK,WAAW,GADqF,CAExG,QAAS,UACX,EAAC,CACH,CACF,CACA,OAAAhB,EAAqB,UAAO,SAAsCF,EAAG,CACnE,OAAO,IAAKA,GAAKE,GAAyBsC,EAAYC,EAAU,EAAMD,EAASzC,EAAW,CAAC,CAC7F,EACAG,EAAqB,WAA0BD,EAAmB,CAChE,MAAOC,EACP,QAASA,EAAqB,UAC9B,WAAY,MACd,CAAC,EACMA,CACT,GAAG,EA2GH,IAAMwC,GAAY,IAAI,IAAI,CAAC,CAAC,KAAMC,EAAO,gBAAgB,EAAG,CAAC,KAAMA,EAAO,YAAY,EAAG,CAAC,KAAMA,EAAO,YAAY,EAAG,CAAC,KAAMA,EAAO,cAAc,EAAG,CAAC,KAAMA,EAAO,aAAa,EAAG,CAAC,QAASA,EAAO,oBAAoB,EAAG,CAAC,KAAMA,EAAO,aAAa,EAAG,CAAC,KAAMA,EAAO,cAAc,EAAG,CAAC,KAAMA,EAAO,eAAe,EAAG,CAAC,QAASA,EAAO,wBAAwB,EAAG,CAAC,KAAMA,EAAO,cAAc,EAAG,CAAC,SAAUA,EAAO,4BAA4B,EAEjb,CAAC,KAAMA,EAAO,4BAA4B,EAAG,CAAC,KAAMA,EAAO,wBAAwB,CAAC,CAAC,EAC/EC,GAAN,KAAoB,CAOlB,OAAO,mBAAmBC,EAAU,CAClC,IAAMC,EAAmBD,GAAU,YAAY,GAAK,GAC9CE,EAASL,GAAU,IAAII,CAAgB,EAC7C,GAAIC,EACF,OAAOA,EAGT,IAAMC,EAAeF,EAAiB,MAAM,GAAG,EAAE,CAAC,EAClD,OAAOJ,GAAU,IAAIM,CAAY,CACnC,CACF","names":["CategoryClass","CategoryType","Locale","SortDirection","SortField","TypeCategoryRelationship","FieldMask","_FieldMask","proto","m","kwargs","toReturn","PagedRequestOptions","_PagedRequestOptions","proto","m","kwargs","toReturn","PagedResponseMetadata","_PagedResponseMetadata","enumStringToValue","enumRef","value","BulkCreateCategoriesRequest","_BulkCreateCategoriesRequest","Category","BulkCreateCategoryRelationshipsRequest","_BulkCreateCategoryRelationshipsRequest","CategoryRelationships","BulkDeleteCategoryRelationshipsRequest","_BulkDeleteCategoryRelationshipsRequest","CategoryType","_Category","CategoryClass","CategoryLocale","CategoryTranslation","_CategoryLocale","CategoryPagedRequestOptions","_CategoryPagedRequestOptions","CategoryPagedResponseMetadata","_CategoryPagedResponseMetadata","_CategoryRelationships","TypeCategoryRelationship","CategoryRequest","_CategoryRequest","CategorySearchRequest","_CategorySearchRequest","SortOptions","Locale","CategorySearchResponse","_CategorySearchResponse","_CategoryTranslation","CreateCategoryRequest","_CreateCategoryRequest","CreateCategoryResponse","_CreateCategoryResponse","DeleteCategoryByExternalIDAndTypeRequest","_DeleteCategoryByExternalIDAndTypeRequest","DeleteCategoryRelationshipByExternalIDAndTypeRequest","_DeleteCategoryRelationshipByExternalIDAndTypeRequest","DeleteCategoryRelationshipByOriginAndTargetRequest","_DeleteCategoryRelationshipByOriginAndTargetRequest","DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier","GetAllCategoryMappingsRequest","_GetAllCategoryMappingsRequest","proto","m","enumStringToValue","CategoryType","kwargs","toReturn","GetAllCategoryMappingsResponse","_GetAllCategoryMappingsResponse","Category","GetCategoryByExternalIDsAndTypeRequest","_GetCategoryByExternalIDsAndTypeRequest","CategoryRequest","Locale","GetCategoryByExternalIDsAndTypeResponse","_GetCategoryByExternalIDsAndTypeResponse","GetCategoryByNameAndTypeRequest","_GetCategoryByNameAndTypeRequest","GetCategoryByNameAndTypeResponse","_GetCategoryByNameAndTypeResponse","GetCategoryListRequest","_GetCategoryListRequest","CategoryPagedRequestOptions","GetCategoryListResponse","_GetCategoryListResponse","CategoryPagedResponseMetadata","GetCategoryMappingRequest","_GetCategoryMappingRequest","GetCategoryMappingResponse","_GetCategoryMappingResponse","GetCategoryRequest","_GetCategoryRequest","GetCategoryResponse","_GetCategoryResponse","GetMultiCategoryMappingRequest","_GetMultiCategoryMappingRequest","GetMultiCategoryMappingResponse","_GetMultiCategoryMappingResponse","DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier","_DeleteCategoryRelationshipByOriginAndTargetRequestIdentifier","UpdateCategoryMappingsRequestMappings","_UpdateCategoryMappingsRequestMappings","SortOptions","_SortOptions","SortField","SortDirection","UpdateCategoryMappingsRequest","_UpdateCategoryMappingsRequest","UpdateCategoryRequest","_UpdateCategoryRequest","UpdateCategoryRequestUpdateFields","FieldMask","_UpdateCategoryRequestUpdateFields","CategoryTranslation","ValidateCategoryRequest","_ValidateCategoryRequest","ValidateCategoryResponse","_ValidateCategoryResponse","environment","hostMap","HostService","t","ɵɵdefineInjectable","CategoriesApiService","http","hostService","HttpHeaders","r","request","GetCategoryRequest","map","resp","GetCategoryResponse","GetCategoryListRequest","GetCategoryListResponse","GetCategoryMappingRequest","GetCategoryMappingResponse","BulkCreateCategoriesRequest","__spreadProps","__spreadValues","BulkCreateCategoryRelationshipsRequest","BulkDeleteCategoryRelationshipsRequest","ValidateCategoryRequest","ValidateCategoryResponse","GetCategoryByNameAndTypeRequest","GetCategoryByNameAndTypeResponse","DeleteCategoryByExternalIDAndTypeRequest","DeleteCategoryRelationshipByExternalIDAndTypeRequest","GetCategoryByExternalIDsAndTypeRequest","GetCategoryByExternalIDsAndTypeResponse","GetMultiCategoryMappingRequest","GetMultiCategoryMappingResponse","CategorySearchRequest","CategorySearchResponse","DeleteCategoryRelationshipByOriginAndTargetRequest","UpdateCategoryRequest","CreateCategoryRequest","CreateCategoryResponse","GetAllCategoryMappingsRequest","GetAllCategoryMappingsResponse","UpdateCategoryMappingsRequest","ɵɵinject","HttpClient","localeMap","Locale","CategoryUtils","language","selectedLanguage","locale","baseLanguage"],"x_google_ignoreList":[0]}