@searchability/admin-client 0.0.58 → 0.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ var TokenStatus;(function(_0x298dde){_0x298dde[_0x298dde['Ok']=0x0]='Ok',_0x298dde[_0x298dde['Refresh']=0x1]='Refresh',_0x298dde[_0x298dde['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(_0x39307d){this['isSuccess']=_0x39307d;}}class SuccessfulFacetResponse extends Response{constructor(_0x16c36f){super(!![]),this['facet']=_0x16c36f;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x8a2db2){super(![]),this['problem']=_0x8a2db2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x4fdf83){super(!![]),this['account']=_0x4fdf83;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x5d838b){super(!![]),this['list']=_0x5d838b;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x1f33ed){super(!![]),this['list']=_0x1f33ed;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x112b19){super(![]),this['problem']=_0x112b19;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x3a730d){super(![]),this['problem']=_0x3a730d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x541dca){super(![]),this['problem']=_0x541dca;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x7aeee5){super(!![]),this['tokens']=_0x7aeee5;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x25e128){super(![]),this['problem']=_0x25e128;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x2960d5){super(!![]),this['apiKey']=_0x2960d5;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x352a0b){super(![]),this['problem']=_0x352a0b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x25d99d){super(!![]),this['searchService']=_0x25d99d;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x2954aa){super(![]),this['problem']=_0x2954aa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x47658b){super(!![]),this['searchService']=_0x47658b;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x225b75){super(!![]),this['searchResult']=_0x225b75;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x511fde){super(![]),this['problem']=_0x511fde;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x48391d){super(!![]),this['searchServices']=_0x48391d;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x4b94bc){super(![]),this['problem']=_0x4b94bc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x32c00b){super(![]),this['problem']=_0x32c00b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x84f04e){super(!![]),this['apiKeyValue']=_0x84f04e;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x2d717d){super(!![]),this['obj']=_0x2d717d;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x34b661){super(![]),this['problem']=_0x34b661;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x34c99f){super(![]),this['problem']=_0x34c99f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x367294,_0x435e56,_0x3c3981,_0x1b0e71){function _0x15bce1(_0x1d35b4){return _0x1d35b4 instanceof _0x3c3981?_0x1d35b4:new _0x3c3981(function(_0x100e89){_0x100e89(_0x1d35b4);});}return new(_0x3c3981||(_0x3c3981=Promise))(function(_0x5a070a,_0x4f4b33){function _0x1e9ba4(_0x26721e){try{_0x2851db(_0x1b0e71['next'](_0x26721e));}catch(_0x4eea71){_0x4f4b33(_0x4eea71);}}function _0x13966a(_0x53fcbf){try{_0x2851db(_0x1b0e71['throw'](_0x53fcbf));}catch(_0x5d670b){_0x4f4b33(_0x5d670b);}}function _0x2851db(_0x4f123c){_0x4f123c['done']?_0x5a070a(_0x4f123c['value']):_0x15bce1(_0x4f123c['value'])['then'](_0x1e9ba4,_0x13966a);}_0x2851db((_0x1b0e71=_0x1b0e71['apply'](_0x367294,_0x435e56||[]))['next']());});};class AccountService{constructor(_0x4a5af7){this['fetch']=_0x4a5af7;}['get'](_0x49042a,_0x21c7c7){return __awaiter$7(this,void 0,void 0,function*(){const _0x95f680='Account/'+_0x49042a+'/',_0x451240=yield this['fetch']['get'](_0x95f680,_0x21c7c7);try{if(_0x451240['status']>0xc7&&_0x451240['status']<0x12c){const _0x211b2e=yield _0x451240['json']();return new SuccessfulAccountResponse(_0x211b2e);}const _0x1d90fa=yield _0x451240['json']();return new FailedAccountResponse(_0x1d90fa);}catch(_0x3d63da){if(_0x3d63da instanceof Error)return new FailedAccountResponse({'detail':_0x3d63da['message'],'title':_0x3d63da['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d63da;}});}}
4
+
5
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x3c7f84,_0xc6a928,_0x5b4679,_0x40a5f6){function _0x580ebd(_0x34640d){return _0x34640d instanceof _0x5b4679?_0x34640d:new _0x5b4679(function(_0x3618dc){_0x3618dc(_0x34640d);});}return new(_0x5b4679||(_0x5b4679=Promise))(function(_0x530764,_0x144e3){function _0x23bea7(_0x26bbc1){try{_0xe6115c(_0x40a5f6['next'](_0x26bbc1));}catch(_0x56415b){_0x144e3(_0x56415b);}}function _0x368b1d(_0x5d5ea6){try{_0xe6115c(_0x40a5f6['throw'](_0x5d5ea6));}catch(_0xd74aee){_0x144e3(_0xd74aee);}}function _0xe6115c(_0x1ee64e){_0x1ee64e['done']?_0x530764(_0x1ee64e['value']):_0x580ebd(_0x1ee64e['value'])['then'](_0x23bea7,_0x368b1d);}_0xe6115c((_0x40a5f6=_0x40a5f6['apply'](_0x3c7f84,_0xc6a928||[]))['next']());});};class ApiKeyService{constructor(_0x4bf3c4){this['fetch']=_0x4bf3c4,this['path']='api-key';}['create'](_0x2440c9,_0x22df84,_0x5c6a71){return __awaiter$6(this,void 0,void 0,function*(){const _0x2a436d={'account_name':_0x2440c9,'api_key_name':_0x22df84};try{const _0x573fb8=yield this['fetch']['post'](this['path'],_0x5c6a71,_0x2a436d);if(_0x573fb8['status']>0xc7&&_0x573fb8['status']<0x12c){const _0x13aeee=yield _0x573fb8['json']();return new SuccessfulApiKeyResponse(_0x13aeee);}const _0x28dad5=yield _0x573fb8['json']();return new FailedApiKeyResponse(_0x28dad5);}catch(_0x7168ee){if(_0x7168ee instanceof Error)return new FailedApiKeyResponse({'detail':_0x7168ee['message'],'title':_0x7168ee['name'],'status':0x1f4,'instance':'','type':''});throw _0x7168ee;}});}['view'](_0x4b5d75,_0x22cd0f,_0x55ec57){return __awaiter$6(this,void 0,void 0,function*(){const _0x1202ba=this['path']+'/'+_0x4b5d75+'/'+_0x22cd0f;try{const _0x3a0910=yield this['fetch']['get'](_0x1202ba,_0x55ec57);if(_0x3a0910['status']>0xc7&&_0x3a0910['status']<0x12c){const _0x391858=yield _0x3a0910['json']();return new SuccessfulApiKeyValueResponse(_0x391858);}const _0x437a69=yield _0x3a0910['json']();return new FailedApiKeyValueResponse(_0x437a69);}catch(_0x10850c){if(_0x10850c instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x10850c['message'],'title':_0x10850c['name'],'status':0x1f4,'instance':'','type':''});throw _0x10850c;}});}['delete'](_0x55e44d,_0x4307d2,_0x5b6293){return __awaiter$6(this,void 0,void 0,function*(){const _0x18b38c=this['path']+'/'+_0x55e44d+'/'+_0x4307d2;try{const _0x340d18=yield this['fetch']['delete'](_0x18b38c,_0x5b6293);if(_0x340d18['status']>0xc7&&_0x340d18['status']<0x12c)return new SuccessfulResponse({});const _0x17ff1b=yield _0x340d18['json']();return new FailedResponse(_0x17ff1b);}catch(_0x9dd422){if(_0x9dd422 instanceof Error)return new FailedResponse({'detail':_0x9dd422['message'],'title':_0x9dd422['name'],'status':0x1f4,'instance':'','type':''});throw _0x9dd422;}});}}
6
+
7
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x4c7a98,_0x13d031,_0xfe2fdd,_0x32e63e){function _0x1bed1f(_0x22ef0f){return _0x22ef0f instanceof _0xfe2fdd?_0x22ef0f:new _0xfe2fdd(function(_0x45420e){_0x45420e(_0x22ef0f);});}return new(_0xfe2fdd||(_0xfe2fdd=Promise))(function(_0x1fd37f,_0x5ba4a6){function _0x162c91(_0x483824){try{_0x3e9743(_0x32e63e['next'](_0x483824));}catch(_0x2a91a5){_0x5ba4a6(_0x2a91a5);}}function _0x4c799e(_0xdad047){try{_0x3e9743(_0x32e63e['throw'](_0xdad047));}catch(_0x54a27a){_0x5ba4a6(_0x54a27a);}}function _0x3e9743(_0x2fcebd){_0x2fcebd['done']?_0x1fd37f(_0x2fcebd['value']):_0x1bed1f(_0x2fcebd['value'])['then'](_0x162c91,_0x4c799e);}_0x3e9743((_0x32e63e=_0x32e63e['apply'](_0x4c7a98,_0x13d031||[]))['next']());});};class ListService{constructor(_0x29790f){this['fetch']=_0x29790f;}['create'](_0x713a9c,_0x4f100d,_0x403eac,_0x374065){return __awaiter$5(this,void 0,void 0,function*(){const _0x463848='List',_0x469858={'account_name':_0x713a9c,'list_name':_0x4f100d,'search_service_name':_0x403eac};try{const _0x51fc5c=yield this['fetch']['post'](_0x463848,_0x374065,_0x469858);if(_0x51fc5c['status']>0xc7&&_0x51fc5c['status']<0x12c){const _0x2cd084=yield _0x51fc5c['json']();return new SuccessfulListIdentityResponse(_0x2cd084);}const _0x3f557a=yield _0x51fc5c['json']();return new FailedListIdentityResponse(_0x3f557a);}catch(_0x2bea7b){if(_0x2bea7b instanceof Error)return new FailedListIdentityResponse({'detail':_0x2bea7b['message'],'title':_0x2bea7b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2bea7b;}});}['delete'](_0x2556e7,_0x1d55f5,_0x17c346){return __awaiter$5(this,void 0,void 0,function*(){const _0x9ced66='List/'+_0x2556e7+'/'+_0x1d55f5,_0x4a3eab=yield this['fetch']['delete'](_0x9ced66,_0x17c346);try{if(_0x4a3eab['status']>0xc7&&_0x4a3eab['status']<0x12c)return new SuccessfulResponse({});const _0x485cbf=yield _0x4a3eab['json']();return new FailedResponse(_0x485cbf);}catch(_0x4dd70e){if(_0x4dd70e instanceof Error)return new FailedResponse({'detail':_0x4dd70e['message'],'title':_0x4dd70e['name'],'status':0x1f4,'instance':'','type':''});throw _0x4dd70e;}});}['get'](_0x1ec48a,_0x96bcd9,_0x55a48c){return __awaiter$5(this,void 0,void 0,function*(){const _0x13820b='List/'+_0x1ec48a+'/'+_0x96bcd9;try{const _0x59e071=yield this['fetch']['get'](_0x13820b,_0x55a48c);if(_0x59e071['status']>0xc7&&_0x59e071['status']<0x12c){const _0x24259c=yield _0x59e071['json']();return new SuccessfulListResponse(_0x24259c);}const _0x395c69=yield _0x59e071['json']();return new FailedListResponse(_0x395c69);}catch(_0x4cea6f){if(_0x4cea6f instanceof Error)return new FailedListResponse({'detail':_0x4cea6f['message'],'title':_0x4cea6f['name'],'status':0x1f4,'instance':'','type':''});throw _0x4cea6f;}});}}
8
+
9
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x548bf3,_0x47d6a8,_0x1dd108,_0x51d001){function _0x3960a4(_0x10aeab){return _0x10aeab instanceof _0x1dd108?_0x10aeab:new _0x1dd108(function(_0x55c5fa){_0x55c5fa(_0x10aeab);});}return new(_0x1dd108||(_0x1dd108=Promise))(function(_0x7f950b,_0x45e141){function _0x1bc649(_0x5c9461){try{_0x2bcfbf(_0x51d001['next'](_0x5c9461));}catch(_0x4317d4){_0x45e141(_0x4317d4);}}function _0x374ecb(_0x2f0a01){try{_0x2bcfbf(_0x51d001['throw'](_0x2f0a01));}catch(_0x105364){_0x45e141(_0x105364);}}function _0x2bcfbf(_0xf8707a){_0xf8707a['done']?_0x7f950b(_0xf8707a['value']):_0x3960a4(_0xf8707a['value'])['then'](_0x1bc649,_0x374ecb);}_0x2bcfbf((_0x51d001=_0x51d001['apply'](_0x548bf3,_0x47d6a8||[]))['next']());});};class Fetch{constructor(_0x353eca){this['baseUri']=_0x353eca,this['getUrl']=_0x5b47fb=>{return _0x5b47fb['startsWith']('/')&&(_0x5b47fb=_0x5b47fb['replace']('/','')),''+this['baseUri']+_0x5b47fb;},!_0x353eca['endsWith']('/')&&(_0x353eca=_0x353eca+'/');}['get'](_0x22859a,_0x3945fd){return __awaiter$4(this,void 0,void 0,function*(){const _0x3351e3=this['getUrl'](_0x22859a);return yield fetch(_0x3351e3,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3945fd}});});}['post'](_0x2ec6c4,_0x3d345a,_0x18b1e1){return __awaiter$4(this,void 0,void 0,function*(){const _0x508d47=this['getUrl'](_0x2ec6c4);return yield fetch(_0x508d47,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3d345a},'body':_0x18b1e1?JSON['stringify'](_0x18b1e1):null});});}['PostNoAuth'](_0xa1badf,_0x39b468){return __awaiter$4(this,void 0,void 0,function*(){const _0x239514=this['getUrl'](_0xa1badf);return yield fetch(_0x239514,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x39b468?JSON['stringify'](_0x39b468):null});});}['put'](_0x15d4c6,_0x159614,_0x540256){return __awaiter$4(this,void 0,void 0,function*(){const _0x2b68bf=this['getUrl'](_0x15d4c6);return yield fetch(_0x2b68bf,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x159614},'body':_0x540256?JSON['stringify'](_0x540256):null});});}['delete'](_0x27c0a0,_0x20cb0){return __awaiter$4(this,void 0,void 0,function*(){const _0x3ea83b=this['getUrl'](_0x27c0a0);return yield fetch(_0x3ea83b,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x20cb0}});});}}
10
+
11
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x2f019f,_0x29f123,_0x203a41,_0x3c2759){function _0x20c119(_0x15e99d){return _0x15e99d instanceof _0x203a41?_0x15e99d:new _0x203a41(function(_0x1f8356){_0x1f8356(_0x15e99d);});}return new(_0x203a41||(_0x203a41=Promise))(function(_0x4aac03,_0x590465){function _0x19efd3(_0x18e15c){try{_0x124604(_0x3c2759['next'](_0x18e15c));}catch(_0x360870){_0x590465(_0x360870);}}function _0x4f2d56(_0x3b2db0){try{_0x124604(_0x3c2759['throw'](_0x3b2db0));}catch(_0x1dd513){_0x590465(_0x1dd513);}}function _0x124604(_0x10b9c3){_0x10b9c3['done']?_0x4aac03(_0x10b9c3['value']):_0x20c119(_0x10b9c3['value'])['then'](_0x19efd3,_0x4f2d56);}_0x124604((_0x3c2759=_0x3c2759['apply'](_0x2f019f,_0x29f123||[]))['next']());});};class SearchServersService{constructor(_0x3b3a5b){this['fetch']=_0x3b3a5b,this['path']='search-services';}['create'](_0x563554,_0x1b7aec,_0x5af26a,_0x50ce94,_0x343470,_0x30279e,_0xb9ece8,_0x1a922c){return __awaiter$3(this,void 0,void 0,function*(){const _0x2ecd28={'account_name':_0x563554,'search_service_name':_0x1b7aec,'endpoint':_0x5af26a,'key':_0x50ce94,'country':_0x343470,'provider':_0x30279e,'index_name':_0xb9ece8};try{const _0x1a3fdc=yield this['fetch']['post'](this['path'],_0x1a922c,_0x2ecd28);if(_0x1a3fdc['status']>0xc7&&_0x1a3fdc['status']<0x12c){const _0x1be0ea=yield _0x1a3fdc['json']();return new SuccessfulSearchServiceResponse(_0x1be0ea);}const _0x86e250=yield _0x1a3fdc['json']();return new FailedSearchServiceResponse(_0x86e250);}catch(_0x17cdcf){if(_0x17cdcf instanceof Error)return new FailedSearchServiceResponse({'detail':_0x17cdcf['message'],'title':_0x17cdcf['name'],'status':0x1f4,'instance':'','type':''});throw _0x17cdcf;}});}['delete'](_0x4a85cd,_0x2d7bd5,_0x4347f9){return __awaiter$3(this,void 0,void 0,function*(){const _0x1af9e3=this['path']+'/'+_0x4a85cd+'/'+_0x2d7bd5;try{const _0x5579a9=yield this['fetch']['delete'](_0x1af9e3,_0x4347f9);if(_0x5579a9['status']>0xc7&&_0x5579a9['status']<0x12c)return new SuccessfulResponse({});const _0xaf7c3c=yield _0x5579a9['json']();return new FailedResponse(_0xaf7c3c);}catch(_0x2c6601){if(_0x2c6601 instanceof Error)return new FailedResponse({'detail':_0x2c6601['message'],'title':_0x2c6601['name'],'status':0x1f4,'instance':'','type':''});throw _0x2c6601;}});}['view'](_0x8fc898,_0x54ba14,_0x50314a){return __awaiter$3(this,void 0,void 0,function*(){const _0x3c11ea=this['path']+'/'+_0x8fc898+'/'+_0x54ba14;try{const _0x31b2d0=yield this['fetch']['get'](_0x3c11ea,_0x50314a);if(_0x31b2d0['status']>0xc7&&_0x31b2d0['status']<0x12c){const _0x1dabf5=yield _0x31b2d0['json']();return new SuccessfulViewSearchServiceResponse(_0x1dabf5);}const _0x4c84c8=yield _0x31b2d0['json']();return new FailedViewSearchServiceResponse(_0x4c84c8);}catch(_0x10dc39){if(_0x10dc39 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x10dc39['message'],'title':_0x10dc39['name'],'status':0x1f4,'instance':'','type':''});throw _0x10dc39;}});}['edit'](_0x324f0f,_0x225fe2,_0x5335cf,_0xb4f491,_0xe0ddea,_0x4d932f){return __awaiter$3(this,void 0,void 0,function*(){const _0x28e1b8={'account_name':_0x324f0f,'search_service_name':_0x225fe2,'new_search_service_name':_0x5335cf,'key':_0xb4f491,'country':_0xe0ddea};try{const _0x1d6efb=yield this['fetch']['put'](this['path'],_0x4d932f,_0x28e1b8);if(_0x1d6efb['status']>0xc7&&_0x1d6efb['status']<0x12c){const _0x229e7c=yield _0x1d6efb['json']();return new SuccessfulSearchServiceResponse(_0x229e7c);}const _0x59afe4=yield _0x1d6efb['json']();return new FailedSearchServiceResponse(_0x59afe4);}catch(_0x50a365){if(_0x50a365 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x50a365['message'],'title':_0x50a365['name'],'status':0x1f4,'instance':'','type':''});throw _0x50a365;}});}['list'](_0x3a64c8,_0x4f1927){return __awaiter$3(this,void 0,void 0,function*(){const _0x17bbc9=this['path']+'/'+_0x3a64c8;try{const _0x2652bb=yield this['fetch']['get'](_0x17bbc9,_0x4f1927);if(_0x2652bb['status']>0xc7&&_0x2652bb['status']<0x12c){const _0x37ed50=yield _0x2652bb['json']();return new SuccessfulListSearchServiceResponse(_0x37ed50);}const _0x2c66a7=yield _0x2652bb['json']();return new FailedViewSearchServicesResponse(_0x2c66a7);}catch(_0x317775){if(_0x317775 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x317775['message'],'title':_0x317775['name'],'status':0x1f4,'instance':'','type':''});throw _0x317775;}});}}
12
+
13
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x28f522,_0x51bc62,_0x18a54f,_0x34135e){function _0x5524c7(_0x2b65e8){return _0x2b65e8 instanceof _0x18a54f?_0x2b65e8:new _0x18a54f(function(_0xf7ab5){_0xf7ab5(_0x2b65e8);});}return new(_0x18a54f||(_0x18a54f=Promise))(function(_0x9f77d0,_0x3d0ea1){function _0x3a3ffc(_0x28d9a3){try{_0x4b7f5d(_0x34135e['next'](_0x28d9a3));}catch(_0x22f50e){_0x3d0ea1(_0x22f50e);}}function _0x161fd1(_0x555e6f){try{_0x4b7f5d(_0x34135e['throw'](_0x555e6f));}catch(_0x310432){_0x3d0ea1(_0x310432);}}function _0x4b7f5d(_0x12cde0){_0x12cde0['done']?_0x9f77d0(_0x12cde0['value']):_0x5524c7(_0x12cde0['value'])['then'](_0x3a3ffc,_0x161fd1);}_0x4b7f5d((_0x34135e=_0x34135e['apply'](_0x28f522,_0x51bc62||[]))['next']());});};class FacetService{constructor(_0x31c866){this['fetch']=_0x31c866,this['path']='facet';}['create'](_0x57307c,_0x24ce47,_0x460a3f,_0x1727aa){return __awaiter$2(this,void 0,void 0,function*(){const _0x226bc5={'account_name':_0x57307c,'list_name':_0x24ce47,'facet_name':_0x460a3f};try{const _0x4b995d=yield this['fetch']['post'](this['path'],_0x1727aa,_0x226bc5);if(_0x4b995d['status']>0xc7&&_0x4b995d['status']<0x12c){const _0x5ea041=yield _0x4b995d['json']();return new SuccessfulFacetResponse(_0x5ea041);}const _0x4b521e=yield _0x4b995d['json']();return new FailedFacetResponse(_0x4b521e);}catch(_0xfe2ba6){if(_0xfe2ba6 instanceof Error)return new FailedFacetResponse({'detail':_0xfe2ba6['message'],'title':_0xfe2ba6['name'],'status':0x1f4,'instance':'','type':''});throw _0xfe2ba6;}});}['remove'](_0x50c9c7,_0x42eea6,_0x5c6163,_0x1bd706){return __awaiter$2(this,void 0,void 0,function*(){const _0x39852c='Facet/'+_0x50c9c7+'/'+_0x42eea6+'/'+_0x5c6163,_0x1e4da1=yield this['fetch']['delete'](_0x39852c,_0x1bd706);try{if(_0x1e4da1['status']>0xc7&&_0x1e4da1['status']<0x12c)return new SuccessfulResponse({});const _0x2c6b16=yield _0x1e4da1['json']();return new FailedResponse(_0x2c6b16);}catch(_0x594ff7){if(_0x594ff7 instanceof Error)return new FailedResponse({'detail':_0x594ff7['message'],'title':_0x594ff7['name'],'status':0x1f4,'instance':'','type':''});throw _0x594ff7;}});}['rename'](_0xbe12a2,_0x26309c,_0x407566,_0x540095,_0x2c2d8d){return __awaiter$2(this,void 0,void 0,function*(){const _0x434511={'account_name':_0xbe12a2,'list_name':_0x26309c,'facet_name':_0x407566,'new_facet_name':_0x540095};try{const _0x2c5ee3=yield this['fetch']['put'](this['path'],_0x2c2d8d,_0x434511);if(_0x2c5ee3['status']>0xc7&&_0x2c5ee3['status']<0x12c){const _0x411abd=yield _0x2c5ee3['json']();return new SuccessfulFacetResponse(_0x411abd);}const _0x14e733=yield _0x2c5ee3['json']();return new FailedFacetResponse(_0x14e733);}catch(_0x15a110){if(_0x15a110 instanceof Error)return new FailedFacetResponse({'detail':_0x15a110['message'],'title':_0x15a110['name'],'status':0x1f4,'instance':'','type':''});throw _0x15a110;}});}}
14
+
15
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x28b48d,_0x351ec0,_0x1ac756,_0x1790cd){function _0x3cffa9(_0x163ed7){return _0x163ed7 instanceof _0x1ac756?_0x163ed7:new _0x1ac756(function(_0x12438d){_0x12438d(_0x163ed7);});}return new(_0x1ac756||(_0x1ac756=Promise))(function(_0x435e36,_0x3123d4){function _0x95d1cb(_0x5b23df){try{_0x4f22ca(_0x1790cd['next'](_0x5b23df));}catch(_0x5a178a){_0x3123d4(_0x5a178a);}}function _0x18d787(_0x5de4e3){try{_0x4f22ca(_0x1790cd['throw'](_0x5de4e3));}catch(_0x973c4d){_0x3123d4(_0x973c4d);}}function _0x4f22ca(_0x4aae56){_0x4aae56['done']?_0x435e36(_0x4aae56['value']):_0x3cffa9(_0x4aae56['value'])['then'](_0x95d1cb,_0x18d787);}_0x4f22ca((_0x1790cd=_0x1790cd['apply'](_0x28b48d,_0x351ec0||[]))['next']());});};class SearchResultService{constructor(_0x39d960){this['fetch']=_0x39d960,this['path']='search-result';}['create'](_0x581733,_0x3900de,_0x3931b3,_0x1d3ca0,_0x52119e){return __awaiter$1(this,void 0,void 0,function*(){_0x52119e=_0x52119e!==null&&_0x52119e!==void 0?_0x52119e:{'description':'','keywords':'','resource_1':'','resource_2':'','resource_3':'','latitude':0x0,'longitude':0x0,'facets':new Map()};const _0x36b90f=Object['assign']({'account_name':_0x581733,'search_result_name':_0x3931b3,'list_name':_0x3900de},_0x52119e);try{const _0x4d1a6c=yield this['fetch']['post'](this['path'],_0x1d3ca0,_0x36b90f);if(_0x4d1a6c['status']>0xc7&&_0x4d1a6c['status']<0x12c){const _0x330955=yield _0x4d1a6c['json']();return new SuccessfulViewSearchResultResponse(_0x330955);}const _0x36955f=yield _0x4d1a6c['json']();return new FailedSearchResultResponse(_0x36955f);}catch(_0x1b5d45){if(_0x1b5d45 instanceof Error)return new FailedSearchResultResponse({'detail':_0x1b5d45['message'],'title':_0x1b5d45['name'],'status':0x1f4,'instance':'','type':''});throw _0x1b5d45;}});}}
16
+
17
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x3c10dd,_0xc39568,_0xd590c0,_0x3265a3){function _0x26f995(_0x242495){return _0x242495 instanceof _0xd590c0?_0x242495:new _0xd590c0(function(_0x272d66){_0x272d66(_0x242495);});}return new(_0xd590c0||(_0xd590c0=Promise))(function(_0x16a258,_0x39fcb5){function _0x29f1d1(_0x4a2cb5){try{_0x37298d(_0x3265a3['next'](_0x4a2cb5));}catch(_0x2f9c82){_0x39fcb5(_0x2f9c82);}}function _0x1ae650(_0x308df4){try{_0x37298d(_0x3265a3['throw'](_0x308df4));}catch(_0x539ba4){_0x39fcb5(_0x539ba4);}}function _0x37298d(_0x80eb64){_0x80eb64['done']?_0x16a258(_0x80eb64['value']):_0x26f995(_0x80eb64['value'])['then'](_0x29f1d1,_0x1ae650);}_0x37298d((_0x3265a3=_0x3265a3['apply'](_0x3c10dd,_0xc39568||[]))['next']());});};class AdminClient{constructor(_0x2675a7='https://admin.searchability.dev/'){var _0x35abf5=new Fetch(_0x2675a7);this['Accounts']=new AccountService(_0x35abf5),this['Lists']=new ListService(_0x35abf5),this['ApiKeys']=new ApiKeyService(_0x35abf5),this['SearchServices']=new SearchServersService(_0x35abf5),this['FacetService']=new FacetService(_0x35abf5),this['SearchResults']=new SearchResultService(_0x35abf5);}}class AuthClient{constructor(_0x1314e2='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1314e2);}['login'](_0x1ca937){return __awaiter(this,void 0,void 0,function*(){const _0xad06c4='login/'+_0x1ca937;try{const _0x5c9749=yield yield fetch(_0xad06c4);if(_0x5c9749['status']>0xc7&&_0x5c9749['status']<0x12c){const _0xc54b24=yield _0x5c9749['json']();return new SuccessfulAuthResponse(_0xc54b24);}const _0x1fcec7=yield _0x5c9749['json']();return new FailedAuthResponse(_0x1fcec7);}catch(_0x20c5a5){if(_0x20c5a5 instanceof Error)return new FailedAuthResponse({'detail':_0x20c5a5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x20c5a5;}});}['refresh'](_0x457b9f){return __awaiter(this,void 0,void 0,function*(){const _0x5ce55b='refresh',_0x235a8e={'refresh_token':_0x457b9f};try{const _0x1c35b3=yield this['fetch']['PostNoAuth'](_0x5ce55b,_0x235a8e);if(_0x1c35b3['status']>0xc7&&_0x1c35b3['status']<0x12c){const _0x200c96=yield _0x1c35b3['json']();return new SuccessfulAuthResponse(_0x200c96);}const _0x2bd86b=yield _0x1c35b3['json']();return new FailedAuthResponse(_0x2bd86b);}catch(_0x5f0e25){if(_0x5f0e25 instanceof Error)return new FailedAuthResponse({'detail':_0x5f0e25['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5f0e25;}});}['getTokenStatus'](_0x159839){if(Date['now']()<_0x159839['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x159839['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
18
+
19
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,20 +1,22 @@
1
1
  'use strict';
2
2
 
3
- exports.TokenStatus = void 0;(function(_0x3f9a25){_0x3f9a25[_0x3f9a25['Ok']=0x0]='Ok',_0x3f9a25[_0x3f9a25['Refresh']=0x1]='Refresh',_0x3f9a25[_0x3f9a25['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(_0x4fd303){this['isSuccess']=_0x4fd303;}}class SuccessfulFacetResponse extends Response{constructor(_0x32ffb5){super(!![]),this['facet']=_0x32ffb5;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x3f94f1){super(![]),this['problem']=_0x3f94f1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x558998){super(!![]),this['account']=_0x558998;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x4882ee){super(!![]),this['list']=_0x4882ee;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x1be8ac){super(!![]),this['list']=_0x1be8ac;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x2208fc){super(![]),this['problem']=_0x2208fc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x16c9e1){super(![]),this['problem']=_0x16c9e1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x1a8e09){super(![]),this['problem']=_0x1a8e09;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x221c62){super(!![]),this['tokens']=_0x221c62;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x29a8ff){super(![]),this['problem']=_0x29a8ff;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x53c4b9){super(!![]),this['apiKey']=_0x53c4b9;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x19d242){super(![]),this['problem']=_0x19d242;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x449a9a){super(!![]),this['searchService']=_0x449a9a;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x47ee53){super(![]),this['problem']=_0x47ee53;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x19416d){super(!![]),this['searchService']=_0x19416d;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x47511e){super(!![]),this['searchServices']=_0x47511e;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0xb03644){super(![]),this['problem']=_0xb03644;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x4e8a8d){super(![]),this['problem']=_0x4e8a8d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x4d5659){super(!![]),this['apiKeyValue']=_0x4d5659;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x3b032c){super(!![]),this['obj']=_0x3b032c;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x2dedef){super(![]),this['problem']=_0x2dedef;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x5f284f){super(![]),this['problem']=_0x5f284f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x46c63d){_0x46c63d[_0x46c63d['Ok']=0x0]='Ok',_0x46c63d[_0x46c63d['Refresh']=0x1]='Refresh',_0x46c63d[_0x46c63d['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(_0x2d47b4){this['isSuccess']=_0x2d47b4;}}class SuccessfulFacetResponse extends Response{constructor(_0x3ff4f9){super(!![]),this['facet']=_0x3ff4f9;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x27168d){super(![]),this['problem']=_0x27168d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x1ce144){super(!![]),this['account']=_0x1ce144;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x3255cc){super(!![]),this['list']=_0x3255cc;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x25fd93){super(!![]),this['list']=_0x25fd93;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x59bbac){super(![]),this['problem']=_0x59bbac;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x4b9c64){super(![]),this['problem']=_0x4b9c64;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x5733ef){super(![]),this['problem']=_0x5733ef;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x16791a){super(!![]),this['tokens']=_0x16791a;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x31bee5){super(![]),this['problem']=_0x31bee5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x204659){super(!![]),this['apiKey']=_0x204659;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x412a39){super(![]),this['problem']=_0x412a39;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x43500e){super(!![]),this['searchService']=_0x43500e;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x275df6){super(![]),this['problem']=_0x275df6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x5b0e83){super(!![]),this['searchService']=_0x5b0e83;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x4552b5){super(!![]),this['searchResult']=_0x4552b5;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x216751){super(![]),this['problem']=_0x216751;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0xf9b1c5){super(!![]),this['searchServices']=_0xf9b1c5;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x24afb0){super(![]),this['problem']=_0x24afb0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x2b1cad){super(![]),this['problem']=_0x2b1cad;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x128475){super(!![]),this['apiKeyValue']=_0x128475;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x58a579){super(!![]),this['obj']=_0x58a579;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x586d02){super(![]),this['problem']=_0x586d02;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0xc1e800){super(![]),this['problem']=_0xc1e800;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x517b4b,_0x3ceca9,_0x52728a,_0x5505bb){function _0x445f64(_0x29a9cb){return _0x29a9cb instanceof _0x52728a?_0x29a9cb:new _0x52728a(function(_0x58ece5){_0x58ece5(_0x29a9cb);});}return new(_0x52728a||(_0x52728a=Promise))(function(_0x5caabb,_0x163507){function _0x2f4b07(_0x2be29a){try{_0xf1c5b7(_0x5505bb['next'](_0x2be29a));}catch(_0x49f9af){_0x163507(_0x49f9af);}}function _0x33e9df(_0x2f59d4){try{_0xf1c5b7(_0x5505bb['throw'](_0x2f59d4));}catch(_0x4d9cc7){_0x163507(_0x4d9cc7);}}function _0xf1c5b7(_0x2eb8df){_0x2eb8df['done']?_0x5caabb(_0x2eb8df['value']):_0x445f64(_0x2eb8df['value'])['then'](_0x2f4b07,_0x33e9df);}_0xf1c5b7((_0x5505bb=_0x5505bb['apply'](_0x517b4b,_0x3ceca9||[]))['next']());});};class AccountService{constructor(_0x5c2b36){this['fetch']=_0x5c2b36;}['get'](_0xba9acc,_0x2b77f6){return __awaiter$6(this,void 0,void 0,function*(){const _0x41bfa9='Account/'+_0xba9acc+'/',_0x17f87a=yield this['fetch']['get'](_0x41bfa9,_0x2b77f6);try{if(_0x17f87a['status']>0xc7&&_0x17f87a['status']<0x12c){const _0x35b97a=yield _0x17f87a['json']();return new SuccessfulAccountResponse(_0x35b97a);}const _0x32c3b2=yield _0x17f87a['json']();return new FailedAccountResponse(_0x32c3b2);}catch(_0x4a7071){if(_0x4a7071 instanceof Error)return new FailedAccountResponse({'detail':_0x4a7071['message'],'title':_0x4a7071['name'],'status':0x1f4,'instance':'','type':''});throw _0x4a7071;}});}}
5
+ var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x4c8017,_0x13b0b5,_0x5b1119,_0x58889e){function _0x29596e(_0x3a002b){return _0x3a002b instanceof _0x5b1119?_0x3a002b:new _0x5b1119(function(_0x1a5d15){_0x1a5d15(_0x3a002b);});}return new(_0x5b1119||(_0x5b1119=Promise))(function(_0x1f34db,_0x294808){function _0x17ee19(_0x237f5f){try{_0x366380(_0x58889e['next'](_0x237f5f));}catch(_0x2a9d57){_0x294808(_0x2a9d57);}}function _0x23b8ed(_0x758ffe){try{_0x366380(_0x58889e['throw'](_0x758ffe));}catch(_0x57b637){_0x294808(_0x57b637);}}function _0x366380(_0x1a9852){_0x1a9852['done']?_0x1f34db(_0x1a9852['value']):_0x29596e(_0x1a9852['value'])['then'](_0x17ee19,_0x23b8ed);}_0x366380((_0x58889e=_0x58889e['apply'](_0x4c8017,_0x13b0b5||[]))['next']());});};class AccountService{constructor(_0x3ee8e8){this['fetch']=_0x3ee8e8;}['get'](_0x49b47f,_0x5a22d1){return __awaiter$7(this,void 0,void 0,function*(){const _0x9cd5b3='Account/'+_0x49b47f+'/',_0x4c952c=yield this['fetch']['get'](_0x9cd5b3,_0x5a22d1);try{if(_0x4c952c['status']>0xc7&&_0x4c952c['status']<0x12c){const _0x40cdd1=yield _0x4c952c['json']();return new SuccessfulAccountResponse(_0x40cdd1);}const _0x3db4aa=yield _0x4c952c['json']();return new FailedAccountResponse(_0x3db4aa);}catch(_0x2f3c2b){if(_0x2f3c2b instanceof Error)return new FailedAccountResponse({'detail':_0x2f3c2b['message'],'title':_0x2f3c2b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2f3c2b;}});}}
6
6
 
7
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x420381,_0x2f3978,_0x170f15,_0x4b7e21){function _0x422285(_0x3c7cda){return _0x3c7cda instanceof _0x170f15?_0x3c7cda:new _0x170f15(function(_0x2d1a5f){_0x2d1a5f(_0x3c7cda);});}return new(_0x170f15||(_0x170f15=Promise))(function(_0x1b3073,_0x21d61e){function _0x55970b(_0x2e4615){try{_0x580279(_0x4b7e21['next'](_0x2e4615));}catch(_0x5485ad){_0x21d61e(_0x5485ad);}}function _0x2cdc06(_0x23bad3){try{_0x580279(_0x4b7e21['throw'](_0x23bad3));}catch(_0x50a408){_0x21d61e(_0x50a408);}}function _0x580279(_0x5f440e){_0x5f440e['done']?_0x1b3073(_0x5f440e['value']):_0x422285(_0x5f440e['value'])['then'](_0x55970b,_0x2cdc06);}_0x580279((_0x4b7e21=_0x4b7e21['apply'](_0x420381,_0x2f3978||[]))['next']());});};class ApiKeyService{constructor(_0x3e9676){this['fetch']=_0x3e9676,this['path']='api-key';}['create'](_0x18771a,_0xff0623,_0x49b09c){return __awaiter$5(this,void 0,void 0,function*(){const _0x47ce49={'account_name':_0x18771a,'api_key_name':_0xff0623};try{const _0xf198c8=yield this['fetch']['post'](this['path'],_0x49b09c,_0x47ce49);if(_0xf198c8['status']>0xc7&&_0xf198c8['status']<0x12c){const _0x413315=yield _0xf198c8['json']();return new SuccessfulApiKeyResponse(_0x413315);}const _0x4f1d8e=yield _0xf198c8['json']();return new FailedApiKeyResponse(_0x4f1d8e);}catch(_0x1867b3){if(_0x1867b3 instanceof Error)return new FailedApiKeyResponse({'detail':_0x1867b3['message'],'title':_0x1867b3['name'],'status':0x1f4,'instance':'','type':''});throw _0x1867b3;}});}['view'](_0x472bb6,_0xb52e8f,_0x30ad4a){return __awaiter$5(this,void 0,void 0,function*(){const _0x13847b=this['path']+'/'+_0x472bb6+'/'+_0xb52e8f;try{const _0x5c1651=yield this['fetch']['get'](_0x13847b,_0x30ad4a);if(_0x5c1651['status']>0xc7&&_0x5c1651['status']<0x12c){const _0x2538f6=yield _0x5c1651['json']();return new SuccessfulApiKeyValueResponse(_0x2538f6);}const _0x1baeea=yield _0x5c1651['json']();return new FailedApiKeyValueResponse(_0x1baeea);}catch(_0x38e079){if(_0x38e079 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x38e079['message'],'title':_0x38e079['name'],'status':0x1f4,'instance':'','type':''});throw _0x38e079;}});}['delete'](_0x45b2b1,_0x32ffcb,_0x5337a4){return __awaiter$5(this,void 0,void 0,function*(){const _0x3d53a7=this['path']+'/'+_0x45b2b1+'/'+_0x32ffcb;try{const _0x5b2788=yield this['fetch']['delete'](_0x3d53a7,_0x5337a4);if(_0x5b2788['status']>0xc7&&_0x5b2788['status']<0x12c)return new SuccessfulResponse({});const _0x49a1fc=yield _0x5b2788['json']();return new FailedResponse(_0x49a1fc);}catch(_0x4b502b){if(_0x4b502b instanceof Error)return new FailedResponse({'detail':_0x4b502b['message'],'title':_0x4b502b['name'],'status':0x1f4,'instance':'','type':''});throw _0x4b502b;}});}}
7
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x214af3,_0x3423b5,_0x43b225,_0x2466ec){function _0x445180(_0x18f2b6){return _0x18f2b6 instanceof _0x43b225?_0x18f2b6:new _0x43b225(function(_0x18e3c1){_0x18e3c1(_0x18f2b6);});}return new(_0x43b225||(_0x43b225=Promise))(function(_0x924235,_0x241636){function _0x15e880(_0xaf27ab){try{_0x1f1001(_0x2466ec['next'](_0xaf27ab));}catch(_0x2d6b42){_0x241636(_0x2d6b42);}}function _0x4f695b(_0x1d97d1){try{_0x1f1001(_0x2466ec['throw'](_0x1d97d1));}catch(_0x205b9a){_0x241636(_0x205b9a);}}function _0x1f1001(_0x576150){_0x576150['done']?_0x924235(_0x576150['value']):_0x445180(_0x576150['value'])['then'](_0x15e880,_0x4f695b);}_0x1f1001((_0x2466ec=_0x2466ec['apply'](_0x214af3,_0x3423b5||[]))['next']());});};class ApiKeyService{constructor(_0x4065c7){this['fetch']=_0x4065c7,this['path']='api-key';}['create'](_0xacc1f7,_0x171ae0,_0x34521b){return __awaiter$6(this,void 0,void 0,function*(){const _0xf46080={'account_name':_0xacc1f7,'api_key_name':_0x171ae0};try{const _0x4a0a2c=yield this['fetch']['post'](this['path'],_0x34521b,_0xf46080);if(_0x4a0a2c['status']>0xc7&&_0x4a0a2c['status']<0x12c){const _0x50994b=yield _0x4a0a2c['json']();return new SuccessfulApiKeyResponse(_0x50994b);}const _0x172a69=yield _0x4a0a2c['json']();return new FailedApiKeyResponse(_0x172a69);}catch(_0x3ecd21){if(_0x3ecd21 instanceof Error)return new FailedApiKeyResponse({'detail':_0x3ecd21['message'],'title':_0x3ecd21['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ecd21;}});}['view'](_0x2b82d7,_0x153e4c,_0x1ca5e9){return __awaiter$6(this,void 0,void 0,function*(){const _0x15b2ac=this['path']+'/'+_0x2b82d7+'/'+_0x153e4c;try{const _0x50da70=yield this['fetch']['get'](_0x15b2ac,_0x1ca5e9);if(_0x50da70['status']>0xc7&&_0x50da70['status']<0x12c){const _0x21461c=yield _0x50da70['json']();return new SuccessfulApiKeyValueResponse(_0x21461c);}const _0x27b10f=yield _0x50da70['json']();return new FailedApiKeyValueResponse(_0x27b10f);}catch(_0x308a7f){if(_0x308a7f instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x308a7f['message'],'title':_0x308a7f['name'],'status':0x1f4,'instance':'','type':''});throw _0x308a7f;}});}['delete'](_0x26a23a,_0x32423f,_0x331106){return __awaiter$6(this,void 0,void 0,function*(){const _0x80ab40=this['path']+'/'+_0x26a23a+'/'+_0x32423f;try{const _0x24075a=yield this['fetch']['delete'](_0x80ab40,_0x331106);if(_0x24075a['status']>0xc7&&_0x24075a['status']<0x12c)return new SuccessfulResponse({});const _0x2a0eca=yield _0x24075a['json']();return new FailedResponse(_0x2a0eca);}catch(_0x5a4361){if(_0x5a4361 instanceof Error)return new FailedResponse({'detail':_0x5a4361['message'],'title':_0x5a4361['name'],'status':0x1f4,'instance':'','type':''});throw _0x5a4361;}});}}
8
8
 
9
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x285ae6,_0x21d47d,_0x41cee9,_0x47a438){function _0x57aee8(_0x16a2da){return _0x16a2da instanceof _0x41cee9?_0x16a2da:new _0x41cee9(function(_0x1e1d1f){_0x1e1d1f(_0x16a2da);});}return new(_0x41cee9||(_0x41cee9=Promise))(function(_0xd865ec,_0xf67ee9){function _0x39460b(_0x107fee){try{_0x316a36(_0x47a438['next'](_0x107fee));}catch(_0x4b06d9){_0xf67ee9(_0x4b06d9);}}function _0xb6d9b2(_0x294f3f){try{_0x316a36(_0x47a438['throw'](_0x294f3f));}catch(_0x4df64d){_0xf67ee9(_0x4df64d);}}function _0x316a36(_0x340e8d){_0x340e8d['done']?_0xd865ec(_0x340e8d['value']):_0x57aee8(_0x340e8d['value'])['then'](_0x39460b,_0xb6d9b2);}_0x316a36((_0x47a438=_0x47a438['apply'](_0x285ae6,_0x21d47d||[]))['next']());});};class ListService{constructor(_0x2a7c1c){this['fetch']=_0x2a7c1c;}['create'](_0x4a0248,_0x849931,_0x10e210,_0x4c45f1){return __awaiter$4(this,void 0,void 0,function*(){const _0x2c5424='List',_0x259d33={'account_name':_0x4a0248,'list_name':_0x849931,'search_service_name':_0x10e210};try{const _0x105d6d=yield this['fetch']['post'](_0x2c5424,_0x4c45f1,_0x259d33);if(_0x105d6d['status']>0xc7&&_0x105d6d['status']<0x12c){const _0x54f482=yield _0x105d6d['json']();return new SuccessfulListIdentityResponse(_0x54f482);}const _0x5924c6=yield _0x105d6d['json']();return new FailedListIdentityResponse(_0x5924c6);}catch(_0x1728ce){if(_0x1728ce instanceof Error)return new FailedListIdentityResponse({'detail':_0x1728ce['message'],'title':_0x1728ce['name'],'status':0x1f4,'instance':'','type':''});throw _0x1728ce;}});}['delete'](_0x5a628d,_0x136755,_0x332aed){return __awaiter$4(this,void 0,void 0,function*(){const _0x52543e='List/'+_0x5a628d+'/'+_0x136755,_0x222c17=yield this['fetch']['delete'](_0x52543e,_0x332aed);try{if(_0x222c17['status']>0xc7&&_0x222c17['status']<0x12c)return new SuccessfulResponse({});const _0x5671fa=yield _0x222c17['json']();return new FailedResponse(_0x5671fa);}catch(_0x2e7228){if(_0x2e7228 instanceof Error)return new FailedResponse({'detail':_0x2e7228['message'],'title':_0x2e7228['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e7228;}});}['get'](_0x23984b,_0x1dd012,_0x5d9e03){return __awaiter$4(this,void 0,void 0,function*(){const _0xd74880='List/'+_0x23984b+'/'+_0x1dd012;try{const _0x37de90=yield this['fetch']['get'](_0xd74880,_0x5d9e03);if(_0x37de90['status']>0xc7&&_0x37de90['status']<0x12c){const _0x243591=yield _0x37de90['json']();return new SuccessfulListResponse(_0x243591);}const _0x208acd=yield _0x37de90['json']();return new FailedListResponse(_0x208acd);}catch(_0x17be17){if(_0x17be17 instanceof Error)return new FailedListResponse({'detail':_0x17be17['message'],'title':_0x17be17['name'],'status':0x1f4,'instance':'','type':''});throw _0x17be17;}});}}
9
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1db8a7,_0x1c00bb,_0x1f1175,_0x2e12b1){function _0x2705f1(_0x1f617a){return _0x1f617a instanceof _0x1f1175?_0x1f617a:new _0x1f1175(function(_0x45b16c){_0x45b16c(_0x1f617a);});}return new(_0x1f1175||(_0x1f1175=Promise))(function(_0x46a0a5,_0x5660ce){function _0x38b407(_0x3a117f){try{_0x41e405(_0x2e12b1['next'](_0x3a117f));}catch(_0xba0bbc){_0x5660ce(_0xba0bbc);}}function _0x146f3a(_0x361e35){try{_0x41e405(_0x2e12b1['throw'](_0x361e35));}catch(_0x2fe53a){_0x5660ce(_0x2fe53a);}}function _0x41e405(_0x33ff08){_0x33ff08['done']?_0x46a0a5(_0x33ff08['value']):_0x2705f1(_0x33ff08['value'])['then'](_0x38b407,_0x146f3a);}_0x41e405((_0x2e12b1=_0x2e12b1['apply'](_0x1db8a7,_0x1c00bb||[]))['next']());});};class ListService{constructor(_0x16e564){this['fetch']=_0x16e564;}['create'](_0x5c297e,_0x9120cd,_0xcbf4a6,_0x23fd2e){return __awaiter$5(this,void 0,void 0,function*(){const _0x46814a='List',_0x44009c={'account_name':_0x5c297e,'list_name':_0x9120cd,'search_service_name':_0xcbf4a6};try{const _0x313ded=yield this['fetch']['post'](_0x46814a,_0x23fd2e,_0x44009c);if(_0x313ded['status']>0xc7&&_0x313ded['status']<0x12c){const _0x8f85c0=yield _0x313ded['json']();return new SuccessfulListIdentityResponse(_0x8f85c0);}const _0x29e9da=yield _0x313ded['json']();return new FailedListIdentityResponse(_0x29e9da);}catch(_0x62b5a1){if(_0x62b5a1 instanceof Error)return new FailedListIdentityResponse({'detail':_0x62b5a1['message'],'title':_0x62b5a1['name'],'status':0x1f4,'instance':'','type':''});throw _0x62b5a1;}});}['delete'](_0x51c0ee,_0x6ef4cf,_0x3aef11){return __awaiter$5(this,void 0,void 0,function*(){const _0x442338='List/'+_0x51c0ee+'/'+_0x6ef4cf,_0x6a7151=yield this['fetch']['delete'](_0x442338,_0x3aef11);try{if(_0x6a7151['status']>0xc7&&_0x6a7151['status']<0x12c)return new SuccessfulResponse({});const _0x17675c=yield _0x6a7151['json']();return new FailedResponse(_0x17675c);}catch(_0x5318e7){if(_0x5318e7 instanceof Error)return new FailedResponse({'detail':_0x5318e7['message'],'title':_0x5318e7['name'],'status':0x1f4,'instance':'','type':''});throw _0x5318e7;}});}['get'](_0x5f24af,_0x5057fc,_0x21b2cc){return __awaiter$5(this,void 0,void 0,function*(){const _0x3af280='List/'+_0x5f24af+'/'+_0x5057fc;try{const _0x26a226=yield this['fetch']['get'](_0x3af280,_0x21b2cc);if(_0x26a226['status']>0xc7&&_0x26a226['status']<0x12c){const _0x3d02af=yield _0x26a226['json']();return new SuccessfulListResponse(_0x3d02af);}const _0x420672=yield _0x26a226['json']();return new FailedListResponse(_0x420672);}catch(_0x379c20){if(_0x379c20 instanceof Error)return new FailedListResponse({'detail':_0x379c20['message'],'title':_0x379c20['name'],'status':0x1f4,'instance':'','type':''});throw _0x379c20;}});}}
10
10
 
11
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x50cf2a,_0x217e4e,_0x4ec5fe,_0x37b33a){function _0x75feea(_0x152729){return _0x152729 instanceof _0x4ec5fe?_0x152729:new _0x4ec5fe(function(_0x512012){_0x512012(_0x152729);});}return new(_0x4ec5fe||(_0x4ec5fe=Promise))(function(_0x4f476f,_0x455987){function _0x51e857(_0x3ed8f2){try{_0x6ecef0(_0x37b33a['next'](_0x3ed8f2));}catch(_0x5a25ce){_0x455987(_0x5a25ce);}}function _0x51e314(_0x1a5eea){try{_0x6ecef0(_0x37b33a['throw'](_0x1a5eea));}catch(_0x1161a3){_0x455987(_0x1161a3);}}function _0x6ecef0(_0x357f94){_0x357f94['done']?_0x4f476f(_0x357f94['value']):_0x75feea(_0x357f94['value'])['then'](_0x51e857,_0x51e314);}_0x6ecef0((_0x37b33a=_0x37b33a['apply'](_0x50cf2a,_0x217e4e||[]))['next']());});};class Fetch{constructor(_0x51b1b9){this['baseUri']=_0x51b1b9,this['getUrl']=_0x1cfaf1=>{return _0x1cfaf1['startsWith']('/')&&(_0x1cfaf1=_0x1cfaf1['replace']('/','')),''+this['baseUri']+_0x1cfaf1;},!_0x51b1b9['endsWith']('/')&&(_0x51b1b9=_0x51b1b9+'/');}['get'](_0x415eb4,_0x1f4519){return __awaiter$3(this,void 0,void 0,function*(){const _0x1df07d=this['getUrl'](_0x415eb4);return yield fetch(_0x1df07d,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1f4519}});});}['post'](_0x732ed9,_0x5e2285,_0x1609dd){return __awaiter$3(this,void 0,void 0,function*(){const _0x4276f2=this['getUrl'](_0x732ed9);return yield fetch(_0x4276f2,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5e2285},'body':_0x1609dd?JSON['stringify'](_0x1609dd):null});});}['PostNoAuth'](_0x52c2a5,_0x1fcbd9){return __awaiter$3(this,void 0,void 0,function*(){const _0x5d5eda=this['getUrl'](_0x52c2a5);return yield fetch(_0x5d5eda,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x1fcbd9?JSON['stringify'](_0x1fcbd9):null});});}['put'](_0x222021,_0x434e39,_0xf528a){return __awaiter$3(this,void 0,void 0,function*(){const _0x2034ee=this['getUrl'](_0x222021);return yield fetch(_0x2034ee,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x434e39},'body':_0xf528a?JSON['stringify'](_0xf528a):null});});}['delete'](_0x27ce55,_0x29b3fc){return __awaiter$3(this,void 0,void 0,function*(){const _0x51cf33=this['getUrl'](_0x27ce55);return yield fetch(_0x51cf33,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x29b3fc}});});}}
11
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x43feb8,_0xa28c1d,_0x5d070f,_0x20c464){function _0x228cfd(_0x318fee){return _0x318fee instanceof _0x5d070f?_0x318fee:new _0x5d070f(function(_0xe2a08d){_0xe2a08d(_0x318fee);});}return new(_0x5d070f||(_0x5d070f=Promise))(function(_0x3a1360,_0x43cfad){function _0x587979(_0xff9ea2){try{_0x3a21c1(_0x20c464['next'](_0xff9ea2));}catch(_0xd75427){_0x43cfad(_0xd75427);}}function _0x132239(_0x22f4f5){try{_0x3a21c1(_0x20c464['throw'](_0x22f4f5));}catch(_0x589714){_0x43cfad(_0x589714);}}function _0x3a21c1(_0x4e9848){_0x4e9848['done']?_0x3a1360(_0x4e9848['value']):_0x228cfd(_0x4e9848['value'])['then'](_0x587979,_0x132239);}_0x3a21c1((_0x20c464=_0x20c464['apply'](_0x43feb8,_0xa28c1d||[]))['next']());});};class Fetch{constructor(_0x5b7d61){this['baseUri']=_0x5b7d61,this['getUrl']=_0x931080=>{return _0x931080['startsWith']('/')&&(_0x931080=_0x931080['replace']('/','')),''+this['baseUri']+_0x931080;},!_0x5b7d61['endsWith']('/')&&(_0x5b7d61=_0x5b7d61+'/');}['get'](_0x11e020,_0xd33ae0){return __awaiter$4(this,void 0,void 0,function*(){const _0x55c4c9=this['getUrl'](_0x11e020);return yield fetch(_0x55c4c9,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xd33ae0}});});}['post'](_0x43a7f4,_0x2c3d44,_0x485e91){return __awaiter$4(this,void 0,void 0,function*(){const _0x114dff=this['getUrl'](_0x43a7f4);return yield fetch(_0x114dff,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2c3d44},'body':_0x485e91?JSON['stringify'](_0x485e91):null});});}['PostNoAuth'](_0x1fec07,_0x5d8ded){return __awaiter$4(this,void 0,void 0,function*(){const _0x5eaf43=this['getUrl'](_0x1fec07);return yield fetch(_0x5eaf43,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5d8ded?JSON['stringify'](_0x5d8ded):null});});}['put'](_0x26c369,_0x3a6fe6,_0x1c62b1){return __awaiter$4(this,void 0,void 0,function*(){const _0x3db1d7=this['getUrl'](_0x26c369);return yield fetch(_0x3db1d7,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3a6fe6},'body':_0x1c62b1?JSON['stringify'](_0x1c62b1):null});});}['delete'](_0x5cab50,_0x381bba){return __awaiter$4(this,void 0,void 0,function*(){const _0x1d8062=this['getUrl'](_0x5cab50);return yield fetch(_0x1d8062,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x381bba}});});}}
12
12
 
