@searchability/admin-client 0.0.57 → 0.0.59

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,19 @@
1
+ var TokenStatus;(function(_0x351508){_0x351508[_0x351508['Ok']=0x0]='Ok',_0x351508[_0x351508['Refresh']=0x1]='Refresh',_0x351508[_0x351508['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(_0x4b7840){this['isSuccess']=_0x4b7840;}}class SuccessfulFacetResponse extends Response{constructor(_0x463865){super(!![]),this['facet']=_0x463865;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x5ec44c){super(![]),this['problem']=_0x5ec44c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x1288c1){super(!![]),this['account']=_0x1288c1;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0xe5a578){super(!![]),this['list']=_0xe5a578;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0xb69bf7){super(!![]),this['list']=_0xb69bf7;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x31940e){super(![]),this['problem']=_0x31940e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x1b1aa4){super(![]),this['problem']=_0x1b1aa4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x5a30d1){super(![]),this['problem']=_0x5a30d1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x31cc5c){super(!![]),this['tokens']=_0x31cc5c;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x5b8803){super(![]),this['problem']=_0x5b8803;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0xc34067){super(!![]),this['apiKey']=_0xc34067;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5470e6){super(![]),this['problem']=_0x5470e6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x3e27a7){super(!![]),this['searchService']=_0x3e27a7;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x2fc1b7){super(![]),this['problem']=_0x2fc1b7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0xbbe5dc){super(!![]),this['searchService']=_0xbbe5dc;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x584d07){super(!![]),this['searchResult']=_0x584d07;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x22eab8){super(![]),this['problem']=_0x22eab8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x1f14b0){super(!![]),this['searchServices']=_0x1f14b0;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x4859ca){super(![]),this['problem']=_0x4859ca;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x4b7c99){super(![]),this['problem']=_0x4b7c99;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x12e415){super(!![]),this['apiKeyValue']=_0x12e415;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x3a0179){super(!![]),this['obj']=_0x3a0179;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x689569){super(![]),this['problem']=_0x689569;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x48cbb8){super(![]),this['problem']=_0x48cbb8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x43e3cb,_0x47dcb5,_0x20332b,_0x3209b5){function _0x276435(_0x81b078){return _0x81b078 instanceof _0x20332b?_0x81b078:new _0x20332b(function(_0x371a7a){_0x371a7a(_0x81b078);});}return new(_0x20332b||(_0x20332b=Promise))(function(_0x17352b,_0x3d1634){function _0x5d2474(_0x5f071f){try{_0x38b046(_0x3209b5['next'](_0x5f071f));}catch(_0x243842){_0x3d1634(_0x243842);}}function _0x1c7d16(_0x4e3758){try{_0x38b046(_0x3209b5['throw'](_0x4e3758));}catch(_0x1e7664){_0x3d1634(_0x1e7664);}}function _0x38b046(_0x4c0764){_0x4c0764['done']?_0x17352b(_0x4c0764['value']):_0x276435(_0x4c0764['value'])['then'](_0x5d2474,_0x1c7d16);}_0x38b046((_0x3209b5=_0x3209b5['apply'](_0x43e3cb,_0x47dcb5||[]))['next']());});};class AccountService{constructor(_0x46a5e6){this['fetch']=_0x46a5e6;}['get'](_0x12cd81,_0x2a11f0){return __awaiter$7(this,void 0,void 0,function*(){const _0x9dfff1='Account/'+_0x12cd81+'/',_0x385971=yield this['fetch']['get'](_0x9dfff1,_0x2a11f0);try{if(_0x385971['status']>0xc7&&_0x385971['status']<0x12c){const _0x3fedf2=yield _0x385971['json']();return new SuccessfulAccountResponse(_0x3fedf2);}const _0x443d81=yield _0x385971['json']();return new FailedAccountResponse(_0x443d81);}catch(_0x4f4f05){if(_0x4f4f05 instanceof Error)return new FailedAccountResponse({'detail':_0x4f4f05['message'],'title':_0x4f4f05['name'],'status':0x1f4,'instance':'','type':''});throw _0x4f4f05;}});}}
4
+
5
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x865af8,_0x38ab16,_0x1b12fc,_0x47d6eb){function _0x4e6be0(_0x1d9575){return _0x1d9575 instanceof _0x1b12fc?_0x1d9575:new _0x1b12fc(function(_0x42da1d){_0x42da1d(_0x1d9575);});}return new(_0x1b12fc||(_0x1b12fc=Promise))(function(_0x474c15,_0x29d86c){function _0x28b6b2(_0x3d3d99){try{_0x9903af(_0x47d6eb['next'](_0x3d3d99));}catch(_0x3b70e4){_0x29d86c(_0x3b70e4);}}function _0x4ba4c4(_0x1d16ad){try{_0x9903af(_0x47d6eb['throw'](_0x1d16ad));}catch(_0x34bcfb){_0x29d86c(_0x34bcfb);}}function _0x9903af(_0x257fb8){_0x257fb8['done']?_0x474c15(_0x257fb8['value']):_0x4e6be0(_0x257fb8['value'])['then'](_0x28b6b2,_0x4ba4c4);}_0x9903af((_0x47d6eb=_0x47d6eb['apply'](_0x865af8,_0x38ab16||[]))['next']());});};class ApiKeyService{constructor(_0x5b52b2){this['fetch']=_0x5b52b2,this['path']='api-key';}['create'](_0x269718,_0x5d6ce9,_0x154f1e){return __awaiter$6(this,void 0,void 0,function*(){const _0x232654={'account_name':_0x269718,'api_key_name':_0x5d6ce9};try{const _0xdd2f94=yield this['fetch']['post'](this['path'],_0x154f1e,_0x232654);if(_0xdd2f94['status']>0xc7&&_0xdd2f94['status']<0x12c){const _0x266111=yield _0xdd2f94['json']();return new SuccessfulApiKeyResponse(_0x266111);}const _0x50d4b2=yield _0xdd2f94['json']();return new FailedApiKeyResponse(_0x50d4b2);}catch(_0x53504e){if(_0x53504e instanceof Error)return new FailedApiKeyResponse({'detail':_0x53504e['message'],'title':_0x53504e['name'],'status':0x1f4,'instance':'','type':''});throw _0x53504e;}});}['view'](_0x1835fe,_0x293713,_0x42a863){return __awaiter$6(this,void 0,void 0,function*(){const _0x419a2b=this['path']+'/'+_0x1835fe+'/'+_0x293713;try{const _0x18428c=yield this['fetch']['get'](_0x419a2b,_0x42a863);if(_0x18428c['status']>0xc7&&_0x18428c['status']<0x12c){const _0x50b176=yield _0x18428c['json']();return new SuccessfulApiKeyValueResponse(_0x50b176);}const _0x153de2=yield _0x18428c['json']();return new FailedApiKeyValueResponse(_0x153de2);}catch(_0x5ecf56){if(_0x5ecf56 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x5ecf56['message'],'title':_0x5ecf56['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ecf56;}});}['delete'](_0x2a92e2,_0x1c9401,_0x20207e){return __awaiter$6(this,void 0,void 0,function*(){const _0x335461=this['path']+'/'+_0x2a92e2+'/'+_0x1c9401;try{const _0xf31df7=yield this['fetch']['delete'](_0x335461,_0x20207e);if(_0xf31df7['status']>0xc7&&_0xf31df7['status']<0x12c)return new SuccessfulResponse({});const _0x3214f4=yield _0xf31df7['json']();return new FailedResponse(_0x3214f4);}catch(_0x17b35a){if(_0x17b35a instanceof Error)return new FailedResponse({'detail':_0x17b35a['message'],'title':_0x17b35a['name'],'status':0x1f4,'instance':'','type':''});throw _0x17b35a;}});}}
6
+
7
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x49c8d3,_0x16b9d7,_0x44a500,_0x3ea081){function _0x2b6ada(_0x26ec06){return _0x26ec06 instanceof _0x44a500?_0x26ec06:new _0x44a500(function(_0xaf96d5){_0xaf96d5(_0x26ec06);});}return new(_0x44a500||(_0x44a500=Promise))(function(_0x5cddac,_0x1a09b1){function _0x241704(_0x14f240){try{_0x3e4701(_0x3ea081['next'](_0x14f240));}catch(_0x47b2a4){_0x1a09b1(_0x47b2a4);}}function _0x31bb49(_0x2c809d){try{_0x3e4701(_0x3ea081['throw'](_0x2c809d));}catch(_0x467577){_0x1a09b1(_0x467577);}}function _0x3e4701(_0x3555f4){_0x3555f4['done']?_0x5cddac(_0x3555f4['value']):_0x2b6ada(_0x3555f4['value'])['then'](_0x241704,_0x31bb49);}_0x3e4701((_0x3ea081=_0x3ea081['apply'](_0x49c8d3,_0x16b9d7||[]))['next']());});};class ListService{constructor(_0x482cee){this['fetch']=_0x482cee;}['create'](_0x4377d2,_0x4bd518,_0x5504c9,_0x3cfbb8){return __awaiter$5(this,void 0,void 0,function*(){const _0x568717='List',_0x47ed72={'account_name':_0x4377d2,'list_name':_0x4bd518,'search_service_name':_0x5504c9};try{const _0x1c0311=yield this['fetch']['post'](_0x568717,_0x3cfbb8,_0x47ed72);if(_0x1c0311['status']>0xc7&&_0x1c0311['status']<0x12c){const _0x42d193=yield _0x1c0311['json']();return new SuccessfulListIdentityResponse(_0x42d193);}const _0x3a4945=yield _0x1c0311['json']();return new FailedListIdentityResponse(_0x3a4945);}catch(_0x3f164d){if(_0x3f164d instanceof Error)return new FailedListIdentityResponse({'detail':_0x3f164d['message'],'title':_0x3f164d['name'],'status':0x1f4,'instance':'','type':''});throw _0x3f164d;}});}['delete'](_0x22f541,_0x32af6f,_0x16d506){return __awaiter$5(this,void 0,void 0,function*(){const _0x69a655='List/'+_0x22f541+'/'+_0x32af6f,_0x511709=yield this['fetch']['delete'](_0x69a655,_0x16d506);try{if(_0x511709['status']>0xc7&&_0x511709['status']<0x12c)return new SuccessfulResponse({});const _0x59df03=yield _0x511709['json']();return new FailedResponse(_0x59df03);}catch(_0x4ab3ff){if(_0x4ab3ff instanceof Error)return new FailedResponse({'detail':_0x4ab3ff['message'],'title':_0x4ab3ff['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ab3ff;}});}['get'](_0x3f45fb,_0x24040a,_0x15914a){return __awaiter$5(this,void 0,void 0,function*(){const _0x5439cc='List/'+_0x3f45fb+'/'+_0x24040a;try{const _0x7b4e42=yield this['fetch']['get'](_0x5439cc,_0x15914a);if(_0x7b4e42['status']>0xc7&&_0x7b4e42['status']<0x12c){const _0x351162=yield _0x7b4e42['json']();return new SuccessfulListResponse(_0x351162);}const _0x4e8c1d=yield _0x7b4e42['json']();return new FailedListResponse(_0x4e8c1d);}catch(_0x59ca81){if(_0x59ca81 instanceof Error)return new FailedListResponse({'detail':_0x59ca81['message'],'title':_0x59ca81['name'],'status':0x1f4,'instance':'','type':''});throw _0x59ca81;}});}}
8
+
9
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x37179a,_0x332a71,_0x5238a1,_0x324b03){function _0x417695(_0x1e9f4c){return _0x1e9f4c instanceof _0x5238a1?_0x1e9f4c:new _0x5238a1(function(_0x4f2b28){_0x4f2b28(_0x1e9f4c);});}return new(_0x5238a1||(_0x5238a1=Promise))(function(_0x4ce5c6,_0x5a8346){function _0x3b512b(_0x42683a){try{_0xacf62b(_0x324b03['next'](_0x42683a));}catch(_0x4a801e){_0x5a8346(_0x4a801e);}}function _0xe866a1(_0x3185d8){try{_0xacf62b(_0x324b03['throw'](_0x3185d8));}catch(_0x577943){_0x5a8346(_0x577943);}}function _0xacf62b(_0x297037){_0x297037['done']?_0x4ce5c6(_0x297037['value']):_0x417695(_0x297037['value'])['then'](_0x3b512b,_0xe866a1);}_0xacf62b((_0x324b03=_0x324b03['apply'](_0x37179a,_0x332a71||[]))['next']());});};class Fetch{constructor(_0x5cd326){this['baseUri']=_0x5cd326,this['getUrl']=_0x4f34f3=>{return _0x4f34f3['startsWith']('/')&&(_0x4f34f3=_0x4f34f3['replace']('/','')),''+this['baseUri']+_0x4f34f3;},!_0x5cd326['endsWith']('/')&&(_0x5cd326=_0x5cd326+'/');}['get'](_0x1c66d0,_0x463122){return __awaiter$4(this,void 0,void 0,function*(){const _0x5d1fa9=this['getUrl'](_0x1c66d0);return yield fetch(_0x5d1fa9,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x463122}});});}['post'](_0x1466f1,_0x4843ce,_0x2ff932){return __awaiter$4(this,void 0,void 0,function*(){const _0x1c3194=this['getUrl'](_0x1466f1);return yield fetch(_0x1c3194,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4843ce},'body':_0x2ff932?JSON['stringify'](_0x2ff932):null});});}['PostNoAuth'](_0x22fb9c,_0x221720){return __awaiter$4(this,void 0,void 0,function*(){const _0x17eb7f=this['getUrl'](_0x22fb9c);return yield fetch(_0x17eb7f,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x221720?JSON['stringify'](_0x221720):null});});}['put'](_0x17920a,_0x458554,_0x409546){return __awaiter$4(this,void 0,void 0,function*(){const _0x476433=this['getUrl'](_0x17920a);return yield fetch(_0x476433,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x458554},'body':_0x409546?JSON['stringify'](_0x409546):null});});}['delete'](_0x4959b8,_0x553f22){return __awaiter$4(this,void 0,void 0,function*(){const _0x1b2683=this['getUrl'](_0x4959b8);return yield fetch(_0x1b2683,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x553f22}});});}}
10
+
11
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x2979db,_0x1ac5df,_0x1d1c5a,_0x357e4f){function _0x564bcc(_0x28ce07){return _0x28ce07 instanceof _0x1d1c5a?_0x28ce07:new _0x1d1c5a(function(_0x29864c){_0x29864c(_0x28ce07);});}return new(_0x1d1c5a||(_0x1d1c5a=Promise))(function(_0x26daa4,_0x144f7e){function _0x132333(_0x5502ad){try{_0xdc55fa(_0x357e4f['next'](_0x5502ad));}catch(_0x3c7f54){_0x144f7e(_0x3c7f54);}}function _0x21852a(_0x403646){try{_0xdc55fa(_0x357e4f['throw'](_0x403646));}catch(_0x4523aa){_0x144f7e(_0x4523aa);}}function _0xdc55fa(_0x3a18ad){_0x3a18ad['done']?_0x26daa4(_0x3a18ad['value']):_0x564bcc(_0x3a18ad['value'])['then'](_0x132333,_0x21852a);}_0xdc55fa((_0x357e4f=_0x357e4f['apply'](_0x2979db,_0x1ac5df||[]))['next']());});};class SearchServersService{constructor(_0x10a51b){this['fetch']=_0x10a51b,this['path']='search-services';}['create'](_0x269391,_0x3455f3,_0x100950,_0x14a879,_0x4bc8de,_0x1f1adc,_0x1fa59b,_0x2fdf0a){return __awaiter$3(this,void 0,void 0,function*(){const _0x41f1d1={'account_name':_0x269391,'search_service_name':_0x3455f3,'endpoint':_0x100950,'key':_0x14a879,'country':_0x4bc8de,'provider':_0x1f1adc,'index_name':_0x1fa59b};try{const _0x388eea=yield this['fetch']['post'](this['path'],_0x2fdf0a,_0x41f1d1);if(_0x388eea['status']>0xc7&&_0x388eea['status']<0x12c){const _0x2047a7=yield _0x388eea['json']();return new SuccessfulSearchServiceResponse(_0x2047a7);}const _0x2418be=yield _0x388eea['json']();return new FailedSearchServiceResponse(_0x2418be);}catch(_0x3ac9bd){if(_0x3ac9bd instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3ac9bd['message'],'title':_0x3ac9bd['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ac9bd;}});}['delete'](_0x526384,_0x3f2794,_0x26ce6c){return __awaiter$3(this,void 0,void 0,function*(){const _0x9cbef5=this['path']+'/'+_0x526384+'/'+_0x3f2794;try{const _0x533d7a=yield this['fetch']['delete'](_0x9cbef5,_0x26ce6c);if(_0x533d7a['status']>0xc7&&_0x533d7a['status']<0x12c)return new SuccessfulResponse({});const _0x8a5de6=yield _0x533d7a['json']();return new FailedResponse(_0x8a5de6);}catch(_0x120aa9){if(_0x120aa9 instanceof Error)return new FailedResponse({'detail':_0x120aa9['message'],'title':_0x120aa9['name'],'status':0x1f4,'instance':'','type':''});throw _0x120aa9;}});}['view'](_0x3a10d5,_0x121621,_0x182451){return __awaiter$3(this,void 0,void 0,function*(){const _0x324d72=this['path']+'/'+_0x3a10d5+'/'+_0x121621;try{const _0x33cad4=yield this['fetch']['get'](_0x324d72,_0x182451);if(_0x33cad4['status']>0xc7&&_0x33cad4['status']<0x12c){const _0x50064a=yield _0x33cad4['json']();return new SuccessfulViewSearchServiceResponse(_0x50064a);}const _0x3a80c3=yield _0x33cad4['json']();return new FailedViewSearchServiceResponse(_0x3a80c3);}catch(_0x56c8f0){if(_0x56c8f0 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x56c8f0['message'],'title':_0x56c8f0['name'],'status':0x1f4,'instance':'','type':''});throw _0x56c8f0;}});}['edit'](_0x46fd10,_0x12e6b9,_0x508144,_0x4860dc,_0x1a597b,_0x27bea5){return __awaiter$3(this,void 0,void 0,function*(){const _0x2583c7={'account_name':_0x46fd10,'search_service_name':_0x12e6b9,'new_search_service_name':_0x508144,'key':_0x4860dc,'country':_0x1a597b};try{const _0x5c9f1a=yield this['fetch']['put'](this['path'],_0x27bea5,_0x2583c7);if(_0x5c9f1a['status']>0xc7&&_0x5c9f1a['status']<0x12c){const _0x35f0ea=yield _0x5c9f1a['json']();return new SuccessfulSearchServiceResponse(_0x35f0ea);}const _0x5a7c05=yield _0x5c9f1a['json']();return new FailedSearchServiceResponse(_0x5a7c05);}catch(_0x49871e){if(_0x49871e instanceof Error)return new FailedSearchServiceResponse({'detail':_0x49871e['message'],'title':_0x49871e['name'],'status':0x1f4,'instance':'','type':''});throw _0x49871e;}});}['list'](_0x555200,_0x1be8fe){return __awaiter$3(this,void 0,void 0,function*(){const _0xbd84db=this['path']+'/'+_0x555200;try{const _0x252f28=yield this['fetch']['get'](_0xbd84db,_0x1be8fe);if(_0x252f28['status']>0xc7&&_0x252f28['status']<0x12c){const _0x5e0d8c=yield _0x252f28['json']();return new SuccessfulListSearchServiceResponse(_0x5e0d8c);}const _0x469b79=yield _0x252f28['json']();return new FailedViewSearchServicesResponse(_0x469b79);}catch(_0x5192ca){if(_0x5192ca instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5192ca['message'],'title':_0x5192ca['name'],'status':0x1f4,'instance':'','type':''});throw _0x5192ca;}});}}
12
+
13
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x365b0f,_0x436c6c,_0x36ff00,_0x3cdf50){function _0x411566(_0x39fc45){return _0x39fc45 instanceof _0x36ff00?_0x39fc45:new _0x36ff00(function(_0xad3ad2){_0xad3ad2(_0x39fc45);});}return new(_0x36ff00||(_0x36ff00=Promise))(function(_0x464a03,_0x8632a0){function _0x3df54b(_0x48cf5f){try{_0x1d21c2(_0x3cdf50['next'](_0x48cf5f));}catch(_0x1d63be){_0x8632a0(_0x1d63be);}}function _0x2f9bbf(_0x3bcd3a){try{_0x1d21c2(_0x3cdf50['throw'](_0x3bcd3a));}catch(_0x1bfb92){_0x8632a0(_0x1bfb92);}}function _0x1d21c2(_0x247b1b){_0x247b1b['done']?_0x464a03(_0x247b1b['value']):_0x411566(_0x247b1b['value'])['then'](_0x3df54b,_0x2f9bbf);}_0x1d21c2((_0x3cdf50=_0x3cdf50['apply'](_0x365b0f,_0x436c6c||[]))['next']());});};class FacetService{constructor(_0x53e198){this['fetch']=_0x53e198,this['path']='facet';}['create'](_0x476ffd,_0x5a89f9,_0x48a4d8,_0x40da39){return __awaiter$2(this,void 0,void 0,function*(){const _0x14da5a={'account_name':_0x476ffd,'list_name':_0x5a89f9,'facet_name':_0x48a4d8};try{const _0x53f497=yield this['fetch']['post'](this['path'],_0x40da39,_0x14da5a);if(_0x53f497['status']>0xc7&&_0x53f497['status']<0x12c){const _0x159954=yield _0x53f497['json']();return new SuccessfulFacetResponse(_0x159954);}const _0x536038=yield _0x53f497['json']();return new FailedFacetResponse(_0x536038);}catch(_0x2ca87d){if(_0x2ca87d instanceof Error)return new FailedFacetResponse({'detail':_0x2ca87d['message'],'title':_0x2ca87d['name'],'status':0x1f4,'instance':'','type':''});throw _0x2ca87d;}});}['remove'](_0x39d715,_0x4a5c6a,_0x36f120,_0x423f65){return __awaiter$2(this,void 0,void 0,function*(){const _0x92afb1='Facet/'+_0x39d715+'/'+_0x4a5c6a+'/'+_0x36f120,_0x590d7b=yield this['fetch']['delete'](_0x92afb1,_0x423f65);try{if(_0x590d7b['status']>0xc7&&_0x590d7b['status']<0x12c)return new SuccessfulResponse({});const _0x5b75ce=yield _0x590d7b['json']();return new FailedResponse(_0x5b75ce);}catch(_0x409885){if(_0x409885 instanceof Error)return new FailedResponse({'detail':_0x409885['message'],'title':_0x409885['name'],'status':0x1f4,'instance':'','type':''});throw _0x409885;}});}['rename'](_0x553b86,_0x2b7f34,_0x553376,_0xe9d643,_0x5c1ce3){return __awaiter$2(this,void 0,void 0,function*(){const _0x1a9e37={'account_name':_0x553b86,'list_name':_0x2b7f34,'facet_name':_0x553376,'new_facet_name':_0xe9d643};try{const _0x51346c=yield this['fetch']['put'](this['path'],_0x5c1ce3,_0x1a9e37);if(_0x51346c['status']>0xc7&&_0x51346c['status']<0x12c){const _0x9d3631=yield _0x51346c['json']();return new SuccessfulFacetResponse(_0x9d3631);}const _0x25b40a=yield _0x51346c['json']();return new FailedFacetResponse(_0x25b40a);}catch(_0x293668){if(_0x293668 instanceof Error)return new FailedFacetResponse({'detail':_0x293668['message'],'title':_0x293668['name'],'status':0x1f4,'instance':'','type':''});throw _0x293668;}});}}
14
+
15
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3bc72c,_0x5f5529,_0x399808,_0x25a39c){function _0x11e388(_0x2b78fa){return _0x2b78fa instanceof _0x399808?_0x2b78fa:new _0x399808(function(_0x1b7e76){_0x1b7e76(_0x2b78fa);});}return new(_0x399808||(_0x399808=Promise))(function(_0x411b31,_0x4dfd75){function _0xe55d3b(_0x49a7d0){try{_0x1251e4(_0x25a39c['next'](_0x49a7d0));}catch(_0x2e574f){_0x4dfd75(_0x2e574f);}}function _0x3610d7(_0x26fa3a){try{_0x1251e4(_0x25a39c['throw'](_0x26fa3a));}catch(_0x4f6099){_0x4dfd75(_0x4f6099);}}function _0x1251e4(_0x28224d){_0x28224d['done']?_0x411b31(_0x28224d['value']):_0x11e388(_0x28224d['value'])['then'](_0xe55d3b,_0x3610d7);}_0x1251e4((_0x25a39c=_0x25a39c['apply'](_0x3bc72c,_0x5f5529||[]))['next']());});};class SearchResultService{constructor(_0x851e54){this['fetch']=_0x851e54,this['path']='search-result';}['create'](_0x522a85,_0xd7bae5,_0xe10e7c,_0x5ce3f1){return __awaiter$1(this,void 0,void 0,function*(){const _0x46ded2={'account_name':_0x522a85,'search_result_name':_0xe10e7c,'list_name':_0xd7bae5};try{const _0x76a3c1=yield this['fetch']['post'](this['path'],_0x5ce3f1,_0x46ded2);if(_0x76a3c1['status']>0xc7&&_0x76a3c1['status']<0x12c){const _0x501f8f=yield _0x76a3c1['json']();return new SuccessfulViewSearchResultResponse(_0x501f8f);}const _0x2481ab=yield _0x76a3c1['json']();return new FailedSearchResultResponse(_0x2481ab);}catch(_0x48d776){if(_0x48d776 instanceof Error)return new FailedSearchResultResponse({'detail':_0x48d776['message'],'title':_0x48d776['name'],'status':0x1f4,'instance':'','type':''});throw _0x48d776;}});}}
16
+
17
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x2dded1,_0x475df3,_0x5b9a4d,_0x5d4975){function _0x52fa0a(_0x201277){return _0x201277 instanceof _0x5b9a4d?_0x201277:new _0x5b9a4d(function(_0x562700){_0x562700(_0x201277);});}return new(_0x5b9a4d||(_0x5b9a4d=Promise))(function(_0x1190f6,_0x3361df){function _0xc2c869(_0x142c36){try{_0x46be08(_0x5d4975['next'](_0x142c36));}catch(_0x2722b6){_0x3361df(_0x2722b6);}}function _0x39740d(_0x33cdb4){try{_0x46be08(_0x5d4975['throw'](_0x33cdb4));}catch(_0x1d40da){_0x3361df(_0x1d40da);}}function _0x46be08(_0x1c0692){_0x1c0692['done']?_0x1190f6(_0x1c0692['value']):_0x52fa0a(_0x1c0692['value'])['then'](_0xc2c869,_0x39740d);}_0x46be08((_0x5d4975=_0x5d4975['apply'](_0x2dded1,_0x475df3||[]))['next']());});};class AdminClient{constructor(_0x41ec35='https://admin.searchability.dev/'){var _0x252d61=new Fetch(_0x41ec35);this['Accounts']=new AccountService(_0x252d61),this['Lists']=new ListService(_0x252d61),this['ApiKeys']=new ApiKeyService(_0x252d61),this['SearchServices']=new SearchServersService(_0x252d61),this['FacetService']=new FacetService(_0x252d61),this['SearchResults']=new SearchResultService(_0x252d61);}}class AuthClient{constructor(_0xd8d02='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0xd8d02);}['login'](_0x29d3c3){return __awaiter(this,void 0,void 0,function*(){const _0x4462d3='login/'+_0x29d3c3;try{const _0x289142=yield yield fetch(_0x4462d3);if(_0x289142['status']>0xc7&&_0x289142['status']<0x12c){const _0xf212ab=yield _0x289142['json']();return new SuccessfulAuthResponse(_0xf212ab);}const _0x37fea7=yield _0x289142['json']();return new FailedAuthResponse(_0x37fea7);}catch(_0x154d83){if(_0x154d83 instanceof Error)return new FailedAuthResponse({'detail':_0x154d83['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x154d83;}});}['refresh'](_0x4d0cee){return __awaiter(this,void 0,void 0,function*(){const _0x10cb60='refresh',_0x44e008={'refresh_token':_0x4d0cee};try{const _0x4ce75d=yield this['fetch']['PostNoAuth'](_0x10cb60,_0x44e008);if(_0x4ce75d['status']>0xc7&&_0x4ce75d['status']<0x12c){const _0x225fe9=yield _0x4ce75d['json']();return new SuccessfulAuthResponse(_0x225fe9);}const _0x285765=yield _0x4ce75d['json']();return new FailedAuthResponse(_0x285765);}catch(_0x4a6bc4){if(_0x4a6bc4 instanceof Error)return new FailedAuthResponse({'detail':_0x4a6bc4['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4a6bc4;}});}['getTokenStatus'](_0x5d1886){if(Date['now']()<_0x5d1886['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x5d1886['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
18
+
19
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,20 +1,22 @@
1
1
  'use strict';
2
2
 
3
- exports.TokenStatus = void 0;(function(_0x16ab0a){_0x16ab0a[_0x16ab0a['Ok']=0x0]='Ok',_0x16ab0a[_0x16ab0a['Refresh']=0x1]='Refresh',_0x16ab0a[_0x16ab0a['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x3f50b5){this['isSuccess']=_0x3f50b5;}}class SuccessfulFacetResponse extends Response{constructor(_0xa67bdd){super(!![]),this['facet']=_0xa67bdd;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x11b4ad){super(![]),this['problem']=_0x11b4ad;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x1a4f75){super(!![]),this['account']=_0x1a4f75;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x5a48ea){super(!![]),this['list']=_0x5a48ea;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x141428){super(!![]),this['list']=_0x141428;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x32458e){super(![]),this['problem']=_0x32458e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x448448){super(![]),this['problem']=_0x448448;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x1b269b){super(![]),this['problem']=_0x1b269b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x165eba){super(!![]),this['tokens']=_0x165eba;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xa609a){super(![]),this['problem']=_0xa609a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1da5b7){super(!![]),this['apiKey']=_0x1da5b7;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1c46df){super(![]),this['problem']=_0x1c46df;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x1176c6){super(!![]),this['searchService']=_0x1176c6;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x2f5d93){super(![]),this['problem']=_0x2f5d93;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x574eaa){super(!![]),this['searchService']=_0x574eaa;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x7c3faf){super(!![]),this['searchServices']=_0x7c3faf;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x24c71d){super(![]),this['problem']=_0x24c71d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x4fbc2f){super(![]),this['problem']=_0x4fbc2f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x354693){super(!![]),this['apiKeyValue']=_0x354693;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x14b65f){super(!![]),this['obj']=_0x14b65f;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x576622){super(![]),this['problem']=_0x576622;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x132636){super(![]),this['problem']=_0x132636;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x281b99){_0x281b99[_0x281b99['Ok']=0x0]='Ok',_0x281b99[_0x281b99['Refresh']=0x1]='Refresh',_0x281b99[_0x281b99['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x1a627e){this['isSuccess']=_0x1a627e;}}class SuccessfulFacetResponse extends Response{constructor(_0x170aa0){super(!![]),this['facet']=_0x170aa0;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x5949ae){super(![]),this['problem']=_0x5949ae;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x901f67){super(!![]),this['account']=_0x901f67;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x43ac68){super(!![]),this['list']=_0x43ac68;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x3495cf){super(!![]),this['list']=_0x3495cf;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x70d311){super(![]),this['problem']=_0x70d311;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x30e748){super(![]),this['problem']=_0x30e748;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x49263e){super(![]),this['problem']=_0x49263e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x18e5e8){super(!![]),this['tokens']=_0x18e5e8;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x25f346){super(![]),this['problem']=_0x25f346;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x10b2f7){super(!![]),this['apiKey']=_0x10b2f7;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1e30e9){super(![]),this['problem']=_0x1e30e9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x36eed5){super(!![]),this['searchService']=_0x36eed5;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x57d2cb){super(![]),this['problem']=_0x57d2cb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2058ac){super(!![]),this['searchService']=_0x2058ac;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x4125f6){super(!![]),this['searchResult']=_0x4125f6;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x34e370){super(![]),this['problem']=_0x34e370;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x1750c1){super(!![]),this['searchServices']=_0x1750c1;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x1b626c){super(![]),this['problem']=_0x1b626c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x23a82c){super(![]),this['problem']=_0x23a82c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x573180){super(!![]),this['apiKeyValue']=_0x573180;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x23dcc9){super(!![]),this['obj']=_0x23dcc9;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x20a4b6){super(![]),this['problem']=_0x20a4b6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x1487ea){super(![]),this['problem']=_0x1487ea;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x228da6,_0x4d932d,_0x4727f5,_0x5015b6){function _0x2cb901(_0x1ffd08){return _0x1ffd08 instanceof _0x4727f5?_0x1ffd08:new _0x4727f5(function(_0x414b80){_0x414b80(_0x1ffd08);});}return new(_0x4727f5||(_0x4727f5=Promise))(function(_0x707cc6,_0x114b84){function _0x177e71(_0x5d59eb){try{_0x43daff(_0x5015b6['next'](_0x5d59eb));}catch(_0x2d09e8){_0x114b84(_0x2d09e8);}}function _0x42f25a(_0xdbbaa1){try{_0x43daff(_0x5015b6['throw'](_0xdbbaa1));}catch(_0x345e3c){_0x114b84(_0x345e3c);}}function _0x43daff(_0x165f26){_0x165f26['done']?_0x707cc6(_0x165f26['value']):_0x2cb901(_0x165f26['value'])['then'](_0x177e71,_0x42f25a);}_0x43daff((_0x5015b6=_0x5015b6['apply'](_0x228da6,_0x4d932d||[]))['next']());});};class AccountService{constructor(_0x79dd4a){this['fetch']=_0x79dd4a;}['get'](_0x3bbe7a,_0x8726b7){return __awaiter$6(this,void 0,void 0,function*(){const _0x3e098d='Account/'+_0x3bbe7a+'/',_0x105d0c=yield this['fetch']['get'](_0x3e098d,_0x8726b7);try{if(_0x105d0c['status']>0xc7&&_0x105d0c['status']<0x12c){const _0x283880=yield _0x105d0c['json']();return new SuccessfulAccountResponse(_0x283880);}const _0x335967=yield _0x105d0c['json']();return new FailedAccountResponse(_0x335967);}catch(_0x458850){if(_0x458850 instanceof Error)return new FailedAccountResponse({'detail':_0x458850['message'],'title':_0x458850['name'],'status':0x1f4,'instance':'','type':''});throw _0x458850;}});}}
5
+ var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x2b331f,_0x2b2eeb,_0x237a49,_0x640f40){function _0x46aff8(_0x184265){return _0x184265 instanceof _0x237a49?_0x184265:new _0x237a49(function(_0x258d8e){_0x258d8e(_0x184265);});}return new(_0x237a49||(_0x237a49=Promise))(function(_0x111644,_0x26a0be){function _0x1172a3(_0x28adba){try{_0x23db25(_0x640f40['next'](_0x28adba));}catch(_0x349422){_0x26a0be(_0x349422);}}function _0x4e2e7e(_0x37da4c){try{_0x23db25(_0x640f40['throw'](_0x37da4c));}catch(_0x479160){_0x26a0be(_0x479160);}}function _0x23db25(_0x4de303){_0x4de303['done']?_0x111644(_0x4de303['value']):_0x46aff8(_0x4de303['value'])['then'](_0x1172a3,_0x4e2e7e);}_0x23db25((_0x640f40=_0x640f40['apply'](_0x2b331f,_0x2b2eeb||[]))['next']());});};class AccountService{constructor(_0x5f514d){this['fetch']=_0x5f514d;}['get'](_0x4c9c33,_0x1d71c0){return __awaiter$7(this,void 0,void 0,function*(){const _0x15a969='Account/'+_0x4c9c33+'/',_0x1acd9f=yield this['fetch']['get'](_0x15a969,_0x1d71c0);try{if(_0x1acd9f['status']>0xc7&&_0x1acd9f['status']<0x12c){const _0x354571=yield _0x1acd9f['json']();return new SuccessfulAccountResponse(_0x354571);}const _0x2a7b51=yield _0x1acd9f['json']();return new FailedAccountResponse(_0x2a7b51);}catch(_0x1df33d){if(_0x1df33d instanceof Error)return new FailedAccountResponse({'detail':_0x1df33d['message'],'title':_0x1df33d['name'],'status':0x1f4,'instance':'','type':''});throw _0x1df33d;}});}}
6
6
 
7
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x33ca12,_0x6c0d56,_0x213374,_0x5c7e55){function _0x3b1a5d(_0x136bea){return _0x136bea instanceof _0x213374?_0x136bea:new _0x213374(function(_0x2bdc7c){_0x2bdc7c(_0x136bea);});}return new(_0x213374||(_0x213374=Promise))(function(_0x2fa172,_0x4c1207){function _0x2e2030(_0x4dec0e){try{_0x10779f(_0x5c7e55['next'](_0x4dec0e));}catch(_0x2b33c6){_0x4c1207(_0x2b33c6);}}function _0x42fa5f(_0x30de49){try{_0x10779f(_0x5c7e55['throw'](_0x30de49));}catch(_0x3c7ac4){_0x4c1207(_0x3c7ac4);}}function _0x10779f(_0x35ec5a){_0x35ec5a['done']?_0x2fa172(_0x35ec5a['value']):_0x3b1a5d(_0x35ec5a['value'])['then'](_0x2e2030,_0x42fa5f);}_0x10779f((_0x5c7e55=_0x5c7e55['apply'](_0x33ca12,_0x6c0d56||[]))['next']());});};class ApiKeyService{constructor(_0x4b9ba6){this['fetch']=_0x4b9ba6,this['path']='api-key';}['create'](_0x560da0,_0x1cfdac,_0x182c1c){return __awaiter$5(this,void 0,void 0,function*(){const _0x99f5d={'account_name':_0x560da0,'api_key_name':_0x1cfdac};try{const _0x1fe413=yield this['fetch']['post'](this['path'],_0x182c1c,_0x99f5d);if(_0x1fe413['status']>0xc7&&_0x1fe413['status']<0x12c){const _0x269d2a=yield _0x1fe413['json']();return new SuccessfulApiKeyResponse(_0x269d2a);}const _0x12495c=yield _0x1fe413['json']();return new FailedApiKeyResponse(_0x12495c);}catch(_0x2279c6){if(_0x2279c6 instanceof Error)return new FailedApiKeyResponse({'detail':_0x2279c6['message'],'title':_0x2279c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2279c6;}});}['view'](_0x4164af,_0x4ad28e,_0x41e161){return __awaiter$5(this,void 0,void 0,function*(){const _0x21247f=this['path']+'/'+_0x4164af+'/'+_0x4ad28e;try{const _0x35f210=yield this['fetch']['get'](_0x21247f,_0x41e161);if(_0x35f210['status']>0xc7&&_0x35f210['status']<0x12c){const _0x3f7dd8=yield _0x35f210['json']();return new SuccessfulApiKeyValueResponse(_0x3f7dd8);}const _0x37861e=yield _0x35f210['json']();return new FailedApiKeyValueResponse(_0x37861e);}catch(_0x1285c9){if(_0x1285c9 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1285c9['message'],'title':_0x1285c9['name'],'status':0x1f4,'instance':'','type':''});throw _0x1285c9;}});}['delete'](_0x326431,_0x17045a,_0x16a592){return __awaiter$5(this,void 0,void 0,function*(){const _0x1d6cf6=this['path']+'/'+_0x326431+'/'+_0x17045a;try{const _0x33eb1c=yield this['fetch']['delete'](_0x1d6cf6,_0x16a592);if(_0x33eb1c['status']>0xc7&&_0x33eb1c['status']<0x12c)return new SuccessfulResponse({});const _0x31a892=yield _0x33eb1c['json']();return new FailedResponse(_0x31a892);}catch(_0x202e47){if(_0x202e47 instanceof Error)return new FailedResponse({'detail':_0x202e47['message'],'title':_0x202e47['name'],'status':0x1f4,'instance':'','type':''});throw _0x202e47;}});}}
7
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x345889,_0x2ae33f,_0x3a9484,_0x572544){function _0x5c55c9(_0x3ee6f5){return _0x3ee6f5 instanceof _0x3a9484?_0x3ee6f5:new _0x3a9484(function(_0x535fbd){_0x535fbd(_0x3ee6f5);});}return new(_0x3a9484||(_0x3a9484=Promise))(function(_0x162cdd,_0x1e3741){function _0x4a9efb(_0xfc34c9){try{_0x2059a3(_0x572544['next'](_0xfc34c9));}catch(_0x2640e8){_0x1e3741(_0x2640e8);}}function _0x2849a9(_0x2b5827){try{_0x2059a3(_0x572544['throw'](_0x2b5827));}catch(_0x1e76ae){_0x1e3741(_0x1e76ae);}}function _0x2059a3(_0x369274){_0x369274['done']?_0x162cdd(_0x369274['value']):_0x5c55c9(_0x369274['value'])['then'](_0x4a9efb,_0x2849a9);}_0x2059a3((_0x572544=_0x572544['apply'](_0x345889,_0x2ae33f||[]))['next']());});};class ApiKeyService{constructor(_0x59bf08){this['fetch']=_0x59bf08,this['path']='api-key';}['create'](_0x15c9ef,_0x389704,_0x198657){return __awaiter$6(this,void 0,void 0,function*(){const _0x416c97={'account_name':_0x15c9ef,'api_key_name':_0x389704};try{const _0x1daa43=yield this['fetch']['post'](this['path'],_0x198657,_0x416c97);if(_0x1daa43['status']>0xc7&&_0x1daa43['status']<0x12c){const _0x55f193=yield _0x1daa43['json']();return new SuccessfulApiKeyResponse(_0x55f193);}const _0x7af812=yield _0x1daa43['json']();return new FailedApiKeyResponse(_0x7af812);}catch(_0x4bf24c){if(_0x4bf24c instanceof Error)return new FailedApiKeyResponse({'detail':_0x4bf24c['message'],'title':_0x4bf24c['name'],'status':0x1f4,'instance':'','type':''});throw _0x4bf24c;}});}['view'](_0xae8632,_0x53dd5c,_0xb3a99){return __awaiter$6(this,void 0,void 0,function*(){const _0x59a00f=this['path']+'/'+_0xae8632+'/'+_0x53dd5c;try{const _0x320361=yield this['fetch']['get'](_0x59a00f,_0xb3a99);if(_0x320361['status']>0xc7&&_0x320361['status']<0x12c){const _0x4f9649=yield _0x320361['json']();return new SuccessfulApiKeyValueResponse(_0x4f9649);}const _0x1aacfa=yield _0x320361['json']();return new FailedApiKeyValueResponse(_0x1aacfa);}catch(_0x1ddc76){if(_0x1ddc76 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1ddc76['message'],'title':_0x1ddc76['name'],'status':0x1f4,'instance':'','type':''});throw _0x1ddc76;}});}['delete'](_0x446302,_0x3f8e6c,_0x5c547a){return __awaiter$6(this,void 0,void 0,function*(){const _0x5bf814=this['path']+'/'+_0x446302+'/'+_0x3f8e6c;try{const _0x47371e=yield this['fetch']['delete'](_0x5bf814,_0x5c547a);if(_0x47371e['status']>0xc7&&_0x47371e['status']<0x12c)return new SuccessfulResponse({});const _0x43255b=yield _0x47371e['json']();return new FailedResponse(_0x43255b);}catch(_0x179eda){if(_0x179eda instanceof Error)return new FailedResponse({'detail':_0x179eda['message'],'title':_0x179eda['name'],'status':0x1f4,'instance':'','type':''});throw _0x179eda;}});}}
8
8
 
9
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x314488,_0xe8cd88,_0x14dc72,_0x11a9e4){function _0x114871(_0x2cc7a3){return _0x2cc7a3 instanceof _0x14dc72?_0x2cc7a3:new _0x14dc72(function(_0x110bc8){_0x110bc8(_0x2cc7a3);});}return new(_0x14dc72||(_0x14dc72=Promise))(function(_0x5b12aa,_0x532aeb){function _0xe091ab(_0x5e881d){try{_0x5e2171(_0x11a9e4['next'](_0x5e881d));}catch(_0x58e627){_0x532aeb(_0x58e627);}}function _0x171628(_0x506fbb){try{_0x5e2171(_0x11a9e4['throw'](_0x506fbb));}catch(_0x220139){_0x532aeb(_0x220139);}}function _0x5e2171(_0x4eb7bf){_0x4eb7bf['done']?_0x5b12aa(_0x4eb7bf['value']):_0x114871(_0x4eb7bf['value'])['then'](_0xe091ab,_0x171628);}_0x5e2171((_0x11a9e4=_0x11a9e4['apply'](_0x314488,_0xe8cd88||[]))['next']());});};class ListService{constructor(_0x202090){this['fetch']=_0x202090;}['create'](_0x23c0cc,_0x131511,_0x34ea46,_0x4f3a79){return __awaiter$4(this,void 0,void 0,function*(){const _0x1f2a0c='List',_0x204d8a={'account_name':_0x23c0cc,'list_name':_0x131511,'search_service_name':_0x34ea46};try{const _0x345c2a=yield this['fetch']['post'](_0x1f2a0c,_0x4f3a79,_0x204d8a);if(_0x345c2a['status']>0xc7&&_0x345c2a['status']<0x12c){const _0x150bf7=yield _0x345c2a['json']();return new SuccessfulListIdentityResponse(_0x150bf7);}const _0x287ddf=yield _0x345c2a['json']();return new FailedListIdentityResponse(_0x287ddf);}catch(_0x4fb6a8){if(_0x4fb6a8 instanceof Error)return new FailedListIdentityResponse({'detail':_0x4fb6a8['message'],'title':_0x4fb6a8['name'],'status':0x1f4,'instance':'','type':''});throw _0x4fb6a8;}});}['delete'](_0x1684e8,_0x45024a,_0x56724a){return __awaiter$4(this,void 0,void 0,function*(){const _0x12e9a6='List/'+_0x1684e8+'/'+_0x45024a,_0x306cd5=yield this['fetch']['delete'](_0x12e9a6,_0x56724a);try{if(_0x306cd5['status']>0xc7&&_0x306cd5['status']<0x12c)return new SuccessfulResponse({});const _0x272b08=yield _0x306cd5['json']();return new FailedResponse(_0x272b08);}catch(_0x3a0bd6){if(_0x3a0bd6 instanceof Error)return new FailedResponse({'detail':_0x3a0bd6['message'],'title':_0x3a0bd6['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a0bd6;}});}['get'](_0x5956e5,_0x441028,_0x22b427){return __awaiter$4(this,void 0,void 0,function*(){const _0x54b1b0='List/'+_0x5956e5+'/'+_0x441028;try{const _0x53a69e=yield this['fetch']['get'](_0x54b1b0,_0x22b427);if(_0x53a69e['status']>0xc7&&_0x53a69e['status']<0x12c){const _0x19d91f=yield _0x53a69e['json']();return new SuccessfulListResponse(_0x19d91f);}const _0x9012b2=yield _0x53a69e['json']();return new FailedListResponse(_0x9012b2);}catch(_0x19d82c){if(_0x19d82c instanceof Error)return new FailedListResponse({'detail':_0x19d82c['message'],'title':_0x19d82c['name'],'status':0x1f4,'instance':'','type':''});throw _0x19d82c;}});}}
9
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0xe787c,_0x2ae121,_0x5b41bc,_0x4641bb){function _0xe3f2cd(_0x54e53a){return _0x54e53a instanceof _0x5b41bc?_0x54e53a:new _0x5b41bc(function(_0x24b29f){_0x24b29f(_0x54e53a);});}return new(_0x5b41bc||(_0x5b41bc=Promise))(function(_0xa5c62c,_0x5b54be){function _0x5999a5(_0x18f4c3){try{_0x2502a7(_0x4641bb['next'](_0x18f4c3));}catch(_0x550547){_0x5b54be(_0x550547);}}function _0x2c279c(_0x4b7f2e){try{_0x2502a7(_0x4641bb['throw'](_0x4b7f2e));}catch(_0x4c4d4b){_0x5b54be(_0x4c4d4b);}}function _0x2502a7(_0x2ec819){_0x2ec819['done']?_0xa5c62c(_0x2ec819['value']):_0xe3f2cd(_0x2ec819['value'])['then'](_0x5999a5,_0x2c279c);}_0x2502a7((_0x4641bb=_0x4641bb['apply'](_0xe787c,_0x2ae121||[]))['next']());});};class ListService{constructor(_0x5cf412){this['fetch']=_0x5cf412;}['create'](_0x1bb950,_0x445d1b,_0x185e62,_0x42d9f8){return __awaiter$5(this,void 0,void 0,function*(){const _0xc12dab='List',_0x3dbaba={'account_name':_0x1bb950,'list_name':_0x445d1b,'search_service_name':_0x185e62};try{const _0x3cf9fe=yield this['fetch']['post'](_0xc12dab,_0x42d9f8,_0x3dbaba);if(_0x3cf9fe['status']>0xc7&&_0x3cf9fe['status']<0x12c){const _0x37a65d=yield _0x3cf9fe['json']();return new SuccessfulListIdentityResponse(_0x37a65d);}const _0x2334a1=yield _0x3cf9fe['json']();return new FailedListIdentityResponse(_0x2334a1);}catch(_0x3fafe4){if(_0x3fafe4 instanceof Error)return new FailedListIdentityResponse({'detail':_0x3fafe4['message'],'title':_0x3fafe4['name'],'status':0x1f4,'instance':'','type':''});throw _0x3fafe4;}});}['delete'](_0x3b0334,_0x42d14f,_0x1898b4){return __awaiter$5(this,void 0,void 0,function*(){const _0xe7c152='List/'+_0x3b0334+'/'+_0x42d14f,_0x6c7406=yield this['fetch']['delete'](_0xe7c152,_0x1898b4);try{if(_0x6c7406['status']>0xc7&&_0x6c7406['status']<0x12c)return new SuccessfulResponse({});const _0x29725d=yield _0x6c7406['json']();return new FailedResponse(_0x29725d);}catch(_0x2fc8c3){if(_0x2fc8c3 instanceof Error)return new FailedResponse({'detail':_0x2fc8c3['message'],'title':_0x2fc8c3['name'],'status':0x1f4,'instance':'','type':''});throw _0x2fc8c3;}});}['get'](_0x5132dc,_0x184c9a,_0xddf2f0){return __awaiter$5(this,void 0,void 0,function*(){const _0x3e1877='List/'+_0x5132dc+'/'+_0x184c9a;try{const _0x125f2e=yield this['fetch']['get'](_0x3e1877,_0xddf2f0);if(_0x125f2e['status']>0xc7&&_0x125f2e['status']<0x12c){const _0x13ef44=yield _0x125f2e['json']();return new SuccessfulListResponse(_0x13ef44);}const _0x97fd89=yield _0x125f2e['json']();return new FailedListResponse(_0x97fd89);}catch(_0x79a3e3){if(_0x79a3e3 instanceof Error)return new FailedListResponse({'detail':_0x79a3e3['message'],'title':_0x79a3e3['name'],'status':0x1f4,'instance':'','type':''});throw _0x79a3e3;}});}}
10
10
 
11
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x2849e6,_0x3e73d1,_0x5b6bb8,_0x88d733){function _0x348fa4(_0x114774){return _0x114774 instanceof _0x5b6bb8?_0x114774:new _0x5b6bb8(function(_0x377189){_0x377189(_0x114774);});}return new(_0x5b6bb8||(_0x5b6bb8=Promise))(function(_0x5c5f77,_0x103ad9){function _0x25b3a2(_0x49ef47){try{_0x53d5a7(_0x88d733['next'](_0x49ef47));}catch(_0x3efcf4){_0x103ad9(_0x3efcf4);}}function _0x28eb0d(_0x3a1d8c){try{_0x53d5a7(_0x88d733['throw'](_0x3a1d8c));}catch(_0x18cf0e){_0x103ad9(_0x18cf0e);}}function _0x53d5a7(_0x20f7f7){_0x20f7f7['done']?_0x5c5f77(_0x20f7f7['value']):_0x348fa4(_0x20f7f7['value'])['then'](_0x25b3a2,_0x28eb0d);}_0x53d5a7((_0x88d733=_0x88d733['apply'](_0x2849e6,_0x3e73d1||[]))['next']());});};class Fetch{constructor(_0x1bb907){this['baseUri']=_0x1bb907,this['getUrl']=_0x2ebc08=>{return _0x2ebc08['startsWith']('/')&&(_0x2ebc08=_0x2ebc08['replace']('/','')),''+this['baseUri']+_0x2ebc08;},!_0x1bb907['endsWith']('/')&&(_0x1bb907=_0x1bb907+'/');}['get'](_0x2c3d02,_0x3e155b){return __awaiter$3(this,void 0,void 0,function*(){const _0x22a287=this['getUrl'](_0x2c3d02);return yield fetch(_0x22a287,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3e155b}});});}['post'](_0x1221e6,_0x479d6d,_0x2c3856){return __awaiter$3(this,void 0,void 0,function*(){const _0x1414a6=this['getUrl'](_0x1221e6);return yield fetch(_0x1414a6,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x479d6d},'body':_0x2c3856?JSON['stringify'](_0x2c3856):null});});}['PostNoAuth'](_0x20d7eb,_0x2c6692){return __awaiter$3(this,void 0,void 0,function*(){const _0x296c1f=this['getUrl'](_0x20d7eb);return yield fetch(_0x296c1f,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x2c6692?JSON['stringify'](_0x2c6692):null});});}['put'](_0x5d92c2,_0x348b65,_0x73327f){return __awaiter$3(this,void 0,void 0,function*(){const _0x40796b=this['getUrl'](_0x5d92c2);return yield fetch(_0x40796b,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x348b65},'body':_0x73327f?JSON['stringify'](_0x73327f):null});});}['delete'](_0x5dd989,_0x3d1102){return __awaiter$3(this,void 0,void 0,function*(){const _0x44ad7c=this['getUrl'](_0x5dd989);return yield fetch(_0x44ad7c,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3d1102}});});}}
11
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x40a51e,_0x50b671,_0x121798,_0x24b880){function _0x4f2a4f(_0x14965e){return _0x14965e instanceof _0x121798?_0x14965e:new _0x121798(function(_0x1410cb){_0x1410cb(_0x14965e);});}return new(_0x121798||(_0x121798=Promise))(function(_0x52a4b4,_0x133a31){function _0x4f1a3d(_0x4b28b7){try{_0x5a240d(_0x24b880['next'](_0x4b28b7));}catch(_0x294609){_0x133a31(_0x294609);}}function _0x4bda31(_0x23a091){try{_0x5a240d(_0x24b880['throw'](_0x23a091));}catch(_0x2f9d8c){_0x133a31(_0x2f9d8c);}}function _0x5a240d(_0x42170d){_0x42170d['done']?_0x52a4b4(_0x42170d['value']):_0x4f2a4f(_0x42170d['value'])['then'](_0x4f1a3d,_0x4bda31);}_0x5a240d((_0x24b880=_0x24b880['apply'](_0x40a51e,_0x50b671||[]))['next']());});};class Fetch{constructor(_0x22dc6d){this['baseUri']=_0x22dc6d,this['getUrl']=_0x16702a=>{return _0x16702a['startsWith']('/')&&(_0x16702a=_0x16702a['replace']('/','')),''+this['baseUri']+_0x16702a;},!_0x22dc6d['endsWith']('/')&&(_0x22dc6d=_0x22dc6d+'/');}['get'](_0x109fd1,_0x3ec24f){return __awaiter$4(this,void 0,void 0,function*(){const _0x6b1f8d=this['getUrl'](_0x109fd1);return yield fetch(_0x6b1f8d,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3ec24f}});});}['post'](_0x134f0b,_0xd434a1,_0x4e6743){return __awaiter$4(this,void 0,void 0,function*(){const _0xf29507=this['getUrl'](_0x134f0b);return yield fetch(_0xf29507,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xd434a1},'body':_0x4e6743?JSON['stringify'](_0x4e6743):null});});}['PostNoAuth'](_0x5b46cf,_0x574dc1){return __awaiter$4(this,void 0,void 0,function*(){const _0x4fc8e5=this['getUrl'](_0x5b46cf);return yield fetch(_0x4fc8e5,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x574dc1?JSON['stringify'](_0x574dc1):null});});}['put'](_0x356ca0,_0x5ac35c,_0x247f6a){return __awaiter$4(this,void 0,void 0,function*(){const _0x1e706d=this['getUrl'](_0x356ca0);return yield fetch(_0x1e706d,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5ac35c},'body':_0x247f6a?JSON['stringify'](_0x247f6a):null});});}['delete'](_0x374f32,_0x6a4bb1){return __awaiter$4(this,void 0,void 0,function*(){const _0x151a19=this['getUrl'](_0x374f32);return yield fetch(_0x151a19,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x6a4bb1}});});}}
12
12
 
13
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x41996e,_0x5c26cd,_0x359c63,_0x21f1b2){function _0x56f2ac(_0x5d84ab){return _0x5d84ab instanceof _0x359c63?_0x5d84ab:new _0x359c63(function(_0x4c057a){_0x4c057a(_0x5d84ab);});}return new(_0x359c63||(_0x359c63=Promise))(function(_0x81a4ed,_0x179c4f){function _0x43d162(_0x54e048){try{_0x1c7f87(_0x21f1b2['next'](_0x54e048));}catch(_0x2eaa13){_0x179c4f(_0x2eaa13);}}function _0x2050f2(_0x8126d4){try{_0x1c7f87(_0x21f1b2['throw'](_0x8126d4));}catch(_0x24ac06){_0x179c4f(_0x24ac06);}}function _0x1c7f87(_0x58d87c){_0x58d87c['done']?_0x81a4ed(_0x58d87c['value']):_0x56f2ac(_0x58d87c['value'])['then'](_0x43d162,_0x2050f2);}_0x1c7f87((_0x21f1b2=_0x21f1b2['apply'](_0x41996e,_0x5c26cd||[]))['next']());});};class SearchServersService{constructor(_0x20b5ec){this['fetch']=_0x20b5ec,this['path']='search-services';}['create'](_0x5e097b,_0x257fcd,_0x5047fd,_0x32d3f1,_0x17bee8,_0x4eb72d,_0x41ef9e,_0xec87f8){return __awaiter$2(this,void 0,void 0,function*(){const _0x47a6a1={'account_name':_0x5e097b,'search_service_name':_0x257fcd,'endpoint':_0x5047fd,'key':_0x32d3f1,'country':_0x17bee8,'provider':_0x4eb72d,'index_name':_0x41ef9e};try{const _0x23c44b=yield this['fetch']['post'](this['path'],_0xec87f8,_0x47a6a1);if(_0x23c44b['status']>0xc7&&_0x23c44b['status']<0x12c){const _0x4bcc2c=yield _0x23c44b['json']();return new SuccessfulSearchServiceResponse(_0x4bcc2c);}const _0x526bd8=yield _0x23c44b['json']();return new FailedSearchServiceResponse(_0x526bd8);}catch(_0x34b80b){if(_0x34b80b instanceof Error)return new FailedSearchServiceResponse({'detail':_0x34b80b['message'],'title':_0x34b80b['name'],'status':0x1f4,'instance':'','type':''});throw _0x34b80b;}});}['delete'](_0x457728,_0x137f3d,_0x5e40d9){return __awaiter$2(this,void 0,void 0,function*(){const _0x5ed98d=this['path']+'/'+_0x457728+'/'+_0x137f3d;try{const _0x37877c=yield this['fetch']['delete'](_0x5ed98d,_0x5e40d9);if(_0x37877c['status']>0xc7&&_0x37877c['status']<0x12c)return new SuccessfulResponse({});const _0x2b8806=yield _0x37877c['json']();return new FailedResponse(_0x2b8806);}catch(_0x4b0c33){if(_0x4b0c33 instanceof Error)return new FailedResponse({'detail':_0x4b0c33['message'],'title':_0x4b0c33['name'],'status':0x1f4,'instance':'','type':''});throw _0x4b0c33;}});}['view'](_0x4f8cf8,_0x2253a6,_0x428d57){return __awaiter$2(this,void 0,void 0,function*(){const _0x5211bb=this['path']+'/'+_0x4f8cf8+'/'+_0x2253a6;try{const _0x13dda5=yield this['fetch']['get'](_0x5211bb,_0x428d57);if(_0x13dda5['status']>0xc7&&_0x13dda5['status']<0x12c){const _0x82027f=yield _0x13dda5['json']();return new SuccessfulViewSearchServiceResponse(_0x82027f);}const _0x47b0b0=yield _0x13dda5['json']();return new FailedViewSearchServiceResponse(_0x47b0b0);}catch(_0x317855){if(_0x317855 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x317855['message'],'title':_0x317855['name'],'status':0x1f4,'instance':'','type':''});throw _0x317855;}});}['edit'](_0x4446fc,_0xf8a1da,_0x684202,_0x6e7417,_0x576171,_0x498772){return __awaiter$2(this,void 0,void 0,function*(){const _0x3cbb04={'account_name':_0x4446fc,'search_service_name':_0xf8a1da,'new_search_service_name':_0x684202,'key':_0x6e7417,'country':_0x576171};try{const _0xf9d3a5=yield this['fetch']['put'](this['path'],_0x498772,_0x3cbb04);if(_0xf9d3a5['status']>0xc7&&_0xf9d3a5['status']<0x12c){const _0xb84290=yield _0xf9d3a5['json']();return new SuccessfulSearchServiceResponse(_0xb84290);}const _0x4b1a2b=yield _0xf9d3a5['json']();return new FailedSearchServiceResponse(_0x4b1a2b);}catch(_0x322cd3){if(_0x322cd3 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x322cd3['message'],'title':_0x322cd3['name'],'status':0x1f4,'instance':'','type':''});throw _0x322cd3;}});}['list'](_0xe27b7e,_0x4e95a1){return __awaiter$2(this,void 0,void 0,function*(){const _0x56a735=this['path']+'/'+_0xe27b7e;try{const _0x270528=yield this['fetch']['get'](_0x56a735,_0x4e95a1);if(_0x270528['status']>0xc7&&_0x270528['status']<0x12c){const _0x4a0aec=yield _0x270528['json']();return new SuccessfulListSearchServiceResponse(_0x4a0aec);}const _0x35d66e=yield _0x270528['json']();return new FailedViewSearchServicesResponse(_0x35d66e);}catch(_0x5139d6){if(_0x5139d6 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5139d6['message'],'title':_0x5139d6['name'],'status':0x1f4,'instance':'','type':''});throw _0x5139d6;}});}}
13
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x319e36,_0x256133,_0x4d4010,_0x131ae1){function _0xa41a23(_0x2395f3){return _0x2395f3 instanceof _0x4d4010?_0x2395f3:new _0x4d4010(function(_0x396e86){_0x396e86(_0x2395f3);});}return new(_0x4d4010||(_0x4d4010=Promise))(function(_0x40793d,_0x55dddc){function _0xc85e53(_0x1c4b1f){try{_0x1deb65(_0x131ae1['next'](_0x1c4b1f));}catch(_0x4eb365){_0x55dddc(_0x4eb365);}}function _0x264b24(_0x4e387c){try{_0x1deb65(_0x131ae1['throw'](_0x4e387c));}catch(_0x39de1b){_0x55dddc(_0x39de1b);}}function _0x1deb65(_0x2e93a7){_0x2e93a7['done']?_0x40793d(_0x2e93a7['value']):_0xa41a23(_0x2e93a7['value'])['then'](_0xc85e53,_0x264b24);}_0x1deb65((_0x131ae1=_0x131ae1['apply'](_0x319e36,_0x256133||[]))['next']());});};class SearchServersService{constructor(_0x36ca61){this['fetch']=_0x36ca61,this['path']='search-services';}['create'](_0xd2405e,_0x3dc733,_0x153316,_0x106476,_0x1c32fe,_0x112afc,_0x1ed2e8,_0x2bb052){return __awaiter$3(this,void 0,void 0,function*(){const _0x29fff0={'account_name':_0xd2405e,'search_service_name':_0x3dc733,'endpoint':_0x153316,'key':_0x106476,'country':_0x1c32fe,'provider':_0x112afc,'index_name':_0x1ed2e8};try{const _0xaaadac=yield this['fetch']['post'](this['path'],_0x2bb052,_0x29fff0);if(_0xaaadac['status']>0xc7&&_0xaaadac['status']<0x12c){const _0x4393e7=yield _0xaaadac['json']();return new SuccessfulSearchServiceResponse(_0x4393e7);}const _0x6055b1=yield _0xaaadac['json']();return new FailedSearchServiceResponse(_0x6055b1);}catch(_0x4dd194){if(_0x4dd194 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x4dd194['message'],'title':_0x4dd194['name'],'status':0x1f4,'instance':'','type':''});throw _0x4dd194;}});}['delete'](_0x49f7a2,_0x7f68ee,_0x3a686a){return __awaiter$3(this,void 0,void 0,function*(){const _0x577509=this['path']+'/'+_0x49f7a2+'/'+_0x7f68ee;try{const _0x38b60a=yield this['fetch']['delete'](_0x577509,_0x3a686a);if(_0x38b60a['status']>0xc7&&_0x38b60a['status']<0x12c)return new SuccessfulResponse({});const _0x303a37=yield _0x38b60a['json']();return new FailedResponse(_0x303a37);}catch(_0x2e2a00){if(_0x2e2a00 instanceof Error)return new FailedResponse({'detail':_0x2e2a00['message'],'title':_0x2e2a00['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e2a00;}});}['view'](_0x4b5915,_0x3e3bbb,_0x43d985){return __awaiter$3(this,void 0,void 0,function*(){const _0x2bd86b=this['path']+'/'+_0x4b5915+'/'+_0x3e3bbb;try{const _0x3b234a=yield this['fetch']['get'](_0x2bd86b,_0x43d985);if(_0x3b234a['status']>0xc7&&_0x3b234a['status']<0x12c){const _0xfe614c=yield _0x3b234a['json']();return new SuccessfulViewSearchServiceResponse(_0xfe614c);}const _0x238d22=yield _0x3b234a['json']();return new FailedViewSearchServiceResponse(_0x238d22);}catch(_0x13cc07){if(_0x13cc07 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x13cc07['message'],'title':_0x13cc07['name'],'status':0x1f4,'instance':'','type':''});throw _0x13cc07;}});}['edit'](_0x31c34c,_0x2538a5,_0x7c7b99,_0x5cf509,_0x3a5fbb,_0x47e605){return __awaiter$3(this,void 0,void 0,function*(){const _0x5c7c3d={'account_name':_0x31c34c,'search_service_name':_0x2538a5,'new_search_service_name':_0x7c7b99,'key':_0x5cf509,'country':_0x3a5fbb};try{const _0xb8cc3=yield this['fetch']['put'](this['path'],_0x47e605,_0x5c7c3d);if(_0xb8cc3['status']>0xc7&&_0xb8cc3['status']<0x12c){const _0x14667b=yield _0xb8cc3['json']();return new SuccessfulSearchServiceResponse(_0x14667b);}const _0x3ab90c=yield _0xb8cc3['json']();return new FailedSearchServiceResponse(_0x3ab90c);}catch(_0x4500eb){if(_0x4500eb instanceof Error)return new FailedSearchServiceResponse({'detail':_0x4500eb['message'],'title':_0x4500eb['name'],'status':0x1f4,'instance':'','type':''});throw _0x4500eb;}});}['list'](_0x2c1caf,_0x301a77){return __awaiter$3(this,void 0,void 0,function*(){const _0x3a205d=this['path']+'/'+_0x2c1caf;try{const _0x556ddd=yield this['fetch']['get'](_0x3a205d,_0x301a77);if(_0x556ddd['status']>0xc7&&_0x556ddd['status']<0x12c){const _0x35d2b5=yield _0x556ddd['json']();return new SuccessfulListSearchServiceResponse(_0x35d2b5);}const _0x6b3114=yield _0x556ddd['json']();return new FailedViewSearchServicesResponse(_0x6b3114);}catch(_0x26fac8){if(_0x26fac8 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x26fac8['message'],'title':_0x26fac8['name'],'status':0x1f4,'instance':'','type':''});throw _0x26fac8;}});}}
14
14
 
15
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1fdc7e,_0x44bfd0,_0x51adee,_0x2a27ff){function _0xbcce90(_0x5567fc){return _0x5567fc instanceof _0x51adee?_0x5567fc:new _0x51adee(function(_0x4a5aad){_0x4a5aad(_0x5567fc);});}return new(_0x51adee||(_0x51adee=Promise))(function(_0x3a4a24,_0x2d4293){function _0x36f7e5(_0x48c198){try{_0x480bf9(_0x2a27ff['next'](_0x48c198));}catch(_0x36b00d){_0x2d4293(_0x36b00d);}}function _0x485f0d(_0x37d811){try{_0x480bf9(_0x2a27ff['throw'](_0x37d811));}catch(_0x20ca50){_0x2d4293(_0x20ca50);}}function _0x480bf9(_0x1b5393){_0x1b5393['done']?_0x3a4a24(_0x1b5393['value']):_0xbcce90(_0x1b5393['value'])['then'](_0x36f7e5,_0x485f0d);}_0x480bf9((_0x2a27ff=_0x2a27ff['apply'](_0x1fdc7e,_0x44bfd0||[]))['next']());});};class FacetService{constructor(_0x28580c){this['fetch']=_0x28580c,this['path']='facet';}['create'](_0x3f233f,_0x597a08,_0xa25dd2,_0x4e7b6f){return __awaiter$1(this,void 0,void 0,function*(){const _0x392e3d={'account_name':_0x3f233f,'list_name':_0x597a08,'facet_name':_0xa25dd2};try{const _0x5d91f2=yield this['fetch']['post'](this['path'],_0x4e7b6f,_0x392e3d);if(_0x5d91f2['status']>0xc7&&_0x5d91f2['status']<0x12c){const _0x17bc03=yield _0x5d91f2['json']();return new SuccessfulFacetResponse(_0x17bc03);}const _0x4b9a54=yield _0x5d91f2['json']();return new FailedFacetResponse(_0x4b9a54);}catch(_0x4867c6){if(_0x4867c6 instanceof Error)return new FailedFacetResponse({'detail':_0x4867c6['message'],'title':_0x4867c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x4867c6;}});}['remove'](_0x3d6462,_0x5d172e,_0x173428,_0x1c5430){return __awaiter$1(this,void 0,void 0,function*(){const _0x124c7b='Facet/'+_0x3d6462+'/'+_0x5d172e+'/'+_0x173428,_0x38075e=yield this['fetch']['delete'](_0x124c7b,_0x1c5430);try{if(_0x38075e['status']>0xc7&&_0x38075e['status']<0x12c)return new SuccessfulResponse({});const _0x51857e=yield _0x38075e['json']();return new FailedResponse(_0x51857e);}catch(_0x315626){if(_0x315626 instanceof Error)return new FailedResponse({'detail':_0x315626['message'],'title':_0x315626['name'],'status':0x1f4,'instance':'','type':''});throw _0x315626;}});}['rename'](_0x99aaec,_0x550699,_0x4ca9ce,_0x874c61,_0x57716e){return __awaiter$1(this,void 0,void 0,function*(){const _0x25aaec={'account_name':_0x99aaec,'list_name':_0x550699,'facet_name':_0x4ca9ce,'rename_facet_name':_0x874c61};try{const _0x4f7130=yield this['fetch']['put'](this['path'],_0x57716e,_0x25aaec);if(_0x4f7130['status']>0xc7&&_0x4f7130['status']<0x12c){const _0x8f146e=yield _0x4f7130['json']();return new SuccessfulFacetResponse(_0x8f146e);}const _0x4dfb10=yield _0x4f7130['json']();return new FailedFacetResponse(_0x4dfb10);}catch(_0x554477){if(_0x554477 instanceof Error)return new FailedFacetResponse({'detail':_0x554477['message'],'title':_0x554477['name'],'status':0x1f4,'instance':'','type':''});throw _0x554477;}});}}
15
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x4deae9,_0x5450de,_0x2579d3,_0x24cecf){function _0x51e216(_0x346aa3){return _0x346aa3 instanceof _0x2579d3?_0x346aa3:new _0x2579d3(function(_0x5608ae){_0x5608ae(_0x346aa3);});}return new(_0x2579d3||(_0x2579d3=Promise))(function(_0x1731cb,_0x791969){function _0x5f4ec9(_0x252ae3){try{_0x23b8ee(_0x24cecf['next'](_0x252ae3));}catch(_0x326c00){_0x791969(_0x326c00);}}function _0x4ea5d2(_0x2cb224){try{_0x23b8ee(_0x24cecf['throw'](_0x2cb224));}catch(_0x210ecb){_0x791969(_0x210ecb);}}function _0x23b8ee(_0x3f027d){_0x3f027d['done']?_0x1731cb(_0x3f027d['value']):_0x51e216(_0x3f027d['value'])['then'](_0x5f4ec9,_0x4ea5d2);}_0x23b8ee((_0x24cecf=_0x24cecf['apply'](_0x4deae9,_0x5450de||[]))['next']());});};class FacetService{constructor(_0x3dde07){this['fetch']=_0x3dde07,this['path']='facet';}['create'](_0x852ac6,_0x3afbf4,_0x83363d,_0x4aca49){return __awaiter$2(this,void 0,void 0,function*(){const _0x5b9081={'account_name':_0x852ac6,'list_name':_0x3afbf4,'facet_name':_0x83363d};try{const _0x289957=yield this['fetch']['post'](this['path'],_0x4aca49,_0x5b9081);if(_0x289957['status']>0xc7&&_0x289957['status']<0x12c){const _0x1e1dbd=yield _0x289957['json']();return new SuccessfulFacetResponse(_0x1e1dbd);}const _0x481967=yield _0x289957['json']();return new FailedFacetResponse(_0x481967);}catch(_0x112dbf){if(_0x112dbf instanceof Error)return new FailedFacetResponse({'detail':_0x112dbf['message'],'title':_0x112dbf['name'],'status':0x1f4,'instance':'','type':''});throw _0x112dbf;}});}['remove'](_0x45ab84,_0x5390e9,_0x5ba1de,_0x51126f){return __awaiter$2(this,void 0,void 0,function*(){const _0x1e38ce='Facet/'+_0x45ab84+'/'+_0x5390e9+'/'+_0x5ba1de,_0x36e897=yield this['fetch']['delete'](_0x1e38ce,_0x51126f);try{if(_0x36e897['status']>0xc7&&_0x36e897['status']<0x12c)return new SuccessfulResponse({});const _0x332963=yield _0x36e897['json']();return new FailedResponse(_0x332963);}catch(_0x1955c2){if(_0x1955c2 instanceof Error)return new FailedResponse({'detail':_0x1955c2['message'],'title':_0x1955c2['name'],'status':0x1f4,'instance':'','type':''});throw _0x1955c2;}});}['rename'](_0x4d352e,_0x40ca25,_0x3f736d,_0x53b840,_0x2fe086){return __awaiter$2(this,void 0,void 0,function*(){const _0x553208={'account_name':_0x4d352e,'list_name':_0x40ca25,'facet_name':_0x3f736d,'new_facet_name':_0x53b840};try{const _0x25ee0d=yield this['fetch']['put'](this['path'],_0x2fe086,_0x553208);if(_0x25ee0d['status']>0xc7&&_0x25ee0d['status']<0x12c){const _0x4f0f93=yield _0x25ee0d['json']();return new SuccessfulFacetResponse(_0x4f0f93);}const _0x4e4c96=yield _0x25ee0d['json']();return new FailedFacetResponse(_0x4e4c96);}catch(_0x478ed7){if(_0x478ed7 instanceof Error)return new FailedFacetResponse({'detail':_0x478ed7['message'],'title':_0x478ed7['name'],'status':0x1f4,'instance':'','type':''});throw _0x478ed7;}});}}
16
16
 
17
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x5cd5bb,_0x23e709,_0x1d9f8f,_0x5946e7){function _0x597b7c(_0x525d43){return _0x525d43 instanceof _0x1d9f8f?_0x525d43:new _0x1d9f8f(function(_0x3ebe46){_0x3ebe46(_0x525d43);});}return new(_0x1d9f8f||(_0x1d9f8f=Promise))(function(_0x6b42f0,_0x215cf2){function _0xe0070b(_0x434887){try{_0x28b047(_0x5946e7['next'](_0x434887));}catch(_0x2cf137){_0x215cf2(_0x2cf137);}}function _0x4b2cbc(_0x24d649){try{_0x28b047(_0x5946e7['throw'](_0x24d649));}catch(_0x16e35d){_0x215cf2(_0x16e35d);}}function _0x28b047(_0x308372){_0x308372['done']?_0x6b42f0(_0x308372['value']):_0x597b7c(_0x308372['value'])['then'](_0xe0070b,_0x4b2cbc);}_0x28b047((_0x5946e7=_0x5946e7['apply'](_0x5cd5bb,_0x23e709||[]))['next']());});};class AdminClient{constructor(_0x18f966='https://admin.searchability.dev/'){var _0x478238=new Fetch(_0x18f966);this['Accounts']=new AccountService(_0x478238),this['Lists']=new ListService(_0x478238),this['ApiKeys']=new ApiKeyService(_0x478238),this['SearchServices']=new SearchServersService(_0x478238),this['FacetService']=new FacetService(_0x478238);}}class AuthClient{constructor(_0x499951='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x499951);}['login'](_0x398a66){return __awaiter(this,void 0,void 0,function*(){const _0x19c60c='login/'+_0x398a66;try{const _0x57fcab=yield yield fetch(_0x19c60c);if(_0x57fcab['status']>0xc7&&_0x57fcab['status']<0x12c){const _0x50b4d7=yield _0x57fcab['json']();return new SuccessfulAuthResponse(_0x50b4d7);}const _0x50d79e=yield _0x57fcab['json']();return new FailedAuthResponse(_0x50d79e);}catch(_0x5dc4f1){if(_0x5dc4f1 instanceof Error)return new FailedAuthResponse({'detail':_0x5dc4f1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5dc4f1;}});}['refresh'](_0x5a923a){return __awaiter(this,void 0,void 0,function*(){const _0x281190='refresh',_0x3f99e0={'refresh_token':_0x5a923a};try{const _0xc5b813=yield this['fetch']['PostNoAuth'](_0x281190,_0x3f99e0);if(_0xc5b813['status']>0xc7&&_0xc5b813['status']<0x12c){const _0xcbe3ad=yield _0xc5b813['json']();return new SuccessfulAuthResponse(_0xcbe3ad);}const _0x57ec90=yield _0xc5b813['json']();return new FailedAuthResponse(_0x57ec90);}catch(_0x20c819){if(_0x20c819 instanceof Error)return new FailedAuthResponse({'detail':_0x20c819['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x20c819;}});}['getTokenStatus'](_0xa17c83){if(Date['now']()<_0xa17c83['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0xa17c83['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
17
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x2b73f8,_0x388aa0,_0x3b6bc8,_0x432dba){function _0x58fa0a(_0x2b5bc0){return _0x2b5bc0 instanceof _0x3b6bc8?_0x2b5bc0:new _0x3b6bc8(function(_0x255bd0){_0x255bd0(_0x2b5bc0);});}return new(_0x3b6bc8||(_0x3b6bc8=Promise))(function(_0x3f34f5,_0x52aa60){function _0x1d10d5(_0x118640){try{_0x2a7ea0(_0x432dba['next'](_0x118640));}catch(_0x429243){_0x52aa60(_0x429243);}}function _0x21187b(_0x1deb48){try{_0x2a7ea0(_0x432dba['throw'](_0x1deb48));}catch(_0x4726c3){_0x52aa60(_0x4726c3);}}function _0x2a7ea0(_0x42c8f7){_0x42c8f7['done']?_0x3f34f5(_0x42c8f7['value']):_0x58fa0a(_0x42c8f7['value'])['then'](_0x1d10d5,_0x21187b);}_0x2a7ea0((_0x432dba=_0x432dba['apply'](_0x2b73f8,_0x388aa0||[]))['next']());});};class SearchResultService{constructor(_0x433fa3){this['fetch']=_0x433fa3,this['path']='search-result';}['create'](_0x5ec9ce,_0x5c8cab,_0x5be6bf,_0x301bc5){return __awaiter$1(this,void 0,void 0,function*(){const _0x25a325={'account_name':_0x5ec9ce,'search_result_name':_0x5be6bf,'list_name':_0x5c8cab};try{const _0x2324b5=yield this['fetch']['post'](this['path'],_0x301bc5,_0x25a325);if(_0x2324b5['status']>0xc7&&_0x2324b5['status']<0x12c){const _0x347703=yield _0x2324b5['json']();return new SuccessfulViewSearchResultResponse(_0x347703);}const _0x35d292=yield _0x2324b5['json']();return new FailedSearchResultResponse(_0x35d292);}catch(_0x3103c0){if(_0x3103c0 instanceof Error)return new FailedSearchResultResponse({'detail':_0x3103c0['message'],'title':_0x3103c0['name'],'status':0x1f4,'instance':'','type':''});throw _0x3103c0;}});}}
18
+
19
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x5765f5,_0xd65ef7,_0x2b8e7f,_0xe23f0d){function _0x5c092a(_0x59f745){return _0x59f745 instanceof _0x2b8e7f?_0x59f745:new _0x2b8e7f(function(_0x229e73){_0x229e73(_0x59f745);});}return new(_0x2b8e7f||(_0x2b8e7f=Promise))(function(_0x1cc64f,_0x57fce9){function _0x58b281(_0x3dc8f6){try{_0x43f4cb(_0xe23f0d['next'](_0x3dc8f6));}catch(_0x5f28b8){_0x57fce9(_0x5f28b8);}}function _0x1105d1(_0x2c0e5f){try{_0x43f4cb(_0xe23f0d['throw'](_0x2c0e5f));}catch(_0x432fc7){_0x57fce9(_0x432fc7);}}function _0x43f4cb(_0x1d71f3){_0x1d71f3['done']?_0x1cc64f(_0x1d71f3['value']):_0x5c092a(_0x1d71f3['value'])['then'](_0x58b281,_0x1105d1);}_0x43f4cb((_0xe23f0d=_0xe23f0d['apply'](_0x5765f5,_0xd65ef7||[]))['next']());});};class AdminClient{constructor(_0x16211a='https://admin.searchability.dev/'){var _0x2da001=new Fetch(_0x16211a);this['Accounts']=new AccountService(_0x2da001),this['Lists']=new ListService(_0x2da001),this['ApiKeys']=new ApiKeyService(_0x2da001),this['SearchServices']=new SearchServersService(_0x2da001),this['FacetService']=new FacetService(_0x2da001),this['SearchResults']=new SearchResultService(_0x2da001);}}class AuthClient{constructor(_0x1af47a='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1af47a);}['login'](_0x4376d0){return __awaiter(this,void 0,void 0,function*(){const _0x551faf='login/'+_0x4376d0;try{const _0x10a48c=yield yield fetch(_0x551faf);if(_0x10a48c['status']>0xc7&&_0x10a48c['status']<0x12c){const _0x2edb1b=yield _0x10a48c['json']();return new SuccessfulAuthResponse(_0x2edb1b);}const _0x3be671=yield _0x10a48c['json']();return new FailedAuthResponse(_0x3be671);}catch(_0x55746c){if(_0x55746c instanceof Error)return new FailedAuthResponse({'detail':_0x55746c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x55746c;}});}['refresh'](_0x1db3cb){return __awaiter(this,void 0,void 0,function*(){const _0x1375d8='refresh',_0x1c07b2={'refresh_token':_0x1db3cb};try{const _0x14dd9b=yield this['fetch']['PostNoAuth'](_0x1375d8,_0x1c07b2);if(_0x14dd9b['status']>0xc7&&_0x14dd9b['status']<0x12c){const _0x1f133f=yield _0x14dd9b['json']();return new SuccessfulAuthResponse(_0x1f133f);}const _0x53d38c=yield _0x14dd9b['json']();return new FailedAuthResponse(_0x53d38c);}catch(_0x5db3e9){if(_0x5db3e9 instanceof Error)return new FailedAuthResponse({'detail':_0x5db3e9['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5db3e9;}});}['getTokenStatus'](_0x4f61c1){if(Date['now']()<_0x4f61c1['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x4f61c1['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
18
20
 
19
21
  exports.AdminClient = AdminClient;
20
22
  exports.AuthClient = AuthClient;
@@ -1,17 +1,19 @@
1
- var TokenStatus;(function(_0x1b868d){_0x1b868d[_0x1b868d['Ok']=0x0]='Ok',_0x1b868d[_0x1b868d['Refresh']=0x1]='Refresh',_0x1b868d[_0x1b868d['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(_0x4dafd0){this['isSuccess']=_0x4dafd0;}}class SuccessfulFacetResponse extends Response{constructor(_0x2055df){super(!![]),this['facet']=_0x2055df;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x167347){super(![]),this['problem']=_0x167347;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x5dd515){super(!![]),this['account']=_0x5dd515;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x367e94){super(!![]),this['list']=_0x367e94;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x2e6d06){super(!![]),this['list']=_0x2e6d06;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3ee3dc){super(![]),this['problem']=_0x3ee3dc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x15850b){super(![]),this['problem']=_0x15850b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x3d956a){super(![]),this['problem']=_0x3d956a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2dc81b){super(!![]),this['tokens']=_0x2dc81b;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1e5b79){super(![]),this['problem']=_0x1e5b79;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x57e83f){super(!![]),this['apiKey']=_0x57e83f;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x2355d8){super(![]),this['problem']=_0x2355d8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x3af772){super(!![]),this['searchService']=_0x3af772;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x36aeb3){super(![]),this['problem']=_0x36aeb3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x15d141){super(!![]),this['searchService']=_0x15d141;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x57f99c){super(!![]),this['searchServices']=_0x57f99c;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x3ea251){super(![]),this['problem']=_0x3ea251;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x11876c){super(![]),this['problem']=_0x11876c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x388f14){super(!![]),this['apiKeyValue']=_0x388f14;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x19f072){super(!![]),this['obj']=_0x19f072;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x4b99d1){super(![]),this['problem']=_0x4b99d1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x2c0590){super(![]),this['problem']=_0x2c0590;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0x4c864d){_0x4c864d[_0x4c864d['Ok']=0x0]='Ok',_0x4c864d[_0x4c864d['Refresh']=0x1]='Refresh',_0x4c864d[_0x4c864d['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(_0x594355){this['isSuccess']=_0x594355;}}class SuccessfulFacetResponse extends Response{constructor(_0x242ce0){super(!![]),this['facet']=_0x242ce0;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x59733b){super(![]),this['problem']=_0x59733b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x20952d){super(!![]),this['account']=_0x20952d;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x16b9f7){super(!![]),this['list']=_0x16b9f7;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x20f00c){super(!![]),this['list']=_0x20f00c;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x5515d5){super(![]),this['problem']=_0x5515d5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x3aa1e8){super(![]),this['problem']=_0x3aa1e8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x18cd9d){super(![]),this['problem']=_0x18cd9d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x4b379d){super(!![]),this['tokens']=_0x4b379d;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x268e4a){super(![]),this['problem']=_0x268e4a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x448de5){super(!![]),this['apiKey']=_0x448de5;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4f746a){super(![]),this['problem']=_0x4f746a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x2ed4d3){super(!![]),this['searchService']=_0x2ed4d3;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x359150){super(![]),this['problem']=_0x359150;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x3440ee){super(!![]),this['searchService']=_0x3440ee;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x4a30c0){super(!![]),this['searchResult']=_0x4a30c0;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x632f8a){super(![]),this['problem']=_0x632f8a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x3ad7d2){super(!![]),this['searchServices']=_0x3ad7d2;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x229432){super(![]),this['problem']=_0x229432;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x412621){super(![]),this['problem']=_0x412621;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0xc3ba96){super(!![]),this['apiKeyValue']=_0xc3ba96;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x196d43){super(!![]),this['obj']=_0x196d43;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x64f61a){super(![]),this['problem']=_0x64f61a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0xeac1ae){super(![]),this['problem']=_0xeac1ae;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x320f65,_0x23dc09,_0x4e2da5,_0x525d15){function _0x304076(_0x3b4bc6){return _0x3b4bc6 instanceof _0x4e2da5?_0x3b4bc6:new _0x4e2da5(function(_0xcf8a08){_0xcf8a08(_0x3b4bc6);});}return new(_0x4e2da5||(_0x4e2da5=Promise))(function(_0x1f7a9f,_0xd11e51){function _0x382df3(_0x62a87e){try{_0x2a729c(_0x525d15['next'](_0x62a87e));}catch(_0x17f32e){_0xd11e51(_0x17f32e);}}function _0x35b914(_0x517037){try{_0x2a729c(_0x525d15['throw'](_0x517037));}catch(_0x4eec10){_0xd11e51(_0x4eec10);}}function _0x2a729c(_0x37c9a8){_0x37c9a8['done']?_0x1f7a9f(_0x37c9a8['value']):_0x304076(_0x37c9a8['value'])['then'](_0x382df3,_0x35b914);}_0x2a729c((_0x525d15=_0x525d15['apply'](_0x320f65,_0x23dc09||[]))['next']());});};class AccountService{constructor(_0x537e1e){this['fetch']=_0x537e1e;}['get'](_0x55cc3f,_0x9a8a5d){return __awaiter$6(this,void 0,void 0,function*(){const _0x56a531='Account/'+_0x55cc3f+'/',_0x1aad80=yield this['fetch']['get'](_0x56a531,_0x9a8a5d);try{if(_0x1aad80['status']>0xc7&&_0x1aad80['status']<0x12c){const _0x10c4d5=yield _0x1aad80['json']();return new SuccessfulAccountResponse(_0x10c4d5);}const _0x204bc2=yield _0x1aad80['json']();return new FailedAccountResponse(_0x204bc2);}catch(_0x33990b){if(_0x33990b instanceof Error)return new FailedAccountResponse({'detail':_0x33990b['message'],'title':_0x33990b['name'],'status':0x1f4,'instance':'','type':''});throw _0x33990b;}});}}
3
+ var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x1098af,_0x4e2fc6,_0x167d4d,_0x19102e){function _0x52b949(_0x8ba3a2){return _0x8ba3a2 instanceof _0x167d4d?_0x8ba3a2:new _0x167d4d(function(_0x5c2376){_0x5c2376(_0x8ba3a2);});}return new(_0x167d4d||(_0x167d4d=Promise))(function(_0x6b5056,_0x520f95){function _0x417b8c(_0x176a90){try{_0x542a26(_0x19102e['next'](_0x176a90));}catch(_0x1a2fd9){_0x520f95(_0x1a2fd9);}}function _0x31398c(_0x4c278a){try{_0x542a26(_0x19102e['throw'](_0x4c278a));}catch(_0x314a46){_0x520f95(_0x314a46);}}function _0x542a26(_0x43c6e0){_0x43c6e0['done']?_0x6b5056(_0x43c6e0['value']):_0x52b949(_0x43c6e0['value'])['then'](_0x417b8c,_0x31398c);}_0x542a26((_0x19102e=_0x19102e['apply'](_0x1098af,_0x4e2fc6||[]))['next']());});};class AccountService{constructor(_0x20fafb){this['fetch']=_0x20fafb;}['get'](_0x47895b,_0x38541e){return __awaiter$7(this,void 0,void 0,function*(){const _0x8c2851='Account/'+_0x47895b+'/',_0x30d832=yield this['fetch']['get'](_0x8c2851,_0x38541e);try{if(_0x30d832['status']>0xc7&&_0x30d832['status']<0x12c){const _0x5d2ac4=yield _0x30d832['json']();return new SuccessfulAccountResponse(_0x5d2ac4);}const _0x4a82bc=yield _0x30d832['json']();return new FailedAccountResponse(_0x4a82bc);}catch(_0xff0b71){if(_0xff0b71 instanceof Error)return new FailedAccountResponse({'detail':_0xff0b71['message'],'title':_0xff0b71['name'],'status':0x1f4,'instance':'','type':''});throw _0xff0b71;}});}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5aeccf,_0x47a4bc,_0x218a2e,_0x2f2175){function _0x1e7339(_0x48f825){return _0x48f825 instanceof _0x218a2e?_0x48f825:new _0x218a2e(function(_0x13ae1b){_0x13ae1b(_0x48f825);});}return new(_0x218a2e||(_0x218a2e=Promise))(function(_0x3137b8,_0x278b9e){function _0x2b23fb(_0x2da22a){try{_0x1fe8c1(_0x2f2175['next'](_0x2da22a));}catch(_0x2fbf17){_0x278b9e(_0x2fbf17);}}function _0x285350(_0x2a7a90){try{_0x1fe8c1(_0x2f2175['throw'](_0x2a7a90));}catch(_0x4a0edd){_0x278b9e(_0x4a0edd);}}function _0x1fe8c1(_0x4aab35){_0x4aab35['done']?_0x3137b8(_0x4aab35['value']):_0x1e7339(_0x4aab35['value'])['then'](_0x2b23fb,_0x285350);}_0x1fe8c1((_0x2f2175=_0x2f2175['apply'](_0x5aeccf,_0x47a4bc||[]))['next']());});};class ApiKeyService{constructor(_0xca097){this['fetch']=_0xca097,this['path']='api-key';}['create'](_0x12d7fd,_0x5b8ad3,_0x245cb9){return __awaiter$5(this,void 0,void 0,function*(){const _0x48f879={'account_name':_0x12d7fd,'api_key_name':_0x5b8ad3};try{const _0x24c95b=yield this['fetch']['post'](this['path'],_0x245cb9,_0x48f879);if(_0x24c95b['status']>0xc7&&_0x24c95b['status']<0x12c){const _0x153721=yield _0x24c95b['json']();return new SuccessfulApiKeyResponse(_0x153721);}const _0x179834=yield _0x24c95b['json']();return new FailedApiKeyResponse(_0x179834);}catch(_0xfe9309){if(_0xfe9309 instanceof Error)return new FailedApiKeyResponse({'detail':_0xfe9309['message'],'title':_0xfe9309['name'],'status':0x1f4,'instance':'','type':''});throw _0xfe9309;}});}['view'](_0x182ba1,_0x153237,_0x473c49){return __awaiter$5(this,void 0,void 0,function*(){const _0x119853=this['path']+'/'+_0x182ba1+'/'+_0x153237;try{const _0x534c92=yield this['fetch']['get'](_0x119853,_0x473c49);if(_0x534c92['status']>0xc7&&_0x534c92['status']<0x12c){const _0x2791a9=yield _0x534c92['json']();return new SuccessfulApiKeyValueResponse(_0x2791a9);}const _0x5e595d=yield _0x534c92['json']();return new FailedApiKeyValueResponse(_0x5e595d);}catch(_0x498c62){if(_0x498c62 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x498c62['message'],'title':_0x498c62['name'],'status':0x1f4,'instance':'','type':''});throw _0x498c62;}});}['delete'](_0x22299a,_0x105545,_0x1942a9){return __awaiter$5(this,void 0,void 0,function*(){const _0x33564a=this['path']+'/'+_0x22299a+'/'+_0x105545;try{const _0x510c79=yield this['fetch']['delete'](_0x33564a,_0x1942a9);if(_0x510c79['status']>0xc7&&_0x510c79['status']<0x12c)return new SuccessfulResponse({});const _0x2518c4=yield _0x510c79['json']();return new FailedResponse(_0x2518c4);}catch(_0x13b5e0){if(_0x13b5e0 instanceof Error)return new FailedResponse({'detail':_0x13b5e0['message'],'title':_0x13b5e0['name'],'status':0x1f4,'instance':'','type':''});throw _0x13b5e0;}});}}
5
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x5600cc,_0x7decae,_0x438755,_0x21b883){function _0x499273(_0x303090){return _0x303090 instanceof _0x438755?_0x303090:new _0x438755(function(_0x5933d8){_0x5933d8(_0x303090);});}return new(_0x438755||(_0x438755=Promise))(function(_0x4df46a,_0x9e7b96){function _0x215509(_0x28e259){try{_0x11ccbc(_0x21b883['next'](_0x28e259));}catch(_0x4b8498){_0x9e7b96(_0x4b8498);}}function _0x23e80a(_0x4714b7){try{_0x11ccbc(_0x21b883['throw'](_0x4714b7));}catch(_0x21d1ae){_0x9e7b96(_0x21d1ae);}}function _0x11ccbc(_0xd44bc1){_0xd44bc1['done']?_0x4df46a(_0xd44bc1['value']):_0x499273(_0xd44bc1['value'])['then'](_0x215509,_0x23e80a);}_0x11ccbc((_0x21b883=_0x21b883['apply'](_0x5600cc,_0x7decae||[]))['next']());});};class ApiKeyService{constructor(_0x311290){this['fetch']=_0x311290,this['path']='api-key';}['create'](_0x445a4b,_0x2d847d,_0x19c70e){return __awaiter$6(this,void 0,void 0,function*(){const _0x11a095={'account_name':_0x445a4b,'api_key_name':_0x2d847d};try{const _0x15ea56=yield this['fetch']['post'](this['path'],_0x19c70e,_0x11a095);if(_0x15ea56['status']>0xc7&&_0x15ea56['status']<0x12c){const _0x2d54f2=yield _0x15ea56['json']();return new SuccessfulApiKeyResponse(_0x2d54f2);}const _0x49c7f7=yield _0x15ea56['json']();return new FailedApiKeyResponse(_0x49c7f7);}catch(_0x336984){if(_0x336984 instanceof Error)return new FailedApiKeyResponse({'detail':_0x336984['message'],'title':_0x336984['name'],'status':0x1f4,'instance':'','type':''});throw _0x336984;}});}['view'](_0xfb72d6,_0x3c61e7,_0x4fbea5){return __awaiter$6(this,void 0,void 0,function*(){const _0x53a49f=this['path']+'/'+_0xfb72d6+'/'+_0x3c61e7;try{const _0x403a73=yield this['fetch']['get'](_0x53a49f,_0x4fbea5);if(_0x403a73['status']>0xc7&&_0x403a73['status']<0x12c){const _0x405919=yield _0x403a73['json']();return new SuccessfulApiKeyValueResponse(_0x405919);}const _0x58f856=yield _0x403a73['json']();return new FailedApiKeyValueResponse(_0x58f856);}catch(_0x58a6ac){if(_0x58a6ac instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x58a6ac['message'],'title':_0x58a6ac['name'],'status':0x1f4,'instance':'','type':''});throw _0x58a6ac;}});}['delete'](_0x5e853a,_0x587126,_0x31df89){return __awaiter$6(this,void 0,void 0,function*(){const _0x55c00=this['path']+'/'+_0x5e853a+'/'+_0x587126;try{const _0x3ab092=yield this['fetch']['delete'](_0x55c00,_0x31df89);if(_0x3ab092['status']>0xc7&&_0x3ab092['status']<0x12c)return new SuccessfulResponse({});const _0x2ca151=yield _0x3ab092['json']();return new FailedResponse(_0x2ca151);}catch(_0x579aa0){if(_0x579aa0 instanceof Error)return new FailedResponse({'detail':_0x579aa0['message'],'title':_0x579aa0['name'],'status':0x1f4,'instance':'','type':''});throw _0x579aa0;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0xc83005,_0x5c945b,_0x9ccc22,_0x34df47){function _0x5b069e(_0x422d22){return _0x422d22 instanceof _0x9ccc22?_0x422d22:new _0x9ccc22(function(_0x3e1494){_0x3e1494(_0x422d22);});}return new(_0x9ccc22||(_0x9ccc22=Promise))(function(_0x11bc3a,_0x1bca57){function _0x1dcedb(_0x18d249){try{_0x364842(_0x34df47['next'](_0x18d249));}catch(_0x5d14c3){_0x1bca57(_0x5d14c3);}}function _0x19785f(_0x1b36fb){try{_0x364842(_0x34df47['throw'](_0x1b36fb));}catch(_0x2de044){_0x1bca57(_0x2de044);}}function _0x364842(_0x2d2b7f){_0x2d2b7f['done']?_0x11bc3a(_0x2d2b7f['value']):_0x5b069e(_0x2d2b7f['value'])['then'](_0x1dcedb,_0x19785f);}_0x364842((_0x34df47=_0x34df47['apply'](_0xc83005,_0x5c945b||[]))['next']());});};class ListService{constructor(_0x2d0ef1){this['fetch']=_0x2d0ef1;}['create'](_0x3d2a16,_0x19d9e7,_0x11cdf9,_0x251dd6){return __awaiter$4(this,void 0,void 0,function*(){const _0x58f611='List',_0x53929f={'account_name':_0x3d2a16,'list_name':_0x19d9e7,'search_service_name':_0x11cdf9};try{const _0x1de945=yield this['fetch']['post'](_0x58f611,_0x251dd6,_0x53929f);if(_0x1de945['status']>0xc7&&_0x1de945['status']<0x12c){const _0x3a3f51=yield _0x1de945['json']();return new SuccessfulListIdentityResponse(_0x3a3f51);}const _0xf0e3cb=yield _0x1de945['json']();return new FailedListIdentityResponse(_0xf0e3cb);}catch(_0x10f01b){if(_0x10f01b instanceof Error)return new FailedListIdentityResponse({'detail':_0x10f01b['message'],'title':_0x10f01b['name'],'status':0x1f4,'instance':'','type':''});throw _0x10f01b;}});}['delete'](_0x54437f,_0x906f5c,_0x5985ab){return __awaiter$4(this,void 0,void 0,function*(){const _0x40dd68='List/'+_0x54437f+'/'+_0x906f5c,_0x1d9aed=yield this['fetch']['delete'](_0x40dd68,_0x5985ab);try{if(_0x1d9aed['status']>0xc7&&_0x1d9aed['status']<0x12c)return new SuccessfulResponse({});const _0x9fe313=yield _0x1d9aed['json']();return new FailedResponse(_0x9fe313);}catch(_0x3265df){if(_0x3265df instanceof Error)return new FailedResponse({'detail':_0x3265df['message'],'title':_0x3265df['name'],'status':0x1f4,'instance':'','type':''});throw _0x3265df;}});}['get'](_0x14d6b0,_0x1e799f,_0xce110c){return __awaiter$4(this,void 0,void 0,function*(){const _0x11f4f7='List/'+_0x14d6b0+'/'+_0x1e799f;try{const _0x56690c=yield this['fetch']['get'](_0x11f4f7,_0xce110c);if(_0x56690c['status']>0xc7&&_0x56690c['status']<0x12c){const _0x1543e9=yield _0x56690c['json']();return new SuccessfulListResponse(_0x1543e9);}const _0x3f85bf=yield _0x56690c['json']();return new FailedListResponse(_0x3f85bf);}catch(_0x2e5139){if(_0x2e5139 instanceof Error)return new FailedListResponse({'detail':_0x2e5139['message'],'title':_0x2e5139['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e5139;}});}}
7
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x102da2,_0x49cfe4,_0x130fff,_0xb0b027){function _0x344e1a(_0x1edf17){return _0x1edf17 instanceof _0x130fff?_0x1edf17:new _0x130fff(function(_0x3d5312){_0x3d5312(_0x1edf17);});}return new(_0x130fff||(_0x130fff=Promise))(function(_0x2e084e,_0x3cb143){function _0x2e1d71(_0x50074f){try{_0x169cc1(_0xb0b027['next'](_0x50074f));}catch(_0x45677b){_0x3cb143(_0x45677b);}}function _0x3f5eb7(_0x3daf15){try{_0x169cc1(_0xb0b027['throw'](_0x3daf15));}catch(_0x28abd1){_0x3cb143(_0x28abd1);}}function _0x169cc1(_0x3ff369){_0x3ff369['done']?_0x2e084e(_0x3ff369['value']):_0x344e1a(_0x3ff369['value'])['then'](_0x2e1d71,_0x3f5eb7);}_0x169cc1((_0xb0b027=_0xb0b027['apply'](_0x102da2,_0x49cfe4||[]))['next']());});};class ListService{constructor(_0x3144ed){this['fetch']=_0x3144ed;}['create'](_0x8c1544,_0x4d8556,_0x37b9a0,_0x2a9698){return __awaiter$5(this,void 0,void 0,function*(){const _0x30290e='List',_0x21aff5={'account_name':_0x8c1544,'list_name':_0x4d8556,'search_service_name':_0x37b9a0};try{const _0xdf2eea=yield this['fetch']['post'](_0x30290e,_0x2a9698,_0x21aff5);if(_0xdf2eea['status']>0xc7&&_0xdf2eea['status']<0x12c){const _0x560e02=yield _0xdf2eea['json']();return new SuccessfulListIdentityResponse(_0x560e02);}const _0x57e61f=yield _0xdf2eea['json']();return new FailedListIdentityResponse(_0x57e61f);}catch(_0x1ebe96){if(_0x1ebe96 instanceof Error)return new FailedListIdentityResponse({'detail':_0x1ebe96['message'],'title':_0x1ebe96['name'],'status':0x1f4,'instance':'','type':''});throw _0x1ebe96;}});}['delete'](_0xd1617f,_0x8796e,_0x2ebdb8){return __awaiter$5(this,void 0,void 0,function*(){const _0x2fae16='List/'+_0xd1617f+'/'+_0x8796e,_0x76e68c=yield this['fetch']['delete'](_0x2fae16,_0x2ebdb8);try{if(_0x76e68c['status']>0xc7&&_0x76e68c['status']<0x12c)return new SuccessfulResponse({});const _0x412eef=yield _0x76e68c['json']();return new FailedResponse(_0x412eef);}catch(_0x465482){if(_0x465482 instanceof Error)return new FailedResponse({'detail':_0x465482['message'],'title':_0x465482['name'],'status':0x1f4,'instance':'','type':''});throw _0x465482;}});}['get'](_0xf33aac,_0x41894d,_0x1fd8c3){return __awaiter$5(this,void 0,void 0,function*(){const _0x59e682='List/'+_0xf33aac+'/'+_0x41894d;try{const _0x2b8cd7=yield this['fetch']['get'](_0x59e682,_0x1fd8c3);if(_0x2b8cd7['status']>0xc7&&_0x2b8cd7['status']<0x12c){const _0x25764a=yield _0x2b8cd7['json']();return new SuccessfulListResponse(_0x25764a);}const _0x7ce666=yield _0x2b8cd7['json']();return new FailedListResponse(_0x7ce666);}catch(_0x1e3dea){if(_0x1e3dea instanceof Error)return new FailedListResponse({'detail':_0x1e3dea['message'],'title':_0x1e3dea['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e3dea;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1e5c56,_0x4c0f9b,_0x2db3b4,_0x436d62){function _0x5550ed(_0xc9842){return _0xc9842 instanceof _0x2db3b4?_0xc9842:new _0x2db3b4(function(_0x2d0e4b){_0x2d0e4b(_0xc9842);});}return new(_0x2db3b4||(_0x2db3b4=Promise))(function(_0x2ec7f7,_0x2f9fb7){function _0xb08620(_0x16b9c7){try{_0x1ec2ef(_0x436d62['next'](_0x16b9c7));}catch(_0x1f5104){_0x2f9fb7(_0x1f5104);}}function _0x157050(_0x18ee2c){try{_0x1ec2ef(_0x436d62['throw'](_0x18ee2c));}catch(_0x2c7147){_0x2f9fb7(_0x2c7147);}}function _0x1ec2ef(_0x3d949b){_0x3d949b['done']?_0x2ec7f7(_0x3d949b['value']):_0x5550ed(_0x3d949b['value'])['then'](_0xb08620,_0x157050);}_0x1ec2ef((_0x436d62=_0x436d62['apply'](_0x1e5c56,_0x4c0f9b||[]))['next']());});};class Fetch{constructor(_0x147ea6){this['baseUri']=_0x147ea6,this['getUrl']=_0x3fc394=>{return _0x3fc394['startsWith']('/')&&(_0x3fc394=_0x3fc394['replace']('/','')),''+this['baseUri']+_0x3fc394;},!_0x147ea6['endsWith']('/')&&(_0x147ea6=_0x147ea6+'/');}['get'](_0x5df740,_0x1b0f31){return __awaiter$3(this,void 0,void 0,function*(){const _0x2c6e21=this['getUrl'](_0x5df740);return yield fetch(_0x2c6e21,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1b0f31}});});}['post'](_0x361883,_0x4c6fd7,_0x110cf2){return __awaiter$3(this,void 0,void 0,function*(){const _0x1415ce=this['getUrl'](_0x361883);return yield fetch(_0x1415ce,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4c6fd7},'body':_0x110cf2?JSON['stringify'](_0x110cf2):null});});}['PostNoAuth'](_0x228aa0,_0x17a2fa){return __awaiter$3(this,void 0,void 0,function*(){const _0x6b28bc=this['getUrl'](_0x228aa0);return yield fetch(_0x6b28bc,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x17a2fa?JSON['stringify'](_0x17a2fa):null});});}['put'](_0x15ea3b,_0x46e489,_0x1c8633){return __awaiter$3(this,void 0,void 0,function*(){const _0x3de71c=this['getUrl'](_0x15ea3b);return yield fetch(_0x3de71c,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x46e489},'body':_0x1c8633?JSON['stringify'](_0x1c8633):null});});}['delete'](_0x58e812,_0x35ac51){return __awaiter$3(this,void 0,void 0,function*(){const _0x328c55=this['getUrl'](_0x58e812);return yield fetch(_0x328c55,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x35ac51}});});}}
9
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x3ee13c,_0x2a22f5,_0x117c2f,_0x2e38fc){function _0x42889a(_0x5c4d09){return _0x5c4d09 instanceof _0x117c2f?_0x5c4d09:new _0x117c2f(function(_0x522391){_0x522391(_0x5c4d09);});}return new(_0x117c2f||(_0x117c2f=Promise))(function(_0x6426a1,_0x548f28){function _0x38f9ff(_0x550cfd){try{_0x4d7518(_0x2e38fc['next'](_0x550cfd));}catch(_0x2c2f00){_0x548f28(_0x2c2f00);}}function _0x5ece99(_0x1b1f37){try{_0x4d7518(_0x2e38fc['throw'](_0x1b1f37));}catch(_0x36f1e6){_0x548f28(_0x36f1e6);}}function _0x4d7518(_0x13f03a){_0x13f03a['done']?_0x6426a1(_0x13f03a['value']):_0x42889a(_0x13f03a['value'])['then'](_0x38f9ff,_0x5ece99);}_0x4d7518((_0x2e38fc=_0x2e38fc['apply'](_0x3ee13c,_0x2a22f5||[]))['next']());});};class Fetch{constructor(_0xa81607){this['baseUri']=_0xa81607,this['getUrl']=_0x4963fe=>{return _0x4963fe['startsWith']('/')&&(_0x4963fe=_0x4963fe['replace']('/','')),''+this['baseUri']+_0x4963fe;},!_0xa81607['endsWith']('/')&&(_0xa81607=_0xa81607+'/');}['get'](_0x5768cf,_0x328043){return __awaiter$4(this,void 0,void 0,function*(){const _0x4e83c5=this['getUrl'](_0x5768cf);return yield fetch(_0x4e83c5,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x328043}});});}['post'](_0x2ef0fd,_0xcd36dc,_0x11eda9){return __awaiter$4(this,void 0,void 0,function*(){const _0x14bb92=this['getUrl'](_0x2ef0fd);return yield fetch(_0x14bb92,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xcd36dc},'body':_0x11eda9?JSON['stringify'](_0x11eda9):null});});}['PostNoAuth'](_0x469074,_0x3ccf9f){return __awaiter$4(this,void 0,void 0,function*(){const _0x2482e9=this['getUrl'](_0x469074);return yield fetch(_0x2482e9,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x3ccf9f?JSON['stringify'](_0x3ccf9f):null});});}['put'](_0x7970bb,_0xaf8a90,_0x30bd73){return __awaiter$4(this,void 0,void 0,function*(){const _0x51950e=this['getUrl'](_0x7970bb);return yield fetch(_0x51950e,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xaf8a90},'body':_0x30bd73?JSON['stringify'](_0x30bd73):null});});}['delete'](_0x1c4347,_0x5b5b41){return __awaiter$4(this,void 0,void 0,function*(){const _0x3423c6=this['getUrl'](_0x1c4347);return yield fetch(_0x3423c6,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5b5b41}});});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x427ae4,_0x587d33,_0x38eb3b,_0xf4f8b){function _0x2b8306(_0x3930f6){return _0x3930f6 instanceof _0x38eb3b?_0x3930f6:new _0x38eb3b(function(_0x479830){_0x479830(_0x3930f6);});}return new(_0x38eb3b||(_0x38eb3b=Promise))(function(_0x342501,_0x5be580){function _0x4173b0(_0x23e508){try{_0x509f05(_0xf4f8b['next'](_0x23e508));}catch(_0x3c7c3d){_0x5be580(_0x3c7c3d);}}function _0x648651(_0x4b735c){try{_0x509f05(_0xf4f8b['throw'](_0x4b735c));}catch(_0x15cf8a){_0x5be580(_0x15cf8a);}}function _0x509f05(_0x57a5cb){_0x57a5cb['done']?_0x342501(_0x57a5cb['value']):_0x2b8306(_0x57a5cb['value'])['then'](_0x4173b0,_0x648651);}_0x509f05((_0xf4f8b=_0xf4f8b['apply'](_0x427ae4,_0x587d33||[]))['next']());});};class SearchServersService{constructor(_0x3e8537){this['fetch']=_0x3e8537,this['path']='search-services';}['create'](_0x252cf7,_0x234599,_0x113351,_0x24de75,_0x452aa0,_0x258416,_0x37e25a,_0x4bfe1b){return __awaiter$2(this,void 0,void 0,function*(){const _0x114d74={'account_name':_0x252cf7,'search_service_name':_0x234599,'endpoint':_0x113351,'key':_0x24de75,'country':_0x452aa0,'provider':_0x258416,'index_name':_0x37e25a};try{const _0x59930b=yield this['fetch']['post'](this['path'],_0x4bfe1b,_0x114d74);if(_0x59930b['status']>0xc7&&_0x59930b['status']<0x12c){const _0x3be1fc=yield _0x59930b['json']();return new SuccessfulSearchServiceResponse(_0x3be1fc);}const _0x43c7e9=yield _0x59930b['json']();return new FailedSearchServiceResponse(_0x43c7e9);}catch(_0x133688){if(_0x133688 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x133688['message'],'title':_0x133688['name'],'status':0x1f4,'instance':'','type':''});throw _0x133688;}});}['delete'](_0x396fca,_0x6b140,_0x4392d0){return __awaiter$2(this,void 0,void 0,function*(){const _0x4afcf1=this['path']+'/'+_0x396fca+'/'+_0x6b140;try{const _0x35c227=yield this['fetch']['delete'](_0x4afcf1,_0x4392d0);if(_0x35c227['status']>0xc7&&_0x35c227['status']<0x12c)return new SuccessfulResponse({});const _0x1800aa=yield _0x35c227['json']();return new FailedResponse(_0x1800aa);}catch(_0x30b72d){if(_0x30b72d instanceof Error)return new FailedResponse({'detail':_0x30b72d['message'],'title':_0x30b72d['name'],'status':0x1f4,'instance':'','type':''});throw _0x30b72d;}});}['view'](_0x3b9e3e,_0x2a8831,_0x51507c){return __awaiter$2(this,void 0,void 0,function*(){const _0x177886=this['path']+'/'+_0x3b9e3e+'/'+_0x2a8831;try{const _0x3499cb=yield this['fetch']['get'](_0x177886,_0x51507c);if(_0x3499cb['status']>0xc7&&_0x3499cb['status']<0x12c){const _0x7ba2fc=yield _0x3499cb['json']();return new SuccessfulViewSearchServiceResponse(_0x7ba2fc);}const _0x55ab11=yield _0x3499cb['json']();return new FailedViewSearchServiceResponse(_0x55ab11);}catch(_0x48716e){if(_0x48716e instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x48716e['message'],'title':_0x48716e['name'],'status':0x1f4,'instance':'','type':''});throw _0x48716e;}});}['edit'](_0x1eea81,_0x5cf9bb,_0x1f6dd2,_0x510612,_0x5d6717,_0xabaa26){return __awaiter$2(this,void 0,void 0,function*(){const _0x4b1d08={'account_name':_0x1eea81,'search_service_name':_0x5cf9bb,'new_search_service_name':_0x1f6dd2,'key':_0x510612,'country':_0x5d6717};try{const _0x2cfb54=yield this['fetch']['put'](this['path'],_0xabaa26,_0x4b1d08);if(_0x2cfb54['status']>0xc7&&_0x2cfb54['status']<0x12c){const _0x586cf1=yield _0x2cfb54['json']();return new SuccessfulSearchServiceResponse(_0x586cf1);}const _0x35710a=yield _0x2cfb54['json']();return new FailedSearchServiceResponse(_0x35710a);}catch(_0x27d6f7){if(_0x27d6f7 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x27d6f7['message'],'title':_0x27d6f7['name'],'status':0x1f4,'instance':'','type':''});throw _0x27d6f7;}});}['list'](_0x6950e,_0x140936){return __awaiter$2(this,void 0,void 0,function*(){const _0x34b5ce=this['path']+'/'+_0x6950e;try{const _0x11d779=yield this['fetch']['get'](_0x34b5ce,_0x140936);if(_0x11d779['status']>0xc7&&_0x11d779['status']<0x12c){const _0x48243b=yield _0x11d779['json']();return new SuccessfulListSearchServiceResponse(_0x48243b);}const _0x7c953b=yield _0x11d779['json']();return new FailedViewSearchServicesResponse(_0x7c953b);}catch(_0x3be2e6){if(_0x3be2e6 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x3be2e6['message'],'title':_0x3be2e6['name'],'status':0x1f4,'instance':'','type':''});throw _0x3be2e6;}});}}
11
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x28f5be,_0x1aace8,_0x474bab,_0x10e44f){function _0x286960(_0x8015ca){return _0x8015ca instanceof _0x474bab?_0x8015ca:new _0x474bab(function(_0x1f4b3f){_0x1f4b3f(_0x8015ca);});}return new(_0x474bab||(_0x474bab=Promise))(function(_0x1fe9c1,_0x12f0ca){function _0x51b149(_0x404ecd){try{_0x124ba3(_0x10e44f['next'](_0x404ecd));}catch(_0x464745){_0x12f0ca(_0x464745);}}function _0x36d55c(_0x124c92){try{_0x124ba3(_0x10e44f['throw'](_0x124c92));}catch(_0x206890){_0x12f0ca(_0x206890);}}function _0x124ba3(_0x1d342b){_0x1d342b['done']?_0x1fe9c1(_0x1d342b['value']):_0x286960(_0x1d342b['value'])['then'](_0x51b149,_0x36d55c);}_0x124ba3((_0x10e44f=_0x10e44f['apply'](_0x28f5be,_0x1aace8||[]))['next']());});};class SearchServersService{constructor(_0x287178){this['fetch']=_0x287178,this['path']='search-services';}['create'](_0x4ead30,_0x141ca5,_0x429b0d,_0x2ae290,_0x37f833,_0x2c2f6b,_0xb30703,_0xf41632){return __awaiter$3(this,void 0,void 0,function*(){const _0x165ea7={'account_name':_0x4ead30,'search_service_name':_0x141ca5,'endpoint':_0x429b0d,'key':_0x2ae290,'country':_0x37f833,'provider':_0x2c2f6b,'index_name':_0xb30703};try{const _0x1305ad=yield this['fetch']['post'](this['path'],_0xf41632,_0x165ea7);if(_0x1305ad['status']>0xc7&&_0x1305ad['status']<0x12c){const _0xc266f5=yield _0x1305ad['json']();return new SuccessfulSearchServiceResponse(_0xc266f5);}const _0x195a63=yield _0x1305ad['json']();return new FailedSearchServiceResponse(_0x195a63);}catch(_0x196ad8){if(_0x196ad8 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x196ad8['message'],'title':_0x196ad8['name'],'status':0x1f4,'instance':'','type':''});throw _0x196ad8;}});}['delete'](_0x40fb48,_0x269f0b,_0x6f750e){return __awaiter$3(this,void 0,void 0,function*(){const _0x58b71b=this['path']+'/'+_0x40fb48+'/'+_0x269f0b;try{const _0x5e493e=yield this['fetch']['delete'](_0x58b71b,_0x6f750e);if(_0x5e493e['status']>0xc7&&_0x5e493e['status']<0x12c)return new SuccessfulResponse({});const _0x4f2bf1=yield _0x5e493e['json']();return new FailedResponse(_0x4f2bf1);}catch(_0x546649){if(_0x546649 instanceof Error)return new FailedResponse({'detail':_0x546649['message'],'title':_0x546649['name'],'status':0x1f4,'instance':'','type':''});throw _0x546649;}});}['view'](_0x41f549,_0x30835c,_0x5dfc82){return __awaiter$3(this,void 0,void 0,function*(){const _0x49c772=this['path']+'/'+_0x41f549+'/'+_0x30835c;try{const _0xbdcfc7=yield this['fetch']['get'](_0x49c772,_0x5dfc82);if(_0xbdcfc7['status']>0xc7&&_0xbdcfc7['status']<0x12c){const _0x88201f=yield _0xbdcfc7['json']();return new SuccessfulViewSearchServiceResponse(_0x88201f);}const _0x58c992=yield _0xbdcfc7['json']();return new FailedViewSearchServiceResponse(_0x58c992);}catch(_0xc9e83c){if(_0xc9e83c instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0xc9e83c['message'],'title':_0xc9e83c['name'],'status':0x1f4,'instance':'','type':''});throw _0xc9e83c;}});}['edit'](_0x21090e,_0x307936,_0x446ec1,_0x5f4529,_0x5e5fb0,_0x24e03e){return __awaiter$3(this,void 0,void 0,function*(){const _0x5d9dde={'account_name':_0x21090e,'search_service_name':_0x307936,'new_search_service_name':_0x446ec1,'key':_0x5f4529,'country':_0x5e5fb0};try{const _0x3bdd46=yield this['fetch']['put'](this['path'],_0x24e03e,_0x5d9dde);if(_0x3bdd46['status']>0xc7&&_0x3bdd46['status']<0x12c){const _0x1ac8fa=yield _0x3bdd46['json']();return new SuccessfulSearchServiceResponse(_0x1ac8fa);}const _0x404655=yield _0x3bdd46['json']();return new FailedSearchServiceResponse(_0x404655);}catch(_0x433175){if(_0x433175 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x433175['message'],'title':_0x433175['name'],'status':0x1f4,'instance':'','type':''});throw _0x433175;}});}['list'](_0x319eb2,_0x1ced34){return __awaiter$3(this,void 0,void 0,function*(){const _0x520c56=this['path']+'/'+_0x319eb2;try{const _0x46a1da=yield this['fetch']['get'](_0x520c56,_0x1ced34);if(_0x46a1da['status']>0xc7&&_0x46a1da['status']<0x12c){const _0xc16006=yield _0x46a1da['json']();return new SuccessfulListSearchServiceResponse(_0xc16006);}const _0xce8a78=yield _0x46a1da['json']();return new FailedViewSearchServicesResponse(_0xce8a78);}catch(_0x1c81a5){if(_0x1c81a5 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x1c81a5['message'],'title':_0x1c81a5['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c81a5;}});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x84710,_0x24ce6d,_0x4f5a4f,_0x2034b3){function _0x576866(_0x2ef6ac){return _0x2ef6ac instanceof _0x4f5a4f?_0x2ef6ac:new _0x4f5a4f(function(_0x5e6758){_0x5e6758(_0x2ef6ac);});}return new(_0x4f5a4f||(_0x4f5a4f=Promise))(function(_0xb0e264,_0x12dc6b){function _0x54f8da(_0xed34df){try{_0x4843ea(_0x2034b3['next'](_0xed34df));}catch(_0x24d3e7){_0x12dc6b(_0x24d3e7);}}function _0x5ab9a2(_0x5006c2){try{_0x4843ea(_0x2034b3['throw'](_0x5006c2));}catch(_0x1d7c68){_0x12dc6b(_0x1d7c68);}}function _0x4843ea(_0x349002){_0x349002['done']?_0xb0e264(_0x349002['value']):_0x576866(_0x349002['value'])['then'](_0x54f8da,_0x5ab9a2);}_0x4843ea((_0x2034b3=_0x2034b3['apply'](_0x84710,_0x24ce6d||[]))['next']());});};class FacetService{constructor(_0x14e197){this['fetch']=_0x14e197,this['path']='facet';}['create'](_0x269497,_0x570103,_0x3981fa,_0x4aecaf){return __awaiter$1(this,void 0,void 0,function*(){const _0x184671={'account_name':_0x269497,'list_name':_0x570103,'facet_name':_0x3981fa};try{const _0x2617a6=yield this['fetch']['post'](this['path'],_0x4aecaf,_0x184671);if(_0x2617a6['status']>0xc7&&_0x2617a6['status']<0x12c){const _0x38966a=yield _0x2617a6['json']();return new SuccessfulFacetResponse(_0x38966a);}const _0x3661de=yield _0x2617a6['json']();return new FailedFacetResponse(_0x3661de);}catch(_0x578881){if(_0x578881 instanceof Error)return new FailedFacetResponse({'detail':_0x578881['message'],'title':_0x578881['name'],'status':0x1f4,'instance':'','type':''});throw _0x578881;}});}['remove'](_0x2b8e1b,_0x5526e6,_0x12809e,_0x45c466){return __awaiter$1(this,void 0,void 0,function*(){const _0x436407='Facet/'+_0x2b8e1b+'/'+_0x5526e6+'/'+_0x12809e,_0x3ee7ea=yield this['fetch']['delete'](_0x436407,_0x45c466);try{if(_0x3ee7ea['status']>0xc7&&_0x3ee7ea['status']<0x12c)return new SuccessfulResponse({});const _0x44eaa4=yield _0x3ee7ea['json']();return new FailedResponse(_0x44eaa4);}catch(_0x1fffae){if(_0x1fffae instanceof Error)return new FailedResponse({'detail':_0x1fffae['message'],'title':_0x1fffae['name'],'status':0x1f4,'instance':'','type':''});throw _0x1fffae;}});}['rename'](_0x46e6bb,_0x1b1c66,_0x15afb9,_0x129af6,_0x4da184){return __awaiter$1(this,void 0,void 0,function*(){const _0x40a500={'account_name':_0x46e6bb,'list_name':_0x1b1c66,'facet_name':_0x15afb9,'rename_facet_name':_0x129af6};try{const _0x321b23=yield this['fetch']['put'](this['path'],_0x4da184,_0x40a500);if(_0x321b23['status']>0xc7&&_0x321b23['status']<0x12c){const _0x34258c=yield _0x321b23['json']();return new SuccessfulFacetResponse(_0x34258c);}const _0x4e453a=yield _0x321b23['json']();return new FailedFacetResponse(_0x4e453a);}catch(_0x194406){if(_0x194406 instanceof Error)return new FailedFacetResponse({'detail':_0x194406['message'],'title':_0x194406['name'],'status':0x1f4,'instance':'','type':''});throw _0x194406;}});}}
13
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x312362,_0x4866db,_0x4e8b3d,_0x801721){function _0x5e4a6b(_0x56c4d0){return _0x56c4d0 instanceof _0x4e8b3d?_0x56c4d0:new _0x4e8b3d(function(_0x23b12f){_0x23b12f(_0x56c4d0);});}return new(_0x4e8b3d||(_0x4e8b3d=Promise))(function(_0x203d65,_0x35f15a){function _0x4fa2e1(_0x5911a8){try{_0x220a98(_0x801721['next'](_0x5911a8));}catch(_0x43466c){_0x35f15a(_0x43466c);}}function _0x2c7f00(_0x29f3ce){try{_0x220a98(_0x801721['throw'](_0x29f3ce));}catch(_0x83cbea){_0x35f15a(_0x83cbea);}}function _0x220a98(_0x207fca){_0x207fca['done']?_0x203d65(_0x207fca['value']):_0x5e4a6b(_0x207fca['value'])['then'](_0x4fa2e1,_0x2c7f00);}_0x220a98((_0x801721=_0x801721['apply'](_0x312362,_0x4866db||[]))['next']());});};class FacetService{constructor(_0x1e134c){this['fetch']=_0x1e134c,this['path']='facet';}['create'](_0x48fb31,_0x414a25,_0x4da087,_0x162608){return __awaiter$2(this,void 0,void 0,function*(){const _0x5551e9={'account_name':_0x48fb31,'list_name':_0x414a25,'facet_name':_0x4da087};try{const _0xf6a6e5=yield this['fetch']['post'](this['path'],_0x162608,_0x5551e9);if(_0xf6a6e5['status']>0xc7&&_0xf6a6e5['status']<0x12c){const _0x4e9cfe=yield _0xf6a6e5['json']();return new SuccessfulFacetResponse(_0x4e9cfe);}const _0x3d2c34=yield _0xf6a6e5['json']();return new FailedFacetResponse(_0x3d2c34);}catch(_0x309db6){if(_0x309db6 instanceof Error)return new FailedFacetResponse({'detail':_0x309db6['message'],'title':_0x309db6['name'],'status':0x1f4,'instance':'','type':''});throw _0x309db6;}});}['remove'](_0x177859,_0x38c52c,_0x5f1847,_0x40a609){return __awaiter$2(this,void 0,void 0,function*(){const _0x62fc1='Facet/'+_0x177859+'/'+_0x38c52c+'/'+_0x5f1847,_0x34183e=yield this['fetch']['delete'](_0x62fc1,_0x40a609);try{if(_0x34183e['status']>0xc7&&_0x34183e['status']<0x12c)return new SuccessfulResponse({});const _0x15a7da=yield _0x34183e['json']();return new FailedResponse(_0x15a7da);}catch(_0x413809){if(_0x413809 instanceof Error)return new FailedResponse({'detail':_0x413809['message'],'title':_0x413809['name'],'status':0x1f4,'instance':'','type':''});throw _0x413809;}});}['rename'](_0x557904,_0x3e263a,_0x3635c5,_0x3edc63,_0x4e6d11){return __awaiter$2(this,void 0,void 0,function*(){const _0x16b9bf={'account_name':_0x557904,'list_name':_0x3e263a,'facet_name':_0x3635c5,'new_facet_name':_0x3edc63};try{const _0x1d6bd0=yield this['fetch']['put'](this['path'],_0x4e6d11,_0x16b9bf);if(_0x1d6bd0['status']>0xc7&&_0x1d6bd0['status']<0x12c){const _0x244120=yield _0x1d6bd0['json']();return new SuccessfulFacetResponse(_0x244120);}const _0x1221e5=yield _0x1d6bd0['json']();return new FailedFacetResponse(_0x1221e5);}catch(_0x34810d){if(_0x34810d instanceof Error)return new FailedFacetResponse({'detail':_0x34810d['message'],'title':_0x34810d['name'],'status':0x1f4,'instance':'','type':''});throw _0x34810d;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x176246,_0x497ad0,_0x380e12,_0x51f623){function _0x397b3c(_0x5a3c7a){return _0x5a3c7a instanceof _0x380e12?_0x5a3c7a:new _0x380e12(function(_0x5aa195){_0x5aa195(_0x5a3c7a);});}return new(_0x380e12||(_0x380e12=Promise))(function(_0x530898,_0x2afd22){function _0x693b04(_0x555c74){try{_0x1872e9(_0x51f623['next'](_0x555c74));}catch(_0x19c2ed){_0x2afd22(_0x19c2ed);}}function _0x43c468(_0x4dd318){try{_0x1872e9(_0x51f623['throw'](_0x4dd318));}catch(_0x3a0d7d){_0x2afd22(_0x3a0d7d);}}function _0x1872e9(_0x5394d3){_0x5394d3['done']?_0x530898(_0x5394d3['value']):_0x397b3c(_0x5394d3['value'])['then'](_0x693b04,_0x43c468);}_0x1872e9((_0x51f623=_0x51f623['apply'](_0x176246,_0x497ad0||[]))['next']());});};class AdminClient{constructor(_0x466acb='https://admin.searchability.dev/'){var _0x1e089b=new Fetch(_0x466acb);this['Accounts']=new AccountService(_0x1e089b),this['Lists']=new ListService(_0x1e089b),this['ApiKeys']=new ApiKeyService(_0x1e089b),this['SearchServices']=new SearchServersService(_0x1e089b),this['FacetService']=new FacetService(_0x1e089b);}}class AuthClient{constructor(_0x1a0096='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1a0096);}['login'](_0x4a4987){return __awaiter(this,void 0,void 0,function*(){const _0x4b58ad='login/'+_0x4a4987;try{const _0x150746=yield yield fetch(_0x4b58ad);if(_0x150746['status']>0xc7&&_0x150746['status']<0x12c){const _0x5b29fe=yield _0x150746['json']();return new SuccessfulAuthResponse(_0x5b29fe);}const _0x4ac44d=yield _0x150746['json']();return new FailedAuthResponse(_0x4ac44d);}catch(_0x557e3b){if(_0x557e3b instanceof Error)return new FailedAuthResponse({'detail':_0x557e3b['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x557e3b;}});}['refresh'](_0x2e18cf){return __awaiter(this,void 0,void 0,function*(){const _0x4e1b6f='refresh',_0xce107e={'refresh_token':_0x2e18cf};try{const _0x5e0d4c=yield this['fetch']['PostNoAuth'](_0x4e1b6f,_0xce107e);if(_0x5e0d4c['status']>0xc7&&_0x5e0d4c['status']<0x12c){const _0x36ccc9=yield _0x5e0d4c['json']();return new SuccessfulAuthResponse(_0x36ccc9);}const _0x4da032=yield _0x5e0d4c['json']();return new FailedAuthResponse(_0x4da032);}catch(_0x34388a){if(_0x34388a instanceof Error)return new FailedAuthResponse({'detail':_0x34388a['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x34388a;}});}['getTokenStatus'](_0x5d3bbe){if(Date['now']()<_0x5d3bbe['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x5d3bbe['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
15
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x170d5b,_0x30eb8a,_0x409d8d,_0x3ba7d1){function _0x496bf8(_0x5c1590){return _0x5c1590 instanceof _0x409d8d?_0x5c1590:new _0x409d8d(function(_0x4b52ad){_0x4b52ad(_0x5c1590);});}return new(_0x409d8d||(_0x409d8d=Promise))(function(_0x126cda,_0x4c99e1){function _0x2bc354(_0x1ffb79){try{_0x58ba47(_0x3ba7d1['next'](_0x1ffb79));}catch(_0x20ae5d){_0x4c99e1(_0x20ae5d);}}function _0x34448b(_0x3cc502){try{_0x58ba47(_0x3ba7d1['throw'](_0x3cc502));}catch(_0x491087){_0x4c99e1(_0x491087);}}function _0x58ba47(_0x28615e){_0x28615e['done']?_0x126cda(_0x28615e['value']):_0x496bf8(_0x28615e['value'])['then'](_0x2bc354,_0x34448b);}_0x58ba47((_0x3ba7d1=_0x3ba7d1['apply'](_0x170d5b,_0x30eb8a||[]))['next']());});};class SearchResultService{constructor(_0x1aafc6){this['fetch']=_0x1aafc6,this['path']='search-result';}['create'](_0x3fbdeb,_0x5afb84,_0x32d7ef,_0x220039){return __awaiter$1(this,void 0,void 0,function*(){const _0x4c99f3={'account_name':_0x3fbdeb,'search_result_name':_0x32d7ef,'list_name':_0x5afb84};try{const _0x2dcb22=yield this['fetch']['post'](this['path'],_0x220039,_0x4c99f3);if(_0x2dcb22['status']>0xc7&&_0x2dcb22['status']<0x12c){const _0x5999fa=yield _0x2dcb22['json']();return new SuccessfulViewSearchResultResponse(_0x5999fa);}const _0x28e0ee=yield _0x2dcb22['json']();return new FailedSearchResultResponse(_0x28e0ee);}catch(_0x5ee483){if(_0x5ee483 instanceof Error)return new FailedSearchResultResponse({'detail':_0x5ee483['message'],'title':_0x5ee483['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ee483;}});}}
16
+
17
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x2fb7e3,_0xa88b63,_0x197553,_0x4eb24d){function _0x2e4fe7(_0x17c533){return _0x17c533 instanceof _0x197553?_0x17c533:new _0x197553(function(_0x2d1845){_0x2d1845(_0x17c533);});}return new(_0x197553||(_0x197553=Promise))(function(_0xafe079,_0x599f83){function _0x3cf954(_0x4a01bd){try{_0x1c091b(_0x4eb24d['next'](_0x4a01bd));}catch(_0x4d0510){_0x599f83(_0x4d0510);}}function _0x4d0e1e(_0x3c5270){try{_0x1c091b(_0x4eb24d['throw'](_0x3c5270));}catch(_0x482385){_0x599f83(_0x482385);}}function _0x1c091b(_0x56a711){_0x56a711['done']?_0xafe079(_0x56a711['value']):_0x2e4fe7(_0x56a711['value'])['then'](_0x3cf954,_0x4d0e1e);}_0x1c091b((_0x4eb24d=_0x4eb24d['apply'](_0x2fb7e3,_0xa88b63||[]))['next']());});};class AdminClient{constructor(_0xce96f0='https://admin.searchability.dev/'){var _0x4a8dbc=new Fetch(_0xce96f0);this['Accounts']=new AccountService(_0x4a8dbc),this['Lists']=new ListService(_0x4a8dbc),this['ApiKeys']=new ApiKeyService(_0x4a8dbc),this['SearchServices']=new SearchServersService(_0x4a8dbc),this['FacetService']=new FacetService(_0x4a8dbc),this['SearchResults']=new SearchResultService(_0x4a8dbc);}}class AuthClient{constructor(_0x42d971='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x42d971);}['login'](_0x3a2a8c){return __awaiter(this,void 0,void 0,function*(){const _0x4e87a1='login/'+_0x3a2a8c;try{const _0x81814a=yield yield fetch(_0x4e87a1);if(_0x81814a['status']>0xc7&&_0x81814a['status']<0x12c){const _0x56e58a=yield _0x81814a['json']();return new SuccessfulAuthResponse(_0x56e58a);}const _0x227e37=yield _0x81814a['json']();return new FailedAuthResponse(_0x227e37);}catch(_0x6891c5){if(_0x6891c5 instanceof Error)return new FailedAuthResponse({'detail':_0x6891c5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x6891c5;}});}['refresh'](_0x435b40){return __awaiter(this,void 0,void 0,function*(){const _0x6ce04e='refresh',_0x5d922a={'refresh_token':_0x435b40};try{const _0x19e5b0=yield this['fetch']['PostNoAuth'](_0x6ce04e,_0x5d922a);if(_0x19e5b0['status']>0xc7&&_0x19e5b0['status']<0x12c){const _0x3b634a=yield _0x19e5b0['json']();return new SuccessfulAuthResponse(_0x3b634a);}const _0x4d7824=yield _0x19e5b0['json']();return new FailedAuthResponse(_0x4d7824);}catch(_0xfe3ccf){if(_0xfe3ccf instanceof Error)return new FailedAuthResponse({'detail':_0xfe3ccf['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xfe3ccf;}});}['getTokenStatus'](_0x47ee8c){if(Date['now']()<_0x47ee8c['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x47ee8c['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
18
 
17
19
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -49,7 +49,14 @@ declare class FacetService {
49
49
  constructor(fetch: Fetch);
50
50
  create(account_name: string, list_name: string, facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
51
51
  remove(account_name: string, list_name: string, facet_name: string, access_token: string): Promise<Response<any, Problem>>;
52
- rename(account_name: string, list_name: string, facet_name: string, rename_facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
52
+ rename(account_name: string, list_name: string, facet_name: string, new_facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
53
+ }
54
+
55
+ declare class SearchResultService {
56
+ private readonly fetch;
57
+ private readonly path;
58
+ constructor(fetch: Fetch);
59
+ create(account_name: string, list_name: string, search_result_name: string, access_token: string): Promise<Response<SearchResult, Problem>>;
53
60
  }
54
61
 
55
62
  declare class AdminClient {
@@ -59,6 +66,7 @@ declare class AdminClient {
59
66
  readonly ApiKeys: ApiKeyService;
60
67
  readonly SearchServices: SearchServersService;
61
68
  readonly FacetService: FacetService;
69
+ readonly SearchResults: SearchResultService;
62
70
  }
63
71
  declare class AuthClient {
64
72
  private readonly fetch;
@@ -107,6 +115,13 @@ type Facet = {
107
115
  facet_id: string;
108
116
  facet_name: string;
109
117
  };
118
+ type SearchResult = {
119
+ id: string;
120
+ account_name: string;
121
+ list_name: string;
122
+ search_result_name: string;
123
+ description: string;
124
+ };
110
125
  type SearchService = {
111
126
  search_service_name: string;
112
127
  created: number;
@@ -235,6 +250,18 @@ declare class SuccessfulViewSearchServiceResponse extends Response<SearchService
235
250
  toSuccess(): SearchServiceDetails;
236
251
  toProblem(): Problem;
237
252
  }
253
+ declare class SuccessfulViewSearchResultResponse extends Response<SearchResult, Problem> {
254
+ readonly searchResult: SearchResult;
255
+ constructor(searchResult: SearchResult);
256
+ toSuccess(): SearchResult;
257
+ toProblem(): Problem;
258
+ }
259
+ declare class FailedSearchResultResponse extends Response<SearchResult, Problem> {
260
+ readonly problem: Problem;
261
+ constructor(problem: Problem);
262
+ toSuccess(): SearchResult;
263
+ toProblem(): Problem;
264
+ }
238
265
  declare class SuccessfulListSearchServiceResponse extends Response<SearchService[], Problem> {
239
266
  readonly searchServices: SearchService[];
240
267
  constructor(searchServices: SearchService[]);
@@ -278,4 +305,4 @@ declare class FailedApiKeyValueResponse extends Response<ApiKeyValue, Problem> {
278
305
  toProblem(): Problem;
279
306
  }
280
307
 
281
- export { type Account, AdminClient, type ApiKey, type ApiKeyValue, AuthClient, type Error, type Facet, FailedAccountResponse, FailedApiKeyResponse, FailedApiKeyValueResponse, FailedAuthResponse, FailedFacetResponse, FailedListIdentityResponse, FailedListResponse, FailedResponse, FailedSearchServiceResponse, FailedViewSearchServiceResponse, FailedViewSearchServicesResponse, type List, type ListIdentity, type Problem, type RefreshRequest, Response, type SearchService, type SearchServiceDetails, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulApiKeyValueResponse, SuccessfulAuthResponse, SuccessfulFacetResponse, SuccessfulListIdentityResponse, SuccessfulListResponse, SuccessfulListSearchServiceResponse, SuccessfulResponse, SuccessfulSearchServiceResponse, SuccessfulViewSearchServiceResponse, TokenStatus, Tokens };
308
+ export { type Account, AdminClient, type ApiKey, type ApiKeyValue, AuthClient, type Error, type Facet, FailedAccountResponse, FailedApiKeyResponse, FailedApiKeyValueResponse, FailedAuthResponse, FailedFacetResponse, FailedListIdentityResponse, FailedListResponse, FailedResponse, FailedSearchResultResponse, FailedSearchServiceResponse, FailedViewSearchServiceResponse, FailedViewSearchServicesResponse, type List, type ListIdentity, type Problem, type RefreshRequest, Response, type SearchResult, type SearchService, type SearchServiceDetails, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulApiKeyValueResponse, SuccessfulAuthResponse, SuccessfulFacetResponse, SuccessfulListIdentityResponse, SuccessfulListResponse, SuccessfulListSearchServiceResponse, SuccessfulResponse, SuccessfulSearchServiceResponse, SuccessfulViewSearchResultResponse, SuccessfulViewSearchServiceResponse, TokenStatus, Tokens };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -1,17 +0,0 @@
1
- var TokenStatus;(function(_0x495424){_0x495424[_0x495424['Ok']=0x0]='Ok',_0x495424[_0x495424['Refresh']=0x1]='Refresh',_0x495424[_0x495424['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(_0xaaee53){this['isSuccess']=_0xaaee53;}}class SuccessfulFacetResponse extends Response{constructor(_0x54c4b5){super(!![]),this['facet']=_0x54c4b5;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x3a28e3){super(![]),this['problem']=_0x3a28e3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x46ac2f){super(!![]),this['account']=_0x46ac2f;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x477258){super(!![]),this['list']=_0x477258;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x347d65){super(!![]),this['list']=_0x347d65;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4f58f8){super(![]),this['problem']=_0x4f58f8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x1f8a33){super(![]),this['problem']=_0x1f8a33;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x35efd0){super(![]),this['problem']=_0x35efd0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x5914ca){super(!![]),this['tokens']=_0x5914ca;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x35776d){super(![]),this['problem']=_0x35776d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x51251d){super(!![]),this['apiKey']=_0x51251d;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0xea6eed){super(![]),this['problem']=_0xea6eed;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x563109){super(!![]),this['searchService']=_0x563109;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x386946){super(![]),this['problem']=_0x386946;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2e5186){super(!![]),this['searchService']=_0x2e5186;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0xa40001){super(!![]),this['searchServices']=_0xa40001;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x53461d){super(![]),this['problem']=_0x53461d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1e4bda){super(![]),this['problem']=_0x1e4bda;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x1fce2b){super(!![]),this['apiKeyValue']=_0x1fce2b;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x33c4c8){super(!![]),this['obj']=_0x33c4c8;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x2d986a){super(![]),this['problem']=_0x2d986a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x27ff03){super(![]),this['problem']=_0x27ff03;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x2b99b7,_0x1d61f8,_0x52738c,_0x2fa2d5){function _0x40316e(_0x42bd19){return _0x42bd19 instanceof _0x52738c?_0x42bd19:new _0x52738c(function(_0x448478){_0x448478(_0x42bd19);});}return new(_0x52738c||(_0x52738c=Promise))(function(_0x372233,_0x4a4147){function _0x49cb4b(_0x29f259){try{_0x748989(_0x2fa2d5['next'](_0x29f259));}catch(_0x3dc9d0){_0x4a4147(_0x3dc9d0);}}function _0x158729(_0x30ea18){try{_0x748989(_0x2fa2d5['throw'](_0x30ea18));}catch(_0x24d475){_0x4a4147(_0x24d475);}}function _0x748989(_0x18762e){_0x18762e['done']?_0x372233(_0x18762e['value']):_0x40316e(_0x18762e['value'])['then'](_0x49cb4b,_0x158729);}_0x748989((_0x2fa2d5=_0x2fa2d5['apply'](_0x2b99b7,_0x1d61f8||[]))['next']());});};class AccountService{constructor(_0x15f56e){this['fetch']=_0x15f56e;}['get'](_0x5194ff,_0xce4618){return __awaiter$6(this,void 0,void 0,function*(){const _0x2399b4='Account/'+_0x5194ff+'/',_0x3c341c=yield this['fetch']['get'](_0x2399b4,_0xce4618);try{if(_0x3c341c['status']>0xc7&&_0x3c341c['status']<0x12c){const _0x2fa3d7=yield _0x3c341c['json']();return new SuccessfulAccountResponse(_0x2fa3d7);}const _0x49d810=yield _0x3c341c['json']();return new FailedAccountResponse(_0x49d810);}catch(_0x5314a9){if(_0x5314a9 instanceof Error)return new FailedAccountResponse({'detail':_0x5314a9['message'],'title':_0x5314a9['name'],'status':0x1f4,'instance':'','type':''});throw _0x5314a9;}});}}
4
-
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5d37f3,_0x1b9b92,_0x191b49,_0x1d0005){function _0x284415(_0x4639d5){return _0x4639d5 instanceof _0x191b49?_0x4639d5:new _0x191b49(function(_0xf4830e){_0xf4830e(_0x4639d5);});}return new(_0x191b49||(_0x191b49=Promise))(function(_0x5950fc,_0x101a90){function _0x59fa44(_0x62bfa5){try{_0x4a32b3(_0x1d0005['next'](_0x62bfa5));}catch(_0x4aafa6){_0x101a90(_0x4aafa6);}}function _0x1046ed(_0x34e859){try{_0x4a32b3(_0x1d0005['throw'](_0x34e859));}catch(_0x1aea3a){_0x101a90(_0x1aea3a);}}function _0x4a32b3(_0x59f502){_0x59f502['done']?_0x5950fc(_0x59f502['value']):_0x284415(_0x59f502['value'])['then'](_0x59fa44,_0x1046ed);}_0x4a32b3((_0x1d0005=_0x1d0005['apply'](_0x5d37f3,_0x1b9b92||[]))['next']());});};class ApiKeyService{constructor(_0x140e92){this['fetch']=_0x140e92,this['path']='api-key';}['create'](_0x4f6c18,_0x386c09,_0x2345ea){return __awaiter$5(this,void 0,void 0,function*(){const _0x1a4f78={'account_name':_0x4f6c18,'api_key_name':_0x386c09};try{const _0x27d1fe=yield this['fetch']['post'](this['path'],_0x2345ea,_0x1a4f78);if(_0x27d1fe['status']>0xc7&&_0x27d1fe['status']<0x12c){const _0x1e4e10=yield _0x27d1fe['json']();return new SuccessfulApiKeyResponse(_0x1e4e10);}const _0x5b22a1=yield _0x27d1fe['json']();return new FailedApiKeyResponse(_0x5b22a1);}catch(_0x5a959e){if(_0x5a959e instanceof Error)return new FailedApiKeyResponse({'detail':_0x5a959e['message'],'title':_0x5a959e['name'],'status':0x1f4,'instance':'','type':''});throw _0x5a959e;}});}['view'](_0x2869dc,_0x45a779,_0x4462b7){return __awaiter$5(this,void 0,void 0,function*(){const _0x25f5c0=this['path']+'/'+_0x2869dc+'/'+_0x45a779;try{const _0x47fc4f=yield this['fetch']['get'](_0x25f5c0,_0x4462b7);if(_0x47fc4f['status']>0xc7&&_0x47fc4f['status']<0x12c){const _0x5165f5=yield _0x47fc4f['json']();return new SuccessfulApiKeyValueResponse(_0x5165f5);}const _0x28a1f0=yield _0x47fc4f['json']();return new FailedApiKeyValueResponse(_0x28a1f0);}catch(_0x3d3fee){if(_0x3d3fee instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x3d3fee['message'],'title':_0x3d3fee['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d3fee;}});}['delete'](_0x52d12a,_0x1f0a7c,_0x9190bc){return __awaiter$5(this,void 0,void 0,function*(){const _0x1a9df3=this['path']+'/'+_0x52d12a+'/'+_0x1f0a7c;try{const _0x19c084=yield this['fetch']['delete'](_0x1a9df3,_0x9190bc);if(_0x19c084['status']>0xc7&&_0x19c084['status']<0x12c)return new SuccessfulResponse({});const _0x263163=yield _0x19c084['json']();return new FailedResponse(_0x263163);}catch(_0x2764b9){if(_0x2764b9 instanceof Error)return new FailedResponse({'detail':_0x2764b9['message'],'title':_0x2764b9['name'],'status':0x1f4,'instance':'','type':''});throw _0x2764b9;}});}}
6
-
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x48d992,_0x2bfcc4,_0x1c5c80,_0x343e6e){function _0x1e9d26(_0x2f9b6a){return _0x2f9b6a instanceof _0x1c5c80?_0x2f9b6a:new _0x1c5c80(function(_0xe2a901){_0xe2a901(_0x2f9b6a);});}return new(_0x1c5c80||(_0x1c5c80=Promise))(function(_0x294be3,_0x3019cf){function _0x17a8df(_0x131976){try{_0x793485(_0x343e6e['next'](_0x131976));}catch(_0x28ea6c){_0x3019cf(_0x28ea6c);}}function _0x5bc04c(_0x40ac2d){try{_0x793485(_0x343e6e['throw'](_0x40ac2d));}catch(_0x463e5c){_0x3019cf(_0x463e5c);}}function _0x793485(_0x3f313e){_0x3f313e['done']?_0x294be3(_0x3f313e['value']):_0x1e9d26(_0x3f313e['value'])['then'](_0x17a8df,_0x5bc04c);}_0x793485((_0x343e6e=_0x343e6e['apply'](_0x48d992,_0x2bfcc4||[]))['next']());});};class ListService{constructor(_0x12a8f8){this['fetch']=_0x12a8f8;}['create'](_0x2e2d6d,_0x3ea818,_0x37ae29,_0xfbe1fc){return __awaiter$4(this,void 0,void 0,function*(){const _0x398ceb='List',_0x4cf885={'account_name':_0x2e2d6d,'list_name':_0x3ea818,'search_service_name':_0x37ae29};try{const _0x32a73b=yield this['fetch']['post'](_0x398ceb,_0xfbe1fc,_0x4cf885);if(_0x32a73b['status']>0xc7&&_0x32a73b['status']<0x12c){const _0x42d8b1=yield _0x32a73b['json']();return new SuccessfulListIdentityResponse(_0x42d8b1);}const _0x511078=yield _0x32a73b['json']();return new FailedListIdentityResponse(_0x511078);}catch(_0x2a9a65){if(_0x2a9a65 instanceof Error)return new FailedListIdentityResponse({'detail':_0x2a9a65['message'],'title':_0x2a9a65['name'],'status':0x1f4,'instance':'','type':''});throw _0x2a9a65;}});}['delete'](_0x361a94,_0x28b265,_0x358a8e){return __awaiter$4(this,void 0,void 0,function*(){const _0x4786f2='List/'+_0x361a94+'/'+_0x28b265,_0x21d0f0=yield this['fetch']['delete'](_0x4786f2,_0x358a8e);try{if(_0x21d0f0['status']>0xc7&&_0x21d0f0['status']<0x12c)return new SuccessfulResponse({});const _0x19b326=yield _0x21d0f0['json']();return new FailedResponse(_0x19b326);}catch(_0x19d6a3){if(_0x19d6a3 instanceof Error)return new FailedResponse({'detail':_0x19d6a3['message'],'title':_0x19d6a3['name'],'status':0x1f4,'instance':'','type':''});throw _0x19d6a3;}});}['get'](_0x4b804c,_0x3b8ba2,_0x358f97){return __awaiter$4(this,void 0,void 0,function*(){const _0x157675='List/'+_0x4b804c+'/'+_0x3b8ba2;try{const _0x576f81=yield this['fetch']['get'](_0x157675,_0x358f97);if(_0x576f81['status']>0xc7&&_0x576f81['status']<0x12c){const _0x391593=yield _0x576f81['json']();return new SuccessfulListResponse(_0x391593);}const _0x2a2b6c=yield _0x576f81['json']();return new FailedListResponse(_0x2a2b6c);}catch(_0x2b25db){if(_0x2b25db instanceof Error)return new FailedListResponse({'detail':_0x2b25db['message'],'title':_0x2b25db['name'],'status':0x1f4,'instance':'','type':''});throw _0x2b25db;}});}}
8
-
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1a6f2f,_0x236208,_0xe6c495,_0x209783){function _0x466467(_0x2e7390){return _0x2e7390 instanceof _0xe6c495?_0x2e7390:new _0xe6c495(function(_0x4a4ba){_0x4a4ba(_0x2e7390);});}return new(_0xe6c495||(_0xe6c495=Promise))(function(_0x416104,_0x895bc5){function _0x27bbd1(_0x8286ce){try{_0x365bee(_0x209783['next'](_0x8286ce));}catch(_0x4e5ec6){_0x895bc5(_0x4e5ec6);}}function _0x51e474(_0x501bb5){try{_0x365bee(_0x209783['throw'](_0x501bb5));}catch(_0x426e2a){_0x895bc5(_0x426e2a);}}function _0x365bee(_0x325900){_0x325900['done']?_0x416104(_0x325900['value']):_0x466467(_0x325900['value'])['then'](_0x27bbd1,_0x51e474);}_0x365bee((_0x209783=_0x209783['apply'](_0x1a6f2f,_0x236208||[]))['next']());});};class Fetch{constructor(_0x2d4c85){this['baseUri']=_0x2d4c85,this['getUrl']=_0x34d630=>{return _0x34d630['startsWith']('/')&&(_0x34d630=_0x34d630['replace']('/','')),''+this['baseUri']+_0x34d630;},!_0x2d4c85['endsWith']('/')&&(_0x2d4c85=_0x2d4c85+'/');}['get'](_0x291f6f,_0x581d8c){return __awaiter$3(this,void 0,void 0,function*(){const _0x52e91b=this['getUrl'](_0x291f6f);return yield fetch(_0x52e91b,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x581d8c}});});}['post'](_0x4d8587,_0x51f8c2,_0x541e50){return __awaiter$3(this,void 0,void 0,function*(){const _0x49d9ca=this['getUrl'](_0x4d8587);return yield fetch(_0x49d9ca,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x51f8c2},'body':_0x541e50?JSON['stringify'](_0x541e50):null});});}['PostNoAuth'](_0xbb2ca8,_0x5d941d){return __awaiter$3(this,void 0,void 0,function*(){const _0x54f7fc=this['getUrl'](_0xbb2ca8);return yield fetch(_0x54f7fc,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5d941d?JSON['stringify'](_0x5d941d):null});});}['put'](_0x4301ef,_0x30c317,_0xa27aa4){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a7698=this['getUrl'](_0x4301ef);return yield fetch(_0x2a7698,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x30c317},'body':_0xa27aa4?JSON['stringify'](_0xa27aa4):null});});}['delete'](_0x298663,_0x38e0e7){return __awaiter$3(this,void 0,void 0,function*(){const _0x4d43ae=this['getUrl'](_0x298663);return yield fetch(_0x4d43ae,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x38e0e7}});});}}
10
-
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x49acac,_0x23dae4,_0xaf67f1,_0x5e50c8){function _0x2c6877(_0x1d5c4a){return _0x1d5c4a instanceof _0xaf67f1?_0x1d5c4a:new _0xaf67f1(function(_0x5c258c){_0x5c258c(_0x1d5c4a);});}return new(_0xaf67f1||(_0xaf67f1=Promise))(function(_0x11543f,_0x471d4c){function _0x3303b1(_0x503eab){try{_0x1f4c6c(_0x5e50c8['next'](_0x503eab));}catch(_0x1b33f5){_0x471d4c(_0x1b33f5);}}function _0x1b2e84(_0x2b7df6){try{_0x1f4c6c(_0x5e50c8['throw'](_0x2b7df6));}catch(_0x304be3){_0x471d4c(_0x304be3);}}function _0x1f4c6c(_0x1ee8bc){_0x1ee8bc['done']?_0x11543f(_0x1ee8bc['value']):_0x2c6877(_0x1ee8bc['value'])['then'](_0x3303b1,_0x1b2e84);}_0x1f4c6c((_0x5e50c8=_0x5e50c8['apply'](_0x49acac,_0x23dae4||[]))['next']());});};class SearchServersService{constructor(_0x28ac60){this['fetch']=_0x28ac60,this['path']='search-services';}['create'](_0xeaded6,_0x4a70fc,_0x35aeed,_0x6f2213,_0x8e6715,_0x2dbab2,_0x6b319,_0x3c2a96){return __awaiter$2(this,void 0,void 0,function*(){const _0xb85387={'account_name':_0xeaded6,'search_service_name':_0x4a70fc,'endpoint':_0x35aeed,'key':_0x6f2213,'country':_0x8e6715,'provider':_0x2dbab2,'index_name':_0x6b319};try{const _0x15d3fc=yield this['fetch']['post'](this['path'],_0x3c2a96,_0xb85387);if(_0x15d3fc['status']>0xc7&&_0x15d3fc['status']<0x12c){const _0x1091ee=yield _0x15d3fc['json']();return new SuccessfulSearchServiceResponse(_0x1091ee);}const _0x432288=yield _0x15d3fc['json']();return new FailedSearchServiceResponse(_0x432288);}catch(_0x5c9270){if(_0x5c9270 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5c9270['message'],'title':_0x5c9270['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c9270;}});}['delete'](_0x56d97,_0x25f6d5,_0x464ba5){return __awaiter$2(this,void 0,void 0,function*(){const _0x72e93=this['path']+'/'+_0x56d97+'/'+_0x25f6d5;try{const _0xe46b36=yield this['fetch']['delete'](_0x72e93,_0x464ba5);if(_0xe46b36['status']>0xc7&&_0xe46b36['status']<0x12c)return new SuccessfulResponse({});const _0x102bb8=yield _0xe46b36['json']();return new FailedResponse(_0x102bb8);}catch(_0x4a14c8){if(_0x4a14c8 instanceof Error)return new FailedResponse({'detail':_0x4a14c8['message'],'title':_0x4a14c8['name'],'status':0x1f4,'instance':'','type':''});throw _0x4a14c8;}});}['view'](_0x1159b0,_0x30cdb0,_0x20755a){return __awaiter$2(this,void 0,void 0,function*(){const _0x1dfcc7=this['path']+'/'+_0x1159b0+'/'+_0x30cdb0;try{const _0x34451a=yield this['fetch']['get'](_0x1dfcc7,_0x20755a);if(_0x34451a['status']>0xc7&&_0x34451a['status']<0x12c){const _0x5d6b49=yield _0x34451a['json']();return new SuccessfulViewSearchServiceResponse(_0x5d6b49);}const _0x31379d=yield _0x34451a['json']();return new FailedViewSearchServiceResponse(_0x31379d);}catch(_0x535d1c){if(_0x535d1c instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x535d1c['message'],'title':_0x535d1c['name'],'status':0x1f4,'instance':'','type':''});throw _0x535d1c;}});}['edit'](_0x3121b4,_0x51f3e2,_0x3256e3,_0x47b442,_0x53821f,_0x5449e2){return __awaiter$2(this,void 0,void 0,function*(){const _0x370b9f={'account_name':_0x3121b4,'search_service_name':_0x51f3e2,'new_search_service_name':_0x3256e3,'key':_0x47b442,'country':_0x53821f};try{const _0x41279a=yield this['fetch']['put'](this['path'],_0x5449e2,_0x370b9f);if(_0x41279a['status']>0xc7&&_0x41279a['status']<0x12c){const _0x26ae63=yield _0x41279a['json']();return new SuccessfulSearchServiceResponse(_0x26ae63);}const _0x3a9df3=yield _0x41279a['json']();return new FailedSearchServiceResponse(_0x3a9df3);}catch(_0x3ecb5e){if(_0x3ecb5e instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3ecb5e['message'],'title':_0x3ecb5e['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ecb5e;}});}['list'](_0x5cdbcc,_0x36d496){return __awaiter$2(this,void 0,void 0,function*(){const _0x5e900e=this['path']+'/'+_0x5cdbcc;try{const _0x2aa2b1=yield this['fetch']['get'](_0x5e900e,_0x36d496);if(_0x2aa2b1['status']>0xc7&&_0x2aa2b1['status']<0x12c){const _0x4b666b=yield _0x2aa2b1['json']();return new SuccessfulListSearchServiceResponse(_0x4b666b);}const _0x1dd414=yield _0x2aa2b1['json']();return new FailedViewSearchServicesResponse(_0x1dd414);}catch(_0x254b18){if(_0x254b18 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x254b18['message'],'title':_0x254b18['name'],'status':0x1f4,'instance':'','type':''});throw _0x254b18;}});}}
12
-
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xe43759,_0x48a360,_0x27fb71,_0x6e8f90){function _0x5bc0ae(_0x1bba10){return _0x1bba10 instanceof _0x27fb71?_0x1bba10:new _0x27fb71(function(_0x38c633){_0x38c633(_0x1bba10);});}return new(_0x27fb71||(_0x27fb71=Promise))(function(_0xa1b77d,_0x5f2443){function _0x34dae7(_0x5dae1e){try{_0x2c4908(_0x6e8f90['next'](_0x5dae1e));}catch(_0x50e518){_0x5f2443(_0x50e518);}}function _0x237aa9(_0x5bbd0f){try{_0x2c4908(_0x6e8f90['throw'](_0x5bbd0f));}catch(_0x42ee0f){_0x5f2443(_0x42ee0f);}}function _0x2c4908(_0x39993c){_0x39993c['done']?_0xa1b77d(_0x39993c['value']):_0x5bc0ae(_0x39993c['value'])['then'](_0x34dae7,_0x237aa9);}_0x2c4908((_0x6e8f90=_0x6e8f90['apply'](_0xe43759,_0x48a360||[]))['next']());});};class FacetService{constructor(_0x1d6eb6){this['fetch']=_0x1d6eb6,this['path']='facet';}['create'](_0x5e432e,_0x5e38cf,_0x5c4a66,_0x3e36ed){return __awaiter$1(this,void 0,void 0,function*(){const _0x59f5cf={'account_name':_0x5e432e,'list_name':_0x5e38cf,'facet_name':_0x5c4a66};try{const _0x908545=yield this['fetch']['post'](this['path'],_0x3e36ed,_0x59f5cf);if(_0x908545['status']>0xc7&&_0x908545['status']<0x12c){const _0x4b249b=yield _0x908545['json']();return new SuccessfulFacetResponse(_0x4b249b);}const _0x40e94a=yield _0x908545['json']();return new FailedFacetResponse(_0x40e94a);}catch(_0x359e84){if(_0x359e84 instanceof Error)return new FailedFacetResponse({'detail':_0x359e84['message'],'title':_0x359e84['name'],'status':0x1f4,'instance':'','type':''});throw _0x359e84;}});}['remove'](_0xb3e73b,_0x51036e,_0x48c61d,_0x2fe7bf){return __awaiter$1(this,void 0,void 0,function*(){const _0x44ce9a='Facet/'+_0xb3e73b+'/'+_0x51036e+'/'+_0x48c61d,_0x34f8ba=yield this['fetch']['delete'](_0x44ce9a,_0x2fe7bf);try{if(_0x34f8ba['status']>0xc7&&_0x34f8ba['status']<0x12c)return new SuccessfulResponse({});const _0x42166f=yield _0x34f8ba['json']();return new FailedResponse(_0x42166f);}catch(_0x342751){if(_0x342751 instanceof Error)return new FailedResponse({'detail':_0x342751['message'],'title':_0x342751['name'],'status':0x1f4,'instance':'','type':''});throw _0x342751;}});}['rename'](_0x2b7d1b,_0x519509,_0x518eac,_0x3d6bc5,_0x43dc3f){return __awaiter$1(this,void 0,void 0,function*(){const _0x158fe0={'account_name':_0x2b7d1b,'list_name':_0x519509,'facet_name':_0x518eac,'rename_facet_name':_0x3d6bc5};try{const _0x24e67a=yield this['fetch']['put'](this['path'],_0x43dc3f,_0x158fe0);if(_0x24e67a['status']>0xc7&&_0x24e67a['status']<0x12c){const _0x177816=yield _0x24e67a['json']();return new SuccessfulFacetResponse(_0x177816);}const _0x26e07d=yield _0x24e67a['json']();return new FailedFacetResponse(_0x26e07d);}catch(_0x3443af){if(_0x3443af instanceof Error)return new FailedFacetResponse({'detail':_0x3443af['message'],'title':_0x3443af['name'],'status':0x1f4,'instance':'','type':''});throw _0x3443af;}});}}
14
-
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x3764da,_0x29e2ea,_0x14ad99,_0x1a7a66){function _0x2ab0c7(_0x21f799){return _0x21f799 instanceof _0x14ad99?_0x21f799:new _0x14ad99(function(_0x46dc6c){_0x46dc6c(_0x21f799);});}return new(_0x14ad99||(_0x14ad99=Promise))(function(_0x4020e0,_0x154b52){function _0x394fac(_0x17ad51){try{_0x3e5f9f(_0x1a7a66['next'](_0x17ad51));}catch(_0x42af42){_0x154b52(_0x42af42);}}function _0x200d7a(_0x100d27){try{_0x3e5f9f(_0x1a7a66['throw'](_0x100d27));}catch(_0x51fa54){_0x154b52(_0x51fa54);}}function _0x3e5f9f(_0x266587){_0x266587['done']?_0x4020e0(_0x266587['value']):_0x2ab0c7(_0x266587['value'])['then'](_0x394fac,_0x200d7a);}_0x3e5f9f((_0x1a7a66=_0x1a7a66['apply'](_0x3764da,_0x29e2ea||[]))['next']());});};class AdminClient{constructor(_0x2c6636='https://admin.searchability.dev/'){var _0x379e43=new Fetch(_0x2c6636);this['Accounts']=new AccountService(_0x379e43),this['Lists']=new ListService(_0x379e43),this['ApiKeys']=new ApiKeyService(_0x379e43),this['SearchServices']=new SearchServersService(_0x379e43),this['FacetService']=new FacetService(_0x379e43);}}class AuthClient{constructor(_0x42ed82='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x42ed82);}['login'](_0x4e9981){return __awaiter(this,void 0,void 0,function*(){const _0x177681='login/'+_0x4e9981;try{const _0xcfc0ea=yield yield fetch(_0x177681);if(_0xcfc0ea['status']>0xc7&&_0xcfc0ea['status']<0x12c){const _0x5d9ebf=yield _0xcfc0ea['json']();return new SuccessfulAuthResponse(_0x5d9ebf);}const _0x2706a4=yield _0xcfc0ea['json']();return new FailedAuthResponse(_0x2706a4);}catch(_0x257c66){if(_0x257c66 instanceof Error)return new FailedAuthResponse({'detail':_0x257c66['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x257c66;}});}['refresh'](_0x320cf4){return __awaiter(this,void 0,void 0,function*(){const _0x1c9683='refresh',_0x1828d9={'refresh_token':_0x320cf4};try{const _0x9de37e=yield this['fetch']['PostNoAuth'](_0x1c9683,_0x1828d9);if(_0x9de37e['status']>0xc7&&_0x9de37e['status']<0x12c){const _0x577338=yield _0x9de37e['json']();return new SuccessfulAuthResponse(_0x577338);}const _0x4efc19=yield _0x9de37e['json']();return new FailedAuthResponse(_0x4efc19);}catch(_0x35263c){if(_0x35263c instanceof Error)return new FailedAuthResponse({'detail':_0x35263c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x35263c;}});}['getTokenStatus'](_0x344377){if(Date['now']()<_0x344377['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x344377['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
-
17
- export { AdminClient, AuthClient, TokenStatus, Tokens };