@searchability/admin-client 0.0.55 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ var TokenStatus;(function(_0x495424){_0x495424[_0x495424['Ok']=0x0]='Ok',_0x495424[_0x495424['Refresh']=0x1]='Refresh',_0x495424[_0x495424['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0xaaee53){this['isSuccess']=_0xaaee53;}}class SuccessfulFacetResponse extends Response{constructor(_0x54c4b5){super(!![]),this['facet']=_0x54c4b5;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x3a28e3){super(![]),this['problem']=_0x3a28e3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x46ac2f){super(!![]),this['account']=_0x46ac2f;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x477258){super(!![]),this['list']=_0x477258;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x347d65){super(!![]),this['list']=_0x347d65;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4f58f8){super(![]),this['problem']=_0x4f58f8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x1f8a33){super(![]),this['problem']=_0x1f8a33;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x35efd0){super(![]),this['problem']=_0x35efd0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x5914ca){super(!![]),this['tokens']=_0x5914ca;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x35776d){super(![]),this['problem']=_0x35776d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x51251d){super(!![]),this['apiKey']=_0x51251d;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0xea6eed){super(![]),this['problem']=_0xea6eed;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x563109){super(!![]),this['searchService']=_0x563109;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x386946){super(![]),this['problem']=_0x386946;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2e5186){super(!![]),this['searchService']=_0x2e5186;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0xa40001){super(!![]),this['searchServices']=_0xa40001;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x53461d){super(![]),this['problem']=_0x53461d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1e4bda){super(![]),this['problem']=_0x1e4bda;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x1fce2b){super(!![]),this['apiKeyValue']=_0x1fce2b;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x33c4c8){super(!![]),this['obj']=_0x33c4c8;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x2d986a){super(![]),this['problem']=_0x2d986a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x27ff03){super(![]),this['problem']=_0x27ff03;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x2b99b7,_0x1d61f8,_0x52738c,_0x2fa2d5){function _0x40316e(_0x42bd19){return _0x42bd19 instanceof _0x52738c?_0x42bd19:new _0x52738c(function(_0x448478){_0x448478(_0x42bd19);});}return new(_0x52738c||(_0x52738c=Promise))(function(_0x372233,_0x4a4147){function _0x49cb4b(_0x29f259){try{_0x748989(_0x2fa2d5['next'](_0x29f259));}catch(_0x3dc9d0){_0x4a4147(_0x3dc9d0);}}function _0x158729(_0x30ea18){try{_0x748989(_0x2fa2d5['throw'](_0x30ea18));}catch(_0x24d475){_0x4a4147(_0x24d475);}}function _0x748989(_0x18762e){_0x18762e['done']?_0x372233(_0x18762e['value']):_0x40316e(_0x18762e['value'])['then'](_0x49cb4b,_0x158729);}_0x748989((_0x2fa2d5=_0x2fa2d5['apply'](_0x2b99b7,_0x1d61f8||[]))['next']());});};class AccountService{constructor(_0x15f56e){this['fetch']=_0x15f56e;}['get'](_0x5194ff,_0xce4618){return __awaiter$6(this,void 0,void 0,function*(){const _0x2399b4='Account/'+_0x5194ff+'/',_0x3c341c=yield this['fetch']['get'](_0x2399b4,_0xce4618);try{if(_0x3c341c['status']>0xc7&&_0x3c341c['status']<0x12c){const _0x2fa3d7=yield _0x3c341c['json']();return new SuccessfulAccountResponse(_0x2fa3d7);}const _0x49d810=yield _0x3c341c['json']();return new FailedAccountResponse(_0x49d810);}catch(_0x5314a9){if(_0x5314a9 instanceof Error)return new FailedAccountResponse({'detail':_0x5314a9['message'],'title':_0x5314a9['name'],'status':0x1f4,'instance':'','type':''});throw _0x5314a9;}});}}
4
+
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5d37f3,_0x1b9b92,_0x191b49,_0x1d0005){function _0x284415(_0x4639d5){return _0x4639d5 instanceof _0x191b49?_0x4639d5:new _0x191b49(function(_0xf4830e){_0xf4830e(_0x4639d5);});}return new(_0x191b49||(_0x191b49=Promise))(function(_0x5950fc,_0x101a90){function _0x59fa44(_0x62bfa5){try{_0x4a32b3(_0x1d0005['next'](_0x62bfa5));}catch(_0x4aafa6){_0x101a90(_0x4aafa6);}}function _0x1046ed(_0x34e859){try{_0x4a32b3(_0x1d0005['throw'](_0x34e859));}catch(_0x1aea3a){_0x101a90(_0x1aea3a);}}function _0x4a32b3(_0x59f502){_0x59f502['done']?_0x5950fc(_0x59f502['value']):_0x284415(_0x59f502['value'])['then'](_0x59fa44,_0x1046ed);}_0x4a32b3((_0x1d0005=_0x1d0005['apply'](_0x5d37f3,_0x1b9b92||[]))['next']());});};class ApiKeyService{constructor(_0x140e92){this['fetch']=_0x140e92,this['path']='api-key';}['create'](_0x4f6c18,_0x386c09,_0x2345ea){return __awaiter$5(this,void 0,void 0,function*(){const _0x1a4f78={'account_name':_0x4f6c18,'api_key_name':_0x386c09};try{const _0x27d1fe=yield this['fetch']['post'](this['path'],_0x2345ea,_0x1a4f78);if(_0x27d1fe['status']>0xc7&&_0x27d1fe['status']<0x12c){const _0x1e4e10=yield _0x27d1fe['json']();return new SuccessfulApiKeyResponse(_0x1e4e10);}const _0x5b22a1=yield _0x27d1fe['json']();return new FailedApiKeyResponse(_0x5b22a1);}catch(_0x5a959e){if(_0x5a959e instanceof Error)return new FailedApiKeyResponse({'detail':_0x5a959e['message'],'title':_0x5a959e['name'],'status':0x1f4,'instance':'','type':''});throw _0x5a959e;}});}['view'](_0x2869dc,_0x45a779,_0x4462b7){return __awaiter$5(this,void 0,void 0,function*(){const _0x25f5c0=this['path']+'/'+_0x2869dc+'/'+_0x45a779;try{const _0x47fc4f=yield this['fetch']['get'](_0x25f5c0,_0x4462b7);if(_0x47fc4f['status']>0xc7&&_0x47fc4f['status']<0x12c){const _0x5165f5=yield _0x47fc4f['json']();return new SuccessfulApiKeyValueResponse(_0x5165f5);}const _0x28a1f0=yield _0x47fc4f['json']();return new FailedApiKeyValueResponse(_0x28a1f0);}catch(_0x3d3fee){if(_0x3d3fee instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x3d3fee['message'],'title':_0x3d3fee['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d3fee;}});}['delete'](_0x52d12a,_0x1f0a7c,_0x9190bc){return __awaiter$5(this,void 0,void 0,function*(){const _0x1a9df3=this['path']+'/'+_0x52d12a+'/'+_0x1f0a7c;try{const _0x19c084=yield this['fetch']['delete'](_0x1a9df3,_0x9190bc);if(_0x19c084['status']>0xc7&&_0x19c084['status']<0x12c)return new SuccessfulResponse({});const _0x263163=yield _0x19c084['json']();return new FailedResponse(_0x263163);}catch(_0x2764b9){if(_0x2764b9 instanceof Error)return new FailedResponse({'detail':_0x2764b9['message'],'title':_0x2764b9['name'],'status':0x1f4,'instance':'','type':''});throw _0x2764b9;}});}}
6
+
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x48d992,_0x2bfcc4,_0x1c5c80,_0x343e6e){function _0x1e9d26(_0x2f9b6a){return _0x2f9b6a instanceof _0x1c5c80?_0x2f9b6a:new _0x1c5c80(function(_0xe2a901){_0xe2a901(_0x2f9b6a);});}return new(_0x1c5c80||(_0x1c5c80=Promise))(function(_0x294be3,_0x3019cf){function _0x17a8df(_0x131976){try{_0x793485(_0x343e6e['next'](_0x131976));}catch(_0x28ea6c){_0x3019cf(_0x28ea6c);}}function _0x5bc04c(_0x40ac2d){try{_0x793485(_0x343e6e['throw'](_0x40ac2d));}catch(_0x463e5c){_0x3019cf(_0x463e5c);}}function _0x793485(_0x3f313e){_0x3f313e['done']?_0x294be3(_0x3f313e['value']):_0x1e9d26(_0x3f313e['value'])['then'](_0x17a8df,_0x5bc04c);}_0x793485((_0x343e6e=_0x343e6e['apply'](_0x48d992,_0x2bfcc4||[]))['next']());});};class ListService{constructor(_0x12a8f8){this['fetch']=_0x12a8f8;}['create'](_0x2e2d6d,_0x3ea818,_0x37ae29,_0xfbe1fc){return __awaiter$4(this,void 0,void 0,function*(){const _0x398ceb='List',_0x4cf885={'account_name':_0x2e2d6d,'list_name':_0x3ea818,'search_service_name':_0x37ae29};try{const _0x32a73b=yield this['fetch']['post'](_0x398ceb,_0xfbe1fc,_0x4cf885);if(_0x32a73b['status']>0xc7&&_0x32a73b['status']<0x12c){const _0x42d8b1=yield _0x32a73b['json']();return new SuccessfulListIdentityResponse(_0x42d8b1);}const _0x511078=yield _0x32a73b['json']();return new FailedListIdentityResponse(_0x511078);}catch(_0x2a9a65){if(_0x2a9a65 instanceof Error)return new FailedListIdentityResponse({'detail':_0x2a9a65['message'],'title':_0x2a9a65['name'],'status':0x1f4,'instance':'','type':''});throw _0x2a9a65;}});}['delete'](_0x361a94,_0x28b265,_0x358a8e){return __awaiter$4(this,void 0,void 0,function*(){const _0x4786f2='List/'+_0x361a94+'/'+_0x28b265,_0x21d0f0=yield this['fetch']['delete'](_0x4786f2,_0x358a8e);try{if(_0x21d0f0['status']>0xc7&&_0x21d0f0['status']<0x12c)return new SuccessfulResponse({});const _0x19b326=yield _0x21d0f0['json']();return new FailedResponse(_0x19b326);}catch(_0x19d6a3){if(_0x19d6a3 instanceof Error)return new FailedResponse({'detail':_0x19d6a3['message'],'title':_0x19d6a3['name'],'status':0x1f4,'instance':'','type':''});throw _0x19d6a3;}});}['get'](_0x4b804c,_0x3b8ba2,_0x358f97){return __awaiter$4(this,void 0,void 0,function*(){const _0x157675='List/'+_0x4b804c+'/'+_0x3b8ba2;try{const _0x576f81=yield this['fetch']['get'](_0x157675,_0x358f97);if(_0x576f81['status']>0xc7&&_0x576f81['status']<0x12c){const _0x391593=yield _0x576f81['json']();return new SuccessfulListResponse(_0x391593);}const _0x2a2b6c=yield _0x576f81['json']();return new FailedListResponse(_0x2a2b6c);}catch(_0x2b25db){if(_0x2b25db instanceof Error)return new FailedListResponse({'detail':_0x2b25db['message'],'title':_0x2b25db['name'],'status':0x1f4,'instance':'','type':''});throw _0x2b25db;}});}}
8
+
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1a6f2f,_0x236208,_0xe6c495,_0x209783){function _0x466467(_0x2e7390){return _0x2e7390 instanceof _0xe6c495?_0x2e7390:new _0xe6c495(function(_0x4a4ba){_0x4a4ba(_0x2e7390);});}return new(_0xe6c495||(_0xe6c495=Promise))(function(_0x416104,_0x895bc5){function _0x27bbd1(_0x8286ce){try{_0x365bee(_0x209783['next'](_0x8286ce));}catch(_0x4e5ec6){_0x895bc5(_0x4e5ec6);}}function _0x51e474(_0x501bb5){try{_0x365bee(_0x209783['throw'](_0x501bb5));}catch(_0x426e2a){_0x895bc5(_0x426e2a);}}function _0x365bee(_0x325900){_0x325900['done']?_0x416104(_0x325900['value']):_0x466467(_0x325900['value'])['then'](_0x27bbd1,_0x51e474);}_0x365bee((_0x209783=_0x209783['apply'](_0x1a6f2f,_0x236208||[]))['next']());});};class Fetch{constructor(_0x2d4c85){this['baseUri']=_0x2d4c85,this['getUrl']=_0x34d630=>{return _0x34d630['startsWith']('/')&&(_0x34d630=_0x34d630['replace']('/','')),''+this['baseUri']+_0x34d630;},!_0x2d4c85['endsWith']('/')&&(_0x2d4c85=_0x2d4c85+'/');}['get'](_0x291f6f,_0x581d8c){return __awaiter$3(this,void 0,void 0,function*(){const _0x52e91b=this['getUrl'](_0x291f6f);return yield fetch(_0x52e91b,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x581d8c}});});}['post'](_0x4d8587,_0x51f8c2,_0x541e50){return __awaiter$3(this,void 0,void 0,function*(){const _0x49d9ca=this['getUrl'](_0x4d8587);return yield fetch(_0x49d9ca,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x51f8c2},'body':_0x541e50?JSON['stringify'](_0x541e50):null});});}['PostNoAuth'](_0xbb2ca8,_0x5d941d){return __awaiter$3(this,void 0,void 0,function*(){const _0x54f7fc=this['getUrl'](_0xbb2ca8);return yield fetch(_0x54f7fc,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5d941d?JSON['stringify'](_0x5d941d):null});});}['put'](_0x4301ef,_0x30c317,_0xa27aa4){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a7698=this['getUrl'](_0x4301ef);return yield fetch(_0x2a7698,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x30c317},'body':_0xa27aa4?JSON['stringify'](_0xa27aa4):null});});}['delete'](_0x298663,_0x38e0e7){return __awaiter$3(this,void 0,void 0,function*(){const _0x4d43ae=this['getUrl'](_0x298663);return yield fetch(_0x4d43ae,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x38e0e7}});});}}
10
+
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x49acac,_0x23dae4,_0xaf67f1,_0x5e50c8){function _0x2c6877(_0x1d5c4a){return _0x1d5c4a instanceof _0xaf67f1?_0x1d5c4a:new _0xaf67f1(function(_0x5c258c){_0x5c258c(_0x1d5c4a);});}return new(_0xaf67f1||(_0xaf67f1=Promise))(function(_0x11543f,_0x471d4c){function _0x3303b1(_0x503eab){try{_0x1f4c6c(_0x5e50c8['next'](_0x503eab));}catch(_0x1b33f5){_0x471d4c(_0x1b33f5);}}function _0x1b2e84(_0x2b7df6){try{_0x1f4c6c(_0x5e50c8['throw'](_0x2b7df6));}catch(_0x304be3){_0x471d4c(_0x304be3);}}function _0x1f4c6c(_0x1ee8bc){_0x1ee8bc['done']?_0x11543f(_0x1ee8bc['value']):_0x2c6877(_0x1ee8bc['value'])['then'](_0x3303b1,_0x1b2e84);}_0x1f4c6c((_0x5e50c8=_0x5e50c8['apply'](_0x49acac,_0x23dae4||[]))['next']());});};class SearchServersService{constructor(_0x28ac60){this['fetch']=_0x28ac60,this['path']='search-services';}['create'](_0xeaded6,_0x4a70fc,_0x35aeed,_0x6f2213,_0x8e6715,_0x2dbab2,_0x6b319,_0x3c2a96){return __awaiter$2(this,void 0,void 0,function*(){const _0xb85387={'account_name':_0xeaded6,'search_service_name':_0x4a70fc,'endpoint':_0x35aeed,'key':_0x6f2213,'country':_0x8e6715,'provider':_0x2dbab2,'index_name':_0x6b319};try{const _0x15d3fc=yield this['fetch']['post'](this['path'],_0x3c2a96,_0xb85387);if(_0x15d3fc['status']>0xc7&&_0x15d3fc['status']<0x12c){const _0x1091ee=yield _0x15d3fc['json']();return new SuccessfulSearchServiceResponse(_0x1091ee);}const _0x432288=yield _0x15d3fc['json']();return new FailedSearchServiceResponse(_0x432288);}catch(_0x5c9270){if(_0x5c9270 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5c9270['message'],'title':_0x5c9270['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c9270;}});}['delete'](_0x56d97,_0x25f6d5,_0x464ba5){return __awaiter$2(this,void 0,void 0,function*(){const _0x72e93=this['path']+'/'+_0x56d97+'/'+_0x25f6d5;try{const _0xe46b36=yield this['fetch']['delete'](_0x72e93,_0x464ba5);if(_0xe46b36['status']>0xc7&&_0xe46b36['status']<0x12c)return new SuccessfulResponse({});const _0x102bb8=yield _0xe46b36['json']();return new FailedResponse(_0x102bb8);}catch(_0x4a14c8){if(_0x4a14c8 instanceof Error)return new FailedResponse({'detail':_0x4a14c8['message'],'title':_0x4a14c8['name'],'status':0x1f4,'instance':'','type':''});throw _0x4a14c8;}});}['view'](_0x1159b0,_0x30cdb0,_0x20755a){return __awaiter$2(this,void 0,void 0,function*(){const _0x1dfcc7=this['path']+'/'+_0x1159b0+'/'+_0x30cdb0;try{const _0x34451a=yield this['fetch']['get'](_0x1dfcc7,_0x20755a);if(_0x34451a['status']>0xc7&&_0x34451a['status']<0x12c){const _0x5d6b49=yield _0x34451a['json']();return new SuccessfulViewSearchServiceResponse(_0x5d6b49);}const _0x31379d=yield _0x34451a['json']();return new FailedViewSearchServiceResponse(_0x31379d);}catch(_0x535d1c){if(_0x535d1c instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x535d1c['message'],'title':_0x535d1c['name'],'status':0x1f4,'instance':'','type':''});throw _0x535d1c;}});}['edit'](_0x3121b4,_0x51f3e2,_0x3256e3,_0x47b442,_0x53821f,_0x5449e2){return __awaiter$2(this,void 0,void 0,function*(){const _0x370b9f={'account_name':_0x3121b4,'search_service_name':_0x51f3e2,'new_search_service_name':_0x3256e3,'key':_0x47b442,'country':_0x53821f};try{const _0x41279a=yield this['fetch']['put'](this['path'],_0x5449e2,_0x370b9f);if(_0x41279a['status']>0xc7&&_0x41279a['status']<0x12c){const _0x26ae63=yield _0x41279a['json']();return new SuccessfulSearchServiceResponse(_0x26ae63);}const _0x3a9df3=yield _0x41279a['json']();return new FailedSearchServiceResponse(_0x3a9df3);}catch(_0x3ecb5e){if(_0x3ecb5e instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3ecb5e['message'],'title':_0x3ecb5e['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ecb5e;}});}['list'](_0x5cdbcc,_0x36d496){return __awaiter$2(this,void 0,void 0,function*(){const _0x5e900e=this['path']+'/'+_0x5cdbcc;try{const _0x2aa2b1=yield this['fetch']['get'](_0x5e900e,_0x36d496);if(_0x2aa2b1['status']>0xc7&&_0x2aa2b1['status']<0x12c){const _0x4b666b=yield _0x2aa2b1['json']();return new SuccessfulListSearchServiceResponse(_0x4b666b);}const _0x1dd414=yield _0x2aa2b1['json']();return new FailedViewSearchServicesResponse(_0x1dd414);}catch(_0x254b18){if(_0x254b18 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x254b18['message'],'title':_0x254b18['name'],'status':0x1f4,'instance':'','type':''});throw _0x254b18;}});}}
12
+
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xe43759,_0x48a360,_0x27fb71,_0x6e8f90){function _0x5bc0ae(_0x1bba10){return _0x1bba10 instanceof _0x27fb71?_0x1bba10:new _0x27fb71(function(_0x38c633){_0x38c633(_0x1bba10);});}return new(_0x27fb71||(_0x27fb71=Promise))(function(_0xa1b77d,_0x5f2443){function _0x34dae7(_0x5dae1e){try{_0x2c4908(_0x6e8f90['next'](_0x5dae1e));}catch(_0x50e518){_0x5f2443(_0x50e518);}}function _0x237aa9(_0x5bbd0f){try{_0x2c4908(_0x6e8f90['throw'](_0x5bbd0f));}catch(_0x42ee0f){_0x5f2443(_0x42ee0f);}}function _0x2c4908(_0x39993c){_0x39993c['done']?_0xa1b77d(_0x39993c['value']):_0x5bc0ae(_0x39993c['value'])['then'](_0x34dae7,_0x237aa9);}_0x2c4908((_0x6e8f90=_0x6e8f90['apply'](_0xe43759,_0x48a360||[]))['next']());});};class FacetService{constructor(_0x1d6eb6){this['fetch']=_0x1d6eb6,this['path']='facet';}['create'](_0x5e432e,_0x5e38cf,_0x5c4a66,_0x3e36ed){return __awaiter$1(this,void 0,void 0,function*(){const _0x59f5cf={'account_name':_0x5e432e,'list_name':_0x5e38cf,'facet_name':_0x5c4a66};try{const _0x908545=yield this['fetch']['post'](this['path'],_0x3e36ed,_0x59f5cf);if(_0x908545['status']>0xc7&&_0x908545['status']<0x12c){const _0x4b249b=yield _0x908545['json']();return new SuccessfulFacetResponse(_0x4b249b);}const _0x40e94a=yield _0x908545['json']();return new FailedFacetResponse(_0x40e94a);}catch(_0x359e84){if(_0x359e84 instanceof Error)return new FailedFacetResponse({'detail':_0x359e84['message'],'title':_0x359e84['name'],'status':0x1f4,'instance':'','type':''});throw _0x359e84;}});}['remove'](_0xb3e73b,_0x51036e,_0x48c61d,_0x2fe7bf){return __awaiter$1(this,void 0,void 0,function*(){const _0x44ce9a='Facet/'+_0xb3e73b+'/'+_0x51036e+'/'+_0x48c61d,_0x34f8ba=yield this['fetch']['delete'](_0x44ce9a,_0x2fe7bf);try{if(_0x34f8ba['status']>0xc7&&_0x34f8ba['status']<0x12c)return new SuccessfulResponse({});const _0x42166f=yield _0x34f8ba['json']();return new FailedResponse(_0x42166f);}catch(_0x342751){if(_0x342751 instanceof Error)return new FailedResponse({'detail':_0x342751['message'],'title':_0x342751['name'],'status':0x1f4,'instance':'','type':''});throw _0x342751;}});}['rename'](_0x2b7d1b,_0x519509,_0x518eac,_0x3d6bc5,_0x43dc3f){return __awaiter$1(this,void 0,void 0,function*(){const _0x158fe0={'account_name':_0x2b7d1b,'list_name':_0x519509,'facet_name':_0x518eac,'rename_facet_name':_0x3d6bc5};try{const _0x24e67a=yield this['fetch']['put'](this['path'],_0x43dc3f,_0x158fe0);if(_0x24e67a['status']>0xc7&&_0x24e67a['status']<0x12c){const _0x177816=yield _0x24e67a['json']();return new SuccessfulFacetResponse(_0x177816);}const _0x26e07d=yield _0x24e67a['json']();return new FailedFacetResponse(_0x26e07d);}catch(_0x3443af){if(_0x3443af instanceof Error)return new FailedFacetResponse({'detail':_0x3443af['message'],'title':_0x3443af['name'],'status':0x1f4,'instance':'','type':''});throw _0x3443af;}});}}
14
+
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x3764da,_0x29e2ea,_0x14ad99,_0x1a7a66){function _0x2ab0c7(_0x21f799){return _0x21f799 instanceof _0x14ad99?_0x21f799:new _0x14ad99(function(_0x46dc6c){_0x46dc6c(_0x21f799);});}return new(_0x14ad99||(_0x14ad99=Promise))(function(_0x4020e0,_0x154b52){function _0x394fac(_0x17ad51){try{_0x3e5f9f(_0x1a7a66['next'](_0x17ad51));}catch(_0x42af42){_0x154b52(_0x42af42);}}function _0x200d7a(_0x100d27){try{_0x3e5f9f(_0x1a7a66['throw'](_0x100d27));}catch(_0x51fa54){_0x154b52(_0x51fa54);}}function _0x3e5f9f(_0x266587){_0x266587['done']?_0x4020e0(_0x266587['value']):_0x2ab0c7(_0x266587['value'])['then'](_0x394fac,_0x200d7a);}_0x3e5f9f((_0x1a7a66=_0x1a7a66['apply'](_0x3764da,_0x29e2ea||[]))['next']());});};class AdminClient{constructor(_0x2c6636='https://admin.searchability.dev/'){var _0x379e43=new Fetch(_0x2c6636);this['Accounts']=new AccountService(_0x379e43),this['Lists']=new ListService(_0x379e43),this['ApiKeys']=new ApiKeyService(_0x379e43),this['SearchServices']=new SearchServersService(_0x379e43),this['FacetService']=new FacetService(_0x379e43);}}class AuthClient{constructor(_0x42ed82='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x42ed82);}['login'](_0x4e9981){return __awaiter(this,void 0,void 0,function*(){const _0x177681='login/'+_0x4e9981;try{const _0xcfc0ea=yield yield fetch(_0x177681);if(_0xcfc0ea['status']>0xc7&&_0xcfc0ea['status']<0x12c){const _0x5d9ebf=yield _0xcfc0ea['json']();return new SuccessfulAuthResponse(_0x5d9ebf);}const _0x2706a4=yield _0xcfc0ea['json']();return new FailedAuthResponse(_0x2706a4);}catch(_0x257c66){if(_0x257c66 instanceof Error)return new FailedAuthResponse({'detail':_0x257c66['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x257c66;}});}['refresh'](_0x320cf4){return __awaiter(this,void 0,void 0,function*(){const _0x1c9683='refresh',_0x1828d9={'refresh_token':_0x320cf4};try{const _0x9de37e=yield this['fetch']['PostNoAuth'](_0x1c9683,_0x1828d9);if(_0x9de37e['status']>0xc7&&_0x9de37e['status']<0x12c){const _0x577338=yield _0x9de37e['json']();return new SuccessfulAuthResponse(_0x577338);}const _0x4efc19=yield _0x9de37e['json']();return new FailedAuthResponse(_0x4efc19);}catch(_0x35263c){if(_0x35263c instanceof Error)return new FailedAuthResponse({'detail':_0x35263c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x35263c;}});}['getTokenStatus'](_0x344377){if(Date['now']()<_0x344377['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x344377['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
+
17
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- exports.TokenStatus = void 0;(function(_0x3d5b23){_0x3d5b23[_0x3d5b23['Ok']=0x0]='Ok',_0x3d5b23[_0x3d5b23['Refresh']=0x1]='Refresh',_0x3d5b23[_0x3d5b23['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(_0x1d9072){this['isSuccess']=_0x1d9072;}}class SuccessfulFacetResponse extends Response{constructor(_0x3fb19c){super(!![]),this['facet']=_0x3fb19c;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x560027){super(![]),this['problem']=_0x560027;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x1f5bb0){super(!![]),this['account']=_0x1f5bb0;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x32c074){super(!![]),this['list']=_0x32c074;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x4e881d){super(!![]),this['list']=_0x4e881d;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x2b4e04){super(![]),this['problem']=_0x2b4e04;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x353456){super(![]),this['problem']=_0x353456;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x34262a){super(![]),this['problem']=_0x34262a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x590592){super(!![]),this['tokens']=_0x590592;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x21e759){super(![]),this['problem']=_0x21e759;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5dbb1f){super(!![]),this['apiKey']=_0x5dbb1f;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x10918e){super(![]),this['problem']=_0x10918e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x5f7b6){super(!![]),this['searchService']=_0x5f7b6;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x4097c3){super(![]),this['problem']=_0x4097c3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2fc32a){super(!![]),this['searchService']=_0x2fc32a;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2024da){super(!![]),this['searchServices']=_0x2024da;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x50a22b){super(![]),this['problem']=_0x50a22b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x4feb08){super(![]),this['problem']=_0x4feb08;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x35defd){super(!![]),this['apiKeyValue']=_0x35defd;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x320f98){super(!![]),this['obj']=_0x320f98;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x41c585){super(![]),this['problem']=_0x41c585;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x196974){super(![]),this['problem']=_0x196974;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x16ab0a){_0x16ab0a[_0x16ab0a['Ok']=0x0]='Ok',_0x16ab0a[_0x16ab0a['Refresh']=0x1]='Refresh',_0x16ab0a[_0x16ab0a['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x3f50b5){this['isSuccess']=_0x3f50b5;}}class SuccessfulFacetResponse extends Response{constructor(_0xa67bdd){super(!![]),this['facet']=_0xa67bdd;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x11b4ad){super(![]),this['problem']=_0x11b4ad;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x1a4f75){super(!![]),this['account']=_0x1a4f75;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x5a48ea){super(!![]),this['list']=_0x5a48ea;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x141428){super(!![]),this['list']=_0x141428;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x32458e){super(![]),this['problem']=_0x32458e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x448448){super(![]),this['problem']=_0x448448;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x1b269b){super(![]),this['problem']=_0x1b269b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x165eba){super(!![]),this['tokens']=_0x165eba;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xa609a){super(![]),this['problem']=_0xa609a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1da5b7){super(!![]),this['apiKey']=_0x1da5b7;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1c46df){super(![]),this['problem']=_0x1c46df;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x1176c6){super(!![]),this['searchService']=_0x1176c6;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x2f5d93){super(![]),this['problem']=_0x2f5d93;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x574eaa){super(!![]),this['searchService']=_0x574eaa;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x7c3faf){super(!![]),this['searchServices']=_0x7c3faf;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x24c71d){super(![]),this['problem']=_0x24c71d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x4fbc2f){super(![]),this['problem']=_0x4fbc2f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x354693){super(!![]),this['apiKeyValue']=_0x354693;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x14b65f){super(!![]),this['obj']=_0x14b65f;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x576622){super(![]),this['problem']=_0x576622;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x132636){super(![]),this['problem']=_0x132636;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x58936f,_0x1310b8,_0x5af213,_0x2b3703){function _0x571598(_0x27207b){return _0x27207b instanceof _0x5af213?_0x27207b:new _0x5af213(function(_0x3c1f62){_0x3c1f62(_0x27207b);});}return new(_0x5af213||(_0x5af213=Promise))(function(_0x5a2e55,_0x5681cc){function _0x204b65(_0x1aac16){try{_0x3fb81c(_0x2b3703['next'](_0x1aac16));}catch(_0x221c69){_0x5681cc(_0x221c69);}}function _0xda5688(_0x601f3e){try{_0x3fb81c(_0x2b3703['throw'](_0x601f3e));}catch(_0x4970fa){_0x5681cc(_0x4970fa);}}function _0x3fb81c(_0x38a2e5){_0x38a2e5['done']?_0x5a2e55(_0x38a2e5['value']):_0x571598(_0x38a2e5['value'])['then'](_0x204b65,_0xda5688);}_0x3fb81c((_0x2b3703=_0x2b3703['apply'](_0x58936f,_0x1310b8||[]))['next']());});};class AccountService{constructor(_0x3a9172){this['fetch']=_0x3a9172;}['get'](_0x428e9d,_0x1d0a30){return __awaiter$6(this,void 0,void 0,function*(){const _0x76a809='Account/'+_0x428e9d+'/',_0x55b85f=yield this['fetch']['get'](_0x76a809,_0x1d0a30);try{if(_0x55b85f['status']>0xc7&&_0x55b85f['status']<0x12c){const _0xcab05c=yield _0x55b85f['json']();return new SuccessfulAccountResponse(_0xcab05c);}const _0x43ca30=yield _0x55b85f['json']();return new FailedAccountResponse(_0x43ca30);}catch(_0x51d1bb){if(_0x51d1bb instanceof Error)return new FailedAccountResponse({'detail':_0x51d1bb['message'],'title':_0x51d1bb['name'],'status':0x1f4,'instance':'','type':''});throw _0x51d1bb;}});}}
5
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x228da6,_0x4d932d,_0x4727f5,_0x5015b6){function _0x2cb901(_0x1ffd08){return _0x1ffd08 instanceof _0x4727f5?_0x1ffd08:new _0x4727f5(function(_0x414b80){_0x414b80(_0x1ffd08);});}return new(_0x4727f5||(_0x4727f5=Promise))(function(_0x707cc6,_0x114b84){function _0x177e71(_0x5d59eb){try{_0x43daff(_0x5015b6['next'](_0x5d59eb));}catch(_0x2d09e8){_0x114b84(_0x2d09e8);}}function _0x42f25a(_0xdbbaa1){try{_0x43daff(_0x5015b6['throw'](_0xdbbaa1));}catch(_0x345e3c){_0x114b84(_0x345e3c);}}function _0x43daff(_0x165f26){_0x165f26['done']?_0x707cc6(_0x165f26['value']):_0x2cb901(_0x165f26['value'])['then'](_0x177e71,_0x42f25a);}_0x43daff((_0x5015b6=_0x5015b6['apply'](_0x228da6,_0x4d932d||[]))['next']());});};class AccountService{constructor(_0x79dd4a){this['fetch']=_0x79dd4a;}['get'](_0x3bbe7a,_0x8726b7){return __awaiter$6(this,void 0,void 0,function*(){const _0x3e098d='Account/'+_0x3bbe7a+'/',_0x105d0c=yield this['fetch']['get'](_0x3e098d,_0x8726b7);try{if(_0x105d0c['status']>0xc7&&_0x105d0c['status']<0x12c){const _0x283880=yield _0x105d0c['json']();return new SuccessfulAccountResponse(_0x283880);}const _0x335967=yield _0x105d0c['json']();return new FailedAccountResponse(_0x335967);}catch(_0x458850){if(_0x458850 instanceof Error)return new FailedAccountResponse({'detail':_0x458850['message'],'title':_0x458850['name'],'status':0x1f4,'instance':'','type':''});throw _0x458850;}});}}
6
6
 
7
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x33edac,_0x4ffa12,_0x30f611,_0xf2e42c){function _0x4b6f52(_0x1a4ccd){return _0x1a4ccd instanceof _0x30f611?_0x1a4ccd:new _0x30f611(function(_0x3c0609){_0x3c0609(_0x1a4ccd);});}return new(_0x30f611||(_0x30f611=Promise))(function(_0x1eb3e3,_0x4c3128){function _0xf62fe(_0x213ac4){try{_0x18c31e(_0xf2e42c['next'](_0x213ac4));}catch(_0x4d9d6c){_0x4c3128(_0x4d9d6c);}}function _0x301f46(_0x176eba){try{_0x18c31e(_0xf2e42c['throw'](_0x176eba));}catch(_0x30cefc){_0x4c3128(_0x30cefc);}}function _0x18c31e(_0x47373c){_0x47373c['done']?_0x1eb3e3(_0x47373c['value']):_0x4b6f52(_0x47373c['value'])['then'](_0xf62fe,_0x301f46);}_0x18c31e((_0xf2e42c=_0xf2e42c['apply'](_0x33edac,_0x4ffa12||[]))['next']());});};class ApiKeyService{constructor(_0x2111f7){this['fetch']=_0x2111f7,this['path']='api-key';}['create'](_0x275c77,_0x197c26,_0x35269a){return __awaiter$5(this,void 0,void 0,function*(){const _0x1d0017={'account_name':_0x275c77,'api_key_name':_0x197c26};try{const _0x24e7b1=yield this['fetch']['post'](this['path'],_0x35269a,_0x1d0017);if(_0x24e7b1['status']>0xc7&&_0x24e7b1['status']<0x12c){const _0x1d2de8=yield _0x24e7b1['json']();return new SuccessfulApiKeyResponse(_0x1d2de8);}const _0x12110b=yield _0x24e7b1['json']();return new FailedApiKeyResponse(_0x12110b);}catch(_0x3a8227){if(_0x3a8227 instanceof Error)return new FailedApiKeyResponse({'detail':_0x3a8227['message'],'title':_0x3a8227['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a8227;}});}['view'](_0xbdfbba,_0x317a6c,_0x4e127b){return __awaiter$5(this,void 0,void 0,function*(){const _0x4d77ba=this['path']+'/'+_0xbdfbba+'/'+_0x317a6c;try{const _0x4b61f8=yield this['fetch']['get'](_0x4d77ba,_0x4e127b);if(_0x4b61f8['status']>0xc7&&_0x4b61f8['status']<0x12c){const _0x304d92=yield _0x4b61f8['json']();return new SuccessfulApiKeyValueResponse(_0x304d92);}const _0x2c44d6=yield _0x4b61f8['json']();return new FailedApiKeyValueResponse(_0x2c44d6);}catch(_0x1154a5){if(_0x1154a5 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1154a5['message'],'title':_0x1154a5['name'],'status':0x1f4,'instance':'','type':''});throw _0x1154a5;}});}['delete'](_0x144565,_0x102ae5,_0x3dcbb4){return __awaiter$5(this,void 0,void 0,function*(){const _0x333081=this['path']+'/'+_0x144565+'/'+_0x102ae5;try{const _0x2b6b98=yield this['fetch']['delete'](_0x333081,_0x3dcbb4);if(_0x2b6b98['status']>0xc7&&_0x2b6b98['status']<0x12c)return new SuccessfulResponse({});const _0x4aa578=yield _0x2b6b98['json']();return new FailedResponse(_0x4aa578);}catch(_0x43a7f9){if(_0x43a7f9 instanceof Error)return new FailedResponse({'detail':_0x43a7f9['message'],'title':_0x43a7f9['name'],'status':0x1f4,'instance':'','type':''});throw _0x43a7f9;}});}}
7
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x33ca12,_0x6c0d56,_0x213374,_0x5c7e55){function _0x3b1a5d(_0x136bea){return _0x136bea instanceof _0x213374?_0x136bea:new _0x213374(function(_0x2bdc7c){_0x2bdc7c(_0x136bea);});}return new(_0x213374||(_0x213374=Promise))(function(_0x2fa172,_0x4c1207){function _0x2e2030(_0x4dec0e){try{_0x10779f(_0x5c7e55['next'](_0x4dec0e));}catch(_0x2b33c6){_0x4c1207(_0x2b33c6);}}function _0x42fa5f(_0x30de49){try{_0x10779f(_0x5c7e55['throw'](_0x30de49));}catch(_0x3c7ac4){_0x4c1207(_0x3c7ac4);}}function _0x10779f(_0x35ec5a){_0x35ec5a['done']?_0x2fa172(_0x35ec5a['value']):_0x3b1a5d(_0x35ec5a['value'])['then'](_0x2e2030,_0x42fa5f);}_0x10779f((_0x5c7e55=_0x5c7e55['apply'](_0x33ca12,_0x6c0d56||[]))['next']());});};class ApiKeyService{constructor(_0x4b9ba6){this['fetch']=_0x4b9ba6,this['path']='api-key';}['create'](_0x560da0,_0x1cfdac,_0x182c1c){return __awaiter$5(this,void 0,void 0,function*(){const _0x99f5d={'account_name':_0x560da0,'api_key_name':_0x1cfdac};try{const _0x1fe413=yield this['fetch']['post'](this['path'],_0x182c1c,_0x99f5d);if(_0x1fe413['status']>0xc7&&_0x1fe413['status']<0x12c){const _0x269d2a=yield _0x1fe413['json']();return new SuccessfulApiKeyResponse(_0x269d2a);}const _0x12495c=yield _0x1fe413['json']();return new FailedApiKeyResponse(_0x12495c);}catch(_0x2279c6){if(_0x2279c6 instanceof Error)return new FailedApiKeyResponse({'detail':_0x2279c6['message'],'title':_0x2279c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2279c6;}});}['view'](_0x4164af,_0x4ad28e,_0x41e161){return __awaiter$5(this,void 0,void 0,function*(){const _0x21247f=this['path']+'/'+_0x4164af+'/'+_0x4ad28e;try{const _0x35f210=yield this['fetch']['get'](_0x21247f,_0x41e161);if(_0x35f210['status']>0xc7&&_0x35f210['status']<0x12c){const _0x3f7dd8=yield _0x35f210['json']();return new SuccessfulApiKeyValueResponse(_0x3f7dd8);}const _0x37861e=yield _0x35f210['json']();return new FailedApiKeyValueResponse(_0x37861e);}catch(_0x1285c9){if(_0x1285c9 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1285c9['message'],'title':_0x1285c9['name'],'status':0x1f4,'instance':'','type':''});throw _0x1285c9;}});}['delete'](_0x326431,_0x17045a,_0x16a592){return __awaiter$5(this,void 0,void 0,function*(){const _0x1d6cf6=this['path']+'/'+_0x326431+'/'+_0x17045a;try{const _0x33eb1c=yield this['fetch']['delete'](_0x1d6cf6,_0x16a592);if(_0x33eb1c['status']>0xc7&&_0x33eb1c['status']<0x12c)return new SuccessfulResponse({});const _0x31a892=yield _0x33eb1c['json']();return new FailedResponse(_0x31a892);}catch(_0x202e47){if(_0x202e47 instanceof Error)return new FailedResponse({'detail':_0x202e47['message'],'title':_0x202e47['name'],'status':0x1f4,'instance':'','type':''});throw _0x202e47;}});}}
8
8
 
9
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x28d5b8,_0x709e37,_0x477f2d,_0x5d2c26){function _0xc294fc(_0x15c7ae){return _0x15c7ae instanceof _0x477f2d?_0x15c7ae:new _0x477f2d(function(_0x26d38e){_0x26d38e(_0x15c7ae);});}return new(_0x477f2d||(_0x477f2d=Promise))(function(_0x4e34fa,_0x308818){function _0x3f6e8d(_0x556afe){try{_0xffbe2c(_0x5d2c26['next'](_0x556afe));}catch(_0x1ddc68){_0x308818(_0x1ddc68);}}function _0x381ad8(_0x119b92){try{_0xffbe2c(_0x5d2c26['throw'](_0x119b92));}catch(_0x2de95f){_0x308818(_0x2de95f);}}function _0xffbe2c(_0x55130a){_0x55130a['done']?_0x4e34fa(_0x55130a['value']):_0xc294fc(_0x55130a['value'])['then'](_0x3f6e8d,_0x381ad8);}_0xffbe2c((_0x5d2c26=_0x5d2c26['apply'](_0x28d5b8,_0x709e37||[]))['next']());});};class ListService{constructor(_0x9aa97f){this['fetch']=_0x9aa97f;}['create'](_0x5d8898,_0x16672e,_0x4357bc,_0x217fda){return __awaiter$4(this,void 0,void 0,function*(){const _0x315d0b='List',_0x22f5eb={'account_name':_0x5d8898,'list_name':_0x16672e,'search_service_name':_0x4357bc};try{const _0xd262a7=yield this['fetch']['post'](_0x315d0b,_0x217fda,_0x22f5eb);if(_0xd262a7['status']>0xc7&&_0xd262a7['status']<0x12c){const _0x163603=yield _0xd262a7['json']();return new SuccessfulListIdentityResponse(_0x163603);}const _0x1a9c86=yield _0xd262a7['json']();return new FailedListIdentityResponse(_0x1a9c86);}catch(_0x4e2045){if(_0x4e2045 instanceof Error)return new FailedListIdentityResponse({'detail':_0x4e2045['message'],'title':_0x4e2045['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e2045;}});}['delete'](_0x4a9026,_0x535ec8,_0x29e848){return __awaiter$4(this,void 0,void 0,function*(){const _0x1cefa2='List/'+_0x4a9026+'/'+_0x535ec8,_0x1854d5=yield this['fetch']['delete'](_0x1cefa2,_0x29e848);try{if(_0x1854d5['status']>0xc7&&_0x1854d5['status']<0x12c)return new SuccessfulResponse({});const _0x22365f=yield _0x1854d5['json']();return new FailedResponse(_0x22365f);}catch(_0x56386b){if(_0x56386b instanceof Error)return new FailedResponse({'detail':_0x56386b['message'],'title':_0x56386b['name'],'status':0x1f4,'instance':'','type':''});throw _0x56386b;}});}['get'](_0x40399d,_0xc30306,_0x353187){return __awaiter$4(this,void 0,void 0,function*(){const _0xc49870='List/'+_0x40399d+'/'+_0xc30306;try{const _0x247e5f=yield this['fetch']['get'](_0xc49870,_0x353187);if(_0x247e5f['status']>0xc7&&_0x247e5f['status']<0x12c){const _0x377da6=yield _0x247e5f['json']();return new SuccessfulListResponse(_0x377da6);}const _0x20aa02=yield _0x247e5f['json']();return new FailedListResponse(_0x20aa02);}catch(_0x59b9a2){if(_0x59b9a2 instanceof Error)return new FailedListResponse({'detail':_0x59b9a2['message'],'title':_0x59b9a2['name'],'status':0x1f4,'instance':'','type':''});throw _0x59b9a2;}});}}
9
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x314488,_0xe8cd88,_0x14dc72,_0x11a9e4){function _0x114871(_0x2cc7a3){return _0x2cc7a3 instanceof _0x14dc72?_0x2cc7a3:new _0x14dc72(function(_0x110bc8){_0x110bc8(_0x2cc7a3);});}return new(_0x14dc72||(_0x14dc72=Promise))(function(_0x5b12aa,_0x532aeb){function _0xe091ab(_0x5e881d){try{_0x5e2171(_0x11a9e4['next'](_0x5e881d));}catch(_0x58e627){_0x532aeb(_0x58e627);}}function _0x171628(_0x506fbb){try{_0x5e2171(_0x11a9e4['throw'](_0x506fbb));}catch(_0x220139){_0x532aeb(_0x220139);}}function _0x5e2171(_0x4eb7bf){_0x4eb7bf['done']?_0x5b12aa(_0x4eb7bf['value']):_0x114871(_0x4eb7bf['value'])['then'](_0xe091ab,_0x171628);}_0x5e2171((_0x11a9e4=_0x11a9e4['apply'](_0x314488,_0xe8cd88||[]))['next']());});};class ListService{constructor(_0x202090){this['fetch']=_0x202090;}['create'](_0x23c0cc,_0x131511,_0x34ea46,_0x4f3a79){return __awaiter$4(this,void 0,void 0,function*(){const _0x1f2a0c='List',_0x204d8a={'account_name':_0x23c0cc,'list_name':_0x131511,'search_service_name':_0x34ea46};try{const _0x345c2a=yield this['fetch']['post'](_0x1f2a0c,_0x4f3a79,_0x204d8a);if(_0x345c2a['status']>0xc7&&_0x345c2a['status']<0x12c){const _0x150bf7=yield _0x345c2a['json']();return new SuccessfulListIdentityResponse(_0x150bf7);}const _0x287ddf=yield _0x345c2a['json']();return new FailedListIdentityResponse(_0x287ddf);}catch(_0x4fb6a8){if(_0x4fb6a8 instanceof Error)return new FailedListIdentityResponse({'detail':_0x4fb6a8['message'],'title':_0x4fb6a8['name'],'status':0x1f4,'instance':'','type':''});throw _0x4fb6a8;}});}['delete'](_0x1684e8,_0x45024a,_0x56724a){return __awaiter$4(this,void 0,void 0,function*(){const _0x12e9a6='List/'+_0x1684e8+'/'+_0x45024a,_0x306cd5=yield this['fetch']['delete'](_0x12e9a6,_0x56724a);try{if(_0x306cd5['status']>0xc7&&_0x306cd5['status']<0x12c)return new SuccessfulResponse({});const _0x272b08=yield _0x306cd5['json']();return new FailedResponse(_0x272b08);}catch(_0x3a0bd6){if(_0x3a0bd6 instanceof Error)return new FailedResponse({'detail':_0x3a0bd6['message'],'title':_0x3a0bd6['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a0bd6;}});}['get'](_0x5956e5,_0x441028,_0x22b427){return __awaiter$4(this,void 0,void 0,function*(){const _0x54b1b0='List/'+_0x5956e5+'/'+_0x441028;try{const _0x53a69e=yield this['fetch']['get'](_0x54b1b0,_0x22b427);if(_0x53a69e['status']>0xc7&&_0x53a69e['status']<0x12c){const _0x19d91f=yield _0x53a69e['json']();return new SuccessfulListResponse(_0x19d91f);}const _0x9012b2=yield _0x53a69e['json']();return new FailedListResponse(_0x9012b2);}catch(_0x19d82c){if(_0x19d82c instanceof Error)return new FailedListResponse({'detail':_0x19d82c['message'],'title':_0x19d82c['name'],'status':0x1f4,'instance':'','type':''});throw _0x19d82c;}});}}
10
10
 
11
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1721ce,_0x42fe55,_0x77b26b,_0x41698c){function _0x814bcd(_0x47cd54){return _0x47cd54 instanceof _0x77b26b?_0x47cd54:new _0x77b26b(function(_0x521c0a){_0x521c0a(_0x47cd54);});}return new(_0x77b26b||(_0x77b26b=Promise))(function(_0x42d9fc,_0x45b4e6){function _0x2d2e90(_0x223a98){try{_0x1efe17(_0x41698c['next'](_0x223a98));}catch(_0xbd12f6){_0x45b4e6(_0xbd12f6);}}function _0x438c81(_0x5e537d){try{_0x1efe17(_0x41698c['throw'](_0x5e537d));}catch(_0x1f7e32){_0x45b4e6(_0x1f7e32);}}function _0x1efe17(_0x388bbf){_0x388bbf['done']?_0x42d9fc(_0x388bbf['value']):_0x814bcd(_0x388bbf['value'])['then'](_0x2d2e90,_0x438c81);}_0x1efe17((_0x41698c=_0x41698c['apply'](_0x1721ce,_0x42fe55||[]))['next']());});};class Fetch{constructor(_0x5b6467){this['baseUri']=_0x5b6467,this['getUrl']=_0xcdb8a8=>{return _0xcdb8a8['startsWith']('/')&&(_0xcdb8a8=_0xcdb8a8['replace']('/','')),''+this['baseUri']+_0xcdb8a8;},!_0x5b6467['endsWith']('/')&&(_0x5b6467=_0x5b6467+'/');}['get'](_0x4a2eff,_0x48799c){return __awaiter$3(this,void 0,void 0,function*(){const _0x2dcf15=this['getUrl'](_0x4a2eff);return yield fetch(_0x2dcf15,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x48799c}});});}['post'](_0x4e555e,_0x46c5ad,_0xaf3481){return __awaiter$3(this,void 0,void 0,function*(){const _0x2eec88=this['getUrl'](_0x4e555e);return yield fetch(_0x2eec88,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x46c5ad},'body':_0xaf3481?JSON['stringify'](_0xaf3481):null});});}['PostNoAuth'](_0x244c7e,_0x3c4b41){return __awaiter$3(this,void 0,void 0,function*(){const _0x5b1c24=this['getUrl'](_0x244c7e);return yield fetch(_0x5b1c24,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x3c4b41?JSON['stringify'](_0x3c4b41):null});});}['put'](_0x10e4c3,_0x192c07,_0x47ed2f){return __awaiter$3(this,void 0,void 0,function*(){const _0x1bd8ad=this['getUrl'](_0x10e4c3);return yield fetch(_0x1bd8ad,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x192c07},'body':_0x47ed2f?JSON['stringify'](_0x47ed2f):null});});}['delete'](_0x46b50f,_0x5f25c9){return __awaiter$3(this,void 0,void 0,function*(){const _0x10d8b8=this['getUrl'](_0x46b50f);return yield fetch(_0x10d8b8,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5f25c9}});});}}
11
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x2849e6,_0x3e73d1,_0x5b6bb8,_0x88d733){function _0x348fa4(_0x114774){return _0x114774 instanceof _0x5b6bb8?_0x114774:new _0x5b6bb8(function(_0x377189){_0x377189(_0x114774);});}return new(_0x5b6bb8||(_0x5b6bb8=Promise))(function(_0x5c5f77,_0x103ad9){function _0x25b3a2(_0x49ef47){try{_0x53d5a7(_0x88d733['next'](_0x49ef47));}catch(_0x3efcf4){_0x103ad9(_0x3efcf4);}}function _0x28eb0d(_0x3a1d8c){try{_0x53d5a7(_0x88d733['throw'](_0x3a1d8c));}catch(_0x18cf0e){_0x103ad9(_0x18cf0e);}}function _0x53d5a7(_0x20f7f7){_0x20f7f7['done']?_0x5c5f77(_0x20f7f7['value']):_0x348fa4(_0x20f7f7['value'])['then'](_0x25b3a2,_0x28eb0d);}_0x53d5a7((_0x88d733=_0x88d733['apply'](_0x2849e6,_0x3e73d1||[]))['next']());});};class Fetch{constructor(_0x1bb907){this['baseUri']=_0x1bb907,this['getUrl']=_0x2ebc08=>{return _0x2ebc08['startsWith']('/')&&(_0x2ebc08=_0x2ebc08['replace']('/','')),''+this['baseUri']+_0x2ebc08;},!_0x1bb907['endsWith']('/')&&(_0x1bb907=_0x1bb907+'/');}['get'](_0x2c3d02,_0x3e155b){return __awaiter$3(this,void 0,void 0,function*(){const _0x22a287=this['getUrl'](_0x2c3d02);return yield fetch(_0x22a287,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3e155b}});});}['post'](_0x1221e6,_0x479d6d,_0x2c3856){return __awaiter$3(this,void 0,void 0,function*(){const _0x1414a6=this['getUrl'](_0x1221e6);return yield fetch(_0x1414a6,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x479d6d},'body':_0x2c3856?JSON['stringify'](_0x2c3856):null});});}['PostNoAuth'](_0x20d7eb,_0x2c6692){return __awaiter$3(this,void 0,void 0,function*(){const _0x296c1f=this['getUrl'](_0x20d7eb);return yield fetch(_0x296c1f,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x2c6692?JSON['stringify'](_0x2c6692):null});});}['put'](_0x5d92c2,_0x348b65,_0x73327f){return __awaiter$3(this,void 0,void 0,function*(){const _0x40796b=this['getUrl'](_0x5d92c2);return yield fetch(_0x40796b,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x348b65},'body':_0x73327f?JSON['stringify'](_0x73327f):null});});}['delete'](_0x5dd989,_0x3d1102){return __awaiter$3(this,void 0,void 0,function*(){const _0x44ad7c=this['getUrl'](_0x5dd989);return yield fetch(_0x44ad7c,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3d1102}});});}}
12
12
 
13
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x2d3c16,_0x48cf57,_0x2795c5,_0x5974d7){function _0x3148d5(_0x43790f){return _0x43790f instanceof _0x2795c5?_0x43790f:new _0x2795c5(function(_0x9fba2b){_0x9fba2b(_0x43790f);});}return new(_0x2795c5||(_0x2795c5=Promise))(function(_0x59af15,_0x4650d4){function _0x4c0b53(_0x2b9d18){try{_0x75b0d4(_0x5974d7['next'](_0x2b9d18));}catch(_0x4224c5){_0x4650d4(_0x4224c5);}}function _0x40da73(_0x1d986c){try{_0x75b0d4(_0x5974d7['throw'](_0x1d986c));}catch(_0x57ef84){_0x4650d4(_0x57ef84);}}function _0x75b0d4(_0x72d1d4){_0x72d1d4['done']?_0x59af15(_0x72d1d4['value']):_0x3148d5(_0x72d1d4['value'])['then'](_0x4c0b53,_0x40da73);}_0x75b0d4((_0x5974d7=_0x5974d7['apply'](_0x2d3c16,_0x48cf57||[]))['next']());});};class SearchServersService{constructor(_0x15aea3){this['fetch']=_0x15aea3,this['path']='search-services';}['create'](_0x5c648f,_0x595354,_0x470dfc,_0x5e9592,_0xb590d6,_0x295c72,_0x3e3bcc,_0x3c5fec){return __awaiter$2(this,void 0,void 0,function*(){const _0x527530={'account_name':_0x5c648f,'search_service_name':_0x595354,'endpoint':_0x470dfc,'key':_0x5e9592,'country':_0xb590d6,'provider':_0x295c72,'index_name':_0x3e3bcc};try{const _0x4c930e=yield this['fetch']['post'](this['path'],_0x3c5fec,_0x527530);if(_0x4c930e['status']>0xc7&&_0x4c930e['status']<0x12c){const _0x513786=yield _0x4c930e['json']();return new SuccessfulSearchServiceResponse(_0x513786);}const _0x53b990=yield _0x4c930e['json']();return new FailedSearchServiceResponse(_0x53b990);}catch(_0xbe916a){if(_0xbe916a instanceof Error)return new FailedSearchServiceResponse({'detail':_0xbe916a['message'],'title':_0xbe916a['name'],'status':0x1f4,'instance':'','type':''});throw _0xbe916a;}});}['delete'](_0x1ab9eb,_0x36fcdf,_0x74e9b9){return __awaiter$2(this,void 0,void 0,function*(){const _0x49edf1=this['path']+'/'+_0x1ab9eb+'/'+_0x36fcdf;try{const _0x408f26=yield this['fetch']['delete'](_0x49edf1,_0x74e9b9);if(_0x408f26['status']>0xc7&&_0x408f26['status']<0x12c)return new SuccessfulResponse({});const _0x38a265=yield _0x408f26['json']();return new FailedResponse(_0x38a265);}catch(_0x18890a){if(_0x18890a instanceof Error)return new FailedResponse({'detail':_0x18890a['message'],'title':_0x18890a['name'],'status':0x1f4,'instance':'','type':''});throw _0x18890a;}});}['view'](_0x4aeb44,_0x11c043,_0x182c2b){return __awaiter$2(this,void 0,void 0,function*(){const _0x22d235=this['path']+'/'+_0x4aeb44+'/'+_0x11c043;try{const _0x55963b=yield this['fetch']['get'](_0x22d235,_0x182c2b);if(_0x55963b['status']>0xc7&&_0x55963b['status']<0x12c){const _0x2184e3=yield _0x55963b['json']();return new SuccessfulViewSearchServiceResponse(_0x2184e3);}const _0xa9bf24=yield _0x55963b['json']();return new FailedViewSearchServiceResponse(_0xa9bf24);}catch(_0x14f2f5){if(_0x14f2f5 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x14f2f5['message'],'title':_0x14f2f5['name'],'status':0x1f4,'instance':'','type':''});throw _0x14f2f5;}});}['edit'](_0x420820,_0x110dc2,_0x257e8a,_0x4ecd20,_0x519495,_0x157d4b){return __awaiter$2(this,void 0,void 0,function*(){const _0x342ac0={'account_name':_0x420820,'search_service_name':_0x110dc2,'new_search_service_name':_0x257e8a,'key':_0x4ecd20,'country':_0x519495};try{const _0x5fe4c9=yield this['fetch']['put'](this['path'],_0x157d4b,_0x342ac0);if(_0x5fe4c9['status']>0xc7&&_0x5fe4c9['status']<0x12c){const _0x5a6bdb=yield _0x5fe4c9['json']();return new SuccessfulSearchServiceResponse(_0x5a6bdb);}const _0x59063c=yield _0x5fe4c9['json']();return new FailedSearchServiceResponse(_0x59063c);}catch(_0x304792){if(_0x304792 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x304792['message'],'title':_0x304792['name'],'status':0x1f4,'instance':'','type':''});throw _0x304792;}});}['list'](_0x46d320,_0x45492b){return __awaiter$2(this,void 0,void 0,function*(){const _0x28e5eb=this['path']+'/'+_0x46d320;try{const _0x190e97=yield this['fetch']['get'](_0x28e5eb,_0x45492b);if(_0x190e97['status']>0xc7&&_0x190e97['status']<0x12c){const _0x2039ec=yield _0x190e97['json']();return new SuccessfulListSearchServiceResponse(_0x2039ec);}const _0x1b7de0=yield _0x190e97['json']();return new FailedViewSearchServicesResponse(_0x1b7de0);}catch(_0x191b8b){if(_0x191b8b instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x191b8b['message'],'title':_0x191b8b['name'],'status':0x1f4,'instance':'','type':''});throw _0x191b8b;}});}}
13
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x41996e,_0x5c26cd,_0x359c63,_0x21f1b2){function _0x56f2ac(_0x5d84ab){return _0x5d84ab instanceof _0x359c63?_0x5d84ab:new _0x359c63(function(_0x4c057a){_0x4c057a(_0x5d84ab);});}return new(_0x359c63||(_0x359c63=Promise))(function(_0x81a4ed,_0x179c4f){function _0x43d162(_0x54e048){try{_0x1c7f87(_0x21f1b2['next'](_0x54e048));}catch(_0x2eaa13){_0x179c4f(_0x2eaa13);}}function _0x2050f2(_0x8126d4){try{_0x1c7f87(_0x21f1b2['throw'](_0x8126d4));}catch(_0x24ac06){_0x179c4f(_0x24ac06);}}function _0x1c7f87(_0x58d87c){_0x58d87c['done']?_0x81a4ed(_0x58d87c['value']):_0x56f2ac(_0x58d87c['value'])['then'](_0x43d162,_0x2050f2);}_0x1c7f87((_0x21f1b2=_0x21f1b2['apply'](_0x41996e,_0x5c26cd||[]))['next']());});};class SearchServersService{constructor(_0x20b5ec){this['fetch']=_0x20b5ec,this['path']='search-services';}['create'](_0x5e097b,_0x257fcd,_0x5047fd,_0x32d3f1,_0x17bee8,_0x4eb72d,_0x41ef9e,_0xec87f8){return __awaiter$2(this,void 0,void 0,function*(){const _0x47a6a1={'account_name':_0x5e097b,'search_service_name':_0x257fcd,'endpoint':_0x5047fd,'key':_0x32d3f1,'country':_0x17bee8,'provider':_0x4eb72d,'index_name':_0x41ef9e};try{const _0x23c44b=yield this['fetch']['post'](this['path'],_0xec87f8,_0x47a6a1);if(_0x23c44b['status']>0xc7&&_0x23c44b['status']<0x12c){const _0x4bcc2c=yield _0x23c44b['json']();return new SuccessfulSearchServiceResponse(_0x4bcc2c);}const _0x526bd8=yield _0x23c44b['json']();return new FailedSearchServiceResponse(_0x526bd8);}catch(_0x34b80b){if(_0x34b80b instanceof Error)return new FailedSearchServiceResponse({'detail':_0x34b80b['message'],'title':_0x34b80b['name'],'status':0x1f4,'instance':'','type':''});throw _0x34b80b;}});}['delete'](_0x457728,_0x137f3d,_0x5e40d9){return __awaiter$2(this,void 0,void 0,function*(){const _0x5ed98d=this['path']+'/'+_0x457728+'/'+_0x137f3d;try{const _0x37877c=yield this['fetch']['delete'](_0x5ed98d,_0x5e40d9);if(_0x37877c['status']>0xc7&&_0x37877c['status']<0x12c)return new SuccessfulResponse({});const _0x2b8806=yield _0x37877c['json']();return new FailedResponse(_0x2b8806);}catch(_0x4b0c33){if(_0x4b0c33 instanceof Error)return new FailedResponse({'detail':_0x4b0c33['message'],'title':_0x4b0c33['name'],'status':0x1f4,'instance':'','type':''});throw _0x4b0c33;}});}['view'](_0x4f8cf8,_0x2253a6,_0x428d57){return __awaiter$2(this,void 0,void 0,function*(){const _0x5211bb=this['path']+'/'+_0x4f8cf8+'/'+_0x2253a6;try{const _0x13dda5=yield this['fetch']['get'](_0x5211bb,_0x428d57);if(_0x13dda5['status']>0xc7&&_0x13dda5['status']<0x12c){const _0x82027f=yield _0x13dda5['json']();return new SuccessfulViewSearchServiceResponse(_0x82027f);}const _0x47b0b0=yield _0x13dda5['json']();return new FailedViewSearchServiceResponse(_0x47b0b0);}catch(_0x317855){if(_0x317855 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x317855['message'],'title':_0x317855['name'],'status':0x1f4,'instance':'','type':''});throw _0x317855;}});}['edit'](_0x4446fc,_0xf8a1da,_0x684202,_0x6e7417,_0x576171,_0x498772){return __awaiter$2(this,void 0,void 0,function*(){const _0x3cbb04={'account_name':_0x4446fc,'search_service_name':_0xf8a1da,'new_search_service_name':_0x684202,'key':_0x6e7417,'country':_0x576171};try{const _0xf9d3a5=yield this['fetch']['put'](this['path'],_0x498772,_0x3cbb04);if(_0xf9d3a5['status']>0xc7&&_0xf9d3a5['status']<0x12c){const _0xb84290=yield _0xf9d3a5['json']();return new SuccessfulSearchServiceResponse(_0xb84290);}const _0x4b1a2b=yield _0xf9d3a5['json']();return new FailedSearchServiceResponse(_0x4b1a2b);}catch(_0x322cd3){if(_0x322cd3 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x322cd3['message'],'title':_0x322cd3['name'],'status':0x1f4,'instance':'','type':''});throw _0x322cd3;}});}['list'](_0xe27b7e,_0x4e95a1){return __awaiter$2(this,void 0,void 0,function*(){const _0x56a735=this['path']+'/'+_0xe27b7e;try{const _0x270528=yield this['fetch']['get'](_0x56a735,_0x4e95a1);if(_0x270528['status']>0xc7&&_0x270528['status']<0x12c){const _0x4a0aec=yield _0x270528['json']();return new SuccessfulListSearchServiceResponse(_0x4a0aec);}const _0x35d66e=yield _0x270528['json']();return new FailedViewSearchServicesResponse(_0x35d66e);}catch(_0x5139d6){if(_0x5139d6 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5139d6['message'],'title':_0x5139d6['name'],'status':0x1f4,'instance':'','type':''});throw _0x5139d6;}});}}
14
14
 
