@searchability/admin-client 0.0.53 → 0.0.55

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(_0x4d26d4){_0x4d26d4[_0x4d26d4['Ok']=0x0]='Ok',_0x4d26d4[_0x4d26d4['Refresh']=0x1]='Refresh',_0x4d26d4[_0x4d26d4['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x5a87ed){this['isSuccess']=_0x5a87ed;}}class SuccessfulFacetResponse extends Response{constructor(_0xc76366){super(!![]),this['facet']=_0xc76366;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x3d3169){super(![]),this['problem']=_0x3d3169;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x4bc969){super(!![]),this['account']=_0x4bc969;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x38d31b){super(!![]),this['list']=_0x38d31b;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x413a34){super(!![]),this['list']=_0x413a34;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3d7515){super(![]),this['problem']=_0x3d7515;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x523bc1){super(![]),this['problem']=_0x523bc1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x1eac2f){super(![]),this['problem']=_0x1eac2f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x37f958){super(!![]),this['tokens']=_0x37f958;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x4fcef7){super(![]),this['problem']=_0x4fcef7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1cfb63){super(!![]),this['apiKey']=_0x1cfb63;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5c6503){super(![]),this['problem']=_0x5c6503;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x4fd806){super(!![]),this['searchService']=_0x4fd806;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5ccadd){super(![]),this['problem']=_0x5ccadd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x40b2e1){super(!![]),this['searchService']=_0x40b2e1;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x23048a){super(!![]),this['searchServices']=_0x23048a;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x43ea55){super(![]),this['problem']=_0x43ea55;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x2972ce){super(![]),this['problem']=_0x2972ce;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x14e792){super(!![]),this['apiKeyValue']=_0x14e792;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x31cf78){super(!![]),this['obj']=_0x31cf78;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x3614f1){super(![]),this['problem']=_0x3614f1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x189a7d){super(![]),this['problem']=_0x189a7d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0xa05c31,_0x15c5a4,_0x3fd9d2,_0x3224e7){function _0xbbecfc(_0x452914){return _0x452914 instanceof _0x3fd9d2?_0x452914:new _0x3fd9d2(function(_0x57a5d3){_0x57a5d3(_0x452914);});}return new(_0x3fd9d2||(_0x3fd9d2=Promise))(function(_0x2a75ff,_0x28316c){function _0x433808(_0x405d0e){try{_0xed035b(_0x3224e7['next'](_0x405d0e));}catch(_0x4b85b9){_0x28316c(_0x4b85b9);}}function _0x122198(_0x12b75f){try{_0xed035b(_0x3224e7['throw'](_0x12b75f));}catch(_0x26723a){_0x28316c(_0x26723a);}}function _0xed035b(_0xbf8d53){_0xbf8d53['done']?_0x2a75ff(_0xbf8d53['value']):_0xbbecfc(_0xbf8d53['value'])['then'](_0x433808,_0x122198);}_0xed035b((_0x3224e7=_0x3224e7['apply'](_0xa05c31,_0x15c5a4||[]))['next']());});};class AccountService{constructor(_0x3ac065){this['fetch']=_0x3ac065;}['get'](_0x482dd0,_0x3535ff){return __awaiter$6(this,void 0,void 0,function*(){const _0x2cbe5a='Account/'+_0x482dd0+'/',_0x36ea52=yield this['fetch']['get'](_0x2cbe5a,_0x3535ff);try{if(_0x36ea52['status']>0xc7&&_0x36ea52['status']<0x12c){const _0xe296e9=yield _0x36ea52['json']();return new SuccessfulAccountResponse(_0xe296e9);}const _0x53c249=yield _0x36ea52['json']();return new FailedAccountResponse(_0x53c249);}catch(_0x302392){if(_0x302392 instanceof Error)return new FailedAccountResponse({'detail':_0x302392['message'],'title':_0x302392['name'],'status':0x1f4,'instance':'','type':''});throw _0x302392;}});}}
4
+
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0xefef78,_0x521900,_0x51834f,_0x97d7ab){function _0x1b5bcc(_0x5c8780){return _0x5c8780 instanceof _0x51834f?_0x5c8780:new _0x51834f(function(_0x51f488){_0x51f488(_0x5c8780);});}return new(_0x51834f||(_0x51834f=Promise))(function(_0x2d2e4c,_0x445f9a){function _0x44d8ef(_0x210a50){try{_0xe8c468(_0x97d7ab['next'](_0x210a50));}catch(_0x12dc83){_0x445f9a(_0x12dc83);}}function _0x4d3524(_0x2cb62e){try{_0xe8c468(_0x97d7ab['throw'](_0x2cb62e));}catch(_0x3f6b66){_0x445f9a(_0x3f6b66);}}function _0xe8c468(_0x2ea9f9){_0x2ea9f9['done']?_0x2d2e4c(_0x2ea9f9['value']):_0x1b5bcc(_0x2ea9f9['value'])['then'](_0x44d8ef,_0x4d3524);}_0xe8c468((_0x97d7ab=_0x97d7ab['apply'](_0xefef78,_0x521900||[]))['next']());});};class ApiKeyService{constructor(_0x52362b){this['fetch']=_0x52362b,this['path']='api-key';}['create'](_0x5dc765,_0x2d5ba3,_0x2462d8){return __awaiter$5(this,void 0,void 0,function*(){const _0x3a0957={'account_name':_0x5dc765,'api_key_name':_0x2d5ba3};try{const _0x48bf3d=yield this['fetch']['post'](this['path'],_0x2462d8,_0x3a0957);if(_0x48bf3d['status']>0xc7&&_0x48bf3d['status']<0x12c){const _0x4cc79e=yield _0x48bf3d['json']();return new SuccessfulApiKeyResponse(_0x4cc79e);}const _0x5b0021=yield _0x48bf3d['json']();return new FailedApiKeyResponse(_0x5b0021);}catch(_0x1e8806){if(_0x1e8806 instanceof Error)return new FailedApiKeyResponse({'detail':_0x1e8806['message'],'title':_0x1e8806['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e8806;}});}['view'](_0x43e746,_0x5be7fd,_0x2d2437){return __awaiter$5(this,void 0,void 0,function*(){const _0x5be4ba=this['path']+'/'+_0x43e746+'/'+_0x5be7fd;try{const _0x484c03=yield this['fetch']['get'](_0x5be4ba,_0x2d2437);if(_0x484c03['status']>0xc7&&_0x484c03['status']<0x12c){const _0x4d69f3=yield _0x484c03['json']();return new SuccessfulApiKeyValueResponse(_0x4d69f3);}const _0x3ad28a=yield _0x484c03['json']();return new FailedApiKeyValueResponse(_0x3ad28a);}catch(_0x4cd8a9){if(_0x4cd8a9 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x4cd8a9['message'],'title':_0x4cd8a9['name'],'status':0x1f4,'instance':'','type':''});throw _0x4cd8a9;}});}['delete'](_0x21e998,_0xffd817,_0xce0c27){return __awaiter$5(this,void 0,void 0,function*(){const _0xffb203=this['path']+'/'+_0x21e998+'/'+_0xffd817;try{const _0x83ef6d=yield this['fetch']['delete'](_0xffb203,_0xce0c27);if(_0x83ef6d['status']>0xc7&&_0x83ef6d['status']<0x12c)return new SuccessfulResponse({});const _0x1b0800=yield _0x83ef6d['json']();return new FailedResponse(_0x1b0800);}catch(_0x2552ca){if(_0x2552ca instanceof Error)return new FailedResponse({'detail':_0x2552ca['message'],'title':_0x2552ca['name'],'status':0x1f4,'instance':'','type':''});throw _0x2552ca;}});}}
6
+
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x3fcefb,_0x299f74,_0x3a46c4,_0x5a3120){function _0x1bdaff(_0x3fa063){return _0x3fa063 instanceof _0x3a46c4?_0x3fa063:new _0x3a46c4(function(_0x5a8ad0){_0x5a8ad0(_0x3fa063);});}return new(_0x3a46c4||(_0x3a46c4=Promise))(function(_0x1f1c9c,_0x2a4634){function _0x1e8832(_0x7a3987){try{_0x2dac90(_0x5a3120['next'](_0x7a3987));}catch(_0xb36386){_0x2a4634(_0xb36386);}}function _0x161d9f(_0x4297f6){try{_0x2dac90(_0x5a3120['throw'](_0x4297f6));}catch(_0x329994){_0x2a4634(_0x329994);}}function _0x2dac90(_0x23170d){_0x23170d['done']?_0x1f1c9c(_0x23170d['value']):_0x1bdaff(_0x23170d['value'])['then'](_0x1e8832,_0x161d9f);}_0x2dac90((_0x5a3120=_0x5a3120['apply'](_0x3fcefb,_0x299f74||[]))['next']());});};class ListService{constructor(_0x3c2ec1){this['fetch']=_0x3c2ec1;}['create'](_0x2c5d24,_0x1694d6,_0x7f5a0a,_0x36b9fa){return __awaiter$4(this,void 0,void 0,function*(){const _0x22efd0='List',_0x2d74bd={'account_name':_0x2c5d24,'list_name':_0x1694d6,'search_service_name':_0x7f5a0a};try{const _0x570e2f=yield this['fetch']['post'](_0x22efd0,_0x36b9fa,_0x2d74bd);if(_0x570e2f['status']>0xc7&&_0x570e2f['status']<0x12c){const _0x35cb71=yield _0x570e2f['json']();return new SuccessfulListIdentityResponse(_0x35cb71);}const _0x20fa80=yield _0x570e2f['json']();return new FailedListIdentityResponse(_0x20fa80);}catch(_0x266f5b){if(_0x266f5b instanceof Error)return new FailedListIdentityResponse({'detail':_0x266f5b['message'],'title':_0x266f5b['name'],'status':0x1f4,'instance':'','type':''});throw _0x266f5b;}});}['delete'](_0x443c33,_0xd52b7a,_0x4f5c95){return __awaiter$4(this,void 0,void 0,function*(){const _0x44ee8a='List/'+_0x443c33+'/'+_0xd52b7a,_0x58a69f=yield this['fetch']['delete'](_0x44ee8a,_0x4f5c95);try{if(_0x58a69f['status']>0xc7&&_0x58a69f['status']<0x12c)return new SuccessfulResponse({});const _0x2df826=yield _0x58a69f['json']();return new FailedResponse(_0x2df826);}catch(_0x2319f0){if(_0x2319f0 instanceof Error)return new FailedResponse({'detail':_0x2319f0['message'],'title':_0x2319f0['name'],'status':0x1f4,'instance':'','type':''});throw _0x2319f0;}});}['get'](_0x2eded8,_0x2854d5,_0x4614d9){return __awaiter$4(this,void 0,void 0,function*(){const _0xeab854='List/'+_0x2eded8+'/'+_0x2854d5;try{const _0x5ef33c=yield this['fetch']['get'](_0xeab854,_0x4614d9);if(_0x5ef33c['status']>0xc7&&_0x5ef33c['status']<0x12c){const _0x4eefee=yield _0x5ef33c['json']();return new SuccessfulListResponse(_0x4eefee);}const _0x236e3f=yield _0x5ef33c['json']();return new FailedListResponse(_0x236e3f);}catch(_0x2f4e05){if(_0x2f4e05 instanceof Error)return new FailedListResponse({'detail':_0x2f4e05['message'],'title':_0x2f4e05['name'],'status':0x1f4,'instance':'','type':''});throw _0x2f4e05;}});}}
8
+
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x368fcd,_0x4f7f19,_0x436661,_0x9a7556){function _0x1f40b2(_0x1c219a){return _0x1c219a instanceof _0x436661?_0x1c219a:new _0x436661(function(_0x219cb5){_0x219cb5(_0x1c219a);});}return new(_0x436661||(_0x436661=Promise))(function(_0x1c0c09,_0x5de551){function _0x250ba3(_0x547842){try{_0x4296f8(_0x9a7556['next'](_0x547842));}catch(_0x4ff2a8){_0x5de551(_0x4ff2a8);}}function _0x526c64(_0x10a6a7){try{_0x4296f8(_0x9a7556['throw'](_0x10a6a7));}catch(_0x519394){_0x5de551(_0x519394);}}function _0x4296f8(_0x46a7a7){_0x46a7a7['done']?_0x1c0c09(_0x46a7a7['value']):_0x1f40b2(_0x46a7a7['value'])['then'](_0x250ba3,_0x526c64);}_0x4296f8((_0x9a7556=_0x9a7556['apply'](_0x368fcd,_0x4f7f19||[]))['next']());});};class Fetch{constructor(_0x5ce50f){this['baseUri']=_0x5ce50f,this['getUrl']=_0x4f212f=>{return _0x4f212f['startsWith']('/')&&(_0x4f212f=_0x4f212f['replace']('/','')),''+this['baseUri']+_0x4f212f;},!_0x5ce50f['endsWith']('/')&&(_0x5ce50f=_0x5ce50f+'/');}['get'](_0x49f3b4,_0x595f68){return __awaiter$3(this,void 0,void 0,function*(){const _0x3e27b5=this['getUrl'](_0x49f3b4);return yield fetch(_0x3e27b5,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x595f68}});});}['post'](_0x15cc57,_0x439403,_0x4a24a7){return __awaiter$3(this,void 0,void 0,function*(){const _0x31e4d2=this['getUrl'](_0x15cc57);return yield fetch(_0x31e4d2,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x439403},'body':_0x4a24a7?JSON['stringify'](_0x4a24a7):null});});}['PostNoAuth'](_0x1698ee,_0xa4c5f1){return __awaiter$3(this,void 0,void 0,function*(){const _0x1b71a9=this['getUrl'](_0x1698ee);return yield fetch(_0x1b71a9,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0xa4c5f1?JSON['stringify'](_0xa4c5f1):null});});}['put'](_0x24119b,_0x59cf4a,_0x4f038b){return __awaiter$3(this,void 0,void 0,function*(){const _0x2978a0=this['getUrl'](_0x24119b);return yield fetch(_0x2978a0,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x59cf4a},'body':_0x4f038b?JSON['stringify'](_0x4f038b):null});});}['delete'](_0x33762d,_0x13dd0d){return __awaiter$3(this,void 0,void 0,function*(){const _0x46c926=this['getUrl'](_0x33762d);return yield fetch(_0x46c926,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x13dd0d}});});}}
10
+
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x90d42,_0x453ef5,_0x1d5466,_0x417a0a){function _0x597a02(_0x486ef3){return _0x486ef3 instanceof _0x1d5466?_0x486ef3:new _0x1d5466(function(_0x5ae038){_0x5ae038(_0x486ef3);});}return new(_0x1d5466||(_0x1d5466=Promise))(function(_0x48c24f,_0x38991b){function _0x5db98b(_0x282996){try{_0x28bdb9(_0x417a0a['next'](_0x282996));}catch(_0x67566a){_0x38991b(_0x67566a);}}function _0xf60e44(_0x4f4ea4){try{_0x28bdb9(_0x417a0a['throw'](_0x4f4ea4));}catch(_0x38a966){_0x38991b(_0x38a966);}}function _0x28bdb9(_0x5a2627){_0x5a2627['done']?_0x48c24f(_0x5a2627['value']):_0x597a02(_0x5a2627['value'])['then'](_0x5db98b,_0xf60e44);}_0x28bdb9((_0x417a0a=_0x417a0a['apply'](_0x90d42,_0x453ef5||[]))['next']());});};class SearchServersService{constructor(_0x8f66a9){this['fetch']=_0x8f66a9,this['path']='search-services';}['create'](_0x178c5e,_0x671b78,_0x33a3d5,_0x19c67d,_0x2cb132,_0x523f5d,_0x262729,_0xc61100){return __awaiter$2(this,void 0,void 0,function*(){const _0x53b4b0={'account_name':_0x178c5e,'search_service_name':_0x671b78,'endpoint':_0x33a3d5,'key':_0x19c67d,'country':_0x2cb132,'provider':_0x523f5d,'index_name':_0x262729};try{const _0x114fae=yield this['fetch']['post'](this['path'],_0xc61100,_0x53b4b0);if(_0x114fae['status']>0xc7&&_0x114fae['status']<0x12c){const _0x162c8e=yield _0x114fae['json']();return new SuccessfulSearchServiceResponse(_0x162c8e);}const _0x3e8cbb=yield _0x114fae['json']();return new FailedSearchServiceResponse(_0x3e8cbb);}catch(_0x296d76){if(_0x296d76 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x296d76['message'],'title':_0x296d76['name'],'status':0x1f4,'instance':'','type':''});throw _0x296d76;}});}['delete'](_0xcebe8f,_0x3abce1,_0x309e4f){return __awaiter$2(this,void 0,void 0,function*(){const _0x4536c7=this['path']+'/'+_0xcebe8f+'/'+_0x3abce1;try{const _0xa32c20=yield this['fetch']['delete'](_0x4536c7,_0x309e4f);if(_0xa32c20['status']>0xc7&&_0xa32c20['status']<0x12c)return new SuccessfulResponse({});const _0x39e913=yield _0xa32c20['json']();return new FailedResponse(_0x39e913);}catch(_0x1bb665){if(_0x1bb665 instanceof Error)return new FailedResponse({'detail':_0x1bb665['message'],'title':_0x1bb665['name'],'status':0x1f4,'instance':'','type':''});throw _0x1bb665;}});}['view'](_0x2c36f8,_0x32416,_0x1fd7c9){return __awaiter$2(this,void 0,void 0,function*(){const _0x6423a9=this['path']+'/'+_0x2c36f8+'/'+_0x32416;try{const _0x1af2ad=yield this['fetch']['get'](_0x6423a9,_0x1fd7c9);if(_0x1af2ad['status']>0xc7&&_0x1af2ad['status']<0x12c){const _0x3b7daf=yield _0x1af2ad['json']();return new SuccessfulViewSearchServiceResponse(_0x3b7daf);}const _0x4b42c6=yield _0x1af2ad['json']();return new FailedViewSearchServiceResponse(_0x4b42c6);}catch(_0x176d79){if(_0x176d79 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x176d79['message'],'title':_0x176d79['name'],'status':0x1f4,'instance':'','type':''});throw _0x176d79;}});}['edit'](_0x8d51c8,_0x2b23d0,_0x8b2b7a,_0x455c46,_0xdddc2b,_0x20a987){return __awaiter$2(this,void 0,void 0,function*(){const _0x1c703c={'account_name':_0x8d51c8,'search_service_name':_0x2b23d0,'new_search_service_name':_0x8b2b7a,'key':_0x455c46,'country':_0xdddc2b};try{const _0x1e1946=yield this['fetch']['put'](this['path'],_0x20a987,_0x1c703c);if(_0x1e1946['status']>0xc7&&_0x1e1946['status']<0x12c){const _0x2d2b67=yield _0x1e1946['json']();return new SuccessfulSearchServiceResponse(_0x2d2b67);}const _0x3f2ccf=yield _0x1e1946['json']();return new FailedSearchServiceResponse(_0x3f2ccf);}catch(_0x3d2941){if(_0x3d2941 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3d2941['message'],'title':_0x3d2941['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d2941;}});}['list'](_0x51fad6,_0xfc0fa2){return __awaiter$2(this,void 0,void 0,function*(){const _0x595dab=this['path']+'/'+_0x51fad6;try{const _0x42feaa=yield this['fetch']['get'](_0x595dab,_0xfc0fa2);if(_0x42feaa['status']>0xc7&&_0x42feaa['status']<0x12c){const _0x35c0f8=yield _0x42feaa['json']();return new SuccessfulListSearchServiceResponse(_0x35c0f8);}const _0x116ccb=yield _0x42feaa['json']();return new FailedViewSearchServicesResponse(_0x116ccb);}catch(_0x5ad61e){if(_0x5ad61e instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5ad61e['message'],'title':_0x5ad61e['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ad61e;}});}}
12
+
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1a1db5,_0xc74310,_0x9b0a0d,_0x1f7eff){function _0x558f29(_0x3d709c){return _0x3d709c instanceof _0x9b0a0d?_0x3d709c:new _0x9b0a0d(function(_0x34af7f){_0x34af7f(_0x3d709c);});}return new(_0x9b0a0d||(_0x9b0a0d=Promise))(function(_0x3f893e,_0x10161d){function _0x11bfa6(_0x7ddacf){try{_0xb6f871(_0x1f7eff['next'](_0x7ddacf));}catch(_0x35dddc){_0x10161d(_0x35dddc);}}function _0x3e4e32(_0xc88df2){try{_0xb6f871(_0x1f7eff['throw'](_0xc88df2));}catch(_0x2d2486){_0x10161d(_0x2d2486);}}function _0xb6f871(_0x2108fc){_0x2108fc['done']?_0x3f893e(_0x2108fc['value']):_0x558f29(_0x2108fc['value'])['then'](_0x11bfa6,_0x3e4e32);}_0xb6f871((_0x1f7eff=_0x1f7eff['apply'](_0x1a1db5,_0xc74310||[]))['next']());});};class FacetService{constructor(_0x1fb79b){this['fetch']=_0x1fb79b,this['path']='facet';}['create'](_0x24086e,_0x2f64ed,_0x53e9c6,_0x49bc4a){return __awaiter$1(this,void 0,void 0,function*(){const _0x2fa7bd={'account_name':_0x24086e,'list_name':_0x2f64ed,'facet_name':_0x53e9c6};try{const _0x5ea1a6=yield this['fetch']['post'](this['path'],_0x49bc4a,_0x2fa7bd);if(_0x5ea1a6['status']>0xc7&&_0x5ea1a6['status']<0x12c){const _0x2ba3d3=yield _0x5ea1a6['json']();return new SuccessfulFacetResponse(_0x2ba3d3);}const _0x4f540e=yield _0x5ea1a6['json']();return new FailedFacetResponse(_0x4f540e);}catch(_0xaa2911){if(_0xaa2911 instanceof Error)return new FailedFacetResponse({'detail':_0xaa2911['message'],'title':_0xaa2911['name'],'status':0x1f4,'instance':'','type':''});throw _0xaa2911;}});}['remove'](_0x43e890,_0x874439,_0x2258b7,_0x25705d){return __awaiter$1(this,void 0,void 0,function*(){const _0x4e9cc4='Facet/'+_0x43e890+'/'+_0x874439+'/'+_0x2258b7,_0xacc47e=yield this['fetch']['delete'](_0x4e9cc4,_0x25705d);try{if(_0xacc47e['status']>0xc7&&_0xacc47e['status']<0x12c)return new SuccessfulResponse({});const _0x204886=yield _0xacc47e['json']();return new FailedResponse(_0x204886);}catch(_0xfa4ca){if(_0xfa4ca instanceof Error)return new FailedResponse({'detail':_0xfa4ca['message'],'title':_0xfa4ca['name'],'status':0x1f4,'instance':'','type':''});throw _0xfa4ca;}});}}
14
+
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x50dcfa,_0x189fb2,_0x38165d,_0x5e1d8e){function _0x3a1986(_0x519596){return _0x519596 instanceof _0x38165d?_0x519596:new _0x38165d(function(_0x43fe58){_0x43fe58(_0x519596);});}return new(_0x38165d||(_0x38165d=Promise))(function(_0x2ed6df,_0x2a8b06){function _0x5de11d(_0x2b28ab){try{_0x1e03a3(_0x5e1d8e['next'](_0x2b28ab));}catch(_0x53e53b){_0x2a8b06(_0x53e53b);}}function _0x275754(_0x4ec794){try{_0x1e03a3(_0x5e1d8e['throw'](_0x4ec794));}catch(_0x23db7a){_0x2a8b06(_0x23db7a);}}function _0x1e03a3(_0x80c58){_0x80c58['done']?_0x2ed6df(_0x80c58['value']):_0x3a1986(_0x80c58['value'])['then'](_0x5de11d,_0x275754);}_0x1e03a3((_0x5e1d8e=_0x5e1d8e['apply'](_0x50dcfa,_0x189fb2||[]))['next']());});};class AdminClient{constructor(_0x50325d='https://admin.searchability.dev/'){var _0x3656df=new Fetch(_0x50325d);this['Accounts']=new AccountService(_0x3656df),this['Lists']=new ListService(_0x3656df),this['ApiKeys']=new ApiKeyService(_0x3656df),this['SearchServices']=new SearchServersService(_0x3656df),this['FacetService']=new FacetService(_0x3656df);}}class AuthClient{constructor(_0x4aaf8e='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4aaf8e);}['login'](_0x3f690f){return __awaiter(this,void 0,void 0,function*(){const _0x26b9df='login/'+_0x3f690f;try{const _0x29cec3=yield yield fetch(_0x26b9df);if(_0x29cec3['status']>0xc7&&_0x29cec3['status']<0x12c){const _0x4a3358=yield _0x29cec3['json']();return new SuccessfulAuthResponse(_0x4a3358);}const _0x19293a=yield _0x29cec3['json']();return new FailedAuthResponse(_0x19293a);}catch(_0x4a4f47){if(_0x4a4f47 instanceof Error)return new FailedAuthResponse({'detail':_0x4a4f47['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4a4f47;}});}['refresh'](_0xda24e){return __awaiter(this,void 0,void 0,function*(){const _0x3383c8='refresh',_0x29d795={'refresh_token':_0xda24e};try{const _0x3cc3ef=yield this['fetch']['PostNoAuth'](_0x3383c8,_0x29d795);if(_0x3cc3ef['status']>0xc7&&_0x3cc3ef['status']<0x12c){const _0x27c205=yield _0x3cc3ef['json']();return new SuccessfulAuthResponse(_0x27c205);}const _0x1a6892=yield _0x3cc3ef['json']();return new FailedAuthResponse(_0x1a6892);}catch(_0x408d47){if(_0x408d47 instanceof Error)return new FailedAuthResponse({'detail':_0x408d47['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x408d47;}});}['getTokenStatus'](_0x1a5a87){if(Date['now']()<_0x1a5a87['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x1a5a87['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
+
17
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- exports.TokenStatus = void 0;(function(_0x4aaddd){_0x4aaddd[_0x4aaddd['Ok']=0x0]='Ok',_0x4aaddd[_0x4aaddd['Refresh']=0x1]='Refresh',_0x4aaddd[_0x4aaddd['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x1d32d5){this['isSuccess']=_0x1d32d5;}}class SuccessfulFacetResponse extends Response{constructor(_0x395972){super(!![]),this['facet']=_0x395972;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x19d29c){super(![]),this['problem']=_0x19d29c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x5e7211){super(!![]),this['account']=_0x5e7211;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x45a7fc){super(!![]),this['list']=_0x45a7fc;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x12734d){super(!![]),this['list']=_0x12734d;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x121dbc){super(![]),this['problem']=_0x121dbc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x5029a6){super(![]),this['problem']=_0x5029a6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x5d758c){super(![]),this['problem']=_0x5d758c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3ce239){super(!![]),this['tokens']=_0x3ce239;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x30a938){super(![]),this['problem']=_0x30a938;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x340979){super(!![]),this['apiKey']=_0x340979;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x169904){super(![]),this['problem']=_0x169904;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x75855c){super(!![]),this['searchService']=_0x75855c;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x223d79){super(![]),this['problem']=_0x223d79;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x1fec87){super(!![]),this['searchService']=_0x1fec87;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x23e299){super(!![]),this['searchServices']=_0x23e299;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x38a621){super(![]),this['problem']=_0x38a621;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x38dd8d){super(![]),this['problem']=_0x38dd8d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x5f3bd5){super(!![]),this['apiKeyValue']=_0x5f3bd5;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x5863a7){super(!![]),this['obj']=_0x5863a7;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x1e280e){super(![]),this['problem']=_0x1e280e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x43bd58){super(![]),this['problem']=_0x43bd58;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x3d5b23){_0x3d5b23[_0x3d5b23['Ok']=0x0]='Ok',_0x3d5b23[_0x3d5b23['Refresh']=0x1]='Refresh',_0x3d5b23[_0x3d5b23['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x1d9072){this['isSuccess']=_0x1d9072;}}class SuccessfulFacetResponse extends Response{constructor(_0x3fb19c){super(!![]),this['facet']=_0x3fb19c;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x560027){super(![]),this['problem']=_0x560027;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x1f5bb0){super(!![]),this['account']=_0x1f5bb0;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x32c074){super(!![]),this['list']=_0x32c074;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x4e881d){super(!![]),this['list']=_0x4e881d;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x2b4e04){super(![]),this['problem']=_0x2b4e04;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x353456){super(![]),this['problem']=_0x353456;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x34262a){super(![]),this['problem']=_0x34262a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x590592){super(!![]),this['tokens']=_0x590592;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x21e759){super(![]),this['problem']=_0x21e759;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5dbb1f){super(!![]),this['apiKey']=_0x5dbb1f;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x10918e){super(![]),this['problem']=_0x10918e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x5f7b6){super(!![]),this['searchService']=_0x5f7b6;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x4097c3){super(![]),this['problem']=_0x4097c3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2fc32a){super(!![]),this['searchService']=_0x2fc32a;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2024da){super(!![]),this['searchServices']=_0x2024da;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x50a22b){super(![]),this['problem']=_0x50a22b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x4feb08){super(![]),this['problem']=_0x4feb08;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x35defd){super(!![]),this['apiKeyValue']=_0x35defd;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x320f98){super(!![]),this['obj']=_0x320f98;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x41c585){super(![]),this['problem']=_0x41c585;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x196974){super(![]),this['problem']=_0x196974;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x5dff5a,_0x5ee9d3,_0x275982,_0xfe9884){function _0xe1fd31(_0xae6b08){return _0xae6b08 instanceof _0x275982?_0xae6b08:new _0x275982(function(_0x52ad64){_0x52ad64(_0xae6b08);});}return new(_0x275982||(_0x275982=Promise))(function(_0x17bf7d,_0x9d7910){function _0x1934cd(_0x3f702b){try{_0x206af6(_0xfe9884['next'](_0x3f702b));}catch(_0x339cf6){_0x9d7910(_0x339cf6);}}function _0x2c3514(_0x1273ae){try{_0x206af6(_0xfe9884['throw'](_0x1273ae));}catch(_0x32f21f){_0x9d7910(_0x32f21f);}}function _0x206af6(_0x4d702f){_0x4d702f['done']?_0x17bf7d(_0x4d702f['value']):_0xe1fd31(_0x4d702f['value'])['then'](_0x1934cd,_0x2c3514);}_0x206af6((_0xfe9884=_0xfe9884['apply'](_0x5dff5a,_0x5ee9d3||[]))['next']());});};class AccountService{constructor(_0x4af0e7){this['fetch']=_0x4af0e7;}['get'](_0x374c58,_0x321e09){return __awaiter$6(this,void 0,void 0,function*(){const _0x18152a='Account/'+_0x374c58+'/',_0x515d39=yield this['fetch']['get'](_0x18152a,_0x321e09);try{if(_0x515d39['status']>0xc7&&_0x515d39['status']<0x12c){const _0x35a380=yield _0x515d39['json']();return new SuccessfulAccountResponse(_0x35a380);}const _0x351615=yield _0x515d39['json']();return new FailedAccountResponse(_0x351615);}catch(_0xd272d6){if(_0xd272d6 instanceof Error)return new FailedAccountResponse({'detail':_0xd272d6['message'],'title':_0xd272d6['name'],'status':0x1f4,'instance':'','type':''});throw _0xd272d6;}});}}
5
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x58936f,_0x1310b8,_0x5af213,_0x2b3703){function _0x571598(_0x27207b){return _0x27207b instanceof _0x5af213?_0x27207b:new _0x5af213(function(_0x3c1f62){_0x3c1f62(_0x27207b);});}return new(_0x5af213||(_0x5af213=Promise))(function(_0x5a2e55,_0x5681cc){function _0x204b65(_0x1aac16){try{_0x3fb81c(_0x2b3703['next'](_0x1aac16));}catch(_0x221c69){_0x5681cc(_0x221c69);}}function _0xda5688(_0x601f3e){try{_0x3fb81c(_0x2b3703['throw'](_0x601f3e));}catch(_0x4970fa){_0x5681cc(_0x4970fa);}}function _0x3fb81c(_0x38a2e5){_0x38a2e5['done']?_0x5a2e55(_0x38a2e5['value']):_0x571598(_0x38a2e5['value'])['then'](_0x204b65,_0xda5688);}_0x3fb81c((_0x2b3703=_0x2b3703['apply'](_0x58936f,_0x1310b8||[]))['next']());});};class AccountService{constructor(_0x3a9172){this['fetch']=_0x3a9172;}['get'](_0x428e9d,_0x1d0a30){return __awaiter$6(this,void 0,void 0,function*(){const _0x76a809='Account/'+_0x428e9d+'/',_0x55b85f=yield this['fetch']['get'](_0x76a809,_0x1d0a30);try{if(_0x55b85f['status']>0xc7&&_0x55b85f['status']<0x12c){const _0xcab05c=yield _0x55b85f['json']();return new SuccessfulAccountResponse(_0xcab05c);}const _0x43ca30=yield _0x55b85f['json']();return new FailedAccountResponse(_0x43ca30);}catch(_0x51d1bb){if(_0x51d1bb instanceof Error)return new FailedAccountResponse({'detail':_0x51d1bb['message'],'title':_0x51d1bb['name'],'status':0x1f4,'instance':'','type':''});throw _0x51d1bb;}});}}
6
6
 
7
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x4cf715,_0x3f0c75,_0x3e5722,_0x5e6007){function _0x20d256(_0x34c54d){return _0x34c54d instanceof _0x3e5722?_0x34c54d:new _0x3e5722(function(_0x43e2e5){_0x43e2e5(_0x34c54d);});}return new(_0x3e5722||(_0x3e5722=Promise))(function(_0xc9a916,_0x1a252c){function _0x27569f(_0x100c34){try{_0x1788f2(_0x5e6007['next'](_0x100c34));}catch(_0x4b02b6){_0x1a252c(_0x4b02b6);}}function _0x43fd88(_0x531556){try{_0x1788f2(_0x5e6007['throw'](_0x531556));}catch(_0x1990c0){_0x1a252c(_0x1990c0);}}function _0x1788f2(_0x530223){_0x530223['done']?_0xc9a916(_0x530223['value']):_0x20d256(_0x530223['value'])['then'](_0x27569f,_0x43fd88);}_0x1788f2((_0x5e6007=_0x5e6007['apply'](_0x4cf715,_0x3f0c75||[]))['next']());});};class ApiKeyService{constructor(_0x42b472){this['fetch']=_0x42b472,this['path']='api-key';}['create'](_0x5d1f83,_0x130da4,_0x53d9c8){return __awaiter$5(this,void 0,void 0,function*(){const _0x5df05c={'account_name':_0x5d1f83,'api_key_name':_0x130da4};try{const _0x4f2a3c=yield this['fetch']['post'](this['path'],_0x53d9c8,_0x5df05c);if(_0x4f2a3c['status']>0xc7&&_0x4f2a3c['status']<0x12c){const _0x4f6e8a=yield _0x4f2a3c['json']();return new SuccessfulApiKeyResponse(_0x4f6e8a);}const _0x3d1a82=yield _0x4f2a3c['json']();return new FailedApiKeyResponse(_0x3d1a82);}catch(_0x55ba45){if(_0x55ba45 instanceof Error)return new FailedApiKeyResponse({'detail':_0x55ba45['message'],'title':_0x55ba45['name'],'status':0x1f4,'instance':'','type':''});throw _0x55ba45;}});}['view'](_0x45dbc7,_0x4a5087,_0x2d83ce){return __awaiter$5(this,void 0,void 0,function*(){const _0x3a9d87=this['path']+'/'+_0x45dbc7+'/'+_0x4a5087;try{const _0x1e34b9=yield this['fetch']['get'](_0x3a9d87,_0x2d83ce);if(_0x1e34b9['status']>0xc7&&_0x1e34b9['status']<0x12c){const _0xf4955a=yield _0x1e34b9['json']();return new SuccessfulApiKeyValueResponse(_0xf4955a);}const _0x16e2e1=yield _0x1e34b9['json']();return new FailedApiKeyValueResponse(_0x16e2e1);}catch(_0xf87377){if(_0xf87377 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0xf87377['message'],'title':_0xf87377['name'],'status':0x1f4,'instance':'','type':''});throw _0xf87377;}});}['delete'](_0x4fdfa4,_0x52b169,_0x442a9e){return __awaiter$5(this,void 0,void 0,function*(){const _0x1c36c6=this['path']+'/'+_0x4fdfa4+'/'+_0x52b169;try{const _0x3e869a=yield this['fetch']['delete'](_0x1c36c6,_0x442a9e);if(_0x3e869a['status']>0xc7&&_0x3e869a['status']<0x12c)return new SuccessfulResponse({});const _0x4154f6=yield _0x3e869a['json']();return new FailedResponse(_0x4154f6);}catch(_0x3a6860){if(_0x3a6860 instanceof Error)return new FailedResponse({'detail':_0x3a6860['message'],'title':_0x3a6860['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a6860;}});}}
7
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x33edac,_0x4ffa12,_0x30f611,_0xf2e42c){function _0x4b6f52(_0x1a4ccd){return _0x1a4ccd instanceof _0x30f611?_0x1a4ccd:new _0x30f611(function(_0x3c0609){_0x3c0609(_0x1a4ccd);});}return new(_0x30f611||(_0x30f611=Promise))(function(_0x1eb3e3,_0x4c3128){function _0xf62fe(_0x213ac4){try{_0x18c31e(_0xf2e42c['next'](_0x213ac4));}catch(_0x4d9d6c){_0x4c3128(_0x4d9d6c);}}function _0x301f46(_0x176eba){try{_0x18c31e(_0xf2e42c['throw'](_0x176eba));}catch(_0x30cefc){_0x4c3128(_0x30cefc);}}function _0x18c31e(_0x47373c){_0x47373c['done']?_0x1eb3e3(_0x47373c['value']):_0x4b6f52(_0x47373c['value'])['then'](_0xf62fe,_0x301f46);}_0x18c31e((_0xf2e42c=_0xf2e42c['apply'](_0x33edac,_0x4ffa12||[]))['next']());});};class ApiKeyService{constructor(_0x2111f7){this['fetch']=_0x2111f7,this['path']='api-key';}['create'](_0x275c77,_0x197c26,_0x35269a){return __awaiter$5(this,void 0,void 0,function*(){const _0x1d0017={'account_name':_0x275c77,'api_key_name':_0x197c26};try{const _0x24e7b1=yield this['fetch']['post'](this['path'],_0x35269a,_0x1d0017);if(_0x24e7b1['status']>0xc7&&_0x24e7b1['status']<0x12c){const _0x1d2de8=yield _0x24e7b1['json']();return new SuccessfulApiKeyResponse(_0x1d2de8);}const _0x12110b=yield _0x24e7b1['json']();return new FailedApiKeyResponse(_0x12110b);}catch(_0x3a8227){if(_0x3a8227 instanceof Error)return new FailedApiKeyResponse({'detail':_0x3a8227['message'],'title':_0x3a8227['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a8227;}});}['view'](_0xbdfbba,_0x317a6c,_0x4e127b){return __awaiter$5(this,void 0,void 0,function*(){const _0x4d77ba=this['path']+'/'+_0xbdfbba+'/'+_0x317a6c;try{const _0x4b61f8=yield this['fetch']['get'](_0x4d77ba,_0x4e127b);if(_0x4b61f8['status']>0xc7&&_0x4b61f8['status']<0x12c){const _0x304d92=yield _0x4b61f8['json']();return new SuccessfulApiKeyValueResponse(_0x304d92);}const _0x2c44d6=yield _0x4b61f8['json']();return new FailedApiKeyValueResponse(_0x2c44d6);}catch(_0x1154a5){if(_0x1154a5 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1154a5['message'],'title':_0x1154a5['name'],'status':0x1f4,'instance':'','type':''});throw _0x1154a5;}});}['delete'](_0x144565,_0x102ae5,_0x3dcbb4){return __awaiter$5(this,void 0,void 0,function*(){const _0x333081=this['path']+'/'+_0x144565+'/'+_0x102ae5;try{const _0x2b6b98=yield this['fetch']['delete'](_0x333081,_0x3dcbb4);if(_0x2b6b98['status']>0xc7&&_0x2b6b98['status']<0x12c)return new SuccessfulResponse({});const _0x4aa578=yield _0x2b6b98['json']();return new FailedResponse(_0x4aa578);}catch(_0x43a7f9){if(_0x43a7f9 instanceof Error)return new FailedResponse({'detail':_0x43a7f9['message'],'title':_0x43a7f9['name'],'status':0x1f4,'instance':'','type':''});throw _0x43a7f9;}});}}
8
8
 
9
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x57bf77,_0xa3193e,_0x28c96b,_0x4bc6dc){function _0x121c3f(_0x5a7678){return _0x5a7678 instanceof _0x28c96b?_0x5a7678:new _0x28c96b(function(_0x1b841b){_0x1b841b(_0x5a7678);});}return new(_0x28c96b||(_0x28c96b=Promise))(function(_0x1acea4,_0x1c9d30){function _0x3698c4(_0x275a38){try{_0xcd37e1(_0x4bc6dc['next'](_0x275a38));}catch(_0x5dacf1){_0x1c9d30(_0x5dacf1);}}function _0x26af80(_0x2cb1ce){try{_0xcd37e1(_0x4bc6dc['throw'](_0x2cb1ce));}catch(_0x4abda9){_0x1c9d30(_0x4abda9);}}function _0xcd37e1(_0x12671e){_0x12671e['done']?_0x1acea4(_0x12671e['value']):_0x121c3f(_0x12671e['value'])['then'](_0x3698c4,_0x26af80);}_0xcd37e1((_0x4bc6dc=_0x4bc6dc['apply'](_0x57bf77,_0xa3193e||[]))['next']());});};class ListService{constructor(_0x5bac2f){this['fetch']=_0x5bac2f;}['create'](_0x4186a9,_0x4f5e3e,_0x3709df,_0x4abe47){return __awaiter$4(this,void 0,void 0,function*(){const _0x337565='List',_0x27aefa={'account_name':_0x4186a9,'list_name':_0x4f5e3e,'search_service_name':_0x3709df};try{const _0xa046c2=yield this['fetch']['post'](_0x337565,_0x4abe47,_0x27aefa);if(_0xa046c2['status']>0xc7&&_0xa046c2['status']<0x12c){const _0x481e7a=yield _0xa046c2['json']();return new SuccessfulListIdentityResponse(_0x481e7a);}const _0x306de1=yield _0xa046c2['json']();return new FailedListIdentityResponse(_0x306de1);}catch(_0x22af25){if(_0x22af25 instanceof Error)return new FailedListIdentityResponse({'detail':_0x22af25['message'],'title':_0x22af25['name'],'status':0x1f4,'instance':'','type':''});throw _0x22af25;}});}['delete'](_0x7a5949,_0x3b5697,_0xa9d402){return __awaiter$4(this,void 0,void 0,function*(){const _0x2ad3a2='List/'+_0x7a5949+'/'+_0x3b5697,_0x1c62ed=yield this['fetch']['delete'](_0x2ad3a2,_0xa9d402);try{if(_0x1c62ed['status']>0xc7&&_0x1c62ed['status']<0x12c)return new SuccessfulResponse({});const _0x15354c=yield _0x1c62ed['json']();return new FailedResponse(_0x15354c);}catch(_0x301d2d){if(_0x301d2d instanceof Error)return new FailedResponse({'detail':_0x301d2d['message'],'title':_0x301d2d['name'],'status':0x1f4,'instance':'','type':''});throw _0x301d2d;}});}['get'](_0x13c82d,_0x33e394,_0x24c4d9){return __awaiter$4(this,void 0,void 0,function*(){const _0xf83713='List/'+_0x13c82d+'/'+_0x33e394;try{const _0x1f3ccc=yield this['fetch']['get'](_0xf83713,_0x24c4d9);if(_0x1f3ccc['status']>0xc7&&_0x1f3ccc['status']<0x12c){const _0x2ea488=yield _0x1f3ccc['json']();return new SuccessfulListResponse(_0x2ea488);}const _0x423f62=yield _0x1f3ccc['json']();return new FailedListResponse(_0x423f62);}catch(_0x4af15f){if(_0x4af15f instanceof Error)return new FailedListResponse({'detail':_0x4af15f['message'],'title':_0x4af15f['name'],'status':0x1f4,'instance':'','type':''});throw _0x4af15f;}});}}
9
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x28d5b8,_0x709e37,_0x477f2d,_0x5d2c26){function _0xc294fc(_0x15c7ae){return _0x15c7ae instanceof _0x477f2d?_0x15c7ae:new _0x477f2d(function(_0x26d38e){_0x26d38e(_0x15c7ae);});}return new(_0x477f2d||(_0x477f2d=Promise))(function(_0x4e34fa,_0x308818){function _0x3f6e8d(_0x556afe){try{_0xffbe2c(_0x5d2c26['next'](_0x556afe));}catch(_0x1ddc68){_0x308818(_0x1ddc68);}}function _0x381ad8(_0x119b92){try{_0xffbe2c(_0x5d2c26['throw'](_0x119b92));}catch(_0x2de95f){_0x308818(_0x2de95f);}}function _0xffbe2c(_0x55130a){_0x55130a['done']?_0x4e34fa(_0x55130a['value']):_0xc294fc(_0x55130a['value'])['then'](_0x3f6e8d,_0x381ad8);}_0xffbe2c((_0x5d2c26=_0x5d2c26['apply'](_0x28d5b8,_0x709e37||[]))['next']());});};class ListService{constructor(_0x9aa97f){this['fetch']=_0x9aa97f;}['create'](_0x5d8898,_0x16672e,_0x4357bc,_0x217fda){return __awaiter$4(this,void 0,void 0,function*(){const _0x315d0b='List',_0x22f5eb={'account_name':_0x5d8898,'list_name':_0x16672e,'search_service_name':_0x4357bc};try{const _0xd262a7=yield this['fetch']['post'](_0x315d0b,_0x217fda,_0x22f5eb);if(_0xd262a7['status']>0xc7&&_0xd262a7['status']<0x12c){const _0x163603=yield _0xd262a7['json']();return new SuccessfulListIdentityResponse(_0x163603);}const _0x1a9c86=yield _0xd262a7['json']();return new FailedListIdentityResponse(_0x1a9c86);}catch(_0x4e2045){if(_0x4e2045 instanceof Error)return new FailedListIdentityResponse({'detail':_0x4e2045['message'],'title':_0x4e2045['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e2045;}});}['delete'](_0x4a9026,_0x535ec8,_0x29e848){return __awaiter$4(this,void 0,void 0,function*(){const _0x1cefa2='List/'+_0x4a9026+'/'+_0x535ec8,_0x1854d5=yield this['fetch']['delete'](_0x1cefa2,_0x29e848);try{if(_0x1854d5['status']>0xc7&&_0x1854d5['status']<0x12c)return new SuccessfulResponse({});const _0x22365f=yield _0x1854d5['json']();return new FailedResponse(_0x22365f);}catch(_0x56386b){if(_0x56386b instanceof Error)return new FailedResponse({'detail':_0x56386b['message'],'title':_0x56386b['name'],'status':0x1f4,'instance':'','type':''});throw _0x56386b;}});}['get'](_0x40399d,_0xc30306,_0x353187){return __awaiter$4(this,void 0,void 0,function*(){const _0xc49870='List/'+_0x40399d+'/'+_0xc30306;try{const _0x247e5f=yield this['fetch']['get'](_0xc49870,_0x353187);if(_0x247e5f['status']>0xc7&&_0x247e5f['status']<0x12c){const _0x377da6=yield _0x247e5f['json']();return new SuccessfulListResponse(_0x377da6);}const _0x20aa02=yield _0x247e5f['json']();return new FailedListResponse(_0x20aa02);}catch(_0x59b9a2){if(_0x59b9a2 instanceof Error)return new FailedListResponse({'detail':_0x59b9a2['message'],'title':_0x59b9a2['name'],'status':0x1f4,'instance':'','type':''});throw _0x59b9a2;}});}}
10
10
 
11
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x57bb70,_0x4402b3,_0xb47359,_0x4cd125){function _0x4f3f7c(_0x2e9646){return _0x2e9646 instanceof _0xb47359?_0x2e9646:new _0xb47359(function(_0x183ef6){_0x183ef6(_0x2e9646);});}return new(_0xb47359||(_0xb47359=Promise))(function(_0x14e093,_0x58cc53){function _0x207a4e(_0x303b78){try{_0x2590a8(_0x4cd125['next'](_0x303b78));}catch(_0x197cda){_0x58cc53(_0x197cda);}}function _0x205dd7(_0x82bd99){try{_0x2590a8(_0x4cd125['throw'](_0x82bd99));}catch(_0x330f7a){_0x58cc53(_0x330f7a);}}function _0x2590a8(_0x5a2fb0){_0x5a2fb0['done']?_0x14e093(_0x5a2fb0['value']):_0x4f3f7c(_0x5a2fb0['value'])['then'](_0x207a4e,_0x205dd7);}_0x2590a8((_0x4cd125=_0x4cd125['apply'](_0x57bb70,_0x4402b3||[]))['next']());});};class Fetch{constructor(_0x102a43){this['baseUri']=_0x102a43,this['getUrl']=_0x4368d1=>{return _0x4368d1['startsWith']('/')&&(_0x4368d1=_0x4368d1['replace']('/','')),''+this['baseUri']+_0x4368d1;},!_0x102a43['endsWith']('/')&&(_0x102a43=_0x102a43+'/');}['get'](_0x35ca68,_0x4a101c){return __awaiter$3(this,void 0,void 0,function*(){const _0x1bb09a=this['getUrl'](_0x35ca68);return yield fetch(_0x1bb09a,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4a101c}});});}['post'](_0x5b9d92,_0x180d97,_0x434423){return __awaiter$3(this,void 0,void 0,function*(){const _0x5f07eb=this['getUrl'](_0x5b9d92);return yield fetch(_0x5f07eb,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x180d97},'body':_0x434423?JSON['stringify'](_0x434423):null});});}['PostNoAuth'](_0xbdfb38,_0x42a51a){return __awaiter$3(this,void 0,void 0,function*(){const _0x5528ea=this['getUrl'](_0xbdfb38);return yield fetch(_0x5528ea,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x42a51a?JSON['stringify'](_0x42a51a):null});});}['put'](_0x1e1b1b,_0x59e7e3,_0x5e68f2){return __awaiter$3(this,void 0,void 0,function*(){const _0x31d53e=this['getUrl'](_0x1e1b1b);return yield fetch(_0x31d53e,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x59e7e3},'body':_0x5e68f2?JSON['stringify'](_0x5e68f2):null});});}['delete'](_0x52434b,_0x30578c){return __awaiter$3(this,void 0,void 0,function*(){const _0x438e0a=this['getUrl'](_0x52434b);return yield fetch(_0x438e0a,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x30578c}});});}}
11
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1721ce,_0x42fe55,_0x77b26b,_0x41698c){function _0x814bcd(_0x47cd54){return _0x47cd54 instanceof _0x77b26b?_0x47cd54:new _0x77b26b(function(_0x521c0a){_0x521c0a(_0x47cd54);});}return new(_0x77b26b||(_0x77b26b=Promise))(function(_0x42d9fc,_0x45b4e6){function _0x2d2e90(_0x223a98){try{_0x1efe17(_0x41698c['next'](_0x223a98));}catch(_0xbd12f6){_0x45b4e6(_0xbd12f6);}}function _0x438c81(_0x5e537d){try{_0x1efe17(_0x41698c['throw'](_0x5e537d));}catch(_0x1f7e32){_0x45b4e6(_0x1f7e32);}}function _0x1efe17(_0x388bbf){_0x388bbf['done']?_0x42d9fc(_0x388bbf['value']):_0x814bcd(_0x388bbf['value'])['then'](_0x2d2e90,_0x438c81);}_0x1efe17((_0x41698c=_0x41698c['apply'](_0x1721ce,_0x42fe55||[]))['next']());});};class Fetch{constructor(_0x5b6467){this['baseUri']=_0x5b6467,this['getUrl']=_0xcdb8a8=>{return _0xcdb8a8['startsWith']('/')&&(_0xcdb8a8=_0xcdb8a8['replace']('/','')),''+this['baseUri']+_0xcdb8a8;},!_0x5b6467['endsWith']('/')&&(_0x5b6467=_0x5b6467+'/');}['get'](_0x4a2eff,_0x48799c){return __awaiter$3(this,void 0,void 0,function*(){const _0x2dcf15=this['getUrl'](_0x4a2eff);return yield fetch(_0x2dcf15,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x48799c}});});}['post'](_0x4e555e,_0x46c5ad,_0xaf3481){return __awaiter$3(this,void 0,void 0,function*(){const _0x2eec88=this['getUrl'](_0x4e555e);return yield fetch(_0x2eec88,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x46c5ad},'body':_0xaf3481?JSON['stringify'](_0xaf3481):null});});}['PostNoAuth'](_0x244c7e,_0x3c4b41){return __awaiter$3(this,void 0,void 0,function*(){const _0x5b1c24=this['getUrl'](_0x244c7e);return yield fetch(_0x5b1c24,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x3c4b41?JSON['stringify'](_0x3c4b41):null});});}['put'](_0x10e4c3,_0x192c07,_0x47ed2f){return __awaiter$3(this,void 0,void 0,function*(){const _0x1bd8ad=this['getUrl'](_0x10e4c3);return yield fetch(_0x1bd8ad,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x192c07},'body':_0x47ed2f?JSON['stringify'](_0x47ed2f):null});});}['delete'](_0x46b50f,_0x5f25c9){return __awaiter$3(this,void 0,void 0,function*(){const _0x10d8b8=this['getUrl'](_0x46b50f);return yield fetch(_0x10d8b8,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5f25c9}});});}}
12
12
 
13
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x55ae2a,_0x421542,_0x186ad6,_0x16c057){function _0x457f26(_0x42769d){return _0x42769d instanceof _0x186ad6?_0x42769d:new _0x186ad6(function(_0x405f5b){_0x405f5b(_0x42769d);});}return new(_0x186ad6||(_0x186ad6=Promise))(function(_0x100c02,_0x135d88){function _0xff5b6e(_0x45c75c){try{_0x5512fd(_0x16c057['next'](_0x45c75c));}catch(_0x27fdbd){_0x135d88(_0x27fdbd);}}function _0x188c54(_0x55e236){try{_0x5512fd(_0x16c057['throw'](_0x55e236));}catch(_0x7a6a2f){_0x135d88(_0x7a6a2f);}}function _0x5512fd(_0x2baa66){_0x2baa66['done']?_0x100c02(_0x2baa66['value']):_0x457f26(_0x2baa66['value'])['then'](_0xff5b6e,_0x188c54);}_0x5512fd((_0x16c057=_0x16c057['apply'](_0x55ae2a,_0x421542||[]))['next']());});};class SearchServersService{constructor(_0x15c726){this['fetch']=_0x15c726,this['path']='search-services';}['create'](_0x2b374c,_0x1a5524,_0x2449af,_0x41eec9,_0x3bdf26,_0x2fb7d5,_0x1909ce,_0x1f5b25){return __awaiter$2(this,void 0,void 0,function*(){const _0x45ab8e={'account_name':_0x2b374c,'search_service_name':_0x1a5524,'endpoint':_0x2449af,'key':_0x41eec9,'country':_0x3bdf26,'provider':_0x2fb7d5,'index_name':_0x1909ce};try{const _0x2fc83b=yield this['fetch']['post'](this['path'],_0x1f5b25,_0x45ab8e);if(_0x2fc83b['status']>0xc7&&_0x2fc83b['status']<0x12c){const _0x173873=yield _0x2fc83b['json']();return new SuccessfulSearchServiceResponse(_0x173873);}const _0x33fdc1=yield _0x2fc83b['json']();return new FailedSearchServiceResponse(_0x33fdc1);}catch(_0x414c8f){if(_0x414c8f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x414c8f['message'],'title':_0x414c8f['name'],'status':0x1f4,'instance':'','type':''});throw _0x414c8f;}});}['delete'](_0x8c5a7c,_0x104fce,_0x158a72){return __awaiter$2(this,void 0,void 0,function*(){const _0x48ffd7=this['path']+'/'+_0x8c5a7c+'/'+_0x104fce;try{const _0x53e1a0=yield this['fetch']['delete'](_0x48ffd7,_0x158a72);if(_0x53e1a0['status']>0xc7&&_0x53e1a0['status']<0x12c)return new SuccessfulResponse({});const _0x28b18e=yield _0x53e1a0['json']();return new FailedResponse(_0x28b18e);}catch(_0x1b3d9e){if(_0x1b3d9e instanceof Error)return new FailedResponse({'detail':_0x1b3d9e['message'],'title':_0x1b3d9e['name'],'status':0x1f4,'instance':'','type':''});throw _0x1b3d9e;}});}['view'](_0x2e2133,_0x37eb18,_0xb5033){return __awaiter$2(this,void 0,void 0,function*(){const _0xfbe0ca=this['path']+'/'+_0x2e2133+'/'+_0x37eb18;try{const _0x124e6e=yield this['fetch']['get'](_0xfbe0ca,_0xb5033);if(_0x124e6e['status']>0xc7&&_0x124e6e['status']<0x12c){const _0x1985b1=yield _0x124e6e['json']();return new SuccessfulViewSearchServiceResponse(_0x1985b1);}const _0x57c03b=yield _0x124e6e['json']();return new FailedViewSearchServiceResponse(_0x57c03b);}catch(_0x58ada1){if(_0x58ada1 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x58ada1['message'],'title':_0x58ada1['name'],'status':0x1f4,'instance':'','type':''});throw _0x58ada1;}});}['edit'](_0x1e5143,_0x19311c,_0x340b43,_0x32a89f,_0x4cdd24,_0x41d417){return __awaiter$2(this,void 0,void 0,function*(){const _0x228d3d={'account_name':_0x1e5143,'search_service_name':_0x19311c,'new_search_service_name':_0x340b43,'key':_0x32a89f,'country':_0x4cdd24};try{const _0x413b1e=yield this['fetch']['put'](this['path'],_0x41d417,_0x228d3d);if(_0x413b1e['status']>0xc7&&_0x413b1e['status']<0x12c){const _0x3e674a=yield _0x413b1e['json']();return new SuccessfulSearchServiceResponse(_0x3e674a);}const _0x42cf76=yield _0x413b1e['json']();return new FailedSearchServiceResponse(_0x42cf76);}catch(_0x415349){if(_0x415349 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x415349['message'],'title':_0x415349['name'],'status':0x1f4,'instance':'','type':''});throw _0x415349;}});}['list'](_0x204527,_0x19ac29){return __awaiter$2(this,void 0,void 0,function*(){const _0x379206=this['path']+'/'+_0x204527;try{const _0x413a35=yield this['fetch']['get'](_0x379206,_0x19ac29);if(_0x413a35['status']>0xc7&&_0x413a35['status']<0x12c){const _0x129069=yield _0x413a35['json']();return new SuccessfulListSearchServiceResponse(_0x129069);}const _0x2c4081=yield _0x413a35['json']();return new FailedViewSearchServicesResponse(_0x2c4081);}catch(_0x18061d){if(_0x18061d instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x18061d['message'],'title':_0x18061d['name'],'status':0x1f4,'instance':'','type':''});throw _0x18061d;}});}}
13
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x2d3c16,_0x48cf57,_0x2795c5,_0x5974d7){function _0x3148d5(_0x43790f){return _0x43790f instanceof _0x2795c5?_0x43790f:new _0x2795c5(function(_0x9fba2b){_0x9fba2b(_0x43790f);});}return new(_0x2795c5||(_0x2795c5=Promise))(function(_0x59af15,_0x4650d4){function _0x4c0b53(_0x2b9d18){try{_0x75b0d4(_0x5974d7['next'](_0x2b9d18));}catch(_0x4224c5){_0x4650d4(_0x4224c5);}}function _0x40da73(_0x1d986c){try{_0x75b0d4(_0x5974d7['throw'](_0x1d986c));}catch(_0x57ef84){_0x4650d4(_0x57ef84);}}function _0x75b0d4(_0x72d1d4){_0x72d1d4['done']?_0x59af15(_0x72d1d4['value']):_0x3148d5(_0x72d1d4['value'])['then'](_0x4c0b53,_0x40da73);}_0x75b0d4((_0x5974d7=_0x5974d7['apply'](_0x2d3c16,_0x48cf57||[]))['next']());});};class SearchServersService{constructor(_0x15aea3){this['fetch']=_0x15aea3,this['path']='search-services';}['create'](_0x5c648f,_0x595354,_0x470dfc,_0x5e9592,_0xb590d6,_0x295c72,_0x3e3bcc,_0x3c5fec){return __awaiter$2(this,void 0,void 0,function*(){const _0x527530={'account_name':_0x5c648f,'search_service_name':_0x595354,'endpoint':_0x470dfc,'key':_0x5e9592,'country':_0xb590d6,'provider':_0x295c72,'index_name':_0x3e3bcc};try{const _0x4c930e=yield this['fetch']['post'](this['path'],_0x3c5fec,_0x527530);if(_0x4c930e['status']>0xc7&&_0x4c930e['status']<0x12c){const _0x513786=yield _0x4c930e['json']();return new SuccessfulSearchServiceResponse(_0x513786);}const _0x53b990=yield _0x4c930e['json']();return new FailedSearchServiceResponse(_0x53b990);}catch(_0xbe916a){if(_0xbe916a instanceof Error)return new FailedSearchServiceResponse({'detail':_0xbe916a['message'],'title':_0xbe916a['name'],'status':0x1f4,'instance':'','type':''});throw _0xbe916a;}});}['delete'](_0x1ab9eb,_0x36fcdf,_0x74e9b9){return __awaiter$2(this,void 0,void 0,function*(){const _0x49edf1=this['path']+'/'+_0x1ab9eb+'/'+_0x36fcdf;try{const _0x408f26=yield this['fetch']['delete'](_0x49edf1,_0x74e9b9);if(_0x408f26['status']>0xc7&&_0x408f26['status']<0x12c)return new SuccessfulResponse({});const _0x38a265=yield _0x408f26['json']();return new FailedResponse(_0x38a265);}catch(_0x18890a){if(_0x18890a instanceof Error)return new FailedResponse({'detail':_0x18890a['message'],'title':_0x18890a['name'],'status':0x1f4,'instance':'','type':''});throw _0x18890a;}});}['view'](_0x4aeb44,_0x11c043,_0x182c2b){return __awaiter$2(this,void 0,void 0,function*(){const _0x22d235=this['path']+'/'+_0x4aeb44+'/'+_0x11c043;try{const _0x55963b=yield this['fetch']['get'](_0x22d235,_0x182c2b);if(_0x55963b['status']>0xc7&&_0x55963b['status']<0x12c){const _0x2184e3=yield _0x55963b['json']();return new SuccessfulViewSearchServiceResponse(_0x2184e3);}const _0xa9bf24=yield _0x55963b['json']();return new FailedViewSearchServiceResponse(_0xa9bf24);}catch(_0x14f2f5){if(_0x14f2f5 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x14f2f5['message'],'title':_0x14f2f5['name'],'status':0x1f4,'instance':'','type':''});throw _0x14f2f5;}});}['edit'](_0x420820,_0x110dc2,_0x257e8a,_0x4ecd20,_0x519495,_0x157d4b){return __awaiter$2(this,void 0,void 0,function*(){const _0x342ac0={'account_name':_0x420820,'search_service_name':_0x110dc2,'new_search_service_name':_0x257e8a,'key':_0x4ecd20,'country':_0x519495};try{const _0x5fe4c9=yield this['fetch']['put'](this['path'],_0x157d4b,_0x342ac0);if(_0x5fe4c9['status']>0xc7&&_0x5fe4c9['status']<0x12c){const _0x5a6bdb=yield _0x5fe4c9['json']();return new SuccessfulSearchServiceResponse(_0x5a6bdb);}const _0x59063c=yield _0x5fe4c9['json']();return new FailedSearchServiceResponse(_0x59063c);}catch(_0x304792){if(_0x304792 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x304792['message'],'title':_0x304792['name'],'status':0x1f4,'instance':'','type':''});throw _0x304792;}});}['list'](_0x46d320,_0x45492b){return __awaiter$2(this,void 0,void 0,function*(){const _0x28e5eb=this['path']+'/'+_0x46d320;try{const _0x190e97=yield this['fetch']['get'](_0x28e5eb,_0x45492b);if(_0x190e97['status']>0xc7&&_0x190e97['status']<0x12c){const _0x2039ec=yield _0x190e97['json']();return new SuccessfulListSearchServiceResponse(_0x2039ec);}const _0x1b7de0=yield _0x190e97['json']();return new FailedViewSearchServicesResponse(_0x1b7de0);}catch(_0x191b8b){if(_0x191b8b instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x191b8b['message'],'title':_0x191b8b['name'],'status':0x1f4,'instance':'','type':''});throw _0x191b8b;}});}}
14
14
 