13
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x361c28,_0x13dd73,_0x5cb6e4,_0x5073c0){function _0x22c4d0(_0x51cf4d){return _0x51cf4d instanceof _0x5cb6e4?_0x51cf4d:new _0x5cb6e4(function(_0xf69f98){_0xf69f98(_0x51cf4d);});}return new(_0x5cb6e4||(_0x5cb6e4=Promise))(function(_0x575230,_0x2401ca){function _0x47e6c3(_0x3e6ea4){try{_0x31eab7(_0x5073c0['next'](_0x3e6ea4));}catch(_0x1a9b4e){_0x2401ca(_0x1a9b4e);}}function _0x135835(_0xd5535c){try{_0x31eab7(_0x5073c0['throw'](_0xd5535c));}catch(_0x861f3d){_0x2401ca(_0x861f3d);}}function _0x31eab7(_0x4e7811){_0x4e7811['done']?_0x575230(_0x4e7811['value']):_0x22c4d0(_0x4e7811['value'])['then'](_0x47e6c3,_0x135835);}_0x31eab7((_0x5073c0=_0x5073c0['apply'](_0x361c28,_0x13dd73||[]))['next']());});};class SearchServersService{constructor(_0x46f782){this['fetch']=_0x46f782,this['path']='search-services';}['create'](_0x15a0fb,_0x458c9b,_0x5a22e9,_0x260278,_0x4185cb,_0x2f40c9,_0x37f2e3,_0xcd4e36){return __awaiter$2(this,void 0,void 0,function*(){const _0x4c7a21={'account_name':_0x15a0fb,'search_service_name':_0x458c9b,'endpoint':_0x5a22e9,'key':_0x260278,'country':_0x4185cb,'provider':_0x2f40c9,'index_name':_0x37f2e3};try{const _0x2a39ac=yield this['fetch']['post'](this['path'],_0xcd4e36,_0x4c7a21);if(_0x2a39ac['status']>0xc7&&_0x2a39ac['status']<0x12c){const _0x477e5c=yield _0x2a39ac['json']();return new SuccessfulSearchServiceResponse(_0x477e5c);}const _0x195463=yield _0x2a39ac['json']();return new FailedSearchServiceResponse(_0x195463);}catch(_0x1a9d4d){if(_0x1a9d4d instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1a9d4d['message'],'title':_0x1a9d4d['name'],'status':0x1f4,'instance':'','type':''});throw _0x1a9d4d;}});}['delete'](_0x5e6dab,_0x5a3002,_0x2d7985){return __awaiter$2(this,void 0,void 0,function*(){const _0x2ae346=this['path']+'/'+_0x5e6dab+'/'+_0x5a3002;try{const _0x111440=yield this['fetch']['delete'](_0x2ae346,_0x2d7985);if(_0x111440['status']>0xc7&&_0x111440['status']<0x12c)return new SuccessfulResponse({});const _0x5463fe=yield _0x111440['json']();return new FailedResponse(_0x5463fe);}catch(_0x20ee7e){if(_0x20ee7e instanceof Error)return new FailedResponse({'detail':_0x20ee7e['message'],'title':_0x20ee7e['name'],'status':0x1f4,'instance':'','type':''});throw _0x20ee7e;}});}['view'](_0x4c4cb8,_0x1bdd96,_0x11c5e1){return __awaiter$2(this,void 0,void 0,function*(){const _0xd0af54=this['path']+'/'+_0x4c4cb8+'/'+_0x1bdd96;try{const _0x2cb624=yield this['fetch']['get'](_0xd0af54,_0x11c5e1);if(_0x2cb624['status']>0xc7&&_0x2cb624['status']<0x12c){const _0x537970=yield _0x2cb624['json']();return new SuccessfulViewSearchServiceResponse(_0x537970);}const _0x2cbb1f=yield _0x2cb624['json']();return new FailedViewSearchServiceResponse(_0x2cbb1f);}catch(_0x503d2a){if(_0x503d2a instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x503d2a['message'],'title':_0x503d2a['name'],'status':0x1f4,'instance':'','type':''});throw _0x503d2a;}});}['edit'](_0x587b2c,_0x299437,_0x5dc4d2,_0x164c04,_0x18d31e,_0x246c53){return __awaiter$2(this,void 0,void 0,function*(){const _0x59d83c={'account_name':_0x587b2c,'search_service_name':_0x299437,'new_search_service_name':_0x5dc4d2,'key':_0x164c04,'country':_0x18d31e};try{const _0x2433cf=yield this['fetch']['put'](this['path'],_0x246c53,_0x59d83c);if(_0x2433cf['status']>0xc7&&_0x2433cf['status']<0x12c){const _0x3bf08b=yield _0x2433cf['json']();return new SuccessfulSearchServiceResponse(_0x3bf08b);}const _0x151603=yield _0x2433cf['json']();return new FailedSearchServiceResponse(_0x151603);}catch(_0x57c5cb){if(_0x57c5cb instanceof Error)return new FailedSearchServiceResponse({'detail':_0x57c5cb['message'],'title':_0x57c5cb['name'],'status':0x1f4,'instance':'','type':''});throw _0x57c5cb;}});}['list'](_0x5dd1b4,_0x4c6439){return __awaiter$2(this,void 0,void 0,function*(){const _0x57a90e=this['path']+'/'+_0x5dd1b4;try{const _0x5ae58a=yield this['fetch']['get'](_0x57a90e,_0x4c6439);if(_0x5ae58a['status']>0xc7&&_0x5ae58a['status']<0x12c){const _0x33e57e=yield _0x5ae58a['json']();return new SuccessfulListSearchServiceResponse(_0x33e57e);}const _0x312883=yield _0x5ae58a['json']();return new FailedViewSearchServicesResponse(_0x312883);}catch(_0x402a36){if(_0x402a36 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x402a36['message'],'title':_0x402a36['name'],'status':0x1f4,'instance':'','type':''});throw _0x402a36;}});}}
13
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x3fbd7d,_0x333928,_0x295f6a,_0x2d2cf9){function _0xcdf6a(_0x2ec8ff){return _0x2ec8ff instanceof _0x295f6a?_0x2ec8ff:new _0x295f6a(function(_0x28f1e8){_0x28f1e8(_0x2ec8ff);});}return new(_0x295f6a||(_0x295f6a=Promise))(function(_0x4ee922,_0x2e7c53){function _0x3889f5(_0x14522f){try{_0x490ca0(_0x2d2cf9['next'](_0x14522f));}catch(_0x4f6726){_0x2e7c53(_0x4f6726);}}function _0x5b2edf(_0x5185d0){try{_0x490ca0(_0x2d2cf9['throw'](_0x5185d0));}catch(_0x2c9a61){_0x2e7c53(_0x2c9a61);}}function _0x490ca0(_0x512bb5){_0x512bb5['done']?_0x4ee922(_0x512bb5['value']):_0xcdf6a(_0x512bb5['value'])['then'](_0x3889f5,_0x5b2edf);}_0x490ca0((_0x2d2cf9=_0x2d2cf9['apply'](_0x3fbd7d,_0x333928||[]))['next']());});};class SearchServersService{constructor(_0x101582){this['fetch']=_0x101582,this['path']='search-services';}['create'](_0x5ebc5a,_0x16c473,_0x57b0ef,_0x4c525a,_0x3ccc4c,_0x54d3a1,_0x38f071,_0x4e493c){return __awaiter$3(this,void 0,void 0,function*(){const _0x5461c6={'account_name':_0x5ebc5a,'search_service_name':_0x16c473,'endpoint':_0x57b0ef,'key':_0x4c525a,'country':_0x3ccc4c,'provider':_0x54d3a1,'index_name':_0x38f071};try{const _0x24478b=yield this['fetch']['post'](this['path'],_0x4e493c,_0x5461c6);if(_0x24478b['status']>0xc7&&_0x24478b['status']<0x12c){const _0x3c7e7e=yield _0x24478b['json']();return new SuccessfulSearchServiceResponse(_0x3c7e7e);}const _0x3fe74e=yield _0x24478b['json']();return new FailedSearchServiceResponse(_0x3fe74e);}catch(_0x37f23f){if(_0x37f23f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x37f23f['message'],'title':_0x37f23f['name'],'status':0x1f4,'instance':'','type':''});throw _0x37f23f;}});}['delete'](_0x340fb2,_0x2f859e,_0x12db97){return __awaiter$3(this,void 0,void 0,function*(){const _0x43be3e=this['path']+'/'+_0x340fb2+'/'+_0x2f859e;try{const _0x4b6dc6=yield this['fetch']['delete'](_0x43be3e,_0x12db97);if(_0x4b6dc6['status']>0xc7&&_0x4b6dc6['status']<0x12c)return new SuccessfulResponse({});const _0x2bf860=yield _0x4b6dc6['json']();return new FailedResponse(_0x2bf860);}catch(_0x808c89){if(_0x808c89 instanceof Error)return new FailedResponse({'detail':_0x808c89['message'],'title':_0x808c89['name'],'status':0x1f4,'instance':'','type':''});throw _0x808c89;}});}['view'](_0xc7ddd5,_0x3e2f1d,_0x1496c7){return __awaiter$3(this,void 0,void 0,function*(){const _0x17bad8=this['path']+'/'+_0xc7ddd5+'/'+_0x3e2f1d;try{const _0x3c2ca8=yield this['fetch']['get'](_0x17bad8,_0x1496c7);if(_0x3c2ca8['status']>0xc7&&_0x3c2ca8['status']<0x12c){const _0x5718cc=yield _0x3c2ca8['json']();return new SuccessfulViewSearchServiceResponse(_0x5718cc);}const _0x207619=yield _0x3c2ca8['json']();return new FailedViewSearchServiceResponse(_0x207619);}catch(_0x11691d){if(_0x11691d instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x11691d['message'],'title':_0x11691d['name'],'status':0x1f4,'instance':'','type':''});throw _0x11691d;}});}['edit'](_0x47c18b,_0x475772,_0x41e987,_0x31ba67,_0x22c8d1,_0x390e03){return __awaiter$3(this,void 0,void 0,function*(){const _0x2e2563={'account_name':_0x47c18b,'search_service_name':_0x475772,'new_search_service_name':_0x41e987,'key':_0x31ba67,'country':_0x22c8d1};try{const _0x2ecb90=yield this['fetch']['put'](this['path'],_0x390e03,_0x2e2563);if(_0x2ecb90['status']>0xc7&&_0x2ecb90['status']<0x12c){const _0x45e5ff=yield _0x2ecb90['json']();return new SuccessfulSearchServiceResponse(_0x45e5ff);}const _0x340f8c=yield _0x2ecb90['json']();return new FailedSearchServiceResponse(_0x340f8c);}catch(_0x34a5c9){if(_0x34a5c9 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x34a5c9['message'],'title':_0x34a5c9['name'],'status':0x1f4,'instance':'','type':''});throw _0x34a5c9;}});}['list'](_0x4d568b,_0x852675){return __awaiter$3(this,void 0,void 0,function*(){const _0x62115a=this['path']+'/'+_0x4d568b;try{const _0x47e694=yield this['fetch']['get'](_0x62115a,_0x852675);if(_0x47e694['status']>0xc7&&_0x47e694['status']<0x12c){const _0xf3c64d=yield _0x47e694['json']();return new SuccessfulListSearchServiceResponse(_0xf3c64d);}const _0x11097f=yield _0x47e694['json']();return new FailedViewSearchServicesResponse(_0x11097f);}catch(_0x45cfd0){if(_0x45cfd0 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x45cfd0['message'],'title':_0x45cfd0['name'],'status':0x1f4,'instance':'','type':''});throw _0x45cfd0;}});}}
14
14
 