15
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4d94cc,_0x72b9df,_0x899a49,_0x912b0){function _0x3a127a(_0x171d10){return _0x171d10 instanceof _0x899a49?_0x171d10:new _0x899a49(function(_0x485961){_0x485961(_0x171d10);});}return new(_0x899a49||(_0x899a49=Promise))(function(_0x45e8b5,_0x55c629){function _0x481697(_0x593765){try{_0x3a6aa9(_0x912b0['next'](_0x593765));}catch(_0x156cfe){_0x55c629(_0x156cfe);}}function _0x33150a(_0x3127eb){try{_0x3a6aa9(_0x912b0['throw'](_0x3127eb));}catch(_0x5e5765){_0x55c629(_0x5e5765);}}function _0x3a6aa9(_0x4d39bf){_0x4d39bf['done']?_0x45e8b5(_0x4d39bf['value']):_0x3a127a(_0x4d39bf['value'])['then'](_0x481697,_0x33150a);}_0x3a6aa9((_0x912b0=_0x912b0['apply'](_0x4d94cc,_0x72b9df||[]))['next']());});};class FacetService{constructor(_0x3041c8){this['fetch']=_0x3041c8,this['path']='facet';}['create'](_0x561678,_0x5ba621,_0x1b191b,_0x386952){return __awaiter$1(this,void 0,void 0,function*(){const _0x2f2400={'account_name':_0x561678,'list_name':_0x5ba621,'facet_name':_0x1b191b};try{const _0x1dab31=yield this['fetch']['post'](this['path'],_0x386952,_0x2f2400);if(_0x1dab31['status']>0xc7&&_0x1dab31['status']<0x12c){const _0x21504b=yield _0x1dab31['json']();return new SuccessfulFacetResponse(_0x21504b);}const _0x3118e8=yield _0x1dab31['json']();return new FailedFacetResponse(_0x3118e8);}catch(_0x2f8c8b){if(_0x2f8c8b instanceof Error)return new FailedFacetResponse({'detail':_0x2f8c8b['message'],'title':_0x2f8c8b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2f8c8b;}});}['remove'](_0x356035,_0x539df0,_0x41d058,_0x4c8fde){return __awaiter$1(this,void 0,void 0,function*(){const _0x3dd388='Facet/'+_0x356035+'/'+_0x539df0+'/'+_0x41d058,_0x3b3420=yield this['fetch']['delete'](_0x3dd388,_0x4c8fde);try{if(_0x3b3420['status']>0xc7&&_0x3b3420['status']<0x12c)return new SuccessfulResponse({});const _0x102c95=yield _0x3b3420['json']();return new FailedResponse(_0x102c95);}catch(_0x427e1c){if(_0x427e1c instanceof Error)return new FailedResponse({'detail':_0x427e1c['message'],'title':_0x427e1c['name'],'status':0x1f4,'instance':'','type':''});throw _0x427e1c;}});}}
15
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1fdc7e,_0x44bfd0,_0x51adee,_0x2a27ff){function _0xbcce90(_0x5567fc){return _0x5567fc instanceof _0x51adee?_0x5567fc:new _0x51adee(function(_0x4a5aad){_0x4a5aad(_0x5567fc);});}return new(_0x51adee||(_0x51adee=Promise))(function(_0x3a4a24,_0x2d4293){function _0x36f7e5(_0x48c198){try{_0x480bf9(_0x2a27ff['next'](_0x48c198));}catch(_0x36b00d){_0x2d4293(_0x36b00d);}}function _0x485f0d(_0x37d811){try{_0x480bf9(_0x2a27ff['throw'](_0x37d811));}catch(_0x20ca50){_0x2d4293(_0x20ca50);}}function _0x480bf9(_0x1b5393){_0x1b5393['done']?_0x3a4a24(_0x1b5393['value']):_0xbcce90(_0x1b5393['value'])['then'](_0x36f7e5,_0x485f0d);}_0x480bf9((_0x2a27ff=_0x2a27ff['apply'](_0x1fdc7e,_0x44bfd0||[]))['next']());});};class FacetService{constructor(_0x28580c){this['fetch']=_0x28580c,this['path']='facet';}['create'](_0x3f233f,_0x597a08,_0xa25dd2,_0x4e7b6f){return __awaiter$1(this,void 0,void 0,function*(){const _0x392e3d={'account_name':_0x3f233f,'list_name':_0x597a08,'facet_name':_0xa25dd2};try{const _0x5d91f2=yield this['fetch']['post'](this['path'],_0x4e7b6f,_0x392e3d);if(_0x5d91f2['status']>0xc7&&_0x5d91f2['status']<0x12c){const _0x17bc03=yield _0x5d91f2['json']();return new SuccessfulFacetResponse(_0x17bc03);}const _0x4b9a54=yield _0x5d91f2['json']();return new FailedFacetResponse(_0x4b9a54);}catch(_0x4867c6){if(_0x4867c6 instanceof Error)return new FailedFacetResponse({'detail':_0x4867c6['message'],'title':_0x4867c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x4867c6;}});}['remove'](_0x3d6462,_0x5d172e,_0x173428,_0x1c5430){return __awaiter$1(this,void 0,void 0,function*(){const _0x124c7b='Facet/'+_0x3d6462+'/'+_0x5d172e+'/'+_0x173428,_0x38075e=yield this['fetch']['delete'](_0x124c7b,_0x1c5430);try{if(_0x38075e['status']>0xc7&&_0x38075e['status']<0x12c)return new SuccessfulResponse({});const _0x51857e=yield _0x38075e['json']();return new FailedResponse(_0x51857e);}catch(_0x315626){if(_0x315626 instanceof Error)return new FailedResponse({'detail':_0x315626['message'],'title':_0x315626['name'],'status':0x1f4,'instance':'','type':''});throw _0x315626;}});}['rename'](_0x99aaec,_0x550699,_0x4ca9ce,_0x874c61,_0x57716e){return __awaiter$1(this,void 0,void 0,function*(){const _0x25aaec={'account_name':_0x99aaec,'list_name':_0x550699,'facet_name':_0x4ca9ce,'rename_facet_name':_0x874c61};try{const _0x4f7130=yield this['fetch']['put'](this['path'],_0x57716e,_0x25aaec);if(_0x4f7130['status']>0xc7&&_0x4f7130['status']<0x12c){const _0x8f146e=yield _0x4f7130['json']();return new SuccessfulFacetResponse(_0x8f146e);}const _0x4dfb10=yield _0x4f7130['json']();return new FailedFacetResponse(_0x4dfb10);}catch(_0x554477){if(_0x554477 instanceof Error)return new FailedFacetResponse({'detail':_0x554477['message'],'title':_0x554477['name'],'status':0x1f4,'instance':'','type':''});throw _0x554477;}});}}
16
16
 
17
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x1b4565,_0x1570cd,_0x55dd17,_0x5f5547){function _0x11f2b0(_0x33064f){return _0x33064f instanceof _0x55dd17?_0x33064f:new _0x55dd17(function(_0x1e0343){_0x1e0343(_0x33064f);});}return new(_0x55dd17||(_0x55dd17=Promise))(function(_0x498c84,_0x41a757){function _0xaba5fe(_0x4f2798){try{_0x1f0dca(_0x5f5547['next'](_0x4f2798));}catch(_0x445830){_0x41a757(_0x445830);}}function _0x8e66d(_0xa8c77){try{_0x1f0dca(_0x5f5547['throw'](_0xa8c77));}catch(_0x3c6a0e){_0x41a757(_0x3c6a0e);}}function _0x1f0dca(_0x5e470d){_0x5e470d['done']?_0x498c84(_0x5e470d['value']):_0x11f2b0(_0x5e470d['value'])['then'](_0xaba5fe,_0x8e66d);}_0x1f0dca((_0x5f5547=_0x5f5547['apply'](_0x1b4565,_0x1570cd||[]))['next']());});};class AdminClient{constructor(_0x33bb6d='https://admin.searchability.dev/'){var _0x514952=new Fetch(_0x33bb6d);this['Accounts']=new AccountService(_0x514952),this['Lists']=new ListService(_0x514952),this['ApiKeys']=new ApiKeyService(_0x514952),this['SearchServices']=new SearchServersService(_0x514952),this['FacetService']=new FacetService(_0x514952);}}class AuthClient{constructor(_0x81c793='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x81c793);}['login'](_0x4c2a1e){return __awaiter(this,void 0,void 0,function*(){const _0x57ca3b='login/'+_0x4c2a1e;try{const _0x5bdf93=yield yield fetch(_0x57ca3b);if(_0x5bdf93['status']>0xc7&&_0x5bdf93['status']<0x12c){const _0x5405c4=yield _0x5bdf93['json']();return new SuccessfulAuthResponse(_0x5405c4);}const _0x112cc0=yield _0x5bdf93['json']();return new FailedAuthResponse(_0x112cc0);}catch(_0x561498){if(_0x561498 instanceof Error)return new FailedAuthResponse({'detail':_0x561498['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x561498;}});}['refresh'](_0x4ef78c){return __awaiter(this,void 0,void 0,function*(){const _0x517892='refresh',_0x4318aa={'refresh_token':_0x4ef78c};try{const _0x4188a3=yield this['fetch']['PostNoAuth'](_0x517892,_0x4318aa);if(_0x4188a3['status']>0xc7&&_0x4188a3['status']<0x12c){const _0x5ba559=yield _0x4188a3['json']();return new SuccessfulAuthResponse(_0x5ba559);}const _0x2962ca=yield _0x4188a3['json']();return new FailedAuthResponse(_0x2962ca);}catch(_0x20ecf4){if(_0x20ecf4 instanceof Error)return new FailedAuthResponse({'detail':_0x20ecf4['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x20ecf4;}});}['getTokenStatus'](_0x1b4218){if(Date['now']()<_0x1b4218['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x1b4218['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
17
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x5cd5bb,_0x23e709,_0x1d9f8f,_0x5946e7){function _0x597b7c(_0x525d43){return _0x525d43 instanceof _0x1d9f8f?_0x525d43:new _0x1d9f8f(function(_0x3ebe46){_0x3ebe46(_0x525d43);});}return new(_0x1d9f8f||(_0x1d9f8f=Promise))(function(_0x6b42f0,_0x215cf2){function _0xe0070b(_0x434887){try{_0x28b047(_0x5946e7['next'](_0x434887));}catch(_0x2cf137){_0x215cf2(_0x2cf137);}}function _0x4b2cbc(_0x24d649){try{_0x28b047(_0x5946e7['throw'](_0x24d649));}catch(_0x16e35d){_0x215cf2(_0x16e35d);}}function _0x28b047(_0x308372){_0x308372['done']?_0x6b42f0(_0x308372['value']):_0x597b7c(_0x308372['value'])['then'](_0xe0070b,_0x4b2cbc);}_0x28b047((_0x5946e7=_0x5946e7['apply'](_0x5cd5bb,_0x23e709||[]))['next']());});};class AdminClient{constructor(_0x18f966='https://admin.searchability.dev/'){var _0x478238=new Fetch(_0x18f966);this['Accounts']=new AccountService(_0x478238),this['Lists']=new ListService(_0x478238),this['ApiKeys']=new ApiKeyService(_0x478238),this['SearchServices']=new SearchServersService(_0x478238),this['FacetService']=new FacetService(_0x478238);}}class AuthClient{constructor(_0x499951='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x499951);}['login'](_0x398a66){return __awaiter(this,void 0,void 0,function*(){const _0x19c60c='login/'+_0x398a66;try{const _0x57fcab=yield yield fetch(_0x19c60c);if(_0x57fcab['status']>0xc7&&_0x57fcab['status']<0x12c){const _0x50b4d7=yield _0x57fcab['json']();return new SuccessfulAuthResponse(_0x50b4d7);}const _0x50d79e=yield _0x57fcab['json']();return new FailedAuthResponse(_0x50d79e);}catch(_0x5dc4f1){if(_0x5dc4f1 instanceof Error)return new FailedAuthResponse({'detail':_0x5dc4f1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5dc4f1;}});}['refresh'](_0x5a923a){return __awaiter(this,void 0,void 0,function*(){const _0x281190='refresh',_0x3f99e0={'refresh_token':_0x5a923a};try{const _0xc5b813=yield this['fetch']['PostNoAuth'](_0x281190,_0x3f99e0);if(_0xc5b813['status']>0xc7&&_0xc5b813['status']<0x12c){const _0xcbe3ad=yield _0xc5b813['json']();return new SuccessfulAuthResponse(_0xcbe3ad);}const _0x57ec90=yield _0xc5b813['json']();return new FailedAuthResponse(_0x57ec90);}catch(_0x20c819){if(_0x20c819 instanceof Error)return new FailedAuthResponse({'detail':_0x20c819['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x20c819;}});}['getTokenStatus'](_0xa17c83){if(Date['now']()<_0xa17c83['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0xa17c83['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
18
18
 
19
19
  exports.AdminClient = AdminClient;
20
20
  exports.AuthClient = AuthClient;
@@ -1,17 +1,17 @@
1
- var TokenStatus;(function(_0x4fbff2){_0x4fbff2[_0x4fbff2['Ok']=0x0]='Ok',_0x4fbff2[_0x4fbff2['Refresh']=0x1]='Refresh',_0x4fbff2[_0x4fbff2['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(_0x51cc3f){this['isSuccess']=_0x51cc3f;}}class SuccessfulFacetResponse extends Response{constructor(_0x2b238a){super(!![]),this['facet']=_0x2b238a;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x28825e){super(![]),this['problem']=_0x28825e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x470245){super(!![]),this['account']=_0x470245;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0xbe2f08){super(!![]),this['list']=_0xbe2f08;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x2c1477){super(!![]),this['list']=_0x2c1477;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0xa34357){super(![]),this['problem']=_0xa34357;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x23ba31){super(![]),this['problem']=_0x23ba31;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x1ff093){super(![]),this['problem']=_0x1ff093;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3e46e3){super(!![]),this['tokens']=_0x3e46e3;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x576d9a){super(![]),this['problem']=_0x576d9a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5ca253){super(!![]),this['apiKey']=_0x5ca253;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4c3499){super(![]),this['problem']=_0x4c3499;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x12b109){super(!![]),this['searchService']=_0x12b109;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5c6a16){super(![]),this['problem']=_0x5c6a16;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0xc5d061){super(!![]),this['searchService']=_0xc5d061;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2d533e){super(!![]),this['searchServices']=_0x2d533e;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x4141e8){super(![]),this['problem']=_0x4141e8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x3e68dd){super(![]),this['problem']=_0x3e68dd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x56e356){super(!![]),this['apiKeyValue']=_0x56e356;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x3017ae){super(!![]),this['obj']=_0x3017ae;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x50d919){super(![]),this['problem']=_0x50d919;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x27a817){super(![]),this['problem']=_0x27a817;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0x1b868d){_0x1b868d[_0x1b868d['Ok']=0x0]='Ok',_0x1b868d[_0x1b868d['Refresh']=0x1]='Refresh',_0x1b868d[_0x1b868d['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x4dafd0){this['isSuccess']=_0x4dafd0;}}class SuccessfulFacetResponse extends Response{constructor(_0x2055df){super(!![]),this['facet']=_0x2055df;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x167347){super(![]),this['problem']=_0x167347;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x5dd515){super(!![]),this['account']=_0x5dd515;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x367e94){super(!![]),this['list']=_0x367e94;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x2e6d06){super(!![]),this['list']=_0x2e6d06;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3ee3dc){super(![]),this['problem']=_0x3ee3dc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x15850b){super(![]),this['problem']=_0x15850b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x3d956a){super(![]),this['problem']=_0x3d956a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2dc81b){super(!![]),this['tokens']=_0x2dc81b;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1e5b79){super(![]),this['problem']=_0x1e5b79;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x57e83f){super(!![]),this['apiKey']=_0x57e83f;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x2355d8){super(![]),this['problem']=_0x2355d8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x3af772){super(!![]),this['searchService']=_0x3af772;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x36aeb3){super(![]),this['problem']=_0x36aeb3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x15d141){super(!![]),this['searchService']=_0x15d141;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x57f99c){super(!![]),this['searchServices']=_0x57f99c;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x3ea251){super(![]),this['problem']=_0x3ea251;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x11876c){super(![]),this['problem']=_0x11876c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x388f14){super(!![]),this['apiKeyValue']=_0x388f14;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x19f072){super(!![]),this['obj']=_0x19f072;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x4b99d1){super(![]),this['problem']=_0x4b99d1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x2c0590){super(![]),this['problem']=_0x2c0590;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x4ad752,_0x4e78f7,_0x20afa4,_0x55d900){function _0x5bd3f8(_0x7dd7a1){return _0x7dd7a1 instanceof _0x20afa4?_0x7dd7a1:new _0x20afa4(function(_0x189c5a){_0x189c5a(_0x7dd7a1);});}return new(_0x20afa4||(_0x20afa4=Promise))(function(_0x137251,_0x3d68d4){function _0x507d28(_0x41a93c){try{_0x440283(_0x55d900['next'](_0x41a93c));}catch(_0x1976a6){_0x3d68d4(_0x1976a6);}}function _0x2c1fd7(_0x30f533){try{_0x440283(_0x55d900['throw'](_0x30f533));}catch(_0x2d3c9c){_0x3d68d4(_0x2d3c9c);}}function _0x440283(_0x1a3166){_0x1a3166['done']?_0x137251(_0x1a3166['value']):_0x5bd3f8(_0x1a3166['value'])['then'](_0x507d28,_0x2c1fd7);}_0x440283((_0x55d900=_0x55d900['apply'](_0x4ad752,_0x4e78f7||[]))['next']());});};class AccountService{constructor(_0x1219ec){this['fetch']=_0x1219ec;}['get'](_0x577603,_0x16ee99){return __awaiter$6(this,void 0,void 0,function*(){const _0x1ae1df='Account/'+_0x577603+'/',_0x414773=yield this['fetch']['get'](_0x1ae1df,_0x16ee99);try{if(_0x414773['status']>0xc7&&_0x414773['status']<0x12c){const _0x3476c6=yield _0x414773['json']();return new SuccessfulAccountResponse(_0x3476c6);}const _0x5a6b11=yield _0x414773['json']();return new FailedAccountResponse(_0x5a6b11);}catch(_0x48d11b){if(_0x48d11b instanceof Error)return new FailedAccountResponse({'detail':_0x48d11b['message'],'title':_0x48d11b['name'],'status':0x1f4,'instance':'','type':''});throw _0x48d11b;}});}}
3
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x320f65,_0x23dc09,_0x4e2da5,_0x525d15){function _0x304076(_0x3b4bc6){return _0x3b4bc6 instanceof _0x4e2da5?_0x3b4bc6:new _0x4e2da5(function(_0xcf8a08){_0xcf8a08(_0x3b4bc6);});}return new(_0x4e2da5||(_0x4e2da5=Promise))(function(_0x1f7a9f,_0xd11e51){function _0x382df3(_0x62a87e){try{_0x2a729c(_0x525d15['next'](_0x62a87e));}catch(_0x17f32e){_0xd11e51(_0x17f32e);}}function _0x35b914(_0x517037){try{_0x2a729c(_0x525d15['throw'](_0x517037));}catch(_0x4eec10){_0xd11e51(_0x4eec10);}}function _0x2a729c(_0x37c9a8){_0x37c9a8['done']?_0x1f7a9f(_0x37c9a8['value']):_0x304076(_0x37c9a8['value'])['then'](_0x382df3,_0x35b914);}_0x2a729c((_0x525d15=_0x525d15['apply'](_0x320f65,_0x23dc09||[]))['next']());});};class AccountService{constructor(_0x537e1e){this['fetch']=_0x537e1e;}['get'](_0x55cc3f,_0x9a8a5d){return __awaiter$6(this,void 0,void 0,function*(){const _0x56a531='Account/'+_0x55cc3f+'/',_0x1aad80=yield this['fetch']['get'](_0x56a531,_0x9a8a5d);try{if(_0x1aad80['status']>0xc7&&_0x1aad80['status']<0x12c){const _0x10c4d5=yield _0x1aad80['json']();return new SuccessfulAccountResponse(_0x10c4d5);}const _0x204bc2=yield _0x1aad80['json']();return new FailedAccountResponse(_0x204bc2);}catch(_0x33990b){if(_0x33990b instanceof Error)return new FailedAccountResponse({'detail':_0x33990b['message'],'title':_0x33990b['name'],'status':0x1f4,'instance':'','type':''});throw _0x33990b;}});}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1ea7f0,_0x59cae0,_0x91a13c,_0x25131e){function _0x16cda4(_0x360046){return _0x360046 instanceof _0x91a13c?_0x360046:new _0x91a13c(function(_0x4a44c1){_0x4a44c1(_0x360046);});}return new(_0x91a13c||(_0x91a13c=Promise))(function(_0x11770e,_0x3103d8){function _0xc2a43a(_0x324d9b){try{_0x11c8ed(_0x25131e['next'](_0x324d9b));}catch(_0x40cc69){_0x3103d8(_0x40cc69);}}function _0x2333fe(_0x2478e7){try{_0x11c8ed(_0x25131e['throw'](_0x2478e7));}catch(_0x1b6e1e){_0x3103d8(_0x1b6e1e);}}function _0x11c8ed(_0x29b91a){_0x29b91a['done']?_0x11770e(_0x29b91a['value']):_0x16cda4(_0x29b91a['value'])['then'](_0xc2a43a,_0x2333fe);}_0x11c8ed((_0x25131e=_0x25131e['apply'](_0x1ea7f0,_0x59cae0||[]))['next']());});};class ApiKeyService{constructor(_0x590e88){this['fetch']=_0x590e88,this['path']='api-key';}['create'](_0x8cab4f,_0x51020e,_0x3c0156){return __awaiter$5(this,void 0,void 0,function*(){const _0xf5eda8={'account_name':_0x8cab4f,'api_key_name':_0x51020e};try{const _0x27a1f8=yield this['fetch']['post'](this['path'],_0x3c0156,_0xf5eda8);if(_0x27a1f8['status']>0xc7&&_0x27a1f8['status']<0x12c){const _0x35ff40=yield _0x27a1f8['json']();return new SuccessfulApiKeyResponse(_0x35ff40);}const _0x981979=yield _0x27a1f8['json']();return new FailedApiKeyResponse(_0x981979);}catch(_0x4e9009){if(_0x4e9009 instanceof Error)return new FailedApiKeyResponse({'detail':_0x4e9009['message'],'title':_0x4e9009['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e9009;}});}['view'](_0xd9ac8,_0x26b448,_0x3e4205){return __awaiter$5(this,void 0,void 0,function*(){const _0x1de45b=this['path']+'/'+_0xd9ac8+'/'+_0x26b448;try{const _0x571445=yield this['fetch']['get'](_0x1de45b,_0x3e4205);if(_0x571445['status']>0xc7&&_0x571445['status']<0x12c){const _0x437f8b=yield _0x571445['json']();return new SuccessfulApiKeyValueResponse(_0x437f8b);}const _0x340222=yield _0x571445['json']();return new FailedApiKeyValueResponse(_0x340222);}catch(_0x20c35b){if(_0x20c35b instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x20c35b['message'],'title':_0x20c35b['name'],'status':0x1f4,'instance':'','type':''});throw _0x20c35b;}});}['delete'](_0x3adb66,_0x58b44b,_0x31997c){return __awaiter$5(this,void 0,void 0,function*(){const _0x2fafa5=this['path']+'/'+_0x3adb66+'/'+_0x58b44b;try{const _0x37a9e7=yield this['fetch']['delete'](_0x2fafa5,_0x31997c);if(_0x37a9e7['status']>0xc7&&_0x37a9e7['status']<0x12c)return new SuccessfulResponse({});const _0x537092=yield _0x37a9e7['json']();return new FailedResponse(_0x537092);}catch(_0x5f4ca5){if(_0x5f4ca5 instanceof Error)return new FailedResponse({'detail':_0x5f4ca5['message'],'title':_0x5f4ca5['name'],'status':0x1f4,'instance':'','type':''});throw _0x5f4ca5;}});}}
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5aeccf,_0x47a4bc,_0x218a2e,_0x2f2175){function _0x1e7339(_0x48f825){return _0x48f825 instanceof _0x218a2e?_0x48f825:new _0x218a2e(function(_0x13ae1b){_0x13ae1b(_0x48f825);});}return new(_0x218a2e||(_0x218a2e=Promise))(function(_0x3137b8,_0x278b9e){function _0x2b23fb(_0x2da22a){try{_0x1fe8c1(_0x2f2175['next'](_0x2da22a));}catch(_0x2fbf17){_0x278b9e(_0x2fbf17);}}function _0x285350(_0x2a7a90){try{_0x1fe8c1(_0x2f2175['throw'](_0x2a7a90));}catch(_0x4a0edd){_0x278b9e(_0x4a0edd);}}function _0x1fe8c1(_0x4aab35){_0x4aab35['done']?_0x3137b8(_0x4aab35['value']):_0x1e7339(_0x4aab35['value'])['then'](_0x2b23fb,_0x285350);}_0x1fe8c1((_0x2f2175=_0x2f2175['apply'](_0x5aeccf,_0x47a4bc||[]))['next']());});};class ApiKeyService{constructor(_0xca097){this['fetch']=_0xca097,this['path']='api-key';}['create'](_0x12d7fd,_0x5b8ad3,_0x245cb9){return __awaiter$5(this,void 0,void 0,function*(){const _0x48f879={'account_name':_0x12d7fd,'api_key_name':_0x5b8ad3};try{const _0x24c95b=yield this['fetch']['post'](this['path'],_0x245cb9,_0x48f879);if(_0x24c95b['status']>0xc7&&_0x24c95b['status']<0x12c){const _0x153721=yield _0x24c95b['json']();return new SuccessfulApiKeyResponse(_0x153721);}const _0x179834=yield _0x24c95b['json']();return new FailedApiKeyResponse(_0x179834);}catch(_0xfe9309){if(_0xfe9309 instanceof Error)return new FailedApiKeyResponse({'detail':_0xfe9309['message'],'title':_0xfe9309['name'],'status':0x1f4,'instance':'','type':''});throw _0xfe9309;}});}['view'](_0x182ba1,_0x153237,_0x473c49){return __awaiter$5(this,void 0,void 0,function*(){const _0x119853=this['path']+'/'+_0x182ba1+'/'+_0x153237;try{const _0x534c92=yield this['fetch']['get'](_0x119853,_0x473c49);if(_0x534c92['status']>0xc7&&_0x534c92['status']<0x12c){const _0x2791a9=yield _0x534c92['json']();return new SuccessfulApiKeyValueResponse(_0x2791a9);}const _0x5e595d=yield _0x534c92['json']();return new FailedApiKeyValueResponse(_0x5e595d);}catch(_0x498c62){if(_0x498c62 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x498c62['message'],'title':_0x498c62['name'],'status':0x1f4,'instance':'','type':''});throw _0x498c62;}});}['delete'](_0x22299a,_0x105545,_0x1942a9){return __awaiter$5(this,void 0,void 0,function*(){const _0x33564a=this['path']+'/'+_0x22299a+'/'+_0x105545;try{const _0x510c79=yield this['fetch']['delete'](_0x33564a,_0x1942a9);if(_0x510c79['status']>0xc7&&_0x510c79['status']<0x12c)return new SuccessfulResponse({});const _0x2518c4=yield _0x510c79['json']();return new FailedResponse(_0x2518c4);}catch(_0x13b5e0){if(_0x13b5e0 instanceof Error)return new FailedResponse({'detail':_0x13b5e0['message'],'title':_0x13b5e0['name'],'status':0x1f4,'instance':'','type':''});throw _0x13b5e0;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1ed815,_0x5df4de,_0x269516,_0x1f2c3a){function _0x5ab7c4(_0x131581){return _0x131581 instanceof _0x269516?_0x131581:new _0x269516(function(_0x42ef54){_0x42ef54(_0x131581);});}return new(_0x269516||(_0x269516=Promise))(function(_0x43b066,_0x3c5fe0){function _0x205002(_0x370aa5){try{_0x1709d6(_0x1f2c3a['next'](_0x370aa5));}catch(_0x1b2663){_0x3c5fe0(_0x1b2663);}}function _0x4b7197(_0x2120f0){try{_0x1709d6(_0x1f2c3a['throw'](_0x2120f0));}catch(_0x56d0fb){_0x3c5fe0(_0x56d0fb);}}function _0x1709d6(_0x86afb1){_0x86afb1['done']?_0x43b066(_0x86afb1['value']):_0x5ab7c4(_0x86afb1['value'])['then'](_0x205002,_0x4b7197);}_0x1709d6((_0x1f2c3a=_0x1f2c3a['apply'](_0x1ed815,_0x5df4de||[]))['next']());});};class ListService{constructor(_0x520cc9){this['fetch']=_0x520cc9;}['create'](_0x38a9bb,_0x4aad4c,_0x24d5d5,_0x1e46ed){return __awaiter$4(this,void 0,void 0,function*(){const _0x563315='List',_0x4035bc={'account_name':_0x38a9bb,'list_name':_0x4aad4c,'search_service_name':_0x24d5d5};try{const _0x3e1191=yield this['fetch']['post'](_0x563315,_0x1e46ed,_0x4035bc);if(_0x3e1191['status']>0xc7&&_0x3e1191['status']<0x12c){const _0x414d8e=yield _0x3e1191['json']();return new SuccessfulListIdentityResponse(_0x414d8e);}const _0x58b993=yield _0x3e1191['json']();return new FailedListIdentityResponse(_0x58b993);}catch(_0xb4afeb){if(_0xb4afeb instanceof Error)return new FailedListIdentityResponse({'detail':_0xb4afeb['message'],'title':_0xb4afeb['name'],'status':0x1f4,'instance':'','type':''});throw _0xb4afeb;}});}['delete'](_0x1f7892,_0x14b61a,_0x460fe6){return __awaiter$4(this,void 0,void 0,function*(){const _0x39a730='List/'+_0x1f7892+'/'+_0x14b61a,_0xc80853=yield this['fetch']['delete'](_0x39a730,_0x460fe6);try{if(_0xc80853['status']>0xc7&&_0xc80853['status']<0x12c)return new SuccessfulResponse({});const _0xd82b3=yield _0xc80853['json']();return new FailedResponse(_0xd82b3);}catch(_0x5fd755){if(_0x5fd755 instanceof Error)return new FailedResponse({'detail':_0x5fd755['message'],'title':_0x5fd755['name'],'status':0x1f4,'instance':'','type':''});throw _0x5fd755;}});}['get'](_0x181de9,_0x3d49ea,_0x287069){return __awaiter$4(this,void 0,void 0,function*(){const _0x2f57c2='List/'+_0x181de9+'/'+_0x3d49ea;try{const _0xc6f56a=yield this['fetch']['get'](_0x2f57c2,_0x287069);if(_0xc6f56a['status']>0xc7&&_0xc6f56a['status']<0x12c){const _0x25ddfa=yield _0xc6f56a['json']();return new SuccessfulListResponse(_0x25ddfa);}const _0x8aae60=yield _0xc6f56a['json']();return new FailedListResponse(_0x8aae60);}catch(_0x51e27f){if(_0x51e27f instanceof Error)return new FailedListResponse({'detail':_0x51e27f['message'],'title':_0x51e27f['name'],'status':0x1f4,'instance':'','type':''});throw _0x51e27f;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0xc83005,_0x5c945b,_0x9ccc22,_0x34df47){function _0x5b069e(_0x422d22){return _0x422d22 instanceof _0x9ccc22?_0x422d22:new _0x9ccc22(function(_0x3e1494){_0x3e1494(_0x422d22);});}return new(_0x9ccc22||(_0x9ccc22=Promise))(function(_0x11bc3a,_0x1bca57){function _0x1dcedb(_0x18d249){try{_0x364842(_0x34df47['next'](_0x18d249));}catch(_0x5d14c3){_0x1bca57(_0x5d14c3);}}function _0x19785f(_0x1b36fb){try{_0x364842(_0x34df47['throw'](_0x1b36fb));}catch(_0x2de044){_0x1bca57(_0x2de044);}}function _0x364842(_0x2d2b7f){_0x2d2b7f['done']?_0x11bc3a(_0x2d2b7f['value']):_0x5b069e(_0x2d2b7f['value'])['then'](_0x1dcedb,_0x19785f);}_0x364842((_0x34df47=_0x34df47['apply'](_0xc83005,_0x5c945b||[]))['next']());});};class ListService{constructor(_0x2d0ef1){this['fetch']=_0x2d0ef1;}['create'](_0x3d2a16,_0x19d9e7,_0x11cdf9,_0x251dd6){return __awaiter$4(this,void 0,void 0,function*(){const _0x58f611='List',_0x53929f={'account_name':_0x3d2a16,'list_name':_0x19d9e7,'search_service_name':_0x11cdf9};try{const _0x1de945=yield this['fetch']['post'](_0x58f611,_0x251dd6,_0x53929f);if(_0x1de945['status']>0xc7&&_0x1de945['status']<0x12c){const _0x3a3f51=yield _0x1de945['json']();return new SuccessfulListIdentityResponse(_0x3a3f51);}const _0xf0e3cb=yield _0x1de945['json']();return new FailedListIdentityResponse(_0xf0e3cb);}catch(_0x10f01b){if(_0x10f01b instanceof Error)return new FailedListIdentityResponse({'detail':_0x10f01b['message'],'title':_0x10f01b['name'],'status':0x1f4,'instance':'','type':''});throw _0x10f01b;}});}['delete'](_0x54437f,_0x906f5c,_0x5985ab){return __awaiter$4(this,void 0,void 0,function*(){const _0x40dd68='List/'+_0x54437f+'/'+_0x906f5c,_0x1d9aed=yield this['fetch']['delete'](_0x40dd68,_0x5985ab);try{if(_0x1d9aed['status']>0xc7&&_0x1d9aed['status']<0x12c)return new SuccessfulResponse({});const _0x9fe313=yield _0x1d9aed['json']();return new FailedResponse(_0x9fe313);}catch(_0x3265df){if(_0x3265df instanceof Error)return new FailedResponse({'detail':_0x3265df['message'],'title':_0x3265df['name'],'status':0x1f4,'instance':'','type':''});throw _0x3265df;}});}['get'](_0x14d6b0,_0x1e799f,_0xce110c){return __awaiter$4(this,void 0,void 0,function*(){const _0x11f4f7='List/'+_0x14d6b0+'/'+_0x1e799f;try{const _0x56690c=yield this['fetch']['get'](_0x11f4f7,_0xce110c);if(_0x56690c['status']>0xc7&&_0x56690c['status']<0x12c){const _0x1543e9=yield _0x56690c['json']();return new SuccessfulListResponse(_0x1543e9);}const _0x3f85bf=yield _0x56690c['json']();return new FailedListResponse(_0x3f85bf);}catch(_0x2e5139){if(_0x2e5139 instanceof Error)return new FailedListResponse({'detail':_0x2e5139['message'],'title':_0x2e5139['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e5139;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x108304,_0x3a5ec2,_0x5386c8,_0x8bafdf){function _0x19eade(_0x1e9348){return _0x1e9348 instanceof _0x5386c8?_0x1e9348:new _0x5386c8(function(_0x3dc7f4){_0x3dc7f4(_0x1e9348);});}return new(_0x5386c8||(_0x5386c8=Promise))(function(_0x493c51,_0x3544c0){function _0x5c16a7(_0x5387b5){try{_0x524873(_0x8bafdf['next'](_0x5387b5));}catch(_0x5d7eed){_0x3544c0(_0x5d7eed);}}function _0x572389(_0x6dbc5b){try{_0x524873(_0x8bafdf['throw'](_0x6dbc5b));}catch(_0x196155){_0x3544c0(_0x196155);}}function _0x524873(_0x4baf9d){_0x4baf9d['done']?_0x493c51(_0x4baf9d['value']):_0x19eade(_0x4baf9d['value'])['then'](_0x5c16a7,_0x572389);}_0x524873((_0x8bafdf=_0x8bafdf['apply'](_0x108304,_0x3a5ec2||[]))['next']());});};class Fetch{constructor(_0x3659ac){this['baseUri']=_0x3659ac,this['getUrl']=_0xb24062=>{return _0xb24062['startsWith']('/')&&(_0xb24062=_0xb24062['replace']('/','')),''+this['baseUri']+_0xb24062;},!_0x3659ac['endsWith']('/')&&(_0x3659ac=_0x3659ac+'/');}['get'](_0x27bc54,_0x5ce502){return __awaiter$3(this,void 0,void 0,function*(){const _0x41d2eb=this['getUrl'](_0x27bc54);return yield fetch(_0x41d2eb,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5ce502}});});}['post'](_0xfac7b7,_0x537fb2,_0x27697b){return __awaiter$3(this,void 0,void 0,function*(){const _0x288d02=this['getUrl'](_0xfac7b7);return yield fetch(_0x288d02,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x537fb2},'body':_0x27697b?JSON['stringify'](_0x27697b):null});});}['PostNoAuth'](_0x5826f2,_0x23416a){return __awaiter$3(this,void 0,void 0,function*(){const _0xbc0c22=this['getUrl'](_0x5826f2);return yield fetch(_0xbc0c22,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x23416a?JSON['stringify'](_0x23416a):null});});}['put'](_0x4ab0e0,_0x51d70f,_0x7bc97a){return __awaiter$3(this,void 0,void 0,function*(){const _0xf9db97=this['getUrl'](_0x4ab0e0);return yield fetch(_0xf9db97,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x51d70f},'body':_0x7bc97a?JSON['stringify'](_0x7bc97a):null});});}['delete'](_0x177719,_0xc8d2cd){return __awaiter$3(this,void 0,void 0,function*(){const _0x2e45cd=this['getUrl'](_0x177719);return yield fetch(_0x2e45cd,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xc8d2cd}});});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1e5c56,_0x4c0f9b,_0x2db3b4,_0x436d62){function _0x5550ed(_0xc9842){return _0xc9842 instanceof _0x2db3b4?_0xc9842:new _0x2db3b4(function(_0x2d0e4b){_0x2d0e4b(_0xc9842);});}return new(_0x2db3b4||(_0x2db3b4=Promise))(function(_0x2ec7f7,_0x2f9fb7){function _0xb08620(_0x16b9c7){try{_0x1ec2ef(_0x436d62['next'](_0x16b9c7));}catch(_0x1f5104){_0x2f9fb7(_0x1f5104);}}function _0x157050(_0x18ee2c){try{_0x1ec2ef(_0x436d62['throw'](_0x18ee2c));}catch(_0x2c7147){_0x2f9fb7(_0x2c7147);}}function _0x1ec2ef(_0x3d949b){_0x3d949b['done']?_0x2ec7f7(_0x3d949b['value']):_0x5550ed(_0x3d949b['value'])['then'](_0xb08620,_0x157050);}_0x1ec2ef((_0x436d62=_0x436d62['apply'](_0x1e5c56,_0x4c0f9b||[]))['next']());});};class Fetch{constructor(_0x147ea6){this['baseUri']=_0x147ea6,this['getUrl']=_0x3fc394=>{return _0x3fc394['startsWith']('/')&&(_0x3fc394=_0x3fc394['replace']('/','')),''+this['baseUri']+_0x3fc394;},!_0x147ea6['endsWith']('/')&&(_0x147ea6=_0x147ea6+'/');}['get'](_0x5df740,_0x1b0f31){return __awaiter$3(this,void 0,void 0,function*(){const _0x2c6e21=this['getUrl'](_0x5df740);return yield fetch(_0x2c6e21,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1b0f31}});});}['post'](_0x361883,_0x4c6fd7,_0x110cf2){return __awaiter$3(this,void 0,void 0,function*(){const _0x1415ce=this['getUrl'](_0x361883);return yield fetch(_0x1415ce,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4c6fd7},'body':_0x110cf2?JSON['stringify'](_0x110cf2):null});});}['PostNoAuth'](_0x228aa0,_0x17a2fa){return __awaiter$3(this,void 0,void 0,function*(){const _0x6b28bc=this['getUrl'](_0x228aa0);return yield fetch(_0x6b28bc,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x17a2fa?JSON['stringify'](_0x17a2fa):null});});}['put'](_0x15ea3b,_0x46e489,_0x1c8633){return __awaiter$3(this,void 0,void 0,function*(){const _0x3de71c=this['getUrl'](_0x15ea3b);return yield fetch(_0x3de71c,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x46e489},'body':_0x1c8633?JSON['stringify'](_0x1c8633):null});});}['delete'](_0x58e812,_0x35ac51){return __awaiter$3(this,void 0,void 0,function*(){const _0x328c55=this['getUrl'](_0x58e812);return yield fetch(_0x328c55,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x35ac51}});});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1d64f,_0x2d0b07,_0x57ee70,_0x5c8206){function _0x5abe1a(_0x59bc01){return _0x59bc01 instanceof _0x57ee70?_0x59bc01:new _0x57ee70(function(_0x260390){_0x260390(_0x59bc01);});}return new(_0x57ee70||(_0x57ee70=Promise))(function(_0x492adf,_0x573b22){function _0x108e63(_0x2110a6){try{_0x79c7e4(_0x5c8206['next'](_0x2110a6));}catch(_0x7ebc5d){_0x573b22(_0x7ebc5d);}}function _0x839160(_0x482782){try{_0x79c7e4(_0x5c8206['throw'](_0x482782));}catch(_0x273d50){_0x573b22(_0x273d50);}}function _0x79c7e4(_0x4c9192){_0x4c9192['done']?_0x492adf(_0x4c9192['value']):_0x5abe1a(_0x4c9192['value'])['then'](_0x108e63,_0x839160);}_0x79c7e4((_0x5c8206=_0x5c8206['apply'](_0x1d64f,_0x2d0b07||[]))['next']());});};class SearchServersService{constructor(_0x19751e){this['fetch']=_0x19751e,this['path']='search-services';}['create'](_0x37f7b6,_0x325967,_0x279c75,_0x2a54a4,_0x43c5df,_0x496f68,_0x1ae4ca,_0x52b1dd){return __awaiter$2(this,void 0,void 0,function*(){const _0x2e9290={'account_name':_0x37f7b6,'search_service_name':_0x325967,'endpoint':_0x279c75,'key':_0x2a54a4,'country':_0x43c5df,'provider':_0x496f68,'index_name':_0x1ae4ca};try{const _0x71fd93=yield this['fetch']['post'](this['path'],_0x52b1dd,_0x2e9290);if(_0x71fd93['status']>0xc7&&_0x71fd93['status']<0x12c){const _0x491753=yield _0x71fd93['json']();return new SuccessfulSearchServiceResponse(_0x491753);}const _0x3969fc=yield _0x71fd93['json']();return new FailedSearchServiceResponse(_0x3969fc);}catch(_0x48f919){if(_0x48f919 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x48f919['message'],'title':_0x48f919['name'],'status':0x1f4,'instance':'','type':''});throw _0x48f919;}});}['delete'](_0x59aeb2,_0x56cb61,_0x1e2404){return __awaiter$2(this,void 0,void 0,function*(){const _0x273e8b=this['path']+'/'+_0x59aeb2+'/'+_0x56cb61;try{const _0x44303e=yield this['fetch']['delete'](_0x273e8b,_0x1e2404);if(_0x44303e['status']>0xc7&&_0x44303e['status']<0x12c)return new SuccessfulResponse({});const _0x2006d6=yield _0x44303e['json']();return new FailedResponse(_0x2006d6);}catch(_0x14e78e){if(_0x14e78e instanceof Error)return new FailedResponse({'detail':_0x14e78e['message'],'title':_0x14e78e['name'],'status':0x1f4,'instance':'','type':''});throw _0x14e78e;}});}['view'](_0x3e8198,_0x554434,_0x5450c5){return __awaiter$2(this,void 0,void 0,function*(){const _0x3a1ada=this['path']+'/'+_0x3e8198+'/'+_0x554434;try{const _0x42c305=yield this['fetch']['get'](_0x3a1ada,_0x5450c5);if(_0x42c305['status']>0xc7&&_0x42c305['status']<0x12c){const _0x1689d9=yield _0x42c305['json']();return new SuccessfulViewSearchServiceResponse(_0x1689d9);}const _0x39834c=yield _0x42c305['json']();return new FailedViewSearchServiceResponse(_0x39834c);}catch(_0x47fa33){if(_0x47fa33 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x47fa33['message'],'title':_0x47fa33['name'],'status':0x1f4,'instance':'','type':''});throw _0x47fa33;}});}['edit'](_0x216f76,_0xb30282,_0x365b8f,_0x38ef07,_0x52b389,_0x249a5e){return __awaiter$2(this,void 0,void 0,function*(){const _0x73e66={'account_name':_0x216f76,'search_service_name':_0xb30282,'new_search_service_name':_0x365b8f,'key':_0x38ef07,'country':_0x52b389};try{const _0x3abb9c=yield this['fetch']['put'](this['path'],_0x249a5e,_0x73e66);if(_0x3abb9c['status']>0xc7&&_0x3abb9c['status']<0x12c){const _0x199a0c=yield _0x3abb9c['json']();return new SuccessfulSearchServiceResponse(_0x199a0c);}const _0x3163d3=yield _0x3abb9c['json']();return new FailedSearchServiceResponse(_0x3163d3);}catch(_0x471cd4){if(_0x471cd4 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x471cd4['message'],'title':_0x471cd4['name'],'status':0x1f4,'instance':'','type':''});throw _0x471cd4;}});}['list'](_0x35ec3f,_0x5f1273){return __awaiter$2(this,void 0,void 0,function*(){const _0x28a0b7=this['path']+'/'+_0x35ec3f;try{const _0x562169=yield this['fetch']['get'](_0x28a0b7,_0x5f1273);if(_0x562169['status']>0xc7&&_0x562169['status']<0x12c){const _0x317a5d=yield _0x562169['json']();return new SuccessfulListSearchServiceResponse(_0x317a5d);}const _0x1c4d57=yield _0x562169['json']();return new FailedViewSearchServicesResponse(_0x1c4d57);}catch(_0x279b9a){if(_0x279b9a instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x279b9a['message'],'title':_0x279b9a['name'],'status':0x1f4,'instance':'','type':''});throw _0x279b9a;}});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x427ae4,_0x587d33,_0x38eb3b,_0xf4f8b){function _0x2b8306(_0x3930f6){return _0x3930f6 instanceof _0x38eb3b?_0x3930f6:new _0x38eb3b(function(_0x479830){_0x479830(_0x3930f6);});}return new(_0x38eb3b||(_0x38eb3b=Promise))(function(_0x342501,_0x5be580){function _0x4173b0(_0x23e508){try{_0x509f05(_0xf4f8b['next'](_0x23e508));}catch(_0x3c7c3d){_0x5be580(_0x3c7c3d);}}function _0x648651(_0x4b735c){try{_0x509f05(_0xf4f8b['throw'](_0x4b735c));}catch(_0x15cf8a){_0x5be580(_0x15cf8a);}}function _0x509f05(_0x57a5cb){_0x57a5cb['done']?_0x342501(_0x57a5cb['value']):_0x2b8306(_0x57a5cb['value'])['then'](_0x4173b0,_0x648651);}_0x509f05((_0xf4f8b=_0xf4f8b['apply'](_0x427ae4,_0x587d33||[]))['next']());});};class SearchServersService{constructor(_0x3e8537){this['fetch']=_0x3e8537,this['path']='search-services';}['create'](_0x252cf7,_0x234599,_0x113351,_0x24de75,_0x452aa0,_0x258416,_0x37e25a,_0x4bfe1b){return __awaiter$2(this,void 0,void 0,function*(){const _0x114d74={'account_name':_0x252cf7,'search_service_name':_0x234599,'endpoint':_0x113351,'key':_0x24de75,'country':_0x452aa0,'provider':_0x258416,'index_name':_0x37e25a};try{const _0x59930b=yield this['fetch']['post'](this['path'],_0x4bfe1b,_0x114d74);if(_0x59930b['status']>0xc7&&_0x59930b['status']<0x12c){const _0x3be1fc=yield _0x59930b['json']();return new SuccessfulSearchServiceResponse(_0x3be1fc);}const _0x43c7e9=yield _0x59930b['json']();return new FailedSearchServiceResponse(_0x43c7e9);}catch(_0x133688){if(_0x133688 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x133688['message'],'title':_0x133688['name'],'status':0x1f4,'instance':'','type':''});throw _0x133688;}});}['delete'](_0x396fca,_0x6b140,_0x4392d0){return __awaiter$2(this,void 0,void 0,function*(){const _0x4afcf1=this['path']+'/'+_0x396fca+'/'+_0x6b140;try{const _0x35c227=yield this['fetch']['delete'](_0x4afcf1,_0x4392d0);if(_0x35c227['status']>0xc7&&_0x35c227['status']<0x12c)return new SuccessfulResponse({});const _0x1800aa=yield _0x35c227['json']();return new FailedResponse(_0x1800aa);}catch(_0x30b72d){if(_0x30b72d instanceof Error)return new FailedResponse({'detail':_0x30b72d['message'],'title':_0x30b72d['name'],'status':0x1f4,'instance':'','type':''});throw _0x30b72d;}});}['view'](_0x3b9e3e,_0x2a8831,_0x51507c){return __awaiter$2(this,void 0,void 0,function*(){const _0x177886=this['path']+'/'+_0x3b9e3e+'/'+_0x2a8831;try{const _0x3499cb=yield this['fetch']['get'](_0x177886,_0x51507c);if(_0x3499cb['status']>0xc7&&_0x3499cb['status']<0x12c){const _0x7ba2fc=yield _0x3499cb['json']();return new SuccessfulViewSearchServiceResponse(_0x7ba2fc);}const _0x55ab11=yield _0x3499cb['json']();return new FailedViewSearchServiceResponse(_0x55ab11);}catch(_0x48716e){if(_0x48716e instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x48716e['message'],'title':_0x48716e['name'],'status':0x1f4,'instance':'','type':''});throw _0x48716e;}});}['edit'](_0x1eea81,_0x5cf9bb,_0x1f6dd2,_0x510612,_0x5d6717,_0xabaa26){return __awaiter$2(this,void 0,void 0,function*(){const _0x4b1d08={'account_name':_0x1eea81,'search_service_name':_0x5cf9bb,'new_search_service_name':_0x1f6dd2,'key':_0x510612,'country':_0x5d6717};try{const _0x2cfb54=yield this['fetch']['put'](this['path'],_0xabaa26,_0x4b1d08);if(_0x2cfb54['status']>0xc7&&_0x2cfb54['status']<0x12c){const _0x586cf1=yield _0x2cfb54['json']();return new SuccessfulSearchServiceResponse(_0x586cf1);}const _0x35710a=yield _0x2cfb54['json']();return new FailedSearchServiceResponse(_0x35710a);}catch(_0x27d6f7){if(_0x27d6f7 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x27d6f7['message'],'title':_0x27d6f7['name'],'status':0x1f4,'instance':'','type':''});throw _0x27d6f7;}});}['list'](_0x6950e,_0x140936){return __awaiter$2(this,void 0,void 0,function*(){const _0x34b5ce=this['path']+'/'+_0x6950e;try{const _0x11d779=yield this['fetch']['get'](_0x34b5ce,_0x140936);if(_0x11d779['status']>0xc7&&_0x11d779['status']<0x12c){const _0x48243b=yield _0x11d779['json']();return new SuccessfulListSearchServiceResponse(_0x48243b);}const _0x7c953b=yield _0x11d779['json']();return new FailedViewSearchServicesResponse(_0x7c953b);}catch(_0x3be2e6){if(_0x3be2e6 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x3be2e6['message'],'title':_0x3be2e6['name'],'status':0x1f4,'instance':'','type':''});throw _0x3be2e6;}});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x5267d5,_0x2ea173,_0x24ead7,_0x47c265){function _0x1ad846(_0x3c19e4){return _0x3c19e4 instanceof _0x24ead7?_0x3c19e4:new _0x24ead7(function(_0x475b29){_0x475b29(_0x3c19e4);});}return new(_0x24ead7||(_0x24ead7=Promise))(function(_0x551823,_0x5f3000){function _0x43b572(_0x26699f){try{_0x1a3c23(_0x47c265['next'](_0x26699f));}catch(_0x462d5b){_0x5f3000(_0x462d5b);}}function _0x5ac3aa(_0x10e31b){try{_0x1a3c23(_0x47c265['throw'](_0x10e31b));}catch(_0x411a3c){_0x5f3000(_0x411a3c);}}function _0x1a3c23(_0x4825cb){_0x4825cb['done']?_0x551823(_0x4825cb['value']):_0x1ad846(_0x4825cb['value'])['then'](_0x43b572,_0x5ac3aa);}_0x1a3c23((_0x47c265=_0x47c265['apply'](_0x5267d5,_0x2ea173||[]))['next']());});};class FacetService{constructor(_0x3729b7){this['fetch']=_0x3729b7,this['path']='facet';}['create'](_0x451c12,_0x6ebb9f,_0x1ceaf6,_0x425a55){return __awaiter$1(this,void 0,void 0,function*(){const _0x51550e={'account_name':_0x451c12,'list_name':_0x6ebb9f,'facet_name':_0x1ceaf6};try{const _0x49ac48=yield this['fetch']['post'](this['path'],_0x425a55,_0x51550e);if(_0x49ac48['status']>0xc7&&_0x49ac48['status']<0x12c){const _0x5923a9=yield _0x49ac48['json']();return new SuccessfulFacetResponse(_0x5923a9);}const _0x5833e5=yield _0x49ac48['json']();return new FailedFacetResponse(_0x5833e5);}catch(_0x4a04c2){if(_0x4a04c2 instanceof Error)return new FailedFacetResponse({'detail':_0x4a04c2['message'],'title':_0x4a04c2['name'],'status':0x1f4,'instance':'','type':''});throw _0x4a04c2;}});}['remove'](_0x1ca614,_0x2f944b,_0xe9d275,_0x2e6c54){return __awaiter$1(this,void 0,void 0,function*(){const _0x18d784='Facet/'+_0x1ca614+'/'+_0x2f944b+'/'+_0xe9d275,_0x3ebbb0=yield this['fetch']['delete'](_0x18d784,_0x2e6c54);try{if(_0x3ebbb0['status']>0xc7&&_0x3ebbb0['status']<0x12c)return new SuccessfulResponse({});const _0xa26b4a=yield _0x3ebbb0['json']();return new FailedResponse(_0xa26b4a);}catch(_0xd35a0e){if(_0xd35a0e instanceof Error)return new FailedResponse({'detail':_0xd35a0e['message'],'title':_0xd35a0e['name'],'status':0x1f4,'instance':'','type':''});throw _0xd35a0e;}});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x84710,_0x24ce6d,_0x4f5a4f,_0x2034b3){function _0x576866(_0x2ef6ac){return _0x2ef6ac instanceof _0x4f5a4f?_0x2ef6ac:new _0x4f5a4f(function(_0x5e6758){_0x5e6758(_0x2ef6ac);});}return new(_0x4f5a4f||(_0x4f5a4f=Promise))(function(_0xb0e264,_0x12dc6b){function _0x54f8da(_0xed34df){try{_0x4843ea(_0x2034b3['next'](_0xed34df));}catch(_0x24d3e7){_0x12dc6b(_0x24d3e7);}}function _0x5ab9a2(_0x5006c2){try{_0x4843ea(_0x2034b3['throw'](_0x5006c2));}catch(_0x1d7c68){_0x12dc6b(_0x1d7c68);}}function _0x4843ea(_0x349002){_0x349002['done']?_0xb0e264(_0x349002['value']):_0x576866(_0x349002['value'])['then'](_0x54f8da,_0x5ab9a2);}_0x4843ea((_0x2034b3=_0x2034b3['apply'](_0x84710,_0x24ce6d||[]))['next']());});};class FacetService{constructor(_0x14e197){this['fetch']=_0x14e197,this['path']='facet';}['create'](_0x269497,_0x570103,_0x3981fa,_0x4aecaf){return __awaiter$1(this,void 0,void 0,function*(){const _0x184671={'account_name':_0x269497,'list_name':_0x570103,'facet_name':_0x3981fa};try{const _0x2617a6=yield this['fetch']['post'](this['path'],_0x4aecaf,_0x184671);if(_0x2617a6['status']>0xc7&&_0x2617a6['status']<0x12c){const _0x38966a=yield _0x2617a6['json']();return new SuccessfulFacetResponse(_0x38966a);}const _0x3661de=yield _0x2617a6['json']();return new FailedFacetResponse(_0x3661de);}catch(_0x578881){if(_0x578881 instanceof Error)return new FailedFacetResponse({'detail':_0x578881['message'],'title':_0x578881['name'],'status':0x1f4,'instance':'','type':''});throw _0x578881;}});}['remove'](_0x2b8e1b,_0x5526e6,_0x12809e,_0x45c466){return __awaiter$1(this,void 0,void 0,function*(){const _0x436407='Facet/'+_0x2b8e1b+'/'+_0x5526e6+'/'+_0x12809e,_0x3ee7ea=yield this['fetch']['delete'](_0x436407,_0x45c466);try{if(_0x3ee7ea['status']>0xc7&&_0x3ee7ea['status']<0x12c)return new SuccessfulResponse({});const _0x44eaa4=yield _0x3ee7ea['json']();return new FailedResponse(_0x44eaa4);}catch(_0x1fffae){if(_0x1fffae instanceof Error)return new FailedResponse({'detail':_0x1fffae['message'],'title':_0x1fffae['name'],'status':0x1f4,'instance':'','type':''});throw _0x1fffae;}});}['rename'](_0x46e6bb,_0x1b1c66,_0x15afb9,_0x129af6,_0x4da184){return __awaiter$1(this,void 0,void 0,function*(){const _0x40a500={'account_name':_0x46e6bb,'list_name':_0x1b1c66,'facet_name':_0x15afb9,'rename_facet_name':_0x129af6};try{const _0x321b23=yield this['fetch']['put'](this['path'],_0x4da184,_0x40a500);if(_0x321b23['status']>0xc7&&_0x321b23['status']<0x12c){const _0x34258c=yield _0x321b23['json']();return new SuccessfulFacetResponse(_0x34258c);}const _0x4e453a=yield _0x321b23['json']();return new FailedFacetResponse(_0x4e453a);}catch(_0x194406){if(_0x194406 instanceof Error)return new FailedFacetResponse({'detail':_0x194406['message'],'title':_0x194406['name'],'status':0x1f4,'instance':'','type':''});throw _0x194406;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x15a5aa,_0x4ba9a5,_0x1bd4ff,_0x52469a){function _0xc5ed91(_0x202bbd){return _0x202bbd instanceof _0x1bd4ff?_0x202bbd:new _0x1bd4ff(function(_0x4047a8){_0x4047a8(_0x202bbd);});}return new(_0x1bd4ff||(_0x1bd4ff=Promise))(function(_0x289734,_0x14f956){function _0x58ec8e(_0x45f991){try{_0x548b35(_0x52469a['next'](_0x45f991));}catch(_0x39028a){_0x14f956(_0x39028a);}}function _0x3c232c(_0x236a23){try{_0x548b35(_0x52469a['throw'](_0x236a23));}catch(_0x35fea7){_0x14f956(_0x35fea7);}}function _0x548b35(_0x5722d3){_0x5722d3['done']?_0x289734(_0x5722d3['value']):_0xc5ed91(_0x5722d3['value'])['then'](_0x58ec8e,_0x3c232c);}_0x548b35((_0x52469a=_0x52469a['apply'](_0x15a5aa,_0x4ba9a5||[]))['next']());});};class AdminClient{constructor(_0x3bea35='https://admin.searchability.dev/'){var _0x567bdf=new Fetch(_0x3bea35);this['Accounts']=new AccountService(_0x567bdf),this['Lists']=new ListService(_0x567bdf),this['ApiKeys']=new ApiKeyService(_0x567bdf),this['SearchServices']=new SearchServersService(_0x567bdf),this['FacetService']=new FacetService(_0x567bdf);}}class AuthClient{constructor(_0x52c6f1='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x52c6f1);}['login'](_0x287ee5){return __awaiter(this,void 0,void 0,function*(){const _0x3d4fda='login/'+_0x287ee5;try{const _0x4b0c68=yield yield fetch(_0x3d4fda);if(_0x4b0c68['status']>0xc7&&_0x4b0c68['status']<0x12c){const _0x196b9a=yield _0x4b0c68['json']();return new SuccessfulAuthResponse(_0x196b9a);}const _0x332f42=yield _0x4b0c68['json']();return new FailedAuthResponse(_0x332f42);}catch(_0x57991d){if(_0x57991d instanceof Error)return new FailedAuthResponse({'detail':_0x57991d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x57991d;}});}['refresh'](_0x4394b7){return __awaiter(this,void 0,void 0,function*(){const _0x19474f='refresh',_0x37c8ed={'refresh_token':_0x4394b7};try{const _0x41fb1d=yield this['fetch']['PostNoAuth'](_0x19474f,_0x37c8ed);if(_0x41fb1d['status']>0xc7&&_0x41fb1d['status']<0x12c){const _0x109b45=yield _0x41fb1d['json']();return new SuccessfulAuthResponse(_0x109b45);}const _0x237cb5=yield _0x41fb1d['json']();return new FailedAuthResponse(_0x237cb5);}catch(_0x48a86d){if(_0x48a86d instanceof Error)return new FailedAuthResponse({'detail':_0x48a86d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x48a86d;}});}['getTokenStatus'](_0x5922f0){if(Date['now']()<_0x5922f0['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x5922f0['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x176246,_0x497ad0,_0x380e12,_0x51f623){function _0x397b3c(_0x5a3c7a){return _0x5a3c7a instanceof _0x380e12?_0x5a3c7a:new _0x380e12(function(_0x5aa195){_0x5aa195(_0x5a3c7a);});}return new(_0x380e12||(_0x380e12=Promise))(function(_0x530898,_0x2afd22){function _0x693b04(_0x555c74){try{_0x1872e9(_0x51f623['next'](_0x555c74));}catch(_0x19c2ed){_0x2afd22(_0x19c2ed);}}function _0x43c468(_0x4dd318){try{_0x1872e9(_0x51f623['throw'](_0x4dd318));}catch(_0x3a0d7d){_0x2afd22(_0x3a0d7d);}}function _0x1872e9(_0x5394d3){_0x5394d3['done']?_0x530898(_0x5394d3['value']):_0x397b3c(_0x5394d3['value'])['then'](_0x693b04,_0x43c468);}_0x1872e9((_0x51f623=_0x51f623['apply'](_0x176246,_0x497ad0||[]))['next']());});};class AdminClient{constructor(_0x466acb='https://admin.searchability.dev/'){var _0x1e089b=new Fetch(_0x466acb);this['Accounts']=new AccountService(_0x1e089b),this['Lists']=new ListService(_0x1e089b),this['ApiKeys']=new ApiKeyService(_0x1e089b),this['SearchServices']=new SearchServersService(_0x1e089b),this['FacetService']=new FacetService(_0x1e089b);}}class AuthClient{constructor(_0x1a0096='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1a0096);}['login'](_0x4a4987){return __awaiter(this,void 0,void 0,function*(){const _0x4b58ad='login/'+_0x4a4987;try{const _0x150746=yield yield fetch(_0x4b58ad);if(_0x150746['status']>0xc7&&_0x150746['status']<0x12c){const _0x5b29fe=yield _0x150746['json']();return new SuccessfulAuthResponse(_0x5b29fe);}const _0x4ac44d=yield _0x150746['json']();return new FailedAuthResponse(_0x4ac44d);}catch(_0x557e3b){if(_0x557e3b instanceof Error)return new FailedAuthResponse({'detail':_0x557e3b['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x557e3b;}});}['refresh'](_0x2e18cf){return __awaiter(this,void 0,void 0,function*(){const _0x4e1b6f='refresh',_0xce107e={'refresh_token':_0x2e18cf};try{const _0x5e0d4c=yield this['fetch']['PostNoAuth'](_0x4e1b6f,_0xce107e);if(_0x5e0d4c['status']>0xc7&&_0x5e0d4c['status']<0x12c){const _0x36ccc9=yield _0x5e0d4c['json']();return new SuccessfulAuthResponse(_0x36ccc9);}const _0x4da032=yield _0x5e0d4c['json']();return new FailedAuthResponse(_0x4da032);}catch(_0x34388a){if(_0x34388a instanceof Error)return new FailedAuthResponse({'detail':_0x34388a['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x34388a;}});}['getTokenStatus'](_0x5d3bbe){if(Date['now']()<_0x5d3bbe['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x5d3bbe['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
16
 
17
17
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -49,6 +49,7 @@ declare class FacetService {
49
49
  constructor(fetch: Fetch);
50
50
  create(account_name: string, list_name: string, facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
51
51
  remove(account_name: string, list_name: string, facet_name: string, access_token: string): Promise<Response<any, Problem>>;
52
+ rename(account_name: string, list_name: string, facet_name: string, rename_facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
52
53
  }
53
54
 
54
55
  declare class AdminClient {
@@ -87,23 +88,17 @@ declare abstract class Response<S, F> {
87
88
  abstract toSuccess(): S;
88
89
  abstract toProblem(): F;
89
90
  }
90
- type List = {
91
- list_name: string;
92
- created: number;
93
- version: number;
94
- account_name: string;
95
- search_service_name: string;
96
- search_service_is_shared: boolean;
97
- facets: Facet[];
98
- };
99
91
  type ListIdentity = {
100
92
  list_name: string;
101
93
  created: number;
102
94
  account_name: string;
103
- search_service_is_shared: boolean;
104
95
  search_service_name: string;
96
+ search_service_is_shared: boolean;
105
97
  version: number;
106
98
  };
99
+ type List = ListIdentity & {
100
+ facets: Facet[];
101
+ };
107
102
  type ApiKey = {
108
103
  name: string;
109
104
  created: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
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(_0x4d26d4){_0x4d26d4[_0x4d26d4['Ok']=0x0]='Ok',_0x4d26d4[_0x4d26d4['Refresh']=0x1]='Refresh',_0x4d26d4[_0x4d26d4['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(_0x5a87ed){this['isSuccess']=_0x5a87ed;}}class SuccessfulFacetResponse extends Response{constructor(_0xc76366){super(!![]),this['facet']=_0xc76366;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x3d3169){super(![]),this['problem']=_0x3d3169;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x4bc969){super(!![]),this['account']=_0x4bc969;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x38d31b){super(!![]),this['list']=_0x38d31b;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x413a34){super(!![]),this['list']=_0x413a34;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3d7515){super(![]),this['problem']=_0x3d7515;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x523bc1){super(![]),this['problem']=_0x523bc1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x1eac2f){super(![]),this['problem']=_0x1eac2f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x37f958){super(!![]),this['tokens']=_0x37f958;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x4fcef7){super(![]),this['problem']=_0x4fcef7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1cfb63){super(!![]),this['apiKey']=_0x1cfb63;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5c6503){super(![]),this['problem']=_0x5c6503;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x4fd806){super(!![]),this['searchService']=_0x4fd806;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5ccadd){super(![]),this['problem']=_0x5ccadd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x40b2e1){super(!![]),this['searchService']=_0x40b2e1;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x23048a){super(!![]),this['searchServices']=_0x23048a;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x43ea55){super(![]),this['problem']=_0x43ea55;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x2972ce){super(![]),this['problem']=_0x2972ce;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x14e792){super(!![]),this['apiKeyValue']=_0x14e792;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x31cf78){super(!![]),this['obj']=_0x31cf78;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x3614f1){super(![]),this['problem']=_0x3614f1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x189a7d){super(![]),this['problem']=_0x189a7d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0xa05c31,_0x15c5a4,_0x3fd9d2,_0x3224e7){function _0xbbecfc(_0x452914){return _0x452914 instanceof _0x3fd9d2?_0x452914:new _0x3fd9d2(function(_0x57a5d3){_0x57a5d3(_0x452914);});}return new(_0x3fd9d2||(_0x3fd9d2=Promise))(function(_0x2a75ff,_0x28316c){function _0x433808(_0x405d0e){try{_0xed035b(_0x3224e7['next'](_0x405d0e));}catch(_0x4b85b9){_0x28316c(_0x4b85b9);}}function _0x122198(_0x12b75f){try{_0xed035b(_0x3224e7['throw'](_0x12b75f));}catch(_0x26723a){_0x28316c(_0x26723a);}}function _0xed035b(_0xbf8d53){_0xbf8d53['done']?_0x2a75ff(_0xbf8d53['value']):_0xbbecfc(_0xbf8d53['value'])['then'](_0x433808,_0x122198);}_0xed035b((_0x3224e7=_0x3224e7['apply'](_0xa05c31,_0x15c5a4||[]))['next']());});};class AccountService{constructor(_0x3ac065){this['fetch']=_0x3ac065;}['get'](_0x482dd0,_0x3535ff){return __awaiter$6(this,void 0,void 0,function*(){const _0x2cbe5a='Account/'+_0x482dd0+'/',_0x36ea52=yield this['fetch']['get'](_0x2cbe5a,_0x3535ff);try{if(_0x36ea52['status']>0xc7&&_0x36ea52['status']<0x12c){const _0xe296e9=yield _0x36ea52['json']();return new SuccessfulAccountResponse(_0xe296e9);}const _0x53c249=yield _0x36ea52['json']();return new FailedAccountResponse(_0x53c249);}catch(_0x302392){if(_0x302392 instanceof Error)return new FailedAccountResponse({'detail':_0x302392['message'],'title':_0x302392['name'],'status':0x1f4,'instance':'','type':''});throw _0x302392;}});}}
4
-
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0xefef78,_0x521900,_0x51834f,_0x97d7ab){function _0x1b5bcc(_0x5c8780){return _0x5c8780 instanceof _0x51834f?_0x5c8780:new _0x51834f(function(_0x51f488){_0x51f488(_0x5c8780);});}return new(_0x51834f||(_0x51834f=Promise))(function(_0x2d2e4c,_0x445f9a){function _0x44d8ef(_0x210a50){try{_0xe8c468(_0x97d7ab['next'](_0x210a50));}catch(_0x12dc83){_0x445f9a(_0x12dc83);}}function _0x4d3524(_0x2cb62e){try{_0xe8c468(_0x97d7ab['throw'](_0x2cb62e));}catch(_0x3f6b66){_0x445f9a(_0x3f6b66);}}function _0xe8c468(_0x2ea9f9){_0x2ea9f9['done']?_0x2d2e4c(_0x2ea9f9['value']):_0x1b5bcc(_0x2ea9f9['value'])['then'](_0x44d8ef,_0x4d3524);}_0xe8c468((_0x97d7ab=_0x97d7ab['apply'](_0xefef78,_0x521900||[]))['next']());});};class ApiKeyService{constructor(_0x52362b){this['fetch']=_0x52362b,this['path']='api-key';}['create'](_0x5dc765,_0x2d5ba3,_0x2462d8){return __awaiter$5(this,void 0,void 0,function*(){const _0x3a0957={'account_name':_0x5dc765,'api_key_name':_0x2d5ba3};try{const _0x48bf3d=yield this['fetch']['post'](this['path'],_0x2462d8,_0x3a0957);if(_0x48bf3d['status']>0xc7&&_0x48bf3d['status']<0x12c){const _0x4cc79e=yield _0x48bf3d['json']();return new SuccessfulApiKeyResponse(_0x4cc79e);}const _0x5b0021=yield _0x48bf3d['json']();return new FailedApiKeyResponse(_0x5b0021);}catch(_0x1e8806){if(_0x1e8806 instanceof Error)return new FailedApiKeyResponse({'detail':_0x1e8806['message'],'title':_0x1e8806['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e8806;}});}['view'](_0x43e746,_0x5be7fd,_0x2d2437){return __awaiter$5(this,void 0,void 0,function*(){const _0x5be4ba=this['path']+'/'+_0x43e746+'/'+_0x5be7fd;try{const _0x484c03=yield this['fetch']['get'](_0x5be4ba,_0x2d2437);if(_0x484c03['status']>0xc7&&_0x484c03['status']<0x12c){const _0x4d69f3=yield _0x484c03['json']();return new SuccessfulApiKeyValueResponse(_0x4d69f3);}const _0x3ad28a=yield _0x484c03['json']();return new FailedApiKeyValueResponse(_0x3ad28a);}catch(_0x4cd8a9){if(_0x4cd8a9 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x4cd8a9['message'],'title':_0x4cd8a9['name'],'status':0x1f4,'instance':'','type':''});throw _0x4cd8a9;}});}['delete'](_0x21e998,_0xffd817,_0xce0c27){return __awaiter$5(this,void 0,void 0,function*(){const _0xffb203=this['path']+'/'+_0x21e998+'/'+_0xffd817;try{const _0x83ef6d=yield this['fetch']['delete'](_0xffb203,_0xce0c27);if(_0x83ef6d['status']>0xc7&&_0x83ef6d['status']<0x12c)return new SuccessfulResponse({});const _0x1b0800=yield _0x83ef6d['json']();return new FailedResponse(_0x1b0800);}catch(_0x2552ca){if(_0x2552ca instanceof Error)return new FailedResponse({'detail':_0x2552ca['message'],'title':_0x2552ca['name'],'status':0x1f4,'instance':'','type':''});throw _0x2552ca;}});}}
6
-
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x3fcefb,_0x299f74,_0x3a46c4,_0x5a3120){function _0x1bdaff(_0x3fa063){return _0x3fa063 instanceof _0x3a46c4?_0x3fa063:new _0x3a46c4(function(_0x5a8ad0){_0x5a8ad0(_0x3fa063);});}return new(_0x3a46c4||(_0x3a46c4=Promise))(function(_0x1f1c9c,_0x2a4634){function _0x1e8832(_0x7a3987){try{_0x2dac90(_0x5a3120['next'](_0x7a3987));}catch(_0xb36386){_0x2a4634(_0xb36386);}}function _0x161d9f(_0x4297f6){try{_0x2dac90(_0x5a3120['throw'](_0x4297f6));}catch(_0x329994){_0x2a4634(_0x329994);}}function _0x2dac90(_0x23170d){_0x23170d['done']?_0x1f1c9c(_0x23170d['value']):_0x1bdaff(_0x23170d['value'])['then'](_0x1e8832,_0x161d9f);}_0x2dac90((_0x5a3120=_0x5a3120['apply'](_0x3fcefb,_0x299f74||[]))['next']());});};class ListService{constructor(_0x3c2ec1){this['fetch']=_0x3c2ec1;}['create'](_0x2c5d24,_0x1694d6,_0x7f5a0a,_0x36b9fa){return __awaiter$4(this,void 0,void 0,function*(){const _0x22efd0='List',_0x2d74bd={'account_name':_0x2c5d24,'list_name':_0x1694d6,'search_service_name':_0x7f5a0a};try{const _0x570e2f=yield this['fetch']['post'](_0x22efd0,_0x36b9fa,_0x2d74bd);if(_0x570e2f['status']>0xc7&&_0x570e2f['status']<0x12c){const _0x35cb71=yield _0x570e2f['json']();return new SuccessfulListIdentityResponse(_0x35cb71);}const _0x20fa80=yield _0x570e2f['json']();return new FailedListIdentityResponse(_0x20fa80);}catch(_0x266f5b){if(_0x266f5b instanceof Error)return new FailedListIdentityResponse({'detail':_0x266f5b['message'],'title':_0x266f5b['name'],'status':0x1f4,'instance':'','type':''});throw _0x266f5b;}});}['delete'](_0x443c33,_0xd52b7a,_0x4f5c95){return __awaiter$4(this,void 0,void 0,function*(){const _0x44ee8a='List/'+_0x443c33+'/'+_0xd52b7a,_0x58a69f=yield this['fetch']['delete'](_0x44ee8a,_0x4f5c95);try{if(_0x58a69f['status']>0xc7&&_0x58a69f['status']<0x12c)return new SuccessfulResponse({});const _0x2df826=yield _0x58a69f['json']();return new FailedResponse(_0x2df826);}catch(_0x2319f0){if(_0x2319f0 instanceof Error)return new FailedResponse({'detail':_0x2319f0['message'],'title':_0x2319f0['name'],'status':0x1f4,'instance':'','type':''});throw _0x2319f0;}});}['get'](_0x2eded8,_0x2854d5,_0x4614d9){return __awaiter$4(this,void 0,void 0,function*(){const _0xeab854='List/'+_0x2eded8+'/'+_0x2854d5;try{const _0x5ef33c=yield this['fetch']['get'](_0xeab854,_0x4614d9);if(_0x5ef33c['status']>0xc7&&_0x5ef33c['status']<0x12c){const _0x4eefee=yield _0x5ef33c['json']();return new SuccessfulListResponse(_0x4eefee);}const _0x236e3f=yield _0x5ef33c['json']();return new FailedListResponse(_0x236e3f);}catch(_0x2f4e05){if(_0x2f4e05 instanceof Error)return new FailedListResponse({'detail':_0x2f4e05['message'],'title':_0x2f4e05['name'],'status':0x1f4,'instance':'','type':''});throw _0x2f4e05;}});}}
8
-
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x368fcd,_0x4f7f19,_0x436661,_0x9a7556){function _0x1f40b2(_0x1c219a){return _0x1c219a instanceof _0x436661?_0x1c219a:new _0x436661(function(_0x219cb5){_0x219cb5(_0x1c219a);});}return new(_0x436661||(_0x436661=Promise))(function(_0x1c0c09,_0x5de551){function _0x250ba3(_0x547842){try{_0x4296f8(_0x9a7556['next'](_0x547842));}catch(_0x4ff2a8){_0x5de551(_0x4ff2a8);}}function _0x526c64(_0x10a6a7){try{_0x4296f8(_0x9a7556['throw'](_0x10a6a7));}catch(_0x519394){_0x5de551(_0x519394);}}function _0x4296f8(_0x46a7a7){_0x46a7a7['done']?_0x1c0c09(_0x46a7a7['value']):_0x1f40b2(_0x46a7a7['value'])['then'](_0x250ba3,_0x526c64);}_0x4296f8((_0x9a7556=_0x9a7556['apply'](_0x368fcd,_0x4f7f19||[]))['next']());});};class Fetch{constructor(_0x5ce50f){this['baseUri']=_0x5ce50f,this['getUrl']=_0x4f212f=>{return _0x4f212f['startsWith']('/')&&(_0x4f212f=_0x4f212f['replace']('/','')),''+this['baseUri']+_0x4f212f;},!_0x5ce50f['endsWith']('/')&&(_0x5ce50f=_0x5ce50f+'/');}['get'](_0x49f3b4,_0x595f68){return __awaiter$3(this,void 0,void 0,function*(){const _0x3e27b5=this['getUrl'](_0x49f3b4);return yield fetch(_0x3e27b5,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x595f68}});});}['post'](_0x15cc57,_0x439403,_0x4a24a7){return __awaiter$3(this,void 0,void 0,function*(){const _0x31e4d2=this['getUrl'](_0x15cc57);return yield fetch(_0x31e4d2,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x439403},'body':_0x4a24a7?JSON['stringify'](_0x4a24a7):null});});}['PostNoAuth'](_0x1698ee,_0xa4c5f1){return __awaiter$3(this,void 0,void 0,function*(){const _0x1b71a9=this['getUrl'](_0x1698ee);return yield fetch(_0x1b71a9,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0xa4c5f1?JSON['stringify'](_0xa4c5f1):null});});}['put'](_0x24119b,_0x59cf4a,_0x4f038b){return __awaiter$3(this,void 0,void 0,function*(){const _0x2978a0=this['getUrl'](_0x24119b);return yield fetch(_0x2978a0,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x59cf4a},'body':_0x4f038b?JSON['stringify'](_0x4f038b):null});});}['delete'](_0x33762d,_0x13dd0d){return __awaiter$3(this,void 0,void 0,function*(){const _0x46c926=this['getUrl'](_0x33762d);return yield fetch(_0x46c926,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x13dd0d}});});}}
10
-
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x90d42,_0x453ef5,_0x1d5466,_0x417a0a){function _0x597a02(_0x486ef3){return _0x486ef3 instanceof _0x1d5466?_0x486ef3:new _0x1d5466(function(_0x5ae038){_0x5ae038(_0x486ef3);});}return new(_0x1d5466||(_0x1d5466=Promise))(function(_0x48c24f,_0x38991b){function _0x5db98b(_0x282996){try{_0x28bdb9(_0x417a0a['next'](_0x282996));}catch(_0x67566a){_0x38991b(_0x67566a);}}function _0xf60e44(_0x4f4ea4){try{_0x28bdb9(_0x417a0a['throw'](_0x4f4ea4));}catch(_0x38a966){_0x38991b(_0x38a966);}}function _0x28bdb9(_0x5a2627){_0x5a2627['done']?_0x48c24f(_0x5a2627['value']):_0x597a02(_0x5a2627['value'])['then'](_0x5db98b,_0xf60e44);}_0x28bdb9((_0x417a0a=_0x417a0a['apply'](_0x90d42,_0x453ef5||[]))['next']());});};class SearchServersService{constructor(_0x8f66a9){this['fetch']=_0x8f66a9,this['path']='search-services';}['create'](_0x178c5e,_0x671b78,_0x33a3d5,_0x19c67d,_0x2cb132,_0x523f5d,_0x262729,_0xc61100){return __awaiter$2(this,void 0,void 0,function*(){const _0x53b4b0={'account_name':_0x178c5e,'search_service_name':_0x671b78,'endpoint':_0x33a3d5,'key':_0x19c67d,'country':_0x2cb132,'provider':_0x523f5d,'index_name':_0x262729};try{const _0x114fae=yield this['fetch']['post'](this['path'],_0xc61100,_0x53b4b0);if(_0x114fae['status']>0xc7&&_0x114fae['status']<0x12c){const _0x162c8e=yield _0x114fae['json']();return new SuccessfulSearchServiceResponse(_0x162c8e);}const _0x3e8cbb=yield _0x114fae['json']();return new FailedSearchServiceResponse(_0x3e8cbb);}catch(_0x296d76){if(_0x296d76 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x296d76['message'],'title':_0x296d76['name'],'status':0x1f4,'instance':'','type':''});throw _0x296d76;}});}['delete'](_0xcebe8f,_0x3abce1,_0x309e4f){return __awaiter$2(this,void 0,void 0,function*(){const _0x4536c7=this['path']+'/'+_0xcebe8f+'/'+_0x3abce1;try{const _0xa32c20=yield this['fetch']['delete'](_0x4536c7,_0x309e4f);if(_0xa32c20['status']>0xc7&&_0xa32c20['status']<0x12c)return new SuccessfulResponse({});const _0x39e913=yield _0xa32c20['json']();return new FailedResponse(_0x39e913);}catch(_0x1bb665){if(_0x1bb665 instanceof Error)return new FailedResponse({'detail':_0x1bb665['message'],'title':_0x1bb665['name'],'status':0x1f4,'instance':'','type':''});throw _0x1bb665;}});}['view'](_0x2c36f8,_0x32416,_0x1fd7c9){return __awaiter$2(this,void 0,void 0,function*(){const _0x6423a9=this['path']+'/'+_0x2c36f8+'/'+_0x32416;try{const _0x1af2ad=yield this['fetch']['get'](_0x6423a9,_0x1fd7c9);if(_0x1af2ad['status']>0xc7&&_0x1af2ad['status']<0x12c){const _0x3b7daf=yield _0x1af2ad['json']();return new SuccessfulViewSearchServiceResponse(_0x3b7daf);}const _0x4b42c6=yield _0x1af2ad['json']();return new FailedViewSearchServiceResponse(_0x4b42c6);}catch(_0x176d79){if(_0x176d79 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x176d79['message'],'title':_0x176d79['name'],'status':0x1f4,'instance':'','type':''});throw _0x176d79;}});}['edit'](_0x8d51c8,_0x2b23d0,_0x8b2b7a,_0x455c46,_0xdddc2b,_0x20a987){return __awaiter$2(this,void 0,void 0,function*(){const _0x1c703c={'account_name':_0x8d51c8,'search_service_name':_0x2b23d0,'new_search_service_name':_0x8b2b7a,'key':_0x455c46,'country':_0xdddc2b};try{const _0x1e1946=yield this['fetch']['put'](this['path'],_0x20a987,_0x1c703c);if(_0x1e1946['status']>0xc7&&_0x1e1946['status']<0x12c){const _0x2d2b67=yield _0x1e1946['json']();return new SuccessfulSearchServiceResponse(_0x2d2b67);}const _0x3f2ccf=yield _0x1e1946['json']();return new FailedSearchServiceResponse(_0x3f2ccf);}catch(_0x3d2941){if(_0x3d2941 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3d2941['message'],'title':_0x3d2941['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d2941;}});}['list'](_0x51fad6,_0xfc0fa2){return __awaiter$2(this,void 0,void 0,function*(){const _0x595dab=this['path']+'/'+_0x51fad6;try{const _0x42feaa=yield this['fetch']['get'](_0x595dab,_0xfc0fa2);if(_0x42feaa['status']>0xc7&&_0x42feaa['status']<0x12c){const _0x35c0f8=yield _0x42feaa['json']();return new SuccessfulListSearchServiceResponse(_0x35c0f8);}const _0x116ccb=yield _0x42feaa['json']();return new FailedViewSearchServicesResponse(_0x116ccb);}catch(_0x5ad61e){if(_0x5ad61e instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5ad61e['message'],'title':_0x5ad61e['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ad61e;}});}}
12
-
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1a1db5,_0xc74310,_0x9b0a0d,_0x1f7eff){function _0x558f29(_0x3d709c){return _0x3d709c instanceof _0x9b0a0d?_0x3d709c:new _0x9b0a0d(function(_0x34af7f){_0x34af7f(_0x3d709c);});}return new(_0x9b0a0d||(_0x9b0a0d=Promise))(function(_0x3f893e,_0x10161d){function _0x11bfa6(_0x7ddacf){try{_0xb6f871(_0x1f7eff['next'](_0x7ddacf));}catch(_0x35dddc){_0x10161d(_0x35dddc);}}function _0x3e4e32(_0xc88df2){try{_0xb6f871(_0x1f7eff['throw'](_0xc88df2));}catch(_0x2d2486){_0x10161d(_0x2d2486);}}function _0xb6f871(_0x2108fc){_0x2108fc['done']?_0x3f893e(_0x2108fc['value']):_0x558f29(_0x2108fc['value'])['then'](_0x11bfa6,_0x3e4e32);}_0xb6f871((_0x1f7eff=_0x1f7eff['apply'](_0x1a1db5,_0xc74310||[]))['next']());});};class FacetService{constructor(_0x1fb79b){this['fetch']=_0x1fb79b,this['path']='facet';}['create'](_0x24086e,_0x2f64ed,_0x53e9c6,_0x49bc4a){return __awaiter$1(this,void 0,void 0,function*(){const _0x2fa7bd={'account_name':_0x24086e,'list_name':_0x2f64ed,'facet_name':_0x53e9c6};try{const _0x5ea1a6=yield this['fetch']['post'](this['path'],_0x49bc4a,_0x2fa7bd);if(_0x5ea1a6['status']>0xc7&&_0x5ea1a6['status']<0x12c){const _0x2ba3d3=yield _0x5ea1a6['json']();return new SuccessfulFacetResponse(_0x2ba3d3);}const _0x4f540e=yield _0x5ea1a6['json']();return new FailedFacetResponse(_0x4f540e);}catch(_0xaa2911){if(_0xaa2911 instanceof Error)return new FailedFacetResponse({'detail':_0xaa2911['message'],'title':_0xaa2911['name'],'status':0x1f4,'instance':'','type':''});throw _0xaa2911;}});}['remove'](_0x43e890,_0x874439,_0x2258b7,_0x25705d){return __awaiter$1(this,void 0,void 0,function*(){const _0x4e9cc4='Facet/'+_0x43e890+'/'+_0x874439+'/'+_0x2258b7,_0xacc47e=yield this['fetch']['delete'](_0x4e9cc4,_0x25705d);try{if(_0xacc47e['status']>0xc7&&_0xacc47e['status']<0x12c)return new SuccessfulResponse({});const _0x204886=yield _0xacc47e['json']();return new FailedResponse(_0x204886);}catch(_0xfa4ca){if(_0xfa4ca instanceof Error)return new FailedResponse({'detail':_0xfa4ca['message'],'title':_0xfa4ca['name'],'status':0x1f4,'instance':'','type':''});throw _0xfa4ca;}});}}
14
-
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x50dcfa,_0x189fb2,_0x38165d,_0x5e1d8e){function _0x3a1986(_0x519596){return _0x519596 instanceof _0x38165d?_0x519596:new _0x38165d(function(_0x43fe58){_0x43fe58(_0x519596);});}return new(_0x38165d||(_0x38165d=Promise))(function(_0x2ed6df,_0x2a8b06){function _0x5de11d(_0x2b28ab){try{_0x1e03a3(_0x5e1d8e['next'](_0x2b28ab));}catch(_0x53e53b){_0x2a8b06(_0x53e53b);}}function _0x275754(_0x4ec794){try{_0x1e03a3(_0x5e1d8e['throw'](_0x4ec794));}catch(_0x23db7a){_0x2a8b06(_0x23db7a);}}function _0x1e03a3(_0x80c58){_0x80c58['done']?_0x2ed6df(_0x80c58['value']):_0x3a1986(_0x80c58['value'])['then'](_0x5de11d,_0x275754);}_0x1e03a3((_0x5e1d8e=_0x5e1d8e['apply'](_0x50dcfa,_0x189fb2||[]))['next']());});};class AdminClient{constructor(_0x50325d='https://admin.searchability.dev/'){var _0x3656df=new Fetch(_0x50325d);this['Accounts']=new AccountService(_0x3656df),this['Lists']=new ListService(_0x3656df),this['ApiKeys']=new ApiKeyService(_0x3656df),this['SearchServices']=new SearchServersService(_0x3656df),this['FacetService']=new FacetService(_0x3656df);}}class AuthClient{constructor(_0x4aaf8e='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4aaf8e);}['login'](_0x3f690f){return __awaiter(this,void 0,void 0,function*(){const _0x26b9df='login/'+_0x3f690f;try{const _0x29cec3=yield yield fetch(_0x26b9df);if(_0x29cec3['status']>0xc7&&_0x29cec3['status']<0x12c){const _0x4a3358=yield _0x29cec3['json']();return new SuccessfulAuthResponse(_0x4a3358);}const _0x19293a=yield _0x29cec3['json']();return new FailedAuthResponse(_0x19293a);}catch(_0x4a4f47){if(_0x4a4f47 instanceof Error)return new FailedAuthResponse({'detail':_0x4a4f47['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4a4f47;}});}['refresh'](_0xda24e){return __awaiter(this,void 0,void 0,function*(){const _0x3383c8='refresh',_0x29d795={'refresh_token':_0xda24e};try{const _0x3cc3ef=yield this['fetch']['PostNoAuth'](_0x3383c8,_0x29d795);if(_0x3cc3ef['status']>0xc7&&_0x3cc3ef['status']<0x12c){const _0x27c205=yield _0x3cc3ef['json']();return new SuccessfulAuthResponse(_0x27c205);}const _0x1a6892=yield _0x3cc3ef['json']();return new FailedAuthResponse(_0x1a6892);}catch(_0x408d47){if(_0x408d47 instanceof Error)return new FailedAuthResponse({'detail':_0x408d47['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x408d47;}});}['getTokenStatus'](_0x1a5a87){if(Date['now']()<_0x1a5a87['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x1a5a87['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
-
17
- export { AdminClient, AuthClient, TokenStatus, Tokens };