@searchability/admin-client 0.0.139 → 0.0.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ var TokenStatus;(function(_0x32bb8f){_0x32bb8f[_0x32bb8f['Ok']=0x0]='Ok',_0x32bb8f[_0x32bb8f['Refresh']=0x1]='Refresh',_0x32bb8f[_0x32bb8f['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x3d5929){this['isSuccess']=_0x3d5929;}}class SuccessfulFacetValueResponse extends Response{constructor(_0x117383){super(!![]),this['facets']=_0x117383;}['toSuccess'](){return this['facets'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetValuesResponse extends Response{constructor(_0x427b9a){super(![]),this['problem']=_0x427b9a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulContributorResponse extends Response{constructor(_0x30386f){super(!![]),this['contributor']=_0x30386f;}['toSuccess'](){return this['contributor'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedContributorResponse extends Response{constructor(_0x4dea2a){super(![]),this['problem']=_0x4dea2a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountAndImageResponse extends Response{constructor(_0x519da8){super(!![]),this['accountAndImages']=_0x519da8;}['toSuccess'](){return this['accountAndImages'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountAndImageResponse extends Response{constructor(_0x57ec31){super(![]),this['problem']=_0x57ec31;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulResourceResponse extends Response{constructor(_0x4e5a74){super(!![]),this['resource']=_0x4e5a74;}['toSuccess'](){return this['resource'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResourceResponse extends Response{constructor(_0xc57cf1){super(![]),this['problem']=_0xc57cf1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulFacetResponse extends Response{constructor(_0x15a243){super(!![]),this['facet']=_0x15a243;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x459197){super(![]),this['problem']=_0x459197;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedSearchableFieldResponse extends Response{constructor(_0x198f55){super(![]),this['problem']=_0x198f55;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchableFieldResponse extends Response{constructor(_0x3f07b8){super(!![]),this['searchable_field']=_0x3f07b8;}['toSuccess'](){return this['searchable_field'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountResponse extends Response{constructor(_0x2ca9f9){super(!![]),this['account']=_0x2ca9f9;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountImageResponse extends Response{constructor(_0x55de30){super(!![]),this['accountImage']=_0x55de30;}['toSuccess'](){return this['accountImage'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x308827){super(!![]),this['list']=_0x308827;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulGroupResponse extends Response{constructor(_0x4036c7){super(!![]),this['group']=_0x4036c7;}['toSuccess'](){return this['group'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedGroupResponse extends Response{constructor(_0x2db52f){super(![]),this['problem']=_0x2db52f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListResponse extends Response{constructor(_0x703ee6){super(!![]),this['list']=_0x703ee6;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedListResponse extends Response{constructor(_0x47a00a){super(![]),this['problem']=_0x47a00a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountResponse extends Response{constructor(_0x8f19da){super(![]),this['problem']=_0x8f19da;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountImageResponse extends Response{constructor(_0x2b21a5){super(![]),this['problem']=_0x2b21a5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x2e4b12){super(![]),this['problem']=_0x2e4b12;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x46c949){super(!![]),this['tokens']=_0x46c949;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x2bf267){super(![]),this['problem']=_0x2bf267;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x197603){super(!![]),this['apiKey']=_0x197603;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x67a641){super(![]),this['problem']=_0x67a641;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x54212d){super(!![]),this['searchService']=_0x54212d;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x46c89c){super(![]),this['problem']=_0x46c89c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0xf128d6){super(!![]),this['searchService']=_0xf128d6;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulSearchResultResponse extends Response{constructor(_0x26d8f5){super(!![]),this['searchResult']=_0x26d8f5;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x1c37ae){super(![]),this['problem']=_0x1c37ae;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchResultResponse extends Response{constructor(_0x3a1e09){super(!![]),this['searchResults']=_0x3a1e09;}['toSuccess'](){return this['searchResults'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchResultResponse extends Response{constructor(_0x485c7c){super(![]),this['problem']=_0x485c7c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x22fa07){super(!![]),this['searchServices']=_0x22fa07;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x3cfd62){super(![]),this['problem']=_0x3cfd62;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x3f91c5){super(![]),this['problem']=_0x3f91c5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x40d4fb){super(!![]),this['apiKeyValue']=_0x40d4fb;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0xdd8c89){super(!![]),this['obj']=_0xdd8c89;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x3c3e95){super(![]),this['problem']=_0x3c3e95;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x446f0a){super(![]),this['problem']=_0x446f0a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$b=undefined&&undefined['__awaiter']||function(_0x3c9c0d,_0x4b03d1,_0x40fc96,_0x437a20){function _0x14e334(_0x20ff37){return _0x20ff37 instanceof _0x40fc96?_0x20ff37:new _0x40fc96(function(_0x226d66){_0x226d66(_0x20ff37);});}return new(_0x40fc96||(_0x40fc96=Promise))(function(_0x4d92f4,_0x50a98b){function _0x5186b7(_0x33e19d){try{_0x1ef26b(_0x437a20['next'](_0x33e19d));}catch(_0x76c58e){_0x50a98b(_0x76c58e);}}function _0x55fe23(_0x351f16){try{_0x1ef26b(_0x437a20['throw'](_0x351f16));}catch(_0x56be2f){_0x50a98b(_0x56be2f);}}function _0x1ef26b(_0x111191){_0x111191['done']?_0x4d92f4(_0x111191['value']):_0x14e334(_0x111191['value'])['then'](_0x5186b7,_0x55fe23);}_0x1ef26b((_0x437a20=_0x437a20['apply'](_0x3c9c0d,_0x4b03d1||[]))['next']());});};class AccountService{constructor(_0x2a7a86){this['fetch']=_0x2a7a86;}['get'](_0x34bd30,_0xa2306c){return __awaiter$b(this,void 0,void 0,function*(){const _0x599102='Account/'+_0x34bd30+'/',_0x3d85af=yield this['fetch']['get'](_0x599102,_0xa2306c);try{if(_0x3d85af['status']>0xc7&&_0x3d85af['status']<0x12c){const _0x88b4ae=yield _0x3d85af['json']();return new SuccessfulAccountResponse(_0x88b4ae);}const _0x24c49a=yield _0x3d85af['json']();return new FailedAccountResponse(_0x24c49a);}catch(_0x74278c){if(_0x74278c instanceof Error)return new FailedAccountResponse({'detail':_0x74278c['message'],'title':_0x74278c['name'],'status':0x1f4,'instance':'','type':''});throw _0x74278c;}});}['getImage'](_0x476754,_0x11ac32){return __awaiter$b(this,void 0,void 0,function*(){const _0xa065e8='account/image/'+_0x476754+'/',_0x59c218=yield this['fetch']['get'](_0xa065e8,_0x11ac32);try{if(_0x59c218['status']>0xc7&&_0x59c218['status']<0x12c){const _0x54872e=yield _0x59c218['json']();return new SuccessfulAccountImageResponse(_0x54872e);}const _0x562188=yield _0x59c218['json']();return new FailedAccountImageResponse(_0x562188);}catch(_0x346e80){if(_0x346e80 instanceof Error)return new FailedAccountImageResponse({'detail':_0x346e80['message'],'title':_0x346e80['name'],'status':0x1f4,'instance':'','type':''});throw _0x346e80;}});}}
4
+
5
+ var __awaiter$a=undefined&&undefined['__awaiter']||function(_0x47f440,_0x4cab81,_0x5a7eec,_0x30846e){function _0x20f3f7(_0x30e053){return _0x30e053 instanceof _0x5a7eec?_0x30e053:new _0x5a7eec(function(_0x359f28){_0x359f28(_0x30e053);});}return new(_0x5a7eec||(_0x5a7eec=Promise))(function(_0x5c3710,_0x4ecd17){function _0x3d75cd(_0x288389){try{_0x448a81(_0x30846e['next'](_0x288389));}catch(_0x4b3beb){_0x4ecd17(_0x4b3beb);}}function _0x4225a3(_0x4e6c73){try{_0x448a81(_0x30846e['throw'](_0x4e6c73));}catch(_0x313a6b){_0x4ecd17(_0x313a6b);}}function _0x448a81(_0x521d33){_0x521d33['done']?_0x5c3710(_0x521d33['value']):_0x20f3f7(_0x521d33['value'])['then'](_0x3d75cd,_0x4225a3);}_0x448a81((_0x30846e=_0x30846e['apply'](_0x47f440,_0x4cab81||[]))['next']());});};class ApiKeyService{constructor(_0x4e5647){this['fetch']=_0x4e5647,this['path']='api-key';}['create'](_0x23ddd2,_0x8ca13,_0x6aeebc){return __awaiter$a(this,void 0,void 0,function*(){const _0x3c6ff3={'account_name':_0x23ddd2,'api_key_name':_0x8ca13};try{const _0xb91371=yield this['fetch']['post'](this['path'],_0x6aeebc,_0x3c6ff3);if(_0xb91371['status']>0xc7&&_0xb91371['status']<0x12c){const _0x54180d=yield _0xb91371['json']();return new SuccessfulApiKeyResponse(_0x54180d);}const _0x25aaa6=yield _0xb91371['json']();return new FailedApiKeyResponse(_0x25aaa6);}catch(_0x4c3403){if(_0x4c3403 instanceof Error)return new FailedApiKeyResponse({'detail':_0x4c3403['message'],'title':_0x4c3403['name'],'status':0x1f4,'instance':'','type':''});throw _0x4c3403;}});}['view'](_0xa649f6,_0x2a34d9,_0x1b5caf){return __awaiter$a(this,void 0,void 0,function*(){const _0x3f136f=this['path']+'/'+_0xa649f6+'/'+_0x2a34d9;try{const _0x338dda=yield this['fetch']['get'](_0x3f136f,_0x1b5caf);if(_0x338dda['status']>0xc7&&_0x338dda['status']<0x12c){const _0x90885c=yield _0x338dda['json']();return new SuccessfulApiKeyValueResponse(_0x90885c);}const _0x1ea397=yield _0x338dda['json']();return new FailedApiKeyValueResponse(_0x1ea397);}catch(_0x894ee2){if(_0x894ee2 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x894ee2['message'],'title':_0x894ee2['name'],'status':0x1f4,'instance':'','type':''});throw _0x894ee2;}});}['delete'](_0xdf24d2,_0xe840e7,_0x342ca8){return __awaiter$a(this,void 0,void 0,function*(){const _0x23cf2c=this['path']+'/'+_0xdf24d2+'/'+_0xe840e7;try{const _0x36d6a4=yield this['fetch']['delete'](_0x23cf2c,_0x342ca8);if(_0x36d6a4['status']>0xc7&&_0x36d6a4['status']<0x12c)return new SuccessfulResponse({});const _0x1251f3=yield _0x36d6a4['json']();return new FailedResponse(_0x1251f3);}catch(_0x2b4b9b){if(_0x2b4b9b instanceof Error)return new FailedResponse({'detail':_0x2b4b9b['message'],'title':_0x2b4b9b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2b4b9b;}});}}
6
+
7
+ var __awaiter$9=undefined&&undefined['__awaiter']||function(_0x1b2197,_0x332246,_0x496c08,_0x18060f){function _0x5d885c(_0x513a1c){return _0x513a1c instanceof _0x496c08?_0x513a1c:new _0x496c08(function(_0x20a7b4){_0x20a7b4(_0x513a1c);});}return new(_0x496c08||(_0x496c08=Promise))(function(_0x245f82,_0x111bc5){function _0x4a56b6(_0x37c068){try{_0x27fc8c(_0x18060f['next'](_0x37c068));}catch(_0x166e22){_0x111bc5(_0x166e22);}}function _0x3564e5(_0x5d0473){try{_0x27fc8c(_0x18060f['throw'](_0x5d0473));}catch(_0x1ce615){_0x111bc5(_0x1ce615);}}function _0x27fc8c(_0x11ed6e){_0x11ed6e['done']?_0x245f82(_0x11ed6e['value']):_0x5d885c(_0x11ed6e['value'])['then'](_0x4a56b6,_0x3564e5);}_0x27fc8c((_0x18060f=_0x18060f['apply'](_0x1b2197,_0x332246||[]))['next']());});};class ListService{constructor(_0x1454f1){this['fetch']=_0x1454f1,this['path']='list',this['Coordinates']=new CoordinatesService(_0x1454f1),this['GeneratedSuggestions']=new GeneratedSuggestionsService(_0x1454f1);}['create'](_0x1752e2,_0x5d2c98,_0x6de79b,_0x5e77cb){return __awaiter$9(this,void 0,void 0,function*(){const _0x5c1afc={'account_name':_0x1752e2,'list_name':_0x5d2c98,'search_service_name':_0x6de79b};try{const _0x528011=yield this['fetch']['post'](this['path'],_0x5e77cb,_0x5c1afc);if(_0x528011['status']>0xc7&&_0x528011['status']<0x12c){const _0x1e54f3=yield _0x528011['json']();return new SuccessfulListIdentityResponse(_0x1e54f3);}const _0x2c7ab1=yield _0x528011['json']();return new FailedListIdentityResponse(_0x2c7ab1);}catch(_0x40d55b){if(_0x40d55b instanceof Error)return new FailedListIdentityResponse({'detail':_0x40d55b['message'],'title':_0x40d55b['name'],'status':0x1f4,'instance':'','type':''});throw _0x40d55b;}});}['delete'](_0x4eb72a,_0x1984d9,_0x23c419){return __awaiter$9(this,void 0,void 0,function*(){const _0x504d2b=this['path']+'/'+_0x4eb72a+'/'+_0x1984d9,_0x1b6e7c=yield this['fetch']['delete'](_0x504d2b,_0x23c419);try{if(_0x1b6e7c['status']>0xc7&&_0x1b6e7c['status']<0x12c)return new SuccessfulResponse({});const _0xbdff5d=yield _0x1b6e7c['json']();return new FailedResponse(_0xbdff5d);}catch(_0x295624){if(_0x295624 instanceof Error)return new FailedResponse({'detail':_0x295624['message'],'title':_0x295624['name'],'status':0x1f4,'instance':'','type':''});throw _0x295624;}});}['get'](_0x59b832,_0x58d5a9,_0x313ce5){return __awaiter$9(this,void 0,void 0,function*(){const _0x1ee95c=this['path']+'/'+_0x59b832+'/'+_0x58d5a9;try{const _0x4dc8b2=yield this['fetch']['get'](_0x1ee95c,_0x313ce5);if(_0x4dc8b2['status']>0xc7&&_0x4dc8b2['status']<0x12c){const _0x4751a9=yield _0x4dc8b2['json']();return new SuccessfulListResponse(_0x4751a9);}const _0x35019e=yield _0x4dc8b2['json']();return new FailedListResponse(_0x35019e);}catch(_0x56b970){if(_0x56b970 instanceof Error)return new FailedListResponse({'detail':_0x56b970['message'],'title':_0x56b970['name'],'status':0x1f4,'instance':'','type':''});throw _0x56b970;}});}['editSettings'](_0x5d8a19,_0x35e840,_0x315d17,_0x5e7736){return __awaiter$9(this,void 0,void 0,function*(){const _0x2af9a1=this['path']+'/settings/'+_0x5d8a19+'/'+_0x35e840,_0x5a60e7=yield this['fetch']['put'](_0x2af9a1,_0x315d17,_0x5e7736);try{if(_0x5a60e7['status']>0xc7&&_0x5a60e7['status']<0x12c){const _0x5e1705=yield _0x5a60e7['json']();return new SuccessfulListResponse(_0x5e1705);}const _0x7f14bc=yield _0x5a60e7['json']();return new FailedListResponse(_0x7f14bc);}catch(_0x90d042){if(_0x90d042 instanceof Error)return new FailedListResponse({'detail':_0x90d042['message'],'title':_0x90d042['name'],'status':0x1f4,'instance':'','type':''});throw _0x90d042;}});}['addCoordinates'](_0x1d1226,_0x24cd78,_0x1fcc01){return __awaiter$9(this,void 0,void 0,function*(){const _0x2aa418=this['path']+'/coordinates/'+_0x1d1226+'/'+_0x24cd78,_0x2bac48=yield this['fetch']['post'](_0x2aa418,_0x1fcc01,{});try{if(_0x2bac48['status']>0xc7&&_0x2bac48['status']<0x12c){const _0x2c108a=yield _0x2bac48['json']();return new SuccessfulListResponse(_0x2c108a);}const _0x4539b2=yield _0x2bac48['json']();return new FailedListResponse(_0x4539b2);}catch(_0x39c9bc){if(_0x39c9bc instanceof Error)return new FailedListResponse({'detail':_0x39c9bc['message'],'title':_0x39c9bc['name'],'status':0x1f4,'instance':'','type':''});throw _0x39c9bc;}});}['removeCoordinates'](_0x273a7b,_0x409925,_0x1d8c30){return __awaiter$9(this,void 0,void 0,function*(){const _0x4b49fd=this['path']+'/coordinates/'+_0x273a7b+'/'+_0x409925,_0x544efc=yield this['fetch']['delete'](_0x4b49fd,_0x1d8c30);try{if(_0x544efc['status']>0xc7&&_0x544efc['status']<0x12c){const _0xe28747=yield _0x544efc['json']();return new SuccessfulListResponse(_0xe28747);}const _0x2219ae=yield _0x544efc['json']();return new FailedListResponse(_0x2219ae);}catch(_0x3b9279){if(_0x3b9279 instanceof Error)return new FailedListResponse({'detail':_0x3b9279['message'],'title':_0x3b9279['name'],'status':0x1f4,'instance':'','type':''});throw _0x3b9279;}});}['transfer'](_0x1319af,_0x23af15,_0x3950da,_0x26e27a){return __awaiter$9(this,void 0,void 0,function*(){const _0x5e4a24={'new_search_service_name':_0x3950da};try{const _0x5b8ca5=yield this['fetch']['put'](this['path']+'/transfer/'+_0x1319af+'/'+_0x23af15,_0x26e27a,_0x5e4a24);if(_0x5b8ca5['status']>0xc7&&_0x5b8ca5['status']<0x12c){const _0x20b66b=yield _0x5b8ca5['json']();return new SuccessfulListResponse(_0x20b66b);}const _0x41ea6b=yield _0x5b8ca5['json']();return new FailedListResponse(_0x41ea6b);}catch(_0x1f3d8f){if(_0x1f3d8f instanceof Error)return new FailedListResponse({'detail':_0x1f3d8f['message'],'title':_0x1f3d8f['name'],'status':0x1f4,'instance':'','type':''});throw _0x1f3d8f;}});}}class CoordinatesService{constructor(_0x45cd4a){this['fetch']=_0x45cd4a,this['path']='list/coordinates';}['add'](_0x8eadc9,_0xad040,_0x48b00a){return __awaiter$9(this,void 0,void 0,function*(){const _0x62062c=this['path']+'/'+_0x8eadc9+'/'+_0xad040,_0x15cbcc=yield this['fetch']['post'](_0x62062c,_0x48b00a,{});try{if(_0x15cbcc['status']>0xc7&&_0x15cbcc['status']<0x12c){const _0x23182b=yield _0x15cbcc['json']();return new SuccessfulListResponse(_0x23182b);}const _0x163f10=yield _0x15cbcc['json']();return new FailedListResponse(_0x163f10);}catch(_0x3f5e38){if(_0x3f5e38 instanceof Error)return new FailedListResponse({'detail':_0x3f5e38['message'],'title':_0x3f5e38['name'],'status':0x1f4,'instance':'','type':''});throw _0x3f5e38;}});}['remove'](_0x5e334e,_0x22b4fb,_0x222ff6){return __awaiter$9(this,void 0,void 0,function*(){const _0x59a1cc=this['path']+'/'+_0x5e334e+'/'+_0x22b4fb,_0x55e788=yield this['fetch']['delete'](_0x59a1cc,_0x222ff6);try{if(_0x55e788['status']>0xc7&&_0x55e788['status']<0x12c){const _0x2059c7=yield _0x55e788['json']();return new SuccessfulListResponse(_0x2059c7);}const _0x1dcc47=yield _0x55e788['json']();return new FailedListResponse(_0x1dcc47);}catch(_0x4ddedd){if(_0x4ddedd instanceof Error)return new FailedListResponse({'detail':_0x4ddedd['message'],'title':_0x4ddedd['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ddedd;}});}}class GeneratedSuggestionsService{constructor(_0x22b629){this['fetch']=_0x22b629,this['path']='list/generated-suggestions';}['add'](_0x429460,_0x4d9fa2,_0xa6812e,_0x2c169b,_0x107b83,_0x3fca9b,_0x2d299b){return __awaiter$9(this,void 0,void 0,function*(){const _0x3148ce=this['path']+'/'+_0x429460+'/'+_0x4d9fa2,_0x68448=yield this['fetch']['post'](_0x3148ce,_0x2d299b,{'target_list_name':_0xa6812e,'minimum_result_count':_0x2c169b,'is_active':_0x107b83,'minimum_characters':_0x3fca9b});try{if(_0x68448['status']>0xc7&&_0x68448['status']<0x12c){const _0x13689a=yield _0x68448['json']();return new SuccessfulListResponse(_0x13689a);}const _0x5422ea=yield _0x68448['json']();return new FailedListResponse(_0x5422ea);}catch(_0xd3cfa7){if(_0xd3cfa7 instanceof Error)return new FailedListResponse({'detail':_0xd3cfa7['message'],'title':_0xd3cfa7['name'],'status':0x1f4,'instance':'','type':''});throw _0xd3cfa7;}});}['remove'](_0x19102,_0x48ab64,_0x35fcdc){return __awaiter$9(this,void 0,void 0,function*(){const _0x9d4005=this['path']+'/'+_0x19102+'/'+_0x48ab64,_0xe2cadb=yield this['fetch']['delete'](_0x9d4005,_0x35fcdc);try{if(_0xe2cadb['status']>0xc7&&_0xe2cadb['status']<0x12c){const _0x3e5e32=yield _0xe2cadb['json']();return new SuccessfulListResponse(_0x3e5e32);}const _0x36c32d=yield _0xe2cadb['json']();return new FailedListResponse(_0x36c32d);}catch(_0x4d5456){if(_0x4d5456 instanceof Error)return new FailedListResponse({'detail':_0x4d5456['message'],'title':_0x4d5456['name'],'status':0x1f4,'instance':'','type':''});throw _0x4d5456;}});}['edit'](_0x2ca726,_0x1390bf,_0x4a3807,_0x48bb1e){return __awaiter$9(this,void 0,void 0,function*(){const _0xd32546=this['path']+'/'+_0x2ca726+'/'+_0x1390bf;_0x48bb1e=_0x48bb1e!==null&&_0x48bb1e!==void 0?_0x48bb1e:{};const _0x5e7b9f=yield this['fetch']['put'](_0xd32546,_0x4a3807,_0x48bb1e);try{if(_0x5e7b9f['status']>0xc7&&_0x5e7b9f['status']<0x12c){const _0x59504b=yield _0x5e7b9f['json']();return new SuccessfulListResponse(_0x59504b);}const _0x561883=yield _0x5e7b9f['json']();return new FailedListResponse(_0x561883);}catch(_0x5d3267){if(_0x5d3267 instanceof Error)return new FailedListResponse({'detail':_0x5d3267['message'],'title':_0x5d3267['name'],'status':0x1f4,'instance':'','type':''});throw _0x5d3267;}});}}
8
+
9
+ var __awaiter$8=undefined&&undefined['__awaiter']||function(_0x394dd3,_0x2ae30e,_0x2c9812,_0xeb04fe){function _0x158065(_0x3f942b){return _0x3f942b instanceof _0x2c9812?_0x3f942b:new _0x2c9812(function(_0x4f499c){_0x4f499c(_0x3f942b);});}return new(_0x2c9812||(_0x2c9812=Promise))(function(_0x10b7c9,_0x4f48e2){function _0x431e11(_0x3f499f){try{_0x46c226(_0xeb04fe['next'](_0x3f499f));}catch(_0x4fa689){_0x4f48e2(_0x4fa689);}}function _0x3e0cc2(_0x1f3f62){try{_0x46c226(_0xeb04fe['throw'](_0x1f3f62));}catch(_0x226664){_0x4f48e2(_0x226664);}}function _0x46c226(_0x53802a){_0x53802a['done']?_0x10b7c9(_0x53802a['value']):_0x158065(_0x53802a['value'])['then'](_0x431e11,_0x3e0cc2);}_0x46c226((_0xeb04fe=_0xeb04fe['apply'](_0x394dd3,_0x2ae30e||[]))['next']());});};class Fetch{constructor(_0x231af7){this['baseUri']=_0x231af7,this['getUrl']=_0x2d0d95=>{return _0x2d0d95['startsWith']('/')&&(_0x2d0d95=_0x2d0d95['replace']('/','')),''+this['baseUri']+_0x2d0d95;},!_0x231af7['endsWith']('/')&&(_0x231af7=_0x231af7+'/');}['get'](_0x42df6e,_0x5e1a31){return __awaiter$8(this,void 0,void 0,function*(){const _0x3bb9c8=this['getUrl'](_0x42df6e);return yield fetch(_0x3bb9c8,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5e1a31}});});}['post'](_0x4e9da2,_0x8ab19e,_0x2bd30c){return __awaiter$8(this,void 0,void 0,function*(){const _0x358d0e=this['getUrl'](_0x4e9da2);return yield fetch(_0x358d0e,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x8ab19e},'body':_0x2bd30c?JSON['stringify'](_0x2bd30c):null});});}['upload'](_0x4ccd9b,_0x15b617,_0x41e507){return __awaiter$8(this,void 0,void 0,function*(){const _0x350b94=this['getUrl'](_0x4ccd9b);return yield fetch(_0x350b94,{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x15b617},'body':_0x41e507});});}['PostNoAuth'](_0x47168d,_0x429074){return __awaiter$8(this,void 0,void 0,function*(){const _0x369ba9=this['getUrl'](_0x47168d);return yield fetch(_0x369ba9,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x429074?JSON['stringify'](_0x429074):null});});}['put'](_0x417d49,_0x4e43ae,_0x3ac9a9){return __awaiter$8(this,void 0,void 0,function*(){const _0x5084f9=this['getUrl'](_0x417d49);return yield fetch(_0x5084f9,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4e43ae},'body':_0x3ac9a9?JSON['stringify'](_0x3ac9a9):null});});}['delete'](_0x589c4a,_0x5518e9){return __awaiter$8(this,void 0,void 0,function*(){const _0x3df53b=this['getUrl'](_0x589c4a);return yield fetch(_0x3df53b,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5518e9}});});}}
10
+
11
+ var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x5a1a74,_0x466314,_0x19fa94,_0x1bf6bf){function _0x4fe15b(_0x2852b1){return _0x2852b1 instanceof _0x19fa94?_0x2852b1:new _0x19fa94(function(_0x26bfe9){_0x26bfe9(_0x2852b1);});}return new(_0x19fa94||(_0x19fa94=Promise))(function(_0x5e235d,_0x1ed4d1){function _0x6fbff(_0x2e254f){try{_0x5676c0(_0x1bf6bf['next'](_0x2e254f));}catch(_0x32acea){_0x1ed4d1(_0x32acea);}}function _0xc787a3(_0x50382d){try{_0x5676c0(_0x1bf6bf['throw'](_0x50382d));}catch(_0xcbf88c){_0x1ed4d1(_0xcbf88c);}}function _0x5676c0(_0x34dff3){_0x34dff3['done']?_0x5e235d(_0x34dff3['value']):_0x4fe15b(_0x34dff3['value'])['then'](_0x6fbff,_0xc787a3);}_0x5676c0((_0x1bf6bf=_0x1bf6bf['apply'](_0x5a1a74,_0x466314||[]))['next']());});};class SearchServersService{constructor(_0xef85a8){this['fetch']=_0xef85a8,this['path']='search-service';}['create'](_0x43232c,_0x22ef75,_0x104d2c,_0xab303,_0x23c8d9,_0x59cb65,_0x1b084a,_0x12e68c){return __awaiter$7(this,void 0,void 0,function*(){const _0x5ddef7={'account_name':_0x43232c,'search_service_name':_0x22ef75,'endpoint':_0x104d2c,'key':_0xab303,'country':_0x23c8d9,'provider':_0x59cb65,'index_name':_0x1b084a};try{const _0x565abc=yield this['fetch']['post'](this['path'],_0x12e68c,_0x5ddef7);if(_0x565abc['status']>0xc7&&_0x565abc['status']<0x12c){const _0x5d3f82=yield _0x565abc['json']();return new SuccessfulSearchServiceResponse(_0x5d3f82);}const _0x3db8d5=yield _0x565abc['json']();return new FailedSearchServiceResponse(_0x3db8d5);}catch(_0x531211){if(_0x531211 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x531211['message'],'title':_0x531211['name'],'status':0x1f4,'instance':'','type':''});throw _0x531211;}});}['delete'](_0x2e136d,_0x31fb5d,_0x195d1b){return __awaiter$7(this,void 0,void 0,function*(){const _0x312705=this['path']+'/'+_0x2e136d+'/'+_0x31fb5d;try{const _0xf53e85=yield this['fetch']['delete'](_0x312705,_0x195d1b);if(_0xf53e85['status']>0xc7&&_0xf53e85['status']<0x12c)return new SuccessfulResponse({});const _0x3ba1a3=yield _0xf53e85['json']();return new FailedResponse(_0x3ba1a3);}catch(_0x200712){if(_0x200712 instanceof Error)return new FailedResponse({'detail':_0x200712['message'],'title':_0x200712['name'],'status':0x1f4,'instance':'','type':''});throw _0x200712;}});}['view'](_0x488df4,_0x2c7bb1,_0x4f039d){return __awaiter$7(this,void 0,void 0,function*(){const _0x185dfd=this['path']+'/'+_0x488df4+'/'+_0x2c7bb1;try{const _0x3b2741=yield this['fetch']['get'](_0x185dfd,_0x4f039d);if(_0x3b2741['status']>0xc7&&_0x3b2741['status']<0x12c){const _0x4f618b=yield _0x3b2741['json']();return new SuccessfulViewSearchServiceResponse(_0x4f618b);}const _0x3e1276=yield _0x3b2741['json']();return new FailedViewSearchServiceResponse(_0x3e1276);}catch(_0x3a86e2){if(_0x3a86e2 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x3a86e2['message'],'title':_0x3a86e2['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a86e2;}});}['edit'](_0x49c774,_0x5ac89d,_0x51301c,_0x1e3e28,_0x49a69f){return __awaiter$7(this,void 0,void 0,function*(){const _0x13e11f={'account_name':_0x49c774,'search_service_name':_0x5ac89d,'key':_0x51301c,'country':_0x1e3e28};try{const _0x3cf499=yield this['fetch']['put'](this['path'],_0x49a69f,_0x13e11f);if(_0x3cf499['status']>0xc7&&_0x3cf499['status']<0x12c){const _0xc6f899=yield _0x3cf499['json']();return new SuccessfulSearchServiceResponse(_0xc6f899);}const _0x821c3d=yield _0x3cf499['json']();return new FailedSearchServiceResponse(_0x821c3d);}catch(_0x5dada4){if(_0x5dada4 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5dada4['message'],'title':_0x5dada4['name'],'status':0x1f4,'instance':'','type':''});throw _0x5dada4;}});}['list'](_0x5dc57e,_0x2d3f90){return __awaiter$7(this,void 0,void 0,function*(){const _0x1c74d8=this['path']+'/'+_0x5dc57e;try{const _0x39e694=yield this['fetch']['get'](_0x1c74d8,_0x2d3f90);if(_0x39e694['status']>0xc7&&_0x39e694['status']<0x12c){const _0xd4151=yield _0x39e694['json']();return new SuccessfulListSearchServiceResponse(_0xd4151);}const _0x33f0b1=yield _0x39e694['json']();return new FailedViewSearchServicesResponse(_0x33f0b1);}catch(_0x19f06a){if(_0x19f06a instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x19f06a['message'],'title':_0x19f06a['name'],'status':0x1f4,'instance':'','type':''});throw _0x19f06a;}});}}
12
+
13
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x5475f4,_0x199823,_0x635bc0,_0x586082){function _0x59b27e(_0x4fab30){return _0x4fab30 instanceof _0x635bc0?_0x4fab30:new _0x635bc0(function(_0x9433b5){_0x9433b5(_0x4fab30);});}return new(_0x635bc0||(_0x635bc0=Promise))(function(_0x41f01e,_0x585348){function _0x1e9c9c(_0x1c2a80){try{_0x4b6366(_0x586082['next'](_0x1c2a80));}catch(_0x3e6dcc){_0x585348(_0x3e6dcc);}}function _0x277e4b(_0x2b8ccd){try{_0x4b6366(_0x586082['throw'](_0x2b8ccd));}catch(_0x5e1878){_0x585348(_0x5e1878);}}function _0x4b6366(_0x322963){_0x322963['done']?_0x41f01e(_0x322963['value']):_0x59b27e(_0x322963['value'])['then'](_0x1e9c9c,_0x277e4b);}_0x4b6366((_0x586082=_0x586082['apply'](_0x5475f4,_0x199823||[]))['next']());});};class FacetService{constructor(_0x3d6aa1){this['fetch']=_0x3d6aa1,this['path']='facet';}['create'](_0x599b26,_0x33be9a,_0x28cfd9,_0x501477){return __awaiter$6(this,void 0,void 0,function*(){const _0xbc5aff={'account_name':_0x599b26,'list_name':_0x33be9a,'facet_name':_0x28cfd9};try{const _0x241475=yield this['fetch']['post'](this['path'],_0x501477,_0xbc5aff);if(_0x241475['status']>0xc7&&_0x241475['status']<0x12c){const _0x5c37d0=yield _0x241475['json']();return new SuccessfulFacetResponse(_0x5c37d0);}const _0x71145f=yield _0x241475['json']();return new FailedFacetResponse(_0x71145f);}catch(_0x4f1f76){if(_0x4f1f76 instanceof Error)return new FailedFacetResponse({'detail':_0x4f1f76['message'],'title':_0x4f1f76['name'],'status':0x1f4,'instance':'','type':''});throw _0x4f1f76;}});}['remove'](_0x242904,_0x52800c,_0x1a4f44,_0x24800a){return __awaiter$6(this,void 0,void 0,function*(){const _0x4808c8='Facet/'+_0x242904+'/'+_0x52800c+'/'+_0x1a4f44,_0x4ad6e1=yield this['fetch']['delete'](_0x4808c8,_0x24800a);try{if(_0x4ad6e1['status']>0xc7&&_0x4ad6e1['status']<0x12c)return new SuccessfulResponse({});const _0x4c7853=yield _0x4ad6e1['json']();return new FailedResponse(_0x4c7853);}catch(_0xabe221){if(_0xabe221 instanceof Error)return new FailedResponse({'detail':_0xabe221['message'],'title':_0xabe221['name'],'status':0x1f4,'instance':'','type':''});throw _0xabe221;}});}['rename'](_0x499bff,_0x460fa3,_0x32a015,_0x107cb2,_0x2eaf3c){return __awaiter$6(this,void 0,void 0,function*(){let _0x512ce0=this['path']+'/'+_0x499bff+'/'+_0x460fa3;const _0x3b7aab={'facet_name':_0x32a015,'new_facet_name':_0x107cb2};try{const _0x1f229d=yield this['fetch']['put'](_0x512ce0,_0x2eaf3c,_0x3b7aab);if(_0x1f229d['status']>0xc7&&_0x1f229d['status']<0x12c){const _0x1883b3=yield _0x1f229d['json']();return new SuccessfulFacetResponse(_0x1883b3);}const _0x500a06=yield _0x1f229d['json']();return new FailedFacetResponse(_0x500a06);}catch(_0x5f2c1f){if(_0x5f2c1f instanceof Error)return new FailedFacetResponse({'detail':_0x5f2c1f['message'],'title':_0x5f2c1f['name'],'status':0x1f4,'instance':'','type':''});throw _0x5f2c1f;}});}['list'](_0x48cfff,_0x2c4602,_0x42bdce,_0x42fe79,_0x3147b6){return __awaiter$6(this,void 0,void 0,function*(){let _0x2bb1c6=this['path']+'/'+_0x48cfff+'/'+_0x2c4602+'/'+_0x42bdce+'/'+_0x42fe79;try{const _0x31a6cb=yield this['fetch']['get'](_0x2bb1c6,_0x3147b6);if(_0x31a6cb['status']>0xc7&&_0x31a6cb['status']<0x12c){const _0x4f4cdc=yield _0x31a6cb['json']();return new SuccessfulFacetValueResponse(_0x4f4cdc);}const _0x387753=yield _0x31a6cb['json']();return new FailedFacetValuesResponse(_0x387753);}catch(_0x3acdb7){if(_0x3acdb7 instanceof Error)return new FailedFacetValuesResponse({'detail':_0x3acdb7['message'],'title':_0x3acdb7['name'],'status':0x1f4,'instance':'','type':''});throw _0x3acdb7;}});}}
14
+
15
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x4786fa,_0x20f834,_0x5c0865,_0x48f290){function _0x48590c(_0xf9061e){return _0xf9061e instanceof _0x5c0865?_0xf9061e:new _0x5c0865(function(_0x3692f2){_0x3692f2(_0xf9061e);});}return new(_0x5c0865||(_0x5c0865=Promise))(function(_0x9f1a8a,_0x71674){function _0x248884(_0x56e87a){try{_0x31bb9c(_0x48f290['next'](_0x56e87a));}catch(_0xd8568c){_0x71674(_0xd8568c);}}function _0x32d48e(_0x7f5411){try{_0x31bb9c(_0x48f290['throw'](_0x7f5411));}catch(_0x263864){_0x71674(_0x263864);}}function _0x31bb9c(_0x39647b){_0x39647b['done']?_0x9f1a8a(_0x39647b['value']):_0x48590c(_0x39647b['value'])['then'](_0x248884,_0x32d48e);}_0x31bb9c((_0x48f290=_0x48f290['apply'](_0x4786fa,_0x20f834||[]))['next']());});};class SearchResultService{constructor(_0xe0cc3f){this['fetch']=_0xe0cc3f,this['path']='search-result',this['isRealNumber']=_0x9d749f=>_0x9d749f!=undefined&&typeof _0x9d749f==='number'&&Number['isFinite'](_0x9d749f);}['create'](_0x19ac26,_0x550efc,_0x121d42,_0x522d22,_0x563064){return __awaiter$5(this,void 0,void 0,function*(){const _0x3faf6e=Object['assign']({'account_name':_0x19ac26,'search_result_name':_0x121d42,'list_name':_0x550efc},_0x563064);try{const _0x516a60=yield this['fetch']['post'](this['path'],_0x522d22,_0x3faf6e);if(_0x516a60['status']>0xc7&&_0x516a60['status']<0x12c){const _0x449760=yield _0x516a60['json']();return new SuccessfulSearchResultResponse(_0x449760);}const _0x3e0592=yield _0x516a60['json']();return new FailedSearchResultResponse(_0x3e0592);}catch(_0x178b78){if(_0x178b78 instanceof Error)return new FailedSearchResultResponse({'detail':_0x178b78['message'],'title':_0x178b78['name'],'status':0x1f4,'instance':'','type':''});throw _0x178b78;}});}['list'](_0xb809fd,_0x2e1298,_0x31fb6f,_0x4ca8b7){return __awaiter$5(this,void 0,void 0,function*(){let _0x41f9da=this['path']+'/'+_0xb809fd+'/'+_0x2e1298+'?'+this['getQueryStr'](_0x4ca8b7);try{const _0x4bb131=yield this['fetch']['get'](_0x41f9da,_0x31fb6f);if(_0x4bb131['status']>0xc7&&_0x4bb131['status']<0x12c){const _0xc1f928=yield _0x4bb131['json']();return new SuccessfulListSearchResultResponse(_0xc1f928);}const _0x2cd6e0=yield _0x4bb131['json']();return new FailedViewSearchResultResponse(_0x2cd6e0);}catch(_0x36fbf9){if(_0x36fbf9 instanceof Error)return new FailedViewSearchResultResponse({'detail':_0x36fbf9['message'],'title':_0x36fbf9['name'],'status':0x1f4,'instance':'','type':''});throw _0x36fbf9;}});}['get'](_0x575d8d,_0x1ed328,_0x4bd2d5,_0x27482a){return __awaiter$5(this,void 0,void 0,function*(){let _0x5572d4=this['path']+'/'+_0x575d8d+'/'+_0x1ed328+'?'+_0x4bd2d5;try{const _0x1f5255=yield this['fetch']['get'](_0x5572d4,_0x27482a);if(_0x1f5255['status']>0xc7&&_0x1f5255['status']<0x12c){const _0x4289da=yield _0x1f5255['json']();return new SuccessfulSearchResultResponse(_0x4289da);}const _0x61476b=yield _0x1f5255['json']();return new FailedSearchResultResponse(_0x61476b);}catch(_0x3601cb){if(_0x3601cb instanceof Error)return new FailedSearchResultResponse({'detail':_0x3601cb['message'],'title':_0x3601cb['name'],'status':0x1f4,'instance':'','type':''});throw _0x3601cb;}});}['delete'](_0x338c84,_0x3dc2f1,_0x5f182e,_0x3b475c){return __awaiter$5(this,void 0,void 0,function*(){const _0x1efeb8=this['path']+'/'+_0x338c84+'/'+_0x3dc2f1+'/'+_0x5f182e,_0x4ca646=yield this['fetch']['delete'](_0x1efeb8,_0x3b475c);try{if(_0x4ca646['status']>0xc7&&_0x4ca646['status']<0x12c)return new SuccessfulResponse({});const _0x21fd0b=yield _0x4ca646['json']();return new FailedResponse(_0x21fd0b);}catch(_0x2b453d){if(_0x2b453d instanceof Error)return new FailedResponse({'detail':_0x2b453d['message'],'title':_0x2b453d['name'],'status':0x1f4,'instance':'','type':''});throw _0x2b453d;}});}['upload'](_0x440f70,_0x5b2c53,_0x50fe7f,_0x2c42d5){return __awaiter$5(this,void 0,void 0,function*(){const _0x53bdc7=this['path']+'/'+_0x440f70+'/'+_0x5b2c53+'/upload',_0x51e23e=new FormData();_0x51e23e['append']('file',_0x50fe7f);try{const _0x1d5480=yield this['fetch']['upload'](_0x53bdc7,_0x2c42d5,_0x51e23e);if(_0x1d5480['status']>0xc7&&_0x1d5480['status']<0x12c)return new SuccessfulResponse({});const _0x301e37=yield _0x1d5480['json']();return new FailedResponse(_0x301e37);}catch(_0x520f73){if(_0x520f73 instanceof Error)return new FailedResponse({'detail':_0x520f73['message'],'title':_0x520f73['name'],'status':0x1f4,'instance':'','type':''});throw _0x520f73;}});}['edit'](_0x170549,_0x30b27,_0x143e40,_0x42dd3f,_0x33e620){return __awaiter$5(this,void 0,void 0,function*(){const _0x139979=this['path']+'/'+_0x170549+'/'+_0x30b27+'/'+_0x143e40;try{const _0x78bcb=yield this['fetch']['put'](_0x139979,_0x42dd3f,_0x33e620);if(_0x78bcb['status']>0xc7&&_0x78bcb['status']<0x12c){const _0x4ff1d7=yield _0x78bcb['json']();return new SuccessfulSearchResultResponse(_0x4ff1d7);}const _0x1ee919=yield _0x78bcb['json']();return new FailedSearchResultResponse(_0x1ee919);}catch(_0x3611aa){if(_0x3611aa instanceof Error)return new FailedSearchResultResponse({'detail':_0x3611aa['message'],'title':_0x3611aa['name'],'status':0x1f4,'instance':'','type':''});throw _0x3611aa;}});}['getQueryStr'](_0x501fd5){let _0x503dd0='';const _0x1f1b97=[];(_0x501fd5===null||_0x501fd5===void 0?void 0:_0x501fd5['size'])&&_0x1f1b97['push']('size='+_0x501fd5['size']);(_0x501fd5===null||_0x501fd5===void 0?void 0:_0x501fd5['skip'])&&_0x1f1b97['push']('skip='+_0x501fd5['skip']);(_0x501fd5===null||_0x501fd5===void 0?void 0:_0x501fd5['query'])&&_0x1f1b97['push']('query='+_0x501fd5['query']);(_0x501fd5===null||_0x501fd5===void 0?void 0:_0x501fd5['filter'])&&_0x1f1b97['push']('filter='+_0x501fd5['filter']);if((_0x501fd5===null||_0x501fd5===void 0?void 0:_0x501fd5['radius'])&&this['isRealNumber'](_0x501fd5['radius']['latitude'])&&this['isRealNumber'](_0x501fd5['radius']['longitude'])&&this['isRealNumber'](_0x501fd5['radius']['distance_in_km'])){const _0x4276bc=_0x501fd5['radius']['latitude']+','+_0x501fd5['radius']['longitude']+','+_0x501fd5['radius']['distance_in_km'];_0x1f1b97['push']('radius='+_0x4276bc);}return _0x501fd5['active']===![]&&_0x1f1b97['push']('active='+_0x501fd5['active']),_0x1f1b97['length']>0x0&&_0x1f1b97['forEach']((_0x3a44c6,_0x1ce5ff)=>{if(_0x1ce5ff>0x0&&_0x503dd0)_0x503dd0+='&';_0x503dd0+=_0x3a44c6;}),_0x503dd0;}}
16
+
17
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2b375d,_0x242774,_0xac7dc8,_0x2e8ca4){function _0x1b0c6(_0x346af1){return _0x346af1 instanceof _0xac7dc8?_0x346af1:new _0xac7dc8(function(_0x26ca5f){_0x26ca5f(_0x346af1);});}return new(_0xac7dc8||(_0xac7dc8=Promise))(function(_0x332ae0,_0x119be0){function _0x9263f3(_0xbd2ec3){try{_0x561dd5(_0x2e8ca4['next'](_0xbd2ec3));}catch(_0x3daaac){_0x119be0(_0x3daaac);}}function _0xff9f5a(_0x57c965){try{_0x561dd5(_0x2e8ca4['throw'](_0x57c965));}catch(_0x47c883){_0x119be0(_0x47c883);}}function _0x561dd5(_0x5b42f7){_0x5b42f7['done']?_0x332ae0(_0x5b42f7['value']):_0x1b0c6(_0x5b42f7['value'])['then'](_0x9263f3,_0xff9f5a);}_0x561dd5((_0x2e8ca4=_0x2e8ca4['apply'](_0x2b375d,_0x242774||[]))['next']());});};class ContributorService{constructor(_0x3e1bd3){this['fetch']=_0x3e1bd3,this['path']='contributor';}['create'](_0x149e88,_0x131713,_0x276703,_0x4322b9){return __awaiter$4(this,void 0,void 0,function*(){const _0x22c932={'account_name':_0x149e88,'list_name':_0x131713,'contributor_name':_0x276703};try{const _0x1358d9=yield this['fetch']['post'](this['path'],_0x4322b9,_0x22c932);if(_0x1358d9['status']>0xc7&&_0x1358d9['status']<0x12c){const _0x4d32a0=yield _0x1358d9['json']();return new SuccessfulContributorResponse(_0x4d32a0);}const _0x1c79cf=yield _0x1358d9['json']();return new FailedContributorResponse(_0x1c79cf);}catch(_0x3fc0f1){if(_0x3fc0f1 instanceof Error)return new FailedContributorResponse({'detail':_0x3fc0f1['message'],'title':_0x3fc0f1['name'],'status':0x1f4,'instance':'','type':''});throw _0x3fc0f1;}});}['remove'](_0x1c8c00,_0x4c8bb2,_0x2daa43,_0x2c81e0){return __awaiter$4(this,void 0,void 0,function*(){const _0x37af33=this['path']+'/'+_0x1c8c00+'/'+_0x4c8bb2+'/'+_0x2daa43,_0x2ee204=yield this['fetch']['delete'](_0x37af33,_0x2c81e0);try{if(_0x2ee204['status']>0xc7&&_0x2ee204['status']<0x12c)return new SuccessfulResponse({});const _0x43ce10=yield _0x2ee204['json']();return new FailedResponse(_0x43ce10);}catch(_0x3e04e8){if(_0x3e04e8 instanceof Error)return new FailedResponse({'detail':_0x3e04e8['message'],'title':_0x3e04e8['name'],'status':0x1f4,'instance':'','type':''});throw _0x3e04e8;}});}['startsWith'](_0x595178,_0x35881f){return __awaiter$4(this,void 0,void 0,function*(){const _0x2ac539=this['path']+'/'+_0x595178;try{const _0x1defea=yield this['fetch']['get'](_0x2ac539,_0x35881f);if(_0x1defea['status']>0xc7&&_0x1defea['status']<0x12c){const _0x44f040=yield _0x1defea['json']();return new SuccessfulAccountAndImageResponse(_0x44f040);}const _0x2fae04=yield _0x1defea['json']();return new FailedAccountAndImageResponse(_0x2fae04);}catch(_0x52781d){if(_0x52781d instanceof Error)return new FailedAccountAndImageResponse({'detail':_0x52781d['message'],'title':_0x52781d['name'],'status':0x1f4,'instance':'','type':''});throw _0x52781d;}});}}
18
+
19
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x3b3c25,_0x46da03,_0x5318a9,_0x546c51){function _0x7c95ae(_0x2432fa){return _0x2432fa instanceof _0x5318a9?_0x2432fa:new _0x5318a9(function(_0x17e7b8){_0x17e7b8(_0x2432fa);});}return new(_0x5318a9||(_0x5318a9=Promise))(function(_0x1e46de,_0x50ca5b){function _0x488224(_0xd56e33){try{_0x1cf3d8(_0x546c51['next'](_0xd56e33));}catch(_0x2d7e7e){_0x50ca5b(_0x2d7e7e);}}function _0x511f82(_0x20d2de){try{_0x1cf3d8(_0x546c51['throw'](_0x20d2de));}catch(_0x15db0c){_0x50ca5b(_0x15db0c);}}function _0x1cf3d8(_0x8cced0){_0x8cced0['done']?_0x1e46de(_0x8cced0['value']):_0x7c95ae(_0x8cced0['value'])['then'](_0x488224,_0x511f82);}_0x1cf3d8((_0x546c51=_0x546c51['apply'](_0x3b3c25,_0x46da03||[]))['next']());});};class SearchableFieldService{constructor(_0x5eb3e1){this['fetch']=_0x5eb3e1,this['path']='searchable-field';}['create'](_0x27725f,_0x5ddd0b,_0x240f66,_0x923ec1){return __awaiter$3(this,void 0,void 0,function*(){const _0x5624a1={'account_name':_0x27725f,'list_name':_0x5ddd0b,'searchable_field_name':_0x240f66};try{const _0x274b61=yield this['fetch']['post'](this['path'],_0x923ec1,_0x5624a1);if(_0x274b61['status']>0xc7&&_0x274b61['status']<0x12c){const _0x14f63c=yield _0x274b61['json']();return new SuccessfulSearchableFieldResponse(_0x14f63c);}const _0x553f4c=yield _0x274b61['json']();return new FailedSearchableFieldResponse(_0x553f4c);}catch(_0x34e0b9){if(_0x34e0b9 instanceof Error)return new FailedSearchableFieldResponse({'detail':_0x34e0b9['message'],'title':_0x34e0b9['name'],'status':0x1f4,'instance':'','type':''});throw _0x34e0b9;}});}['remove'](_0x510b9e,_0x2f83a9,_0x3d57aa,_0x11c2e0){return __awaiter$3(this,void 0,void 0,function*(){const _0x2d1ca2=this['path']+'/'+_0x510b9e+'/'+_0x2f83a9+'/'+_0x3d57aa,_0x3be50b=yield this['fetch']['delete'](_0x2d1ca2,_0x11c2e0);try{if(_0x3be50b['status']>0xc7&&_0x3be50b['status']<0x12c)return new SuccessfulResponse({});const _0xc45be9=yield _0x3be50b['json']();return new FailedResponse(_0xc45be9);}catch(_0x2e2bfb){if(_0x2e2bfb instanceof Error)return new FailedResponse({'detail':_0x2e2bfb['message'],'title':_0x2e2bfb['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e2bfb;}});}['rename'](_0x134e47,_0x4b2cd6,_0x47f488,_0xf6d556,_0x4d972d){return __awaiter$3(this,void 0,void 0,function*(){let _0x3818b5=this['path']+'/'+_0x134e47+'/'+_0x4b2cd6;const _0x5f10e9={'searchable_field_name':_0x47f488,'new_searchable_field_name':_0xf6d556};try{const _0x4ea63d=yield this['fetch']['put'](_0x3818b5,_0x4d972d,_0x5f10e9);if(_0x4ea63d['status']>0xc7&&_0x4ea63d['status']<0x12c){const _0x2cc1cd=yield _0x4ea63d['json']();return new SuccessfulSearchableFieldResponse(_0x2cc1cd);}const _0x1aa018=yield _0x4ea63d['json']();return new FailedSearchableFieldResponse(_0x1aa018);}catch(_0x4bbdce){if(_0x4bbdce instanceof Error)return new FailedSearchableFieldResponse({'detail':_0x4bbdce['message'],'title':_0x4bbdce['name'],'status':0x1f4,'instance':'','type':''});throw _0x4bbdce;}});}}
20
+
21
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5426a6,_0x340730,_0x30677d,_0x3fadd2){function _0x7e0a00(_0x4603bb){return _0x4603bb instanceof _0x30677d?_0x4603bb:new _0x30677d(function(_0x3282cd){_0x3282cd(_0x4603bb);});}return new(_0x30677d||(_0x30677d=Promise))(function(_0x171079,_0x5d8f35){function _0x4b0412(_0xd23c6e){try{_0x57f747(_0x3fadd2['next'](_0xd23c6e));}catch(_0x51c884){_0x5d8f35(_0x51c884);}}function _0x2fda36(_0x445ede){try{_0x57f747(_0x3fadd2['throw'](_0x445ede));}catch(_0x595aa6){_0x5d8f35(_0x595aa6);}}function _0x57f747(_0x17a295){_0x17a295['done']?_0x171079(_0x17a295['value']):_0x7e0a00(_0x17a295['value'])['then'](_0x4b0412,_0x2fda36);}_0x57f747((_0x3fadd2=_0x3fadd2['apply'](_0x5426a6,_0x340730||[]))['next']());});};class ResourceService{constructor(_0x2621ec){this['fetch']=_0x2621ec,this['path']='resource';}['create'](_0x51356e,_0x173fef,_0x2e42b3,_0x1f4b10){return __awaiter$2(this,void 0,void 0,function*(){const _0x57b427={'account_name':_0x51356e,'list_name':_0x173fef,'resource_name':_0x2e42b3};try{const _0x49abf7=yield this['fetch']['post'](this['path'],_0x1f4b10,_0x57b427);if(_0x49abf7['status']>0xc7&&_0x49abf7['status']<0x12c){const _0x4bcfba=yield _0x49abf7['json']();return new SuccessfulResourceResponse(_0x4bcfba);}const _0x4bac10=yield _0x49abf7['json']();return new FailedResourceResponse(_0x4bac10);}catch(_0x7ce3ad){if(_0x7ce3ad instanceof Error)return new FailedResourceResponse({'detail':_0x7ce3ad['message'],'title':_0x7ce3ad['name'],'status':0x1f4,'instance':'','type':''});throw _0x7ce3ad;}});}['remove'](_0x1bfd92,_0x24f80e,_0xd318d1,_0x39b75b){return __awaiter$2(this,void 0,void 0,function*(){const _0x377cfa=this['path']+'/'+_0x1bfd92+'/'+_0x24f80e+'/'+_0xd318d1,_0x32aa68=yield this['fetch']['delete'](_0x377cfa,_0x39b75b);try{if(_0x32aa68['status']>0xc7&&_0x32aa68['status']<0x12c)return new SuccessfulResponse({});const _0x3d59bc=yield _0x32aa68['json']();return new FailedResponse(_0x3d59bc);}catch(_0x5600db){if(_0x5600db instanceof Error)return new FailedResponse({'detail':_0x5600db['message'],'title':_0x5600db['name'],'status':0x1f4,'instance':'','type':''});throw _0x5600db;}});}['rename'](_0x17c84f,_0x823a90,_0x1371af,_0x17c1a8,_0x34c270){return __awaiter$2(this,void 0,void 0,function*(){let _0x30bf5c=this['path']+'/'+_0x17c84f+'/'+_0x823a90;const _0xb17a25={'resource_name':_0x1371af,'new_resource_name':_0x17c1a8};try{const _0x3d29bf=yield this['fetch']['put'](_0x30bf5c,_0x34c270,_0xb17a25);if(_0x3d29bf['status']>0xc7&&_0x3d29bf['status']<0x12c){const _0x31f076=yield _0x3d29bf['json']();return new SuccessfulResourceResponse(_0x31f076);}const _0x3640e6=yield _0x3d29bf['json']();return new FailedResourceResponse(_0x3640e6);}catch(_0x4dcbe8){if(_0x4dcbe8 instanceof Error)return new FailedResourceResponse({'detail':_0x4dcbe8['message'],'title':_0x4dcbe8['name'],'status':0x1f4,'instance':'','type':''});throw _0x4dcbe8;}});}}
22
+
23
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x2c5fbb,_0x4f1080,_0x3a4636,_0x270015){function _0x3645f1(_0x4cd147){return _0x4cd147 instanceof _0x3a4636?_0x4cd147:new _0x3a4636(function(_0x58f442){_0x58f442(_0x4cd147);});}return new(_0x3a4636||(_0x3a4636=Promise))(function(_0x397c5b,_0x5b61f6){function _0x975656(_0x4d86eb){try{_0x3ca2f7(_0x270015['next'](_0x4d86eb));}catch(_0xaa7b1d){_0x5b61f6(_0xaa7b1d);}}function _0x592287(_0x32c909){try{_0x3ca2f7(_0x270015['throw'](_0x32c909));}catch(_0x3a766a){_0x5b61f6(_0x3a766a);}}function _0x3ca2f7(_0x40ecbf){_0x40ecbf['done']?_0x397c5b(_0x40ecbf['value']):_0x3645f1(_0x40ecbf['value'])['then'](_0x975656,_0x592287);}_0x3ca2f7((_0x270015=_0x270015['apply'](_0x2c5fbb,_0x4f1080||[]))['next']());});};class GroupService{constructor(_0x2c2d89){this['fetch']=_0x2c2d89,this['path']='group',this['List']=new GroupListService(_0x2c2d89);}['create'](_0x2ae7d1,_0x2df04c,_0x5cf126,_0xed0eea){return __awaiter$1(this,void 0,void 0,function*(){const _0x1e67d7={'account_name':_0x2ae7d1,'search_service_name':_0x2df04c,'group_name':_0x5cf126};try{const _0x26ea3d=yield this['fetch']['post'](this['path'],_0xed0eea,_0x1e67d7);if(_0x26ea3d['status']>0xc7&&_0x26ea3d['status']<0x12c){const _0x418d28=yield _0x26ea3d['json']();return new SuccessfulGroupResponse(_0x418d28);}const _0x57bdb6=yield _0x26ea3d['json']();return new FailedGroupResponse(_0x57bdb6);}catch(_0x3a688d){if(_0x3a688d instanceof Error)return new FailedGroupResponse({'detail':_0x3a688d['message'],'title':_0x3a688d['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a688d;}});}['delete'](_0x129807,_0x4693f9,_0x1b5355){return __awaiter$1(this,void 0,void 0,function*(){const _0x440d22=this['path']+'/'+_0x129807+'/'+_0x4693f9,_0x1204c8=yield this['fetch']['delete'](_0x440d22,_0x1b5355);try{if(_0x1204c8['status']>0xc7&&_0x1204c8['status']<0x12c)return new SuccessfulResponse({});const _0x457a27=yield _0x1204c8['json']();return new FailedResponse(_0x457a27);}catch(_0x1296d1){if(_0x1296d1 instanceof Error)return new FailedResponse({'detail':_0x1296d1['message'],'title':_0x1296d1['name'],'status':0x1f4,'instance':'','type':''});throw _0x1296d1;}});}}class GroupListService{constructor(_0x471495){this['fetch']=_0x471495,this['path']='group/list';}['add'](_0x3b3b13,_0xa09a31,_0x13a49c,_0x24dae5,_0x1ac7c0){return __awaiter$1(this,void 0,void 0,function*(){const _0x4a97a1={'list_name':_0x13a49c,'version':_0x24dae5};try{const _0x1b7df4=yield this['fetch']['put'](this['path']+'/'+_0x3b3b13+'/'+_0xa09a31,_0x1ac7c0,_0x4a97a1);if(_0x1b7df4['status']>0xc7&&_0x1b7df4['status']<0x12c){const _0x5b9862=yield _0x1b7df4['json']();return new SuccessfulListIdentityResponse(_0x5b9862);}const _0x207fe5=yield _0x1b7df4['json']();return new FailedListIdentityResponse(_0x207fe5);}catch(_0x17b5d4){if(_0x17b5d4 instanceof Error)return new FailedListIdentityResponse({'detail':_0x17b5d4['message'],'title':_0x17b5d4['name'],'status':0x1f4,'instance':'','type':''});throw _0x17b5d4;}});}}
24
+
25
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x345065,_0x1a62a4,_0x32c65c,_0x384455){function _0x60c516(_0x107183){return _0x107183 instanceof _0x32c65c?_0x107183:new _0x32c65c(function(_0x47a342){_0x47a342(_0x107183);});}return new(_0x32c65c||(_0x32c65c=Promise))(function(_0x425c5b,_0xd1aa5d){function _0x1d1a3e(_0x379453){try{_0xa70a98(_0x384455['next'](_0x379453));}catch(_0x45a68e){_0xd1aa5d(_0x45a68e);}}function _0x40e2b5(_0x59cb5d){try{_0xa70a98(_0x384455['throw'](_0x59cb5d));}catch(_0x2042d1){_0xd1aa5d(_0x2042d1);}}function _0xa70a98(_0x1e4182){_0x1e4182['done']?_0x425c5b(_0x1e4182['value']):_0x60c516(_0x1e4182['value'])['then'](_0x1d1a3e,_0x40e2b5);}_0xa70a98((_0x384455=_0x384455['apply'](_0x345065,_0x1a62a4||[]))['next']());});};class AdminClient{constructor(_0x2637fd='https://admin.searchability.dev/'){var _0x462c8a=new Fetch(_0x2637fd);this['Accounts']=new AccountService(_0x462c8a),this['Lists']=new ListService(_0x462c8a),this['ApiKeys']=new ApiKeyService(_0x462c8a),this['SearchServers']=new SearchServersService(_0x462c8a),this['Facets']=new FacetService(_0x462c8a),this['SearchResults']=new SearchResultService(_0x462c8a),this['Contributors']=new ContributorService(_0x462c8a),this['SearchableFields']=new SearchableFieldService(_0x462c8a),this['Groups']=new GroupService(_0x462c8a),this['Resources']=new ResourceService(_0x462c8a);}}class AuthClient{constructor(_0x129763='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x129763);}['login'](_0x443c85){return __awaiter(this,void 0,void 0,function*(){const _0x4ca9dd='login/'+_0x443c85;try{const _0x369174=yield yield fetch(_0x4ca9dd);if(_0x369174['status']>0xc7&&_0x369174['status']<0x12c){const _0x436815=yield _0x369174['json']();return new SuccessfulAuthResponse(_0x436815);}const _0x34e452=yield _0x369174['json']();return new FailedAuthResponse(_0x34e452);}catch(_0x44f819){if(_0x44f819 instanceof Error)return new FailedAuthResponse({'detail':_0x44f819['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x44f819;}});}['refresh'](_0x2a985c){return __awaiter(this,void 0,void 0,function*(){const _0x4bfdf4='refresh',_0x403549={'refresh_token':_0x2a985c};try{const _0x3f290f=yield this['fetch']['PostNoAuth'](_0x4bfdf4,_0x403549);if(_0x3f290f['status']>0xc7&&_0x3f290f['status']<0x12c){const _0x6ba46a=yield _0x3f290f['json']();return new SuccessfulAuthResponse(_0x6ba46a);}const _0xc68900=yield _0x3f290f['json']();return new FailedAuthResponse(_0xc68900);}catch(_0x885cda){if(_0x885cda instanceof Error)return new FailedAuthResponse({'detail':_0x885cda['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x885cda;}});}['getTokenStatus'](_0x365dec){if(Date['now']()<_0x365dec['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x365dec['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
26
+
27
+ export { AdminClient, AuthClient, TokenStatus, Tokens };