15
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x338ae8,_0x44a5d1,_0x3ed1a6,_0x3bdd9c){function _0xa24afb(_0xd383a1){return _0xd383a1 instanceof _0x3ed1a6?_0xd383a1:new _0x3ed1a6(function(_0x19fc1f){_0x19fc1f(_0xd383a1);});}return new(_0x3ed1a6||(_0x3ed1a6=Promise))(function(_0xe8d1af,_0x4374e0){function _0xfa7424(_0x5b27bb){try{_0x4aadd5(_0x3bdd9c['next'](_0x5b27bb));}catch(_0x5a562e){_0x4374e0(_0x5a562e);}}function _0x56eb63(_0xb91ae0){try{_0x4aadd5(_0x3bdd9c['throw'](_0xb91ae0));}catch(_0x40f096){_0x4374e0(_0x40f096);}}function _0x4aadd5(_0x22b659){_0x22b659['done']?_0xe8d1af(_0x22b659['value']):_0xa24afb(_0x22b659['value'])['then'](_0xfa7424,_0x56eb63);}_0x4aadd5((_0x3bdd9c=_0x3bdd9c['apply'](_0x338ae8,_0x44a5d1||[]))['next']());});};class FacetService{constructor(_0xe95b7f){this['fetch']=_0xe95b7f,this['path']='facet';}['create'](_0x5cd6e5,_0x3a99f8,_0x2b1b64,_0x59186f){return __awaiter$1(this,void 0,void 0,function*(){const _0x255b3f={'account_name':_0x5cd6e5,'list_name':_0x3a99f8,'facet_name':_0x2b1b64};try{const _0x232d59=yield this['fetch']['post'](this['path'],_0x59186f,_0x255b3f);if(_0x232d59['status']>0xc7&&_0x232d59['status']<0x12c){const _0x3965ad=yield _0x232d59['json']();return new SuccessfulFacetResponse(_0x3965ad);}const _0x4c2d67=yield _0x232d59['json']();return new FailedFacetResponse(_0x4c2d67);}catch(_0x3881e4){if(_0x3881e4 instanceof Error)return new FailedFacetResponse({'detail':_0x3881e4['message'],'title':_0x3881e4['name'],'status':0x1f4,'instance':'','type':''});throw _0x3881e4;}});}['remove'](_0x32b968,_0xae0003,_0x23477d,_0x3ff4d4){return __awaiter$1(this,void 0,void 0,function*(){const _0x49cf4f='Facet/'+_0x32b968+'/'+_0xae0003+'/'+_0x23477d,_0x37576e=yield this['fetch']['delete'](_0x49cf4f,_0x3ff4d4);try{if(_0x37576e['status']>0xc7&&_0x37576e['status']<0x12c)return new SuccessfulResponse({});const _0x5c5f1d=yield _0x37576e['json']();return new FailedResponse(_0x5c5f1d);}catch(_0x2aeb7b){if(_0x2aeb7b instanceof Error)return new FailedResponse({'detail':_0x2aeb7b['message'],'title':_0x2aeb7b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2aeb7b;}});}['rename'](_0x2d8154,_0xcb7106,_0x2e5462,_0x414bf3,_0x30afa2){return __awaiter$1(this,void 0,void 0,function*(){const _0x5d4b2b={'account_name':_0x2d8154,'list_name':_0xcb7106,'facet_name':_0x2e5462,'new_facet_name':_0x414bf3};try{const _0x3a36ac=yield this['fetch']['put'](this['path'],_0x30afa2,_0x5d4b2b);if(_0x3a36ac['status']>0xc7&&_0x3a36ac['status']<0x12c){const _0x64bdc0=yield _0x3a36ac['json']();return new SuccessfulFacetResponse(_0x64bdc0);}const _0x233957=yield _0x3a36ac['json']();return new FailedFacetResponse(_0x233957);}catch(_0x1976a6){if(_0x1976a6 instanceof Error)return new FailedFacetResponse({'detail':_0x1976a6['message'],'title':_0x1976a6['name'],'status':0x1f4,'instance':'','type':''});throw _0x1976a6;}});}}
15
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x2db161,_0x46a72f,_0xbe2a53,_0x2fdb72){function _0x41cb16(_0x33f6f6){return _0x33f6f6 instanceof _0xbe2a53?_0x33f6f6:new _0xbe2a53(function(_0x213bab){_0x213bab(_0x33f6f6);});}return new(_0xbe2a53||(_0xbe2a53=Promise))(function(_0x38560e,_0x5ee98c){function _0x26b07f(_0x499c78){try{_0x431b30(_0x2fdb72['next'](_0x499c78));}catch(_0x5babb9){_0x5ee98c(_0x5babb9);}}function _0x5a6f37(_0x2011d9){try{_0x431b30(_0x2fdb72['throw'](_0x2011d9));}catch(_0x20e153){_0x5ee98c(_0x20e153);}}function _0x431b30(_0x2d5c3d){_0x2d5c3d['done']?_0x38560e(_0x2d5c3d['value']):_0x41cb16(_0x2d5c3d['value'])['then'](_0x26b07f,_0x5a6f37);}_0x431b30((_0x2fdb72=_0x2fdb72['apply'](_0x2db161,_0x46a72f||[]))['next']());});};class FacetService{constructor(_0x5eefc8){this['fetch']=_0x5eefc8,this['path']='facet';}['create'](_0x230b04,_0x45145d,_0x3d8fcb,_0x538e71){return __awaiter$2(this,void 0,void 0,function*(){const _0x3abbd2={'account_name':_0x230b04,'list_name':_0x45145d,'facet_name':_0x3d8fcb};try{const _0x3e6fea=yield this['fetch']['post'](this['path'],_0x538e71,_0x3abbd2);if(_0x3e6fea['status']>0xc7&&_0x3e6fea['status']<0x12c){const _0xff788f=yield _0x3e6fea['json']();return new SuccessfulFacetResponse(_0xff788f);}const _0x58d308=yield _0x3e6fea['json']();return new FailedFacetResponse(_0x58d308);}catch(_0xc2884c){if(_0xc2884c instanceof Error)return new FailedFacetResponse({'detail':_0xc2884c['message'],'title':_0xc2884c['name'],'status':0x1f4,'instance':'','type':''});throw _0xc2884c;}});}['remove'](_0x140930,_0x566caa,_0x149484,_0x5c7479){return __awaiter$2(this,void 0,void 0,function*(){const _0x3092ee='Facet/'+_0x140930+'/'+_0x566caa+'/'+_0x149484,_0x260305=yield this['fetch']['delete'](_0x3092ee,_0x5c7479);try{if(_0x260305['status']>0xc7&&_0x260305['status']<0x12c)return new SuccessfulResponse({});const _0x34bc7c=yield _0x260305['json']();return new FailedResponse(_0x34bc7c);}catch(_0x1e07ab){if(_0x1e07ab instanceof Error)return new FailedResponse({'detail':_0x1e07ab['message'],'title':_0x1e07ab['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e07ab;}});}['rename'](_0x50a779,_0x2b255e,_0xe8203a,_0x495ad8,_0x137504){return __awaiter$2(this,void 0,void 0,function*(){const _0x30b9bd={'account_name':_0x50a779,'list_name':_0x2b255e,'facet_name':_0xe8203a,'new_facet_name':_0x495ad8};try{const _0x40b0d8=yield this['fetch']['put'](this['path'],_0x137504,_0x30b9bd);if(_0x40b0d8['status']>0xc7&&_0x40b0d8['status']<0x12c){const _0x183cd6=yield _0x40b0d8['json']();return new SuccessfulFacetResponse(_0x183cd6);}const _0x1d78bd=yield _0x40b0d8['json']();return new FailedFacetResponse(_0x1d78bd);}catch(_0x119652){if(_0x119652 instanceof Error)return new FailedFacetResponse({'detail':_0x119652['message'],'title':_0x119652['name'],'status':0x1f4,'instance':'','type':''});throw _0x119652;}});}}
16
16
 
17
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x337fd6,_0x56e9b5,_0x167620,_0xe2c3f4){function _0x6ceda6(_0x33c740){return _0x33c740 instanceof _0x167620?_0x33c740:new _0x167620(function(_0xf6e936){_0xf6e936(_0x33c740);});}return new(_0x167620||(_0x167620=Promise))(function(_0x62a5d7,_0x152f42){function _0x29954d(_0x5a6931){try{_0x452edc(_0xe2c3f4['next'](_0x5a6931));}catch(_0x3f9482){_0x152f42(_0x3f9482);}}function _0x115ddd(_0x4ee6d8){try{_0x452edc(_0xe2c3f4['throw'](_0x4ee6d8));}catch(_0x300636){_0x152f42(_0x300636);}}function _0x452edc(_0x116290){_0x116290['done']?_0x62a5d7(_0x116290['value']):_0x6ceda6(_0x116290['value'])['then'](_0x29954d,_0x115ddd);}_0x452edc((_0xe2c3f4=_0xe2c3f4['apply'](_0x337fd6,_0x56e9b5||[]))['next']());});};class AdminClient{constructor(_0x283b46='https://admin.searchability.dev/'){var _0x5b49dc=new Fetch(_0x283b46);this['Accounts']=new AccountService(_0x5b49dc),this['Lists']=new ListService(_0x5b49dc),this['ApiKeys']=new ApiKeyService(_0x5b49dc),this['SearchServices']=new SearchServersService(_0x5b49dc),this['FacetService']=new FacetService(_0x5b49dc);}}class AuthClient{constructor(_0x21568c='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x21568c);}['login'](_0x3ca819){return __awaiter(this,void 0,void 0,function*(){const _0x470647='login/'+_0x3ca819;try{const _0x5f11f3=yield yield fetch(_0x470647);if(_0x5f11f3['status']>0xc7&&_0x5f11f3['status']<0x12c){const _0x2686f7=yield _0x5f11f3['json']();return new SuccessfulAuthResponse(_0x2686f7);}const _0x29d7f9=yield _0x5f11f3['json']();return new FailedAuthResponse(_0x29d7f9);}catch(_0x3690d7){if(_0x3690d7 instanceof Error)return new FailedAuthResponse({'detail':_0x3690d7['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3690d7;}});}['refresh'](_0x5cd5de){return __awaiter(this,void 0,void 0,function*(){const _0x3c77a1='refresh',_0xb245d5={'refresh_token':_0x5cd5de};try{const _0x7956f2=yield this['fetch']['PostNoAuth'](_0x3c77a1,_0xb245d5);if(_0x7956f2['status']>0xc7&&_0x7956f2['status']<0x12c){const _0x46b3d7=yield _0x7956f2['json']();return new SuccessfulAuthResponse(_0x46b3d7);}const _0x2b7844=yield _0x7956f2['json']();return new FailedAuthResponse(_0x2b7844);}catch(_0x384175){if(_0x384175 instanceof Error)return new FailedAuthResponse({'detail':_0x384175['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x384175;}});}['getTokenStatus'](_0x1000b5){if(Date['now']()<_0x1000b5['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x1000b5['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
17
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xb0445a,_0x45391a,_0x47d744,_0x153cba){function _0x1a0b01(_0x3485f0){return _0x3485f0 instanceof _0x47d744?_0x3485f0:new _0x47d744(function(_0x3ad262){_0x3ad262(_0x3485f0);});}return new(_0x47d744||(_0x47d744=Promise))(function(_0xe58b7f,_0x57d413){function _0x5a226e(_0x6b45a7){try{_0x352b39(_0x153cba['next'](_0x6b45a7));}catch(_0x19e13d){_0x57d413(_0x19e13d);}}function _0x544b08(_0x59f88b){try{_0x352b39(_0x153cba['throw'](_0x59f88b));}catch(_0x364a83){_0x57d413(_0x364a83);}}function _0x352b39(_0x33cc66){_0x33cc66['done']?_0xe58b7f(_0x33cc66['value']):_0x1a0b01(_0x33cc66['value'])['then'](_0x5a226e,_0x544b08);}_0x352b39((_0x153cba=_0x153cba['apply'](_0xb0445a,_0x45391a||[]))['next']());});};class SearchResultService{constructor(_0x510033){this['fetch']=_0x510033,this['path']='search-result';}['create'](_0x1a330c,_0x37d9ae,_0x2644d7,_0x3c4ef8,_0x5e2909){return __awaiter$1(this,void 0,void 0,function*(){_0x5e2909=_0x5e2909!==null&&_0x5e2909!==void 0?_0x5e2909:{'description':'','keywords':'','resource_1':'','resource_2':'','resource_3':'','latitude':0x0,'longitude':0x0,'facets':new Map()};const _0x142cd9=Object['assign']({'account_name':_0x1a330c,'search_result_name':_0x2644d7,'list_name':_0x37d9ae},_0x5e2909);try{const _0x5f4fe8=yield this['fetch']['post'](this['path'],_0x3c4ef8,_0x142cd9);if(_0x5f4fe8['status']>0xc7&&_0x5f4fe8['status']<0x12c){const _0x36766b=yield _0x5f4fe8['json']();return new SuccessfulViewSearchResultResponse(_0x36766b);}const _0x156e73=yield _0x5f4fe8['json']();return new FailedSearchResultResponse(_0x156e73);}catch(_0xcad310){if(_0xcad310 instanceof Error)return new FailedSearchResultResponse({'detail':_0xcad310['message'],'title':_0xcad310['name'],'status':0x1f4,'instance':'','type':''});throw _0xcad310;}});}}
18
+
19
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x30b41c,_0x6c183b,_0x53323b,_0x21f4b9){function _0x65ba0f(_0x3c6ab0){return _0x3c6ab0 instanceof _0x53323b?_0x3c6ab0:new _0x53323b(function(_0x1d322d){_0x1d322d(_0x3c6ab0);});}return new(_0x53323b||(_0x53323b=Promise))(function(_0x1ef177,_0x3dba23){function _0xefb6cc(_0x31f0ed){try{_0x260d8d(_0x21f4b9['next'](_0x31f0ed));}catch(_0x5bc2c8){_0x3dba23(_0x5bc2c8);}}function _0x81737e(_0x36c2d0){try{_0x260d8d(_0x21f4b9['throw'](_0x36c2d0));}catch(_0x19ea7d){_0x3dba23(_0x19ea7d);}}function _0x260d8d(_0x2bebf5){_0x2bebf5['done']?_0x1ef177(_0x2bebf5['value']):_0x65ba0f(_0x2bebf5['value'])['then'](_0xefb6cc,_0x81737e);}_0x260d8d((_0x21f4b9=_0x21f4b9['apply'](_0x30b41c,_0x6c183b||[]))['next']());});};class AdminClient{constructor(_0x48ba7c='https://admin.searchability.dev/'){var _0x3bb9ac=new Fetch(_0x48ba7c);this['Accounts']=new AccountService(_0x3bb9ac),this['Lists']=new ListService(_0x3bb9ac),this['ApiKeys']=new ApiKeyService(_0x3bb9ac),this['SearchServices']=new SearchServersService(_0x3bb9ac),this['FacetService']=new FacetService(_0x3bb9ac),this['SearchResults']=new SearchResultService(_0x3bb9ac);}}class AuthClient{constructor(_0x41d7f5='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x41d7f5);}['login'](_0x4f7ec6){return __awaiter(this,void 0,void 0,function*(){const _0x4166da='login/'+_0x4f7ec6;try{const _0x338df2=yield yield fetch(_0x4166da);if(_0x338df2['status']>0xc7&&_0x338df2['status']<0x12c){const _0x1bee53=yield _0x338df2['json']();return new SuccessfulAuthResponse(_0x1bee53);}const _0x117d59=yield _0x338df2['json']();return new FailedAuthResponse(_0x117d59);}catch(_0x5e8829){if(_0x5e8829 instanceof Error)return new FailedAuthResponse({'detail':_0x5e8829['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5e8829;}});}['refresh'](_0x2da4d7){return __awaiter(this,void 0,void 0,function*(){const _0x1d6648='refresh',_0x588a8a={'refresh_token':_0x2da4d7};try{const _0x1c12a1=yield this['fetch']['PostNoAuth'](_0x1d6648,_0x588a8a);if(_0x1c12a1['status']>0xc7&&_0x1c12a1['status']<0x12c){const _0x42c51c=yield _0x1c12a1['json']();return new SuccessfulAuthResponse(_0x42c51c);}const _0x3e2736=yield _0x1c12a1['json']();return new FailedAuthResponse(_0x3e2736);}catch(_0x576539){if(_0x576539 instanceof Error)return new FailedAuthResponse({'detail':_0x576539['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x576539;}});}['getTokenStatus'](_0x57c2f1){if(Date['now']()<_0x57c2f1['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x57c2f1['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
18
20
 
19
21
  exports.AdminClient = AdminClient;
20
22
  exports.AuthClient = AuthClient;
@@ -1,17 +1,19 @@
1
- var TokenStatus;(function(_0x12b717){_0x12b717[_0x12b717['Ok']=0x0]='Ok',_0x12b717[_0x12b717['Refresh']=0x1]='Refresh',_0x12b717[_0x12b717['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(_0x3a97b1){this['isSuccess']=_0x3a97b1;}}class SuccessfulFacetResponse extends Response{constructor(_0x31739a){super(!![]),this['facet']=_0x31739a;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x17abe5){super(![]),this['problem']=_0x17abe5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x545f64){super(!![]),this['account']=_0x545f64;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x2290bf){super(!![]),this['list']=_0x2290bf;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x5e0fcc){super(!![]),this['list']=_0x5e0fcc;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x21b7bb){super(![]),this['problem']=_0x21b7bb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x12e5c5){super(![]),this['problem']=_0x12e5c5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x9fea91){super(![]),this['problem']=_0x9fea91;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2c26b4){super(!![]),this['tokens']=_0x2c26b4;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x3946ee){super(![]),this['problem']=_0x3946ee;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x2f8ab6){super(!![]),this['apiKey']=_0x2f8ab6;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5f1dcb){super(![]),this['problem']=_0x5f1dcb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x23527e){super(!![]),this['searchService']=_0x23527e;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x1d2082){super(![]),this['problem']=_0x1d2082;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2faf90){super(!![]),this['searchService']=_0x2faf90;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x255801){super(!![]),this['searchServices']=_0x255801;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x463564){super(![]),this['problem']=_0x463564;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x118f36){super(![]),this['problem']=_0x118f36;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x1914cb){super(!![]),this['apiKeyValue']=_0x1914cb;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x223762){super(!![]),this['obj']=_0x223762;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x85d908){super(![]),this['problem']=_0x85d908;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0xcb260e){super(![]),this['problem']=_0xcb260e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0xb7e729){_0xb7e729[_0xb7e729['Ok']=0x0]='Ok',_0xb7e729[_0xb7e729['Refresh']=0x1]='Refresh',_0xb7e729[_0xb7e729['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(_0x4749a5){this['isSuccess']=_0x4749a5;}}class SuccessfulFacetResponse extends Response{constructor(_0x3995c6){super(!![]),this['facet']=_0x3995c6;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x4d641d){super(![]),this['problem']=_0x4d641d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x380a39){super(!![]),this['account']=_0x380a39;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x5e5602){super(!![]),this['list']=_0x5e5602;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x2d00ff){super(!![]),this['list']=_0x2d00ff;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4f94a8){super(![]),this['problem']=_0x4f94a8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x220a1f){super(![]),this['problem']=_0x220a1f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x162034){super(![]),this['problem']=_0x162034;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x42643e){super(!![]),this['tokens']=_0x42643e;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x4c0ef5){super(![]),this['problem']=_0x4c0ef5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0xe52520){super(!![]),this['apiKey']=_0xe52520;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x3aaa80){super(![]),this['problem']=_0x3aaa80;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0xe3bf99){super(!![]),this['searchService']=_0xe3bf99;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x7b4058){super(![]),this['problem']=_0x7b4058;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2e70a5){super(!![]),this['searchService']=_0x2e70a5;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x4b2f74){super(!![]),this['searchResult']=_0x4b2f74;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x325f49){super(![]),this['problem']=_0x325f49;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x103ac7){super(!![]),this['searchServices']=_0x103ac7;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x4b933e){super(![]),this['problem']=_0x4b933e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x482f4d){super(![]),this['problem']=_0x482f4d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x49685a){super(!![]),this['apiKeyValue']=_0x49685a;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x1e9229){super(!![]),this['obj']=_0x1e9229;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x1c7503){super(![]),this['problem']=_0x1c7503;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x5eb937){super(![]),this['problem']=_0x5eb937;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x3e306a,_0x3284f7,_0x5e2a47,_0x1caab3){function _0x1f1353(_0x5706d2){return _0x5706d2 instanceof _0x5e2a47?_0x5706d2:new _0x5e2a47(function(_0x3357c5){_0x3357c5(_0x5706d2);});}return new(_0x5e2a47||(_0x5e2a47=Promise))(function(_0x19d0bc,_0x4d5f53){function _0x507e4d(_0x419354){try{_0x1b83d0(_0x1caab3['next'](_0x419354));}catch(_0x431397){_0x4d5f53(_0x431397);}}function _0x489979(_0x3273b7){try{_0x1b83d0(_0x1caab3['throw'](_0x3273b7));}catch(_0x270bcf){_0x4d5f53(_0x270bcf);}}function _0x1b83d0(_0x744749){_0x744749['done']?_0x19d0bc(_0x744749['value']):_0x1f1353(_0x744749['value'])['then'](_0x507e4d,_0x489979);}_0x1b83d0((_0x1caab3=_0x1caab3['apply'](_0x3e306a,_0x3284f7||[]))['next']());});};class AccountService{constructor(_0x4f1ba5){this['fetch']=_0x4f1ba5;}['get'](_0x25b39c,_0x4b8a91){return __awaiter$6(this,void 0,void 0,function*(){const _0x4f6ed1='Account/'+_0x25b39c+'/',_0x50c3dd=yield this['fetch']['get'](_0x4f6ed1,_0x4b8a91);try{if(_0x50c3dd['status']>0xc7&&_0x50c3dd['status']<0x12c){const _0x51a4c4=yield _0x50c3dd['json']();return new SuccessfulAccountResponse(_0x51a4c4);}const _0xf3424b=yield _0x50c3dd['json']();return new FailedAccountResponse(_0xf3424b);}catch(_0x3d1cb3){if(_0x3d1cb3 instanceof Error)return new FailedAccountResponse({'detail':_0x3d1cb3['message'],'title':_0x3d1cb3['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d1cb3;}});}}
3
+ var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x440ee0,_0x4d4698,_0x5c9b35,_0x372e75){function _0x5ce779(_0x45eabe){return _0x45eabe instanceof _0x5c9b35?_0x45eabe:new _0x5c9b35(function(_0x218a09){_0x218a09(_0x45eabe);});}return new(_0x5c9b35||(_0x5c9b35=Promise))(function(_0x469817,_0x167115){function _0x5ea52c(_0xb03c65){try{_0x4db77b(_0x372e75['next'](_0xb03c65));}catch(_0x4b9afc){_0x167115(_0x4b9afc);}}function _0xd09a18(_0x59cbd6){try{_0x4db77b(_0x372e75['throw'](_0x59cbd6));}catch(_0x4326f5){_0x167115(_0x4326f5);}}function _0x4db77b(_0x39bc74){_0x39bc74['done']?_0x469817(_0x39bc74['value']):_0x5ce779(_0x39bc74['value'])['then'](_0x5ea52c,_0xd09a18);}_0x4db77b((_0x372e75=_0x372e75['apply'](_0x440ee0,_0x4d4698||[]))['next']());});};class AccountService{constructor(_0x2acf12){this['fetch']=_0x2acf12;}['get'](_0x185a48,_0x424f02){return __awaiter$7(this,void 0,void 0,function*(){const _0x520e6f='Account/'+_0x185a48+'/',_0x1f064d=yield this['fetch']['get'](_0x520e6f,_0x424f02);try{if(_0x1f064d['status']>0xc7&&_0x1f064d['status']<0x12c){const _0x3014f4=yield _0x1f064d['json']();return new SuccessfulAccountResponse(_0x3014f4);}const _0x5f44ad=yield _0x1f064d['json']();return new FailedAccountResponse(_0x5f44ad);}catch(_0xd3af48){if(_0xd3af48 instanceof Error)return new FailedAccountResponse({'detail':_0xd3af48['message'],'title':_0xd3af48['name'],'status':0x1f4,'instance':'','type':''});throw _0xd3af48;}});}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x526610,_0x1380e9,_0x1dddee,_0x5384b3){function _0x526f40(_0x3ee4a9){return _0x3ee4a9 instanceof _0x1dddee?_0x3ee4a9:new _0x1dddee(function(_0x1be2c1){_0x1be2c1(_0x3ee4a9);});}return new(_0x1dddee||(_0x1dddee=Promise))(function(_0xebfbd,_0x124629){function _0x6e7350(_0x4a8688){try{_0x2f108d(_0x5384b3['next'](_0x4a8688));}catch(_0x4900b6){_0x124629(_0x4900b6);}}function _0x299729(_0x233fcd){try{_0x2f108d(_0x5384b3['throw'](_0x233fcd));}catch(_0x3c8470){_0x124629(_0x3c8470);}}function _0x2f108d(_0x5c8ed3){_0x5c8ed3['done']?_0xebfbd(_0x5c8ed3['value']):_0x526f40(_0x5c8ed3['value'])['then'](_0x6e7350,_0x299729);}_0x2f108d((_0x5384b3=_0x5384b3['apply'](_0x526610,_0x1380e9||[]))['next']());});};class ApiKeyService{constructor(_0x177474){this['fetch']=_0x177474,this['path']='api-key';}['create'](_0x470b51,_0x2732c5,_0x139e51){return __awaiter$5(this,void 0,void 0,function*(){const _0x57a878={'account_name':_0x470b51,'api_key_name':_0x2732c5};try{const _0x1003d6=yield this['fetch']['post'](this['path'],_0x139e51,_0x57a878);if(_0x1003d6['status']>0xc7&&_0x1003d6['status']<0x12c){const _0x3a7f5a=yield _0x1003d6['json']();return new SuccessfulApiKeyResponse(_0x3a7f5a);}const _0x5a221a=yield _0x1003d6['json']();return new FailedApiKeyResponse(_0x5a221a);}catch(_0x3a64f5){if(_0x3a64f5 instanceof Error)return new FailedApiKeyResponse({'detail':_0x3a64f5['message'],'title':_0x3a64f5['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a64f5;}});}['view'](_0x4f2fae,_0x475cd0,_0x3074ac){return __awaiter$5(this,void 0,void 0,function*(){const _0x116624=this['path']+'/'+_0x4f2fae+'/'+_0x475cd0;try{const _0x46249d=yield this['fetch']['get'](_0x116624,_0x3074ac);if(_0x46249d['status']>0xc7&&_0x46249d['status']<0x12c){const _0x19da7b=yield _0x46249d['json']();return new SuccessfulApiKeyValueResponse(_0x19da7b);}const _0x2e4be1=yield _0x46249d['json']();return new FailedApiKeyValueResponse(_0x2e4be1);}catch(_0x5c98d6){if(_0x5c98d6 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x5c98d6['message'],'title':_0x5c98d6['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c98d6;}});}['delete'](_0x2ce723,_0x79f4cb,_0xdf8f6b){return __awaiter$5(this,void 0,void 0,function*(){const _0x30286a=this['path']+'/'+_0x2ce723+'/'+_0x79f4cb;try{const _0x64a14e=yield this['fetch']['delete'](_0x30286a,_0xdf8f6b);if(_0x64a14e['status']>0xc7&&_0x64a14e['status']<0x12c)return new SuccessfulResponse({});const _0x2d539d=yield _0x64a14e['json']();return new FailedResponse(_0x2d539d);}catch(_0x153567){if(_0x153567 instanceof Error)return new FailedResponse({'detail':_0x153567['message'],'title':_0x153567['name'],'status':0x1f4,'instance':'','type':''});throw _0x153567;}});}}
5
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x2cbc30,_0x58e68b,_0x38af0f,_0x45cd4e){function _0x4ccc0e(_0x300a2f){return _0x300a2f instanceof _0x38af0f?_0x300a2f:new _0x38af0f(function(_0x470bc5){_0x470bc5(_0x300a2f);});}return new(_0x38af0f||(_0x38af0f=Promise))(function(_0x2a674c,_0x4ea263){function _0x38e5ea(_0x1c8d60){try{_0x321bd1(_0x45cd4e['next'](_0x1c8d60));}catch(_0xf89cf3){_0x4ea263(_0xf89cf3);}}function _0x24e147(_0x56ccbf){try{_0x321bd1(_0x45cd4e['throw'](_0x56ccbf));}catch(_0x3cf806){_0x4ea263(_0x3cf806);}}function _0x321bd1(_0x2a0cdc){_0x2a0cdc['done']?_0x2a674c(_0x2a0cdc['value']):_0x4ccc0e(_0x2a0cdc['value'])['then'](_0x38e5ea,_0x24e147);}_0x321bd1((_0x45cd4e=_0x45cd4e['apply'](_0x2cbc30,_0x58e68b||[]))['next']());});};class ApiKeyService{constructor(_0xfe546e){this['fetch']=_0xfe546e,this['path']='api-key';}['create'](_0x258d6a,_0x237251,_0xc56a61){return __awaiter$6(this,void 0,void 0,function*(){const _0x1d8dcd={'account_name':_0x258d6a,'api_key_name':_0x237251};try{const _0x14b43a=yield this['fetch']['post'](this['path'],_0xc56a61,_0x1d8dcd);if(_0x14b43a['status']>0xc7&&_0x14b43a['status']<0x12c){const _0x3c6f42=yield _0x14b43a['json']();return new SuccessfulApiKeyResponse(_0x3c6f42);}const _0x59e9b1=yield _0x14b43a['json']();return new FailedApiKeyResponse(_0x59e9b1);}catch(_0x2ccd96){if(_0x2ccd96 instanceof Error)return new FailedApiKeyResponse({'detail':_0x2ccd96['message'],'title':_0x2ccd96['name'],'status':0x1f4,'instance':'','type':''});throw _0x2ccd96;}});}['view'](_0x30f520,_0x2a215c,_0x1a7c94){return __awaiter$6(this,void 0,void 0,function*(){const _0x33f480=this['path']+'/'+_0x30f520+'/'+_0x2a215c;try{const _0x41ea3c=yield this['fetch']['get'](_0x33f480,_0x1a7c94);if(_0x41ea3c['status']>0xc7&&_0x41ea3c['status']<0x12c){const _0x194ac7=yield _0x41ea3c['json']();return new SuccessfulApiKeyValueResponse(_0x194ac7);}const _0x2d2414=yield _0x41ea3c['json']();return new FailedApiKeyValueResponse(_0x2d2414);}catch(_0x14955c){if(_0x14955c instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x14955c['message'],'title':_0x14955c['name'],'status':0x1f4,'instance':'','type':''});throw _0x14955c;}});}['delete'](_0x2685a2,_0x2446d5,_0x584ab7){return __awaiter$6(this,void 0,void 0,function*(){const _0x422678=this['path']+'/'+_0x2685a2+'/'+_0x2446d5;try{const _0x20d062=yield this['fetch']['delete'](_0x422678,_0x584ab7);if(_0x20d062['status']>0xc7&&_0x20d062['status']<0x12c)return new SuccessfulResponse({});const _0x2c70bc=yield _0x20d062['json']();return new FailedResponse(_0x2c70bc);}catch(_0x530f23){if(_0x530f23 instanceof Error)return new FailedResponse({'detail':_0x530f23['message'],'title':_0x530f23['name'],'status':0x1f4,'instance':'','type':''});throw _0x530f23;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1761ea,_0x27038a,_0x2d432c,_0x40c58e){function _0x18969c(_0xb2f68f){return _0xb2f68f instanceof _0x2d432c?_0xb2f68f:new _0x2d432c(function(_0x30c42a){_0x30c42a(_0xb2f68f);});}return new(_0x2d432c||(_0x2d432c=Promise))(function(_0x2ca703,_0x187df7){function _0x1e7a7e(_0x5b5cf8){try{_0x2c9286(_0x40c58e['next'](_0x5b5cf8));}catch(_0x3d7661){_0x187df7(_0x3d7661);}}function _0x393706(_0x5a52ca){try{_0x2c9286(_0x40c58e['throw'](_0x5a52ca));}catch(_0x6976f7){_0x187df7(_0x6976f7);}}function _0x2c9286(_0x15d342){_0x15d342['done']?_0x2ca703(_0x15d342['value']):_0x18969c(_0x15d342['value'])['then'](_0x1e7a7e,_0x393706);}_0x2c9286((_0x40c58e=_0x40c58e['apply'](_0x1761ea,_0x27038a||[]))['next']());});};class ListService{constructor(_0x2b625f){this['fetch']=_0x2b625f;}['create'](_0x58de1b,_0x1569f2,_0x36d2d3,_0x4f6cd8){return __awaiter$4(this,void 0,void 0,function*(){const _0x243590='List',_0x3a892b={'account_name':_0x58de1b,'list_name':_0x1569f2,'search_service_name':_0x36d2d3};try{const _0x1cb457=yield this['fetch']['post'](_0x243590,_0x4f6cd8,_0x3a892b);if(_0x1cb457['status']>0xc7&&_0x1cb457['status']<0x12c){const _0x322a4a=yield _0x1cb457['json']();return new SuccessfulListIdentityResponse(_0x322a4a);}const _0x1bf52f=yield _0x1cb457['json']();return new FailedListIdentityResponse(_0x1bf52f);}catch(_0x4c94e6){if(_0x4c94e6 instanceof Error)return new FailedListIdentityResponse({'detail':_0x4c94e6['message'],'title':_0x4c94e6['name'],'status':0x1f4,'instance':'','type':''});throw _0x4c94e6;}});}['delete'](_0x53918e,_0x41ca40,_0x2f5544){return __awaiter$4(this,void 0,void 0,function*(){const _0x20c536='List/'+_0x53918e+'/'+_0x41ca40,_0x4b6d91=yield this['fetch']['delete'](_0x20c536,_0x2f5544);try{if(_0x4b6d91['status']>0xc7&&_0x4b6d91['status']<0x12c)return new SuccessfulResponse({});const _0x46f4ef=yield _0x4b6d91['json']();return new FailedResponse(_0x46f4ef);}catch(_0x2cb5a3){if(_0x2cb5a3 instanceof Error)return new FailedResponse({'detail':_0x2cb5a3['message'],'title':_0x2cb5a3['name'],'status':0x1f4,'instance':'','type':''});throw _0x2cb5a3;}});}['get'](_0x58682e,_0x5872c1,_0x1ac7a4){return __awaiter$4(this,void 0,void 0,function*(){const _0x16a554='List/'+_0x58682e+'/'+_0x5872c1;try{const _0x453e45=yield this['fetch']['get'](_0x16a554,_0x1ac7a4);if(_0x453e45['status']>0xc7&&_0x453e45['status']<0x12c){const _0x200c94=yield _0x453e45['json']();return new SuccessfulListResponse(_0x200c94);}const _0x24f733=yield _0x453e45['json']();return new FailedListResponse(_0x24f733);}catch(_0x33e65e){if(_0x33e65e instanceof Error)return new FailedListResponse({'detail':_0x33e65e['message'],'title':_0x33e65e['name'],'status':0x1f4,'instance':'','type':''});throw _0x33e65e;}});}}
7
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x3ea365,_0x3a6dfd,_0x4c7cb0,_0x554fa9){function _0x33966e(_0x1758a9){return _0x1758a9 instanceof _0x4c7cb0?_0x1758a9:new _0x4c7cb0(function(_0x31360f){_0x31360f(_0x1758a9);});}return new(_0x4c7cb0||(_0x4c7cb0=Promise))(function(_0x4e3c7a,_0x158fb3){function _0xc1b03f(_0x5680a7){try{_0x54a781(_0x554fa9['next'](_0x5680a7));}catch(_0x5de310){_0x158fb3(_0x5de310);}}function _0x5d2d42(_0x2f0eb2){try{_0x54a781(_0x554fa9['throw'](_0x2f0eb2));}catch(_0x14727c){_0x158fb3(_0x14727c);}}function _0x54a781(_0x1b3117){_0x1b3117['done']?_0x4e3c7a(_0x1b3117['value']):_0x33966e(_0x1b3117['value'])['then'](_0xc1b03f,_0x5d2d42);}_0x54a781((_0x554fa9=_0x554fa9['apply'](_0x3ea365,_0x3a6dfd||[]))['next']());});};class ListService{constructor(_0x59d26a){this['fetch']=_0x59d26a;}['create'](_0x48cbf9,_0x5d166e,_0x4c238e,_0x117b77){return __awaiter$5(this,void 0,void 0,function*(){const _0x6a247a='List',_0x4ff475={'account_name':_0x48cbf9,'list_name':_0x5d166e,'search_service_name':_0x4c238e};try{const _0x569ec3=yield this['fetch']['post'](_0x6a247a,_0x117b77,_0x4ff475);if(_0x569ec3['status']>0xc7&&_0x569ec3['status']<0x12c){const _0x3f13f8=yield _0x569ec3['json']();return new SuccessfulListIdentityResponse(_0x3f13f8);}const _0x5d38e=yield _0x569ec3['json']();return new FailedListIdentityResponse(_0x5d38e);}catch(_0x5225db){if(_0x5225db instanceof Error)return new FailedListIdentityResponse({'detail':_0x5225db['message'],'title':_0x5225db['name'],'status':0x1f4,'instance':'','type':''});throw _0x5225db;}});}['delete'](_0x43a05b,_0x59d2b0,_0x55e8c7){return __awaiter$5(this,void 0,void 0,function*(){const _0x283380='List/'+_0x43a05b+'/'+_0x59d2b0,_0x33ab59=yield this['fetch']['delete'](_0x283380,_0x55e8c7);try{if(_0x33ab59['status']>0xc7&&_0x33ab59['status']<0x12c)return new SuccessfulResponse({});const _0xb3340a=yield _0x33ab59['json']();return new FailedResponse(_0xb3340a);}catch(_0x14f1bb){if(_0x14f1bb instanceof Error)return new FailedResponse({'detail':_0x14f1bb['message'],'title':_0x14f1bb['name'],'status':0x1f4,'instance':'','type':''});throw _0x14f1bb;}});}['get'](_0x2f6b9d,_0x5d76e6,_0x33def4){return __awaiter$5(this,void 0,void 0,function*(){const _0xfbbfd4='List/'+_0x2f6b9d+'/'+_0x5d76e6;try{const _0x401fff=yield this['fetch']['get'](_0xfbbfd4,_0x33def4);if(_0x401fff['status']>0xc7&&_0x401fff['status']<0x12c){const _0x3447aa=yield _0x401fff['json']();return new SuccessfulListResponse(_0x3447aa);}const _0x3ca5da=yield _0x401fff['json']();return new FailedListResponse(_0x3ca5da);}catch(_0x5d3007){if(_0x5d3007 instanceof Error)return new FailedListResponse({'detail':_0x5d3007['message'],'title':_0x5d3007['name'],'status':0x1f4,'instance':'','type':''});throw _0x5d3007;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1b368c,_0x2bee26,_0x154175,_0x1e5677){function _0x4559ee(_0x9f2aaf){return _0x9f2aaf instanceof _0x154175?_0x9f2aaf:new _0x154175(function(_0x535bab){_0x535bab(_0x9f2aaf);});}return new(_0x154175||(_0x154175=Promise))(function(_0x1ca141,_0x3a0b7c){function _0x418e01(_0x4a9477){try{_0x4d83e6(_0x1e5677['next'](_0x4a9477));}catch(_0x292987){_0x3a0b7c(_0x292987);}}function _0x959bfb(_0x5839fc){try{_0x4d83e6(_0x1e5677['throw'](_0x5839fc));}catch(_0x1d5b3f){_0x3a0b7c(_0x1d5b3f);}}function _0x4d83e6(_0x1c1c37){_0x1c1c37['done']?_0x1ca141(_0x1c1c37['value']):_0x4559ee(_0x1c1c37['value'])['then'](_0x418e01,_0x959bfb);}_0x4d83e6((_0x1e5677=_0x1e5677['apply'](_0x1b368c,_0x2bee26||[]))['next']());});};class Fetch{constructor(_0x26fdfa){this['baseUri']=_0x26fdfa,this['getUrl']=_0x47f874=>{return _0x47f874['startsWith']('/')&&(_0x47f874=_0x47f874['replace']('/','')),''+this['baseUri']+_0x47f874;},!_0x26fdfa['endsWith']('/')&&(_0x26fdfa=_0x26fdfa+'/');}['get'](_0x175248,_0x4e881c){return __awaiter$3(this,void 0,void 0,function*(){const _0x936837=this['getUrl'](_0x175248);return yield fetch(_0x936837,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4e881c}});});}['post'](_0x2a69b8,_0x41344d,_0x25cf46){return __awaiter$3(this,void 0,void 0,function*(){const _0x48bdae=this['getUrl'](_0x2a69b8);return yield fetch(_0x48bdae,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x41344d},'body':_0x25cf46?JSON['stringify'](_0x25cf46):null});});}['PostNoAuth'](_0x3ad5d3,_0x255c86){return __awaiter$3(this,void 0,void 0,function*(){const _0x472b41=this['getUrl'](_0x3ad5d3);return yield fetch(_0x472b41,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x255c86?JSON['stringify'](_0x255c86):null});});}['put'](_0xa838bd,_0x2bd040,_0x5d5b51){return __awaiter$3(this,void 0,void 0,function*(){const _0xa7dcdb=this['getUrl'](_0xa838bd);return yield fetch(_0xa7dcdb,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2bd040},'body':_0x5d5b51?JSON['stringify'](_0x5d5b51):null});});}['delete'](_0x377262,_0x4ab095){return __awaiter$3(this,void 0,void 0,function*(){const _0x1a1317=this['getUrl'](_0x377262);return yield fetch(_0x1a1317,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4ab095}});});}}
9
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x3bf57e,_0x49487f,_0x549065,_0x549461){function _0x305465(_0x1b14fa){return _0x1b14fa instanceof _0x549065?_0x1b14fa:new _0x549065(function(_0x3a9302){_0x3a9302(_0x1b14fa);});}return new(_0x549065||(_0x549065=Promise))(function(_0x5bd393,_0x1ea96a){function _0x33e256(_0x272ffc){try{_0x5ee84d(_0x549461['next'](_0x272ffc));}catch(_0x14d37c){_0x1ea96a(_0x14d37c);}}function _0x485665(_0x207d7e){try{_0x5ee84d(_0x549461['throw'](_0x207d7e));}catch(_0x130075){_0x1ea96a(_0x130075);}}function _0x5ee84d(_0x264153){_0x264153['done']?_0x5bd393(_0x264153['value']):_0x305465(_0x264153['value'])['then'](_0x33e256,_0x485665);}_0x5ee84d((_0x549461=_0x549461['apply'](_0x3bf57e,_0x49487f||[]))['next']());});};class Fetch{constructor(_0x4eae85){this['baseUri']=_0x4eae85,this['getUrl']=_0x3838f9=>{return _0x3838f9['startsWith']('/')&&(_0x3838f9=_0x3838f9['replace']('/','')),''+this['baseUri']+_0x3838f9;},!_0x4eae85['endsWith']('/')&&(_0x4eae85=_0x4eae85+'/');}['get'](_0x5e8846,_0x4bf960){return __awaiter$4(this,void 0,void 0,function*(){const _0x48aa77=this['getUrl'](_0x5e8846);return yield fetch(_0x48aa77,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4bf960}});});}['post'](_0x21c125,_0x45a2ef,_0x347a5f){return __awaiter$4(this,void 0,void 0,function*(){const _0x1eb7c0=this['getUrl'](_0x21c125);return yield fetch(_0x1eb7c0,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x45a2ef},'body':_0x347a5f?JSON['stringify'](_0x347a5f):null});});}['PostNoAuth'](_0x72b1b1,_0x1bcf4e){return __awaiter$4(this,void 0,void 0,function*(){const _0x44d897=this['getUrl'](_0x72b1b1);return yield fetch(_0x44d897,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x1bcf4e?JSON['stringify'](_0x1bcf4e):null});});}['put'](_0x5c086c,_0x2be80f,_0x40bdc8){return __awaiter$4(this,void 0,void 0,function*(){const _0x6b6170=this['getUrl'](_0x5c086c);return yield fetch(_0x6b6170,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2be80f},'body':_0x40bdc8?JSON['stringify'](_0x40bdc8):null});});}['delete'](_0x434fd1,_0x5077d6){return __awaiter$4(this,void 0,void 0,function*(){const _0x1cc436=this['getUrl'](_0x434fd1);return yield fetch(_0x1cc436,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5077d6}});});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x4b3ab6,_0x254734,_0x3fe050,_0x102d3){function _0x292344(_0x473d0c){return _0x473d0c instanceof _0x3fe050?_0x473d0c:new _0x3fe050(function(_0x5287ad){_0x5287ad(_0x473d0c);});}return new(_0x3fe050||(_0x3fe050=Promise))(function(_0x5d6e31,_0x2aba36){function _0x444bb0(_0x54541f){try{_0x1cc1b8(_0x102d3['next'](_0x54541f));}catch(_0x20e341){_0x2aba36(_0x20e341);}}function _0x44e89f(_0x122b04){try{_0x1cc1b8(_0x102d3['throw'](_0x122b04));}catch(_0xb155cf){_0x2aba36(_0xb155cf);}}function _0x1cc1b8(_0x46ce16){_0x46ce16['done']?_0x5d6e31(_0x46ce16['value']):_0x292344(_0x46ce16['value'])['then'](_0x444bb0,_0x44e89f);}_0x1cc1b8((_0x102d3=_0x102d3['apply'](_0x4b3ab6,_0x254734||[]))['next']());});};class SearchServersService{constructor(_0x5b3cfb){this['fetch']=_0x5b3cfb,this['path']='search-services';}['create'](_0xcc86af,_0x5f55f1,_0x3e556d,_0x4e9761,_0x1bd489,_0x1f54b6,_0x468266,_0x483528){return __awaiter$2(this,void 0,void 0,function*(){const _0x3be39a={'account_name':_0xcc86af,'search_service_name':_0x5f55f1,'endpoint':_0x3e556d,'key':_0x4e9761,'country':_0x1bd489,'provider':_0x1f54b6,'index_name':_0x468266};try{const _0x513cb1=yield this['fetch']['post'](this['path'],_0x483528,_0x3be39a);if(_0x513cb1['status']>0xc7&&_0x513cb1['status']<0x12c){const _0x193dd1=yield _0x513cb1['json']();return new SuccessfulSearchServiceResponse(_0x193dd1);}const _0x58bb16=yield _0x513cb1['json']();return new FailedSearchServiceResponse(_0x58bb16);}catch(_0x372fab){if(_0x372fab instanceof Error)return new FailedSearchServiceResponse({'detail':_0x372fab['message'],'title':_0x372fab['name'],'status':0x1f4,'instance':'','type':''});throw _0x372fab;}});}['delete'](_0x5b9b9b,_0x51efaa,_0x4501c7){return __awaiter$2(this,void 0,void 0,function*(){const _0xc42799=this['path']+'/'+_0x5b9b9b+'/'+_0x51efaa;try{const _0x3ae37b=yield this['fetch']['delete'](_0xc42799,_0x4501c7);if(_0x3ae37b['status']>0xc7&&_0x3ae37b['status']<0x12c)return new SuccessfulResponse({});const _0x2aad0f=yield _0x3ae37b['json']();return new FailedResponse(_0x2aad0f);}catch(_0x3a36dc){if(_0x3a36dc instanceof Error)return new FailedResponse({'detail':_0x3a36dc['message'],'title':_0x3a36dc['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a36dc;}});}['view'](_0x1c6573,_0x39e778,_0x45d021){return __awaiter$2(this,void 0,void 0,function*(){const _0xc3028f=this['path']+'/'+_0x1c6573+'/'+_0x39e778;try{const _0x147065=yield this['fetch']['get'](_0xc3028f,_0x45d021);if(_0x147065['status']>0xc7&&_0x147065['status']<0x12c){const _0x503eb4=yield _0x147065['json']();return new SuccessfulViewSearchServiceResponse(_0x503eb4);}const _0x2556fb=yield _0x147065['json']();return new FailedViewSearchServiceResponse(_0x2556fb);}catch(_0x29b21a){if(_0x29b21a instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x29b21a['message'],'title':_0x29b21a['name'],'status':0x1f4,'instance':'','type':''});throw _0x29b21a;}});}['edit'](_0x145ce6,_0x54d7e0,_0x3d6c28,_0x286707,_0x37a73c,_0x1123e7){return __awaiter$2(this,void 0,void 0,function*(){const _0x5e84cb={'account_name':_0x145ce6,'search_service_name':_0x54d7e0,'new_search_service_name':_0x3d6c28,'key':_0x286707,'country':_0x37a73c};try{const _0x5c5ebd=yield this['fetch']['put'](this['path'],_0x1123e7,_0x5e84cb);if(_0x5c5ebd['status']>0xc7&&_0x5c5ebd['status']<0x12c){const _0x27a62e=yield _0x5c5ebd['json']();return new SuccessfulSearchServiceResponse(_0x27a62e);}const _0x542210=yield _0x5c5ebd['json']();return new FailedSearchServiceResponse(_0x542210);}catch(_0x2ac757){if(_0x2ac757 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2ac757['message'],'title':_0x2ac757['name'],'status':0x1f4,'instance':'','type':''});throw _0x2ac757;}});}['list'](_0x35cb86,_0x4c51c3){return __awaiter$2(this,void 0,void 0,function*(){const _0x69bdf4=this['path']+'/'+_0x35cb86;try{const _0xe3ea20=yield this['fetch']['get'](_0x69bdf4,_0x4c51c3);if(_0xe3ea20['status']>0xc7&&_0xe3ea20['status']<0x12c){const _0x555f7e=yield _0xe3ea20['json']();return new SuccessfulListSearchServiceResponse(_0x555f7e);}const _0x12a8d8=yield _0xe3ea20['json']();return new FailedViewSearchServicesResponse(_0x12a8d8);}catch(_0xec7a0){if(_0xec7a0 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0xec7a0['message'],'title':_0xec7a0['name'],'status':0x1f4,'instance':'','type':''});throw _0xec7a0;}});}}
11
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0xab93f4,_0x85ce3c,_0x34a2e7,_0x39d966){function _0x6518f4(_0x5df723){return _0x5df723 instanceof _0x34a2e7?_0x5df723:new _0x34a2e7(function(_0x5ab5fc){_0x5ab5fc(_0x5df723);});}return new(_0x34a2e7||(_0x34a2e7=Promise))(function(_0x4ce416,_0x36589d){function _0x5d1a9f(_0x4adcdd){try{_0x12536c(_0x39d966['next'](_0x4adcdd));}catch(_0x3f4d62){_0x36589d(_0x3f4d62);}}function _0x2b82d5(_0x46ead){try{_0x12536c(_0x39d966['throw'](_0x46ead));}catch(_0xe0b5c6){_0x36589d(_0xe0b5c6);}}function _0x12536c(_0x5b8ff5){_0x5b8ff5['done']?_0x4ce416(_0x5b8ff5['value']):_0x6518f4(_0x5b8ff5['value'])['then'](_0x5d1a9f,_0x2b82d5);}_0x12536c((_0x39d966=_0x39d966['apply'](_0xab93f4,_0x85ce3c||[]))['next']());});};class SearchServersService{constructor(_0x360fd8){this['fetch']=_0x360fd8,this['path']='search-services';}['create'](_0x59cc7a,_0x4a3fb9,_0x334bcc,_0x5a5080,_0x2bf3e1,_0x54817a,_0x405f86,_0x15293d){return __awaiter$3(this,void 0,void 0,function*(){const _0x2503dd={'account_name':_0x59cc7a,'search_service_name':_0x4a3fb9,'endpoint':_0x334bcc,'key':_0x5a5080,'country':_0x2bf3e1,'provider':_0x54817a,'index_name':_0x405f86};try{const _0x486063=yield this['fetch']['post'](this['path'],_0x15293d,_0x2503dd);if(_0x486063['status']>0xc7&&_0x486063['status']<0x12c){const _0x4c2715=yield _0x486063['json']();return new SuccessfulSearchServiceResponse(_0x4c2715);}const _0x1bbe1b=yield _0x486063['json']();return new FailedSearchServiceResponse(_0x1bbe1b);}catch(_0x4bdadc){if(_0x4bdadc instanceof Error)return new FailedSearchServiceResponse({'detail':_0x4bdadc['message'],'title':_0x4bdadc['name'],'status':0x1f4,'instance':'','type':''});throw _0x4bdadc;}});}['delete'](_0x478a67,_0x32b14c,_0x38c609){return __awaiter$3(this,void 0,void 0,function*(){const _0x19d50c=this['path']+'/'+_0x478a67+'/'+_0x32b14c;try{const _0x2e2d46=yield this['fetch']['delete'](_0x19d50c,_0x38c609);if(_0x2e2d46['status']>0xc7&&_0x2e2d46['status']<0x12c)return new SuccessfulResponse({});const _0x31149c=yield _0x2e2d46['json']();return new FailedResponse(_0x31149c);}catch(_0x40942e){if(_0x40942e instanceof Error)return new FailedResponse({'detail':_0x40942e['message'],'title':_0x40942e['name'],'status':0x1f4,'instance':'','type':''});throw _0x40942e;}});}['view'](_0x476b03,_0x2b1021,_0x377df5){return __awaiter$3(this,void 0,void 0,function*(){const _0x3132fe=this['path']+'/'+_0x476b03+'/'+_0x2b1021;try{const _0x471f9c=yield this['fetch']['get'](_0x3132fe,_0x377df5);if(_0x471f9c['status']>0xc7&&_0x471f9c['status']<0x12c){const _0x57de3b=yield _0x471f9c['json']();return new SuccessfulViewSearchServiceResponse(_0x57de3b);}const _0x38971f=yield _0x471f9c['json']();return new FailedViewSearchServiceResponse(_0x38971f);}catch(_0x43f722){if(_0x43f722 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x43f722['message'],'title':_0x43f722['name'],'status':0x1f4,'instance':'','type':''});throw _0x43f722;}});}['edit'](_0x4a2814,_0x50d224,_0x244bb0,_0x62e51d,_0x4884c9,_0x3589d3){return __awaiter$3(this,void 0,void 0,function*(){const _0x37aec4={'account_name':_0x4a2814,'search_service_name':_0x50d224,'new_search_service_name':_0x244bb0,'key':_0x62e51d,'country':_0x4884c9};try{const _0x55aedd=yield this['fetch']['put'](this['path'],_0x3589d3,_0x37aec4);if(_0x55aedd['status']>0xc7&&_0x55aedd['status']<0x12c){const _0x32a102=yield _0x55aedd['json']();return new SuccessfulSearchServiceResponse(_0x32a102);}const _0xf8ad9f=yield _0x55aedd['json']();return new FailedSearchServiceResponse(_0xf8ad9f);}catch(_0x4114ec){if(_0x4114ec instanceof Error)return new FailedSearchServiceResponse({'detail':_0x4114ec['message'],'title':_0x4114ec['name'],'status':0x1f4,'instance':'','type':''});throw _0x4114ec;}});}['list'](_0x5509e9,_0x4e0dc3){return __awaiter$3(this,void 0,void 0,function*(){const _0x54d9cf=this['path']+'/'+_0x5509e9;try{const _0x235c01=yield this['fetch']['get'](_0x54d9cf,_0x4e0dc3);if(_0x235c01['status']>0xc7&&_0x235c01['status']<0x12c){const _0x3e610b=yield _0x235c01['json']();return new SuccessfulListSearchServiceResponse(_0x3e610b);}const _0x202630=yield _0x235c01['json']();return new FailedViewSearchServicesResponse(_0x202630);}catch(_0xe12818){if(_0xe12818 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0xe12818['message'],'title':_0xe12818['name'],'status':0x1f4,'instance':'','type':''});throw _0xe12818;}});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3a5715,_0x3115b8,_0x47b68d,_0xf57f4f){function _0x1b2d87(_0x443478){return _0x443478 instanceof _0x47b68d?_0x443478:new _0x47b68d(function(_0x26efa4){_0x26efa4(_0x443478);});}return new(_0x47b68d||(_0x47b68d=Promise))(function(_0x58549f,_0x419a0b){function _0x3d44bb(_0x25f596){try{_0x2e5934(_0xf57f4f['next'](_0x25f596));}catch(_0x225ab1){_0x419a0b(_0x225ab1);}}function _0x16cc18(_0x16d963){try{_0x2e5934(_0xf57f4f['throw'](_0x16d963));}catch(_0x5d011e){_0x419a0b(_0x5d011e);}}function _0x2e5934(_0x141afc){_0x141afc['done']?_0x58549f(_0x141afc['value']):_0x1b2d87(_0x141afc['value'])['then'](_0x3d44bb,_0x16cc18);}_0x2e5934((_0xf57f4f=_0xf57f4f['apply'](_0x3a5715,_0x3115b8||[]))['next']());});};class FacetService{constructor(_0x477d5d){this['fetch']=_0x477d5d,this['path']='facet';}['create'](_0x39ec9a,_0x48aca5,_0x5a8008,_0x499fa4){return __awaiter$1(this,void 0,void 0,function*(){const _0x3489e7={'account_name':_0x39ec9a,'list_name':_0x48aca5,'facet_name':_0x5a8008};try{const _0x3c50ae=yield this['fetch']['post'](this['path'],_0x499fa4,_0x3489e7);if(_0x3c50ae['status']>0xc7&&_0x3c50ae['status']<0x12c){const _0x1adc2d=yield _0x3c50ae['json']();return new SuccessfulFacetResponse(_0x1adc2d);}const _0x4eacbb=yield _0x3c50ae['json']();return new FailedFacetResponse(_0x4eacbb);}catch(_0x1144ea){if(_0x1144ea instanceof Error)return new FailedFacetResponse({'detail':_0x1144ea['message'],'title':_0x1144ea['name'],'status':0x1f4,'instance':'','type':''});throw _0x1144ea;}});}['remove'](_0xb68341,_0x578d2a,_0x42a70b,_0x20fb3b){return __awaiter$1(this,void 0,void 0,function*(){const _0x1627d9='Facet/'+_0xb68341+'/'+_0x578d2a+'/'+_0x42a70b,_0x2a1e26=yield this['fetch']['delete'](_0x1627d9,_0x20fb3b);try{if(_0x2a1e26['status']>0xc7&&_0x2a1e26['status']<0x12c)return new SuccessfulResponse({});const _0x3700a2=yield _0x2a1e26['json']();return new FailedResponse(_0x3700a2);}catch(_0x5df5cd){if(_0x5df5cd instanceof Error)return new FailedResponse({'detail':_0x5df5cd['message'],'title':_0x5df5cd['name'],'status':0x1f4,'instance':'','type':''});throw _0x5df5cd;}});}['rename'](_0x525af7,_0x4fae51,_0x2a8987,_0x4a5525,_0x4441de){return __awaiter$1(this,void 0,void 0,function*(){const _0xbbfdc4={'account_name':_0x525af7,'list_name':_0x4fae51,'facet_name':_0x2a8987,'new_facet_name':_0x4a5525};try{const _0x42bcf3=yield this['fetch']['put'](this['path'],_0x4441de,_0xbbfdc4);if(_0x42bcf3['status']>0xc7&&_0x42bcf3['status']<0x12c){const _0x53ca71=yield _0x42bcf3['json']();return new SuccessfulFacetResponse(_0x53ca71);}const _0x2ca5de=yield _0x42bcf3['json']();return new FailedFacetResponse(_0x2ca5de);}catch(_0x3eea6e){if(_0x3eea6e instanceof Error)return new FailedFacetResponse({'detail':_0x3eea6e['message'],'title':_0x3eea6e['name'],'status':0x1f4,'instance':'','type':''});throw _0x3eea6e;}});}}
13
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1e963a,_0x30fa23,_0x51512d,_0xa867cc){function _0x541c29(_0xe12bb7){return _0xe12bb7 instanceof _0x51512d?_0xe12bb7:new _0x51512d(function(_0x107777){_0x107777(_0xe12bb7);});}return new(_0x51512d||(_0x51512d=Promise))(function(_0x3eebf3,_0x290378){function _0x477e02(_0x24e4d3){try{_0x1e8186(_0xa867cc['next'](_0x24e4d3));}catch(_0x27fced){_0x290378(_0x27fced);}}function _0x264f87(_0x1d872d){try{_0x1e8186(_0xa867cc['throw'](_0x1d872d));}catch(_0x59b9d1){_0x290378(_0x59b9d1);}}function _0x1e8186(_0x3624c5){_0x3624c5['done']?_0x3eebf3(_0x3624c5['value']):_0x541c29(_0x3624c5['value'])['then'](_0x477e02,_0x264f87);}_0x1e8186((_0xa867cc=_0xa867cc['apply'](_0x1e963a,_0x30fa23||[]))['next']());});};class FacetService{constructor(_0x254451){this['fetch']=_0x254451,this['path']='facet';}['create'](_0x2c2164,_0x2b9613,_0x52da88,_0x27d191){return __awaiter$2(this,void 0,void 0,function*(){const _0x1ed3e4={'account_name':_0x2c2164,'list_name':_0x2b9613,'facet_name':_0x52da88};try{const _0x58cdc6=yield this['fetch']['post'](this['path'],_0x27d191,_0x1ed3e4);if(_0x58cdc6['status']>0xc7&&_0x58cdc6['status']<0x12c){const _0x189d31=yield _0x58cdc6['json']();return new SuccessfulFacetResponse(_0x189d31);}const _0x16ea69=yield _0x58cdc6['json']();return new FailedFacetResponse(_0x16ea69);}catch(_0x3124db){if(_0x3124db instanceof Error)return new FailedFacetResponse({'detail':_0x3124db['message'],'title':_0x3124db['name'],'status':0x1f4,'instance':'','type':''});throw _0x3124db;}});}['remove'](_0x5e9ce1,_0x3e9e92,_0x32efd1,_0xccde16){return __awaiter$2(this,void 0,void 0,function*(){const _0x5069cc='Facet/'+_0x5e9ce1+'/'+_0x3e9e92+'/'+_0x32efd1,_0x3ffdbe=yield this['fetch']['delete'](_0x5069cc,_0xccde16);try{if(_0x3ffdbe['status']>0xc7&&_0x3ffdbe['status']<0x12c)return new SuccessfulResponse({});const _0x202a8d=yield _0x3ffdbe['json']();return new FailedResponse(_0x202a8d);}catch(_0x473ba6){if(_0x473ba6 instanceof Error)return new FailedResponse({'detail':_0x473ba6['message'],'title':_0x473ba6['name'],'status':0x1f4,'instance':'','type':''});throw _0x473ba6;}});}['rename'](_0x107fcd,_0xe52a76,_0x74525e,_0x5ec3bd,_0x539b38){return __awaiter$2(this,void 0,void 0,function*(){const _0x195d52={'account_name':_0x107fcd,'list_name':_0xe52a76,'facet_name':_0x74525e,'new_facet_name':_0x5ec3bd};try{const _0xa25ee5=yield this['fetch']['put'](this['path'],_0x539b38,_0x195d52);if(_0xa25ee5['status']>0xc7&&_0xa25ee5['status']<0x12c){const _0x11dc4b=yield _0xa25ee5['json']();return new SuccessfulFacetResponse(_0x11dc4b);}const _0x464b4c=yield _0xa25ee5['json']();return new FailedFacetResponse(_0x464b4c);}catch(_0x5d1e79){if(_0x5d1e79 instanceof Error)return new FailedFacetResponse({'detail':_0x5d1e79['message'],'title':_0x5d1e79['name'],'status':0x1f4,'instance':'','type':''});throw _0x5d1e79;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x5ca39f,_0x6c92e4,_0x4f28c6,_0x55e757){function _0x3e3412(_0x38c657){return _0x38c657 instanceof _0x4f28c6?_0x38c657:new _0x4f28c6(function(_0x308457){_0x308457(_0x38c657);});}return new(_0x4f28c6||(_0x4f28c6=Promise))(function(_0x4a44e7,_0x971e5a){function _0x540e3e(_0x1e42a3){try{_0x4d2c5e(_0x55e757['next'](_0x1e42a3));}catch(_0x1b3c61){_0x971e5a(_0x1b3c61);}}function _0x144462(_0x19475c){try{_0x4d2c5e(_0x55e757['throw'](_0x19475c));}catch(_0x30d248){_0x971e5a(_0x30d248);}}function _0x4d2c5e(_0x55f73c){_0x55f73c['done']?_0x4a44e7(_0x55f73c['value']):_0x3e3412(_0x55f73c['value'])['then'](_0x540e3e,_0x144462);}_0x4d2c5e((_0x55e757=_0x55e757['apply'](_0x5ca39f,_0x6c92e4||[]))['next']());});};class AdminClient{constructor(_0x2418d5='https://admin.searchability.dev/'){var _0x30804a=new Fetch(_0x2418d5);this['Accounts']=new AccountService(_0x30804a),this['Lists']=new ListService(_0x30804a),this['ApiKeys']=new ApiKeyService(_0x30804a),this['SearchServices']=new SearchServersService(_0x30804a),this['FacetService']=new FacetService(_0x30804a);}}class AuthClient{constructor(_0x5a83e3='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x5a83e3);}['login'](_0x11b953){return __awaiter(this,void 0,void 0,function*(){const _0x57e757='login/'+_0x11b953;try{const _0x2701eb=yield yield fetch(_0x57e757);if(_0x2701eb['status']>0xc7&&_0x2701eb['status']<0x12c){const _0x291b06=yield _0x2701eb['json']();return new SuccessfulAuthResponse(_0x291b06);}const _0x3bfef9=yield _0x2701eb['json']();return new FailedAuthResponse(_0x3bfef9);}catch(_0x504757){if(_0x504757 instanceof Error)return new FailedAuthResponse({'detail':_0x504757['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x504757;}});}['refresh'](_0x1c8012){return __awaiter(this,void 0,void 0,function*(){const _0x44b3e6='refresh',_0x2ce7ec={'refresh_token':_0x1c8012};try{const _0x3b6284=yield this['fetch']['PostNoAuth'](_0x44b3e6,_0x2ce7ec);if(_0x3b6284['status']>0xc7&&_0x3b6284['status']<0x12c){const _0x3b099d=yield _0x3b6284['json']();return new SuccessfulAuthResponse(_0x3b099d);}const _0x5b1aae=yield _0x3b6284['json']();return new FailedAuthResponse(_0x5b1aae);}catch(_0x2cba6d){if(_0x2cba6d instanceof Error)return new FailedAuthResponse({'detail':_0x2cba6d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2cba6d;}});}['getTokenStatus'](_0x157724){if(Date['now']()<_0x157724['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x157724['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
15
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x22900a,_0x449b8d,_0x115f69,_0x3fe0a4){function _0xbdbd86(_0x482d45){return _0x482d45 instanceof _0x115f69?_0x482d45:new _0x115f69(function(_0x37e5fc){_0x37e5fc(_0x482d45);});}return new(_0x115f69||(_0x115f69=Promise))(function(_0x5311ec,_0x282d42){function _0x360b08(_0x41d3b6){try{_0x4844c4(_0x3fe0a4['next'](_0x41d3b6));}catch(_0x221f4c){_0x282d42(_0x221f4c);}}function _0x5b8306(_0x1634a5){try{_0x4844c4(_0x3fe0a4['throw'](_0x1634a5));}catch(_0x2bf37e){_0x282d42(_0x2bf37e);}}function _0x4844c4(_0x15baef){_0x15baef['done']?_0x5311ec(_0x15baef['value']):_0xbdbd86(_0x15baef['value'])['then'](_0x360b08,_0x5b8306);}_0x4844c4((_0x3fe0a4=_0x3fe0a4['apply'](_0x22900a,_0x449b8d||[]))['next']());});};class SearchResultService{constructor(_0x90fbdd){this['fetch']=_0x90fbdd,this['path']='search-result';}['create'](_0x1c951b,_0x5c0c7b,_0x4464e3,_0x49ed6e,_0x58ebce){return __awaiter$1(this,void 0,void 0,function*(){_0x58ebce=_0x58ebce!==null&&_0x58ebce!==void 0?_0x58ebce:{'description':'','keywords':'','resource_1':'','resource_2':'','resource_3':'','latitude':0x0,'longitude':0x0,'facets':new Map()};const _0x16888c=Object['assign']({'account_name':_0x1c951b,'search_result_name':_0x4464e3,'list_name':_0x5c0c7b},_0x58ebce);try{const _0x2e9cdb=yield this['fetch']['post'](this['path'],_0x49ed6e,_0x16888c);if(_0x2e9cdb['status']>0xc7&&_0x2e9cdb['status']<0x12c){const _0x195115=yield _0x2e9cdb['json']();return new SuccessfulViewSearchResultResponse(_0x195115);}const _0x2ac58c=yield _0x2e9cdb['json']();return new FailedSearchResultResponse(_0x2ac58c);}catch(_0x2da2cf){if(_0x2da2cf instanceof Error)return new FailedSearchResultResponse({'detail':_0x2da2cf['message'],'title':_0x2da2cf['name'],'status':0x1f4,'instance':'','type':''});throw _0x2da2cf;}});}}
16
+
17
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x133d4a,_0x181451,_0x3d9174,_0x795e89){function _0x8eb154(_0x190b17){return _0x190b17 instanceof _0x3d9174?_0x190b17:new _0x3d9174(function(_0x5bbb2e){_0x5bbb2e(_0x190b17);});}return new(_0x3d9174||(_0x3d9174=Promise))(function(_0x28e910,_0x75093e){function _0x5579b6(_0x3ab9c8){try{_0x29947(_0x795e89['next'](_0x3ab9c8));}catch(_0x472ec1){_0x75093e(_0x472ec1);}}function _0x3a081a(_0x513292){try{_0x29947(_0x795e89['throw'](_0x513292));}catch(_0x2df526){_0x75093e(_0x2df526);}}function _0x29947(_0x33eabc){_0x33eabc['done']?_0x28e910(_0x33eabc['value']):_0x8eb154(_0x33eabc['value'])['then'](_0x5579b6,_0x3a081a);}_0x29947((_0x795e89=_0x795e89['apply'](_0x133d4a,_0x181451||[]))['next']());});};class AdminClient{constructor(_0x4a1015='https://admin.searchability.dev/'){var _0x31fe68=new Fetch(_0x4a1015);this['Accounts']=new AccountService(_0x31fe68),this['Lists']=new ListService(_0x31fe68),this['ApiKeys']=new ApiKeyService(_0x31fe68),this['SearchServices']=new SearchServersService(_0x31fe68),this['FacetService']=new FacetService(_0x31fe68),this['SearchResults']=new SearchResultService(_0x31fe68);}}class AuthClient{constructor(_0x458bc3='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x458bc3);}['login'](_0x3b98e8){return __awaiter(this,void 0,void 0,function*(){const _0x47d074='login/'+_0x3b98e8;try{const _0x4e136d=yield yield fetch(_0x47d074);if(_0x4e136d['status']>0xc7&&_0x4e136d['status']<0x12c){const _0x4fe21f=yield _0x4e136d['json']();return new SuccessfulAuthResponse(_0x4fe21f);}const _0x1e3932=yield _0x4e136d['json']();return new FailedAuthResponse(_0x1e3932);}catch(_0x16b2a1){if(_0x16b2a1 instanceof Error)return new FailedAuthResponse({'detail':_0x16b2a1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x16b2a1;}});}['refresh'](_0x40ee4e){return __awaiter(this,void 0,void 0,function*(){const _0x2f0f54='refresh',_0x42e5c9={'refresh_token':_0x40ee4e};try{const _0x17403a=yield this['fetch']['PostNoAuth'](_0x2f0f54,_0x42e5c9);if(_0x17403a['status']>0xc7&&_0x17403a['status']<0x12c){const _0x715044=yield _0x17403a['json']();return new SuccessfulAuthResponse(_0x715044);}const _0xdcb983=yield _0x17403a['json']();return new FailedAuthResponse(_0xdcb983);}catch(_0x820461){if(_0x820461 instanceof Error)return new FailedAuthResponse({'detail':_0x820461['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x820461;}});}['getTokenStatus'](_0x39ffb0){if(Date['now']()<_0x39ffb0['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x39ffb0['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
18
 
17
19
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -52,6 +52,13 @@ declare class FacetService {
52
52
  rename(account_name: string, list_name: string, facet_name: string, new_facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
53
53
  }
54
54
 
55
+ declare class SearchResultService {
56
+ private readonly fetch;
57
+ private readonly path;
58
+ constructor(fetch: Fetch);
59
+ create(account_name: string, list_name: string, search_result_name: string, access_token: string, options?: CreateSearchResultOptions | undefined): Promise<Response<SearchResult, Problem>>;
60
+ }
61
+
55
62
  declare class AdminClient {
56
63
  constructor(baseUri?: string);
57
64
  readonly Accounts: AccountService;
@@ -59,6 +66,7 @@ declare class AdminClient {
59
66
  readonly ApiKeys: ApiKeyService;
60
67
  readonly SearchServices: SearchServersService;
61
68
  readonly FacetService: FacetService;
69
+ readonly SearchResults: SearchResultService;
62
70
  }
63
71
  declare class AuthClient {
64
72
  private readonly fetch;
@@ -107,6 +115,13 @@ type Facet = {
107
115
  facet_id: string;
108
116
  facet_name: string;
109
117
  };
118
+ type SearchResult = {
119
+ id: string;
120
+ account_name: string;
121
+ list_name: string;
122
+ search_result_name: string;
123
+ description: string;
124
+ };
110
125
  type SearchService = {
111
126
  search_service_name: string;
112
127
  created: number;
@@ -145,6 +160,16 @@ type Account = {
145
160
  api_keys: ApiKey[];
146
161
  search_services: SearchService[];
147
162
  };
163
+ type CreateSearchResultOptions = {
164
+ description?: string;
165
+ keywords?: string;
166
+ resource_1?: string;
167
+ resource_2?: string;
168
+ resource_3?: string;
169
+ latitude?: number;
170
+ longitude?: number;
171
+ facets?: Map<string, string>;
172
+ };
148
173
  declare class SuccessfulFacetResponse extends Response<Facet, Problem> {
149
174
  readonly facet: Facet;
150
175
  constructor(facet: Facet);
@@ -235,6 +260,18 @@ declare class SuccessfulViewSearchServiceResponse extends Response<SearchService
235
260
  toSuccess(): SearchServiceDetails;
236
261
  toProblem(): Problem;
237
262
  }
263
+ declare class SuccessfulViewSearchResultResponse extends Response<SearchResult, Problem> {
264
+ readonly searchResult: SearchResult;
265
+ constructor(searchResult: SearchResult);
266
+ toSuccess(): SearchResult;
267
+ toProblem(): Problem;
268
+ }
269
+ declare class FailedSearchResultResponse extends Response<SearchResult, Problem> {
270
+ readonly problem: Problem;
271
+ constructor(problem: Problem);
272
+ toSuccess(): SearchResult;
273
+ toProblem(): Problem;
274
+ }
238
275
  declare class SuccessfulListSearchServiceResponse extends Response<SearchService[], Problem> {
239
276
  readonly searchServices: SearchService[];
240
277
  constructor(searchServices: SearchService[]);
@@ -278,4 +315,4 @@ declare class FailedApiKeyValueResponse extends Response<ApiKeyValue, Problem> {
278
315
  toProblem(): Problem;
279
316
  }
280
317
 
281
- export { type Account, AdminClient, type ApiKey, type ApiKeyValue, AuthClient, type Error, type Facet, FailedAccountResponse, FailedApiKeyResponse, FailedApiKeyValueResponse, FailedAuthResponse, FailedFacetResponse, FailedListIdentityResponse, FailedListResponse, FailedResponse, FailedSearchServiceResponse, FailedViewSearchServiceResponse, FailedViewSearchServicesResponse, type List, type ListIdentity, type Problem, type RefreshRequest, Response, type SearchService, type SearchServiceDetails, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulApiKeyValueResponse, SuccessfulAuthResponse, SuccessfulFacetResponse, SuccessfulListIdentityResponse, SuccessfulListResponse, SuccessfulListSearchServiceResponse, SuccessfulResponse, SuccessfulSearchServiceResponse, SuccessfulViewSearchServiceResponse, TokenStatus, Tokens };
318
+ export { type Account, AdminClient, type ApiKey, type ApiKeyValue, AuthClient, type CreateSearchResultOptions, type Error, type Facet, FailedAccountResponse, FailedApiKeyResponse, FailedApiKeyValueResponse, FailedAuthResponse, FailedFacetResponse, FailedListIdentityResponse, FailedListResponse, FailedResponse, FailedSearchResultResponse, FailedSearchServiceResponse, FailedViewSearchServiceResponse, FailedViewSearchServicesResponse, type List, type ListIdentity, type Problem, type RefreshRequest, Response, type SearchResult, type SearchService, type SearchServiceDetails, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulApiKeyValueResponse, SuccessfulAuthResponse, SuccessfulFacetResponse, SuccessfulListIdentityResponse, SuccessfulListResponse, SuccessfulListSearchServiceResponse, SuccessfulResponse, SuccessfulSearchServiceResponse, SuccessfulViewSearchResultResponse, SuccessfulViewSearchServiceResponse, TokenStatus, Tokens };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
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(_0x2bab2b){_0x2bab2b[_0x2bab2b['Ok']=0x0]='Ok',_0x2bab2b[_0x2bab2b['Refresh']=0x1]='Refresh',_0x2bab2b[_0x2bab2b['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(_0x3e60f2){this['isSuccess']=_0x3e60f2;}}class SuccessfulFacetResponse extends Response{constructor(_0x1a600c){super(!![]),this['facet']=_0x1a600c;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x2719f2){super(![]),this['problem']=_0x2719f2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x4ab841){super(!![]),this['account']=_0x4ab841;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x4217a3){super(!![]),this['list']=_0x4217a3;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x6fd8a2){super(!![]),this['list']=_0x6fd8a2;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0xba400c){super(![]),this['problem']=_0xba400c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x157391){super(![]),this['problem']=_0x157391;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x195335){super(![]),this['problem']=_0x195335;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x4fdc2a){super(!![]),this['tokens']=_0x4fdc2a;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x56a721){super(![]),this['problem']=_0x56a721;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x296d33){super(!![]),this['apiKey']=_0x296d33;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x50d08e){super(![]),this['problem']=_0x50d08e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x96db6e){super(!![]),this['searchService']=_0x96db6e;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0xf300df){super(![]),this['problem']=_0xf300df;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x1f98eb){super(!![]),this['searchService']=_0x1f98eb;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2315dd){super(!![]),this['searchServices']=_0x2315dd;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x363c5b){super(![]),this['problem']=_0x363c5b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1560ee){super(![]),this['problem']=_0x1560ee;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0xe6350f){super(!![]),this['apiKeyValue']=_0xe6350f;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x561600){super(!![]),this['obj']=_0x561600;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x114a45){super(![]),this['problem']=_0x114a45;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x507267){super(![]),this['problem']=_0x507267;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x235e6d,_0x58c4ef,_0xb48f59,_0x3351c0){function _0x4c002b(_0x3b44a7){return _0x3b44a7 instanceof _0xb48f59?_0x3b44a7:new _0xb48f59(function(_0x3964fd){_0x3964fd(_0x3b44a7);});}return new(_0xb48f59||(_0xb48f59=Promise))(function(_0x57aef6,_0x2ba469){function _0x100c41(_0x42e38b){try{_0x115773(_0x3351c0['next'](_0x42e38b));}catch(_0x12f9af){_0x2ba469(_0x12f9af);}}function _0x5cf7d2(_0x3aebe6){try{_0x115773(_0x3351c0['throw'](_0x3aebe6));}catch(_0x4697c1){_0x2ba469(_0x4697c1);}}function _0x115773(_0x41dd84){_0x41dd84['done']?_0x57aef6(_0x41dd84['value']):_0x4c002b(_0x41dd84['value'])['then'](_0x100c41,_0x5cf7d2);}_0x115773((_0x3351c0=_0x3351c0['apply'](_0x235e6d,_0x58c4ef||[]))['next']());});};class AccountService{constructor(_0x5c6c12){this['fetch']=_0x5c6c12;}['get'](_0x325173,_0x101e3d){return __awaiter$6(this,void 0,void 0,function*(){const _0x443f8e='Account/'+_0x325173+'/',_0x3da649=yield this['fetch']['get'](_0x443f8e,_0x101e3d);try{if(_0x3da649['status']>0xc7&&_0x3da649['status']<0x12c){const _0x4f74d9=yield _0x3da649['json']();return new SuccessfulAccountResponse(_0x4f74d9);}const _0x202e4c=yield _0x3da649['json']();return new FailedAccountResponse(_0x202e4c);}catch(_0x11f73b){if(_0x11f73b instanceof Error)return new FailedAccountResponse({'detail':_0x11f73b['message'],'title':_0x11f73b['name'],'status':0x1f4,'instance':'','type':''});throw _0x11f73b;}});}}
4
-
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x12b9dd,_0x4f945b,_0x43fbc8,_0x347afc){function _0x2bf90a(_0x142242){return _0x142242 instanceof _0x43fbc8?_0x142242:new _0x43fbc8(function(_0x48dc2a){_0x48dc2a(_0x142242);});}return new(_0x43fbc8||(_0x43fbc8=Promise))(function(_0x5e5b4c,_0x4bfe13){function _0x12ae30(_0xc8ef24){try{_0x4425f9(_0x347afc['next'](_0xc8ef24));}catch(_0x316273){_0x4bfe13(_0x316273);}}function _0x98b184(_0x5c6195){try{_0x4425f9(_0x347afc['throw'](_0x5c6195));}catch(_0x2bdee7){_0x4bfe13(_0x2bdee7);}}function _0x4425f9(_0x2bff11){_0x2bff11['done']?_0x5e5b4c(_0x2bff11['value']):_0x2bf90a(_0x2bff11['value'])['then'](_0x12ae30,_0x98b184);}_0x4425f9((_0x347afc=_0x347afc['apply'](_0x12b9dd,_0x4f945b||[]))['next']());});};class ApiKeyService{constructor(_0x2e01e5){this['fetch']=_0x2e01e5,this['path']='api-key';}['create'](_0x3b53b5,_0xe9d9ed,_0x1681e8){return __awaiter$5(this,void 0,void 0,function*(){const _0x3f17aa={'account_name':_0x3b53b5,'api_key_name':_0xe9d9ed};try{const _0x5ad50c=yield this['fetch']['post'](this['path'],_0x1681e8,_0x3f17aa);if(_0x5ad50c['status']>0xc7&&_0x5ad50c['status']<0x12c){const _0x3f69e9=yield _0x5ad50c['json']();return new SuccessfulApiKeyResponse(_0x3f69e9);}const _0x560b33=yield _0x5ad50c['json']();return new FailedApiKeyResponse(_0x560b33);}catch(_0x3dffce){if(_0x3dffce instanceof Error)return new FailedApiKeyResponse({'detail':_0x3dffce['message'],'title':_0x3dffce['name'],'status':0x1f4,'instance':'','type':''});throw _0x3dffce;}});}['view'](_0x5c10f2,_0x3ea09d,_0x15831a){return __awaiter$5(this,void 0,void 0,function*(){const _0x4c7c5a=this['path']+'/'+_0x5c10f2+'/'+_0x3ea09d;try{const _0x356b3b=yield this['fetch']['get'](_0x4c7c5a,_0x15831a);if(_0x356b3b['status']>0xc7&&_0x356b3b['status']<0x12c){const _0x329711=yield _0x356b3b['json']();return new SuccessfulApiKeyValueResponse(_0x329711);}const _0xc41ed2=yield _0x356b3b['json']();return new FailedApiKeyValueResponse(_0xc41ed2);}catch(_0x1c0180){if(_0x1c0180 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1c0180['message'],'title':_0x1c0180['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c0180;}});}['delete'](_0x24abce,_0x789e3e,_0x580fe8){return __awaiter$5(this,void 0,void 0,function*(){const _0x87f18b=this['path']+'/'+_0x24abce+'/'+_0x789e3e;try{const _0x2da794=yield this['fetch']['delete'](_0x87f18b,_0x580fe8);if(_0x2da794['status']>0xc7&&_0x2da794['status']<0x12c)return new SuccessfulResponse({});const _0x4b3897=yield _0x2da794['json']();return new FailedResponse(_0x4b3897);}catch(_0x5c5e63){if(_0x5c5e63 instanceof Error)return new FailedResponse({'detail':_0x5c5e63['message'],'title':_0x5c5e63['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c5e63;}});}}
6
-
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x49a6d2,_0x45e0de,_0x3760cc,_0x438fe1){function _0xd28cc2(_0x2c28a2){return _0x2c28a2 instanceof _0x3760cc?_0x2c28a2:new _0x3760cc(function(_0x294166){_0x294166(_0x2c28a2);});}return new(_0x3760cc||(_0x3760cc=Promise))(function(_0x26db28,_0xc226da){function _0x379971(_0x13d5d1){try{_0x40945c(_0x438fe1['next'](_0x13d5d1));}catch(_0x55465f){_0xc226da(_0x55465f);}}function _0x3b58df(_0x533de3){try{_0x40945c(_0x438fe1['throw'](_0x533de3));}catch(_0x561510){_0xc226da(_0x561510);}}function _0x40945c(_0x386092){_0x386092['done']?_0x26db28(_0x386092['value']):_0xd28cc2(_0x386092['value'])['then'](_0x379971,_0x3b58df);}_0x40945c((_0x438fe1=_0x438fe1['apply'](_0x49a6d2,_0x45e0de||[]))['next']());});};class ListService{constructor(_0x5ea3e3){this['fetch']=_0x5ea3e3;}['create'](_0x4cfcb3,_0x416475,_0x313b4f,_0x559805){return __awaiter$4(this,void 0,void 0,function*(){const _0x5ccfcd='List',_0x244036={'account_name':_0x4cfcb3,'list_name':_0x416475,'search_service_name':_0x313b4f};try{const _0x26df34=yield this['fetch']['post'](_0x5ccfcd,_0x559805,_0x244036);if(_0x26df34['status']>0xc7&&_0x26df34['status']<0x12c){const _0x3d164f=yield _0x26df34['json']();return new SuccessfulListIdentityResponse(_0x3d164f);}const _0x1849c1=yield _0x26df34['json']();return new FailedListIdentityResponse(_0x1849c1);}catch(_0x20a858){if(_0x20a858 instanceof Error)return new FailedListIdentityResponse({'detail':_0x20a858['message'],'title':_0x20a858['name'],'status':0x1f4,'instance':'','type':''});throw _0x20a858;}});}['delete'](_0x1e9e18,_0x7be4ee,_0x501934){return __awaiter$4(this,void 0,void 0,function*(){const _0x152dec='List/'+_0x1e9e18+'/'+_0x7be4ee,_0x4c1847=yield this['fetch']['delete'](_0x152dec,_0x501934);try{if(_0x4c1847['status']>0xc7&&_0x4c1847['status']<0x12c)return new SuccessfulResponse({});const _0x14a606=yield _0x4c1847['json']();return new FailedResponse(_0x14a606);}catch(_0x105628){if(_0x105628 instanceof Error)return new FailedResponse({'detail':_0x105628['message'],'title':_0x105628['name'],'status':0x1f4,'instance':'','type':''});throw _0x105628;}});}['get'](_0x5881d6,_0x5161d8,_0x431c76){return __awaiter$4(this,void 0,void 0,function*(){const _0x30bf7b='List/'+_0x5881d6+'/'+_0x5161d8;try{const _0xa85965=yield this['fetch']['get'](_0x30bf7b,_0x431c76);if(_0xa85965['status']>0xc7&&_0xa85965['status']<0x12c){const _0x2f5270=yield _0xa85965['json']();return new SuccessfulListResponse(_0x2f5270);}const _0x4bc36f=yield _0xa85965['json']();return new FailedListResponse(_0x4bc36f);}catch(_0x484dc8){if(_0x484dc8 instanceof Error)return new FailedListResponse({'detail':_0x484dc8['message'],'title':_0x484dc8['name'],'status':0x1f4,'instance':'','type':''});throw _0x484dc8;}});}}
8
-
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x3e4a0e,_0x14f03e,_0x88d70a,_0x3ff51e){function _0x36b92d(_0x100a64){return _0x100a64 instanceof _0x88d70a?_0x100a64:new _0x88d70a(function(_0x4ad3f9){_0x4ad3f9(_0x100a64);});}return new(_0x88d70a||(_0x88d70a=Promise))(function(_0x3e16ef,_0x316d79){function _0x1515d9(_0x22311e){try{_0x386574(_0x3ff51e['next'](_0x22311e));}catch(_0x509f9e){_0x316d79(_0x509f9e);}}function _0x5ec8d1(_0x2a142e){try{_0x386574(_0x3ff51e['throw'](_0x2a142e));}catch(_0x3010f5){_0x316d79(_0x3010f5);}}function _0x386574(_0x1745ba){_0x1745ba['done']?_0x3e16ef(_0x1745ba['value']):_0x36b92d(_0x1745ba['value'])['then'](_0x1515d9,_0x5ec8d1);}_0x386574((_0x3ff51e=_0x3ff51e['apply'](_0x3e4a0e,_0x14f03e||[]))['next']());});};class Fetch{constructor(_0x4758ea){this['baseUri']=_0x4758ea,this['getUrl']=_0x1c36ad=>{return _0x1c36ad['startsWith']('/')&&(_0x1c36ad=_0x1c36ad['replace']('/','')),''+this['baseUri']+_0x1c36ad;},!_0x4758ea['endsWith']('/')&&(_0x4758ea=_0x4758ea+'/');}['get'](_0x3c0fd9,_0x362341){return __awaiter$3(this,void 0,void 0,function*(){const _0x17d433=this['getUrl'](_0x3c0fd9);return yield fetch(_0x17d433,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x362341}});});}['post'](_0x51c3a4,_0x410eb4,_0x2fed50){return __awaiter$3(this,void 0,void 0,function*(){const _0x4fb784=this['getUrl'](_0x51c3a4);return yield fetch(_0x4fb784,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x410eb4},'body':_0x2fed50?JSON['stringify'](_0x2fed50):null});});}['PostNoAuth'](_0x251984,_0x222437){return __awaiter$3(this,void 0,void 0,function*(){const _0x17e7ef=this['getUrl'](_0x251984);return yield fetch(_0x17e7ef,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x222437?JSON['stringify'](_0x222437):null});});}['put'](_0x3359c5,_0x56eabf,_0x980bc4){return __awaiter$3(this,void 0,void 0,function*(){const _0x436fb7=this['getUrl'](_0x3359c5);return yield fetch(_0x436fb7,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x56eabf},'body':_0x980bc4?JSON['stringify'](_0x980bc4):null});});}['delete'](_0x4c1700,_0x3f8b9d){return __awaiter$3(this,void 0,void 0,function*(){const _0x30a583=this['getUrl'](_0x4c1700);return yield fetch(_0x30a583,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3f8b9d}});});}}
10
-
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x20010a,_0x438c6b,_0x585390,_0x2aa71e){function _0x56e3ea(_0xae8c5f){return _0xae8c5f instanceof _0x585390?_0xae8c5f:new _0x585390(function(_0x3af072){_0x3af072(_0xae8c5f);});}return new(_0x585390||(_0x585390=Promise))(function(_0x76ee5,_0x59eb2b){function _0x1d8871(_0x162983){try{_0x16dc40(_0x2aa71e['next'](_0x162983));}catch(_0x3cda72){_0x59eb2b(_0x3cda72);}}function _0x1bea3a(_0x451ebd){try{_0x16dc40(_0x2aa71e['throw'](_0x451ebd));}catch(_0x2e164f){_0x59eb2b(_0x2e164f);}}function _0x16dc40(_0x5f4508){_0x5f4508['done']?_0x76ee5(_0x5f4508['value']):_0x56e3ea(_0x5f4508['value'])['then'](_0x1d8871,_0x1bea3a);}_0x16dc40((_0x2aa71e=_0x2aa71e['apply'](_0x20010a,_0x438c6b||[]))['next']());});};class SearchServersService{constructor(_0x4d1670){this['fetch']=_0x4d1670,this['path']='search-services';}['create'](_0x784ff1,_0x5c242d,_0x2350a2,_0x4e95b6,_0x23a7ec,_0x36deb8,_0x133758,_0x5634e2){return __awaiter$2(this,void 0,void 0,function*(){const _0x3d78f6={'account_name':_0x784ff1,'search_service_name':_0x5c242d,'endpoint':_0x2350a2,'key':_0x4e95b6,'country':_0x23a7ec,'provider':_0x36deb8,'index_name':_0x133758};try{const _0x228da4=yield this['fetch']['post'](this['path'],_0x5634e2,_0x3d78f6);if(_0x228da4['status']>0xc7&&_0x228da4['status']<0x12c){const _0x4ca2c=yield _0x228da4['json']();return new SuccessfulSearchServiceResponse(_0x4ca2c);}const _0x2433a7=yield _0x228da4['json']();return new FailedSearchServiceResponse(_0x2433a7);}catch(_0x265739){if(_0x265739 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x265739['message'],'title':_0x265739['name'],'status':0x1f4,'instance':'','type':''});throw _0x265739;}});}['delete'](_0x4d3da2,_0xef83c6,_0x3df065){return __awaiter$2(this,void 0,void 0,function*(){const _0x47416a=this['path']+'/'+_0x4d3da2+'/'+_0xef83c6;try{const _0x561074=yield this['fetch']['delete'](_0x47416a,_0x3df065);if(_0x561074['status']>0xc7&&_0x561074['status']<0x12c)return new SuccessfulResponse({});const _0x3ca9d4=yield _0x561074['json']();return new FailedResponse(_0x3ca9d4);}catch(_0x17f412){if(_0x17f412 instanceof Error)return new FailedResponse({'detail':_0x17f412['message'],'title':_0x17f412['name'],'status':0x1f4,'instance':'','type':''});throw _0x17f412;}});}['view'](_0x14a5f2,_0x18a495,_0x139c0f){return __awaiter$2(this,void 0,void 0,function*(){const _0x360b31=this['path']+'/'+_0x14a5f2+'/'+_0x18a495;try{const _0x355dbc=yield this['fetch']['get'](_0x360b31,_0x139c0f);if(_0x355dbc['status']>0xc7&&_0x355dbc['status']<0x12c){const _0x2e8394=yield _0x355dbc['json']();return new SuccessfulViewSearchServiceResponse(_0x2e8394);}const _0x5d9a21=yield _0x355dbc['json']();return new FailedViewSearchServiceResponse(_0x5d9a21);}catch(_0xfd3dfc){if(_0xfd3dfc instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0xfd3dfc['message'],'title':_0xfd3dfc['name'],'status':0x1f4,'instance':'','type':''});throw _0xfd3dfc;}});}['edit'](_0xe1ab0e,_0x322076,_0x156700,_0x5deeb0,_0x4896c5,_0x3b7e1f){return __awaiter$2(this,void 0,void 0,function*(){const _0x5ac20c={'account_name':_0xe1ab0e,'search_service_name':_0x322076,'new_search_service_name':_0x156700,'key':_0x5deeb0,'country':_0x4896c5};try{const _0x1011bb=yield this['fetch']['put'](this['path'],_0x3b7e1f,_0x5ac20c);if(_0x1011bb['status']>0xc7&&_0x1011bb['status']<0x12c){const _0x2ce36e=yield _0x1011bb['json']();return new SuccessfulSearchServiceResponse(_0x2ce36e);}const _0x34a85a=yield _0x1011bb['json']();return new FailedSearchServiceResponse(_0x34a85a);}catch(_0x4d2e9c){if(_0x4d2e9c instanceof Error)return new FailedSearchServiceResponse({'detail':_0x4d2e9c['message'],'title':_0x4d2e9c['name'],'status':0x1f4,'instance':'','type':''});throw _0x4d2e9c;}});}['list'](_0x255d66,_0x145ade){return __awaiter$2(this,void 0,void 0,function*(){const _0x51c2e6=this['path']+'/'+_0x255d66;try{const _0x467556=yield this['fetch']['get'](_0x51c2e6,_0x145ade);if(_0x467556['status']>0xc7&&_0x467556['status']<0x12c){const _0x57cdba=yield _0x467556['json']();return new SuccessfulListSearchServiceResponse(_0x57cdba);}const _0x59b36b=yield _0x467556['json']();return new FailedViewSearchServicesResponse(_0x59b36b);}catch(_0xb201c8){if(_0xb201c8 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0xb201c8['message'],'title':_0xb201c8['name'],'status':0x1f4,'instance':'','type':''});throw _0xb201c8;}});}}
12
-
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1307d1,_0x364a26,_0xfcf7,_0x3bbea7){function _0x230b0d(_0x24be1e){return _0x24be1e instanceof _0xfcf7?_0x24be1e:new _0xfcf7(function(_0x338235){_0x338235(_0x24be1e);});}return new(_0xfcf7||(_0xfcf7=Promise))(function(_0x5d4cbc,_0x50878b){function _0x2d9f44(_0x37e9ca){try{_0x50ff6a(_0x3bbea7['next'](_0x37e9ca));}catch(_0x1453e2){_0x50878b(_0x1453e2);}}function _0x180dc3(_0x55c84e){try{_0x50ff6a(_0x3bbea7['throw'](_0x55c84e));}catch(_0x5d793b){_0x50878b(_0x5d793b);}}function _0x50ff6a(_0x2b1390){_0x2b1390['done']?_0x5d4cbc(_0x2b1390['value']):_0x230b0d(_0x2b1390['value'])['then'](_0x2d9f44,_0x180dc3);}_0x50ff6a((_0x3bbea7=_0x3bbea7['apply'](_0x1307d1,_0x364a26||[]))['next']());});};class FacetService{constructor(_0x11f994){this['fetch']=_0x11f994,this['path']='facet';}['create'](_0x31b13c,_0xa30180,_0xef68fc,_0x8eae73){return __awaiter$1(this,void 0,void 0,function*(){const _0x4b8ac3={'account_name':_0x31b13c,'list_name':_0xa30180,'facet_name':_0xef68fc};try{const _0x518468=yield this['fetch']['post'](this['path'],_0x8eae73,_0x4b8ac3);if(_0x518468['status']>0xc7&&_0x518468['status']<0x12c){const _0x23875b=yield _0x518468['json']();return new SuccessfulFacetResponse(_0x23875b);}const _0x558d09=yield _0x518468['json']();return new FailedFacetResponse(_0x558d09);}catch(_0x5c738f){if(_0x5c738f instanceof Error)return new FailedFacetResponse({'detail':_0x5c738f['message'],'title':_0x5c738f['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c738f;}});}['remove'](_0x2da63d,_0x6d4408,_0x15a05d,_0x18e218){return __awaiter$1(this,void 0,void 0,function*(){const _0x1b2bca='Facet/'+_0x2da63d+'/'+_0x6d4408+'/'+_0x15a05d,_0x4d051a=yield this['fetch']['delete'](_0x1b2bca,_0x18e218);try{if(_0x4d051a['status']>0xc7&&_0x4d051a['status']<0x12c)return new SuccessfulResponse({});const _0x1fb92e=yield _0x4d051a['json']();return new FailedResponse(_0x1fb92e);}catch(_0x3ec9a8){if(_0x3ec9a8 instanceof Error)return new FailedResponse({'detail':_0x3ec9a8['message'],'title':_0x3ec9a8['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ec9a8;}});}['rename'](_0x13fabc,_0x334b86,_0xcaa9b9,_0x31aa71,_0x3c5274){return __awaiter$1(this,void 0,void 0,function*(){const _0x397dd5={'account_name':_0x13fabc,'list_name':_0x334b86,'facet_name':_0xcaa9b9,'new_facet_name':_0x31aa71};try{const _0x4bd61f=yield this['fetch']['put'](this['path'],_0x3c5274,_0x397dd5);if(_0x4bd61f['status']>0xc7&&_0x4bd61f['status']<0x12c){const _0x1b2675=yield _0x4bd61f['json']();return new SuccessfulFacetResponse(_0x1b2675);}const _0x433e01=yield _0x4bd61f['json']();return new FailedFacetResponse(_0x433e01);}catch(_0x93dee7){if(_0x93dee7 instanceof Error)return new FailedFacetResponse({'detail':_0x93dee7['message'],'title':_0x93dee7['name'],'status':0x1f4,'instance':'','type':''});throw _0x93dee7;}});}}
14
-
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x2f8913,_0x5210a5,_0x430ac8,_0x3b77f1){function _0x51b324(_0x45cd19){return _0x45cd19 instanceof _0x430ac8?_0x45cd19:new _0x430ac8(function(_0x3c7f6a){_0x3c7f6a(_0x45cd19);});}return new(_0x430ac8||(_0x430ac8=Promise))(function(_0x25686f,_0x23562d){function _0xe0d938(_0xb08df0){try{_0x320aee(_0x3b77f1['next'](_0xb08df0));}catch(_0x1d33ef){_0x23562d(_0x1d33ef);}}function _0xff5131(_0x2628f8){try{_0x320aee(_0x3b77f1['throw'](_0x2628f8));}catch(_0x19b4c5){_0x23562d(_0x19b4c5);}}function _0x320aee(_0x1688ff){_0x1688ff['done']?_0x25686f(_0x1688ff['value']):_0x51b324(_0x1688ff['value'])['then'](_0xe0d938,_0xff5131);}_0x320aee((_0x3b77f1=_0x3b77f1['apply'](_0x2f8913,_0x5210a5||[]))['next']());});};class AdminClient{constructor(_0x2f6430='https://admin.searchability.dev/'){var _0x30ee9e=new Fetch(_0x2f6430);this['Accounts']=new AccountService(_0x30ee9e),this['Lists']=new ListService(_0x30ee9e),this['ApiKeys']=new ApiKeyService(_0x30ee9e),this['SearchServices']=new SearchServersService(_0x30ee9e),this['FacetService']=new FacetService(_0x30ee9e);}}class AuthClient{constructor(_0x3d3967='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3d3967);}['login'](_0x5ea2da){return __awaiter(this,void 0,void 0,function*(){const _0x73e1c5='login/'+_0x5ea2da;try{const _0x1413d4=yield yield fetch(_0x73e1c5);if(_0x1413d4['status']>0xc7&&_0x1413d4['status']<0x12c){const _0x106f0b=yield _0x1413d4['json']();return new SuccessfulAuthResponse(_0x106f0b);}const _0x364b08=yield _0x1413d4['json']();return new FailedAuthResponse(_0x364b08);}catch(_0x3c367e){if(_0x3c367e instanceof Error)return new FailedAuthResponse({'detail':_0x3c367e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3c367e;}});}['refresh'](_0x39b232){return __awaiter(this,void 0,void 0,function*(){const _0x2d1d36='refresh',_0x4cded0={'refresh_token':_0x39b232};try{const _0x3b8084=yield this['fetch']['PostNoAuth'](_0x2d1d36,_0x4cded0);if(_0x3b8084['status']>0xc7&&_0x3b8084['status']<0x12c){const _0x6fcbdc=yield _0x3b8084['json']();return new SuccessfulAuthResponse(_0x6fcbdc);}const _0x55fb2c=yield _0x3b8084['json']();return new FailedAuthResponse(_0x55fb2c);}catch(_0x1fda33){if(_0x1fda33 instanceof Error)return new FailedAuthResponse({'detail':_0x1fda33['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1fda33;}});}['getTokenStatus'](_0x73e8ca){if(Date['now']()<_0x73e8ca['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x73e8ca['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
-
17
- export { AdminClient, AuthClient, TokenStatus, Tokens };