@searchability/admin-client 0.0.51 → 0.0.53

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,17 @@
1
+ var TokenStatus;(function(_0x4fded3){_0x4fded3[_0x4fded3['Ok']=0x0]='Ok',_0x4fded3[_0x4fded3['Refresh']=0x1]='Refresh',_0x4fded3[_0x4fded3['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(_0x2b0b0c){this['isSuccess']=_0x2b0b0c;}}class SuccessfulFacetResponse extends Response{constructor(_0x55d171){super(!![]),this['facet']=_0x55d171;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x2cf370){super(![]),this['problem']=_0x2cf370;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x7ecc86){super(!![]),this['account']=_0x7ecc86;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x3a9b68){super(!![]),this['list']=_0x3a9b68;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x32a702){super(!![]),this['list']=_0x32a702;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4bd4f1){super(![]),this['problem']=_0x4bd4f1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x353a31){super(![]),this['problem']=_0x353a31;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x4997aa){super(![]),this['problem']=_0x4997aa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3ffb15){super(!![]),this['tokens']=_0x3ffb15;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x4d8269){super(![]),this['problem']=_0x4d8269;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x45d8e5){super(!![]),this['apiKey']=_0x45d8e5;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1076ae){super(![]),this['problem']=_0x1076ae;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x481d69){super(!![]),this['searchService']=_0x481d69;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x449ac2){super(![]),this['problem']=_0x449ac2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2f3a49){super(!![]),this['searchService']=_0x2f3a49;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x488d4f){super(!![]),this['searchServices']=_0x488d4f;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x182bd4){super(![]),this['problem']=_0x182bd4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x39b48d){super(![]),this['problem']=_0x39b48d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x40893c){super(!![]),this['apiKeyValue']=_0x40893c;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x2bcae8){super(!![]),this['obj']=_0x2bcae8;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x33d01b){super(![]),this['problem']=_0x33d01b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x1f5f83){super(![]),this['problem']=_0x1f5f83;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0xd32384,_0x5f4e50,_0x304c13,_0xe8c342){function _0x2c1eb8(_0x32d0fe){return _0x32d0fe instanceof _0x304c13?_0x32d0fe:new _0x304c13(function(_0x313ba4){_0x313ba4(_0x32d0fe);});}return new(_0x304c13||(_0x304c13=Promise))(function(_0x3f8723,_0x310dae){function _0x51cf00(_0x27ae5f){try{_0x1b7e1f(_0xe8c342['next'](_0x27ae5f));}catch(_0xa90065){_0x310dae(_0xa90065);}}function _0x4a4045(_0x51b065){try{_0x1b7e1f(_0xe8c342['throw'](_0x51b065));}catch(_0x4fff88){_0x310dae(_0x4fff88);}}function _0x1b7e1f(_0x2b81a3){_0x2b81a3['done']?_0x3f8723(_0x2b81a3['value']):_0x2c1eb8(_0x2b81a3['value'])['then'](_0x51cf00,_0x4a4045);}_0x1b7e1f((_0xe8c342=_0xe8c342['apply'](_0xd32384,_0x5f4e50||[]))['next']());});};class AccountService{constructor(_0x226528){this['fetch']=_0x226528;}['get'](_0x183d7c,_0x5932a0){return __awaiter$6(this,void 0,void 0,function*(){const _0x46839e='Account/'+_0x183d7c+'/',_0x3c6a51=yield this['fetch']['get'](_0x46839e,_0x5932a0);try{if(_0x3c6a51['status']>0xc7&&_0x3c6a51['status']<0x12c){const _0x413533=yield _0x3c6a51['json']();return new SuccessfulAccountResponse(_0x413533);}const _0x3c0a51=yield _0x3c6a51['json']();return new FailedAccountResponse(_0x3c0a51);}catch(_0x143d27){if(_0x143d27 instanceof Error)return new FailedAccountResponse({'detail':_0x143d27['message'],'title':_0x143d27['name'],'status':0x1f4,'instance':'','type':''});throw _0x143d27;}});}}
4
+
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x581b20,_0x1ff440,_0x40d6dc,_0x195501){function _0x17090e(_0x4ffd6b){return _0x4ffd6b instanceof _0x40d6dc?_0x4ffd6b:new _0x40d6dc(function(_0x30b201){_0x30b201(_0x4ffd6b);});}return new(_0x40d6dc||(_0x40d6dc=Promise))(function(_0x4669fb,_0x64f42b){function _0x585ec1(_0x4448fa){try{_0x3e25b8(_0x195501['next'](_0x4448fa));}catch(_0x44e2bc){_0x64f42b(_0x44e2bc);}}function _0x1cb36b(_0x3adebd){try{_0x3e25b8(_0x195501['throw'](_0x3adebd));}catch(_0x4bf0c6){_0x64f42b(_0x4bf0c6);}}function _0x3e25b8(_0x2bb2fb){_0x2bb2fb['done']?_0x4669fb(_0x2bb2fb['value']):_0x17090e(_0x2bb2fb['value'])['then'](_0x585ec1,_0x1cb36b);}_0x3e25b8((_0x195501=_0x195501['apply'](_0x581b20,_0x1ff440||[]))['next']());});};class ApiKeyService{constructor(_0x1cb5dd){this['fetch']=_0x1cb5dd,this['path']='api-key';}['create'](_0xdb761d,_0x2fbc4e,_0x1398af){return __awaiter$5(this,void 0,void 0,function*(){const _0x215ede={'account_name':_0xdb761d,'api_key_name':_0x2fbc4e};try{const _0x13d79b=yield this['fetch']['post'](this['path'],_0x1398af,_0x215ede);if(_0x13d79b['status']>0xc7&&_0x13d79b['status']<0x12c){const _0x27d786=yield _0x13d79b['json']();return new SuccessfulApiKeyResponse(_0x27d786);}const _0x5440b3=yield _0x13d79b['json']();return new FailedApiKeyResponse(_0x5440b3);}catch(_0x447d6b){if(_0x447d6b instanceof Error)return new FailedApiKeyResponse({'detail':_0x447d6b['message'],'title':_0x447d6b['name'],'status':0x1f4,'instance':'','type':''});throw _0x447d6b;}});}['view'](_0x520f58,_0x10c012,_0x5437f0){return __awaiter$5(this,void 0,void 0,function*(){const _0x3fe2f3=this['path']+'/'+_0x520f58+'/'+_0x10c012;try{const _0x48fb3a=yield this['fetch']['get'](_0x3fe2f3,_0x5437f0);if(_0x48fb3a['status']>0xc7&&_0x48fb3a['status']<0x12c){const _0x1f8b03=yield _0x48fb3a['json']();return new SuccessfulApiKeyValueResponse(_0x1f8b03);}const _0x2f1859=yield _0x48fb3a['json']();return new FailedApiKeyValueResponse(_0x2f1859);}catch(_0x2ff6cd){if(_0x2ff6cd instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x2ff6cd['message'],'title':_0x2ff6cd['name'],'status':0x1f4,'instance':'','type':''});throw _0x2ff6cd;}});}['delete'](_0x4189aa,_0x3bb88e,_0x3d960c){return __awaiter$5(this,void 0,void 0,function*(){const _0x5d1d28=this['path']+'/'+_0x4189aa+'/'+_0x3bb88e;try{const _0x597494=yield this['fetch']['delete'](_0x5d1d28,_0x3d960c);if(_0x597494['status']>0xc7&&_0x597494['status']<0x12c)return new SuccessfulResponse({});const _0x1e8d50=yield _0x597494['json']();return new FailedResponse(_0x1e8d50);}catch(_0x4ef446){if(_0x4ef446 instanceof Error)return new FailedResponse({'detail':_0x4ef446['message'],'title':_0x4ef446['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ef446;}});}}
6
+
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2f5e34,_0x581cc1,_0x34552c,_0x4c938a){function _0x113c9a(_0x1bb359){return _0x1bb359 instanceof _0x34552c?_0x1bb359:new _0x34552c(function(_0x1b6441){_0x1b6441(_0x1bb359);});}return new(_0x34552c||(_0x34552c=Promise))(function(_0x5153af,_0x34db6b){function _0x20ccb4(_0x338e71){try{_0x4a222d(_0x4c938a['next'](_0x338e71));}catch(_0x49e84f){_0x34db6b(_0x49e84f);}}function _0x72ef64(_0x279e78){try{_0x4a222d(_0x4c938a['throw'](_0x279e78));}catch(_0x84e3b6){_0x34db6b(_0x84e3b6);}}function _0x4a222d(_0x502f1a){_0x502f1a['done']?_0x5153af(_0x502f1a['value']):_0x113c9a(_0x502f1a['value'])['then'](_0x20ccb4,_0x72ef64);}_0x4a222d((_0x4c938a=_0x4c938a['apply'](_0x2f5e34,_0x581cc1||[]))['next']());});};class ListService{constructor(_0x2f3b7b){this['fetch']=_0x2f3b7b;}['create'](_0x3e7b2e,_0x5a27d1,_0x35837e,_0x4683e3){return __awaiter$4(this,void 0,void 0,function*(){const _0x229830='List',_0x172450={'account_name':_0x3e7b2e,'list_name':_0x5a27d1,'search_service_name':_0x35837e};try{const _0x3b44f2=yield this['fetch']['post'](_0x229830,_0x4683e3,_0x172450);if(_0x3b44f2['status']>0xc7&&_0x3b44f2['status']<0x12c){const _0x3af031=yield _0x3b44f2['json']();return new SuccessfulListIdentityResponse(_0x3af031);}const _0x4f7df8=yield _0x3b44f2['json']();return new FailedListIdentityResponse(_0x4f7df8);}catch(_0x24ceb8){if(_0x24ceb8 instanceof Error)return new FailedListIdentityResponse({'detail':_0x24ceb8['message'],'title':_0x24ceb8['name'],'status':0x1f4,'instance':'','type':''});throw _0x24ceb8;}});}['delete'](_0x395ab0,_0xea24b6,_0x256039){return __awaiter$4(this,void 0,void 0,function*(){const _0xabc1c3='List/'+_0x395ab0+'/'+_0xea24b6,_0x243c52=yield this['fetch']['delete'](_0xabc1c3,_0x256039);try{if(_0x243c52['status']>0xc7&&_0x243c52['status']<0x12c)return new SuccessfulResponse({});const _0x5c0a3f=yield _0x243c52['json']();return new FailedResponse(_0x5c0a3f);}catch(_0x45e0b9){if(_0x45e0b9 instanceof Error)return new FailedResponse({'detail':_0x45e0b9['message'],'title':_0x45e0b9['name'],'status':0x1f4,'instance':'','type':''});throw _0x45e0b9;}});}['get'](_0x44b386,_0x54172d,_0x2ea881){return __awaiter$4(this,void 0,void 0,function*(){const _0x18a278='List/'+_0x44b386+'/'+_0x54172d;try{const _0x3782ba=yield this['fetch']['get'](_0x18a278,_0x2ea881);if(_0x3782ba['status']>0xc7&&_0x3782ba['status']<0x12c){const _0x9c0e42=yield _0x3782ba['json']();return new SuccessfulListResponse(_0x9c0e42);}const _0x510336=yield _0x3782ba['json']();return new FailedListResponse(_0x510336);}catch(_0x44a6dd){if(_0x44a6dd instanceof Error)return new FailedListResponse({'detail':_0x44a6dd['message'],'title':_0x44a6dd['name'],'status':0x1f4,'instance':'','type':''});throw _0x44a6dd;}});}}
8
+
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x17e4e4,_0x39c415,_0x1a3867,_0x36aa2d){function _0x1c7c49(_0x5534af){return _0x5534af instanceof _0x1a3867?_0x5534af:new _0x1a3867(function(_0x2ba0c2){_0x2ba0c2(_0x5534af);});}return new(_0x1a3867||(_0x1a3867=Promise))(function(_0x33a6dd,_0x23009d){function _0x10993b(_0x77351e){try{_0x589d3b(_0x36aa2d['next'](_0x77351e));}catch(_0x465e9f){_0x23009d(_0x465e9f);}}function _0x3c5f06(_0x14726d){try{_0x589d3b(_0x36aa2d['throw'](_0x14726d));}catch(_0x3a9f13){_0x23009d(_0x3a9f13);}}function _0x589d3b(_0x48d92f){_0x48d92f['done']?_0x33a6dd(_0x48d92f['value']):_0x1c7c49(_0x48d92f['value'])['then'](_0x10993b,_0x3c5f06);}_0x589d3b((_0x36aa2d=_0x36aa2d['apply'](_0x17e4e4,_0x39c415||[]))['next']());});};class Fetch{constructor(_0x1d5803){this['baseUri']=_0x1d5803,this['getUrl']=_0xf2b91b=>{return _0xf2b91b['startsWith']('/')&&(_0xf2b91b=_0xf2b91b['replace']('/','')),''+this['baseUri']+_0xf2b91b;},!_0x1d5803['endsWith']('/')&&(_0x1d5803=_0x1d5803+'/');}['get'](_0x367f0b,_0x2af871){return __awaiter$3(this,void 0,void 0,function*(){const _0x8c6c4c=this['getUrl'](_0x367f0b);return yield fetch(_0x8c6c4c,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2af871}});});}['post'](_0x2da4ee,_0x16514e,_0x51e957){return __awaiter$3(this,void 0,void 0,function*(){const _0x478cf8=this['getUrl'](_0x2da4ee);return yield fetch(_0x478cf8,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x16514e},'body':_0x51e957?JSON['stringify'](_0x51e957):null});});}['PostNoAuth'](_0x16d56e,_0xd6fb){return __awaiter$3(this,void 0,void 0,function*(){const _0x4d9622=this['getUrl'](_0x16d56e);return yield fetch(_0x4d9622,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0xd6fb?JSON['stringify'](_0xd6fb):null});});}['put'](_0x14ee64,_0x857913,_0x5500d0){return __awaiter$3(this,void 0,void 0,function*(){const _0x53058a=this['getUrl'](_0x14ee64);return yield fetch(_0x53058a,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x857913},'body':_0x5500d0?JSON['stringify'](_0x5500d0):null});});}['delete'](_0x1ad8f2,_0x29c906){return __awaiter$3(this,void 0,void 0,function*(){const _0x302b02=this['getUrl'](_0x1ad8f2);return yield fetch(_0x302b02,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x29c906}});});}}
10
+
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x3785aa,_0x337b50,_0x1c53fa,_0x1e2a91){function _0x234aad(_0x35722c){return _0x35722c instanceof _0x1c53fa?_0x35722c:new _0x1c53fa(function(_0x478076){_0x478076(_0x35722c);});}return new(_0x1c53fa||(_0x1c53fa=Promise))(function(_0x5e2dad,_0x300dab){function _0x19ecca(_0x3fbb38){try{_0x5a03f1(_0x1e2a91['next'](_0x3fbb38));}catch(_0x41d917){_0x300dab(_0x41d917);}}function _0x8e163c(_0x116c34){try{_0x5a03f1(_0x1e2a91['throw'](_0x116c34));}catch(_0x2eb059){_0x300dab(_0x2eb059);}}function _0x5a03f1(_0x3efe52){_0x3efe52['done']?_0x5e2dad(_0x3efe52['value']):_0x234aad(_0x3efe52['value'])['then'](_0x19ecca,_0x8e163c);}_0x5a03f1((_0x1e2a91=_0x1e2a91['apply'](_0x3785aa,_0x337b50||[]))['next']());});};class SearchServersService{constructor(_0x352583){this['fetch']=_0x352583,this['path']='search-services';}['create'](_0x4f6add,_0x426164,_0x54047a,_0x5254ba,_0x44470c,_0x459242,_0x18a9e1,_0x19ae76){return __awaiter$2(this,void 0,void 0,function*(){const _0x43f061={'account_name':_0x4f6add,'search_service_name':_0x426164,'endpoint':_0x54047a,'key':_0x5254ba,'country':_0x44470c,'provider':_0x459242,'index_name':_0x18a9e1};try{const _0xae59ed=yield this['fetch']['post'](this['path'],_0x19ae76,_0x43f061);if(_0xae59ed['status']>0xc7&&_0xae59ed['status']<0x12c){const _0x2965fb=yield _0xae59ed['json']();return new SuccessfulSearchServiceResponse(_0x2965fb);}const _0x2e8649=yield _0xae59ed['json']();return new FailedSearchServiceResponse(_0x2e8649);}catch(_0x23f2a7){if(_0x23f2a7 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x23f2a7['message'],'title':_0x23f2a7['name'],'status':0x1f4,'instance':'','type':''});throw _0x23f2a7;}});}['delete'](_0x1578d9,_0x344f09,_0x2c444d){return __awaiter$2(this,void 0,void 0,function*(){const _0x24ab9e=this['path']+'/'+_0x1578d9+'/'+_0x344f09;try{const _0x5c4f84=yield this['fetch']['delete'](_0x24ab9e,_0x2c444d);if(_0x5c4f84['status']>0xc7&&_0x5c4f84['status']<0x12c)return new SuccessfulResponse({});const _0x476cd7=yield _0x5c4f84['json']();return new FailedResponse(_0x476cd7);}catch(_0x4b5563){if(_0x4b5563 instanceof Error)return new FailedResponse({'detail':_0x4b5563['message'],'title':_0x4b5563['name'],'status':0x1f4,'instance':'','type':''});throw _0x4b5563;}});}['view'](_0x31cedd,_0x5a5698,_0x4d15fc){return __awaiter$2(this,void 0,void 0,function*(){const _0x500356=this['path']+'/'+_0x31cedd+'/'+_0x5a5698;try{const _0xba706b=yield this['fetch']['get'](_0x500356,_0x4d15fc);if(_0xba706b['status']>0xc7&&_0xba706b['status']<0x12c){const _0x3ee82b=yield _0xba706b['json']();return new SuccessfulViewSearchServiceResponse(_0x3ee82b);}const _0x5e08f7=yield _0xba706b['json']();return new FailedViewSearchServiceResponse(_0x5e08f7);}catch(_0x3bffc4){if(_0x3bffc4 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x3bffc4['message'],'title':_0x3bffc4['name'],'status':0x1f4,'instance':'','type':''});throw _0x3bffc4;}});}['edit'](_0x4d04be,_0x38bf79,_0x4ec543,_0x408d08,_0x48edd4,_0x4f025a){return __awaiter$2(this,void 0,void 0,function*(){const _0x3635c3={'account_name':_0x4d04be,'search_service_name':_0x38bf79,'new_search_service_name':_0x4ec543,'key':_0x408d08,'country':_0x48edd4};try{const _0x352b83=yield this['fetch']['put'](this['path'],_0x4f025a,_0x3635c3);if(_0x352b83['status']>0xc7&&_0x352b83['status']<0x12c){const _0x2a4077=yield _0x352b83['json']();return new SuccessfulSearchServiceResponse(_0x2a4077);}const _0x1b240b=yield _0x352b83['json']();return new FailedSearchServiceResponse(_0x1b240b);}catch(_0x319056){if(_0x319056 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x319056['message'],'title':_0x319056['name'],'status':0x1f4,'instance':'','type':''});throw _0x319056;}});}['list'](_0x266f1c,_0x86841d){return __awaiter$2(this,void 0,void 0,function*(){const _0x412ba7=this['path']+'/'+_0x266f1c;try{const _0x5272da=yield this['fetch']['get'](_0x412ba7,_0x86841d);if(_0x5272da['status']>0xc7&&_0x5272da['status']<0x12c){const _0x198717=yield _0x5272da['json']();return new SuccessfulListSearchServiceResponse(_0x198717);}const _0x39e392=yield _0x5272da['json']();return new FailedViewSearchServicesResponse(_0x39e392);}catch(_0x4ab843){if(_0x4ab843 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x4ab843['message'],'title':_0x4ab843['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ab843;}});}}
12
+
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3a9fb6,_0x1f3ece,_0x5e4180,_0x2164c0){function _0x2a8700(_0x2a246f){return _0x2a246f instanceof _0x5e4180?_0x2a246f:new _0x5e4180(function(_0x1cb5a6){_0x1cb5a6(_0x2a246f);});}return new(_0x5e4180||(_0x5e4180=Promise))(function(_0x172739,_0x367793){function _0xf10caa(_0x1b3414){try{_0x1283fe(_0x2164c0['next'](_0x1b3414));}catch(_0x7ff811){_0x367793(_0x7ff811);}}function _0x212b88(_0x1a08af){try{_0x1283fe(_0x2164c0['throw'](_0x1a08af));}catch(_0x3ca00e){_0x367793(_0x3ca00e);}}function _0x1283fe(_0x593697){_0x593697['done']?_0x172739(_0x593697['value']):_0x2a8700(_0x593697['value'])['then'](_0xf10caa,_0x212b88);}_0x1283fe((_0x2164c0=_0x2164c0['apply'](_0x3a9fb6,_0x1f3ece||[]))['next']());});};class FacetService{constructor(_0x36652c){this['fetch']=_0x36652c,this['path']='facet';}['create'](_0x5fa60d,_0x3d36a0,_0x3d14d0,_0xf8422f){return __awaiter$1(this,void 0,void 0,function*(){const _0x56888e={'account_name':_0x5fa60d,'list_name':_0x3d36a0,'facet_name':_0x3d14d0};try{const _0x31cf5c=yield this['fetch']['post'](this['path'],_0xf8422f,_0x56888e);if(_0x31cf5c['status']>0xc7&&_0x31cf5c['status']<0x12c){const _0x2bfa8a=yield _0x31cf5c['json']();return new SuccessfulFacetResponse(_0x2bfa8a);}const _0x36fdd4=yield _0x31cf5c['json']();return new FailedFacetResponse(_0x36fdd4);}catch(_0x12c8d0){if(_0x12c8d0 instanceof Error)return new FailedFacetResponse({'detail':_0x12c8d0['message'],'title':_0x12c8d0['name'],'status':0x1f4,'instance':'','type':''});throw _0x12c8d0;}});}}
14
+
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x59ee61,_0x22a0e3,_0x3fb908,_0x4204e2){function _0x573f84(_0x1e27fb){return _0x1e27fb instanceof _0x3fb908?_0x1e27fb:new _0x3fb908(function(_0x5ebbbd){_0x5ebbbd(_0x1e27fb);});}return new(_0x3fb908||(_0x3fb908=Promise))(function(_0xf69ea5,_0x3f0b2a){function _0x3aa96d(_0x10f1f3){try{_0x409831(_0x4204e2['next'](_0x10f1f3));}catch(_0x13feb5){_0x3f0b2a(_0x13feb5);}}function _0x1fbe2c(_0xe995ee){try{_0x409831(_0x4204e2['throw'](_0xe995ee));}catch(_0x1c7978){_0x3f0b2a(_0x1c7978);}}function _0x409831(_0x1b265e){_0x1b265e['done']?_0xf69ea5(_0x1b265e['value']):_0x573f84(_0x1b265e['value'])['then'](_0x3aa96d,_0x1fbe2c);}_0x409831((_0x4204e2=_0x4204e2['apply'](_0x59ee61,_0x22a0e3||[]))['next']());});};class AdminClient{constructor(_0x33bfb9='https://admin.searchability.dev/'){var _0x3770e5=new Fetch(_0x33bfb9);this['Accounts']=new AccountService(_0x3770e5),this['Lists']=new ListService(_0x3770e5),this['ApiKeys']=new ApiKeyService(_0x3770e5),this['SearchServices']=new SearchServersService(_0x3770e5),this['FacetService']=new FacetService(_0x3770e5);}}class AuthClient{constructor(_0x3460af='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3460af);}['login'](_0xcba197){return __awaiter(this,void 0,void 0,function*(){const _0x4cdf98='login/'+_0xcba197;try{const _0x53d77c=yield yield fetch(_0x4cdf98);if(_0x53d77c['status']>0xc7&&_0x53d77c['status']<0x12c){const _0xd475eb=yield _0x53d77c['json']();return new SuccessfulAuthResponse(_0xd475eb);}const _0x11b00b=yield _0x53d77c['json']();return new FailedAuthResponse(_0x11b00b);}catch(_0x5474d0){if(_0x5474d0 instanceof Error)return new FailedAuthResponse({'detail':_0x5474d0['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5474d0;}});}['refresh'](_0x3a24f9){return __awaiter(this,void 0,void 0,function*(){const _0x32ecf2='refresh',_0x532d96={'refresh_token':_0x3a24f9};try{const _0x4b71ad=yield this['fetch']['PostNoAuth'](_0x32ecf2,_0x532d96);if(_0x4b71ad['status']>0xc7&&_0x4b71ad['status']<0x12c){const _0x14cc9e=yield _0x4b71ad['json']();return new SuccessfulAuthResponse(_0x14cc9e);}const _0x256241=yield _0x4b71ad['json']();return new FailedAuthResponse(_0x256241);}catch(_0x24444f){if(_0x24444f instanceof Error)return new FailedAuthResponse({'detail':_0x24444f['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x24444f;}});}['getTokenStatus'](_0x32eb21){if(Date['now']()<_0x32eb21['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x32eb21['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
+
17
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,18 +1,20 @@
1
1
  'use strict';
2
2
 
3
- exports.TokenStatus = void 0;(function(_0x29dac7){_0x29dac7[_0x29dac7['Ok']=0x0]='Ok',_0x29dac7[_0x29dac7['Refresh']=0x1]='Refresh',_0x29dac7[_0x29dac7['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(_0x26480f){this['isSuccess']=_0x26480f;}}class SuccessfulAccountResponse extends Response{constructor(_0x2c3121){super(!![]),this['account']=_0x2c3121;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x6a1761){super(!![]),this['list']=_0x6a1761;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4c6aa6){super(![]),this['problem']=_0x4c6aa6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x565eb1){super(![]),this['problem']=_0x565eb1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x51c230){super(!![]),this['tokens']=_0x51c230;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xbaf373){super(![]),this['problem']=_0xbaf373;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x572fe0){super(!![]),this['apiKey']=_0x572fe0;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4abdbb){super(![]),this['problem']=_0x4abdbb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x1c52e9){super(!![]),this['searchService']=_0x1c52e9;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x65975b){super(![]),this['problem']=_0x65975b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x168c94){super(!![]),this['searchService']=_0x168c94;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x46b5d2){super(!![]),this['searchServices']=_0x46b5d2;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x1619ee){super(![]),this['problem']=_0x1619ee;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x28677b){super(![]),this['problem']=_0x28677b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x53d9c7){super(!![]),this['apiKeyValue']=_0x53d9c7;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x113bec){super(!![]),this['obj']=_0x113bec;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x33afc4){super(![]),this['problem']=_0x33afc4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x2e563d){super(![]),this['problem']=_0x2e563d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x4aaddd){_0x4aaddd[_0x4aaddd['Ok']=0x0]='Ok',_0x4aaddd[_0x4aaddd['Refresh']=0x1]='Refresh',_0x4aaddd[_0x4aaddd['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(_0x1d32d5){this['isSuccess']=_0x1d32d5;}}class SuccessfulFacetResponse extends Response{constructor(_0x395972){super(!![]),this['facet']=_0x395972;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x19d29c){super(![]),this['problem']=_0x19d29c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x5e7211){super(!![]),this['account']=_0x5e7211;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x45a7fc){super(!![]),this['list']=_0x45a7fc;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x12734d){super(!![]),this['list']=_0x12734d;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x121dbc){super(![]),this['problem']=_0x121dbc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x5029a6){super(![]),this['problem']=_0x5029a6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x5d758c){super(![]),this['problem']=_0x5d758c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3ce239){super(!![]),this['tokens']=_0x3ce239;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x30a938){super(![]),this['problem']=_0x30a938;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x340979){super(!![]),this['apiKey']=_0x340979;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x169904){super(![]),this['problem']=_0x169904;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x75855c){super(!![]),this['searchService']=_0x75855c;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x223d79){super(![]),this['problem']=_0x223d79;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x1fec87){super(!![]),this['searchService']=_0x1fec87;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x23e299){super(!![]),this['searchServices']=_0x23e299;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x38a621){super(![]),this['problem']=_0x38a621;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x38dd8d){super(![]),this['problem']=_0x38dd8d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x5f3bd5){super(!![]),this['apiKeyValue']=_0x5f3bd5;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x5863a7){super(!![]),this['obj']=_0x5863a7;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x1e280e){super(![]),this['problem']=_0x1e280e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x43bd58){super(![]),this['problem']=_0x43bd58;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x2871e5,_0x347d4b,_0x12beb3,_0x26ff61){function _0x24fdea(_0x47be3d){return _0x47be3d instanceof _0x12beb3?_0x47be3d:new _0x12beb3(function(_0xa07927){_0xa07927(_0x47be3d);});}return new(_0x12beb3||(_0x12beb3=Promise))(function(_0x1b96b7,_0xda8b81){function _0x5ec1f9(_0x5dfb79){try{_0x4d2cc9(_0x26ff61['next'](_0x5dfb79));}catch(_0x26214f){_0xda8b81(_0x26214f);}}function _0x17dbac(_0x5139fb){try{_0x4d2cc9(_0x26ff61['throw'](_0x5139fb));}catch(_0x1af6c0){_0xda8b81(_0x1af6c0);}}function _0x4d2cc9(_0x523371){_0x523371['done']?_0x1b96b7(_0x523371['value']):_0x24fdea(_0x523371['value'])['then'](_0x5ec1f9,_0x17dbac);}_0x4d2cc9((_0x26ff61=_0x26ff61['apply'](_0x2871e5,_0x347d4b||[]))['next']());});};class AccountService{constructor(_0x214c49){this['fetch']=_0x214c49;}['get'](_0x52ed50,_0x2c7c13){return __awaiter$5(this,void 0,void 0,function*(){const _0x2cac59='Account/'+_0x52ed50+'/',_0x214202=yield this['fetch']['get'](_0x2cac59,_0x2c7c13);try{if(_0x214202['status']>0xc7&&_0x214202['status']<0x12c){const _0xfc0d9a=yield _0x214202['json']();return new SuccessfulAccountResponse(_0xfc0d9a);}const _0x457619=yield _0x214202['json']();return new FailedAccountResponse(_0x457619);}catch(_0x2adadf){if(_0x2adadf instanceof Error)return new FailedAccountResponse({'detail':_0x2adadf['message'],'title':_0x2adadf['name'],'status':0x1f4,'instance':'','type':''});throw _0x2adadf;}});}}
5
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x5dff5a,_0x5ee9d3,_0x275982,_0xfe9884){function _0xe1fd31(_0xae6b08){return _0xae6b08 instanceof _0x275982?_0xae6b08:new _0x275982(function(_0x52ad64){_0x52ad64(_0xae6b08);});}return new(_0x275982||(_0x275982=Promise))(function(_0x17bf7d,_0x9d7910){function _0x1934cd(_0x3f702b){try{_0x206af6(_0xfe9884['next'](_0x3f702b));}catch(_0x339cf6){_0x9d7910(_0x339cf6);}}function _0x2c3514(_0x1273ae){try{_0x206af6(_0xfe9884['throw'](_0x1273ae));}catch(_0x32f21f){_0x9d7910(_0x32f21f);}}function _0x206af6(_0x4d702f){_0x4d702f['done']?_0x17bf7d(_0x4d702f['value']):_0xe1fd31(_0x4d702f['value'])['then'](_0x1934cd,_0x2c3514);}_0x206af6((_0xfe9884=_0xfe9884['apply'](_0x5dff5a,_0x5ee9d3||[]))['next']());});};class AccountService{constructor(_0x4af0e7){this['fetch']=_0x4af0e7;}['get'](_0x374c58,_0x321e09){return __awaiter$6(this,void 0,void 0,function*(){const _0x18152a='Account/'+_0x374c58+'/',_0x515d39=yield this['fetch']['get'](_0x18152a,_0x321e09);try{if(_0x515d39['status']>0xc7&&_0x515d39['status']<0x12c){const _0x35a380=yield _0x515d39['json']();return new SuccessfulAccountResponse(_0x35a380);}const _0x351615=yield _0x515d39['json']();return new FailedAccountResponse(_0x351615);}catch(_0xd272d6){if(_0xd272d6 instanceof Error)return new FailedAccountResponse({'detail':_0xd272d6['message'],'title':_0xd272d6['name'],'status':0x1f4,'instance':'','type':''});throw _0xd272d6;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x407abe,_0x300d5d,_0x35f5a1,_0x29db79){function _0x568901(_0x197e2a){return _0x197e2a instanceof _0x35f5a1?_0x197e2a:new _0x35f5a1(function(_0x529207){_0x529207(_0x197e2a);});}return new(_0x35f5a1||(_0x35f5a1=Promise))(function(_0x1e852d,_0x1d6b07){function _0x7f05c2(_0x1b79e5){try{_0x40bf66(_0x29db79['next'](_0x1b79e5));}catch(_0x3af2f5){_0x1d6b07(_0x3af2f5);}}function _0x9a2a28(_0x582e48){try{_0x40bf66(_0x29db79['throw'](_0x582e48));}catch(_0x7f1695){_0x1d6b07(_0x7f1695);}}function _0x40bf66(_0x4c4c32){_0x4c4c32['done']?_0x1e852d(_0x4c4c32['value']):_0x568901(_0x4c4c32['value'])['then'](_0x7f05c2,_0x9a2a28);}_0x40bf66((_0x29db79=_0x29db79['apply'](_0x407abe,_0x300d5d||[]))['next']());});};class ApiKeyService{constructor(_0x1b42fb){this['fetch']=_0x1b42fb,this['path']='api-key';}['create'](_0x4082fc,_0x16f34f,_0x4fc36e){return __awaiter$4(this,void 0,void 0,function*(){const _0x148e89={'account_name':_0x4082fc,'api_key_name':_0x16f34f};try{const _0x1a7ae7=yield this['fetch']['post'](this['path'],_0x4fc36e,_0x148e89);if(_0x1a7ae7['status']>0xc7&&_0x1a7ae7['status']<0x12c){const _0x41cd08=yield _0x1a7ae7['json']();return new SuccessfulApiKeyResponse(_0x41cd08);}const _0x15bbe0=yield _0x1a7ae7['json']();return new FailedApiKeyResponse(_0x15bbe0);}catch(_0x2d0d18){if(_0x2d0d18 instanceof Error)return new FailedApiKeyResponse({'detail':_0x2d0d18['message'],'title':_0x2d0d18['name'],'status':0x1f4,'instance':'','type':''});throw _0x2d0d18;}});}['view'](_0x4d783d,_0x247613,_0x21991){return __awaiter$4(this,void 0,void 0,function*(){const _0x4b7280=this['path']+'/'+_0x4d783d+'/'+_0x247613;try{const _0x4f8d5e=yield this['fetch']['get'](_0x4b7280,_0x21991);if(_0x4f8d5e['status']>0xc7&&_0x4f8d5e['status']<0x12c){const _0x306ab1=yield _0x4f8d5e['json']();return new SuccessfulApiKeyValueResponse(_0x306ab1);}const _0x3ddd8d=yield _0x4f8d5e['json']();return new FailedApiKeyValueResponse(_0x3ddd8d);}catch(_0x35bd5c){if(_0x35bd5c instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x35bd5c['message'],'title':_0x35bd5c['name'],'status':0x1f4,'instance':'','type':''});throw _0x35bd5c;}});}['delete'](_0x9579cc,_0x215b2d,_0x4febf8){return __awaiter$4(this,void 0,void 0,function*(){const _0x5f001e=this['path']+'/'+_0x9579cc+'/'+_0x215b2d;try{const _0x1d030f=yield this['fetch']['delete'](_0x5f001e,_0x4febf8);if(_0x1d030f['status']>0xc7&&_0x1d030f['status']<0x12c)return new SuccessfulResponse({});const _0x2bc008=yield _0x1d030f['json']();return new FailedResponse(_0x2bc008);}catch(_0xd7bfda){if(_0xd7bfda instanceof Error)return new FailedResponse({'detail':_0xd7bfda['message'],'title':_0xd7bfda['name'],'status':0x1f4,'instance':'','type':''});throw _0xd7bfda;}});}}
7
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x4cf715,_0x3f0c75,_0x3e5722,_0x5e6007){function _0x20d256(_0x34c54d){return _0x34c54d instanceof _0x3e5722?_0x34c54d:new _0x3e5722(function(_0x43e2e5){_0x43e2e5(_0x34c54d);});}return new(_0x3e5722||(_0x3e5722=Promise))(function(_0xc9a916,_0x1a252c){function _0x27569f(_0x100c34){try{_0x1788f2(_0x5e6007['next'](_0x100c34));}catch(_0x4b02b6){_0x1a252c(_0x4b02b6);}}function _0x43fd88(_0x531556){try{_0x1788f2(_0x5e6007['throw'](_0x531556));}catch(_0x1990c0){_0x1a252c(_0x1990c0);}}function _0x1788f2(_0x530223){_0x530223['done']?_0xc9a916(_0x530223['value']):_0x20d256(_0x530223['value'])['then'](_0x27569f,_0x43fd88);}_0x1788f2((_0x5e6007=_0x5e6007['apply'](_0x4cf715,_0x3f0c75||[]))['next']());});};class ApiKeyService{constructor(_0x42b472){this['fetch']=_0x42b472,this['path']='api-key';}['create'](_0x5d1f83,_0x130da4,_0x53d9c8){return __awaiter$5(this,void 0,void 0,function*(){const _0x5df05c={'account_name':_0x5d1f83,'api_key_name':_0x130da4};try{const _0x4f2a3c=yield this['fetch']['post'](this['path'],_0x53d9c8,_0x5df05c);if(_0x4f2a3c['status']>0xc7&&_0x4f2a3c['status']<0x12c){const _0x4f6e8a=yield _0x4f2a3c['json']();return new SuccessfulApiKeyResponse(_0x4f6e8a);}const _0x3d1a82=yield _0x4f2a3c['json']();return new FailedApiKeyResponse(_0x3d1a82);}catch(_0x55ba45){if(_0x55ba45 instanceof Error)return new FailedApiKeyResponse({'detail':_0x55ba45['message'],'title':_0x55ba45['name'],'status':0x1f4,'instance':'','type':''});throw _0x55ba45;}});}['view'](_0x45dbc7,_0x4a5087,_0x2d83ce){return __awaiter$5(this,void 0,void 0,function*(){const _0x3a9d87=this['path']+'/'+_0x45dbc7+'/'+_0x4a5087;try{const _0x1e34b9=yield this['fetch']['get'](_0x3a9d87,_0x2d83ce);if(_0x1e34b9['status']>0xc7&&_0x1e34b9['status']<0x12c){const _0xf4955a=yield _0x1e34b9['json']();return new SuccessfulApiKeyValueResponse(_0xf4955a);}const _0x16e2e1=yield _0x1e34b9['json']();return new FailedApiKeyValueResponse(_0x16e2e1);}catch(_0xf87377){if(_0xf87377 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0xf87377['message'],'title':_0xf87377['name'],'status':0x1f4,'instance':'','type':''});throw _0xf87377;}});}['delete'](_0x4fdfa4,_0x52b169,_0x442a9e){return __awaiter$5(this,void 0,void 0,function*(){const _0x1c36c6=this['path']+'/'+_0x4fdfa4+'/'+_0x52b169;try{const _0x3e869a=yield this['fetch']['delete'](_0x1c36c6,_0x442a9e);if(_0x3e869a['status']>0xc7&&_0x3e869a['status']<0x12c)return new SuccessfulResponse({});const _0x4154f6=yield _0x3e869a['json']();return new FailedResponse(_0x4154f6);}catch(_0x3a6860){if(_0x3a6860 instanceof Error)return new FailedResponse({'detail':_0x3a6860['message'],'title':_0x3a6860['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a6860;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x3899c3,_0x2e1f4f,_0x58066b,_0x17aab0){function _0x26d387(_0x4a8626){return _0x4a8626 instanceof _0x58066b?_0x4a8626:new _0x58066b(function(_0x9024bb){_0x9024bb(_0x4a8626);});}return new(_0x58066b||(_0x58066b=Promise))(function(_0x4e428b,_0x9118e2){function _0x5b110c(_0x28842b){try{_0x46b60d(_0x17aab0['next'](_0x28842b));}catch(_0x689ef5){_0x9118e2(_0x689ef5);}}function _0x37a3fb(_0x313af1){try{_0x46b60d(_0x17aab0['throw'](_0x313af1));}catch(_0xe438){_0x9118e2(_0xe438);}}function _0x46b60d(_0x49a961){_0x49a961['done']?_0x4e428b(_0x49a961['value']):_0x26d387(_0x49a961['value'])['then'](_0x5b110c,_0x37a3fb);}_0x46b60d((_0x17aab0=_0x17aab0['apply'](_0x3899c3,_0x2e1f4f||[]))['next']());});};class ListService{constructor(_0x384638){this['fetch']=_0x384638;}['add'](_0x4ed590,_0x1a6dcd,_0x1641d2,_0x524014){return __awaiter$3(this,void 0,void 0,function*(){const _0x49f529='List',_0x3c95e2={'account_name':_0x4ed590,'list_name':_0x1a6dcd,'search_service_name':_0x1641d2};try{const _0x398804=yield this['fetch']['post'](_0x49f529,_0x524014,_0x3c95e2);if(_0x398804['status']>0xc7&&_0x398804['status']<0x12c){const _0x2737c6=yield _0x398804['json']();return new SuccessfulListIdentityResponse(_0x2737c6);}const _0x2fa79c=yield _0x398804['json']();return new FailedListIdentityResponse(_0x2fa79c);}catch(_0x54628f){if(_0x54628f instanceof Error)return new FailedListIdentityResponse({'detail':_0x54628f['message'],'title':_0x54628f['name'],'status':0x1f4,'instance':'','type':''});throw _0x54628f;}});}['delete'](_0x2d030f,_0x3c3533,_0x12bbcb){return __awaiter$3(this,void 0,void 0,function*(){const _0x459da4='List/'+_0x2d030f+'/'+_0x3c3533,_0x144d5f=yield this['fetch']['delete'](_0x459da4,_0x12bbcb);try{if(_0x144d5f['status']>0xc7&&_0x144d5f['status']<0x12c)return new SuccessfulResponse({});const _0x1e3ff6=yield _0x144d5f['json']();return new FailedResponse(_0x1e3ff6);}catch(_0x459eeb){if(_0x459eeb instanceof Error)return new FailedResponse({'detail':_0x459eeb['message'],'title':_0x459eeb['name'],'status':0x1f4,'instance':'','type':''});throw _0x459eeb;}});}}
9
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x57bf77,_0xa3193e,_0x28c96b,_0x4bc6dc){function _0x121c3f(_0x5a7678){return _0x5a7678 instanceof _0x28c96b?_0x5a7678:new _0x28c96b(function(_0x1b841b){_0x1b841b(_0x5a7678);});}return new(_0x28c96b||(_0x28c96b=Promise))(function(_0x1acea4,_0x1c9d30){function _0x3698c4(_0x275a38){try{_0xcd37e1(_0x4bc6dc['next'](_0x275a38));}catch(_0x5dacf1){_0x1c9d30(_0x5dacf1);}}function _0x26af80(_0x2cb1ce){try{_0xcd37e1(_0x4bc6dc['throw'](_0x2cb1ce));}catch(_0x4abda9){_0x1c9d30(_0x4abda9);}}function _0xcd37e1(_0x12671e){_0x12671e['done']?_0x1acea4(_0x12671e['value']):_0x121c3f(_0x12671e['value'])['then'](_0x3698c4,_0x26af80);}_0xcd37e1((_0x4bc6dc=_0x4bc6dc['apply'](_0x57bf77,_0xa3193e||[]))['next']());});};class ListService{constructor(_0x5bac2f){this['fetch']=_0x5bac2f;}['create'](_0x4186a9,_0x4f5e3e,_0x3709df,_0x4abe47){return __awaiter$4(this,void 0,void 0,function*(){const _0x337565='List',_0x27aefa={'account_name':_0x4186a9,'list_name':_0x4f5e3e,'search_service_name':_0x3709df};try{const _0xa046c2=yield this['fetch']['post'](_0x337565,_0x4abe47,_0x27aefa);if(_0xa046c2['status']>0xc7&&_0xa046c2['status']<0x12c){const _0x481e7a=yield _0xa046c2['json']();return new SuccessfulListIdentityResponse(_0x481e7a);}const _0x306de1=yield _0xa046c2['json']();return new FailedListIdentityResponse(_0x306de1);}catch(_0x22af25){if(_0x22af25 instanceof Error)return new FailedListIdentityResponse({'detail':_0x22af25['message'],'title':_0x22af25['name'],'status':0x1f4,'instance':'','type':''});throw _0x22af25;}});}['delete'](_0x7a5949,_0x3b5697,_0xa9d402){return __awaiter$4(this,void 0,void 0,function*(){const _0x2ad3a2='List/'+_0x7a5949+'/'+_0x3b5697,_0x1c62ed=yield this['fetch']['delete'](_0x2ad3a2,_0xa9d402);try{if(_0x1c62ed['status']>0xc7&&_0x1c62ed['status']<0x12c)return new SuccessfulResponse({});const _0x15354c=yield _0x1c62ed['json']();return new FailedResponse(_0x15354c);}catch(_0x301d2d){if(_0x301d2d instanceof Error)return new FailedResponse({'detail':_0x301d2d['message'],'title':_0x301d2d['name'],'status':0x1f4,'instance':'','type':''});throw _0x301d2d;}});}['get'](_0x13c82d,_0x33e394,_0x24c4d9){return __awaiter$4(this,void 0,void 0,function*(){const _0xf83713='List/'+_0x13c82d+'/'+_0x33e394;try{const _0x1f3ccc=yield this['fetch']['get'](_0xf83713,_0x24c4d9);if(_0x1f3ccc['status']>0xc7&&_0x1f3ccc['status']<0x12c){const _0x2ea488=yield _0x1f3ccc['json']();return new SuccessfulListResponse(_0x2ea488);}const _0x423f62=yield _0x1f3ccc['json']();return new FailedListResponse(_0x423f62);}catch(_0x4af15f){if(_0x4af15f instanceof Error)return new FailedListResponse({'detail':_0x4af15f['message'],'title':_0x4af15f['name'],'status':0x1f4,'instance':'','type':''});throw _0x4af15f;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5a1f14,_0x29599b,_0x3b7b65,_0x2e1d62){function _0x4fae3d(_0x2376e6){return _0x2376e6 instanceof _0x3b7b65?_0x2376e6:new _0x3b7b65(function(_0xd22dd6){_0xd22dd6(_0x2376e6);});}return new(_0x3b7b65||(_0x3b7b65=Promise))(function(_0x1a7743,_0x4fd681){function _0x408cf2(_0xbb6357){try{_0x20b3e8(_0x2e1d62['next'](_0xbb6357));}catch(_0x14b0dc){_0x4fd681(_0x14b0dc);}}function _0x3cf698(_0x4f0228){try{_0x20b3e8(_0x2e1d62['throw'](_0x4f0228));}catch(_0x1f82ec){_0x4fd681(_0x1f82ec);}}function _0x20b3e8(_0x30987d){_0x30987d['done']?_0x1a7743(_0x30987d['value']):_0x4fae3d(_0x30987d['value'])['then'](_0x408cf2,_0x3cf698);}_0x20b3e8((_0x2e1d62=_0x2e1d62['apply'](_0x5a1f14,_0x29599b||[]))['next']());});};class Fetch{constructor(_0x5804a4){this['baseUri']=_0x5804a4,this['getUrl']=_0x289a72=>{return _0x289a72['startsWith']('/')&&(_0x289a72=_0x289a72['replace']('/','')),''+this['baseUri']+_0x289a72;},!_0x5804a4['endsWith']('/')&&(_0x5804a4=_0x5804a4+'/');}['get'](_0x30f839,_0x13eaf3){return __awaiter$2(this,void 0,void 0,function*(){const _0x16ce89=this['getUrl'](_0x30f839);return yield fetch(_0x16ce89,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x13eaf3}});});}['post'](_0x36ac3e,_0xf1c163,_0x2a9f31){return __awaiter$2(this,void 0,void 0,function*(){const _0x561c33=this['getUrl'](_0x36ac3e);return yield fetch(_0x561c33,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xf1c163},'body':_0x2a9f31?JSON['stringify'](_0x2a9f31):null});});}['PostNoAuth'](_0x3028a2,_0x437213){return __awaiter$2(this,void 0,void 0,function*(){const _0x4fbcb7=this['getUrl'](_0x3028a2);return yield fetch(_0x4fbcb7,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x437213?JSON['stringify'](_0x437213):null});});}['put'](_0x5944bc,_0x4e7632,_0x4ea562){return __awaiter$2(this,void 0,void 0,function*(){const _0x36a742=this['getUrl'](_0x5944bc);return yield fetch(_0x36a742,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4e7632},'body':_0x4ea562?JSON['stringify'](_0x4ea562):null});});}['delete'](_0x3655f5,_0x2bd898){return __awaiter$2(this,void 0,void 0,function*(){const _0x319eb2=this['getUrl'](_0x3655f5);return yield fetch(_0x319eb2,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2bd898}});});}}
11
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x57bb70,_0x4402b3,_0xb47359,_0x4cd125){function _0x4f3f7c(_0x2e9646){return _0x2e9646 instanceof _0xb47359?_0x2e9646:new _0xb47359(function(_0x183ef6){_0x183ef6(_0x2e9646);});}return new(_0xb47359||(_0xb47359=Promise))(function(_0x14e093,_0x58cc53){function _0x207a4e(_0x303b78){try{_0x2590a8(_0x4cd125['next'](_0x303b78));}catch(_0x197cda){_0x58cc53(_0x197cda);}}function _0x205dd7(_0x82bd99){try{_0x2590a8(_0x4cd125['throw'](_0x82bd99));}catch(_0x330f7a){_0x58cc53(_0x330f7a);}}function _0x2590a8(_0x5a2fb0){_0x5a2fb0['done']?_0x14e093(_0x5a2fb0['value']):_0x4f3f7c(_0x5a2fb0['value'])['then'](_0x207a4e,_0x205dd7);}_0x2590a8((_0x4cd125=_0x4cd125['apply'](_0x57bb70,_0x4402b3||[]))['next']());});};class Fetch{constructor(_0x102a43){this['baseUri']=_0x102a43,this['getUrl']=_0x4368d1=>{return _0x4368d1['startsWith']('/')&&(_0x4368d1=_0x4368d1['replace']('/','')),''+this['baseUri']+_0x4368d1;},!_0x102a43['endsWith']('/')&&(_0x102a43=_0x102a43+'/');}['get'](_0x35ca68,_0x4a101c){return __awaiter$3(this,void 0,void 0,function*(){const _0x1bb09a=this['getUrl'](_0x35ca68);return yield fetch(_0x1bb09a,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4a101c}});});}['post'](_0x5b9d92,_0x180d97,_0x434423){return __awaiter$3(this,void 0,void 0,function*(){const _0x5f07eb=this['getUrl'](_0x5b9d92);return yield fetch(_0x5f07eb,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x180d97},'body':_0x434423?JSON['stringify'](_0x434423):null});});}['PostNoAuth'](_0xbdfb38,_0x42a51a){return __awaiter$3(this,void 0,void 0,function*(){const _0x5528ea=this['getUrl'](_0xbdfb38);return yield fetch(_0x5528ea,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x42a51a?JSON['stringify'](_0x42a51a):null});});}['put'](_0x1e1b1b,_0x59e7e3,_0x5e68f2){return __awaiter$3(this,void 0,void 0,function*(){const _0x31d53e=this['getUrl'](_0x1e1b1b);return yield fetch(_0x31d53e,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x59e7e3},'body':_0x5e68f2?JSON['stringify'](_0x5e68f2):null});});}['delete'](_0x52434b,_0x30578c){return __awaiter$3(this,void 0,void 0,function*(){const _0x438e0a=this['getUrl'](_0x52434b);return yield fetch(_0x438e0a,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x30578c}});});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x856241,_0x1d6191,_0x593b3e,_0x201c67){function _0x1c49f4(_0x158e71){return _0x158e71 instanceof _0x593b3e?_0x158e71:new _0x593b3e(function(_0x2fb1ea){_0x2fb1ea(_0x158e71);});}return new(_0x593b3e||(_0x593b3e=Promise))(function(_0x225284,_0x14d7de){function _0x155d76(_0x16d257){try{_0x324a77(_0x201c67['next'](_0x16d257));}catch(_0x590ddd){_0x14d7de(_0x590ddd);}}function _0x4dfda9(_0x3d0648){try{_0x324a77(_0x201c67['throw'](_0x3d0648));}catch(_0x30d7d6){_0x14d7de(_0x30d7d6);}}function _0x324a77(_0x30ea4a){_0x30ea4a['done']?_0x225284(_0x30ea4a['value']):_0x1c49f4(_0x30ea4a['value'])['then'](_0x155d76,_0x4dfda9);}_0x324a77((_0x201c67=_0x201c67['apply'](_0x856241,_0x1d6191||[]))['next']());});};class SearchServersService{constructor(_0x26d5da){this['fetch']=_0x26d5da,this['path']='search-services';}['create'](_0x2655ef,_0x19dcc5,_0x18789d,_0x2d254b,_0x57168b,_0x5792c7,_0x3950b9,_0xfc1161){return __awaiter$1(this,void 0,void 0,function*(){const _0x295985={'account_name':_0x2655ef,'search_service_name':_0x19dcc5,'endpoint':_0x18789d,'key':_0x2d254b,'country':_0x57168b,'provider':_0x5792c7,'index_name':_0x3950b9};try{const _0x5d21d6=yield this['fetch']['post'](this['path'],_0xfc1161,_0x295985);if(_0x5d21d6['status']>0xc7&&_0x5d21d6['status']<0x12c){const _0x26eb43=yield _0x5d21d6['json']();return new SuccessfulSearchServiceResponse(_0x26eb43);}const _0x47aa8f=yield _0x5d21d6['json']();return new FailedSearchServiceResponse(_0x47aa8f);}catch(_0x5dd800){if(_0x5dd800 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5dd800['message'],'title':_0x5dd800['name'],'status':0x1f4,'instance':'','type':''});throw _0x5dd800;}});}['delete'](_0x257fb9,_0x19f011,_0x52ca94){return __awaiter$1(this,void 0,void 0,function*(){const _0x12ca21=this['path']+'/'+_0x257fb9+'/'+_0x19f011;try{const _0x2a0242=yield this['fetch']['delete'](_0x12ca21,_0x52ca94);if(_0x2a0242['status']>0xc7&&_0x2a0242['status']<0x12c)return new SuccessfulResponse({});const _0x1e40d4=yield _0x2a0242['json']();return new FailedResponse(_0x1e40d4);}catch(_0x191b13){if(_0x191b13 instanceof Error)return new FailedResponse({'detail':_0x191b13['message'],'title':_0x191b13['name'],'status':0x1f4,'instance':'','type':''});throw _0x191b13;}});}['view'](_0x17bd15,_0x514a27,_0x41fbda){return __awaiter$1(this,void 0,void 0,function*(){const _0x58bde0=this['path']+'/'+_0x17bd15+'/'+_0x514a27;try{const _0x4eb539=yield this['fetch']['get'](_0x58bde0,_0x41fbda);if(_0x4eb539['status']>0xc7&&_0x4eb539['status']<0x12c){const _0x144269=yield _0x4eb539['json']();return new SuccessfulViewSearchServiceResponse(_0x144269);}const _0x4598aa=yield _0x4eb539['json']();return new FailedViewSearchServiceResponse(_0x4598aa);}catch(_0x4f553b){if(_0x4f553b instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x4f553b['message'],'title':_0x4f553b['name'],'status':0x1f4,'instance':'','type':''});throw _0x4f553b;}});}['edit'](_0x22fe52,_0x50de67,_0x38a65a,_0x23686b,_0x3213b0,_0x267910){return __awaiter$1(this,void 0,void 0,function*(){const _0x511ad6={'account_name':_0x22fe52,'search_service_name':_0x50de67,'new_search_service_name':_0x38a65a,'key':_0x23686b,'country':_0x3213b0};try{const _0x175009=yield this['fetch']['put'](this['path'],_0x267910,_0x511ad6);if(_0x175009['status']>0xc7&&_0x175009['status']<0x12c){const _0x59ba3e=yield _0x175009['json']();return new SuccessfulSearchServiceResponse(_0x59ba3e);}const _0x1a01c6=yield _0x175009['json']();return new FailedSearchServiceResponse(_0x1a01c6);}catch(_0x28e5bc){if(_0x28e5bc instanceof Error)return new FailedSearchServiceResponse({'detail':_0x28e5bc['message'],'title':_0x28e5bc['name'],'status':0x1f4,'instance':'','type':''});throw _0x28e5bc;}});}['list'](_0x5ee896,_0x6f8fb8){return __awaiter$1(this,void 0,void 0,function*(){const _0xb0c93d=this['path']+'/'+_0x5ee896;try{const _0x50b0b8=yield this['fetch']['get'](_0xb0c93d,_0x6f8fb8);if(_0x50b0b8['status']>0xc7&&_0x50b0b8['status']<0x12c){const _0x41eeb9=yield _0x50b0b8['json']();return new SuccessfulListSearchServiceResponse(_0x41eeb9);}const _0x3cb226=yield _0x50b0b8['json']();return new FailedViewSearchServicesResponse(_0x3cb226);}catch(_0x22d980){if(_0x22d980 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x22d980['message'],'title':_0x22d980['name'],'status':0x1f4,'instance':'','type':''});throw _0x22d980;}});}}
13
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x55ae2a,_0x421542,_0x186ad6,_0x16c057){function _0x457f26(_0x42769d){return _0x42769d instanceof _0x186ad6?_0x42769d:new _0x186ad6(function(_0x405f5b){_0x405f5b(_0x42769d);});}return new(_0x186ad6||(_0x186ad6=Promise))(function(_0x100c02,_0x135d88){function _0xff5b6e(_0x45c75c){try{_0x5512fd(_0x16c057['next'](_0x45c75c));}catch(_0x27fdbd){_0x135d88(_0x27fdbd);}}function _0x188c54(_0x55e236){try{_0x5512fd(_0x16c057['throw'](_0x55e236));}catch(_0x7a6a2f){_0x135d88(_0x7a6a2f);}}function _0x5512fd(_0x2baa66){_0x2baa66['done']?_0x100c02(_0x2baa66['value']):_0x457f26(_0x2baa66['value'])['then'](_0xff5b6e,_0x188c54);}_0x5512fd((_0x16c057=_0x16c057['apply'](_0x55ae2a,_0x421542||[]))['next']());});};class SearchServersService{constructor(_0x15c726){this['fetch']=_0x15c726,this['path']='search-services';}['create'](_0x2b374c,_0x1a5524,_0x2449af,_0x41eec9,_0x3bdf26,_0x2fb7d5,_0x1909ce,_0x1f5b25){return __awaiter$2(this,void 0,void 0,function*(){const _0x45ab8e={'account_name':_0x2b374c,'search_service_name':_0x1a5524,'endpoint':_0x2449af,'key':_0x41eec9,'country':_0x3bdf26,'provider':_0x2fb7d5,'index_name':_0x1909ce};try{const _0x2fc83b=yield this['fetch']['post'](this['path'],_0x1f5b25,_0x45ab8e);if(_0x2fc83b['status']>0xc7&&_0x2fc83b['status']<0x12c){const _0x173873=yield _0x2fc83b['json']();return new SuccessfulSearchServiceResponse(_0x173873);}const _0x33fdc1=yield _0x2fc83b['json']();return new FailedSearchServiceResponse(_0x33fdc1);}catch(_0x414c8f){if(_0x414c8f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x414c8f['message'],'title':_0x414c8f['name'],'status':0x1f4,'instance':'','type':''});throw _0x414c8f;}});}['delete'](_0x8c5a7c,_0x104fce,_0x158a72){return __awaiter$2(this,void 0,void 0,function*(){const _0x48ffd7=this['path']+'/'+_0x8c5a7c+'/'+_0x104fce;try{const _0x53e1a0=yield this['fetch']['delete'](_0x48ffd7,_0x158a72);if(_0x53e1a0['status']>0xc7&&_0x53e1a0['status']<0x12c)return new SuccessfulResponse({});const _0x28b18e=yield _0x53e1a0['json']();return new FailedResponse(_0x28b18e);}catch(_0x1b3d9e){if(_0x1b3d9e instanceof Error)return new FailedResponse({'detail':_0x1b3d9e['message'],'title':_0x1b3d9e['name'],'status':0x1f4,'instance':'','type':''});throw _0x1b3d9e;}});}['view'](_0x2e2133,_0x37eb18,_0xb5033){return __awaiter$2(this,void 0,void 0,function*(){const _0xfbe0ca=this['path']+'/'+_0x2e2133+'/'+_0x37eb18;try{const _0x124e6e=yield this['fetch']['get'](_0xfbe0ca,_0xb5033);if(_0x124e6e['status']>0xc7&&_0x124e6e['status']<0x12c){const _0x1985b1=yield _0x124e6e['json']();return new SuccessfulViewSearchServiceResponse(_0x1985b1);}const _0x57c03b=yield _0x124e6e['json']();return new FailedViewSearchServiceResponse(_0x57c03b);}catch(_0x58ada1){if(_0x58ada1 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x58ada1['message'],'title':_0x58ada1['name'],'status':0x1f4,'instance':'','type':''});throw _0x58ada1;}});}['edit'](_0x1e5143,_0x19311c,_0x340b43,_0x32a89f,_0x4cdd24,_0x41d417){return __awaiter$2(this,void 0,void 0,function*(){const _0x228d3d={'account_name':_0x1e5143,'search_service_name':_0x19311c,'new_search_service_name':_0x340b43,'key':_0x32a89f,'country':_0x4cdd24};try{const _0x413b1e=yield this['fetch']['put'](this['path'],_0x41d417,_0x228d3d);if(_0x413b1e['status']>0xc7&&_0x413b1e['status']<0x12c){const _0x3e674a=yield _0x413b1e['json']();return new SuccessfulSearchServiceResponse(_0x3e674a);}const _0x42cf76=yield _0x413b1e['json']();return new FailedSearchServiceResponse(_0x42cf76);}catch(_0x415349){if(_0x415349 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x415349['message'],'title':_0x415349['name'],'status':0x1f4,'instance':'','type':''});throw _0x415349;}});}['list'](_0x204527,_0x19ac29){return __awaiter$2(this,void 0,void 0,function*(){const _0x379206=this['path']+'/'+_0x204527;try{const _0x413a35=yield this['fetch']['get'](_0x379206,_0x19ac29);if(_0x413a35['status']>0xc7&&_0x413a35['status']<0x12c){const _0x129069=yield _0x413a35['json']();return new SuccessfulListSearchServiceResponse(_0x129069);}const _0x2c4081=yield _0x413a35['json']();return new FailedViewSearchServicesResponse(_0x2c4081);}catch(_0x18061d){if(_0x18061d instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x18061d['message'],'title':_0x18061d['name'],'status':0x1f4,'instance':'','type':''});throw _0x18061d;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x3b447d,_0x4a07c9,_0x2fada3,_0x263ef1){function _0x3bca5f(_0x28889a){return _0x28889a instanceof _0x2fada3?_0x28889a:new _0x2fada3(function(_0x41d457){_0x41d457(_0x28889a);});}return new(_0x2fada3||(_0x2fada3=Promise))(function(_0x22c01c,_0x1844f1){function _0x5e6bdf(_0x4bc9f2){try{_0x4fae2a(_0x263ef1['next'](_0x4bc9f2));}catch(_0x5dbee8){_0x1844f1(_0x5dbee8);}}function _0x2a9685(_0x2e9e10){try{_0x4fae2a(_0x263ef1['throw'](_0x2e9e10));}catch(_0x5a75a4){_0x1844f1(_0x5a75a4);}}function _0x4fae2a(_0x3f1279){_0x3f1279['done']?_0x22c01c(_0x3f1279['value']):_0x3bca5f(_0x3f1279['value'])['then'](_0x5e6bdf,_0x2a9685);}_0x4fae2a((_0x263ef1=_0x263ef1['apply'](_0x3b447d,_0x4a07c9||[]))['next']());});};class AdminClient{constructor(_0x40364d='https://admin.searchability.dev/'){var _0x40e2d2=new Fetch(_0x40364d);this['Accounts']=new AccountService(_0x40e2d2),this['Lists']=new ListService(_0x40e2d2),this['ApiKeys']=new ApiKeyService(_0x40e2d2),this['SearchServices']=new SearchServersService(_0x40e2d2);}}class AuthClient{constructor(_0x36f390='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x36f390);}['login'](_0x501f8a){return __awaiter(this,void 0,void 0,function*(){const _0x49eb1e='login/'+_0x501f8a;try{const _0x575fd4=yield yield fetch(_0x49eb1e);if(_0x575fd4['status']>0xc7&&_0x575fd4['status']<0x12c){const _0x38848c=yield _0x575fd4['json']();return new SuccessfulAuthResponse(_0x38848c);}const _0x547b7a=yield _0x575fd4['json']();return new FailedAuthResponse(_0x547b7a);}catch(_0x5ed2d6){if(_0x5ed2d6 instanceof Error)return new FailedAuthResponse({'detail':_0x5ed2d6['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5ed2d6;}});}['refresh'](_0x37d6e0){return __awaiter(this,void 0,void 0,function*(){const _0x5d5e1a='refresh',_0x1fb9c9={'refresh_token':_0x37d6e0};try{const _0x2d6824=yield this['fetch']['PostNoAuth'](_0x5d5e1a,_0x1fb9c9);if(_0x2d6824['status']>0xc7&&_0x2d6824['status']<0x12c){const _0x3ca147=yield _0x2d6824['json']();return new SuccessfulAuthResponse(_0x3ca147);}const _0x1a059b=yield _0x2d6824['json']();return new FailedAuthResponse(_0x1a059b);}catch(_0x2c6c3e){if(_0x2c6c3e instanceof Error)return new FailedAuthResponse({'detail':_0x2c6c3e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2c6c3e;}});}['getTokenStatus'](_0x13f11b){if(Date['now']()<_0x13f11b['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x13f11b['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
15
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x5c7656,_0x19833d,_0x552a08,_0x327fb4){function _0x178af2(_0x590bef){return _0x590bef instanceof _0x552a08?_0x590bef:new _0x552a08(function(_0x407e41){_0x407e41(_0x590bef);});}return new(_0x552a08||(_0x552a08=Promise))(function(_0x5ce8cc,_0x3aeaa4){function _0x27df57(_0x2e2d13){try{_0x2feb48(_0x327fb4['next'](_0x2e2d13));}catch(_0x25d970){_0x3aeaa4(_0x25d970);}}function _0x37385f(_0x210ef4){try{_0x2feb48(_0x327fb4['throw'](_0x210ef4));}catch(_0x4d9869){_0x3aeaa4(_0x4d9869);}}function _0x2feb48(_0x2af72a){_0x2af72a['done']?_0x5ce8cc(_0x2af72a['value']):_0x178af2(_0x2af72a['value'])['then'](_0x27df57,_0x37385f);}_0x2feb48((_0x327fb4=_0x327fb4['apply'](_0x5c7656,_0x19833d||[]))['next']());});};class FacetService{constructor(_0x3dffe4){this['fetch']=_0x3dffe4,this['path']='facet';}['create'](_0x1a5763,_0x1fa369,_0xe2684c,_0x2d7d61){return __awaiter$1(this,void 0,void 0,function*(){const _0x4293d7={'account_name':_0x1a5763,'list_name':_0x1fa369,'facet_name':_0xe2684c};try{const _0x423790=yield this['fetch']['post'](this['path'],_0x2d7d61,_0x4293d7);if(_0x423790['status']>0xc7&&_0x423790['status']<0x12c){const _0xb5ebb6=yield _0x423790['json']();return new SuccessfulFacetResponse(_0xb5ebb6);}const _0x420548=yield _0x423790['json']();return new FailedFacetResponse(_0x420548);}catch(_0xc2a396){if(_0xc2a396 instanceof Error)return new FailedFacetResponse({'detail':_0xc2a396['message'],'title':_0xc2a396['name'],'status':0x1f4,'instance':'','type':''});throw _0xc2a396;}});}}
16
+
17
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x58ccb2,_0x215327,_0x217df4,_0x237a79){function _0x1937ec(_0x34f6a6){return _0x34f6a6 instanceof _0x217df4?_0x34f6a6:new _0x217df4(function(_0x511db4){_0x511db4(_0x34f6a6);});}return new(_0x217df4||(_0x217df4=Promise))(function(_0x500c52,_0x2c8570){function _0x3be2c5(_0x10c3ea){try{_0x2fe338(_0x237a79['next'](_0x10c3ea));}catch(_0x27a96f){_0x2c8570(_0x27a96f);}}function _0x1bff6d(_0xfd43e3){try{_0x2fe338(_0x237a79['throw'](_0xfd43e3));}catch(_0x5f16a2){_0x2c8570(_0x5f16a2);}}function _0x2fe338(_0x495d58){_0x495d58['done']?_0x500c52(_0x495d58['value']):_0x1937ec(_0x495d58['value'])['then'](_0x3be2c5,_0x1bff6d);}_0x2fe338((_0x237a79=_0x237a79['apply'](_0x58ccb2,_0x215327||[]))['next']());});};class AdminClient{constructor(_0x50d416='https://admin.searchability.dev/'){var _0x40effd=new Fetch(_0x50d416);this['Accounts']=new AccountService(_0x40effd),this['Lists']=new ListService(_0x40effd),this['ApiKeys']=new ApiKeyService(_0x40effd),this['SearchServices']=new SearchServersService(_0x40effd),this['FacetService']=new FacetService(_0x40effd);}}class AuthClient{constructor(_0x4309b0='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4309b0);}['login'](_0x2d02e8){return __awaiter(this,void 0,void 0,function*(){const _0x9c2ea2='login/'+_0x2d02e8;try{const _0x5bf5fb=yield yield fetch(_0x9c2ea2);if(_0x5bf5fb['status']>0xc7&&_0x5bf5fb['status']<0x12c){const _0x24b76f=yield _0x5bf5fb['json']();return new SuccessfulAuthResponse(_0x24b76f);}const _0xd58cf1=yield _0x5bf5fb['json']();return new FailedAuthResponse(_0xd58cf1);}catch(_0x6b6ff0){if(_0x6b6ff0 instanceof Error)return new FailedAuthResponse({'detail':_0x6b6ff0['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x6b6ff0;}});}['refresh'](_0x4bf89e){return __awaiter(this,void 0,void 0,function*(){const _0xb3f03a='refresh',_0x1641ed={'refresh_token':_0x4bf89e};try{const _0x5c80f4=yield this['fetch']['PostNoAuth'](_0xb3f03a,_0x1641ed);if(_0x5c80f4['status']>0xc7&&_0x5c80f4['status']<0x12c){const _0x25dc9f=yield _0x5c80f4['json']();return new SuccessfulAuthResponse(_0x25dc9f);}const _0xc608f1=yield _0x5c80f4['json']();return new FailedAuthResponse(_0xc608f1);}catch(_0x39e981){if(_0x39e981 instanceof Error)return new FailedAuthResponse({'detail':_0x39e981['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x39e981;}});}['getTokenStatus'](_0x421ab6){if(Date['now']()<_0x421ab6['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x421ab6['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
16
18
 
17
19
  exports.AdminClient = AdminClient;
18
20
  exports.AuthClient = AuthClient;
@@ -1,15 +1,17 @@
1
- var TokenStatus;(function(_0x2c44d6){_0x2c44d6[_0x2c44d6['Ok']=0x0]='Ok',_0x2c44d6[_0x2c44d6['Refresh']=0x1]='Refresh',_0x2c44d6[_0x2c44d6['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(_0x174783){this['isSuccess']=_0x174783;}}class SuccessfulAccountResponse extends Response{constructor(_0x491436){super(!![]),this['account']=_0x491436;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x1c3031){super(!![]),this['list']=_0x1c3031;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x41aed2){super(![]),this['problem']=_0x41aed2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x5a660b){super(![]),this['problem']=_0x5a660b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x28c1aa){super(!![]),this['tokens']=_0x28c1aa;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x2b62e4){super(![]),this['problem']=_0x2b62e4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x11b977){super(!![]),this['apiKey']=_0x11b977;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x225fa8){super(![]),this['problem']=_0x225fa8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x37167a){super(!![]),this['searchService']=_0x37167a;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x100b23){super(![]),this['problem']=_0x100b23;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0xb014d4){super(!![]),this['searchService']=_0xb014d4;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x49c26d){super(!![]),this['searchServices']=_0x49c26d;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x25be0d){super(![]),this['problem']=_0x25be0d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x367514){super(![]),this['problem']=_0x367514;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x202d49){super(!![]),this['apiKeyValue']=_0x202d49;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x17eb4d){super(!![]),this['obj']=_0x17eb4d;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0xafb6d3){super(![]),this['problem']=_0xafb6d3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x19a53e){super(![]),this['problem']=_0x19a53e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0x5f3774){_0x5f3774[_0x5f3774['Ok']=0x0]='Ok',_0x5f3774[_0x5f3774['Refresh']=0x1]='Refresh',_0x5f3774[_0x5f3774['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(_0x4049f0){this['isSuccess']=_0x4049f0;}}class SuccessfulFacetResponse extends Response{constructor(_0x24c37b){super(!![]),this['facet']=_0x24c37b;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x323d52){super(![]),this['problem']=_0x323d52;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x237e6c){super(!![]),this['account']=_0x237e6c;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x3053ac){super(!![]),this['list']=_0x3053ac;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x27ee9a){super(!![]),this['list']=_0x27ee9a;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3d59dc){super(![]),this['problem']=_0x3d59dc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x5c47ae){super(![]),this['problem']=_0x5c47ae;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x3a7841){super(![]),this['problem']=_0x3a7841;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x231da9){super(!![]),this['tokens']=_0x231da9;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x587438){super(![]),this['problem']=_0x587438;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x209077){super(!![]),this['apiKey']=_0x209077;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4dac8){super(![]),this['problem']=_0x4dac8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x5ad862){super(!![]),this['searchService']=_0x5ad862;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x3dadce){super(![]),this['problem']=_0x3dadce;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x4c5d5e){super(!![]),this['searchService']=_0x4c5d5e;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x5656c7){super(!![]),this['searchServices']=_0x5656c7;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x57dc56){super(![]),this['problem']=_0x57dc56;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x21d559){super(![]),this['problem']=_0x21d559;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x14b092){super(!![]),this['apiKeyValue']=_0x14b092;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x4f1f6d){super(!![]),this['obj']=_0x4f1f6d;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x230b27){super(![]),this['problem']=_0x230b27;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x14c85f){super(![]),this['problem']=_0x14c85f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x35f880,_0x2b7ac6,_0x412686,_0x399f62){function _0x398bf7(_0x803bf5){return _0x803bf5 instanceof _0x412686?_0x803bf5:new _0x412686(function(_0x16bd5f){_0x16bd5f(_0x803bf5);});}return new(_0x412686||(_0x412686=Promise))(function(_0x291275,_0x3f0298){function _0x56e2bb(_0x1bf412){try{_0x14e948(_0x399f62['next'](_0x1bf412));}catch(_0x25dc13){_0x3f0298(_0x25dc13);}}function _0x2d402e(_0x3a06e9){try{_0x14e948(_0x399f62['throw'](_0x3a06e9));}catch(_0x121bcb){_0x3f0298(_0x121bcb);}}function _0x14e948(_0x459440){_0x459440['done']?_0x291275(_0x459440['value']):_0x398bf7(_0x459440['value'])['then'](_0x56e2bb,_0x2d402e);}_0x14e948((_0x399f62=_0x399f62['apply'](_0x35f880,_0x2b7ac6||[]))['next']());});};class AccountService{constructor(_0x295a65){this['fetch']=_0x295a65;}['get'](_0x1ee0fb,_0x368afb){return __awaiter$5(this,void 0,void 0,function*(){const _0x4a1dd='Account/'+_0x1ee0fb+'/',_0x5eea39=yield this['fetch']['get'](_0x4a1dd,_0x368afb);try{if(_0x5eea39['status']>0xc7&&_0x5eea39['status']<0x12c){const _0x486839=yield _0x5eea39['json']();return new SuccessfulAccountResponse(_0x486839);}const _0x1923fd=yield _0x5eea39['json']();return new FailedAccountResponse(_0x1923fd);}catch(_0x151bd7){if(_0x151bd7 instanceof Error)return new FailedAccountResponse({'detail':_0x151bd7['message'],'title':_0x151bd7['name'],'status':0x1f4,'instance':'','type':''});throw _0x151bd7;}});}}
3
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0xbd9d3a,_0xec16d,_0x5ad43c,_0x469536){function _0x51df20(_0x24c3b4){return _0x24c3b4 instanceof _0x5ad43c?_0x24c3b4:new _0x5ad43c(function(_0x4e0528){_0x4e0528(_0x24c3b4);});}return new(_0x5ad43c||(_0x5ad43c=Promise))(function(_0x5556b6,_0x42b5b9){function _0xfa9e7b(_0x11b756){try{_0x526ba9(_0x469536['next'](_0x11b756));}catch(_0x2cc9df){_0x42b5b9(_0x2cc9df);}}function _0x1680be(_0x556dea){try{_0x526ba9(_0x469536['throw'](_0x556dea));}catch(_0x10008b){_0x42b5b9(_0x10008b);}}function _0x526ba9(_0x191c87){_0x191c87['done']?_0x5556b6(_0x191c87['value']):_0x51df20(_0x191c87['value'])['then'](_0xfa9e7b,_0x1680be);}_0x526ba9((_0x469536=_0x469536['apply'](_0xbd9d3a,_0xec16d||[]))['next']());});};class AccountService{constructor(_0x58fcec){this['fetch']=_0x58fcec;}['get'](_0xb8cb3,_0xa9b0a0){return __awaiter$6(this,void 0,void 0,function*(){const _0x286c95='Account/'+_0xb8cb3+'/',_0x9eb936=yield this['fetch']['get'](_0x286c95,_0xa9b0a0);try{if(_0x9eb936['status']>0xc7&&_0x9eb936['status']<0x12c){const _0x23c671=yield _0x9eb936['json']();return new SuccessfulAccountResponse(_0x23c671);}const _0xbe3202=yield _0x9eb936['json']();return new FailedAccountResponse(_0xbe3202);}catch(_0x2933c3){if(_0x2933c3 instanceof Error)return new FailedAccountResponse({'detail':_0x2933c3['message'],'title':_0x2933c3['name'],'status':0x1f4,'instance':'','type':''});throw _0x2933c3;}});}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2625c0,_0x33df41,_0x5f4063,_0x9ce0d5){function _0x121248(_0x114615){return _0x114615 instanceof _0x5f4063?_0x114615:new _0x5f4063(function(_0x418b01){_0x418b01(_0x114615);});}return new(_0x5f4063||(_0x5f4063=Promise))(function(_0x1f5c82,_0x4ea4e5){function _0x5e1d25(_0x233fe0){try{_0x30811d(_0x9ce0d5['next'](_0x233fe0));}catch(_0x80d200){_0x4ea4e5(_0x80d200);}}function _0x4f59c5(_0xd27cb7){try{_0x30811d(_0x9ce0d5['throw'](_0xd27cb7));}catch(_0x2d7e05){_0x4ea4e5(_0x2d7e05);}}function _0x30811d(_0x29cab9){_0x29cab9['done']?_0x1f5c82(_0x29cab9['value']):_0x121248(_0x29cab9['value'])['then'](_0x5e1d25,_0x4f59c5);}_0x30811d((_0x9ce0d5=_0x9ce0d5['apply'](_0x2625c0,_0x33df41||[]))['next']());});};class ApiKeyService{constructor(_0x47f520){this['fetch']=_0x47f520,this['path']='api-key';}['create'](_0x35f0dd,_0xb5a53d,_0xd0c71){return __awaiter$4(this,void 0,void 0,function*(){const _0x5f1083={'account_name':_0x35f0dd,'api_key_name':_0xb5a53d};try{const _0xcc3749=yield this['fetch']['post'](this['path'],_0xd0c71,_0x5f1083);if(_0xcc3749['status']>0xc7&&_0xcc3749['status']<0x12c){const _0x4c4c0e=yield _0xcc3749['json']();return new SuccessfulApiKeyResponse(_0x4c4c0e);}const _0x2aa5de=yield _0xcc3749['json']();return new FailedApiKeyResponse(_0x2aa5de);}catch(_0x88e05a){if(_0x88e05a instanceof Error)return new FailedApiKeyResponse({'detail':_0x88e05a['message'],'title':_0x88e05a['name'],'status':0x1f4,'instance':'','type':''});throw _0x88e05a;}});}['view'](_0x28f632,_0x27ff8a,_0x472399){return __awaiter$4(this,void 0,void 0,function*(){const _0x1c2826=this['path']+'/'+_0x28f632+'/'+_0x27ff8a;try{const _0x4936a5=yield this['fetch']['get'](_0x1c2826,_0x472399);if(_0x4936a5['status']>0xc7&&_0x4936a5['status']<0x12c){const _0x540b8b=yield _0x4936a5['json']();return new SuccessfulApiKeyValueResponse(_0x540b8b);}const _0x21c9c3=yield _0x4936a5['json']();return new FailedApiKeyValueResponse(_0x21c9c3);}catch(_0x40fe91){if(_0x40fe91 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x40fe91['message'],'title':_0x40fe91['name'],'status':0x1f4,'instance':'','type':''});throw _0x40fe91;}});}['delete'](_0x1d3dcd,_0x34157a,_0x314338){return __awaiter$4(this,void 0,void 0,function*(){const _0x50b3e3=this['path']+'/'+_0x1d3dcd+'/'+_0x34157a;try{const _0x3f195e=yield this['fetch']['delete'](_0x50b3e3,_0x314338);if(_0x3f195e['status']>0xc7&&_0x3f195e['status']<0x12c)return new SuccessfulResponse({});const _0x27d726=yield _0x3f195e['json']();return new FailedResponse(_0x27d726);}catch(_0x378450){if(_0x378450 instanceof Error)return new FailedResponse({'detail':_0x378450['message'],'title':_0x378450['name'],'status':0x1f4,'instance':'','type':''});throw _0x378450;}});}}
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x44ba59,_0x3a0356,_0x3b85ac,_0x132bf0){function _0x2bae4f(_0x323d5f){return _0x323d5f instanceof _0x3b85ac?_0x323d5f:new _0x3b85ac(function(_0x64d290){_0x64d290(_0x323d5f);});}return new(_0x3b85ac||(_0x3b85ac=Promise))(function(_0x109115,_0x504b41){function _0x4416aa(_0x4b9719){try{_0x3cde4a(_0x132bf0['next'](_0x4b9719));}catch(_0x9ea186){_0x504b41(_0x9ea186);}}function _0x59806d(_0x36e129){try{_0x3cde4a(_0x132bf0['throw'](_0x36e129));}catch(_0x3aa6b3){_0x504b41(_0x3aa6b3);}}function _0x3cde4a(_0x5681b4){_0x5681b4['done']?_0x109115(_0x5681b4['value']):_0x2bae4f(_0x5681b4['value'])['then'](_0x4416aa,_0x59806d);}_0x3cde4a((_0x132bf0=_0x132bf0['apply'](_0x44ba59,_0x3a0356||[]))['next']());});};class ApiKeyService{constructor(_0x3e3fb2){this['fetch']=_0x3e3fb2,this['path']='api-key';}['create'](_0x5e38f1,_0x284406,_0x2fafdd){return __awaiter$5(this,void 0,void 0,function*(){const _0x2df97a={'account_name':_0x5e38f1,'api_key_name':_0x284406};try{const _0x1c9210=yield this['fetch']['post'](this['path'],_0x2fafdd,_0x2df97a);if(_0x1c9210['status']>0xc7&&_0x1c9210['status']<0x12c){const _0x4c2fc2=yield _0x1c9210['json']();return new SuccessfulApiKeyResponse(_0x4c2fc2);}const _0x3d70cc=yield _0x1c9210['json']();return new FailedApiKeyResponse(_0x3d70cc);}catch(_0x247e7e){if(_0x247e7e instanceof Error)return new FailedApiKeyResponse({'detail':_0x247e7e['message'],'title':_0x247e7e['name'],'status':0x1f4,'instance':'','type':''});throw _0x247e7e;}});}['view'](_0x35b83f,_0x2edc81,_0x3eb56b){return __awaiter$5(this,void 0,void 0,function*(){const _0xc4be82=this['path']+'/'+_0x35b83f+'/'+_0x2edc81;try{const _0x42ab70=yield this['fetch']['get'](_0xc4be82,_0x3eb56b);if(_0x42ab70['status']>0xc7&&_0x42ab70['status']<0x12c){const _0xc41470=yield _0x42ab70['json']();return new SuccessfulApiKeyValueResponse(_0xc41470);}const _0xdb5e44=yield _0x42ab70['json']();return new FailedApiKeyValueResponse(_0xdb5e44);}catch(_0x34efc2){if(_0x34efc2 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x34efc2['message'],'title':_0x34efc2['name'],'status':0x1f4,'instance':'','type':''});throw _0x34efc2;}});}['delete'](_0x2f0209,_0x101f10,_0x36a63a){return __awaiter$5(this,void 0,void 0,function*(){const _0xba1554=this['path']+'/'+_0x2f0209+'/'+_0x101f10;try{const _0x93be70=yield this['fetch']['delete'](_0xba1554,_0x36a63a);if(_0x93be70['status']>0xc7&&_0x93be70['status']<0x12c)return new SuccessfulResponse({});const _0x473340=yield _0x93be70['json']();return new FailedResponse(_0x473340);}catch(_0xe9836d){if(_0xe9836d instanceof Error)return new FailedResponse({'detail':_0xe9836d['message'],'title':_0xe9836d['name'],'status':0x1f4,'instance':'','type':''});throw _0xe9836d;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x469d92,_0x561302,_0x45e6d5,_0x430be2){function _0x4d2542(_0x2ccb91){return _0x2ccb91 instanceof _0x45e6d5?_0x2ccb91:new _0x45e6d5(function(_0x52e186){_0x52e186(_0x2ccb91);});}return new(_0x45e6d5||(_0x45e6d5=Promise))(function(_0x5590a4,_0x5207dc){function _0x1955b7(_0x3e3881){try{_0x3bf085(_0x430be2['next'](_0x3e3881));}catch(_0x308edc){_0x5207dc(_0x308edc);}}function _0x37d2aa(_0x3ef31f){try{_0x3bf085(_0x430be2['throw'](_0x3ef31f));}catch(_0x1af0e9){_0x5207dc(_0x1af0e9);}}function _0x3bf085(_0x1ba551){_0x1ba551['done']?_0x5590a4(_0x1ba551['value']):_0x4d2542(_0x1ba551['value'])['then'](_0x1955b7,_0x37d2aa);}_0x3bf085((_0x430be2=_0x430be2['apply'](_0x469d92,_0x561302||[]))['next']());});};class ListService{constructor(_0x351e6a){this['fetch']=_0x351e6a;}['add'](_0x4d0298,_0x53e870,_0x436730,_0x558937){return __awaiter$3(this,void 0,void 0,function*(){const _0x51860e='List',_0x3fb27f={'account_name':_0x4d0298,'list_name':_0x53e870,'search_service_name':_0x436730};try{const _0x49325c=yield this['fetch']['post'](_0x51860e,_0x558937,_0x3fb27f);if(_0x49325c['status']>0xc7&&_0x49325c['status']<0x12c){const _0x427174=yield _0x49325c['json']();return new SuccessfulListIdentityResponse(_0x427174);}const _0x4dff3f=yield _0x49325c['json']();return new FailedListIdentityResponse(_0x4dff3f);}catch(_0x2db80e){if(_0x2db80e instanceof Error)return new FailedListIdentityResponse({'detail':_0x2db80e['message'],'title':_0x2db80e['name'],'status':0x1f4,'instance':'','type':''});throw _0x2db80e;}});}['delete'](_0x1a96d2,_0x3e100e,_0x1e00e3){return __awaiter$3(this,void 0,void 0,function*(){const _0x1169da='List/'+_0x1a96d2+'/'+_0x3e100e,_0x469bc6=yield this['fetch']['delete'](_0x1169da,_0x1e00e3);try{if(_0x469bc6['status']>0xc7&&_0x469bc6['status']<0x12c)return new SuccessfulResponse({});const _0x1057ca=yield _0x469bc6['json']();return new FailedResponse(_0x1057ca);}catch(_0x5b21ed){if(_0x5b21ed instanceof Error)return new FailedResponse({'detail':_0x5b21ed['message'],'title':_0x5b21ed['name'],'status':0x1f4,'instance':'','type':''});throw _0x5b21ed;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x23aa6e,_0x26fc88,_0x380b2e,_0x3ebee9){function _0x5c9903(_0x32bd3f){return _0x32bd3f instanceof _0x380b2e?_0x32bd3f:new _0x380b2e(function(_0x5c6bc5){_0x5c6bc5(_0x32bd3f);});}return new(_0x380b2e||(_0x380b2e=Promise))(function(_0x59e310,_0x29e77c){function _0x57f68a(_0x4828af){try{_0x51f8d0(_0x3ebee9['next'](_0x4828af));}catch(_0x5661cc){_0x29e77c(_0x5661cc);}}function _0x3afb17(_0x47fd8c){try{_0x51f8d0(_0x3ebee9['throw'](_0x47fd8c));}catch(_0x4452b7){_0x29e77c(_0x4452b7);}}function _0x51f8d0(_0x453620){_0x453620['done']?_0x59e310(_0x453620['value']):_0x5c9903(_0x453620['value'])['then'](_0x57f68a,_0x3afb17);}_0x51f8d0((_0x3ebee9=_0x3ebee9['apply'](_0x23aa6e,_0x26fc88||[]))['next']());});};class ListService{constructor(_0x2ee9cf){this['fetch']=_0x2ee9cf;}['create'](_0x1c1c2d,_0x3922ce,_0x1a20b4,_0x52ad7d){return __awaiter$4(this,void 0,void 0,function*(){const _0x1ee6bd='List',_0x4b3106={'account_name':_0x1c1c2d,'list_name':_0x3922ce,'search_service_name':_0x1a20b4};try{const _0x5b2f35=yield this['fetch']['post'](_0x1ee6bd,_0x52ad7d,_0x4b3106);if(_0x5b2f35['status']>0xc7&&_0x5b2f35['status']<0x12c){const _0x50b205=yield _0x5b2f35['json']();return new SuccessfulListIdentityResponse(_0x50b205);}const _0x274718=yield _0x5b2f35['json']();return new FailedListIdentityResponse(_0x274718);}catch(_0x4117ca){if(_0x4117ca instanceof Error)return new FailedListIdentityResponse({'detail':_0x4117ca['message'],'title':_0x4117ca['name'],'status':0x1f4,'instance':'','type':''});throw _0x4117ca;}});}['delete'](_0xe0ae26,_0x3d1372,_0x1879a4){return __awaiter$4(this,void 0,void 0,function*(){const _0x264a2c='List/'+_0xe0ae26+'/'+_0x3d1372,_0x38903b=yield this['fetch']['delete'](_0x264a2c,_0x1879a4);try{if(_0x38903b['status']>0xc7&&_0x38903b['status']<0x12c)return new SuccessfulResponse({});const _0x35d0a7=yield _0x38903b['json']();return new FailedResponse(_0x35d0a7);}catch(_0x25e7e2){if(_0x25e7e2 instanceof Error)return new FailedResponse({'detail':_0x25e7e2['message'],'title':_0x25e7e2['name'],'status':0x1f4,'instance':'','type':''});throw _0x25e7e2;}});}['get'](_0x1aef6a,_0x1b202b,_0x4c0147){return __awaiter$4(this,void 0,void 0,function*(){const _0x41c870='List/'+_0x1aef6a+'/'+_0x1b202b;try{const _0x167269=yield this['fetch']['get'](_0x41c870,_0x4c0147);if(_0x167269['status']>0xc7&&_0x167269['status']<0x12c){const _0x509ae9=yield _0x167269['json']();return new SuccessfulListResponse(_0x509ae9);}const _0x37941e=yield _0x167269['json']();return new FailedListResponse(_0x37941e);}catch(_0x2e8725){if(_0x2e8725 instanceof Error)return new FailedListResponse({'detail':_0x2e8725['message'],'title':_0x2e8725['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e8725;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x43c404,_0xafe0c5,_0x396b8e,_0x1fbb30){function _0x41e9c8(_0x4a96fa){return _0x4a96fa instanceof _0x396b8e?_0x4a96fa:new _0x396b8e(function(_0x358d6e){_0x358d6e(_0x4a96fa);});}return new(_0x396b8e||(_0x396b8e=Promise))(function(_0x5e9ab8,_0xa4d331){function _0x257f64(_0x36b45a){try{_0x3360b9(_0x1fbb30['next'](_0x36b45a));}catch(_0x2cdf66){_0xa4d331(_0x2cdf66);}}function _0x54a3a1(_0x2e0366){try{_0x3360b9(_0x1fbb30['throw'](_0x2e0366));}catch(_0x1f9923){_0xa4d331(_0x1f9923);}}function _0x3360b9(_0x185576){_0x185576['done']?_0x5e9ab8(_0x185576['value']):_0x41e9c8(_0x185576['value'])['then'](_0x257f64,_0x54a3a1);}_0x3360b9((_0x1fbb30=_0x1fbb30['apply'](_0x43c404,_0xafe0c5||[]))['next']());});};class Fetch{constructor(_0x4b360d){this['baseUri']=_0x4b360d,this['getUrl']=_0x32e19b=>{return _0x32e19b['startsWith']('/')&&(_0x32e19b=_0x32e19b['replace']('/','')),''+this['baseUri']+_0x32e19b;},!_0x4b360d['endsWith']('/')&&(_0x4b360d=_0x4b360d+'/');}['get'](_0x197d40,_0x40a79d){return __awaiter$2(this,void 0,void 0,function*(){const _0x9305ad=this['getUrl'](_0x197d40);return yield fetch(_0x9305ad,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x40a79d}});});}['post'](_0x3d082f,_0x557e3f,_0x10594d){return __awaiter$2(this,void 0,void 0,function*(){const _0x141c97=this['getUrl'](_0x3d082f);return yield fetch(_0x141c97,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x557e3f},'body':_0x10594d?JSON['stringify'](_0x10594d):null});});}['PostNoAuth'](_0x495b2c,_0x2c4dfe){return __awaiter$2(this,void 0,void 0,function*(){const _0x5ad615=this['getUrl'](_0x495b2c);return yield fetch(_0x5ad615,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x2c4dfe?JSON['stringify'](_0x2c4dfe):null});});}['put'](_0x5a205d,_0x4dc9f9,_0x505043){return __awaiter$2(this,void 0,void 0,function*(){const _0x37112c=this['getUrl'](_0x5a205d);return yield fetch(_0x37112c,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4dc9f9},'body':_0x505043?JSON['stringify'](_0x505043):null});});}['delete'](_0x328120,_0x2ce678){return __awaiter$2(this,void 0,void 0,function*(){const _0x4634e5=this['getUrl'](_0x328120);return yield fetch(_0x4634e5,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2ce678}});});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x59cc95,_0x33c8d0,_0x5ebf18,_0x2302a5){function _0x4938fc(_0x174d04){return _0x174d04 instanceof _0x5ebf18?_0x174d04:new _0x5ebf18(function(_0x47db21){_0x47db21(_0x174d04);});}return new(_0x5ebf18||(_0x5ebf18=Promise))(function(_0x40cc91,_0x66d7ba){function _0xdae63e(_0x4f956f){try{_0xfb4a1c(_0x2302a5['next'](_0x4f956f));}catch(_0x302bd7){_0x66d7ba(_0x302bd7);}}function _0x539723(_0x1a3e73){try{_0xfb4a1c(_0x2302a5['throw'](_0x1a3e73));}catch(_0x4ed4a1){_0x66d7ba(_0x4ed4a1);}}function _0xfb4a1c(_0xb01dee){_0xb01dee['done']?_0x40cc91(_0xb01dee['value']):_0x4938fc(_0xb01dee['value'])['then'](_0xdae63e,_0x539723);}_0xfb4a1c((_0x2302a5=_0x2302a5['apply'](_0x59cc95,_0x33c8d0||[]))['next']());});};class Fetch{constructor(_0x28f993){this['baseUri']=_0x28f993,this['getUrl']=_0x517b0b=>{return _0x517b0b['startsWith']('/')&&(_0x517b0b=_0x517b0b['replace']('/','')),''+this['baseUri']+_0x517b0b;},!_0x28f993['endsWith']('/')&&(_0x28f993=_0x28f993+'/');}['get'](_0x4bc2d9,_0x2e5b0f){return __awaiter$3(this,void 0,void 0,function*(){const _0x3b05c6=this['getUrl'](_0x4bc2d9);return yield fetch(_0x3b05c6,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2e5b0f}});});}['post'](_0x49a102,_0x220039,_0x2f341f){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a63e7=this['getUrl'](_0x49a102);return yield fetch(_0x2a63e7,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x220039},'body':_0x2f341f?JSON['stringify'](_0x2f341f):null});});}['PostNoAuth'](_0x2170d3,_0x29721e){return __awaiter$3(this,void 0,void 0,function*(){const _0x670b3a=this['getUrl'](_0x2170d3);return yield fetch(_0x670b3a,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x29721e?JSON['stringify'](_0x29721e):null});});}['put'](_0x54c752,_0x28a3de,_0x27d936){return __awaiter$3(this,void 0,void 0,function*(){const _0x2e5ea1=this['getUrl'](_0x54c752);return yield fetch(_0x2e5ea1,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x28a3de},'body':_0x27d936?JSON['stringify'](_0x27d936):null});});}['delete'](_0x3ec959,_0x4875cc){return __awaiter$3(this,void 0,void 0,function*(){const _0x59b9a6=this['getUrl'](_0x3ec959);return yield fetch(_0x59b9a6,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4875cc}});});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4de4ed,_0x573e21,_0x1e4644,_0x2e9b01){function _0x290617(_0x41f341){return _0x41f341 instanceof _0x1e4644?_0x41f341:new _0x1e4644(function(_0x3fea12){_0x3fea12(_0x41f341);});}return new(_0x1e4644||(_0x1e4644=Promise))(function(_0x14d606,_0x3976e3){function _0x532c15(_0x1d37da){try{_0x4e0373(_0x2e9b01['next'](_0x1d37da));}catch(_0x1bb841){_0x3976e3(_0x1bb841);}}function _0x41f962(_0x53aa56){try{_0x4e0373(_0x2e9b01['throw'](_0x53aa56));}catch(_0x8be13c){_0x3976e3(_0x8be13c);}}function _0x4e0373(_0xe78425){_0xe78425['done']?_0x14d606(_0xe78425['value']):_0x290617(_0xe78425['value'])['then'](_0x532c15,_0x41f962);}_0x4e0373((_0x2e9b01=_0x2e9b01['apply'](_0x4de4ed,_0x573e21||[]))['next']());});};class SearchServersService{constructor(_0x2d1f8f){this['fetch']=_0x2d1f8f,this['path']='search-services';}['create'](_0x44e24b,_0x5589a6,_0x4707a9,_0x50feef,_0x4679f5,_0x4fae29,_0x2b5d00,_0x3f4b11){return __awaiter$1(this,void 0,void 0,function*(){const _0x21f824={'account_name':_0x44e24b,'search_service_name':_0x5589a6,'endpoint':_0x4707a9,'key':_0x50feef,'country':_0x4679f5,'provider':_0x4fae29,'index_name':_0x2b5d00};try{const _0xc99383=yield this['fetch']['post'](this['path'],_0x3f4b11,_0x21f824);if(_0xc99383['status']>0xc7&&_0xc99383['status']<0x12c){const _0x2774a5=yield _0xc99383['json']();return new SuccessfulSearchServiceResponse(_0x2774a5);}const _0x841743=yield _0xc99383['json']();return new FailedSearchServiceResponse(_0x841743);}catch(_0x514534){if(_0x514534 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x514534['message'],'title':_0x514534['name'],'status':0x1f4,'instance':'','type':''});throw _0x514534;}});}['delete'](_0x15e30b,_0x37a306,_0x338246){return __awaiter$1(this,void 0,void 0,function*(){const _0x1904e1=this['path']+'/'+_0x15e30b+'/'+_0x37a306;try{const _0x1652c0=yield this['fetch']['delete'](_0x1904e1,_0x338246);if(_0x1652c0['status']>0xc7&&_0x1652c0['status']<0x12c)return new SuccessfulResponse({});const _0x5abc33=yield _0x1652c0['json']();return new FailedResponse(_0x5abc33);}catch(_0x68d40c){if(_0x68d40c instanceof Error)return new FailedResponse({'detail':_0x68d40c['message'],'title':_0x68d40c['name'],'status':0x1f4,'instance':'','type':''});throw _0x68d40c;}});}['view'](_0x3b05ae,_0xa03f7f,_0xcb4c07){return __awaiter$1(this,void 0,void 0,function*(){const _0x36e87e=this['path']+'/'+_0x3b05ae+'/'+_0xa03f7f;try{const _0x280cf6=yield this['fetch']['get'](_0x36e87e,_0xcb4c07);if(_0x280cf6['status']>0xc7&&_0x280cf6['status']<0x12c){const _0x57ae57=yield _0x280cf6['json']();return new SuccessfulViewSearchServiceResponse(_0x57ae57);}const _0x49180c=yield _0x280cf6['json']();return new FailedViewSearchServiceResponse(_0x49180c);}catch(_0x505066){if(_0x505066 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x505066['message'],'title':_0x505066['name'],'status':0x1f4,'instance':'','type':''});throw _0x505066;}});}['edit'](_0x2ff7af,_0x303208,_0x46aaeb,_0x3d1967,_0x276990,_0x5e8a9){return __awaiter$1(this,void 0,void 0,function*(){const _0x2ff036={'account_name':_0x2ff7af,'search_service_name':_0x303208,'new_search_service_name':_0x46aaeb,'key':_0x3d1967,'country':_0x276990};try{const _0x4feb12=yield this['fetch']['put'](this['path'],_0x5e8a9,_0x2ff036);if(_0x4feb12['status']>0xc7&&_0x4feb12['status']<0x12c){const _0x32016e=yield _0x4feb12['json']();return new SuccessfulSearchServiceResponse(_0x32016e);}const _0x274485=yield _0x4feb12['json']();return new FailedSearchServiceResponse(_0x274485);}catch(_0x1545fe){if(_0x1545fe instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1545fe['message'],'title':_0x1545fe['name'],'status':0x1f4,'instance':'','type':''});throw _0x1545fe;}});}['list'](_0x1c152b,_0x100164){return __awaiter$1(this,void 0,void 0,function*(){const _0x5ced86=this['path']+'/'+_0x1c152b;try{const _0x497ec8=yield this['fetch']['get'](_0x5ced86,_0x100164);if(_0x497ec8['status']>0xc7&&_0x497ec8['status']<0x12c){const _0x1091e6=yield _0x497ec8['json']();return new SuccessfulListSearchServiceResponse(_0x1091e6);}const _0x148ec1=yield _0x497ec8['json']();return new FailedViewSearchServicesResponse(_0x148ec1);}catch(_0x3e8de3){if(_0x3e8de3 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x3e8de3['message'],'title':_0x3e8de3['name'],'status':0x1f4,'instance':'','type':''});throw _0x3e8de3;}});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x312934,_0x2b8264,_0x5896cd,_0x82be2b){function _0x379e85(_0x2e1515){return _0x2e1515 instanceof _0x5896cd?_0x2e1515:new _0x5896cd(function(_0x1df17e){_0x1df17e(_0x2e1515);});}return new(_0x5896cd||(_0x5896cd=Promise))(function(_0x1a53b7,_0x2e68ae){function _0x5271e0(_0x36f92a){try{_0x269deb(_0x82be2b['next'](_0x36f92a));}catch(_0x1a7e20){_0x2e68ae(_0x1a7e20);}}function _0x55fde6(_0x4d6f16){try{_0x269deb(_0x82be2b['throw'](_0x4d6f16));}catch(_0x3a2403){_0x2e68ae(_0x3a2403);}}function _0x269deb(_0x4e86e0){_0x4e86e0['done']?_0x1a53b7(_0x4e86e0['value']):_0x379e85(_0x4e86e0['value'])['then'](_0x5271e0,_0x55fde6);}_0x269deb((_0x82be2b=_0x82be2b['apply'](_0x312934,_0x2b8264||[]))['next']());});};class SearchServersService{constructor(_0x36857b){this['fetch']=_0x36857b,this['path']='search-services';}['create'](_0x29d549,_0x13f786,_0x5118b9,_0x83f1,_0x867f9f,_0x4cf671,_0x591907,_0x4e3d8f){return __awaiter$2(this,void 0,void 0,function*(){const _0x2ee5b1={'account_name':_0x29d549,'search_service_name':_0x13f786,'endpoint':_0x5118b9,'key':_0x83f1,'country':_0x867f9f,'provider':_0x4cf671,'index_name':_0x591907};try{const _0x58e1d0=yield this['fetch']['post'](this['path'],_0x4e3d8f,_0x2ee5b1);if(_0x58e1d0['status']>0xc7&&_0x58e1d0['status']<0x12c){const _0x2beafa=yield _0x58e1d0['json']();return new SuccessfulSearchServiceResponse(_0x2beafa);}const _0x5c8a87=yield _0x58e1d0['json']();return new FailedSearchServiceResponse(_0x5c8a87);}catch(_0x2f40c0){if(_0x2f40c0 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2f40c0['message'],'title':_0x2f40c0['name'],'status':0x1f4,'instance':'','type':''});throw _0x2f40c0;}});}['delete'](_0x1ed2cc,_0x58ab9d,_0x50ab17){return __awaiter$2(this,void 0,void 0,function*(){const _0xb66ad5=this['path']+'/'+_0x1ed2cc+'/'+_0x58ab9d;try{const _0x2c5d7a=yield this['fetch']['delete'](_0xb66ad5,_0x50ab17);if(_0x2c5d7a['status']>0xc7&&_0x2c5d7a['status']<0x12c)return new SuccessfulResponse({});const _0x4a8379=yield _0x2c5d7a['json']();return new FailedResponse(_0x4a8379);}catch(_0x442650){if(_0x442650 instanceof Error)return new FailedResponse({'detail':_0x442650['message'],'title':_0x442650['name'],'status':0x1f4,'instance':'','type':''});throw _0x442650;}});}['view'](_0xebf7ca,_0x59a038,_0x46214a){return __awaiter$2(this,void 0,void 0,function*(){const _0xb50427=this['path']+'/'+_0xebf7ca+'/'+_0x59a038;try{const _0x41f388=yield this['fetch']['get'](_0xb50427,_0x46214a);if(_0x41f388['status']>0xc7&&_0x41f388['status']<0x12c){const _0x28a7d4=yield _0x41f388['json']();return new SuccessfulViewSearchServiceResponse(_0x28a7d4);}const _0x1bd396=yield _0x41f388['json']();return new FailedViewSearchServiceResponse(_0x1bd396);}catch(_0xb8094e){if(_0xb8094e instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0xb8094e['message'],'title':_0xb8094e['name'],'status':0x1f4,'instance':'','type':''});throw _0xb8094e;}});}['edit'](_0x2e319e,_0x35d9e7,_0x568d5d,_0x401acf,_0x5ff97d,_0x373558){return __awaiter$2(this,void 0,void 0,function*(){const _0x4ad191={'account_name':_0x2e319e,'search_service_name':_0x35d9e7,'new_search_service_name':_0x568d5d,'key':_0x401acf,'country':_0x5ff97d};try{const _0x2f3e9c=yield this['fetch']['put'](this['path'],_0x373558,_0x4ad191);if(_0x2f3e9c['status']>0xc7&&_0x2f3e9c['status']<0x12c){const _0x4a21c8=yield _0x2f3e9c['json']();return new SuccessfulSearchServiceResponse(_0x4a21c8);}const _0x27090f=yield _0x2f3e9c['json']();return new FailedSearchServiceResponse(_0x27090f);}catch(_0x23f767){if(_0x23f767 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x23f767['message'],'title':_0x23f767['name'],'status':0x1f4,'instance':'','type':''});throw _0x23f767;}});}['list'](_0x4d283c,_0x4b05d7){return __awaiter$2(this,void 0,void 0,function*(){const _0x348fbd=this['path']+'/'+_0x4d283c;try{const _0xbfef89=yield this['fetch']['get'](_0x348fbd,_0x4b05d7);if(_0xbfef89['status']>0xc7&&_0xbfef89['status']<0x12c){const _0x43643b=yield _0xbfef89['json']();return new SuccessfulListSearchServiceResponse(_0x43643b);}const _0x18c60f=yield _0xbfef89['json']();return new FailedViewSearchServicesResponse(_0x18c60f);}catch(_0x1f4cc0){if(_0x1f4cc0 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x1f4cc0['message'],'title':_0x1f4cc0['name'],'status':0x1f4,'instance':'','type':''});throw _0x1f4cc0;}});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x41d7dd,_0x1147b6,_0x3868db,_0x1fdf01){function _0x2632bd(_0x3036a6){return _0x3036a6 instanceof _0x3868db?_0x3036a6:new _0x3868db(function(_0x2b87fc){_0x2b87fc(_0x3036a6);});}return new(_0x3868db||(_0x3868db=Promise))(function(_0x407546,_0x373209){function _0x28200d(_0x5f63c3){try{_0x1d0d19(_0x1fdf01['next'](_0x5f63c3));}catch(_0x3cee2c){_0x373209(_0x3cee2c);}}function _0x3c2bf2(_0x298dd4){try{_0x1d0d19(_0x1fdf01['throw'](_0x298dd4));}catch(_0x4d3f45){_0x373209(_0x4d3f45);}}function _0x1d0d19(_0x174229){_0x174229['done']?_0x407546(_0x174229['value']):_0x2632bd(_0x174229['value'])['then'](_0x28200d,_0x3c2bf2);}_0x1d0d19((_0x1fdf01=_0x1fdf01['apply'](_0x41d7dd,_0x1147b6||[]))['next']());});};class AdminClient{constructor(_0x4816d9='https://admin.searchability.dev/'){var _0x441149=new Fetch(_0x4816d9);this['Accounts']=new AccountService(_0x441149),this['Lists']=new ListService(_0x441149),this['ApiKeys']=new ApiKeyService(_0x441149),this['SearchServices']=new SearchServersService(_0x441149);}}class AuthClient{constructor(_0x23f554='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x23f554);}['login'](_0x40ebb8){return __awaiter(this,void 0,void 0,function*(){const _0x871af7='login/'+_0x40ebb8;try{const _0x160d7e=yield yield fetch(_0x871af7);if(_0x160d7e['status']>0xc7&&_0x160d7e['status']<0x12c){const _0x57b933=yield _0x160d7e['json']();return new SuccessfulAuthResponse(_0x57b933);}const _0x10736a=yield _0x160d7e['json']();return new FailedAuthResponse(_0x10736a);}catch(_0x4963f7){if(_0x4963f7 instanceof Error)return new FailedAuthResponse({'detail':_0x4963f7['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4963f7;}});}['refresh'](_0x5ae000){return __awaiter(this,void 0,void 0,function*(){const _0x3ce96b='refresh',_0x506f04={'refresh_token':_0x5ae000};try{const _0x2a9712=yield this['fetch']['PostNoAuth'](_0x3ce96b,_0x506f04);if(_0x2a9712['status']>0xc7&&_0x2a9712['status']<0x12c){const _0x5e4a3b=yield _0x2a9712['json']();return new SuccessfulAuthResponse(_0x5e4a3b);}const _0x4cbd60=yield _0x2a9712['json']();return new FailedAuthResponse(_0x4cbd60);}catch(_0x317dd1){if(_0x317dd1 instanceof Error)return new FailedAuthResponse({'detail':_0x317dd1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x317dd1;}});}['getTokenStatus'](_0x5a39bb){if(Date['now']()<_0x5a39bb['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x5a39bb['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x59a2ad,_0x1b3308,_0x35b237,_0x27fee8){function _0x265f92(_0x4f8485){return _0x4f8485 instanceof _0x35b237?_0x4f8485:new _0x35b237(function(_0x282d48){_0x282d48(_0x4f8485);});}return new(_0x35b237||(_0x35b237=Promise))(function(_0x59f65e,_0x5457c2){function _0x16ba20(_0xbca21c){try{_0x7e2b0d(_0x27fee8['next'](_0xbca21c));}catch(_0x1a0585){_0x5457c2(_0x1a0585);}}function _0x396829(_0x5b1832){try{_0x7e2b0d(_0x27fee8['throw'](_0x5b1832));}catch(_0x29748f){_0x5457c2(_0x29748f);}}function _0x7e2b0d(_0x24823b){_0x24823b['done']?_0x59f65e(_0x24823b['value']):_0x265f92(_0x24823b['value'])['then'](_0x16ba20,_0x396829);}_0x7e2b0d((_0x27fee8=_0x27fee8['apply'](_0x59a2ad,_0x1b3308||[]))['next']());});};class FacetService{constructor(_0x35198e){this['fetch']=_0x35198e,this['path']='facet';}['create'](_0x3fb13a,_0x315d18,_0x50330b,_0x4f9b9b){return __awaiter$1(this,void 0,void 0,function*(){const _0x488371={'account_name':_0x3fb13a,'list_name':_0x315d18,'facet_name':_0x50330b};try{const _0x6426c6=yield this['fetch']['post'](this['path'],_0x4f9b9b,_0x488371);if(_0x6426c6['status']>0xc7&&_0x6426c6['status']<0x12c){const _0x27dbda=yield _0x6426c6['json']();return new SuccessfulFacetResponse(_0x27dbda);}const _0x4d91ca=yield _0x6426c6['json']();return new FailedFacetResponse(_0x4d91ca);}catch(_0x518ec6){if(_0x518ec6 instanceof Error)return new FailedFacetResponse({'detail':_0x518ec6['message'],'title':_0x518ec6['name'],'status':0x1f4,'instance':'','type':''});throw _0x518ec6;}});}}
14
+
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0xec8c18,_0x39533d,_0x1ff674,_0x46d9ac){function _0x2f23b0(_0x38121a){return _0x38121a instanceof _0x1ff674?_0x38121a:new _0x1ff674(function(_0x555d77){_0x555d77(_0x38121a);});}return new(_0x1ff674||(_0x1ff674=Promise))(function(_0xea85f1,_0x38da26){function _0x541e6c(_0x1deacd){try{_0x4c345c(_0x46d9ac['next'](_0x1deacd));}catch(_0x558e65){_0x38da26(_0x558e65);}}function _0xed2994(_0x2bb149){try{_0x4c345c(_0x46d9ac['throw'](_0x2bb149));}catch(_0x238483){_0x38da26(_0x238483);}}function _0x4c345c(_0xf33120){_0xf33120['done']?_0xea85f1(_0xf33120['value']):_0x2f23b0(_0xf33120['value'])['then'](_0x541e6c,_0xed2994);}_0x4c345c((_0x46d9ac=_0x46d9ac['apply'](_0xec8c18,_0x39533d||[]))['next']());});};class AdminClient{constructor(_0x502e48='https://admin.searchability.dev/'){var _0x37cd6b=new Fetch(_0x502e48);this['Accounts']=new AccountService(_0x37cd6b),this['Lists']=new ListService(_0x37cd6b),this['ApiKeys']=new ApiKeyService(_0x37cd6b),this['SearchServices']=new SearchServersService(_0x37cd6b),this['FacetService']=new FacetService(_0x37cd6b);}}class AuthClient{constructor(_0x19eda4='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x19eda4);}['login'](_0x41bcab){return __awaiter(this,void 0,void 0,function*(){const _0x3793dc='login/'+_0x41bcab;try{const _0x3e7a4c=yield yield fetch(_0x3793dc);if(_0x3e7a4c['status']>0xc7&&_0x3e7a4c['status']<0x12c){const _0x50c5f6=yield _0x3e7a4c['json']();return new SuccessfulAuthResponse(_0x50c5f6);}const _0x47020c=yield _0x3e7a4c['json']();return new FailedAuthResponse(_0x47020c);}catch(_0x135641){if(_0x135641 instanceof Error)return new FailedAuthResponse({'detail':_0x135641['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x135641;}});}['refresh'](_0xa132f4){return __awaiter(this,void 0,void 0,function*(){const _0x498e24='refresh',_0x42ccd3={'refresh_token':_0xa132f4};try{const _0x3c8fad=yield this['fetch']['PostNoAuth'](_0x498e24,_0x42ccd3);if(_0x3c8fad['status']>0xc7&&_0x3c8fad['status']<0x12c){const _0x910706=yield _0x3c8fad['json']();return new SuccessfulAuthResponse(_0x910706);}const _0x5e91b4=yield _0x3c8fad['json']();return new FailedAuthResponse(_0x5e91b4);}catch(_0x6e33ed){if(_0x6e33ed instanceof Error)return new FailedAuthResponse({'detail':_0x6e33ed['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x6e33ed;}});}['getTokenStatus'](_0xb5fa80){if(Date['now']()<_0xb5fa80['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0xb5fa80['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
16
 
15
17
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -27,8 +27,9 @@ declare class ApiKeyService {
27
27
  declare class ListService {
28
28
  private readonly fetch;
29
29
  constructor(fetch: Fetch);
30
- add(account_name: string, list_name: string, search_service_name: string, access_token: string): Promise<Response<ListIdentity, Problem>>;
30
+ create(account_name: string, list_name: string, search_service_name: string, access_token: string): Promise<Response<ListIdentity, Problem>>;
31
31
  delete(accountName: string, listName: string, access_token: string): Promise<Response<any, Problem>>;
32
+ get(account_name: string, list_name: string, access_token: string): Promise<Response<List, Problem>>;
32
33
  }
33
34
 
34
35
  declare class SearchServersService {
@@ -42,12 +43,20 @@ declare class SearchServersService {
42
43
  list(account_name: string, access_token: string): Promise<Response<SearchService[], Problem>>;
43
44
  }
44
45
 
46
+ declare class FacetService {
47
+ private readonly fetch;
48
+ private readonly path;
49
+ constructor(fetch: Fetch);
50
+ create(account_name: string, list_name: string, facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
51
+ }
52
+
45
53
  declare class AdminClient {
46
54
  constructor(baseUri?: string);
47
55
  readonly Accounts: AccountService;
48
56
  readonly Lists: ListService;
49
57
  readonly ApiKeys: ApiKeyService;
50
58
  readonly SearchServices: SearchServersService;
59
+ readonly FacetService: FacetService;
51
60
  }
52
61
  declare class AuthClient {
53
62
  private readonly fetch;
@@ -78,12 +87,12 @@ declare abstract class Response<S, F> {
78
87
  abstract toProblem(): F;
79
88
  }
80
89
  type List = {
81
- name: string;
90
+ list_name: string;
82
91
  created: number;
83
92
  version: number;
84
93
  };
85
94
  type ListIdentity = {
86
- name: string;
95
+ list_name: string;
87
96
  created: number;
88
97
  account_name: string;
89
98
  is_shared: boolean;
@@ -93,6 +102,11 @@ type ApiKey = {
93
102
  name: string;
94
103
  created: number;
95
104
  };
105
+ type Facet = {
106
+ list_name: string;
107
+ account_name: string;
108
+ facet_name: string;
109
+ };
96
110
  type SearchService = {
97
111
  search_service_name: string;
98
112
  created: number;
@@ -130,6 +144,18 @@ type Account = {
130
144
  api_keys: ApiKey[];
131
145
  search_services: SearchService[];
132
146
  };
147
+ declare class SuccessfulFacetResponse extends Response<Facet, Problem> {
148
+ readonly facet: Facet;
149
+ constructor(facet: Facet);
150
+ toSuccess(): Facet;
151
+ toProblem(): Problem;
152
+ }
153
+ declare class FailedFacetResponse extends Response<Facet, Problem> {
154
+ readonly problem: Problem;
155
+ constructor(problem: Problem);
156
+ toSuccess(): Facet;
157
+ toProblem(): Problem;
158
+ }
133
159
  declare class SuccessfulAccountResponse extends Response<Account, Problem> {
134
160
  readonly account: Account;
135
161
  constructor(account: Account);
@@ -142,6 +168,12 @@ declare class SuccessfulListIdentityResponse extends Response<ListIdentity, Prob
142
168
  toSuccess(): ListIdentity;
143
169
  toProblem(): Problem;
144
170
  }
171
+ declare class SuccessfulListResponse extends Response<List, Problem> {
172
+ readonly list: List;
173
+ constructor(list: List);
174
+ toSuccess(): List;
175
+ toProblem(): Problem;
176
+ }
145
177
  declare class FailedAccountResponse extends Response<Account, Problem> {
146
178
  readonly problem: Problem;
147
179
  constructor(problem: Problem);
@@ -154,6 +186,12 @@ declare class FailedListIdentityResponse extends Response<ListIdentity, Problem>
154
186
  toSuccess(): ListIdentity;
155
187
  toProblem(): Problem;
156
188
  }
189
+ declare class FailedListResponse extends Response<List, Problem> {
190
+ readonly problem: Problem;
191
+ constructor(problem: Problem);
192
+ toSuccess(): List;
193
+ toProblem(): Problem;
194
+ }
157
195
  declare class SuccessfulAuthResponse extends Response<Tokens, Problem> {
158
196
  readonly tokens: Tokens;
159
197
  constructor(tokens: Tokens);
@@ -239,4 +277,4 @@ declare class FailedApiKeyValueResponse extends Response<ApiKeyValue, Problem> {
239
277
  toProblem(): Problem;
240
278
  }
241
279
 
242
- export { type Account, AdminClient, type ApiKey, type ApiKeyValue, AuthClient, type Error, FailedAccountResponse, FailedApiKeyResponse, FailedApiKeyValueResponse, FailedAuthResponse, FailedListIdentityResponse, FailedResponse, FailedSearchServiceResponse, FailedViewSearchServiceResponse, FailedViewSearchServicesResponse, type List, type ListIdentity, type Problem, type RefreshRequest, Response, type SearchService, type SearchServiceDetails, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulApiKeyValueResponse, SuccessfulAuthResponse, SuccessfulListIdentityResponse, SuccessfulListSearchServiceResponse, SuccessfulResponse, SuccessfulSearchServiceResponse, SuccessfulViewSearchServiceResponse, TokenStatus, Tokens };
280
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -1,15 +0,0 @@
1
- var TokenStatus;(function(_0x3a3c61){_0x3a3c61[_0x3a3c61['Ok']=0x0]='Ok',_0x3a3c61[_0x3a3c61['Refresh']=0x1]='Refresh',_0x3a3c61[_0x3a3c61['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(_0x4cb7cc){this['isSuccess']=_0x4cb7cc;}}class SuccessfulAccountResponse extends Response{constructor(_0x15df36){super(!![]),this['account']=_0x15df36;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x168c68){super(!![]),this['list']=_0x168c68;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x372633){super(![]),this['problem']=_0x372633;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x52e1b8){super(![]),this['problem']=_0x52e1b8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x24dc79){super(!![]),this['tokens']=_0x24dc79;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x33eaf5){super(![]),this['problem']=_0x33eaf5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x318ac0){super(!![]),this['apiKey']=_0x318ac0;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x28ccd7){super(![]),this['problem']=_0x28ccd7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x9b657d){super(!![]),this['searchService']=_0x9b657d;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x3c9326){super(![]),this['problem']=_0x3c9326;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x1f59b2){super(!![]),this['searchService']=_0x1f59b2;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x136616){super(!![]),this['searchServices']=_0x136616;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x4431bd){super(![]),this['problem']=_0x4431bd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1d5ba3){super(![]),this['problem']=_0x1d5ba3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x22d012){super(!![]),this['apiKeyValue']=_0x22d012;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x29fe10){super(!![]),this['obj']=_0x29fe10;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x123454){super(![]),this['problem']=_0x123454;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x18a617){super(![]),this['problem']=_0x18a617;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x41dc50,_0x1e6d53,_0x118ca2,_0x8091ff){function _0x12c9c8(_0x59a04){return _0x59a04 instanceof _0x118ca2?_0x59a04:new _0x118ca2(function(_0x539b90){_0x539b90(_0x59a04);});}return new(_0x118ca2||(_0x118ca2=Promise))(function(_0x5b1046,_0x3ccf53){function _0x477aae(_0x50ae3b){try{_0x45cf35(_0x8091ff['next'](_0x50ae3b));}catch(_0x2db49d){_0x3ccf53(_0x2db49d);}}function _0x2f98a9(_0x33420c){try{_0x45cf35(_0x8091ff['throw'](_0x33420c));}catch(_0x27423f){_0x3ccf53(_0x27423f);}}function _0x45cf35(_0x3f43a3){_0x3f43a3['done']?_0x5b1046(_0x3f43a3['value']):_0x12c9c8(_0x3f43a3['value'])['then'](_0x477aae,_0x2f98a9);}_0x45cf35((_0x8091ff=_0x8091ff['apply'](_0x41dc50,_0x1e6d53||[]))['next']());});};class AccountService{constructor(_0x490fff){this['fetch']=_0x490fff;}['get'](_0x33d833,_0xa1708c){return __awaiter$5(this,void 0,void 0,function*(){const _0x5b7ed8='Account/'+_0x33d833+'/',_0x179676=yield this['fetch']['get'](_0x5b7ed8,_0xa1708c);try{if(_0x179676['status']>0xc7&&_0x179676['status']<0x12c){const _0x52b299=yield _0x179676['json']();return new SuccessfulAccountResponse(_0x52b299);}const _0x1cbd50=yield _0x179676['json']();return new FailedAccountResponse(_0x1cbd50);}catch(_0x1bfd2b){if(_0x1bfd2b instanceof Error)return new FailedAccountResponse({'detail':_0x1bfd2b['message'],'title':_0x1bfd2b['name'],'status':0x1f4,'instance':'','type':''});throw _0x1bfd2b;}});}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4240c9,_0x4e13e1,_0xde722a,_0x4ba40c){function _0x11e859(_0x47b648){return _0x47b648 instanceof _0xde722a?_0x47b648:new _0xde722a(function(_0x2fb42a){_0x2fb42a(_0x47b648);});}return new(_0xde722a||(_0xde722a=Promise))(function(_0x6d089a,_0x59fac0){function _0x16c82f(_0x4d2581){try{_0xcf71f(_0x4ba40c['next'](_0x4d2581));}catch(_0x8490ac){_0x59fac0(_0x8490ac);}}function _0x4fb2cb(_0x4a8eed){try{_0xcf71f(_0x4ba40c['throw'](_0x4a8eed));}catch(_0x72fa0d){_0x59fac0(_0x72fa0d);}}function _0xcf71f(_0x3fcc58){_0x3fcc58['done']?_0x6d089a(_0x3fcc58['value']):_0x11e859(_0x3fcc58['value'])['then'](_0x16c82f,_0x4fb2cb);}_0xcf71f((_0x4ba40c=_0x4ba40c['apply'](_0x4240c9,_0x4e13e1||[]))['next']());});};class ApiKeyService{constructor(_0x15857f){this['fetch']=_0x15857f,this['path']='api-key';}['create'](_0x43d1f7,_0x371d1d,_0x2a10c8){return __awaiter$4(this,void 0,void 0,function*(){const _0xa045da={'account_name':_0x43d1f7,'api_key_name':_0x371d1d};try{const _0x25b02a=yield this['fetch']['post'](this['path'],_0x2a10c8,_0xa045da);if(_0x25b02a['status']>0xc7&&_0x25b02a['status']<0x12c){const _0x519910=yield _0x25b02a['json']();return new SuccessfulApiKeyResponse(_0x519910);}const _0x52eaa3=yield _0x25b02a['json']();return new FailedApiKeyResponse(_0x52eaa3);}catch(_0x551823){if(_0x551823 instanceof Error)return new FailedApiKeyResponse({'detail':_0x551823['message'],'title':_0x551823['name'],'status':0x1f4,'instance':'','type':''});throw _0x551823;}});}['view'](_0x1bfecd,_0x3fbc98,_0x1ef69b){return __awaiter$4(this,void 0,void 0,function*(){const _0x29c5cc=this['path']+'/'+_0x1bfecd+'/'+_0x3fbc98;try{const _0xb24d1b=yield this['fetch']['get'](_0x29c5cc,_0x1ef69b);if(_0xb24d1b['status']>0xc7&&_0xb24d1b['status']<0x12c){const _0x1bd15a=yield _0xb24d1b['json']();return new SuccessfulApiKeyValueResponse(_0x1bd15a);}const _0x599031=yield _0xb24d1b['json']();return new FailedApiKeyValueResponse(_0x599031);}catch(_0x1e9aa0){if(_0x1e9aa0 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1e9aa0['message'],'title':_0x1e9aa0['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e9aa0;}});}['delete'](_0x39dac5,_0x5aa382,_0x53aae2){return __awaiter$4(this,void 0,void 0,function*(){const _0x211648=this['path']+'/'+_0x39dac5+'/'+_0x5aa382;try{const _0x1fbf1c=yield this['fetch']['delete'](_0x211648,_0x53aae2);if(_0x1fbf1c['status']>0xc7&&_0x1fbf1c['status']<0x12c)return new SuccessfulResponse({});const _0x10e2be=yield _0x1fbf1c['json']();return new FailedResponse(_0x10e2be);}catch(_0x3de8b8){if(_0x3de8b8 instanceof Error)return new FailedResponse({'detail':_0x3de8b8['message'],'title':_0x3de8b8['name'],'status':0x1f4,'instance':'','type':''});throw _0x3de8b8;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x43a57b,_0x520d4e,_0x83fa6,_0xfd87ff){function _0x19ab47(_0x381508){return _0x381508 instanceof _0x83fa6?_0x381508:new _0x83fa6(function(_0x480a05){_0x480a05(_0x381508);});}return new(_0x83fa6||(_0x83fa6=Promise))(function(_0x196e9f,_0x558811){function _0x1d8e2d(_0x2bbac3){try{_0x786d43(_0xfd87ff['next'](_0x2bbac3));}catch(_0x4d2bd4){_0x558811(_0x4d2bd4);}}function _0x12c2a9(_0x2cf742){try{_0x786d43(_0xfd87ff['throw'](_0x2cf742));}catch(_0x14080d){_0x558811(_0x14080d);}}function _0x786d43(_0x4c5a75){_0x4c5a75['done']?_0x196e9f(_0x4c5a75['value']):_0x19ab47(_0x4c5a75['value'])['then'](_0x1d8e2d,_0x12c2a9);}_0x786d43((_0xfd87ff=_0xfd87ff['apply'](_0x43a57b,_0x520d4e||[]))['next']());});};class ListService{constructor(_0x96eac8){this['fetch']=_0x96eac8;}['add'](_0x519675,_0x2fc79a,_0x47fb4a,_0x2b49ae){return __awaiter$3(this,void 0,void 0,function*(){const _0x16299f='List',_0x134376={'account_name':_0x519675,'list_name':_0x2fc79a,'search_service_name':_0x47fb4a};try{const _0x445d59=yield this['fetch']['post'](_0x16299f,_0x2b49ae,_0x134376);if(_0x445d59['status']>0xc7&&_0x445d59['status']<0x12c){const _0x40a7c1=yield _0x445d59['json']();return new SuccessfulListIdentityResponse(_0x40a7c1);}const _0x5a7b90=yield _0x445d59['json']();return new FailedListIdentityResponse(_0x5a7b90);}catch(_0x18f069){if(_0x18f069 instanceof Error)return new FailedListIdentityResponse({'detail':_0x18f069['message'],'title':_0x18f069['name'],'status':0x1f4,'instance':'','type':''});throw _0x18f069;}});}['delete'](_0x474951,_0x5ac25f,_0x5053a7){return __awaiter$3(this,void 0,void 0,function*(){const _0x30a91b='List/'+_0x474951+'/'+_0x5ac25f,_0x4b84ff=yield this['fetch']['delete'](_0x30a91b,_0x5053a7);try{if(_0x4b84ff['status']>0xc7&&_0x4b84ff['status']<0x12c)return new SuccessfulResponse({});const _0x125a5f=yield _0x4b84ff['json']();return new FailedResponse(_0x125a5f);}catch(_0x278716){if(_0x278716 instanceof Error)return new FailedResponse({'detail':_0x278716['message'],'title':_0x278716['name'],'status':0x1f4,'instance':'','type':''});throw _0x278716;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5c14c5,_0x56b357,_0x4ba30,_0x34c639){function _0x432e2f(_0x189097){return _0x189097 instanceof _0x4ba30?_0x189097:new _0x4ba30(function(_0x3837e7){_0x3837e7(_0x189097);});}return new(_0x4ba30||(_0x4ba30=Promise))(function(_0x25f663,_0x6e28ac){function _0x2358b2(_0x523571){try{_0x9ec049(_0x34c639['next'](_0x523571));}catch(_0x2ec678){_0x6e28ac(_0x2ec678);}}function _0x59e990(_0x5ae4f7){try{_0x9ec049(_0x34c639['throw'](_0x5ae4f7));}catch(_0x2f7d73){_0x6e28ac(_0x2f7d73);}}function _0x9ec049(_0x3353a7){_0x3353a7['done']?_0x25f663(_0x3353a7['value']):_0x432e2f(_0x3353a7['value'])['then'](_0x2358b2,_0x59e990);}_0x9ec049((_0x34c639=_0x34c639['apply'](_0x5c14c5,_0x56b357||[]))['next']());});};class Fetch{constructor(_0x37ea83){this['baseUri']=_0x37ea83,this['getUrl']=_0x44b482=>{return _0x44b482['startsWith']('/')&&(_0x44b482=_0x44b482['replace']('/','')),''+this['baseUri']+_0x44b482;},!_0x37ea83['endsWith']('/')&&(_0x37ea83=_0x37ea83+'/');}['get'](_0x2eeb26,_0x1d76f7){return __awaiter$2(this,void 0,void 0,function*(){const _0x7bfd15=this['getUrl'](_0x2eeb26);return yield fetch(_0x7bfd15,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1d76f7}});});}['post'](_0xbe425a,_0x133004,_0xe1540b){return __awaiter$2(this,void 0,void 0,function*(){const _0x251414=this['getUrl'](_0xbe425a);return yield fetch(_0x251414,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x133004},'body':_0xe1540b?JSON['stringify'](_0xe1540b):null});});}['PostNoAuth'](_0x4491be,_0x40d9d9){return __awaiter$2(this,void 0,void 0,function*(){const _0xfe7b61=this['getUrl'](_0x4491be);return yield fetch(_0xfe7b61,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x40d9d9?JSON['stringify'](_0x40d9d9):null});});}['put'](_0x49b431,_0x53a195,_0x4dccfd){return __awaiter$2(this,void 0,void 0,function*(){const _0x192d05=this['getUrl'](_0x49b431);return yield fetch(_0x192d05,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x53a195},'body':_0x4dccfd?JSON['stringify'](_0x4dccfd):null});});}['delete'](_0x4b1810,_0xe124c7){return __awaiter$2(this,void 0,void 0,function*(){const _0x2537c1=this['getUrl'](_0x4b1810);return yield fetch(_0x2537c1,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xe124c7}});});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x514e0c,_0x40fc3b,_0x207a93,_0x4b418f){function _0x4d6d76(_0x5b3e50){return _0x5b3e50 instanceof _0x207a93?_0x5b3e50:new _0x207a93(function(_0x296dd){_0x296dd(_0x5b3e50);});}return new(_0x207a93||(_0x207a93=Promise))(function(_0x1f817e,_0x314765){function _0x275fd3(_0x5b9cd7){try{_0x5c30a9(_0x4b418f['next'](_0x5b9cd7));}catch(_0x4a28e1){_0x314765(_0x4a28e1);}}function _0x444d6d(_0x5a3a3c){try{_0x5c30a9(_0x4b418f['throw'](_0x5a3a3c));}catch(_0x366eb5){_0x314765(_0x366eb5);}}function _0x5c30a9(_0x3f2a68){_0x3f2a68['done']?_0x1f817e(_0x3f2a68['value']):_0x4d6d76(_0x3f2a68['value'])['then'](_0x275fd3,_0x444d6d);}_0x5c30a9((_0x4b418f=_0x4b418f['apply'](_0x514e0c,_0x40fc3b||[]))['next']());});};class SearchServersService{constructor(_0x4a1d53){this['fetch']=_0x4a1d53,this['path']='search-services';}['create'](_0x4f15d3,_0x35f9e1,_0x1de1b7,_0x3acc75,_0x434b32,_0x527565,_0x1d899f,_0x53fc04){return __awaiter$1(this,void 0,void 0,function*(){const _0x405272={'account_name':_0x4f15d3,'search_service_name':_0x35f9e1,'endpoint':_0x1de1b7,'key':_0x3acc75,'country':_0x434b32,'provider':_0x527565,'index_name':_0x1d899f};try{const _0x15fe8d=yield this['fetch']['post'](this['path'],_0x53fc04,_0x405272);if(_0x15fe8d['status']>0xc7&&_0x15fe8d['status']<0x12c){const _0x3bea15=yield _0x15fe8d['json']();return new SuccessfulSearchServiceResponse(_0x3bea15);}const _0x2171b4=yield _0x15fe8d['json']();return new FailedSearchServiceResponse(_0x2171b4);}catch(_0x566ab9){if(_0x566ab9 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x566ab9['message'],'title':_0x566ab9['name'],'status':0x1f4,'instance':'','type':''});throw _0x566ab9;}});}['delete'](_0x3ebcf9,_0x5eb38d,_0x474b7d){return __awaiter$1(this,void 0,void 0,function*(){const _0x472cac=this['path']+'/'+_0x3ebcf9+'/'+_0x5eb38d;try{const _0xfd3f60=yield this['fetch']['delete'](_0x472cac,_0x474b7d);if(_0xfd3f60['status']>0xc7&&_0xfd3f60['status']<0x12c)return new SuccessfulResponse({});const _0x4fe1f7=yield _0xfd3f60['json']();return new FailedResponse(_0x4fe1f7);}catch(_0x39ce74){if(_0x39ce74 instanceof Error)return new FailedResponse({'detail':_0x39ce74['message'],'title':_0x39ce74['name'],'status':0x1f4,'instance':'','type':''});throw _0x39ce74;}});}['view'](_0x114635,_0x8983c7,_0x4c181f){return __awaiter$1(this,void 0,void 0,function*(){const _0x51e215=this['path']+'/'+_0x114635+'/'+_0x8983c7;try{const _0x4fc798=yield this['fetch']['get'](_0x51e215,_0x4c181f);if(_0x4fc798['status']>0xc7&&_0x4fc798['status']<0x12c){const _0x192f89=yield _0x4fc798['json']();return new SuccessfulViewSearchServiceResponse(_0x192f89);}const _0x32170c=yield _0x4fc798['json']();return new FailedViewSearchServiceResponse(_0x32170c);}catch(_0x45a2a1){if(_0x45a2a1 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x45a2a1['message'],'title':_0x45a2a1['name'],'status':0x1f4,'instance':'','type':''});throw _0x45a2a1;}});}['edit'](_0x3da1ed,_0x18d41c,_0xfd5b99,_0xa26064,_0x3ddbc3,_0x51e7c7){return __awaiter$1(this,void 0,void 0,function*(){const _0x43648e={'account_name':_0x3da1ed,'search_service_name':_0x18d41c,'new_search_service_name':_0xfd5b99,'key':_0xa26064,'country':_0x3ddbc3};try{const _0x31db25=yield this['fetch']['put'](this['path'],_0x51e7c7,_0x43648e);if(_0x31db25['status']>0xc7&&_0x31db25['status']<0x12c){const _0x3c3361=yield _0x31db25['json']();return new SuccessfulSearchServiceResponse(_0x3c3361);}const _0x50f005=yield _0x31db25['json']();return new FailedSearchServiceResponse(_0x50f005);}catch(_0x2a73d8){if(_0x2a73d8 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2a73d8['message'],'title':_0x2a73d8['name'],'status':0x1f4,'instance':'','type':''});throw _0x2a73d8;}});}['list'](_0x3bfbc6,_0x2486d8){return __awaiter$1(this,void 0,void 0,function*(){const _0x349c65=this['path']+'/'+_0x3bfbc6;try{const _0x16a15a=yield this['fetch']['get'](_0x349c65,_0x2486d8);if(_0x16a15a['status']>0xc7&&_0x16a15a['status']<0x12c){const _0x107996=yield _0x16a15a['json']();return new SuccessfulListSearchServiceResponse(_0x107996);}const _0x316ec8=yield _0x16a15a['json']();return new FailedViewSearchServicesResponse(_0x316ec8);}catch(_0x373e9a){if(_0x373e9a instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x373e9a['message'],'title':_0x373e9a['name'],'status':0x1f4,'instance':'','type':''});throw _0x373e9a;}});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x36bb2c,_0x5ed8f2,_0x112abe,_0x3a9465){function _0x5c1100(_0x196e79){return _0x196e79 instanceof _0x112abe?_0x196e79:new _0x112abe(function(_0x4e1494){_0x4e1494(_0x196e79);});}return new(_0x112abe||(_0x112abe=Promise))(function(_0x356577,_0x39303e){function _0x59a786(_0x3e4460){try{_0x294a86(_0x3a9465['next'](_0x3e4460));}catch(_0x5b80b3){_0x39303e(_0x5b80b3);}}function _0x1fea99(_0x276827){try{_0x294a86(_0x3a9465['throw'](_0x276827));}catch(_0x43bc0c){_0x39303e(_0x43bc0c);}}function _0x294a86(_0xed0f4f){_0xed0f4f['done']?_0x356577(_0xed0f4f['value']):_0x5c1100(_0xed0f4f['value'])['then'](_0x59a786,_0x1fea99);}_0x294a86((_0x3a9465=_0x3a9465['apply'](_0x36bb2c,_0x5ed8f2||[]))['next']());});};class AdminClient{constructor(_0x204981='https://admin.searchability.dev/'){var _0x7b9b5a=new Fetch(_0x204981);this['Accounts']=new AccountService(_0x7b9b5a),this['Lists']=new ListService(_0x7b9b5a),this['ApiKeys']=new ApiKeyService(_0x7b9b5a),this['SearchServices']=new SearchServersService(_0x7b9b5a);}}class AuthClient{constructor(_0x80cec1='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x80cec1);}['login'](_0x5d9742){return __awaiter(this,void 0,void 0,function*(){const _0x2d37b3='login/'+_0x5d9742;try{const _0x563d31=yield yield fetch(_0x2d37b3);if(_0x563d31['status']>0xc7&&_0x563d31['status']<0x12c){const _0x16eb94=yield _0x563d31['json']();return new SuccessfulAuthResponse(_0x16eb94);}const _0x1eb7e4=yield _0x563d31['json']();return new FailedAuthResponse(_0x1eb7e4);}catch(_0x462de1){if(_0x462de1 instanceof Error)return new FailedAuthResponse({'detail':_0x462de1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x462de1;}});}['refresh'](_0xb2d835){return __awaiter(this,void 0,void 0,function*(){const _0x116a02='refresh',_0x3dcd62={'refresh_token':_0xb2d835};try{const _0x47f712=yield this['fetch']['PostNoAuth'](_0x116a02,_0x3dcd62);if(_0x47f712['status']>0xc7&&_0x47f712['status']<0x12c){const _0x5b1025=yield _0x47f712['json']();return new SuccessfulAuthResponse(_0x5b1025);}const _0x142419=yield _0x47f712['json']();return new FailedAuthResponse(_0x142419);}catch(_0x3f095e){if(_0x3f095e instanceof Error)return new FailedAuthResponse({'detail':_0x3f095e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3f095e;}});}['getTokenStatus'](_0xa17523){if(Date['now']()<_0xa17523['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0xa17523['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
-
15
- export { AdminClient, AuthClient, TokenStatus, Tokens };