@searchability/admin-client 0.0.53 → 0.0.54

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(_0x43d7ec){_0x43d7ec[_0x43d7ec['Ok']=0x0]='Ok',_0x43d7ec[_0x43d7ec['Refresh']=0x1]='Refresh',_0x43d7ec[_0x43d7ec['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(_0x50747a){this['isSuccess']=_0x50747a;}}class SuccessfulFacetResponse extends Response{constructor(_0x119b06){super(!![]),this['facet']=_0x119b06;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x5b2920){super(![]),this['problem']=_0x5b2920;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x1ce5ee){super(!![]),this['account']=_0x1ce5ee;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x37aa2e){super(!![]),this['list']=_0x37aa2e;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x52f2f4){super(!![]),this['list']=_0x52f2f4;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x5a287b){super(![]),this['problem']=_0x5a287b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x5158b3){super(![]),this['problem']=_0x5158b3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x26b2f5){super(![]),this['problem']=_0x26b2f5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x9ce47c){super(!![]),this['tokens']=_0x9ce47c;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x28b3c2){super(![]),this['problem']=_0x28b3c2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x293c61){super(!![]),this['apiKey']=_0x293c61;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1b9ac8){super(![]),this['problem']=_0x1b9ac8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x3241eb){super(!![]),this['searchService']=_0x3241eb;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x4caaf4){super(![]),this['problem']=_0x4caaf4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x13acb7){super(!![]),this['searchService']=_0x13acb7;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x39123f){super(!![]),this['searchServices']=_0x39123f;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x413c05){super(![]),this['problem']=_0x413c05;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x133f57){super(![]),this['problem']=_0x133f57;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x1568ff){super(!![]),this['apiKeyValue']=_0x1568ff;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x523263){super(!![]),this['obj']=_0x523263;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x17cb0b){super(![]),this['problem']=_0x17cb0b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x1c0725){super(![]),this['problem']=_0x1c0725;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x557f65,_0xe53685,_0x4d3256,_0x2983de){function _0x2b8f6c(_0x6d6767){return _0x6d6767 instanceof _0x4d3256?_0x6d6767:new _0x4d3256(function(_0x51633a){_0x51633a(_0x6d6767);});}return new(_0x4d3256||(_0x4d3256=Promise))(function(_0x2b79dd,_0x5b51a1){function _0x31a7dd(_0x458a75){try{_0x2d3766(_0x2983de['next'](_0x458a75));}catch(_0x59ba2d){_0x5b51a1(_0x59ba2d);}}function _0x20accf(_0x970664){try{_0x2d3766(_0x2983de['throw'](_0x970664));}catch(_0x5c1352){_0x5b51a1(_0x5c1352);}}function _0x2d3766(_0x2a728a){_0x2a728a['done']?_0x2b79dd(_0x2a728a['value']):_0x2b8f6c(_0x2a728a['value'])['then'](_0x31a7dd,_0x20accf);}_0x2d3766((_0x2983de=_0x2983de['apply'](_0x557f65,_0xe53685||[]))['next']());});};class AccountService{constructor(_0x33ab5f){this['fetch']=_0x33ab5f;}['get'](_0x1533d9,_0x1bb5e5){return __awaiter$6(this,void 0,void 0,function*(){const _0x258a01='Account/'+_0x1533d9+'/',_0x38f311=yield this['fetch']['get'](_0x258a01,_0x1bb5e5);try{if(_0x38f311['status']>0xc7&&_0x38f311['status']<0x12c){const _0x58ebf8=yield _0x38f311['json']();return new SuccessfulAccountResponse(_0x58ebf8);}const _0x309649=yield _0x38f311['json']();return new FailedAccountResponse(_0x309649);}catch(_0x4e3611){if(_0x4e3611 instanceof Error)return new FailedAccountResponse({'detail':_0x4e3611['message'],'title':_0x4e3611['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e3611;}});}}
4
+
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x3cda26,_0x43ed25,_0x4c2a92,_0x4e46e0){function _0x283581(_0xd24fe0){return _0xd24fe0 instanceof _0x4c2a92?_0xd24fe0:new _0x4c2a92(function(_0x332610){_0x332610(_0xd24fe0);});}return new(_0x4c2a92||(_0x4c2a92=Promise))(function(_0x1a5a64,_0x384448){function _0x23494a(_0x185df4){try{_0x3a381f(_0x4e46e0['next'](_0x185df4));}catch(_0x4a5284){_0x384448(_0x4a5284);}}function _0x328523(_0x22437e){try{_0x3a381f(_0x4e46e0['throw'](_0x22437e));}catch(_0x25a76d){_0x384448(_0x25a76d);}}function _0x3a381f(_0x2bfb79){_0x2bfb79['done']?_0x1a5a64(_0x2bfb79['value']):_0x283581(_0x2bfb79['value'])['then'](_0x23494a,_0x328523);}_0x3a381f((_0x4e46e0=_0x4e46e0['apply'](_0x3cda26,_0x43ed25||[]))['next']());});};class ApiKeyService{constructor(_0x8d4254){this['fetch']=_0x8d4254,this['path']='api-key';}['create'](_0x546af6,_0x471f1a,_0x5b7ee7){return __awaiter$5(this,void 0,void 0,function*(){const _0x22ac4c={'account_name':_0x546af6,'api_key_name':_0x471f1a};try{const _0x4f38f7=yield this['fetch']['post'](this['path'],_0x5b7ee7,_0x22ac4c);if(_0x4f38f7['status']>0xc7&&_0x4f38f7['status']<0x12c){const _0x4211a9=yield _0x4f38f7['json']();return new SuccessfulApiKeyResponse(_0x4211a9);}const _0x36715c=yield _0x4f38f7['json']();return new FailedApiKeyResponse(_0x36715c);}catch(_0x2dc523){if(_0x2dc523 instanceof Error)return new FailedApiKeyResponse({'detail':_0x2dc523['message'],'title':_0x2dc523['name'],'status':0x1f4,'instance':'','type':''});throw _0x2dc523;}});}['view'](_0x3f767d,_0x2877e5,_0x4d683a){return __awaiter$5(this,void 0,void 0,function*(){const _0x527267=this['path']+'/'+_0x3f767d+'/'+_0x2877e5;try{const _0x2e81bc=yield this['fetch']['get'](_0x527267,_0x4d683a);if(_0x2e81bc['status']>0xc7&&_0x2e81bc['status']<0x12c){const _0x5c29b1=yield _0x2e81bc['json']();return new SuccessfulApiKeyValueResponse(_0x5c29b1);}const _0x1eea83=yield _0x2e81bc['json']();return new FailedApiKeyValueResponse(_0x1eea83);}catch(_0x3d0b9b){if(_0x3d0b9b instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x3d0b9b['message'],'title':_0x3d0b9b['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d0b9b;}});}['delete'](_0x195e3b,_0x37b4a5,_0xaf1f8b){return __awaiter$5(this,void 0,void 0,function*(){const _0x706b15=this['path']+'/'+_0x195e3b+'/'+_0x37b4a5;try{const _0x3d86f2=yield this['fetch']['delete'](_0x706b15,_0xaf1f8b);if(_0x3d86f2['status']>0xc7&&_0x3d86f2['status']<0x12c)return new SuccessfulResponse({});const _0x5402b1=yield _0x3d86f2['json']();return new FailedResponse(_0x5402b1);}catch(_0x32ff65){if(_0x32ff65 instanceof Error)return new FailedResponse({'detail':_0x32ff65['message'],'title':_0x32ff65['name'],'status':0x1f4,'instance':'','type':''});throw _0x32ff65;}});}}
6
+
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x5ae0a3,_0x246db6,_0x34c974,_0x57c35e){function _0x139a5c(_0x488d8c){return _0x488d8c instanceof _0x34c974?_0x488d8c:new _0x34c974(function(_0x356723){_0x356723(_0x488d8c);});}return new(_0x34c974||(_0x34c974=Promise))(function(_0x34e6ae,_0x30a4ea){function _0x2073b0(_0x54db15){try{_0x20d130(_0x57c35e['next'](_0x54db15));}catch(_0x27c0d9){_0x30a4ea(_0x27c0d9);}}function _0x31e178(_0x174850){try{_0x20d130(_0x57c35e['throw'](_0x174850));}catch(_0x56c8fd){_0x30a4ea(_0x56c8fd);}}function _0x20d130(_0x245407){_0x245407['done']?_0x34e6ae(_0x245407['value']):_0x139a5c(_0x245407['value'])['then'](_0x2073b0,_0x31e178);}_0x20d130((_0x57c35e=_0x57c35e['apply'](_0x5ae0a3,_0x246db6||[]))['next']());});};class ListService{constructor(_0x251f3d){this['fetch']=_0x251f3d;}['create'](_0x332007,_0x42a055,_0x48b144,_0x1ac43a){return __awaiter$4(this,void 0,void 0,function*(){const _0xd2c98a='List',_0x128cda={'account_name':_0x332007,'list_name':_0x42a055,'search_service_name':_0x48b144};try{const _0x5cb15b=yield this['fetch']['post'](_0xd2c98a,_0x1ac43a,_0x128cda);if(_0x5cb15b['status']>0xc7&&_0x5cb15b['status']<0x12c){const _0x585da4=yield _0x5cb15b['json']();return new SuccessfulListIdentityResponse(_0x585da4);}const _0x3d403a=yield _0x5cb15b['json']();return new FailedListIdentityResponse(_0x3d403a);}catch(_0xec8c91){if(_0xec8c91 instanceof Error)return new FailedListIdentityResponse({'detail':_0xec8c91['message'],'title':_0xec8c91['name'],'status':0x1f4,'instance':'','type':''});throw _0xec8c91;}});}['delete'](_0x1f0d30,_0x2921bb,_0x15c56c){return __awaiter$4(this,void 0,void 0,function*(){const _0x388288='List/'+_0x1f0d30+'/'+_0x2921bb,_0x32a1ca=yield this['fetch']['delete'](_0x388288,_0x15c56c);try{if(_0x32a1ca['status']>0xc7&&_0x32a1ca['status']<0x12c)return new SuccessfulResponse({});const _0x4eb126=yield _0x32a1ca['json']();return new FailedResponse(_0x4eb126);}catch(_0x22c954){if(_0x22c954 instanceof Error)return new FailedResponse({'detail':_0x22c954['message'],'title':_0x22c954['name'],'status':0x1f4,'instance':'','type':''});throw _0x22c954;}});}['get'](_0x5a3b60,_0x1385b2,_0x3ba56e){return __awaiter$4(this,void 0,void 0,function*(){const _0x366120='List/'+_0x5a3b60+'/'+_0x1385b2;try{const _0x8bf8bc=yield this['fetch']['get'](_0x366120,_0x3ba56e);if(_0x8bf8bc['status']>0xc7&&_0x8bf8bc['status']<0x12c){const _0x2725d4=yield _0x8bf8bc['json']();return new SuccessfulListResponse(_0x2725d4);}const _0xe0870c=yield _0x8bf8bc['json']();return new FailedListResponse(_0xe0870c);}catch(_0x5026ae){if(_0x5026ae instanceof Error)return new FailedListResponse({'detail':_0x5026ae['message'],'title':_0x5026ae['name'],'status':0x1f4,'instance':'','type':''});throw _0x5026ae;}});}}
8
+
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x2c7f27,_0xf0bdd2,_0x497e33,_0x36ffea){function _0xcda447(_0x1deda5){return _0x1deda5 instanceof _0x497e33?_0x1deda5:new _0x497e33(function(_0x45b4b9){_0x45b4b9(_0x1deda5);});}return new(_0x497e33||(_0x497e33=Promise))(function(_0x51166a,_0x5b7f12){function _0x416036(_0x590d25){try{_0xf6f7b1(_0x36ffea['next'](_0x590d25));}catch(_0x3c6dc6){_0x5b7f12(_0x3c6dc6);}}function _0x5db470(_0x5cc6d7){try{_0xf6f7b1(_0x36ffea['throw'](_0x5cc6d7));}catch(_0x59c114){_0x5b7f12(_0x59c114);}}function _0xf6f7b1(_0x3933f4){_0x3933f4['done']?_0x51166a(_0x3933f4['value']):_0xcda447(_0x3933f4['value'])['then'](_0x416036,_0x5db470);}_0xf6f7b1((_0x36ffea=_0x36ffea['apply'](_0x2c7f27,_0xf0bdd2||[]))['next']());});};class Fetch{constructor(_0x4906a3){this['baseUri']=_0x4906a3,this['getUrl']=_0x2c1dbb=>{return _0x2c1dbb['startsWith']('/')&&(_0x2c1dbb=_0x2c1dbb['replace']('/','')),''+this['baseUri']+_0x2c1dbb;},!_0x4906a3['endsWith']('/')&&(_0x4906a3=_0x4906a3+'/');}['get'](_0x3ffb01,_0x2c26fb){return __awaiter$3(this,void 0,void 0,function*(){const _0x3e5986=this['getUrl'](_0x3ffb01);return yield fetch(_0x3e5986,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2c26fb}});});}['post'](_0x125490,_0x20c31a,_0x296d5b){return __awaiter$3(this,void 0,void 0,function*(){const _0x15887e=this['getUrl'](_0x125490);return yield fetch(_0x15887e,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x20c31a},'body':_0x296d5b?JSON['stringify'](_0x296d5b):null});});}['PostNoAuth'](_0x14838e,_0x57f450){return __awaiter$3(this,void 0,void 0,function*(){const _0x428185=this['getUrl'](_0x14838e);return yield fetch(_0x428185,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x57f450?JSON['stringify'](_0x57f450):null});});}['put'](_0x1af7e3,_0x2cb896,_0x2e8f90){return __awaiter$3(this,void 0,void 0,function*(){const _0x3cda88=this['getUrl'](_0x1af7e3);return yield fetch(_0x3cda88,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2cb896},'body':_0x2e8f90?JSON['stringify'](_0x2e8f90):null});});}['delete'](_0x2eb123,_0x12b469){return __awaiter$3(this,void 0,void 0,function*(){const _0x2c1bb0=this['getUrl'](_0x2eb123);return yield fetch(_0x2c1bb0,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x12b469}});});}}
10
+
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x8e008,_0x2d9184,_0x55accc,_0x8b75bb){function _0x4e67ea(_0x26a21a){return _0x26a21a instanceof _0x55accc?_0x26a21a:new _0x55accc(function(_0x3dd7f5){_0x3dd7f5(_0x26a21a);});}return new(_0x55accc||(_0x55accc=Promise))(function(_0x53635d,_0x66e18c){function _0x3a36d2(_0x2664a2){try{_0x26e300(_0x8b75bb['next'](_0x2664a2));}catch(_0x14883a){_0x66e18c(_0x14883a);}}function _0x5000be(_0x5759d6){try{_0x26e300(_0x8b75bb['throw'](_0x5759d6));}catch(_0x851d15){_0x66e18c(_0x851d15);}}function _0x26e300(_0x440569){_0x440569['done']?_0x53635d(_0x440569['value']):_0x4e67ea(_0x440569['value'])['then'](_0x3a36d2,_0x5000be);}_0x26e300((_0x8b75bb=_0x8b75bb['apply'](_0x8e008,_0x2d9184||[]))['next']());});};class SearchServersService{constructor(_0x5454d3){this['fetch']=_0x5454d3,this['path']='search-services';}['create'](_0x5905a7,_0x469d90,_0x39784d,_0x1d66e3,_0x36344b,_0xc83f05,_0x45e50e,_0x498718){return __awaiter$2(this,void 0,void 0,function*(){const _0x1a8abb={'account_name':_0x5905a7,'search_service_name':_0x469d90,'endpoint':_0x39784d,'key':_0x1d66e3,'country':_0x36344b,'provider':_0xc83f05,'index_name':_0x45e50e};try{const _0x175efa=yield this['fetch']['post'](this['path'],_0x498718,_0x1a8abb);if(_0x175efa['status']>0xc7&&_0x175efa['status']<0x12c){const _0x4c1441=yield _0x175efa['json']();return new SuccessfulSearchServiceResponse(_0x4c1441);}const _0x30a3b1=yield _0x175efa['json']();return new FailedSearchServiceResponse(_0x30a3b1);}catch(_0xffcc19){if(_0xffcc19 instanceof Error)return new FailedSearchServiceResponse({'detail':_0xffcc19['message'],'title':_0xffcc19['name'],'status':0x1f4,'instance':'','type':''});throw _0xffcc19;}});}['delete'](_0x4f5ff2,_0x550395,_0x3b2422){return __awaiter$2(this,void 0,void 0,function*(){const _0x4ff48b=this['path']+'/'+_0x4f5ff2+'/'+_0x550395;try{const _0x2d1f0d=yield this['fetch']['delete'](_0x4ff48b,_0x3b2422);if(_0x2d1f0d['status']>0xc7&&_0x2d1f0d['status']<0x12c)return new SuccessfulResponse({});const _0xffb175=yield _0x2d1f0d['json']();return new FailedResponse(_0xffb175);}catch(_0x31784b){if(_0x31784b instanceof Error)return new FailedResponse({'detail':_0x31784b['message'],'title':_0x31784b['name'],'status':0x1f4,'instance':'','type':''});throw _0x31784b;}});}['view'](_0x2495d9,_0x506bf9,_0x57f8a1){return __awaiter$2(this,void 0,void 0,function*(){const _0x17cc82=this['path']+'/'+_0x2495d9+'/'+_0x506bf9;try{const _0x34cc99=yield this['fetch']['get'](_0x17cc82,_0x57f8a1);if(_0x34cc99['status']>0xc7&&_0x34cc99['status']<0x12c){const _0x4a11fd=yield _0x34cc99['json']();return new SuccessfulViewSearchServiceResponse(_0x4a11fd);}const _0x12395b=yield _0x34cc99['json']();return new FailedViewSearchServiceResponse(_0x12395b);}catch(_0x38a34a){if(_0x38a34a instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x38a34a['message'],'title':_0x38a34a['name'],'status':0x1f4,'instance':'','type':''});throw _0x38a34a;}});}['edit'](_0x20bb50,_0x34861c,_0x57aebb,_0x252b57,_0x35d141,_0x1cacef){return __awaiter$2(this,void 0,void 0,function*(){const _0x453100={'account_name':_0x20bb50,'search_service_name':_0x34861c,'new_search_service_name':_0x57aebb,'key':_0x252b57,'country':_0x35d141};try{const _0x591e3b=yield this['fetch']['put'](this['path'],_0x1cacef,_0x453100);if(_0x591e3b['status']>0xc7&&_0x591e3b['status']<0x12c){const _0x59437b=yield _0x591e3b['json']();return new SuccessfulSearchServiceResponse(_0x59437b);}const _0x11f93c=yield _0x591e3b['json']();return new FailedSearchServiceResponse(_0x11f93c);}catch(_0x4264cc){if(_0x4264cc instanceof Error)return new FailedSearchServiceResponse({'detail':_0x4264cc['message'],'title':_0x4264cc['name'],'status':0x1f4,'instance':'','type':''});throw _0x4264cc;}});}['list'](_0x501485,_0x4023b5){return __awaiter$2(this,void 0,void 0,function*(){const _0x423656=this['path']+'/'+_0x501485;try{const _0xe0e67a=yield this['fetch']['get'](_0x423656,_0x4023b5);if(_0xe0e67a['status']>0xc7&&_0xe0e67a['status']<0x12c){const _0x578f80=yield _0xe0e67a['json']();return new SuccessfulListSearchServiceResponse(_0x578f80);}const _0x3027be=yield _0xe0e67a['json']();return new FailedViewSearchServicesResponse(_0x3027be);}catch(_0x7bf062){if(_0x7bf062 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x7bf062['message'],'title':_0x7bf062['name'],'status':0x1f4,'instance':'','type':''});throw _0x7bf062;}});}}
12
+
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x5c9b7d,_0x35f261,_0x5c5b2e,_0x291a87){function _0x4156e7(_0x302475){return _0x302475 instanceof _0x5c5b2e?_0x302475:new _0x5c5b2e(function(_0x12e92c){_0x12e92c(_0x302475);});}return new(_0x5c5b2e||(_0x5c5b2e=Promise))(function(_0x1839c5,_0x3a1161){function _0x119a5e(_0x25919d){try{_0x1c8370(_0x291a87['next'](_0x25919d));}catch(_0x1974e6){_0x3a1161(_0x1974e6);}}function _0x4ce679(_0x5571b4){try{_0x1c8370(_0x291a87['throw'](_0x5571b4));}catch(_0x3fc633){_0x3a1161(_0x3fc633);}}function _0x1c8370(_0x2a6026){_0x2a6026['done']?_0x1839c5(_0x2a6026['value']):_0x4156e7(_0x2a6026['value'])['then'](_0x119a5e,_0x4ce679);}_0x1c8370((_0x291a87=_0x291a87['apply'](_0x5c9b7d,_0x35f261||[]))['next']());});};class FacetService{constructor(_0xaff39c){this['fetch']=_0xaff39c,this['path']='facet';}['create'](_0x5e7be8,_0x482651,_0xe39253,_0x240184){return __awaiter$1(this,void 0,void 0,function*(){const _0x539e6c={'account_name':_0x5e7be8,'list_name':_0x482651,'facet_name':_0xe39253};try{const _0x207090=yield this['fetch']['post'](this['path'],_0x240184,_0x539e6c);if(_0x207090['status']>0xc7&&_0x207090['status']<0x12c){const _0x24c01f=yield _0x207090['json']();return new SuccessfulFacetResponse(_0x24c01f);}const _0x1ee056=yield _0x207090['json']();return new FailedFacetResponse(_0x1ee056);}catch(_0x307aea){if(_0x307aea instanceof Error)return new FailedFacetResponse({'detail':_0x307aea['message'],'title':_0x307aea['name'],'status':0x1f4,'instance':'','type':''});throw _0x307aea;}});}}
14
+
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x10b306,_0x4720da,_0x3264b0,_0x3e01c8){function _0x43000a(_0x16828a){return _0x16828a instanceof _0x3264b0?_0x16828a:new _0x3264b0(function(_0x54596b){_0x54596b(_0x16828a);});}return new(_0x3264b0||(_0x3264b0=Promise))(function(_0x196324,_0x327ea2){function _0x2447fa(_0x27a6d2){try{_0x12745c(_0x3e01c8['next'](_0x27a6d2));}catch(_0x4ac96a){_0x327ea2(_0x4ac96a);}}function _0x39630c(_0x253fa5){try{_0x12745c(_0x3e01c8['throw'](_0x253fa5));}catch(_0x2e2d9f){_0x327ea2(_0x2e2d9f);}}function _0x12745c(_0x1982df){_0x1982df['done']?_0x196324(_0x1982df['value']):_0x43000a(_0x1982df['value'])['then'](_0x2447fa,_0x39630c);}_0x12745c((_0x3e01c8=_0x3e01c8['apply'](_0x10b306,_0x4720da||[]))['next']());});};class AdminClient{constructor(_0x213db5='https://admin.searchability.dev/'){var _0x103ce7=new Fetch(_0x213db5);this['Accounts']=new AccountService(_0x103ce7),this['Lists']=new ListService(_0x103ce7),this['ApiKeys']=new ApiKeyService(_0x103ce7),this['SearchServices']=new SearchServersService(_0x103ce7),this['FacetService']=new FacetService(_0x103ce7);}}class AuthClient{constructor(_0x304154='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x304154);}['login'](_0x18f6df){return __awaiter(this,void 0,void 0,function*(){const _0x45e067='login/'+_0x18f6df;try{const _0x5514f3=yield yield fetch(_0x45e067);if(_0x5514f3['status']>0xc7&&_0x5514f3['status']<0x12c){const _0x338069=yield _0x5514f3['json']();return new SuccessfulAuthResponse(_0x338069);}const _0x272b75=yield _0x5514f3['json']();return new FailedAuthResponse(_0x272b75);}catch(_0x40d441){if(_0x40d441 instanceof Error)return new FailedAuthResponse({'detail':_0x40d441['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x40d441;}});}['refresh'](_0x1d47b8){return __awaiter(this,void 0,void 0,function*(){const _0x2394e6='refresh',_0x1bb543={'refresh_token':_0x1d47b8};try{const _0x5d4466=yield this['fetch']['PostNoAuth'](_0x2394e6,_0x1bb543);if(_0x5d4466['status']>0xc7&&_0x5d4466['status']<0x12c){const _0x5c910d=yield _0x5d4466['json']();return new SuccessfulAuthResponse(_0x5c910d);}const _0x1ec785=yield _0x5d4466['json']();return new FailedAuthResponse(_0x1ec785);}catch(_0xb4a6cf){if(_0xb4a6cf instanceof Error)return new FailedAuthResponse({'detail':_0xb4a6cf['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xb4a6cf;}});}['getTokenStatus'](_0x7192f1){if(Date['now']()<_0x7192f1['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x7192f1['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
+
17
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
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'];}}
3
+ exports.TokenStatus = void 0;(function(_0x279a21){_0x279a21[_0x279a21['Ok']=0x0]='Ok',_0x279a21[_0x279a21['Refresh']=0x1]='Refresh',_0x279a21[_0x279a21['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(_0x203c9){this['isSuccess']=_0x203c9;}}class SuccessfulFacetResponse extends Response{constructor(_0x349419){super(!![]),this['facet']=_0x349419;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x12b46a){super(![]),this['problem']=_0x12b46a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x5c5706){super(!![]),this['account']=_0x5c5706;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x5906b1){super(!![]),this['list']=_0x5906b1;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x12c7c1){super(!![]),this['list']=_0x12c7c1;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x8cce3){super(![]),this['problem']=_0x8cce3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x503b52){super(![]),this['problem']=_0x503b52;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x3b0f9f){super(![]),this['problem']=_0x3b0f9f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2b251a){super(!![]),this['tokens']=_0x2b251a;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1b3cf){super(![]),this['problem']=_0x1b3cf;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x24b5cb){super(!![]),this['apiKey']=_0x24b5cb;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5523d9){super(![]),this['problem']=_0x5523d9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x4e3620){super(!![]),this['searchService']=_0x4e3620;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0xde61bf){super(![]),this['problem']=_0xde61bf;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0xfa53eb){super(!![]),this['searchService']=_0xfa53eb;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x363331){super(!![]),this['searchServices']=_0x363331;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x5de570){super(![]),this['problem']=_0x5de570;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x18fce9){super(![]),this['problem']=_0x18fce9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x56b3f6){super(!![]),this['apiKeyValue']=_0x56b3f6;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x4ece75){super(!![]),this['obj']=_0x4ece75;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x6defd3){super(![]),this['problem']=_0x6defd3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x3258cf){super(![]),this['problem']=_0x3258cf;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
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;}});}}
5
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x31cb91,_0x45c46e,_0x300de7,_0x347128){function _0x21b03a(_0x349d25){return _0x349d25 instanceof _0x300de7?_0x349d25:new _0x300de7(function(_0x4bbb29){_0x4bbb29(_0x349d25);});}return new(_0x300de7||(_0x300de7=Promise))(function(_0x3e1bf6,_0x4a3341){function _0x5342d4(_0x44d0e0){try{_0x41c097(_0x347128['next'](_0x44d0e0));}catch(_0x403021){_0x4a3341(_0x403021);}}function _0x4e2088(_0x45c5fd){try{_0x41c097(_0x347128['throw'](_0x45c5fd));}catch(_0x273268){_0x4a3341(_0x273268);}}function _0x41c097(_0xe45007){_0xe45007['done']?_0x3e1bf6(_0xe45007['value']):_0x21b03a(_0xe45007['value'])['then'](_0x5342d4,_0x4e2088);}_0x41c097((_0x347128=_0x347128['apply'](_0x31cb91,_0x45c46e||[]))['next']());});};class AccountService{constructor(_0x2e4536){this['fetch']=_0x2e4536;}['get'](_0x4b7688,_0x1d472e){return __awaiter$6(this,void 0,void 0,function*(){const _0x16725f='Account/'+_0x4b7688+'/',_0x39c672=yield this['fetch']['get'](_0x16725f,_0x1d472e);try{if(_0x39c672['status']>0xc7&&_0x39c672['status']<0x12c){const _0x1e8119=yield _0x39c672['json']();return new SuccessfulAccountResponse(_0x1e8119);}const _0x44f957=yield _0x39c672['json']();return new FailedAccountResponse(_0x44f957);}catch(_0x33a58d){if(_0x33a58d instanceof Error)return new FailedAccountResponse({'detail':_0x33a58d['message'],'title':_0x33a58d['name'],'status':0x1f4,'instance':'','type':''});throw _0x33a58d;}});}}
6
6
 
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;}});}}
7
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x20f8d0,_0x3f412f,_0x39751b,_0x305e41){function _0x4946f4(_0x346581){return _0x346581 instanceof _0x39751b?_0x346581:new _0x39751b(function(_0x15c53f){_0x15c53f(_0x346581);});}return new(_0x39751b||(_0x39751b=Promise))(function(_0x19a58d,_0x31e655){function _0xeed77e(_0x5c5483){try{_0x1e5697(_0x305e41['next'](_0x5c5483));}catch(_0x3c2e02){_0x31e655(_0x3c2e02);}}function _0x2c9ba7(_0x1c0352){try{_0x1e5697(_0x305e41['throw'](_0x1c0352));}catch(_0x18ab3f){_0x31e655(_0x18ab3f);}}function _0x1e5697(_0x3c54fe){_0x3c54fe['done']?_0x19a58d(_0x3c54fe['value']):_0x4946f4(_0x3c54fe['value'])['then'](_0xeed77e,_0x2c9ba7);}_0x1e5697((_0x305e41=_0x305e41['apply'](_0x20f8d0,_0x3f412f||[]))['next']());});};class ApiKeyService{constructor(_0x3e4ecb){this['fetch']=_0x3e4ecb,this['path']='api-key';}['create'](_0x8d9774,_0x305f66,_0x35cb82){return __awaiter$5(this,void 0,void 0,function*(){const _0x391120={'account_name':_0x8d9774,'api_key_name':_0x305f66};try{const _0x4bd159=yield this['fetch']['post'](this['path'],_0x35cb82,_0x391120);if(_0x4bd159['status']>0xc7&&_0x4bd159['status']<0x12c){const _0xfcfc81=yield _0x4bd159['json']();return new SuccessfulApiKeyResponse(_0xfcfc81);}const _0x311d8e=yield _0x4bd159['json']();return new FailedApiKeyResponse(_0x311d8e);}catch(_0x573f86){if(_0x573f86 instanceof Error)return new FailedApiKeyResponse({'detail':_0x573f86['message'],'title':_0x573f86['name'],'status':0x1f4,'instance':'','type':''});throw _0x573f86;}});}['view'](_0x34f839,_0x25cef5,_0x19f8b9){return __awaiter$5(this,void 0,void 0,function*(){const _0x429316=this['path']+'/'+_0x34f839+'/'+_0x25cef5;try{const _0x59b502=yield this['fetch']['get'](_0x429316,_0x19f8b9);if(_0x59b502['status']>0xc7&&_0x59b502['status']<0x12c){const _0x474361=yield _0x59b502['json']();return new SuccessfulApiKeyValueResponse(_0x474361);}const _0x17c6a8=yield _0x59b502['json']();return new FailedApiKeyValueResponse(_0x17c6a8);}catch(_0x29bc0e){if(_0x29bc0e instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x29bc0e['message'],'title':_0x29bc0e['name'],'status':0x1f4,'instance':'','type':''});throw _0x29bc0e;}});}['delete'](_0xdda984,_0x5e5e6c,_0xa80de2){return __awaiter$5(this,void 0,void 0,function*(){const _0x1779be=this['path']+'/'+_0xdda984+'/'+_0x5e5e6c;try{const _0x1a034f=yield this['fetch']['delete'](_0x1779be,_0xa80de2);if(_0x1a034f['status']>0xc7&&_0x1a034f['status']<0x12c)return new SuccessfulResponse({});const _0x10e233=yield _0x1a034f['json']();return new FailedResponse(_0x10e233);}catch(_0x55fee8){if(_0x55fee8 instanceof Error)return new FailedResponse({'detail':_0x55fee8['message'],'title':_0x55fee8['name'],'status':0x1f4,'instance':'','type':''});throw _0x55fee8;}});}}
8
8
 
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;}});}}
9
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4b7da2,_0x58fd9c,_0x2f1910,_0x18064b){function _0x3d7b15(_0x20f9cb){return _0x20f9cb instanceof _0x2f1910?_0x20f9cb:new _0x2f1910(function(_0x53b50c){_0x53b50c(_0x20f9cb);});}return new(_0x2f1910||(_0x2f1910=Promise))(function(_0x27d393,_0x3ff9f2){function _0x2d3484(_0x109cf8){try{_0x54cbde(_0x18064b['next'](_0x109cf8));}catch(_0x10dc97){_0x3ff9f2(_0x10dc97);}}function _0x49cd44(_0x606720){try{_0x54cbde(_0x18064b['throw'](_0x606720));}catch(_0x2ba788){_0x3ff9f2(_0x2ba788);}}function _0x54cbde(_0x316e6a){_0x316e6a['done']?_0x27d393(_0x316e6a['value']):_0x3d7b15(_0x316e6a['value'])['then'](_0x2d3484,_0x49cd44);}_0x54cbde((_0x18064b=_0x18064b['apply'](_0x4b7da2,_0x58fd9c||[]))['next']());});};class ListService{constructor(_0x7f6873){this['fetch']=_0x7f6873;}['create'](_0xd14cc3,_0x5a0869,_0x1a5fbc,_0x3596ae){return __awaiter$4(this,void 0,void 0,function*(){const _0x399bca='List',_0x2c63d3={'account_name':_0xd14cc3,'list_name':_0x5a0869,'search_service_name':_0x1a5fbc};try{const _0x4be54d=yield this['fetch']['post'](_0x399bca,_0x3596ae,_0x2c63d3);if(_0x4be54d['status']>0xc7&&_0x4be54d['status']<0x12c){const _0x5ec7c9=yield _0x4be54d['json']();return new SuccessfulListIdentityResponse(_0x5ec7c9);}const _0x1115a9=yield _0x4be54d['json']();return new FailedListIdentityResponse(_0x1115a9);}catch(_0x559777){if(_0x559777 instanceof Error)return new FailedListIdentityResponse({'detail':_0x559777['message'],'title':_0x559777['name'],'status':0x1f4,'instance':'','type':''});throw _0x559777;}});}['delete'](_0x477a13,_0xaf0ee4,_0x3924e5){return __awaiter$4(this,void 0,void 0,function*(){const _0x331148='List/'+_0x477a13+'/'+_0xaf0ee4,_0x1e80c6=yield this['fetch']['delete'](_0x331148,_0x3924e5);try{if(_0x1e80c6['status']>0xc7&&_0x1e80c6['status']<0x12c)return new SuccessfulResponse({});const _0xd2bd5e=yield _0x1e80c6['json']();return new FailedResponse(_0xd2bd5e);}catch(_0x24359b){if(_0x24359b instanceof Error)return new FailedResponse({'detail':_0x24359b['message'],'title':_0x24359b['name'],'status':0x1f4,'instance':'','type':''});throw _0x24359b;}});}['get'](_0x46a0dc,_0xd26a59,_0x25c232){return __awaiter$4(this,void 0,void 0,function*(){const _0x29774c='List/'+_0x46a0dc+'/'+_0xd26a59;try{const _0x512369=yield this['fetch']['get'](_0x29774c,_0x25c232);if(_0x512369['status']>0xc7&&_0x512369['status']<0x12c){const _0xd43af2=yield _0x512369['json']();return new SuccessfulListResponse(_0xd43af2);}const _0x4c2130=yield _0x512369['json']();return new FailedListResponse(_0x4c2130);}catch(_0x580b51){if(_0x580b51 instanceof Error)return new FailedListResponse({'detail':_0x580b51['message'],'title':_0x580b51['name'],'status':0x1f4,'instance':'','type':''});throw _0x580b51;}});}}
10
10
 
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}});});}}
11
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1a4419,_0x17465e,_0x25d551,_0x5c4457){function _0x32ae31(_0x589cd2){return _0x589cd2 instanceof _0x25d551?_0x589cd2:new _0x25d551(function(_0xce158c){_0xce158c(_0x589cd2);});}return new(_0x25d551||(_0x25d551=Promise))(function(_0x589a1a,_0x5a2bb8){function _0x34cc5f(_0x264632){try{_0x5217b3(_0x5c4457['next'](_0x264632));}catch(_0x4e6953){_0x5a2bb8(_0x4e6953);}}function _0x258b25(_0x354ba2){try{_0x5217b3(_0x5c4457['throw'](_0x354ba2));}catch(_0xc38ad9){_0x5a2bb8(_0xc38ad9);}}function _0x5217b3(_0x346c65){_0x346c65['done']?_0x589a1a(_0x346c65['value']):_0x32ae31(_0x346c65['value'])['then'](_0x34cc5f,_0x258b25);}_0x5217b3((_0x5c4457=_0x5c4457['apply'](_0x1a4419,_0x17465e||[]))['next']());});};class Fetch{constructor(_0x217f5d){this['baseUri']=_0x217f5d,this['getUrl']=_0x57dc3a=>{return _0x57dc3a['startsWith']('/')&&(_0x57dc3a=_0x57dc3a['replace']('/','')),''+this['baseUri']+_0x57dc3a;},!_0x217f5d['endsWith']('/')&&(_0x217f5d=_0x217f5d+'/');}['get'](_0x4c7631,_0xb67a4a){return __awaiter$3(this,void 0,void 0,function*(){const _0x5df41d=this['getUrl'](_0x4c7631);return yield fetch(_0x5df41d,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xb67a4a}});});}['post'](_0x2d4bbc,_0x113489,_0x4784eb){return __awaiter$3(this,void 0,void 0,function*(){const _0x5df2f7=this['getUrl'](_0x2d4bbc);return yield fetch(_0x5df2f7,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x113489},'body':_0x4784eb?JSON['stringify'](_0x4784eb):null});});}['PostNoAuth'](_0x48b652,_0x170d18){return __awaiter$3(this,void 0,void 0,function*(){const _0x32f045=this['getUrl'](_0x48b652);return yield fetch(_0x32f045,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x170d18?JSON['stringify'](_0x170d18):null});});}['put'](_0xbcf56,_0x37625a,_0x6e09e8){return __awaiter$3(this,void 0,void 0,function*(){const _0x4c7f18=this['getUrl'](_0xbcf56);return yield fetch(_0x4c7f18,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x37625a},'body':_0x6e09e8?JSON['stringify'](_0x6e09e8):null});});}['delete'](_0x360301,_0x30959c){return __awaiter$3(this,void 0,void 0,function*(){const _0x17a096=this['getUrl'](_0x360301);return yield fetch(_0x17a096,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x30959c}});});}}
12
12
 
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;}});}}
13
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x9bed84,_0x4cb28d,_0xa155b8,_0x324d78){function _0x247b66(_0x1ba951){return _0x1ba951 instanceof _0xa155b8?_0x1ba951:new _0xa155b8(function(_0x172279){_0x172279(_0x1ba951);});}return new(_0xa155b8||(_0xa155b8=Promise))(function(_0x5531e2,_0x505822){function _0x1e388e(_0x4fa7ec){try{_0x2e2331(_0x324d78['next'](_0x4fa7ec));}catch(_0x157ff6){_0x505822(_0x157ff6);}}function _0x291452(_0x4cc89c){try{_0x2e2331(_0x324d78['throw'](_0x4cc89c));}catch(_0x53daaf){_0x505822(_0x53daaf);}}function _0x2e2331(_0xa3d138){_0xa3d138['done']?_0x5531e2(_0xa3d138['value']):_0x247b66(_0xa3d138['value'])['then'](_0x1e388e,_0x291452);}_0x2e2331((_0x324d78=_0x324d78['apply'](_0x9bed84,_0x4cb28d||[]))['next']());});};class SearchServersService{constructor(_0x1bb9d0){this['fetch']=_0x1bb9d0,this['path']='search-services';}['create'](_0x23711b,_0x3464ad,_0x17d6ef,_0xd7f751,_0x3b4b80,_0x1d7316,_0x3aeb3e,_0x273c93){return __awaiter$2(this,void 0,void 0,function*(){const _0x586886={'account_name':_0x23711b,'search_service_name':_0x3464ad,'endpoint':_0x17d6ef,'key':_0xd7f751,'country':_0x3b4b80,'provider':_0x1d7316,'index_name':_0x3aeb3e};try{const _0x1ccf81=yield this['fetch']['post'](this['path'],_0x273c93,_0x586886);if(_0x1ccf81['status']>0xc7&&_0x1ccf81['status']<0x12c){const _0x3aae72=yield _0x1ccf81['json']();return new SuccessfulSearchServiceResponse(_0x3aae72);}const _0x385cc2=yield _0x1ccf81['json']();return new FailedSearchServiceResponse(_0x385cc2);}catch(_0x4bc4a6){if(_0x4bc4a6 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x4bc4a6['message'],'title':_0x4bc4a6['name'],'status':0x1f4,'instance':'','type':''});throw _0x4bc4a6;}});}['delete'](_0x3c8519,_0x496936,_0xbe1115){return __awaiter$2(this,void 0,void 0,function*(){const _0x391090=this['path']+'/'+_0x3c8519+'/'+_0x496936;try{const _0x295f77=yield this['fetch']['delete'](_0x391090,_0xbe1115);if(_0x295f77['status']>0xc7&&_0x295f77['status']<0x12c)return new SuccessfulResponse({});const _0x5125e2=yield _0x295f77['json']();return new FailedResponse(_0x5125e2);}catch(_0x4964f9){if(_0x4964f9 instanceof Error)return new FailedResponse({'detail':_0x4964f9['message'],'title':_0x4964f9['name'],'status':0x1f4,'instance':'','type':''});throw _0x4964f9;}});}['view'](_0x5b3443,_0x29e696,_0x348671){return __awaiter$2(this,void 0,void 0,function*(){const _0x2ef073=this['path']+'/'+_0x5b3443+'/'+_0x29e696;try{const _0x4da27d=yield this['fetch']['get'](_0x2ef073,_0x348671);if(_0x4da27d['status']>0xc7&&_0x4da27d['status']<0x12c){const _0x3be93b=yield _0x4da27d['json']();return new SuccessfulViewSearchServiceResponse(_0x3be93b);}const _0x1c3c4c=yield _0x4da27d['json']();return new FailedViewSearchServiceResponse(_0x1c3c4c);}catch(_0x3f6cf7){if(_0x3f6cf7 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x3f6cf7['message'],'title':_0x3f6cf7['name'],'status':0x1f4,'instance':'','type':''});throw _0x3f6cf7;}});}['edit'](_0x3a3a0c,_0x14e9f7,_0x582b13,_0x47c856,_0x46909b,_0x19e777){return __awaiter$2(this,void 0,void 0,function*(){const _0x5cac9c={'account_name':_0x3a3a0c,'search_service_name':_0x14e9f7,'new_search_service_name':_0x582b13,'key':_0x47c856,'country':_0x46909b};try{const _0x177258=yield this['fetch']['put'](this['path'],_0x19e777,_0x5cac9c);if(_0x177258['status']>0xc7&&_0x177258['status']<0x12c){const _0x230e26=yield _0x177258['json']();return new SuccessfulSearchServiceResponse(_0x230e26);}const _0x5932cf=yield _0x177258['json']();return new FailedSearchServiceResponse(_0x5932cf);}catch(_0x4ba4c9){if(_0x4ba4c9 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x4ba4c9['message'],'title':_0x4ba4c9['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ba4c9;}});}['list'](_0x1fd3d1,_0x1ab1ef){return __awaiter$2(this,void 0,void 0,function*(){const _0x55d414=this['path']+'/'+_0x1fd3d1;try{const _0x2d7e22=yield this['fetch']['get'](_0x55d414,_0x1ab1ef);if(_0x2d7e22['status']>0xc7&&_0x2d7e22['status']<0x12c){const _0xd97ee3=yield _0x2d7e22['json']();return new SuccessfulListSearchServiceResponse(_0xd97ee3);}const _0x431a6f=yield _0x2d7e22['json']();return new FailedViewSearchServicesResponse(_0x431a6f);}catch(_0x106ac5){if(_0x106ac5 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x106ac5['message'],'title':_0x106ac5['name'],'status':0x1f4,'instance':'','type':''});throw _0x106ac5;}});}}
14
14
 
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;}});}}
15
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x247ad5,_0x384e01,_0x3524f0,_0x191687){function _0x3a0e80(_0x334300){return _0x334300 instanceof _0x3524f0?_0x334300:new _0x3524f0(function(_0x50a90a){_0x50a90a(_0x334300);});}return new(_0x3524f0||(_0x3524f0=Promise))(function(_0x2c6cd1,_0x3ba292){function _0x579c23(_0x3183aa){try{_0x32d0f4(_0x191687['next'](_0x3183aa));}catch(_0x4cb304){_0x3ba292(_0x4cb304);}}function _0x294384(_0x42d912){try{_0x32d0f4(_0x191687['throw'](_0x42d912));}catch(_0x44ad36){_0x3ba292(_0x44ad36);}}function _0x32d0f4(_0x4adc71){_0x4adc71['done']?_0x2c6cd1(_0x4adc71['value']):_0x3a0e80(_0x4adc71['value'])['then'](_0x579c23,_0x294384);}_0x32d0f4((_0x191687=_0x191687['apply'](_0x247ad5,_0x384e01||[]))['next']());});};class FacetService{constructor(_0x88b153){this['fetch']=_0x88b153,this['path']='facet';}['create'](_0x5284ac,_0x1752ba,_0x519f15,_0x5cbd3d){return __awaiter$1(this,void 0,void 0,function*(){const _0x2bf190={'account_name':_0x5284ac,'list_name':_0x1752ba,'facet_name':_0x519f15};try{const _0x16af5d=yield this['fetch']['post'](this['path'],_0x5cbd3d,_0x2bf190);if(_0x16af5d['status']>0xc7&&_0x16af5d['status']<0x12c){const _0x35d819=yield _0x16af5d['json']();return new SuccessfulFacetResponse(_0x35d819);}const _0x10c036=yield _0x16af5d['json']();return new FailedFacetResponse(_0x10c036);}catch(_0x5b5af9){if(_0x5b5af9 instanceof Error)return new FailedFacetResponse({'detail':_0x5b5af9['message'],'title':_0x5b5af9['name'],'status':0x1f4,'instance':'','type':''});throw _0x5b5af9;}});}}
16
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'];}}
17
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x57478a,_0x224474,_0x34c676,_0x36339f){function _0x13519e(_0x5705a6){return _0x5705a6 instanceof _0x34c676?_0x5705a6:new _0x34c676(function(_0xa9d35f){_0xa9d35f(_0x5705a6);});}return new(_0x34c676||(_0x34c676=Promise))(function(_0x31513a,_0x32ab1d){function _0x460ba2(_0x2a50da){try{_0x5b2aa0(_0x36339f['next'](_0x2a50da));}catch(_0x312a6f){_0x32ab1d(_0x312a6f);}}function _0x4e405d(_0x276533){try{_0x5b2aa0(_0x36339f['throw'](_0x276533));}catch(_0x77beb8){_0x32ab1d(_0x77beb8);}}function _0x5b2aa0(_0x58c28a){_0x58c28a['done']?_0x31513a(_0x58c28a['value']):_0x13519e(_0x58c28a['value'])['then'](_0x460ba2,_0x4e405d);}_0x5b2aa0((_0x36339f=_0x36339f['apply'](_0x57478a,_0x224474||[]))['next']());});};class AdminClient{constructor(_0x44f4fe='https://admin.searchability.dev/'){var _0x5b92d7=new Fetch(_0x44f4fe);this['Accounts']=new AccountService(_0x5b92d7),this['Lists']=new ListService(_0x5b92d7),this['ApiKeys']=new ApiKeyService(_0x5b92d7),this['SearchServices']=new SearchServersService(_0x5b92d7),this['FacetService']=new FacetService(_0x5b92d7);}}class AuthClient{constructor(_0x3443dd='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3443dd);}['login'](_0x1b41b0){return __awaiter(this,void 0,void 0,function*(){const _0x23471a='login/'+_0x1b41b0;try{const _0x15fa46=yield yield fetch(_0x23471a);if(_0x15fa46['status']>0xc7&&_0x15fa46['status']<0x12c){const _0x5c4986=yield _0x15fa46['json']();return new SuccessfulAuthResponse(_0x5c4986);}const _0x318a07=yield _0x15fa46['json']();return new FailedAuthResponse(_0x318a07);}catch(_0x15749b){if(_0x15749b instanceof Error)return new FailedAuthResponse({'detail':_0x15749b['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x15749b;}});}['refresh'](_0x571de9){return __awaiter(this,void 0,void 0,function*(){const _0x3d29d2='refresh',_0x419a57={'refresh_token':_0x571de9};try{const _0x4c2779=yield this['fetch']['PostNoAuth'](_0x3d29d2,_0x419a57);if(_0x4c2779['status']>0xc7&&_0x4c2779['status']<0x12c){const _0x39d2c4=yield _0x4c2779['json']();return new SuccessfulAuthResponse(_0x39d2c4);}const _0x54dbf6=yield _0x4c2779['json']();return new FailedAuthResponse(_0x54dbf6);}catch(_0x5d28e9){if(_0x5d28e9 instanceof Error)return new FailedAuthResponse({'detail':_0x5d28e9['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5d28e9;}});}['getTokenStatus'](_0x5f3cc0){if(Date['now']()<_0x5f3cc0['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x5f3cc0['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
18
18
 
19
19
  exports.AdminClient = AdminClient;
20
20
  exports.AuthClient = AuthClient;
@@ -1,17 +1,17 @@
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'];}}
1
+ var TokenStatus;(function(_0x18813a){_0x18813a[_0x18813a['Ok']=0x0]='Ok',_0x18813a[_0x18813a['Refresh']=0x1]='Refresh',_0x18813a[_0x18813a['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(_0x34f429){this['isSuccess']=_0x34f429;}}class SuccessfulFacetResponse extends Response{constructor(_0x2071b0){super(!![]),this['facet']=_0x2071b0;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x5f265a){super(![]),this['problem']=_0x5f265a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0xc11535){super(!![]),this['account']=_0xc11535;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x6e1426){super(!![]),this['list']=_0x6e1426;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x579468){super(!![]),this['list']=_0x579468;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x45b745){super(![]),this['problem']=_0x45b745;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x58e0af){super(![]),this['problem']=_0x58e0af;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x365613){super(![]),this['problem']=_0x365613;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x5dcd55){super(!![]),this['tokens']=_0x5dcd55;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1d54c2){super(![]),this['problem']=_0x1d54c2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x3937b1){super(!![]),this['apiKey']=_0x3937b1;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4dbc6c){super(![]),this['problem']=_0x4dbc6c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x30d4e4){super(!![]),this['searchService']=_0x30d4e4;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x4ced08){super(![]),this['problem']=_0x4ced08;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x8e7b43){super(!![]),this['searchService']=_0x8e7b43;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x408f02){super(!![]),this['searchServices']=_0x408f02;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x508427){super(![]),this['problem']=_0x508427;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1a8467){super(![]),this['problem']=_0x1a8467;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x154bf8){super(!![]),this['apiKeyValue']=_0x154bf8;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x23271d){super(!![]),this['obj']=_0x23271d;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x3c650e){super(![]),this['problem']=_0x3c650e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x3ba3ea){super(![]),this['problem']=_0x3ba3ea;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
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;}});}}
3
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x348f06,_0x8f2d67,_0x54b18b,_0x4aa4f1){function _0x3f7670(_0x48e896){return _0x48e896 instanceof _0x54b18b?_0x48e896:new _0x54b18b(function(_0xabe6bb){_0xabe6bb(_0x48e896);});}return new(_0x54b18b||(_0x54b18b=Promise))(function(_0x1e7b59,_0x4442d2){function _0x31c972(_0x2c132e){try{_0x22cc83(_0x4aa4f1['next'](_0x2c132e));}catch(_0x595f7a){_0x4442d2(_0x595f7a);}}function _0x312116(_0x2b5387){try{_0x22cc83(_0x4aa4f1['throw'](_0x2b5387));}catch(_0x59a6bf){_0x4442d2(_0x59a6bf);}}function _0x22cc83(_0x5529d8){_0x5529d8['done']?_0x1e7b59(_0x5529d8['value']):_0x3f7670(_0x5529d8['value'])['then'](_0x31c972,_0x312116);}_0x22cc83((_0x4aa4f1=_0x4aa4f1['apply'](_0x348f06,_0x8f2d67||[]))['next']());});};class AccountService{constructor(_0x2163a9){this['fetch']=_0x2163a9;}['get'](_0x430b17,_0x26b469){return __awaiter$6(this,void 0,void 0,function*(){const _0x2e4432='Account/'+_0x430b17+'/',_0x4d8374=yield this['fetch']['get'](_0x2e4432,_0x26b469);try{if(_0x4d8374['status']>0xc7&&_0x4d8374['status']<0x12c){const _0x49b07a=yield _0x4d8374['json']();return new SuccessfulAccountResponse(_0x49b07a);}const _0x13d6c9=yield _0x4d8374['json']();return new FailedAccountResponse(_0x13d6c9);}catch(_0x3a5a2c){if(_0x3a5a2c instanceof Error)return new FailedAccountResponse({'detail':_0x3a5a2c['message'],'title':_0x3a5a2c['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a5a2c;}});}}
4
4
 
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;}});}}
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1fd128,_0xc0163e,_0x36e7d4,_0x3f48b6){function _0x48cb27(_0x4954c7){return _0x4954c7 instanceof _0x36e7d4?_0x4954c7:new _0x36e7d4(function(_0x44ba0f){_0x44ba0f(_0x4954c7);});}return new(_0x36e7d4||(_0x36e7d4=Promise))(function(_0x40efb9,_0x2b3255){function _0x40234f(_0x35c334){try{_0xc89733(_0x3f48b6['next'](_0x35c334));}catch(_0x49e2d6){_0x2b3255(_0x49e2d6);}}function _0x677732(_0x2c6ea9){try{_0xc89733(_0x3f48b6['throw'](_0x2c6ea9));}catch(_0x51a854){_0x2b3255(_0x51a854);}}function _0xc89733(_0x38fa10){_0x38fa10['done']?_0x40efb9(_0x38fa10['value']):_0x48cb27(_0x38fa10['value'])['then'](_0x40234f,_0x677732);}_0xc89733((_0x3f48b6=_0x3f48b6['apply'](_0x1fd128,_0xc0163e||[]))['next']());});};class ApiKeyService{constructor(_0x369c20){this['fetch']=_0x369c20,this['path']='api-key';}['create'](_0x2ef82b,_0x347317,_0x75b7a6){return __awaiter$5(this,void 0,void 0,function*(){const _0x4785bc={'account_name':_0x2ef82b,'api_key_name':_0x347317};try{const _0x1342eb=yield this['fetch']['post'](this['path'],_0x75b7a6,_0x4785bc);if(_0x1342eb['status']>0xc7&&_0x1342eb['status']<0x12c){const _0x2ed94d=yield _0x1342eb['json']();return new SuccessfulApiKeyResponse(_0x2ed94d);}const _0x385da2=yield _0x1342eb['json']();return new FailedApiKeyResponse(_0x385da2);}catch(_0xe0384c){if(_0xe0384c instanceof Error)return new FailedApiKeyResponse({'detail':_0xe0384c['message'],'title':_0xe0384c['name'],'status':0x1f4,'instance':'','type':''});throw _0xe0384c;}});}['view'](_0xf31e64,_0x444cb4,_0x5a2393){return __awaiter$5(this,void 0,void 0,function*(){const _0x261149=this['path']+'/'+_0xf31e64+'/'+_0x444cb4;try{const _0x34e8f2=yield this['fetch']['get'](_0x261149,_0x5a2393);if(_0x34e8f2['status']>0xc7&&_0x34e8f2['status']<0x12c){const _0x276e1b=yield _0x34e8f2['json']();return new SuccessfulApiKeyValueResponse(_0x276e1b);}const _0x24c741=yield _0x34e8f2['json']();return new FailedApiKeyValueResponse(_0x24c741);}catch(_0x208169){if(_0x208169 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x208169['message'],'title':_0x208169['name'],'status':0x1f4,'instance':'','type':''});throw _0x208169;}});}['delete'](_0x24b531,_0x369e33,_0x40fb81){return __awaiter$5(this,void 0,void 0,function*(){const _0xb3ab4=this['path']+'/'+_0x24b531+'/'+_0x369e33;try{const _0x39de5e=yield this['fetch']['delete'](_0xb3ab4,_0x40fb81);if(_0x39de5e['status']>0xc7&&_0x39de5e['status']<0x12c)return new SuccessfulResponse({});const _0x4465f9=yield _0x39de5e['json']();return new FailedResponse(_0x4465f9);}catch(_0x11a8e7){if(_0x11a8e7 instanceof Error)return new FailedResponse({'detail':_0x11a8e7['message'],'title':_0x11a8e7['name'],'status':0x1f4,'instance':'','type':''});throw _0x11a8e7;}});}}
6
6
 
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;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4299d9,_0x25a12e,_0x2a296e,_0x18ee24){function _0x5971eb(_0x1a761a){return _0x1a761a instanceof _0x2a296e?_0x1a761a:new _0x2a296e(function(_0x2968b3){_0x2968b3(_0x1a761a);});}return new(_0x2a296e||(_0x2a296e=Promise))(function(_0x1b350a,_0x30c939){function _0xed8811(_0x236205){try{_0x30a81c(_0x18ee24['next'](_0x236205));}catch(_0x58ccfe){_0x30c939(_0x58ccfe);}}function _0x1dfbda(_0x4bd8ae){try{_0x30a81c(_0x18ee24['throw'](_0x4bd8ae));}catch(_0x2fb475){_0x30c939(_0x2fb475);}}function _0x30a81c(_0x43cd42){_0x43cd42['done']?_0x1b350a(_0x43cd42['value']):_0x5971eb(_0x43cd42['value'])['then'](_0xed8811,_0x1dfbda);}_0x30a81c((_0x18ee24=_0x18ee24['apply'](_0x4299d9,_0x25a12e||[]))['next']());});};class ListService{constructor(_0x3db0bb){this['fetch']=_0x3db0bb;}['create'](_0x379f34,_0xaf2096,_0x182a53,_0x193a84){return __awaiter$4(this,void 0,void 0,function*(){const _0x58a7a6='List',_0x514c67={'account_name':_0x379f34,'list_name':_0xaf2096,'search_service_name':_0x182a53};try{const _0x53678f=yield this['fetch']['post'](_0x58a7a6,_0x193a84,_0x514c67);if(_0x53678f['status']>0xc7&&_0x53678f['status']<0x12c){const _0x3ea9a6=yield _0x53678f['json']();return new SuccessfulListIdentityResponse(_0x3ea9a6);}const _0x58c569=yield _0x53678f['json']();return new FailedListIdentityResponse(_0x58c569);}catch(_0x237cc7){if(_0x237cc7 instanceof Error)return new FailedListIdentityResponse({'detail':_0x237cc7['message'],'title':_0x237cc7['name'],'status':0x1f4,'instance':'','type':''});throw _0x237cc7;}});}['delete'](_0x51ee1e,_0x366bb0,_0x5539bb){return __awaiter$4(this,void 0,void 0,function*(){const _0x108856='List/'+_0x51ee1e+'/'+_0x366bb0,_0x1a13c3=yield this['fetch']['delete'](_0x108856,_0x5539bb);try{if(_0x1a13c3['status']>0xc7&&_0x1a13c3['status']<0x12c)return new SuccessfulResponse({});const _0x466a62=yield _0x1a13c3['json']();return new FailedResponse(_0x466a62);}catch(_0x32dd2b){if(_0x32dd2b instanceof Error)return new FailedResponse({'detail':_0x32dd2b['message'],'title':_0x32dd2b['name'],'status':0x1f4,'instance':'','type':''});throw _0x32dd2b;}});}['get'](_0x597878,_0x2e07b0,_0x58133d){return __awaiter$4(this,void 0,void 0,function*(){const _0x20463b='List/'+_0x597878+'/'+_0x2e07b0;try{const _0x511402=yield this['fetch']['get'](_0x20463b,_0x58133d);if(_0x511402['status']>0xc7&&_0x511402['status']<0x12c){const _0x36eb8e=yield _0x511402['json']();return new SuccessfulListResponse(_0x36eb8e);}const _0x2c4eee=yield _0x511402['json']();return new FailedListResponse(_0x2c4eee);}catch(_0x106c22){if(_0x106c22 instanceof Error)return new FailedListResponse({'detail':_0x106c22['message'],'title':_0x106c22['name'],'status':0x1f4,'instance':'','type':''});throw _0x106c22;}});}}
8
8
 
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}});});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x104b3f,_0x5a1d33,_0x2cb88d,_0x55542e){function _0x2b2ede(_0xf01c6e){return _0xf01c6e instanceof _0x2cb88d?_0xf01c6e:new _0x2cb88d(function(_0x383b8b){_0x383b8b(_0xf01c6e);});}return new(_0x2cb88d||(_0x2cb88d=Promise))(function(_0x5a6c9b,_0x3f5f7a){function _0x2ac1ef(_0x383951){try{_0x16755b(_0x55542e['next'](_0x383951));}catch(_0x3aee15){_0x3f5f7a(_0x3aee15);}}function _0x48831a(_0x17f7fa){try{_0x16755b(_0x55542e['throw'](_0x17f7fa));}catch(_0x29c95e){_0x3f5f7a(_0x29c95e);}}function _0x16755b(_0xf3db42){_0xf3db42['done']?_0x5a6c9b(_0xf3db42['value']):_0x2b2ede(_0xf3db42['value'])['then'](_0x2ac1ef,_0x48831a);}_0x16755b((_0x55542e=_0x55542e['apply'](_0x104b3f,_0x5a1d33||[]))['next']());});};class Fetch{constructor(_0x5819e8){this['baseUri']=_0x5819e8,this['getUrl']=_0x73a787=>{return _0x73a787['startsWith']('/')&&(_0x73a787=_0x73a787['replace']('/','')),''+this['baseUri']+_0x73a787;},!_0x5819e8['endsWith']('/')&&(_0x5819e8=_0x5819e8+'/');}['get'](_0x3a7d23,_0x3d2b4d){return __awaiter$3(this,void 0,void 0,function*(){const _0x21d75b=this['getUrl'](_0x3a7d23);return yield fetch(_0x21d75b,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3d2b4d}});});}['post'](_0x1d8c33,_0x25d678,_0x188619){return __awaiter$3(this,void 0,void 0,function*(){const _0x42308b=this['getUrl'](_0x1d8c33);return yield fetch(_0x42308b,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x25d678},'body':_0x188619?JSON['stringify'](_0x188619):null});});}['PostNoAuth'](_0x1bf924,_0x5adc0d){return __awaiter$3(this,void 0,void 0,function*(){const _0xcd580=this['getUrl'](_0x1bf924);return yield fetch(_0xcd580,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5adc0d?JSON['stringify'](_0x5adc0d):null});});}['put'](_0x5f059b,_0x578959,_0x365b47){return __awaiter$3(this,void 0,void 0,function*(){const _0x18118c=this['getUrl'](_0x5f059b);return yield fetch(_0x18118c,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x578959},'body':_0x365b47?JSON['stringify'](_0x365b47):null});});}['delete'](_0x4bf947,_0x275aaa){return __awaiter$3(this,void 0,void 0,function*(){const _0x2473ba=this['getUrl'](_0x4bf947);return yield fetch(_0x2473ba,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x275aaa}});});}}
10
10
 
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;}});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1fb6cb,_0x3fc144,_0x2bf5ce,_0x121469){function _0x59de3f(_0x6651ae){return _0x6651ae instanceof _0x2bf5ce?_0x6651ae:new _0x2bf5ce(function(_0x29c632){_0x29c632(_0x6651ae);});}return new(_0x2bf5ce||(_0x2bf5ce=Promise))(function(_0x48df82,_0x18545c){function _0x6e6db8(_0x19f41f){try{_0x5300e8(_0x121469['next'](_0x19f41f));}catch(_0x1698bc){_0x18545c(_0x1698bc);}}function _0x11c6f0(_0x5489ee){try{_0x5300e8(_0x121469['throw'](_0x5489ee));}catch(_0x369b53){_0x18545c(_0x369b53);}}function _0x5300e8(_0x31b10c){_0x31b10c['done']?_0x48df82(_0x31b10c['value']):_0x59de3f(_0x31b10c['value'])['then'](_0x6e6db8,_0x11c6f0);}_0x5300e8((_0x121469=_0x121469['apply'](_0x1fb6cb,_0x3fc144||[]))['next']());});};class SearchServersService{constructor(_0x423be1){this['fetch']=_0x423be1,this['path']='search-services';}['create'](_0x128e86,_0x86541a,_0x5da4bc,_0x1841d7,_0x555e99,_0x3892be,_0x1f561f,_0x4a47b0){return __awaiter$2(this,void 0,void 0,function*(){const _0x5e688f={'account_name':_0x128e86,'search_service_name':_0x86541a,'endpoint':_0x5da4bc,'key':_0x1841d7,'country':_0x555e99,'provider':_0x3892be,'index_name':_0x1f561f};try{const _0x5b58ee=yield this['fetch']['post'](this['path'],_0x4a47b0,_0x5e688f);if(_0x5b58ee['status']>0xc7&&_0x5b58ee['status']<0x12c){const _0x5d7eae=yield _0x5b58ee['json']();return new SuccessfulSearchServiceResponse(_0x5d7eae);}const _0x5de4b4=yield _0x5b58ee['json']();return new FailedSearchServiceResponse(_0x5de4b4);}catch(_0x1048a5){if(_0x1048a5 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1048a5['message'],'title':_0x1048a5['name'],'status':0x1f4,'instance':'','type':''});throw _0x1048a5;}});}['delete'](_0x50217d,_0x53d0b2,_0x538928){return __awaiter$2(this,void 0,void 0,function*(){const _0x54c3f1=this['path']+'/'+_0x50217d+'/'+_0x53d0b2;try{const _0x49b1ca=yield this['fetch']['delete'](_0x54c3f1,_0x538928);if(_0x49b1ca['status']>0xc7&&_0x49b1ca['status']<0x12c)return new SuccessfulResponse({});const _0x2b566f=yield _0x49b1ca['json']();return new FailedResponse(_0x2b566f);}catch(_0x34d2a7){if(_0x34d2a7 instanceof Error)return new FailedResponse({'detail':_0x34d2a7['message'],'title':_0x34d2a7['name'],'status':0x1f4,'instance':'','type':''});throw _0x34d2a7;}});}['view'](_0x2c1d97,_0x3cb6e8,_0x2d4371){return __awaiter$2(this,void 0,void 0,function*(){const _0xa35571=this['path']+'/'+_0x2c1d97+'/'+_0x3cb6e8;try{const _0x1c8069=yield this['fetch']['get'](_0xa35571,_0x2d4371);if(_0x1c8069['status']>0xc7&&_0x1c8069['status']<0x12c){const _0x2beb37=yield _0x1c8069['json']();return new SuccessfulViewSearchServiceResponse(_0x2beb37);}const _0xf83ed9=yield _0x1c8069['json']();return new FailedViewSearchServiceResponse(_0xf83ed9);}catch(_0x1373dc){if(_0x1373dc instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x1373dc['message'],'title':_0x1373dc['name'],'status':0x1f4,'instance':'','type':''});throw _0x1373dc;}});}['edit'](_0x4f88db,_0x13a762,_0x787dd2,_0x1327ae,_0x1057fe,_0x20ea1b){return __awaiter$2(this,void 0,void 0,function*(){const _0x345700={'account_name':_0x4f88db,'search_service_name':_0x13a762,'new_search_service_name':_0x787dd2,'key':_0x1327ae,'country':_0x1057fe};try{const _0x8d4176=yield this['fetch']['put'](this['path'],_0x20ea1b,_0x345700);if(_0x8d4176['status']>0xc7&&_0x8d4176['status']<0x12c){const _0x176f6a=yield _0x8d4176['json']();return new SuccessfulSearchServiceResponse(_0x176f6a);}const _0x267e54=yield _0x8d4176['json']();return new FailedSearchServiceResponse(_0x267e54);}catch(_0x41e928){if(_0x41e928 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x41e928['message'],'title':_0x41e928['name'],'status':0x1f4,'instance':'','type':''});throw _0x41e928;}});}['list'](_0x22fc35,_0x1929c4){return __awaiter$2(this,void 0,void 0,function*(){const _0x18dc1b=this['path']+'/'+_0x22fc35;try{const _0x228aeb=yield this['fetch']['get'](_0x18dc1b,_0x1929c4);if(_0x228aeb['status']>0xc7&&_0x228aeb['status']<0x12c){const _0x213a3c=yield _0x228aeb['json']();return new SuccessfulListSearchServiceResponse(_0x213a3c);}const _0x1f083b=yield _0x228aeb['json']();return new FailedViewSearchServicesResponse(_0x1f083b);}catch(_0x16d89f){if(_0x16d89f instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x16d89f['message'],'title':_0x16d89f['name'],'status':0x1f4,'instance':'','type':''});throw _0x16d89f;}});}}
12
12
 
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;}});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x6e54dd,_0xe90477,_0x4ad929,_0x5e1dcd){function _0x41855e(_0x4461c1){return _0x4461c1 instanceof _0x4ad929?_0x4461c1:new _0x4ad929(function(_0x3c214f){_0x3c214f(_0x4461c1);});}return new(_0x4ad929||(_0x4ad929=Promise))(function(_0x5cb427,_0x244878){function _0x134577(_0x508474){try{_0x1e33e5(_0x5e1dcd['next'](_0x508474));}catch(_0x3bee8b){_0x244878(_0x3bee8b);}}function _0x3d1f99(_0x5b1d38){try{_0x1e33e5(_0x5e1dcd['throw'](_0x5b1d38));}catch(_0xad9ec9){_0x244878(_0xad9ec9);}}function _0x1e33e5(_0x299e9d){_0x299e9d['done']?_0x5cb427(_0x299e9d['value']):_0x41855e(_0x299e9d['value'])['then'](_0x134577,_0x3d1f99);}_0x1e33e5((_0x5e1dcd=_0x5e1dcd['apply'](_0x6e54dd,_0xe90477||[]))['next']());});};class FacetService{constructor(_0x1df54e){this['fetch']=_0x1df54e,this['path']='facet';}['create'](_0x1c3608,_0x47932e,_0x2d2f7d,_0x412e04){return __awaiter$1(this,void 0,void 0,function*(){const _0x5c4c09={'account_name':_0x1c3608,'list_name':_0x47932e,'facet_name':_0x2d2f7d};try{const _0x1cb4cf=yield this['fetch']['post'](this['path'],_0x412e04,_0x5c4c09);if(_0x1cb4cf['status']>0xc7&&_0x1cb4cf['status']<0x12c){const _0x562947=yield _0x1cb4cf['json']();return new SuccessfulFacetResponse(_0x562947);}const _0x2a1eaa=yield _0x1cb4cf['json']();return new FailedFacetResponse(_0x2a1eaa);}catch(_0x5e6bef){if(_0x5e6bef instanceof Error)return new FailedFacetResponse({'detail':_0x5e6bef['message'],'title':_0x5e6bef['name'],'status':0x1f4,'instance':'','type':''});throw _0x5e6bef;}});}}
14
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'];}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x300bfb,_0x54a0a9,_0x1e53d6,_0x1540d2){function _0x4df474(_0x29d02c){return _0x29d02c instanceof _0x1e53d6?_0x29d02c:new _0x1e53d6(function(_0x2189b8){_0x2189b8(_0x29d02c);});}return new(_0x1e53d6||(_0x1e53d6=Promise))(function(_0x68dd17,_0x14dde9){function _0x19ad61(_0x162554){try{_0x1f3fc8(_0x1540d2['next'](_0x162554));}catch(_0x397d9d){_0x14dde9(_0x397d9d);}}function _0x449e2f(_0x18ed93){try{_0x1f3fc8(_0x1540d2['throw'](_0x18ed93));}catch(_0x3c38f1){_0x14dde9(_0x3c38f1);}}function _0x1f3fc8(_0x21dd4a){_0x21dd4a['done']?_0x68dd17(_0x21dd4a['value']):_0x4df474(_0x21dd4a['value'])['then'](_0x19ad61,_0x449e2f);}_0x1f3fc8((_0x1540d2=_0x1540d2['apply'](_0x300bfb,_0x54a0a9||[]))['next']());});};class AdminClient{constructor(_0x53e4fa='https://admin.searchability.dev/'){var _0x22b6ef=new Fetch(_0x53e4fa);this['Accounts']=new AccountService(_0x22b6ef),this['Lists']=new ListService(_0x22b6ef),this['ApiKeys']=new ApiKeyService(_0x22b6ef),this['SearchServices']=new SearchServersService(_0x22b6ef),this['FacetService']=new FacetService(_0x22b6ef);}}class AuthClient{constructor(_0x1ebbb4='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1ebbb4);}['login'](_0x1af8d9){return __awaiter(this,void 0,void 0,function*(){const _0x2068b6='login/'+_0x1af8d9;try{const _0x6534b6=yield yield fetch(_0x2068b6);if(_0x6534b6['status']>0xc7&&_0x6534b6['status']<0x12c){const _0xd73591=yield _0x6534b6['json']();return new SuccessfulAuthResponse(_0xd73591);}const _0x639f59=yield _0x6534b6['json']();return new FailedAuthResponse(_0x639f59);}catch(_0x264139){if(_0x264139 instanceof Error)return new FailedAuthResponse({'detail':_0x264139['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x264139;}});}['refresh'](_0x1afc96){return __awaiter(this,void 0,void 0,function*(){const _0x23b302='refresh',_0x191d6d={'refresh_token':_0x1afc96};try{const _0x2cb83e=yield this['fetch']['PostNoAuth'](_0x23b302,_0x191d6d);if(_0x2cb83e['status']>0xc7&&_0x2cb83e['status']<0x12c){const _0x14b057=yield _0x2cb83e['json']();return new SuccessfulAuthResponse(_0x14b057);}const _0x112a85=yield _0x2cb83e['json']();return new FailedAuthResponse(_0x112a85);}catch(_0x33b2c9){if(_0x33b2c9 instanceof Error)return new FailedAuthResponse({'detail':_0x33b2c9['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x33b2c9;}});}['getTokenStatus'](_0x369118){if(Date['now']()<_0x369118['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x369118['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
16
 
17
17
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -90,6 +90,8 @@ type List = {
90
90
  list_name: string;
91
91
  created: number;
92
92
  version: number;
93
+ account_name: string;
94
+ search_service_name: string;
93
95
  };
94
96
  type ListIdentity = {
95
97
  list_name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -1,17 +0,0 @@
1
- var TokenStatus;(function(_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 };