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