15
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x5c7656,_0x19833d,_0x552a08,_0x327fb4){function _0x178af2(_0x590bef){return _0x590bef instanceof _0x552a08?_0x590bef:new _0x552a08(function(_0x407e41){_0x407e41(_0x590bef);});}return new(_0x552a08||(_0x552a08=Promise))(function(_0x5ce8cc,_0x3aeaa4){function _0x27df57(_0x2e2d13){try{_0x2feb48(_0x327fb4['next'](_0x2e2d13));}catch(_0x25d970){_0x3aeaa4(_0x25d970);}}function _0x37385f(_0x210ef4){try{_0x2feb48(_0x327fb4['throw'](_0x210ef4));}catch(_0x4d9869){_0x3aeaa4(_0x4d9869);}}function _0x2feb48(_0x2af72a){_0x2af72a['done']?_0x5ce8cc(_0x2af72a['value']):_0x178af2(_0x2af72a['value'])['then'](_0x27df57,_0x37385f);}_0x2feb48((_0x327fb4=_0x327fb4['apply'](_0x5c7656,_0x19833d||[]))['next']());});};class FacetService{constructor(_0x3dffe4){this['fetch']=_0x3dffe4,this['path']='facet';}['create'](_0x1a5763,_0x1fa369,_0xe2684c,_0x2d7d61){return __awaiter$1(this,void 0,void 0,function*(){const _0x4293d7={'account_name':_0x1a5763,'list_name':_0x1fa369,'facet_name':_0xe2684c};try{const _0x423790=yield this['fetch']['post'](this['path'],_0x2d7d61,_0x4293d7);if(_0x423790['status']>0xc7&&_0x423790['status']<0x12c){const _0xb5ebb6=yield _0x423790['json']();return new SuccessfulFacetResponse(_0xb5ebb6);}const _0x420548=yield _0x423790['json']();return new FailedFacetResponse(_0x420548);}catch(_0xc2a396){if(_0xc2a396 instanceof Error)return new FailedFacetResponse({'detail':_0xc2a396['message'],'title':_0xc2a396['name'],'status':0x1f4,'instance':'','type':''});throw _0xc2a396;}});}}
15
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4d94cc,_0x72b9df,_0x899a49,_0x912b0){function _0x3a127a(_0x171d10){return _0x171d10 instanceof _0x899a49?_0x171d10:new _0x899a49(function(_0x485961){_0x485961(_0x171d10);});}return new(_0x899a49||(_0x899a49=Promise))(function(_0x45e8b5,_0x55c629){function _0x481697(_0x593765){try{_0x3a6aa9(_0x912b0['next'](_0x593765));}catch(_0x156cfe){_0x55c629(_0x156cfe);}}function _0x33150a(_0x3127eb){try{_0x3a6aa9(_0x912b0['throw'](_0x3127eb));}catch(_0x5e5765){_0x55c629(_0x5e5765);}}function _0x3a6aa9(_0x4d39bf){_0x4d39bf['done']?_0x45e8b5(_0x4d39bf['value']):_0x3a127a(_0x4d39bf['value'])['then'](_0x481697,_0x33150a);}_0x3a6aa9((_0x912b0=_0x912b0['apply'](_0x4d94cc,_0x72b9df||[]))['next']());});};class FacetService{constructor(_0x3041c8){this['fetch']=_0x3041c8,this['path']='facet';}['create'](_0x561678,_0x5ba621,_0x1b191b,_0x386952){return __awaiter$1(this,void 0,void 0,function*(){const _0x2f2400={'account_name':_0x561678,'list_name':_0x5ba621,'facet_name':_0x1b191b};try{const _0x1dab31=yield this['fetch']['post'](this['path'],_0x386952,_0x2f2400);if(_0x1dab31['status']>0xc7&&_0x1dab31['status']<0x12c){const _0x21504b=yield _0x1dab31['json']();return new SuccessfulFacetResponse(_0x21504b);}const _0x3118e8=yield _0x1dab31['json']();return new FailedFacetResponse(_0x3118e8);}catch(_0x2f8c8b){if(_0x2f8c8b instanceof Error)return new FailedFacetResponse({'detail':_0x2f8c8b['message'],'title':_0x2f8c8b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2f8c8b;}});}['remove'](_0x356035,_0x539df0,_0x41d058,_0x4c8fde){return __awaiter$1(this,void 0,void 0,function*(){const _0x3dd388='Facet/'+_0x356035+'/'+_0x539df0+'/'+_0x41d058,_0x3b3420=yield this['fetch']['delete'](_0x3dd388,_0x4c8fde);try{if(_0x3b3420['status']>0xc7&&_0x3b3420['status']<0x12c)return new SuccessfulResponse({});const _0x102c95=yield _0x3b3420['json']();return new FailedResponse(_0x102c95);}catch(_0x427e1c){if(_0x427e1c instanceof Error)return new FailedResponse({'detail':_0x427e1c['message'],'title':_0x427e1c['name'],'status':0x1f4,'instance':'','type':''});throw _0x427e1c;}});}}
16
16
 
17
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x58ccb2,_0x215327,_0x217df4,_0x237a79){function _0x1937ec(_0x34f6a6){return _0x34f6a6 instanceof _0x217df4?_0x34f6a6:new _0x217df4(function(_0x511db4){_0x511db4(_0x34f6a6);});}return new(_0x217df4||(_0x217df4=Promise))(function(_0x500c52,_0x2c8570){function _0x3be2c5(_0x10c3ea){try{_0x2fe338(_0x237a79['next'](_0x10c3ea));}catch(_0x27a96f){_0x2c8570(_0x27a96f);}}function _0x1bff6d(_0xfd43e3){try{_0x2fe338(_0x237a79['throw'](_0xfd43e3));}catch(_0x5f16a2){_0x2c8570(_0x5f16a2);}}function _0x2fe338(_0x495d58){_0x495d58['done']?_0x500c52(_0x495d58['value']):_0x1937ec(_0x495d58['value'])['then'](_0x3be2c5,_0x1bff6d);}_0x2fe338((_0x237a79=_0x237a79['apply'](_0x58ccb2,_0x215327||[]))['next']());});};class AdminClient{constructor(_0x50d416='https://admin.searchability.dev/'){var _0x40effd=new Fetch(_0x50d416);this['Accounts']=new AccountService(_0x40effd),this['Lists']=new ListService(_0x40effd),this['ApiKeys']=new ApiKeyService(_0x40effd),this['SearchServices']=new SearchServersService(_0x40effd),this['FacetService']=new FacetService(_0x40effd);}}class AuthClient{constructor(_0x4309b0='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4309b0);}['login'](_0x2d02e8){return __awaiter(this,void 0,void 0,function*(){const _0x9c2ea2='login/'+_0x2d02e8;try{const _0x5bf5fb=yield yield fetch(_0x9c2ea2);if(_0x5bf5fb['status']>0xc7&&_0x5bf5fb['status']<0x12c){const _0x24b76f=yield _0x5bf5fb['json']();return new SuccessfulAuthResponse(_0x24b76f);}const _0xd58cf1=yield _0x5bf5fb['json']();return new FailedAuthResponse(_0xd58cf1);}catch(_0x6b6ff0){if(_0x6b6ff0 instanceof Error)return new FailedAuthResponse({'detail':_0x6b6ff0['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x6b6ff0;}});}['refresh'](_0x4bf89e){return __awaiter(this,void 0,void 0,function*(){const _0xb3f03a='refresh',_0x1641ed={'refresh_token':_0x4bf89e};try{const _0x5c80f4=yield this['fetch']['PostNoAuth'](_0xb3f03a,_0x1641ed);if(_0x5c80f4['status']>0xc7&&_0x5c80f4['status']<0x12c){const _0x25dc9f=yield _0x5c80f4['json']();return new SuccessfulAuthResponse(_0x25dc9f);}const _0xc608f1=yield _0x5c80f4['json']();return new FailedAuthResponse(_0xc608f1);}catch(_0x39e981){if(_0x39e981 instanceof Error)return new FailedAuthResponse({'detail':_0x39e981['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x39e981;}});}['getTokenStatus'](_0x421ab6){if(Date['now']()<_0x421ab6['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x421ab6['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
17
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x1b4565,_0x1570cd,_0x55dd17,_0x5f5547){function _0x11f2b0(_0x33064f){return _0x33064f instanceof _0x55dd17?_0x33064f:new _0x55dd17(function(_0x1e0343){_0x1e0343(_0x33064f);});}return new(_0x55dd17||(_0x55dd17=Promise))(function(_0x498c84,_0x41a757){function _0xaba5fe(_0x4f2798){try{_0x1f0dca(_0x5f5547['next'](_0x4f2798));}catch(_0x445830){_0x41a757(_0x445830);}}function _0x8e66d(_0xa8c77){try{_0x1f0dca(_0x5f5547['throw'](_0xa8c77));}catch(_0x3c6a0e){_0x41a757(_0x3c6a0e);}}function _0x1f0dca(_0x5e470d){_0x5e470d['done']?_0x498c84(_0x5e470d['value']):_0x11f2b0(_0x5e470d['value'])['then'](_0xaba5fe,_0x8e66d);}_0x1f0dca((_0x5f5547=_0x5f5547['apply'](_0x1b4565,_0x1570cd||[]))['next']());});};class AdminClient{constructor(_0x33bb6d='https://admin.searchability.dev/'){var _0x514952=new Fetch(_0x33bb6d);this['Accounts']=new AccountService(_0x514952),this['Lists']=new ListService(_0x514952),this['ApiKeys']=new ApiKeyService(_0x514952),this['SearchServices']=new SearchServersService(_0x514952),this['FacetService']=new FacetService(_0x514952);}}class AuthClient{constructor(_0x81c793='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x81c793);}['login'](_0x4c2a1e){return __awaiter(this,void 0,void 0,function*(){const _0x57ca3b='login/'+_0x4c2a1e;try{const _0x5bdf93=yield yield fetch(_0x57ca3b);if(_0x5bdf93['status']>0xc7&&_0x5bdf93['status']<0x12c){const _0x5405c4=yield _0x5bdf93['json']();return new SuccessfulAuthResponse(_0x5405c4);}const _0x112cc0=yield _0x5bdf93['json']();return new FailedAuthResponse(_0x112cc0);}catch(_0x561498){if(_0x561498 instanceof Error)return new FailedAuthResponse({'detail':_0x561498['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x561498;}});}['refresh'](_0x4ef78c){return __awaiter(this,void 0,void 0,function*(){const _0x517892='refresh',_0x4318aa={'refresh_token':_0x4ef78c};try{const _0x4188a3=yield this['fetch']['PostNoAuth'](_0x517892,_0x4318aa);if(_0x4188a3['status']>0xc7&&_0x4188a3['status']<0x12c){const _0x5ba559=yield _0x4188a3['json']();return new SuccessfulAuthResponse(_0x5ba559);}const _0x2962ca=yield _0x4188a3['json']();return new FailedAuthResponse(_0x2962ca);}catch(_0x20ecf4){if(_0x20ecf4 instanceof Error)return new FailedAuthResponse({'detail':_0x20ecf4['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x20ecf4;}});}['getTokenStatus'](_0x1b4218){if(Date['now']()<_0x1b4218['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x1b4218['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
18
18
 
19
19
  exports.AdminClient = AdminClient;
20
20
  exports.AuthClient = AuthClient;
@@ -1,17 +1,17 @@
1
- var TokenStatus;(function(_0x5f3774){_0x5f3774[_0x5f3774['Ok']=0x0]='Ok',_0x5f3774[_0x5f3774['Refresh']=0x1]='Refresh',_0x5f3774[_0x5f3774['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x4049f0){this['isSuccess']=_0x4049f0;}}class SuccessfulFacetResponse extends Response{constructor(_0x24c37b){super(!![]),this['facet']=_0x24c37b;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x323d52){super(![]),this['problem']=_0x323d52;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x237e6c){super(!![]),this['account']=_0x237e6c;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x3053ac){super(!![]),this['list']=_0x3053ac;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x27ee9a){super(!![]),this['list']=_0x27ee9a;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3d59dc){super(![]),this['problem']=_0x3d59dc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x5c47ae){super(![]),this['problem']=_0x5c47ae;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x3a7841){super(![]),this['problem']=_0x3a7841;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x231da9){super(!![]),this['tokens']=_0x231da9;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x587438){super(![]),this['problem']=_0x587438;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x209077){super(!![]),this['apiKey']=_0x209077;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4dac8){super(![]),this['problem']=_0x4dac8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x5ad862){super(!![]),this['searchService']=_0x5ad862;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x3dadce){super(![]),this['problem']=_0x3dadce;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x4c5d5e){super(!![]),this['searchService']=_0x4c5d5e;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x5656c7){super(!![]),this['searchServices']=_0x5656c7;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x57dc56){super(![]),this['problem']=_0x57dc56;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x21d559){super(![]),this['problem']=_0x21d559;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x14b092){super(!![]),this['apiKeyValue']=_0x14b092;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x4f1f6d){super(!![]),this['obj']=_0x4f1f6d;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x230b27){super(![]),this['problem']=_0x230b27;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x14c85f){super(![]),this['problem']=_0x14c85f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0x4fbff2){_0x4fbff2[_0x4fbff2['Ok']=0x0]='Ok',_0x4fbff2[_0x4fbff2['Refresh']=0x1]='Refresh',_0x4fbff2[_0x4fbff2['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x51cc3f){this['isSuccess']=_0x51cc3f;}}class SuccessfulFacetResponse extends Response{constructor(_0x2b238a){super(!![]),this['facet']=_0x2b238a;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x28825e){super(![]),this['problem']=_0x28825e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x470245){super(!![]),this['account']=_0x470245;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0xbe2f08){super(!![]),this['list']=_0xbe2f08;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x2c1477){super(!![]),this['list']=_0x2c1477;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0xa34357){super(![]),this['problem']=_0xa34357;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x23ba31){super(![]),this['problem']=_0x23ba31;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x1ff093){super(![]),this['problem']=_0x1ff093;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3e46e3){super(!![]),this['tokens']=_0x3e46e3;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x576d9a){super(![]),this['problem']=_0x576d9a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5ca253){super(!![]),this['apiKey']=_0x5ca253;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4c3499){super(![]),this['problem']=_0x4c3499;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x12b109){super(!![]),this['searchService']=_0x12b109;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5c6a16){super(![]),this['problem']=_0x5c6a16;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0xc5d061){super(!![]),this['searchService']=_0xc5d061;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2d533e){super(!![]),this['searchServices']=_0x2d533e;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x4141e8){super(![]),this['problem']=_0x4141e8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x3e68dd){super(![]),this['problem']=_0x3e68dd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x56e356){super(!![]),this['apiKeyValue']=_0x56e356;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x3017ae){super(!![]),this['obj']=_0x3017ae;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x50d919){super(![]),this['problem']=_0x50d919;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x27a817){super(![]),this['problem']=_0x27a817;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0xbd9d3a,_0xec16d,_0x5ad43c,_0x469536){function _0x51df20(_0x24c3b4){return _0x24c3b4 instanceof _0x5ad43c?_0x24c3b4:new _0x5ad43c(function(_0x4e0528){_0x4e0528(_0x24c3b4);});}return new(_0x5ad43c||(_0x5ad43c=Promise))(function(_0x5556b6,_0x42b5b9){function _0xfa9e7b(_0x11b756){try{_0x526ba9(_0x469536['next'](_0x11b756));}catch(_0x2cc9df){_0x42b5b9(_0x2cc9df);}}function _0x1680be(_0x556dea){try{_0x526ba9(_0x469536['throw'](_0x556dea));}catch(_0x10008b){_0x42b5b9(_0x10008b);}}function _0x526ba9(_0x191c87){_0x191c87['done']?_0x5556b6(_0x191c87['value']):_0x51df20(_0x191c87['value'])['then'](_0xfa9e7b,_0x1680be);}_0x526ba9((_0x469536=_0x469536['apply'](_0xbd9d3a,_0xec16d||[]))['next']());});};class AccountService{constructor(_0x58fcec){this['fetch']=_0x58fcec;}['get'](_0xb8cb3,_0xa9b0a0){return __awaiter$6(this,void 0,void 0,function*(){const _0x286c95='Account/'+_0xb8cb3+'/',_0x9eb936=yield this['fetch']['get'](_0x286c95,_0xa9b0a0);try{if(_0x9eb936['status']>0xc7&&_0x9eb936['status']<0x12c){const _0x23c671=yield _0x9eb936['json']();return new SuccessfulAccountResponse(_0x23c671);}const _0xbe3202=yield _0x9eb936['json']();return new FailedAccountResponse(_0xbe3202);}catch(_0x2933c3){if(_0x2933c3 instanceof Error)return new FailedAccountResponse({'detail':_0x2933c3['message'],'title':_0x2933c3['name'],'status':0x1f4,'instance':'','type':''});throw _0x2933c3;}});}}
3
+ var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x4ad752,_0x4e78f7,_0x20afa4,_0x55d900){function _0x5bd3f8(_0x7dd7a1){return _0x7dd7a1 instanceof _0x20afa4?_0x7dd7a1:new _0x20afa4(function(_0x189c5a){_0x189c5a(_0x7dd7a1);});}return new(_0x20afa4||(_0x20afa4=Promise))(function(_0x137251,_0x3d68d4){function _0x507d28(_0x41a93c){try{_0x440283(_0x55d900['next'](_0x41a93c));}catch(_0x1976a6){_0x3d68d4(_0x1976a6);}}function _0x2c1fd7(_0x30f533){try{_0x440283(_0x55d900['throw'](_0x30f533));}catch(_0x2d3c9c){_0x3d68d4(_0x2d3c9c);}}function _0x440283(_0x1a3166){_0x1a3166['done']?_0x137251(_0x1a3166['value']):_0x5bd3f8(_0x1a3166['value'])['then'](_0x507d28,_0x2c1fd7);}_0x440283((_0x55d900=_0x55d900['apply'](_0x4ad752,_0x4e78f7||[]))['next']());});};class AccountService{constructor(_0x1219ec){this['fetch']=_0x1219ec;}['get'](_0x577603,_0x16ee99){return __awaiter$6(this,void 0,void 0,function*(){const _0x1ae1df='Account/'+_0x577603+'/',_0x414773=yield this['fetch']['get'](_0x1ae1df,_0x16ee99);try{if(_0x414773['status']>0xc7&&_0x414773['status']<0x12c){const _0x3476c6=yield _0x414773['json']();return new SuccessfulAccountResponse(_0x3476c6);}const _0x5a6b11=yield _0x414773['json']();return new FailedAccountResponse(_0x5a6b11);}catch(_0x48d11b){if(_0x48d11b instanceof Error)return new FailedAccountResponse({'detail':_0x48d11b['message'],'title':_0x48d11b['name'],'status':0x1f4,'instance':'','type':''});throw _0x48d11b;}});}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x44ba59,_0x3a0356,_0x3b85ac,_0x132bf0){function _0x2bae4f(_0x323d5f){return _0x323d5f instanceof _0x3b85ac?_0x323d5f:new _0x3b85ac(function(_0x64d290){_0x64d290(_0x323d5f);});}return new(_0x3b85ac||(_0x3b85ac=Promise))(function(_0x109115,_0x504b41){function _0x4416aa(_0x4b9719){try{_0x3cde4a(_0x132bf0['next'](_0x4b9719));}catch(_0x9ea186){_0x504b41(_0x9ea186);}}function _0x59806d(_0x36e129){try{_0x3cde4a(_0x132bf0['throw'](_0x36e129));}catch(_0x3aa6b3){_0x504b41(_0x3aa6b3);}}function _0x3cde4a(_0x5681b4){_0x5681b4['done']?_0x109115(_0x5681b4['value']):_0x2bae4f(_0x5681b4['value'])['then'](_0x4416aa,_0x59806d);}_0x3cde4a((_0x132bf0=_0x132bf0['apply'](_0x44ba59,_0x3a0356||[]))['next']());});};class ApiKeyService{constructor(_0x3e3fb2){this['fetch']=_0x3e3fb2,this['path']='api-key';}['create'](_0x5e38f1,_0x284406,_0x2fafdd){return __awaiter$5(this,void 0,void 0,function*(){const _0x2df97a={'account_name':_0x5e38f1,'api_key_name':_0x284406};try{const _0x1c9210=yield this['fetch']['post'](this['path'],_0x2fafdd,_0x2df97a);if(_0x1c9210['status']>0xc7&&_0x1c9210['status']<0x12c){const _0x4c2fc2=yield _0x1c9210['json']();return new SuccessfulApiKeyResponse(_0x4c2fc2);}const _0x3d70cc=yield _0x1c9210['json']();return new FailedApiKeyResponse(_0x3d70cc);}catch(_0x247e7e){if(_0x247e7e instanceof Error)return new FailedApiKeyResponse({'detail':_0x247e7e['message'],'title':_0x247e7e['name'],'status':0x1f4,'instance':'','type':''});throw _0x247e7e;}});}['view'](_0x35b83f,_0x2edc81,_0x3eb56b){return __awaiter$5(this,void 0,void 0,function*(){const _0xc4be82=this['path']+'/'+_0x35b83f+'/'+_0x2edc81;try{const _0x42ab70=yield this['fetch']['get'](_0xc4be82,_0x3eb56b);if(_0x42ab70['status']>0xc7&&_0x42ab70['status']<0x12c){const _0xc41470=yield _0x42ab70['json']();return new SuccessfulApiKeyValueResponse(_0xc41470);}const _0xdb5e44=yield _0x42ab70['json']();return new FailedApiKeyValueResponse(_0xdb5e44);}catch(_0x34efc2){if(_0x34efc2 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x34efc2['message'],'title':_0x34efc2['name'],'status':0x1f4,'instance':'','type':''});throw _0x34efc2;}});}['delete'](_0x2f0209,_0x101f10,_0x36a63a){return __awaiter$5(this,void 0,void 0,function*(){const _0xba1554=this['path']+'/'+_0x2f0209+'/'+_0x101f10;try{const _0x93be70=yield this['fetch']['delete'](_0xba1554,_0x36a63a);if(_0x93be70['status']>0xc7&&_0x93be70['status']<0x12c)return new SuccessfulResponse({});const _0x473340=yield _0x93be70['json']();return new FailedResponse(_0x473340);}catch(_0xe9836d){if(_0xe9836d instanceof Error)return new FailedResponse({'detail':_0xe9836d['message'],'title':_0xe9836d['name'],'status':0x1f4,'instance':'','type':''});throw _0xe9836d;}});}}
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1ea7f0,_0x59cae0,_0x91a13c,_0x25131e){function _0x16cda4(_0x360046){return _0x360046 instanceof _0x91a13c?_0x360046:new _0x91a13c(function(_0x4a44c1){_0x4a44c1(_0x360046);});}return new(_0x91a13c||(_0x91a13c=Promise))(function(_0x11770e,_0x3103d8){function _0xc2a43a(_0x324d9b){try{_0x11c8ed(_0x25131e['next'](_0x324d9b));}catch(_0x40cc69){_0x3103d8(_0x40cc69);}}function _0x2333fe(_0x2478e7){try{_0x11c8ed(_0x25131e['throw'](_0x2478e7));}catch(_0x1b6e1e){_0x3103d8(_0x1b6e1e);}}function _0x11c8ed(_0x29b91a){_0x29b91a['done']?_0x11770e(_0x29b91a['value']):_0x16cda4(_0x29b91a['value'])['then'](_0xc2a43a,_0x2333fe);}_0x11c8ed((_0x25131e=_0x25131e['apply'](_0x1ea7f0,_0x59cae0||[]))['next']());});};class ApiKeyService{constructor(_0x590e88){this['fetch']=_0x590e88,this['path']='api-key';}['create'](_0x8cab4f,_0x51020e,_0x3c0156){return __awaiter$5(this,void 0,void 0,function*(){const _0xf5eda8={'account_name':_0x8cab4f,'api_key_name':_0x51020e};try{const _0x27a1f8=yield this['fetch']['post'](this['path'],_0x3c0156,_0xf5eda8);if(_0x27a1f8['status']>0xc7&&_0x27a1f8['status']<0x12c){const _0x35ff40=yield _0x27a1f8['json']();return new SuccessfulApiKeyResponse(_0x35ff40);}const _0x981979=yield _0x27a1f8['json']();return new FailedApiKeyResponse(_0x981979);}catch(_0x4e9009){if(_0x4e9009 instanceof Error)return new FailedApiKeyResponse({'detail':_0x4e9009['message'],'title':_0x4e9009['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e9009;}});}['view'](_0xd9ac8,_0x26b448,_0x3e4205){return __awaiter$5(this,void 0,void 0,function*(){const _0x1de45b=this['path']+'/'+_0xd9ac8+'/'+_0x26b448;try{const _0x571445=yield this['fetch']['get'](_0x1de45b,_0x3e4205);if(_0x571445['status']>0xc7&&_0x571445['status']<0x12c){const _0x437f8b=yield _0x571445['json']();return new SuccessfulApiKeyValueResponse(_0x437f8b);}const _0x340222=yield _0x571445['json']();return new FailedApiKeyValueResponse(_0x340222);}catch(_0x20c35b){if(_0x20c35b instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x20c35b['message'],'title':_0x20c35b['name'],'status':0x1f4,'instance':'','type':''});throw _0x20c35b;}});}['delete'](_0x3adb66,_0x58b44b,_0x31997c){return __awaiter$5(this,void 0,void 0,function*(){const _0x2fafa5=this['path']+'/'+_0x3adb66+'/'+_0x58b44b;try{const _0x37a9e7=yield this['fetch']['delete'](_0x2fafa5,_0x31997c);if(_0x37a9e7['status']>0xc7&&_0x37a9e7['status']<0x12c)return new SuccessfulResponse({});const _0x537092=yield _0x37a9e7['json']();return new FailedResponse(_0x537092);}catch(_0x5f4ca5){if(_0x5f4ca5 instanceof Error)return new FailedResponse({'detail':_0x5f4ca5['message'],'title':_0x5f4ca5['name'],'status':0x1f4,'instance':'','type':''});throw _0x5f4ca5;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x23aa6e,_0x26fc88,_0x380b2e,_0x3ebee9){function _0x5c9903(_0x32bd3f){return _0x32bd3f instanceof _0x380b2e?_0x32bd3f:new _0x380b2e(function(_0x5c6bc5){_0x5c6bc5(_0x32bd3f);});}return new(_0x380b2e||(_0x380b2e=Promise))(function(_0x59e310,_0x29e77c){function _0x57f68a(_0x4828af){try{_0x51f8d0(_0x3ebee9['next'](_0x4828af));}catch(_0x5661cc){_0x29e77c(_0x5661cc);}}function _0x3afb17(_0x47fd8c){try{_0x51f8d0(_0x3ebee9['throw'](_0x47fd8c));}catch(_0x4452b7){_0x29e77c(_0x4452b7);}}function _0x51f8d0(_0x453620){_0x453620['done']?_0x59e310(_0x453620['value']):_0x5c9903(_0x453620['value'])['then'](_0x57f68a,_0x3afb17);}_0x51f8d0((_0x3ebee9=_0x3ebee9['apply'](_0x23aa6e,_0x26fc88||[]))['next']());});};class ListService{constructor(_0x2ee9cf){this['fetch']=_0x2ee9cf;}['create'](_0x1c1c2d,_0x3922ce,_0x1a20b4,_0x52ad7d){return __awaiter$4(this,void 0,void 0,function*(){const _0x1ee6bd='List',_0x4b3106={'account_name':_0x1c1c2d,'list_name':_0x3922ce,'search_service_name':_0x1a20b4};try{const _0x5b2f35=yield this['fetch']['post'](_0x1ee6bd,_0x52ad7d,_0x4b3106);if(_0x5b2f35['status']>0xc7&&_0x5b2f35['status']<0x12c){const _0x50b205=yield _0x5b2f35['json']();return new SuccessfulListIdentityResponse(_0x50b205);}const _0x274718=yield _0x5b2f35['json']();return new FailedListIdentityResponse(_0x274718);}catch(_0x4117ca){if(_0x4117ca instanceof Error)return new FailedListIdentityResponse({'detail':_0x4117ca['message'],'title':_0x4117ca['name'],'status':0x1f4,'instance':'','type':''});throw _0x4117ca;}});}['delete'](_0xe0ae26,_0x3d1372,_0x1879a4){return __awaiter$4(this,void 0,void 0,function*(){const _0x264a2c='List/'+_0xe0ae26+'/'+_0x3d1372,_0x38903b=yield this['fetch']['delete'](_0x264a2c,_0x1879a4);try{if(_0x38903b['status']>0xc7&&_0x38903b['status']<0x12c)return new SuccessfulResponse({});const _0x35d0a7=yield _0x38903b['json']();return new FailedResponse(_0x35d0a7);}catch(_0x25e7e2){if(_0x25e7e2 instanceof Error)return new FailedResponse({'detail':_0x25e7e2['message'],'title':_0x25e7e2['name'],'status':0x1f4,'instance':'','type':''});throw _0x25e7e2;}});}['get'](_0x1aef6a,_0x1b202b,_0x4c0147){return __awaiter$4(this,void 0,void 0,function*(){const _0x41c870='List/'+_0x1aef6a+'/'+_0x1b202b;try{const _0x167269=yield this['fetch']['get'](_0x41c870,_0x4c0147);if(_0x167269['status']>0xc7&&_0x167269['status']<0x12c){const _0x509ae9=yield _0x167269['json']();return new SuccessfulListResponse(_0x509ae9);}const _0x37941e=yield _0x167269['json']();return new FailedListResponse(_0x37941e);}catch(_0x2e8725){if(_0x2e8725 instanceof Error)return new FailedListResponse({'detail':_0x2e8725['message'],'title':_0x2e8725['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e8725;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1ed815,_0x5df4de,_0x269516,_0x1f2c3a){function _0x5ab7c4(_0x131581){return _0x131581 instanceof _0x269516?_0x131581:new _0x269516(function(_0x42ef54){_0x42ef54(_0x131581);});}return new(_0x269516||(_0x269516=Promise))(function(_0x43b066,_0x3c5fe0){function _0x205002(_0x370aa5){try{_0x1709d6(_0x1f2c3a['next'](_0x370aa5));}catch(_0x1b2663){_0x3c5fe0(_0x1b2663);}}function _0x4b7197(_0x2120f0){try{_0x1709d6(_0x1f2c3a['throw'](_0x2120f0));}catch(_0x56d0fb){_0x3c5fe0(_0x56d0fb);}}function _0x1709d6(_0x86afb1){_0x86afb1['done']?_0x43b066(_0x86afb1['value']):_0x5ab7c4(_0x86afb1['value'])['then'](_0x205002,_0x4b7197);}_0x1709d6((_0x1f2c3a=_0x1f2c3a['apply'](_0x1ed815,_0x5df4de||[]))['next']());});};class ListService{constructor(_0x520cc9){this['fetch']=_0x520cc9;}['create'](_0x38a9bb,_0x4aad4c,_0x24d5d5,_0x1e46ed){return __awaiter$4(this,void 0,void 0,function*(){const _0x563315='List',_0x4035bc={'account_name':_0x38a9bb,'list_name':_0x4aad4c,'search_service_name':_0x24d5d5};try{const _0x3e1191=yield this['fetch']['post'](_0x563315,_0x1e46ed,_0x4035bc);if(_0x3e1191['status']>0xc7&&_0x3e1191['status']<0x12c){const _0x414d8e=yield _0x3e1191['json']();return new SuccessfulListIdentityResponse(_0x414d8e);}const _0x58b993=yield _0x3e1191['json']();return new FailedListIdentityResponse(_0x58b993);}catch(_0xb4afeb){if(_0xb4afeb instanceof Error)return new FailedListIdentityResponse({'detail':_0xb4afeb['message'],'title':_0xb4afeb['name'],'status':0x1f4,'instance':'','type':''});throw _0xb4afeb;}});}['delete'](_0x1f7892,_0x14b61a,_0x460fe6){return __awaiter$4(this,void 0,void 0,function*(){const _0x39a730='List/'+_0x1f7892+'/'+_0x14b61a,_0xc80853=yield this['fetch']['delete'](_0x39a730,_0x460fe6);try{if(_0xc80853['status']>0xc7&&_0xc80853['status']<0x12c)return new SuccessfulResponse({});const _0xd82b3=yield _0xc80853['json']();return new FailedResponse(_0xd82b3);}catch(_0x5fd755){if(_0x5fd755 instanceof Error)return new FailedResponse({'detail':_0x5fd755['message'],'title':_0x5fd755['name'],'status':0x1f4,'instance':'','type':''});throw _0x5fd755;}});}['get'](_0x181de9,_0x3d49ea,_0x287069){return __awaiter$4(this,void 0,void 0,function*(){const _0x2f57c2='List/'+_0x181de9+'/'+_0x3d49ea;try{const _0xc6f56a=yield this['fetch']['get'](_0x2f57c2,_0x287069);if(_0xc6f56a['status']>0xc7&&_0xc6f56a['status']<0x12c){const _0x25ddfa=yield _0xc6f56a['json']();return new SuccessfulListResponse(_0x25ddfa);}const _0x8aae60=yield _0xc6f56a['json']();return new FailedListResponse(_0x8aae60);}catch(_0x51e27f){if(_0x51e27f instanceof Error)return new FailedListResponse({'detail':_0x51e27f['message'],'title':_0x51e27f['name'],'status':0x1f4,'instance':'','type':''});throw _0x51e27f;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x59cc95,_0x33c8d0,_0x5ebf18,_0x2302a5){function _0x4938fc(_0x174d04){return _0x174d04 instanceof _0x5ebf18?_0x174d04:new _0x5ebf18(function(_0x47db21){_0x47db21(_0x174d04);});}return new(_0x5ebf18||(_0x5ebf18=Promise))(function(_0x40cc91,_0x66d7ba){function _0xdae63e(_0x4f956f){try{_0xfb4a1c(_0x2302a5['next'](_0x4f956f));}catch(_0x302bd7){_0x66d7ba(_0x302bd7);}}function _0x539723(_0x1a3e73){try{_0xfb4a1c(_0x2302a5['throw'](_0x1a3e73));}catch(_0x4ed4a1){_0x66d7ba(_0x4ed4a1);}}function _0xfb4a1c(_0xb01dee){_0xb01dee['done']?_0x40cc91(_0xb01dee['value']):_0x4938fc(_0xb01dee['value'])['then'](_0xdae63e,_0x539723);}_0xfb4a1c((_0x2302a5=_0x2302a5['apply'](_0x59cc95,_0x33c8d0||[]))['next']());});};class Fetch{constructor(_0x28f993){this['baseUri']=_0x28f993,this['getUrl']=_0x517b0b=>{return _0x517b0b['startsWith']('/')&&(_0x517b0b=_0x517b0b['replace']('/','')),''+this['baseUri']+_0x517b0b;},!_0x28f993['endsWith']('/')&&(_0x28f993=_0x28f993+'/');}['get'](_0x4bc2d9,_0x2e5b0f){return __awaiter$3(this,void 0,void 0,function*(){const _0x3b05c6=this['getUrl'](_0x4bc2d9);return yield fetch(_0x3b05c6,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2e5b0f}});});}['post'](_0x49a102,_0x220039,_0x2f341f){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a63e7=this['getUrl'](_0x49a102);return yield fetch(_0x2a63e7,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x220039},'body':_0x2f341f?JSON['stringify'](_0x2f341f):null});});}['PostNoAuth'](_0x2170d3,_0x29721e){return __awaiter$3(this,void 0,void 0,function*(){const _0x670b3a=this['getUrl'](_0x2170d3);return yield fetch(_0x670b3a,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x29721e?JSON['stringify'](_0x29721e):null});});}['put'](_0x54c752,_0x28a3de,_0x27d936){return __awaiter$3(this,void 0,void 0,function*(){const _0x2e5ea1=this['getUrl'](_0x54c752);return yield fetch(_0x2e5ea1,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x28a3de},'body':_0x27d936?JSON['stringify'](_0x27d936):null});});}['delete'](_0x3ec959,_0x4875cc){return __awaiter$3(this,void 0,void 0,function*(){const _0x59b9a6=this['getUrl'](_0x3ec959);return yield fetch(_0x59b9a6,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4875cc}});});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x108304,_0x3a5ec2,_0x5386c8,_0x8bafdf){function _0x19eade(_0x1e9348){return _0x1e9348 instanceof _0x5386c8?_0x1e9348:new _0x5386c8(function(_0x3dc7f4){_0x3dc7f4(_0x1e9348);});}return new(_0x5386c8||(_0x5386c8=Promise))(function(_0x493c51,_0x3544c0){function _0x5c16a7(_0x5387b5){try{_0x524873(_0x8bafdf['next'](_0x5387b5));}catch(_0x5d7eed){_0x3544c0(_0x5d7eed);}}function _0x572389(_0x6dbc5b){try{_0x524873(_0x8bafdf['throw'](_0x6dbc5b));}catch(_0x196155){_0x3544c0(_0x196155);}}function _0x524873(_0x4baf9d){_0x4baf9d['done']?_0x493c51(_0x4baf9d['value']):_0x19eade(_0x4baf9d['value'])['then'](_0x5c16a7,_0x572389);}_0x524873((_0x8bafdf=_0x8bafdf['apply'](_0x108304,_0x3a5ec2||[]))['next']());});};class Fetch{constructor(_0x3659ac){this['baseUri']=_0x3659ac,this['getUrl']=_0xb24062=>{return _0xb24062['startsWith']('/')&&(_0xb24062=_0xb24062['replace']('/','')),''+this['baseUri']+_0xb24062;},!_0x3659ac['endsWith']('/')&&(_0x3659ac=_0x3659ac+'/');}['get'](_0x27bc54,_0x5ce502){return __awaiter$3(this,void 0,void 0,function*(){const _0x41d2eb=this['getUrl'](_0x27bc54);return yield fetch(_0x41d2eb,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5ce502}});});}['post'](_0xfac7b7,_0x537fb2,_0x27697b){return __awaiter$3(this,void 0,void 0,function*(){const _0x288d02=this['getUrl'](_0xfac7b7);return yield fetch(_0x288d02,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x537fb2},'body':_0x27697b?JSON['stringify'](_0x27697b):null});});}['PostNoAuth'](_0x5826f2,_0x23416a){return __awaiter$3(this,void 0,void 0,function*(){const _0xbc0c22=this['getUrl'](_0x5826f2);return yield fetch(_0xbc0c22,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x23416a?JSON['stringify'](_0x23416a):null});});}['put'](_0x4ab0e0,_0x51d70f,_0x7bc97a){return __awaiter$3(this,void 0,void 0,function*(){const _0xf9db97=this['getUrl'](_0x4ab0e0);return yield fetch(_0xf9db97,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x51d70f},'body':_0x7bc97a?JSON['stringify'](_0x7bc97a):null});});}['delete'](_0x177719,_0xc8d2cd){return __awaiter$3(this,void 0,void 0,function*(){const _0x2e45cd=this['getUrl'](_0x177719);return yield fetch(_0x2e45cd,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xc8d2cd}});});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x312934,_0x2b8264,_0x5896cd,_0x82be2b){function _0x379e85(_0x2e1515){return _0x2e1515 instanceof _0x5896cd?_0x2e1515:new _0x5896cd(function(_0x1df17e){_0x1df17e(_0x2e1515);});}return new(_0x5896cd||(_0x5896cd=Promise))(function(_0x1a53b7,_0x2e68ae){function _0x5271e0(_0x36f92a){try{_0x269deb(_0x82be2b['next'](_0x36f92a));}catch(_0x1a7e20){_0x2e68ae(_0x1a7e20);}}function _0x55fde6(_0x4d6f16){try{_0x269deb(_0x82be2b['throw'](_0x4d6f16));}catch(_0x3a2403){_0x2e68ae(_0x3a2403);}}function _0x269deb(_0x4e86e0){_0x4e86e0['done']?_0x1a53b7(_0x4e86e0['value']):_0x379e85(_0x4e86e0['value'])['then'](_0x5271e0,_0x55fde6);}_0x269deb((_0x82be2b=_0x82be2b['apply'](_0x312934,_0x2b8264||[]))['next']());});};class SearchServersService{constructor(_0x36857b){this['fetch']=_0x36857b,this['path']='search-services';}['create'](_0x29d549,_0x13f786,_0x5118b9,_0x83f1,_0x867f9f,_0x4cf671,_0x591907,_0x4e3d8f){return __awaiter$2(this,void 0,void 0,function*(){const _0x2ee5b1={'account_name':_0x29d549,'search_service_name':_0x13f786,'endpoint':_0x5118b9,'key':_0x83f1,'country':_0x867f9f,'provider':_0x4cf671,'index_name':_0x591907};try{const _0x58e1d0=yield this['fetch']['post'](this['path'],_0x4e3d8f,_0x2ee5b1);if(_0x58e1d0['status']>0xc7&&_0x58e1d0['status']<0x12c){const _0x2beafa=yield _0x58e1d0['json']();return new SuccessfulSearchServiceResponse(_0x2beafa);}const _0x5c8a87=yield _0x58e1d0['json']();return new FailedSearchServiceResponse(_0x5c8a87);}catch(_0x2f40c0){if(_0x2f40c0 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2f40c0['message'],'title':_0x2f40c0['name'],'status':0x1f4,'instance':'','type':''});throw _0x2f40c0;}});}['delete'](_0x1ed2cc,_0x58ab9d,_0x50ab17){return __awaiter$2(this,void 0,void 0,function*(){const _0xb66ad5=this['path']+'/'+_0x1ed2cc+'/'+_0x58ab9d;try{const _0x2c5d7a=yield this['fetch']['delete'](_0xb66ad5,_0x50ab17);if(_0x2c5d7a['status']>0xc7&&_0x2c5d7a['status']<0x12c)return new SuccessfulResponse({});const _0x4a8379=yield _0x2c5d7a['json']();return new FailedResponse(_0x4a8379);}catch(_0x442650){if(_0x442650 instanceof Error)return new FailedResponse({'detail':_0x442650['message'],'title':_0x442650['name'],'status':0x1f4,'instance':'','type':''});throw _0x442650;}});}['view'](_0xebf7ca,_0x59a038,_0x46214a){return __awaiter$2(this,void 0,void 0,function*(){const _0xb50427=this['path']+'/'+_0xebf7ca+'/'+_0x59a038;try{const _0x41f388=yield this['fetch']['get'](_0xb50427,_0x46214a);if(_0x41f388['status']>0xc7&&_0x41f388['status']<0x12c){const _0x28a7d4=yield _0x41f388['json']();return new SuccessfulViewSearchServiceResponse(_0x28a7d4);}const _0x1bd396=yield _0x41f388['json']();return new FailedViewSearchServiceResponse(_0x1bd396);}catch(_0xb8094e){if(_0xb8094e instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0xb8094e['message'],'title':_0xb8094e['name'],'status':0x1f4,'instance':'','type':''});throw _0xb8094e;}});}['edit'](_0x2e319e,_0x35d9e7,_0x568d5d,_0x401acf,_0x5ff97d,_0x373558){return __awaiter$2(this,void 0,void 0,function*(){const _0x4ad191={'account_name':_0x2e319e,'search_service_name':_0x35d9e7,'new_search_service_name':_0x568d5d,'key':_0x401acf,'country':_0x5ff97d};try{const _0x2f3e9c=yield this['fetch']['put'](this['path'],_0x373558,_0x4ad191);if(_0x2f3e9c['status']>0xc7&&_0x2f3e9c['status']<0x12c){const _0x4a21c8=yield _0x2f3e9c['json']();return new SuccessfulSearchServiceResponse(_0x4a21c8);}const _0x27090f=yield _0x2f3e9c['json']();return new FailedSearchServiceResponse(_0x27090f);}catch(_0x23f767){if(_0x23f767 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x23f767['message'],'title':_0x23f767['name'],'status':0x1f4,'instance':'','type':''});throw _0x23f767;}});}['list'](_0x4d283c,_0x4b05d7){return __awaiter$2(this,void 0,void 0,function*(){const _0x348fbd=this['path']+'/'+_0x4d283c;try{const _0xbfef89=yield this['fetch']['get'](_0x348fbd,_0x4b05d7);if(_0xbfef89['status']>0xc7&&_0xbfef89['status']<0x12c){const _0x43643b=yield _0xbfef89['json']();return new SuccessfulListSearchServiceResponse(_0x43643b);}const _0x18c60f=yield _0xbfef89['json']();return new FailedViewSearchServicesResponse(_0x18c60f);}catch(_0x1f4cc0){if(_0x1f4cc0 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x1f4cc0['message'],'title':_0x1f4cc0['name'],'status':0x1f4,'instance':'','type':''});throw _0x1f4cc0;}});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1d64f,_0x2d0b07,_0x57ee70,_0x5c8206){function _0x5abe1a(_0x59bc01){return _0x59bc01 instanceof _0x57ee70?_0x59bc01:new _0x57ee70(function(_0x260390){_0x260390(_0x59bc01);});}return new(_0x57ee70||(_0x57ee70=Promise))(function(_0x492adf,_0x573b22){function _0x108e63(_0x2110a6){try{_0x79c7e4(_0x5c8206['next'](_0x2110a6));}catch(_0x7ebc5d){_0x573b22(_0x7ebc5d);}}function _0x839160(_0x482782){try{_0x79c7e4(_0x5c8206['throw'](_0x482782));}catch(_0x273d50){_0x573b22(_0x273d50);}}function _0x79c7e4(_0x4c9192){_0x4c9192['done']?_0x492adf(_0x4c9192['value']):_0x5abe1a(_0x4c9192['value'])['then'](_0x108e63,_0x839160);}_0x79c7e4((_0x5c8206=_0x5c8206['apply'](_0x1d64f,_0x2d0b07||[]))['next']());});};class SearchServersService{constructor(_0x19751e){this['fetch']=_0x19751e,this['path']='search-services';}['create'](_0x37f7b6,_0x325967,_0x279c75,_0x2a54a4,_0x43c5df,_0x496f68,_0x1ae4ca,_0x52b1dd){return __awaiter$2(this,void 0,void 0,function*(){const _0x2e9290={'account_name':_0x37f7b6,'search_service_name':_0x325967,'endpoint':_0x279c75,'key':_0x2a54a4,'country':_0x43c5df,'provider':_0x496f68,'index_name':_0x1ae4ca};try{const _0x71fd93=yield this['fetch']['post'](this['path'],_0x52b1dd,_0x2e9290);if(_0x71fd93['status']>0xc7&&_0x71fd93['status']<0x12c){const _0x491753=yield _0x71fd93['json']();return new SuccessfulSearchServiceResponse(_0x491753);}const _0x3969fc=yield _0x71fd93['json']();return new FailedSearchServiceResponse(_0x3969fc);}catch(_0x48f919){if(_0x48f919 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x48f919['message'],'title':_0x48f919['name'],'status':0x1f4,'instance':'','type':''});throw _0x48f919;}});}['delete'](_0x59aeb2,_0x56cb61,_0x1e2404){return __awaiter$2(this,void 0,void 0,function*(){const _0x273e8b=this['path']+'/'+_0x59aeb2+'/'+_0x56cb61;try{const _0x44303e=yield this['fetch']['delete'](_0x273e8b,_0x1e2404);if(_0x44303e['status']>0xc7&&_0x44303e['status']<0x12c)return new SuccessfulResponse({});const _0x2006d6=yield _0x44303e['json']();return new FailedResponse(_0x2006d6);}catch(_0x14e78e){if(_0x14e78e instanceof Error)return new FailedResponse({'detail':_0x14e78e['message'],'title':_0x14e78e['name'],'status':0x1f4,'instance':'','type':''});throw _0x14e78e;}});}['view'](_0x3e8198,_0x554434,_0x5450c5){return __awaiter$2(this,void 0,void 0,function*(){const _0x3a1ada=this['path']+'/'+_0x3e8198+'/'+_0x554434;try{const _0x42c305=yield this['fetch']['get'](_0x3a1ada,_0x5450c5);if(_0x42c305['status']>0xc7&&_0x42c305['status']<0x12c){const _0x1689d9=yield _0x42c305['json']();return new SuccessfulViewSearchServiceResponse(_0x1689d9);}const _0x39834c=yield _0x42c305['json']();return new FailedViewSearchServiceResponse(_0x39834c);}catch(_0x47fa33){if(_0x47fa33 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x47fa33['message'],'title':_0x47fa33['name'],'status':0x1f4,'instance':'','type':''});throw _0x47fa33;}});}['edit'](_0x216f76,_0xb30282,_0x365b8f,_0x38ef07,_0x52b389,_0x249a5e){return __awaiter$2(this,void 0,void 0,function*(){const _0x73e66={'account_name':_0x216f76,'search_service_name':_0xb30282,'new_search_service_name':_0x365b8f,'key':_0x38ef07,'country':_0x52b389};try{const _0x3abb9c=yield this['fetch']['put'](this['path'],_0x249a5e,_0x73e66);if(_0x3abb9c['status']>0xc7&&_0x3abb9c['status']<0x12c){const _0x199a0c=yield _0x3abb9c['json']();return new SuccessfulSearchServiceResponse(_0x199a0c);}const _0x3163d3=yield _0x3abb9c['json']();return new FailedSearchServiceResponse(_0x3163d3);}catch(_0x471cd4){if(_0x471cd4 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x471cd4['message'],'title':_0x471cd4['name'],'status':0x1f4,'instance':'','type':''});throw _0x471cd4;}});}['list'](_0x35ec3f,_0x5f1273){return __awaiter$2(this,void 0,void 0,function*(){const _0x28a0b7=this['path']+'/'+_0x35ec3f;try{const _0x562169=yield this['fetch']['get'](_0x28a0b7,_0x5f1273);if(_0x562169['status']>0xc7&&_0x562169['status']<0x12c){const _0x317a5d=yield _0x562169['json']();return new SuccessfulListSearchServiceResponse(_0x317a5d);}const _0x1c4d57=yield _0x562169['json']();return new FailedViewSearchServicesResponse(_0x1c4d57);}catch(_0x279b9a){if(_0x279b9a instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x279b9a['message'],'title':_0x279b9a['name'],'status':0x1f4,'instance':'','type':''});throw _0x279b9a;}});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x59a2ad,_0x1b3308,_0x35b237,_0x27fee8){function _0x265f92(_0x4f8485){return _0x4f8485 instanceof _0x35b237?_0x4f8485:new _0x35b237(function(_0x282d48){_0x282d48(_0x4f8485);});}return new(_0x35b237||(_0x35b237=Promise))(function(_0x59f65e,_0x5457c2){function _0x16ba20(_0xbca21c){try{_0x7e2b0d(_0x27fee8['next'](_0xbca21c));}catch(_0x1a0585){_0x5457c2(_0x1a0585);}}function _0x396829(_0x5b1832){try{_0x7e2b0d(_0x27fee8['throw'](_0x5b1832));}catch(_0x29748f){_0x5457c2(_0x29748f);}}function _0x7e2b0d(_0x24823b){_0x24823b['done']?_0x59f65e(_0x24823b['value']):_0x265f92(_0x24823b['value'])['then'](_0x16ba20,_0x396829);}_0x7e2b0d((_0x27fee8=_0x27fee8['apply'](_0x59a2ad,_0x1b3308||[]))['next']());});};class FacetService{constructor(_0x35198e){this['fetch']=_0x35198e,this['path']='facet';}['create'](_0x3fb13a,_0x315d18,_0x50330b,_0x4f9b9b){return __awaiter$1(this,void 0,void 0,function*(){const _0x488371={'account_name':_0x3fb13a,'list_name':_0x315d18,'facet_name':_0x50330b};try{const _0x6426c6=yield this['fetch']['post'](this['path'],_0x4f9b9b,_0x488371);if(_0x6426c6['status']>0xc7&&_0x6426c6['status']<0x12c){const _0x27dbda=yield _0x6426c6['json']();return new SuccessfulFacetResponse(_0x27dbda);}const _0x4d91ca=yield _0x6426c6['json']();return new FailedFacetResponse(_0x4d91ca);}catch(_0x518ec6){if(_0x518ec6 instanceof Error)return new FailedFacetResponse({'detail':_0x518ec6['message'],'title':_0x518ec6['name'],'status':0x1f4,'instance':'','type':''});throw _0x518ec6;}});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x5267d5,_0x2ea173,_0x24ead7,_0x47c265){function _0x1ad846(_0x3c19e4){return _0x3c19e4 instanceof _0x24ead7?_0x3c19e4:new _0x24ead7(function(_0x475b29){_0x475b29(_0x3c19e4);});}return new(_0x24ead7||(_0x24ead7=Promise))(function(_0x551823,_0x5f3000){function _0x43b572(_0x26699f){try{_0x1a3c23(_0x47c265['next'](_0x26699f));}catch(_0x462d5b){_0x5f3000(_0x462d5b);}}function _0x5ac3aa(_0x10e31b){try{_0x1a3c23(_0x47c265['throw'](_0x10e31b));}catch(_0x411a3c){_0x5f3000(_0x411a3c);}}function _0x1a3c23(_0x4825cb){_0x4825cb['done']?_0x551823(_0x4825cb['value']):_0x1ad846(_0x4825cb['value'])['then'](_0x43b572,_0x5ac3aa);}_0x1a3c23((_0x47c265=_0x47c265['apply'](_0x5267d5,_0x2ea173||[]))['next']());});};class FacetService{constructor(_0x3729b7){this['fetch']=_0x3729b7,this['path']='facet';}['create'](_0x451c12,_0x6ebb9f,_0x1ceaf6,_0x425a55){return __awaiter$1(this,void 0,void 0,function*(){const _0x51550e={'account_name':_0x451c12,'list_name':_0x6ebb9f,'facet_name':_0x1ceaf6};try{const _0x49ac48=yield this['fetch']['post'](this['path'],_0x425a55,_0x51550e);if(_0x49ac48['status']>0xc7&&_0x49ac48['status']<0x12c){const _0x5923a9=yield _0x49ac48['json']();return new SuccessfulFacetResponse(_0x5923a9);}const _0x5833e5=yield _0x49ac48['json']();return new FailedFacetResponse(_0x5833e5);}catch(_0x4a04c2){if(_0x4a04c2 instanceof Error)return new FailedFacetResponse({'detail':_0x4a04c2['message'],'title':_0x4a04c2['name'],'status':0x1f4,'instance':'','type':''});throw _0x4a04c2;}});}['remove'](_0x1ca614,_0x2f944b,_0xe9d275,_0x2e6c54){return __awaiter$1(this,void 0,void 0,function*(){const _0x18d784='Facet/'+_0x1ca614+'/'+_0x2f944b+'/'+_0xe9d275,_0x3ebbb0=yield this['fetch']['delete'](_0x18d784,_0x2e6c54);try{if(_0x3ebbb0['status']>0xc7&&_0x3ebbb0['status']<0x12c)return new SuccessfulResponse({});const _0xa26b4a=yield _0x3ebbb0['json']();return new FailedResponse(_0xa26b4a);}catch(_0xd35a0e){if(_0xd35a0e instanceof Error)return new FailedResponse({'detail':_0xd35a0e['message'],'title':_0xd35a0e['name'],'status':0x1f4,'instance':'','type':''});throw _0xd35a0e;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0xec8c18,_0x39533d,_0x1ff674,_0x46d9ac){function _0x2f23b0(_0x38121a){return _0x38121a instanceof _0x1ff674?_0x38121a:new _0x1ff674(function(_0x555d77){_0x555d77(_0x38121a);});}return new(_0x1ff674||(_0x1ff674=Promise))(function(_0xea85f1,_0x38da26){function _0x541e6c(_0x1deacd){try{_0x4c345c(_0x46d9ac['next'](_0x1deacd));}catch(_0x558e65){_0x38da26(_0x558e65);}}function _0xed2994(_0x2bb149){try{_0x4c345c(_0x46d9ac['throw'](_0x2bb149));}catch(_0x238483){_0x38da26(_0x238483);}}function _0x4c345c(_0xf33120){_0xf33120['done']?_0xea85f1(_0xf33120['value']):_0x2f23b0(_0xf33120['value'])['then'](_0x541e6c,_0xed2994);}_0x4c345c((_0x46d9ac=_0x46d9ac['apply'](_0xec8c18,_0x39533d||[]))['next']());});};class AdminClient{constructor(_0x502e48='https://admin.searchability.dev/'){var _0x37cd6b=new Fetch(_0x502e48);this['Accounts']=new AccountService(_0x37cd6b),this['Lists']=new ListService(_0x37cd6b),this['ApiKeys']=new ApiKeyService(_0x37cd6b),this['SearchServices']=new SearchServersService(_0x37cd6b),this['FacetService']=new FacetService(_0x37cd6b);}}class AuthClient{constructor(_0x19eda4='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x19eda4);}['login'](_0x41bcab){return __awaiter(this,void 0,void 0,function*(){const _0x3793dc='login/'+_0x41bcab;try{const _0x3e7a4c=yield yield fetch(_0x3793dc);if(_0x3e7a4c['status']>0xc7&&_0x3e7a4c['status']<0x12c){const _0x50c5f6=yield _0x3e7a4c['json']();return new SuccessfulAuthResponse(_0x50c5f6);}const _0x47020c=yield _0x3e7a4c['json']();return new FailedAuthResponse(_0x47020c);}catch(_0x135641){if(_0x135641 instanceof Error)return new FailedAuthResponse({'detail':_0x135641['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x135641;}});}['refresh'](_0xa132f4){return __awaiter(this,void 0,void 0,function*(){const _0x498e24='refresh',_0x42ccd3={'refresh_token':_0xa132f4};try{const _0x3c8fad=yield this['fetch']['PostNoAuth'](_0x498e24,_0x42ccd3);if(_0x3c8fad['status']>0xc7&&_0x3c8fad['status']<0x12c){const _0x910706=yield _0x3c8fad['json']();return new SuccessfulAuthResponse(_0x910706);}const _0x5e91b4=yield _0x3c8fad['json']();return new FailedAuthResponse(_0x5e91b4);}catch(_0x6e33ed){if(_0x6e33ed instanceof Error)return new FailedAuthResponse({'detail':_0x6e33ed['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x6e33ed;}});}['getTokenStatus'](_0xb5fa80){if(Date['now']()<_0xb5fa80['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0xb5fa80['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x15a5aa,_0x4ba9a5,_0x1bd4ff,_0x52469a){function _0xc5ed91(_0x202bbd){return _0x202bbd instanceof _0x1bd4ff?_0x202bbd:new _0x1bd4ff(function(_0x4047a8){_0x4047a8(_0x202bbd);});}return new(_0x1bd4ff||(_0x1bd4ff=Promise))(function(_0x289734,_0x14f956){function _0x58ec8e(_0x45f991){try{_0x548b35(_0x52469a['next'](_0x45f991));}catch(_0x39028a){_0x14f956(_0x39028a);}}function _0x3c232c(_0x236a23){try{_0x548b35(_0x52469a['throw'](_0x236a23));}catch(_0x35fea7){_0x14f956(_0x35fea7);}}function _0x548b35(_0x5722d3){_0x5722d3['done']?_0x289734(_0x5722d3['value']):_0xc5ed91(_0x5722d3['value'])['then'](_0x58ec8e,_0x3c232c);}_0x548b35((_0x52469a=_0x52469a['apply'](_0x15a5aa,_0x4ba9a5||[]))['next']());});};class AdminClient{constructor(_0x3bea35='https://admin.searchability.dev/'){var _0x567bdf=new Fetch(_0x3bea35);this['Accounts']=new AccountService(_0x567bdf),this['Lists']=new ListService(_0x567bdf),this['ApiKeys']=new ApiKeyService(_0x567bdf),this['SearchServices']=new SearchServersService(_0x567bdf),this['FacetService']=new FacetService(_0x567bdf);}}class AuthClient{constructor(_0x52c6f1='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x52c6f1);}['login'](_0x287ee5){return __awaiter(this,void 0,void 0,function*(){const _0x3d4fda='login/'+_0x287ee5;try{const _0x4b0c68=yield yield fetch(_0x3d4fda);if(_0x4b0c68['status']>0xc7&&_0x4b0c68['status']<0x12c){const _0x196b9a=yield _0x4b0c68['json']();return new SuccessfulAuthResponse(_0x196b9a);}const _0x332f42=yield _0x4b0c68['json']();return new FailedAuthResponse(_0x332f42);}catch(_0x57991d){if(_0x57991d instanceof Error)return new FailedAuthResponse({'detail':_0x57991d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x57991d;}});}['refresh'](_0x4394b7){return __awaiter(this,void 0,void 0,function*(){const _0x19474f='refresh',_0x37c8ed={'refresh_token':_0x4394b7};try{const _0x41fb1d=yield this['fetch']['PostNoAuth'](_0x19474f,_0x37c8ed);if(_0x41fb1d['status']>0xc7&&_0x41fb1d['status']<0x12c){const _0x109b45=yield _0x41fb1d['json']();return new SuccessfulAuthResponse(_0x109b45);}const _0x237cb5=yield _0x41fb1d['json']();return new FailedAuthResponse(_0x237cb5);}catch(_0x48a86d){if(_0x48a86d instanceof Error)return new FailedAuthResponse({'detail':_0x48a86d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x48a86d;}});}['getTokenStatus'](_0x5922f0){if(Date['now']()<_0x5922f0['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x5922f0['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
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,7 @@ 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>>;
51
52
  }
52
53
 
53
54
  declare class AdminClient {
@@ -90,12 +91,17 @@ type List = {
90
91
  list_name: string;
91
92
  created: number;
92
93
  version: number;
94
+ account_name: string;
95
+ search_service_name: string;
96
+ search_service_is_shared: boolean;
97
+ facets: Facet[];
93
98
  };
94
99
  type ListIdentity = {
95
100
  list_name: string;
96
101
  created: number;
97
102
  account_name: string;
98
- is_shared: boolean;
103
+ search_service_is_shared: boolean;
104
+ search_service_name: string;
99
105
  version: number;
100
106
  };
101
107
  type ApiKey = {
@@ -103,8 +109,7 @@ type ApiKey = {
103
109
  created: number;
104
110
  };
105
111
  type Facet = {
106
- list_name: string;
107
- account_name: string;
112
+ facet_id: string;
108
113
  facet_name: string;
109
114
  };
110
115
  type SearchService = {
@@ -112,6 +117,7 @@ type SearchService = {
112
117
  created: number;
113
118
  country: string;
114
119
  provider: string;
120
+ search_service_is_shared: boolean;
115
121
  };
116
122
  type SearchServiceDetails = {
117
123
  endpoint: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -1,17 +0,0 @@
1
- var TokenStatus;(function(_0x4fded3){_0x4fded3[_0x4fded3['Ok']=0x0]='Ok',_0x4fded3[_0x4fded3['Refresh']=0x1]='Refresh',_0x4fded3[_0x4fded3['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x2b0b0c){this['isSuccess']=_0x2b0b0c;}}class SuccessfulFacetResponse extends Response{constructor(_0x55d171){super(!![]),this['facet']=_0x55d171;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x2cf370){super(![]),this['problem']=_0x2cf370;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountResponse extends Response{constructor(_0x7ecc86){super(!![]),this['account']=_0x7ecc86;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x3a9b68){super(!![]),this['list']=_0x3a9b68;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x32a702){super(!![]),this['list']=_0x32a702;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4bd4f1){super(![]),this['problem']=_0x4bd4f1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x353a31){super(![]),this['problem']=_0x353a31;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x4997aa){super(![]),this['problem']=_0x4997aa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3ffb15){super(!![]),this['tokens']=_0x3ffb15;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x4d8269){super(![]),this['problem']=_0x4d8269;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x45d8e5){super(!![]),this['apiKey']=_0x45d8e5;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1076ae){super(![]),this['problem']=_0x1076ae;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x481d69){super(!![]),this['searchService']=_0x481d69;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x449ac2){super(![]),this['problem']=_0x449ac2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2f3a49){super(!![]),this['searchService']=_0x2f3a49;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x488d4f){super(!![]),this['searchServices']=_0x488d4f;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x182bd4){super(![]),this['problem']=_0x182bd4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x39b48d){super(![]),this['problem']=_0x39b48d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x40893c){super(!![]),this['apiKeyValue']=_0x40893c;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x2bcae8){super(!![]),this['obj']=_0x2bcae8;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x33d01b){super(![]),this['problem']=_0x33d01b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x1f5f83){super(![]),this['problem']=_0x1f5f83;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0xd32384,_0x5f4e50,_0x304c13,_0xe8c342){function _0x2c1eb8(_0x32d0fe){return _0x32d0fe instanceof _0x304c13?_0x32d0fe:new _0x304c13(function(_0x313ba4){_0x313ba4(_0x32d0fe);});}return new(_0x304c13||(_0x304c13=Promise))(function(_0x3f8723,_0x310dae){function _0x51cf00(_0x27ae5f){try{_0x1b7e1f(_0xe8c342['next'](_0x27ae5f));}catch(_0xa90065){_0x310dae(_0xa90065);}}function _0x4a4045(_0x51b065){try{_0x1b7e1f(_0xe8c342['throw'](_0x51b065));}catch(_0x4fff88){_0x310dae(_0x4fff88);}}function _0x1b7e1f(_0x2b81a3){_0x2b81a3['done']?_0x3f8723(_0x2b81a3['value']):_0x2c1eb8(_0x2b81a3['value'])['then'](_0x51cf00,_0x4a4045);}_0x1b7e1f((_0xe8c342=_0xe8c342['apply'](_0xd32384,_0x5f4e50||[]))['next']());});};class AccountService{constructor(_0x226528){this['fetch']=_0x226528;}['get'](_0x183d7c,_0x5932a0){return __awaiter$6(this,void 0,void 0,function*(){const _0x46839e='Account/'+_0x183d7c+'/',_0x3c6a51=yield this['fetch']['get'](_0x46839e,_0x5932a0);try{if(_0x3c6a51['status']>0xc7&&_0x3c6a51['status']<0x12c){const _0x413533=yield _0x3c6a51['json']();return new SuccessfulAccountResponse(_0x413533);}const _0x3c0a51=yield _0x3c6a51['json']();return new FailedAccountResponse(_0x3c0a51);}catch(_0x143d27){if(_0x143d27 instanceof Error)return new FailedAccountResponse({'detail':_0x143d27['message'],'title':_0x143d27['name'],'status':0x1f4,'instance':'','type':''});throw _0x143d27;}});}}
4
-
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x581b20,_0x1ff440,_0x40d6dc,_0x195501){function _0x17090e(_0x4ffd6b){return _0x4ffd6b instanceof _0x40d6dc?_0x4ffd6b:new _0x40d6dc(function(_0x30b201){_0x30b201(_0x4ffd6b);});}return new(_0x40d6dc||(_0x40d6dc=Promise))(function(_0x4669fb,_0x64f42b){function _0x585ec1(_0x4448fa){try{_0x3e25b8(_0x195501['next'](_0x4448fa));}catch(_0x44e2bc){_0x64f42b(_0x44e2bc);}}function _0x1cb36b(_0x3adebd){try{_0x3e25b8(_0x195501['throw'](_0x3adebd));}catch(_0x4bf0c6){_0x64f42b(_0x4bf0c6);}}function _0x3e25b8(_0x2bb2fb){_0x2bb2fb['done']?_0x4669fb(_0x2bb2fb['value']):_0x17090e(_0x2bb2fb['value'])['then'](_0x585ec1,_0x1cb36b);}_0x3e25b8((_0x195501=_0x195501['apply'](_0x581b20,_0x1ff440||[]))['next']());});};class ApiKeyService{constructor(_0x1cb5dd){this['fetch']=_0x1cb5dd,this['path']='api-key';}['create'](_0xdb761d,_0x2fbc4e,_0x1398af){return __awaiter$5(this,void 0,void 0,function*(){const _0x215ede={'account_name':_0xdb761d,'api_key_name':_0x2fbc4e};try{const _0x13d79b=yield this['fetch']['post'](this['path'],_0x1398af,_0x215ede);if(_0x13d79b['status']>0xc7&&_0x13d79b['status']<0x12c){const _0x27d786=yield _0x13d79b['json']();return new SuccessfulApiKeyResponse(_0x27d786);}const _0x5440b3=yield _0x13d79b['json']();return new FailedApiKeyResponse(_0x5440b3);}catch(_0x447d6b){if(_0x447d6b instanceof Error)return new FailedApiKeyResponse({'detail':_0x447d6b['message'],'title':_0x447d6b['name'],'status':0x1f4,'instance':'','type':''});throw _0x447d6b;}});}['view'](_0x520f58,_0x10c012,_0x5437f0){return __awaiter$5(this,void 0,void 0,function*(){const _0x3fe2f3=this['path']+'/'+_0x520f58+'/'+_0x10c012;try{const _0x48fb3a=yield this['fetch']['get'](_0x3fe2f3,_0x5437f0);if(_0x48fb3a['status']>0xc7&&_0x48fb3a['status']<0x12c){const _0x1f8b03=yield _0x48fb3a['json']();return new SuccessfulApiKeyValueResponse(_0x1f8b03);}const _0x2f1859=yield _0x48fb3a['json']();return new FailedApiKeyValueResponse(_0x2f1859);}catch(_0x2ff6cd){if(_0x2ff6cd instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x2ff6cd['message'],'title':_0x2ff6cd['name'],'status':0x1f4,'instance':'','type':''});throw _0x2ff6cd;}});}['delete'](_0x4189aa,_0x3bb88e,_0x3d960c){return __awaiter$5(this,void 0,void 0,function*(){const _0x5d1d28=this['path']+'/'+_0x4189aa+'/'+_0x3bb88e;try{const _0x597494=yield this['fetch']['delete'](_0x5d1d28,_0x3d960c);if(_0x597494['status']>0xc7&&_0x597494['status']<0x12c)return new SuccessfulResponse({});const _0x1e8d50=yield _0x597494['json']();return new FailedResponse(_0x1e8d50);}catch(_0x4ef446){if(_0x4ef446 instanceof Error)return new FailedResponse({'detail':_0x4ef446['message'],'title':_0x4ef446['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ef446;}});}}
6
-
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2f5e34,_0x581cc1,_0x34552c,_0x4c938a){function _0x113c9a(_0x1bb359){return _0x1bb359 instanceof _0x34552c?_0x1bb359:new _0x34552c(function(_0x1b6441){_0x1b6441(_0x1bb359);});}return new(_0x34552c||(_0x34552c=Promise))(function(_0x5153af,_0x34db6b){function _0x20ccb4(_0x338e71){try{_0x4a222d(_0x4c938a['next'](_0x338e71));}catch(_0x49e84f){_0x34db6b(_0x49e84f);}}function _0x72ef64(_0x279e78){try{_0x4a222d(_0x4c938a['throw'](_0x279e78));}catch(_0x84e3b6){_0x34db6b(_0x84e3b6);}}function _0x4a222d(_0x502f1a){_0x502f1a['done']?_0x5153af(_0x502f1a['value']):_0x113c9a(_0x502f1a['value'])['then'](_0x20ccb4,_0x72ef64);}_0x4a222d((_0x4c938a=_0x4c938a['apply'](_0x2f5e34,_0x581cc1||[]))['next']());});};class ListService{constructor(_0x2f3b7b){this['fetch']=_0x2f3b7b;}['create'](_0x3e7b2e,_0x5a27d1,_0x35837e,_0x4683e3){return __awaiter$4(this,void 0,void 0,function*(){const _0x229830='List',_0x172450={'account_name':_0x3e7b2e,'list_name':_0x5a27d1,'search_service_name':_0x35837e};try{const _0x3b44f2=yield this['fetch']['post'](_0x229830,_0x4683e3,_0x172450);if(_0x3b44f2['status']>0xc7&&_0x3b44f2['status']<0x12c){const _0x3af031=yield _0x3b44f2['json']();return new SuccessfulListIdentityResponse(_0x3af031);}const _0x4f7df8=yield _0x3b44f2['json']();return new FailedListIdentityResponse(_0x4f7df8);}catch(_0x24ceb8){if(_0x24ceb8 instanceof Error)return new FailedListIdentityResponse({'detail':_0x24ceb8['message'],'title':_0x24ceb8['name'],'status':0x1f4,'instance':'','type':''});throw _0x24ceb8;}});}['delete'](_0x395ab0,_0xea24b6,_0x256039){return __awaiter$4(this,void 0,void 0,function*(){const _0xabc1c3='List/'+_0x395ab0+'/'+_0xea24b6,_0x243c52=yield this['fetch']['delete'](_0xabc1c3,_0x256039);try{if(_0x243c52['status']>0xc7&&_0x243c52['status']<0x12c)return new SuccessfulResponse({});const _0x5c0a3f=yield _0x243c52['json']();return new FailedResponse(_0x5c0a3f);}catch(_0x45e0b9){if(_0x45e0b9 instanceof Error)return new FailedResponse({'detail':_0x45e0b9['message'],'title':_0x45e0b9['name'],'status':0x1f4,'instance':'','type':''});throw _0x45e0b9;}});}['get'](_0x44b386,_0x54172d,_0x2ea881){return __awaiter$4(this,void 0,void 0,function*(){const _0x18a278='List/'+_0x44b386+'/'+_0x54172d;try{const _0x3782ba=yield this['fetch']['get'](_0x18a278,_0x2ea881);if(_0x3782ba['status']>0xc7&&_0x3782ba['status']<0x12c){const _0x9c0e42=yield _0x3782ba['json']();return new SuccessfulListResponse(_0x9c0e42);}const _0x510336=yield _0x3782ba['json']();return new FailedListResponse(_0x510336);}catch(_0x44a6dd){if(_0x44a6dd instanceof Error)return new FailedListResponse({'detail':_0x44a6dd['message'],'title':_0x44a6dd['name'],'status':0x1f4,'instance':'','type':''});throw _0x44a6dd;}});}}
8
-
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x17e4e4,_0x39c415,_0x1a3867,_0x36aa2d){function _0x1c7c49(_0x5534af){return _0x5534af instanceof _0x1a3867?_0x5534af:new _0x1a3867(function(_0x2ba0c2){_0x2ba0c2(_0x5534af);});}return new(_0x1a3867||(_0x1a3867=Promise))(function(_0x33a6dd,_0x23009d){function _0x10993b(_0x77351e){try{_0x589d3b(_0x36aa2d['next'](_0x77351e));}catch(_0x465e9f){_0x23009d(_0x465e9f);}}function _0x3c5f06(_0x14726d){try{_0x589d3b(_0x36aa2d['throw'](_0x14726d));}catch(_0x3a9f13){_0x23009d(_0x3a9f13);}}function _0x589d3b(_0x48d92f){_0x48d92f['done']?_0x33a6dd(_0x48d92f['value']):_0x1c7c49(_0x48d92f['value'])['then'](_0x10993b,_0x3c5f06);}_0x589d3b((_0x36aa2d=_0x36aa2d['apply'](_0x17e4e4,_0x39c415||[]))['next']());});};class Fetch{constructor(_0x1d5803){this['baseUri']=_0x1d5803,this['getUrl']=_0xf2b91b=>{return _0xf2b91b['startsWith']('/')&&(_0xf2b91b=_0xf2b91b['replace']('/','')),''+this['baseUri']+_0xf2b91b;},!_0x1d5803['endsWith']('/')&&(_0x1d5803=_0x1d5803+'/');}['get'](_0x367f0b,_0x2af871){return __awaiter$3(this,void 0,void 0,function*(){const _0x8c6c4c=this['getUrl'](_0x367f0b);return yield fetch(_0x8c6c4c,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2af871}});});}['post'](_0x2da4ee,_0x16514e,_0x51e957){return __awaiter$3(this,void 0,void 0,function*(){const _0x478cf8=this['getUrl'](_0x2da4ee);return yield fetch(_0x478cf8,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x16514e},'body':_0x51e957?JSON['stringify'](_0x51e957):null});});}['PostNoAuth'](_0x16d56e,_0xd6fb){return __awaiter$3(this,void 0,void 0,function*(){const _0x4d9622=this['getUrl'](_0x16d56e);return yield fetch(_0x4d9622,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0xd6fb?JSON['stringify'](_0xd6fb):null});});}['put'](_0x14ee64,_0x857913,_0x5500d0){return __awaiter$3(this,void 0,void 0,function*(){const _0x53058a=this['getUrl'](_0x14ee64);return yield fetch(_0x53058a,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x857913},'body':_0x5500d0?JSON['stringify'](_0x5500d0):null});});}['delete'](_0x1ad8f2,_0x29c906){return __awaiter$3(this,void 0,void 0,function*(){const _0x302b02=this['getUrl'](_0x1ad8f2);return yield fetch(_0x302b02,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x29c906}});});}}
10
-
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x3785aa,_0x337b50,_0x1c53fa,_0x1e2a91){function _0x234aad(_0x35722c){return _0x35722c instanceof _0x1c53fa?_0x35722c:new _0x1c53fa(function(_0x478076){_0x478076(_0x35722c);});}return new(_0x1c53fa||(_0x1c53fa=Promise))(function(_0x5e2dad,_0x300dab){function _0x19ecca(_0x3fbb38){try{_0x5a03f1(_0x1e2a91['next'](_0x3fbb38));}catch(_0x41d917){_0x300dab(_0x41d917);}}function _0x8e163c(_0x116c34){try{_0x5a03f1(_0x1e2a91['throw'](_0x116c34));}catch(_0x2eb059){_0x300dab(_0x2eb059);}}function _0x5a03f1(_0x3efe52){_0x3efe52['done']?_0x5e2dad(_0x3efe52['value']):_0x234aad(_0x3efe52['value'])['then'](_0x19ecca,_0x8e163c);}_0x5a03f1((_0x1e2a91=_0x1e2a91['apply'](_0x3785aa,_0x337b50||[]))['next']());});};class SearchServersService{constructor(_0x352583){this['fetch']=_0x352583,this['path']='search-services';}['create'](_0x4f6add,_0x426164,_0x54047a,_0x5254ba,_0x44470c,_0x459242,_0x18a9e1,_0x19ae76){return __awaiter$2(this,void 0,void 0,function*(){const _0x43f061={'account_name':_0x4f6add,'search_service_name':_0x426164,'endpoint':_0x54047a,'key':_0x5254ba,'country':_0x44470c,'provider':_0x459242,'index_name':_0x18a9e1};try{const _0xae59ed=yield this['fetch']['post'](this['path'],_0x19ae76,_0x43f061);if(_0xae59ed['status']>0xc7&&_0xae59ed['status']<0x12c){const _0x2965fb=yield _0xae59ed['json']();return new SuccessfulSearchServiceResponse(_0x2965fb);}const _0x2e8649=yield _0xae59ed['json']();return new FailedSearchServiceResponse(_0x2e8649);}catch(_0x23f2a7){if(_0x23f2a7 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x23f2a7['message'],'title':_0x23f2a7['name'],'status':0x1f4,'instance':'','type':''});throw _0x23f2a7;}});}['delete'](_0x1578d9,_0x344f09,_0x2c444d){return __awaiter$2(this,void 0,void 0,function*(){const _0x24ab9e=this['path']+'/'+_0x1578d9+'/'+_0x344f09;try{const _0x5c4f84=yield this['fetch']['delete'](_0x24ab9e,_0x2c444d);if(_0x5c4f84['status']>0xc7&&_0x5c4f84['status']<0x12c)return new SuccessfulResponse({});const _0x476cd7=yield _0x5c4f84['json']();return new FailedResponse(_0x476cd7);}catch(_0x4b5563){if(_0x4b5563 instanceof Error)return new FailedResponse({'detail':_0x4b5563['message'],'title':_0x4b5563['name'],'status':0x1f4,'instance':'','type':''});throw _0x4b5563;}});}['view'](_0x31cedd,_0x5a5698,_0x4d15fc){return __awaiter$2(this,void 0,void 0,function*(){const _0x500356=this['path']+'/'+_0x31cedd+'/'+_0x5a5698;try{const _0xba706b=yield this['fetch']['get'](_0x500356,_0x4d15fc);if(_0xba706b['status']>0xc7&&_0xba706b['status']<0x12c){const _0x3ee82b=yield _0xba706b['json']();return new SuccessfulViewSearchServiceResponse(_0x3ee82b);}const _0x5e08f7=yield _0xba706b['json']();return new FailedViewSearchServiceResponse(_0x5e08f7);}catch(_0x3bffc4){if(_0x3bffc4 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x3bffc4['message'],'title':_0x3bffc4['name'],'status':0x1f4,'instance':'','type':''});throw _0x3bffc4;}});}['edit'](_0x4d04be,_0x38bf79,_0x4ec543,_0x408d08,_0x48edd4,_0x4f025a){return __awaiter$2(this,void 0,void 0,function*(){const _0x3635c3={'account_name':_0x4d04be,'search_service_name':_0x38bf79,'new_search_service_name':_0x4ec543,'key':_0x408d08,'country':_0x48edd4};try{const _0x352b83=yield this['fetch']['put'](this['path'],_0x4f025a,_0x3635c3);if(_0x352b83['status']>0xc7&&_0x352b83['status']<0x12c){const _0x2a4077=yield _0x352b83['json']();return new SuccessfulSearchServiceResponse(_0x2a4077);}const _0x1b240b=yield _0x352b83['json']();return new FailedSearchServiceResponse(_0x1b240b);}catch(_0x319056){if(_0x319056 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x319056['message'],'title':_0x319056['name'],'status':0x1f4,'instance':'','type':''});throw _0x319056;}});}['list'](_0x266f1c,_0x86841d){return __awaiter$2(this,void 0,void 0,function*(){const _0x412ba7=this['path']+'/'+_0x266f1c;try{const _0x5272da=yield this['fetch']['get'](_0x412ba7,_0x86841d);if(_0x5272da['status']>0xc7&&_0x5272da['status']<0x12c){const _0x198717=yield _0x5272da['json']();return new SuccessfulListSearchServiceResponse(_0x198717);}const _0x39e392=yield _0x5272da['json']();return new FailedViewSearchServicesResponse(_0x39e392);}catch(_0x4ab843){if(_0x4ab843 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x4ab843['message'],'title':_0x4ab843['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ab843;}});}}
12
-
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3a9fb6,_0x1f3ece,_0x5e4180,_0x2164c0){function _0x2a8700(_0x2a246f){return _0x2a246f instanceof _0x5e4180?_0x2a246f:new _0x5e4180(function(_0x1cb5a6){_0x1cb5a6(_0x2a246f);});}return new(_0x5e4180||(_0x5e4180=Promise))(function(_0x172739,_0x367793){function _0xf10caa(_0x1b3414){try{_0x1283fe(_0x2164c0['next'](_0x1b3414));}catch(_0x7ff811){_0x367793(_0x7ff811);}}function _0x212b88(_0x1a08af){try{_0x1283fe(_0x2164c0['throw'](_0x1a08af));}catch(_0x3ca00e){_0x367793(_0x3ca00e);}}function _0x1283fe(_0x593697){_0x593697['done']?_0x172739(_0x593697['value']):_0x2a8700(_0x593697['value'])['then'](_0xf10caa,_0x212b88);}_0x1283fe((_0x2164c0=_0x2164c0['apply'](_0x3a9fb6,_0x1f3ece||[]))['next']());});};class FacetService{constructor(_0x36652c){this['fetch']=_0x36652c,this['path']='facet';}['create'](_0x5fa60d,_0x3d36a0,_0x3d14d0,_0xf8422f){return __awaiter$1(this,void 0,void 0,function*(){const _0x56888e={'account_name':_0x5fa60d,'list_name':_0x3d36a0,'facet_name':_0x3d14d0};try{const _0x31cf5c=yield this['fetch']['post'](this['path'],_0xf8422f,_0x56888e);if(_0x31cf5c['status']>0xc7&&_0x31cf5c['status']<0x12c){const _0x2bfa8a=yield _0x31cf5c['json']();return new SuccessfulFacetResponse(_0x2bfa8a);}const _0x36fdd4=yield _0x31cf5c['json']();return new FailedFacetResponse(_0x36fdd4);}catch(_0x12c8d0){if(_0x12c8d0 instanceof Error)return new FailedFacetResponse({'detail':_0x12c8d0['message'],'title':_0x12c8d0['name'],'status':0x1f4,'instance':'','type':''});throw _0x12c8d0;}});}}
14
-
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x59ee61,_0x22a0e3,_0x3fb908,_0x4204e2){function _0x573f84(_0x1e27fb){return _0x1e27fb instanceof _0x3fb908?_0x1e27fb:new _0x3fb908(function(_0x5ebbbd){_0x5ebbbd(_0x1e27fb);});}return new(_0x3fb908||(_0x3fb908=Promise))(function(_0xf69ea5,_0x3f0b2a){function _0x3aa96d(_0x10f1f3){try{_0x409831(_0x4204e2['next'](_0x10f1f3));}catch(_0x13feb5){_0x3f0b2a(_0x13feb5);}}function _0x1fbe2c(_0xe995ee){try{_0x409831(_0x4204e2['throw'](_0xe995ee));}catch(_0x1c7978){_0x3f0b2a(_0x1c7978);}}function _0x409831(_0x1b265e){_0x1b265e['done']?_0xf69ea5(_0x1b265e['value']):_0x573f84(_0x1b265e['value'])['then'](_0x3aa96d,_0x1fbe2c);}_0x409831((_0x4204e2=_0x4204e2['apply'](_0x59ee61,_0x22a0e3||[]))['next']());});};class AdminClient{constructor(_0x33bfb9='https://admin.searchability.dev/'){var _0x3770e5=new Fetch(_0x33bfb9);this['Accounts']=new AccountService(_0x3770e5),this['Lists']=new ListService(_0x3770e5),this['ApiKeys']=new ApiKeyService(_0x3770e5),this['SearchServices']=new SearchServersService(_0x3770e5),this['FacetService']=new FacetService(_0x3770e5);}}class AuthClient{constructor(_0x3460af='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3460af);}['login'](_0xcba197){return __awaiter(this,void 0,void 0,function*(){const _0x4cdf98='login/'+_0xcba197;try{const _0x53d77c=yield yield fetch(_0x4cdf98);if(_0x53d77c['status']>0xc7&&_0x53d77c['status']<0x12c){const _0xd475eb=yield _0x53d77c['json']();return new SuccessfulAuthResponse(_0xd475eb);}const _0x11b00b=yield _0x53d77c['json']();return new FailedAuthResponse(_0x11b00b);}catch(_0x5474d0){if(_0x5474d0 instanceof Error)return new FailedAuthResponse({'detail':_0x5474d0['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5474d0;}});}['refresh'](_0x3a24f9){return __awaiter(this,void 0,void 0,function*(){const _0x32ecf2='refresh',_0x532d96={'refresh_token':_0x3a24f9};try{const _0x4b71ad=yield this['fetch']['PostNoAuth'](_0x32ecf2,_0x532d96);if(_0x4b71ad['status']>0xc7&&_0x4b71ad['status']<0x12c){const _0x14cc9e=yield _0x4b71ad['json']();return new SuccessfulAuthResponse(_0x14cc9e);}const _0x256241=yield _0x4b71ad['json']();return new FailedAuthResponse(_0x256241);}catch(_0x24444f){if(_0x24444f instanceof Error)return new FailedAuthResponse({'detail':_0x24444f['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x24444f;}});}['getTokenStatus'](_0x32eb21){if(Date['now']()<_0x32eb21['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x32eb21['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
16
-
17
- export { AdminClient, AuthClient, TokenStatus, Tokens };