@searchability/admin-client 0.0.126 → 0.0.128

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.
@@ -1,27 +0,0 @@
1
- var TokenStatus;(function(_0x4626cb){_0x4626cb[_0x4626cb['Ok']=0x0]='Ok',_0x4626cb[_0x4626cb['Refresh']=0x1]='Refresh',_0x4626cb[_0x4626cb['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(_0x258b4d){this['isSuccess']=_0x258b4d;}}class SuccessfulFacetValueResponse extends Response{constructor(_0x9509ca){super(!![]),this['facets']=_0x9509ca;}['toSuccess'](){return this['facets'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetValuesResponse extends Response{constructor(_0x3266e0){super(![]),this['problem']=_0x3266e0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulContributorResponse extends Response{constructor(_0x2dfa89){super(!![]),this['contributor']=_0x2dfa89;}['toSuccess'](){return this['contributor'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedContributorResponse extends Response{constructor(_0x3f5458){super(![]),this['problem']=_0x3f5458;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountAndImageResponse extends Response{constructor(_0x23bf2f){super(!![]),this['accountAndImages']=_0x23bf2f;}['toSuccess'](){return this['accountAndImages'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountAndImageResponse extends Response{constructor(_0x5c18c0){super(![]),this['problem']=_0x5c18c0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulResourceResponse extends Response{constructor(_0x3677ff){super(!![]),this['resource']=_0x3677ff;}['toSuccess'](){return this['resource'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResourceResponse extends Response{constructor(_0x150e7b){super(![]),this['problem']=_0x150e7b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulFacetResponse extends Response{constructor(_0x1d67c1){super(!![]),this['facet']=_0x1d67c1;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x563c20){super(![]),this['problem']=_0x563c20;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedSearchableFieldResponse extends Response{constructor(_0x43e07b){super(![]),this['problem']=_0x43e07b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchableFieldResponse extends Response{constructor(_0x5d978c){super(!![]),this['searchable_field']=_0x5d978c;}['toSuccess'](){return this['searchable_field'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountResponse extends Response{constructor(_0x409869){super(!![]),this['account']=_0x409869;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountImageResponse extends Response{constructor(_0x3509e5){super(!![]),this['accountImage']=_0x3509e5;}['toSuccess'](){return this['accountImage'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x1c7564){super(!![]),this['list']=_0x1c7564;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulGroupResponse extends Response{constructor(_0x4f4e67){super(!![]),this['group']=_0x4f4e67;}['toSuccess'](){return this['group'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedGroupResponse extends Response{constructor(_0x54a5a1){super(![]),this['problem']=_0x54a5a1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListResponse extends Response{constructor(_0x4e5776){super(!![]),this['list']=_0x4e5776;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedListResponse extends Response{constructor(_0x139cc2){super(![]),this['problem']=_0x139cc2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountResponse extends Response{constructor(_0xf9e06e){super(![]),this['problem']=_0xf9e06e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountImageResponse extends Response{constructor(_0x5dc532){super(![]),this['problem']=_0x5dc532;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x28063a){super(![]),this['problem']=_0x28063a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x5bcda0){super(!![]),this['tokens']=_0x5bcda0;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x5341c2){super(![]),this['problem']=_0x5341c2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x41fbe7){super(!![]),this['apiKey']=_0x41fbe7;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x47b3d3){super(![]),this['problem']=_0x47b3d3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x46c1f3){super(!![]),this['searchService']=_0x46c1f3;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x17f997){super(![]),this['problem']=_0x17f997;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x21db0f){super(!![]),this['searchService']=_0x21db0f;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulSearchResultResponse extends Response{constructor(_0x39ba57){super(!![]),this['searchResult']=_0x39ba57;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x56885f){super(![]),this['problem']=_0x56885f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchResultResponse extends Response{constructor(_0x380584){super(!![]),this['searchResults']=_0x380584;}['toSuccess'](){return this['searchResults'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchResultResponse extends Response{constructor(_0x50c4a3){super(![]),this['problem']=_0x50c4a3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x1ef09b){super(!![]),this['searchServices']=_0x1ef09b;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x1fb681){super(![]),this['problem']=_0x1fb681;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x31bbea){super(![]),this['problem']=_0x31bbea;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x90fad1){super(!![]),this['apiKeyValue']=_0x90fad1;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x28ebf7){super(!![]),this['obj']=_0x28ebf7;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x4b544b){super(![]),this['problem']=_0x4b544b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x117d61){super(![]),this['problem']=_0x117d61;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$b=undefined&&undefined['__awaiter']||function(_0x637e07,_0x15d61f,_0x15dbae,_0x3b247b){function _0x4c4f3d(_0x3a1525){return _0x3a1525 instanceof _0x15dbae?_0x3a1525:new _0x15dbae(function(_0xff2996){_0xff2996(_0x3a1525);});}return new(_0x15dbae||(_0x15dbae=Promise))(function(_0x354e80,_0x423f81){function _0x9eed1d(_0x52f5ff){try{_0x2ba241(_0x3b247b['next'](_0x52f5ff));}catch(_0xead6c0){_0x423f81(_0xead6c0);}}function _0xfb06ca(_0x24272d){try{_0x2ba241(_0x3b247b['throw'](_0x24272d));}catch(_0x4688b2){_0x423f81(_0x4688b2);}}function _0x2ba241(_0x773fd8){_0x773fd8['done']?_0x354e80(_0x773fd8['value']):_0x4c4f3d(_0x773fd8['value'])['then'](_0x9eed1d,_0xfb06ca);}_0x2ba241((_0x3b247b=_0x3b247b['apply'](_0x637e07,_0x15d61f||[]))['next']());});};class AccountService{constructor(_0x59041c){this['fetch']=_0x59041c;}['get'](_0xc22de9,_0x2e1227){return __awaiter$b(this,void 0,void 0,function*(){const _0x12e62d='Account/'+_0xc22de9+'/',_0x419e73=yield this['fetch']['get'](_0x12e62d,_0x2e1227);try{if(_0x419e73['status']>0xc7&&_0x419e73['status']<0x12c){const _0x1f330f=yield _0x419e73['json']();return new SuccessfulAccountResponse(_0x1f330f);}const _0x34133a=yield _0x419e73['json']();return new FailedAccountResponse(_0x34133a);}catch(_0x3d03ab){if(_0x3d03ab instanceof Error)return new FailedAccountResponse({'detail':_0x3d03ab['message'],'title':_0x3d03ab['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d03ab;}});}['getImage'](_0x237c7e,_0x472b06){return __awaiter$b(this,void 0,void 0,function*(){const _0x389072='account/image/'+_0x237c7e+'/',_0xfabfe=yield this['fetch']['get'](_0x389072,_0x472b06);try{if(_0xfabfe['status']>0xc7&&_0xfabfe['status']<0x12c){const _0x368453=yield _0xfabfe['json']();return new SuccessfulAccountImageResponse(_0x368453);}const _0x5d7af8=yield _0xfabfe['json']();return new FailedAccountImageResponse(_0x5d7af8);}catch(_0xf36114){if(_0xf36114 instanceof Error)return new FailedAccountImageResponse({'detail':_0xf36114['message'],'title':_0xf36114['name'],'status':0x1f4,'instance':'','type':''});throw _0xf36114;}});}}
4
-
5
- var __awaiter$a=undefined&&undefined['__awaiter']||function(_0x3c2c17,_0x5d7c3a,_0x4071c8,_0x96f9c5){function _0x192827(_0x4fdf71){return _0x4fdf71 instanceof _0x4071c8?_0x4fdf71:new _0x4071c8(function(_0x47a8bb){_0x47a8bb(_0x4fdf71);});}return new(_0x4071c8||(_0x4071c8=Promise))(function(_0x4ac3b7,_0x286a43){function _0x43662e(_0x54ad67){try{_0x25eabc(_0x96f9c5['next'](_0x54ad67));}catch(_0x25adc5){_0x286a43(_0x25adc5);}}function _0x47ce99(_0x37c5c8){try{_0x25eabc(_0x96f9c5['throw'](_0x37c5c8));}catch(_0x424a2a){_0x286a43(_0x424a2a);}}function _0x25eabc(_0x31ad98){_0x31ad98['done']?_0x4ac3b7(_0x31ad98['value']):_0x192827(_0x31ad98['value'])['then'](_0x43662e,_0x47ce99);}_0x25eabc((_0x96f9c5=_0x96f9c5['apply'](_0x3c2c17,_0x5d7c3a||[]))['next']());});};class ApiKeyService{constructor(_0x2da0b1){this['fetch']=_0x2da0b1,this['path']='api-key';}['create'](_0x5c182b,_0x38137a,_0x3303f8){return __awaiter$a(this,void 0,void 0,function*(){const _0x37cb10={'account_name':_0x5c182b,'api_key_name':_0x38137a};try{const _0x3d96f6=yield this['fetch']['post'](this['path'],_0x3303f8,_0x37cb10);if(_0x3d96f6['status']>0xc7&&_0x3d96f6['status']<0x12c){const _0x4b218c=yield _0x3d96f6['json']();return new SuccessfulApiKeyResponse(_0x4b218c);}const _0x15af3f=yield _0x3d96f6['json']();return new FailedApiKeyResponse(_0x15af3f);}catch(_0x1456c4){if(_0x1456c4 instanceof Error)return new FailedApiKeyResponse({'detail':_0x1456c4['message'],'title':_0x1456c4['name'],'status':0x1f4,'instance':'','type':''});throw _0x1456c4;}});}['view'](_0x487b2a,_0x139a2e,_0x368f5c){return __awaiter$a(this,void 0,void 0,function*(){const _0x7d5066=this['path']+'/'+_0x487b2a+'/'+_0x139a2e;try{const _0x1c313b=yield this['fetch']['get'](_0x7d5066,_0x368f5c);if(_0x1c313b['status']>0xc7&&_0x1c313b['status']<0x12c){const _0x9276e6=yield _0x1c313b['json']();return new SuccessfulApiKeyValueResponse(_0x9276e6);}const _0x3332d6=yield _0x1c313b['json']();return new FailedApiKeyValueResponse(_0x3332d6);}catch(_0x4b8e01){if(_0x4b8e01 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x4b8e01['message'],'title':_0x4b8e01['name'],'status':0x1f4,'instance':'','type':''});throw _0x4b8e01;}});}['delete'](_0x19f353,_0x17e102,_0xeabd05){return __awaiter$a(this,void 0,void 0,function*(){const _0x4200af=this['path']+'/'+_0x19f353+'/'+_0x17e102;try{const _0xf33728=yield this['fetch']['delete'](_0x4200af,_0xeabd05);if(_0xf33728['status']>0xc7&&_0xf33728['status']<0x12c)return new SuccessfulResponse({});const _0x3ba93f=yield _0xf33728['json']();return new FailedResponse(_0x3ba93f);}catch(_0x42e91a){if(_0x42e91a instanceof Error)return new FailedResponse({'detail':_0x42e91a['message'],'title':_0x42e91a['name'],'status':0x1f4,'instance':'','type':''});throw _0x42e91a;}});}}
6
-
7
- var __awaiter$9=undefined&&undefined['__awaiter']||function(_0x55fd12,_0x1a7740,_0x4a42fa,_0x3be295){function _0x1a4bb8(_0x5f1693){return _0x5f1693 instanceof _0x4a42fa?_0x5f1693:new _0x4a42fa(function(_0x16fd8f){_0x16fd8f(_0x5f1693);});}return new(_0x4a42fa||(_0x4a42fa=Promise))(function(_0x3be7c8,_0x38aa76){function _0xd4e34c(_0x26bf19){try{_0xf9b9f7(_0x3be295['next'](_0x26bf19));}catch(_0x5dd504){_0x38aa76(_0x5dd504);}}function _0xb3863f(_0x569f3e){try{_0xf9b9f7(_0x3be295['throw'](_0x569f3e));}catch(_0x5dc391){_0x38aa76(_0x5dc391);}}function _0xf9b9f7(_0x1ba8e7){_0x1ba8e7['done']?_0x3be7c8(_0x1ba8e7['value']):_0x1a4bb8(_0x1ba8e7['value'])['then'](_0xd4e34c,_0xb3863f);}_0xf9b9f7((_0x3be295=_0x3be295['apply'](_0x55fd12,_0x1a7740||[]))['next']());});};class ListService{constructor(_0x3bd426){this['fetch']=_0x3bd426,this['path']='list';}['create'](_0x43cfa3,_0x37436c,_0x24740d,_0x5d1c85){return __awaiter$9(this,void 0,void 0,function*(){const _0x363344={'account_name':_0x43cfa3,'list_name':_0x37436c,'search_service_name':_0x24740d};try{const _0x48230d=yield this['fetch']['post'](this['path'],_0x5d1c85,_0x363344);if(_0x48230d['status']>0xc7&&_0x48230d['status']<0x12c){const _0x2b29a0=yield _0x48230d['json']();return new SuccessfulListIdentityResponse(_0x2b29a0);}const _0x31a364=yield _0x48230d['json']();return new FailedListIdentityResponse(_0x31a364);}catch(_0x55a88a){if(_0x55a88a instanceof Error)return new FailedListIdentityResponse({'detail':_0x55a88a['message'],'title':_0x55a88a['name'],'status':0x1f4,'instance':'','type':''});throw _0x55a88a;}});}['delete'](_0x339ba0,_0x384782,_0x20592f){return __awaiter$9(this,void 0,void 0,function*(){const _0x2e40e3=this['path']+'/'+_0x339ba0+'/'+_0x384782,_0x515676=yield this['fetch']['delete'](_0x2e40e3,_0x20592f);try{if(_0x515676['status']>0xc7&&_0x515676['status']<0x12c)return new SuccessfulResponse({});const _0x15a9ee=yield _0x515676['json']();return new FailedResponse(_0x15a9ee);}catch(_0x2e6635){if(_0x2e6635 instanceof Error)return new FailedResponse({'detail':_0x2e6635['message'],'title':_0x2e6635['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e6635;}});}['get'](_0x328d9b,_0x3dba52,_0x2023b5){return __awaiter$9(this,void 0,void 0,function*(){const _0x2b3f83=this['path']+'/'+_0x328d9b+'/'+_0x3dba52;try{const _0x5af168=yield this['fetch']['get'](_0x2b3f83,_0x2023b5);if(_0x5af168['status']>0xc7&&_0x5af168['status']<0x12c){const _0x555211=yield _0x5af168['json']();return new SuccessfulListResponse(_0x555211);}const _0x37dfe1=yield _0x5af168['json']();return new FailedListResponse(_0x37dfe1);}catch(_0x2b0cf0){if(_0x2b0cf0 instanceof Error)return new FailedListResponse({'detail':_0x2b0cf0['message'],'title':_0x2b0cf0['name'],'status':0x1f4,'instance':'','type':''});throw _0x2b0cf0;}});}['editSettings'](_0x1c2f2f,_0x55f3f2,_0x46b62a,_0x4a43d9){return __awaiter$9(this,void 0,void 0,function*(){const _0x4d34b6=this['path']+'/settings/'+_0x1c2f2f+'/'+_0x55f3f2,_0x2eb8ec=yield this['fetch']['put'](_0x4d34b6,_0x46b62a,_0x4a43d9);try{if(_0x2eb8ec['status']>0xc7&&_0x2eb8ec['status']<0x12c){const _0xf2fc59=yield _0x2eb8ec['json']();return new SuccessfulListResponse(_0xf2fc59);}const _0x1e2df2=yield _0x2eb8ec['json']();return new FailedListResponse(_0x1e2df2);}catch(_0x417a4a){if(_0x417a4a instanceof Error)return new FailedListResponse({'detail':_0x417a4a['message'],'title':_0x417a4a['name'],'status':0x1f4,'instance':'','type':''});throw _0x417a4a;}});}['editCoordinates'](_0x2f5687,_0x38f434,_0x59fe8f,_0x5967f2){return __awaiter$9(this,void 0,void 0,function*(){const _0x4957fc=this['path']+'/coordinates/'+_0x2f5687+'/'+_0x38f434,_0x279fd0=yield this['fetch']['put'](_0x4957fc,_0x5967f2,{'enable_coordinates':_0x59fe8f});try{if(_0x279fd0['status']>0xc7&&_0x279fd0['status']<0x12c){const _0x277e1d=yield _0x279fd0['json']();return new SuccessfulListResponse(_0x277e1d);}const _0x59f962=yield _0x279fd0['json']();return new FailedListResponse(_0x59f962);}catch(_0xbdd68b){if(_0xbdd68b instanceof Error)return new FailedListResponse({'detail':_0xbdd68b['message'],'title':_0xbdd68b['name'],'status':0x1f4,'instance':'','type':''});throw _0xbdd68b;}});}['transfer'](_0x282aec,_0x2485dc,_0x4cbf6e,_0x283dd9){return __awaiter$9(this,void 0,void 0,function*(){const _0x332a0a={'new_search_service_name':_0x4cbf6e};try{const _0x4b2556=yield this['fetch']['put'](this['path']+'/transfer/'+_0x282aec+'/'+_0x2485dc,_0x283dd9,_0x332a0a);if(_0x4b2556['status']>0xc7&&_0x4b2556['status']<0x12c){const _0xc9e454=yield _0x4b2556['json']();return new SuccessfulListResponse(_0xc9e454);}const _0x5eae81=yield _0x4b2556['json']();return new FailedListResponse(_0x5eae81);}catch(_0x1fab68){if(_0x1fab68 instanceof Error)return new FailedListResponse({'detail':_0x1fab68['message'],'title':_0x1fab68['name'],'status':0x1f4,'instance':'','type':''});throw _0x1fab68;}});}}
8
-
9
- var __awaiter$8=undefined&&undefined['__awaiter']||function(_0x3fd1f3,_0x203bbb,_0x3dd683,_0x393cc9){function _0xc30958(_0x3df38f){return _0x3df38f instanceof _0x3dd683?_0x3df38f:new _0x3dd683(function(_0x23f6aa){_0x23f6aa(_0x3df38f);});}return new(_0x3dd683||(_0x3dd683=Promise))(function(_0x3c9add,_0x20184c){function _0x5db374(_0x21fc0c){try{_0x1c2de4(_0x393cc9['next'](_0x21fc0c));}catch(_0x11e709){_0x20184c(_0x11e709);}}function _0x30c59a(_0x1a9619){try{_0x1c2de4(_0x393cc9['throw'](_0x1a9619));}catch(_0x4c79ed){_0x20184c(_0x4c79ed);}}function _0x1c2de4(_0x490097){_0x490097['done']?_0x3c9add(_0x490097['value']):_0xc30958(_0x490097['value'])['then'](_0x5db374,_0x30c59a);}_0x1c2de4((_0x393cc9=_0x393cc9['apply'](_0x3fd1f3,_0x203bbb||[]))['next']());});};class Fetch{constructor(_0x4f0470){this['baseUri']=_0x4f0470,this['getUrl']=_0x3fda9a=>{return _0x3fda9a['startsWith']('/')&&(_0x3fda9a=_0x3fda9a['replace']('/','')),''+this['baseUri']+_0x3fda9a;},!_0x4f0470['endsWith']('/')&&(_0x4f0470=_0x4f0470+'/');}['get'](_0x80e5d7,_0x3f5b44){return __awaiter$8(this,void 0,void 0,function*(){const _0x500f16=this['getUrl'](_0x80e5d7);return yield fetch(_0x500f16,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3f5b44}});});}['post'](_0x3c4b32,_0x274446,_0x1354e0){return __awaiter$8(this,void 0,void 0,function*(){const _0x1fd72e=this['getUrl'](_0x3c4b32);return yield fetch(_0x1fd72e,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x274446},'body':_0x1354e0?JSON['stringify'](_0x1354e0):null});});}['upload'](_0x18d69d,_0x574fd9,_0x161bc7){return __awaiter$8(this,void 0,void 0,function*(){const _0x63f07b=this['getUrl'](_0x18d69d);return yield fetch(_0x63f07b,{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x574fd9},'body':_0x161bc7});});}['PostNoAuth'](_0x4ebeb7,_0x44be68){return __awaiter$8(this,void 0,void 0,function*(){const _0x47c1f2=this['getUrl'](_0x4ebeb7);return yield fetch(_0x47c1f2,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x44be68?JSON['stringify'](_0x44be68):null});});}['put'](_0x32f216,_0x34a9a3,_0x37d716){return __awaiter$8(this,void 0,void 0,function*(){const _0x1091d9=this['getUrl'](_0x32f216);return yield fetch(_0x1091d9,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x34a9a3},'body':_0x37d716?JSON['stringify'](_0x37d716):null});});}['delete'](_0x56e01,_0x2dcc1c){return __awaiter$8(this,void 0,void 0,function*(){const _0x14b8c5=this['getUrl'](_0x56e01);return yield fetch(_0x14b8c5,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2dcc1c}});});}}
10
-
11
- var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x2c43b8,_0x7959ee,_0x782406,_0x49ef8a){function _0x409949(_0x32113c){return _0x32113c instanceof _0x782406?_0x32113c:new _0x782406(function(_0x4628b0){_0x4628b0(_0x32113c);});}return new(_0x782406||(_0x782406=Promise))(function(_0x34482e,_0x47e753){function _0x285184(_0x142dce){try{_0x22e25d(_0x49ef8a['next'](_0x142dce));}catch(_0xcdc522){_0x47e753(_0xcdc522);}}function _0x5a1c6c(_0x4f0508){try{_0x22e25d(_0x49ef8a['throw'](_0x4f0508));}catch(_0x266c2b){_0x47e753(_0x266c2b);}}function _0x22e25d(_0x1a55ba){_0x1a55ba['done']?_0x34482e(_0x1a55ba['value']):_0x409949(_0x1a55ba['value'])['then'](_0x285184,_0x5a1c6c);}_0x22e25d((_0x49ef8a=_0x49ef8a['apply'](_0x2c43b8,_0x7959ee||[]))['next']());});};class SearchServersService{constructor(_0x58c3ca){this['fetch']=_0x58c3ca,this['path']='search-service';}['create'](_0x575145,_0x508f53,_0x14925d,_0x216b87,_0x5303ca,_0x4cea91,_0x26ceb7,_0x1306d5){return __awaiter$7(this,void 0,void 0,function*(){const _0x260875={'account_name':_0x575145,'search_service_name':_0x508f53,'endpoint':_0x14925d,'key':_0x216b87,'country':_0x5303ca,'provider':_0x4cea91,'index_name':_0x26ceb7};try{const _0x437bbb=yield this['fetch']['post'](this['path'],_0x1306d5,_0x260875);if(_0x437bbb['status']>0xc7&&_0x437bbb['status']<0x12c){const _0xf69da6=yield _0x437bbb['json']();return new SuccessfulSearchServiceResponse(_0xf69da6);}const _0x405a50=yield _0x437bbb['json']();return new FailedSearchServiceResponse(_0x405a50);}catch(_0x39cbcc){if(_0x39cbcc instanceof Error)return new FailedSearchServiceResponse({'detail':_0x39cbcc['message'],'title':_0x39cbcc['name'],'status':0x1f4,'instance':'','type':''});throw _0x39cbcc;}});}['delete'](_0x5da4a0,_0x146c55,_0x4bdc5c){return __awaiter$7(this,void 0,void 0,function*(){const _0x3ef4b2=this['path']+'/'+_0x5da4a0+'/'+_0x146c55;try{const _0x2e26d8=yield this['fetch']['delete'](_0x3ef4b2,_0x4bdc5c);if(_0x2e26d8['status']>0xc7&&_0x2e26d8['status']<0x12c)return new SuccessfulResponse({});const _0x425414=yield _0x2e26d8['json']();return new FailedResponse(_0x425414);}catch(_0x51607a){if(_0x51607a instanceof Error)return new FailedResponse({'detail':_0x51607a['message'],'title':_0x51607a['name'],'status':0x1f4,'instance':'','type':''});throw _0x51607a;}});}['view'](_0x5b85a2,_0x183f0a,_0x4e6835){return __awaiter$7(this,void 0,void 0,function*(){const _0xb1a43b=this['path']+'/'+_0x5b85a2+'/'+_0x183f0a;try{const _0x10b81d=yield this['fetch']['get'](_0xb1a43b,_0x4e6835);if(_0x10b81d['status']>0xc7&&_0x10b81d['status']<0x12c){const _0x360f42=yield _0x10b81d['json']();return new SuccessfulViewSearchServiceResponse(_0x360f42);}const _0x214e12=yield _0x10b81d['json']();return new FailedViewSearchServiceResponse(_0x214e12);}catch(_0x45b1a4){if(_0x45b1a4 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x45b1a4['message'],'title':_0x45b1a4['name'],'status':0x1f4,'instance':'','type':''});throw _0x45b1a4;}});}['edit'](_0x2671db,_0x3b765e,_0x2577a1,_0xb60b1a,_0x3cf73e){return __awaiter$7(this,void 0,void 0,function*(){const _0x3943a0={'account_name':_0x2671db,'search_service_name':_0x3b765e,'key':_0x2577a1,'country':_0xb60b1a};try{const _0x319321=yield this['fetch']['put'](this['path'],_0x3cf73e,_0x3943a0);if(_0x319321['status']>0xc7&&_0x319321['status']<0x12c){const _0xd8438f=yield _0x319321['json']();return new SuccessfulSearchServiceResponse(_0xd8438f);}const _0x187ce8=yield _0x319321['json']();return new FailedSearchServiceResponse(_0x187ce8);}catch(_0x447d41){if(_0x447d41 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x447d41['message'],'title':_0x447d41['name'],'status':0x1f4,'instance':'','type':''});throw _0x447d41;}});}['list'](_0x680350,_0x231e67){return __awaiter$7(this,void 0,void 0,function*(){const _0x5d6554=this['path']+'/'+_0x680350;try{const _0x1b7d58=yield this['fetch']['get'](_0x5d6554,_0x231e67);if(_0x1b7d58['status']>0xc7&&_0x1b7d58['status']<0x12c){const _0x153d6e=yield _0x1b7d58['json']();return new SuccessfulListSearchServiceResponse(_0x153d6e);}const _0x203430=yield _0x1b7d58['json']();return new FailedViewSearchServicesResponse(_0x203430);}catch(_0x302a96){if(_0x302a96 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x302a96['message'],'title':_0x302a96['name'],'status':0x1f4,'instance':'','type':''});throw _0x302a96;}});}}
12
-
13
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x1deca4,_0x52d3bd,_0x5809fa,_0x5199f9){function _0x5b5401(_0x52c641){return _0x52c641 instanceof _0x5809fa?_0x52c641:new _0x5809fa(function(_0x40ac14){_0x40ac14(_0x52c641);});}return new(_0x5809fa||(_0x5809fa=Promise))(function(_0x165a58,_0x26486e){function _0x25eddb(_0x49fd2e){try{_0x10604f(_0x5199f9['next'](_0x49fd2e));}catch(_0x4ebdf9){_0x26486e(_0x4ebdf9);}}function _0x33535f(_0x28a8e8){try{_0x10604f(_0x5199f9['throw'](_0x28a8e8));}catch(_0x4148c5){_0x26486e(_0x4148c5);}}function _0x10604f(_0x13da50){_0x13da50['done']?_0x165a58(_0x13da50['value']):_0x5b5401(_0x13da50['value'])['then'](_0x25eddb,_0x33535f);}_0x10604f((_0x5199f9=_0x5199f9['apply'](_0x1deca4,_0x52d3bd||[]))['next']());});};class FacetService{constructor(_0x3f3b7a){this['fetch']=_0x3f3b7a,this['path']='facet';}['create'](_0x2cbe69,_0x528e85,_0x45de47,_0x1d2239){return __awaiter$6(this,void 0,void 0,function*(){const _0x10c197={'account_name':_0x2cbe69,'list_name':_0x528e85,'facet_name':_0x45de47};try{const _0x536920=yield this['fetch']['post'](this['path'],_0x1d2239,_0x10c197);if(_0x536920['status']>0xc7&&_0x536920['status']<0x12c){const _0x4cb2e2=yield _0x536920['json']();return new SuccessfulFacetResponse(_0x4cb2e2);}const _0x1b9207=yield _0x536920['json']();return new FailedFacetResponse(_0x1b9207);}catch(_0xc8bce6){if(_0xc8bce6 instanceof Error)return new FailedFacetResponse({'detail':_0xc8bce6['message'],'title':_0xc8bce6['name'],'status':0x1f4,'instance':'','type':''});throw _0xc8bce6;}});}['remove'](_0x2fb4ce,_0x3350fa,_0x3c2ef1,_0x25cc22){return __awaiter$6(this,void 0,void 0,function*(){const _0x3cdaf9='Facet/'+_0x2fb4ce+'/'+_0x3350fa+'/'+_0x3c2ef1,_0x215614=yield this['fetch']['delete'](_0x3cdaf9,_0x25cc22);try{if(_0x215614['status']>0xc7&&_0x215614['status']<0x12c)return new SuccessfulResponse({});const _0x2aa55c=yield _0x215614['json']();return new FailedResponse(_0x2aa55c);}catch(_0x3239f2){if(_0x3239f2 instanceof Error)return new FailedResponse({'detail':_0x3239f2['message'],'title':_0x3239f2['name'],'status':0x1f4,'instance':'','type':''});throw _0x3239f2;}});}['rename'](_0x5233cd,_0x391691,_0x507082,_0x263275,_0x424a38){return __awaiter$6(this,void 0,void 0,function*(){let _0x2b124b=this['path']+'/'+_0x5233cd+'/'+_0x391691;const _0x4725cd={'facet_name':_0x507082,'new_facet_name':_0x263275};try{const _0x1aa19f=yield this['fetch']['put'](_0x2b124b,_0x424a38,_0x4725cd);if(_0x1aa19f['status']>0xc7&&_0x1aa19f['status']<0x12c){const _0x2c2fbd=yield _0x1aa19f['json']();return new SuccessfulFacetResponse(_0x2c2fbd);}const _0x5daa39=yield _0x1aa19f['json']();return new FailedFacetResponse(_0x5daa39);}catch(_0x10d56c){if(_0x10d56c instanceof Error)return new FailedFacetResponse({'detail':_0x10d56c['message'],'title':_0x10d56c['name'],'status':0x1f4,'instance':'','type':''});throw _0x10d56c;}});}['list'](_0x1a7853,_0x25e76e,_0xe33a4,_0x1d0284,_0x24b409){return __awaiter$6(this,void 0,void 0,function*(){let _0x46c047=this['path']+'/'+_0x1a7853+'/'+_0x25e76e+'/'+_0xe33a4+'/'+_0x1d0284;try{const _0x4f2c3e=yield this['fetch']['get'](_0x46c047,_0x24b409);if(_0x4f2c3e['status']>0xc7&&_0x4f2c3e['status']<0x12c){const _0x15cfab=yield _0x4f2c3e['json']();return new SuccessfulFacetValueResponse(_0x15cfab);}const _0x447400=yield _0x4f2c3e['json']();return new FailedFacetValuesResponse(_0x447400);}catch(_0x3a218d){if(_0x3a218d instanceof Error)return new FailedFacetValuesResponse({'detail':_0x3a218d['message'],'title':_0x3a218d['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a218d;}});}}
14
-
15
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5e2590,_0x1e7e42,_0x5070a1,_0x206da6){function _0x2d9596(_0x495aec){return _0x495aec instanceof _0x5070a1?_0x495aec:new _0x5070a1(function(_0xe9c87a){_0xe9c87a(_0x495aec);});}return new(_0x5070a1||(_0x5070a1=Promise))(function(_0x447e9d,_0x107742){function _0x8a61b3(_0x410b8a){try{_0x246164(_0x206da6['next'](_0x410b8a));}catch(_0x1341fb){_0x107742(_0x1341fb);}}function _0x8ebfa9(_0x24a30e){try{_0x246164(_0x206da6['throw'](_0x24a30e));}catch(_0xe2deb4){_0x107742(_0xe2deb4);}}function _0x246164(_0x2a0f94){_0x2a0f94['done']?_0x447e9d(_0x2a0f94['value']):_0x2d9596(_0x2a0f94['value'])['then'](_0x8a61b3,_0x8ebfa9);}_0x246164((_0x206da6=_0x206da6['apply'](_0x5e2590,_0x1e7e42||[]))['next']());});};class SearchResultService{constructor(_0x135698){this['fetch']=_0x135698,this['path']='search-result';}['create'](_0x264573,_0x164fd3,_0x33f73a,_0x541635,_0x23d7cc){return __awaiter$5(this,void 0,void 0,function*(){_0x23d7cc=_0x23d7cc!==null&&_0x23d7cc!==void 0?_0x23d7cc:{'latitude':0x0,'longitude':0x0,'facets':[],'searchable_fields':[],'resources':[],'active':!![]};const _0x46e371=Object['assign']({'account_name':_0x264573,'search_result_name':_0x33f73a,'list_name':_0x164fd3},_0x23d7cc);try{const _0x3c3b2a=yield this['fetch']['post'](this['path'],_0x541635,_0x46e371);if(_0x3c3b2a['status']>0xc7&&_0x3c3b2a['status']<0x12c){const _0x5e5d68=yield _0x3c3b2a['json']();return new SuccessfulSearchResultResponse(_0x5e5d68);}const _0x21382c=yield _0x3c3b2a['json']();return new FailedSearchResultResponse(_0x21382c);}catch(_0x58c600){if(_0x58c600 instanceof Error)return new FailedSearchResultResponse({'detail':_0x58c600['message'],'title':_0x58c600['name'],'status':0x1f4,'instance':'','type':''});throw _0x58c600;}});}['list'](_0x44b0df,_0x2da9db,_0x543621,_0x5b62ae){return __awaiter$5(this,void 0,void 0,function*(){let _0x58cd83=this['path']+'/'+_0x44b0df+'/'+_0x2da9db+'?'+this['getQueryStr'](_0x5b62ae);try{const _0x20908b=yield this['fetch']['get'](_0x58cd83,_0x543621);if(_0x20908b['status']>0xc7&&_0x20908b['status']<0x12c){const _0xbac2a1=yield _0x20908b['json']();return new SuccessfulListSearchResultResponse(_0xbac2a1);}const _0x5104a2=yield _0x20908b['json']();return new FailedViewSearchResultResponse(_0x5104a2);}catch(_0x5f393d){if(_0x5f393d instanceof Error)return new FailedViewSearchResultResponse({'detail':_0x5f393d['message'],'title':_0x5f393d['name'],'status':0x1f4,'instance':'','type':''});throw _0x5f393d;}});}['get'](_0x39f779,_0x53218f,_0x32fe94,_0x287a85){return __awaiter$5(this,void 0,void 0,function*(){let _0x569715=this['path']+'/'+_0x39f779+'/'+_0x53218f+'?'+_0x32fe94;try{const _0x575add=yield this['fetch']['get'](_0x569715,_0x287a85);if(_0x575add['status']>0xc7&&_0x575add['status']<0x12c){const _0x58b1eb=yield _0x575add['json']();return new SuccessfulSearchResultResponse(_0x58b1eb);}const _0x2929c3=yield _0x575add['json']();return new FailedSearchResultResponse(_0x2929c3);}catch(_0x117469){if(_0x117469 instanceof Error)return new FailedSearchResultResponse({'detail':_0x117469['message'],'title':_0x117469['name'],'status':0x1f4,'instance':'','type':''});throw _0x117469;}});}['delete'](_0x17224a,_0x39c12b,_0x1fd8b4,_0x3b50f5){return __awaiter$5(this,void 0,void 0,function*(){const _0x20d6aa=this['path']+'/'+_0x17224a+'/'+_0x39c12b+'/'+_0x1fd8b4,_0xcba5ba=yield this['fetch']['delete'](_0x20d6aa,_0x3b50f5);try{if(_0xcba5ba['status']>0xc7&&_0xcba5ba['status']<0x12c)return new SuccessfulResponse({});const _0x219e56=yield _0xcba5ba['json']();return new FailedResponse(_0x219e56);}catch(_0x17a197){if(_0x17a197 instanceof Error)return new FailedResponse({'detail':_0x17a197['message'],'title':_0x17a197['name'],'status':0x1f4,'instance':'','type':''});throw _0x17a197;}});}['upload'](_0x372c86,_0x5aefa7,_0x21b5af,_0x2a8f32){return __awaiter$5(this,void 0,void 0,function*(){const _0x524d51=this['path']+'/'+_0x372c86+'/'+_0x5aefa7+'/upload',_0x174f18=new FormData();_0x174f18['append']('file',_0x21b5af);try{const _0x431224=yield this['fetch']['upload'](_0x524d51,_0x2a8f32,_0x174f18);if(_0x431224['status']>0xc7&&_0x431224['status']<0x12c){const _0x4779b0=yield _0x431224['json']();return new SuccessfulSearchResultResponse(_0x4779b0);}const _0xc2758c=yield _0x431224['json']();return new FailedSearchResultResponse(_0xc2758c);}catch(_0x1169ca){if(_0x1169ca instanceof Error)return new FailedSearchResultResponse({'detail':_0x1169ca['message'],'title':_0x1169ca['name'],'status':0x1f4,'instance':'','type':''});throw _0x1169ca;}});}['edit'](_0x195425,_0x1d0fd0,_0x515e0c,_0x2a515f,_0x3903db){return __awaiter$5(this,void 0,void 0,function*(){_0x3903db=_0x3903db!==null&&_0x3903db!==void 0?_0x3903db:{'active':!![],'latitude':0x0,'longitude':0x0,'facets':[],'searchable_fields':[],'resources':[]};const _0xc7d13a=this['path']+'/'+_0x195425+'/'+_0x1d0fd0+'/'+_0x515e0c;try{const _0x2b728f=yield this['fetch']['put'](_0xc7d13a,_0x2a515f,_0x3903db);if(_0x2b728f['status']>0xc7&&_0x2b728f['status']<0x12c){const _0x1390c3=yield _0x2b728f['json']();return new SuccessfulSearchResultResponse(_0x1390c3);}const _0x5f3d51=yield _0x2b728f['json']();return new FailedSearchResultResponse(_0x5f3d51);}catch(_0x588bd9){if(_0x588bd9 instanceof Error)return new FailedSearchResultResponse({'detail':_0x588bd9['message'],'title':_0x588bd9['name'],'status':0x1f4,'instance':'','type':''});throw _0x588bd9;}});}['getQueryStr'](_0x212e7b){let _0x595dcb='';const _0x2b4d6c=[];return (_0x212e7b===null||_0x212e7b===void 0?void 0:_0x212e7b['size'])&&_0x2b4d6c['push']('size='+_0x212e7b['size']),(_0x212e7b===null||_0x212e7b===void 0?void 0:_0x212e7b['skip'])&&_0x2b4d6c['push']('skip='+_0x212e7b['skip']),(_0x212e7b===null||_0x212e7b===void 0?void 0:_0x212e7b['query'])&&_0x2b4d6c['push']('query='+_0x212e7b['query']),(_0x212e7b===null||_0x212e7b===void 0?void 0:_0x212e7b['filter'])&&_0x2b4d6c['push']('filter='+_0x212e7b['filter']),(_0x212e7b===null||_0x212e7b===void 0?void 0:_0x212e7b['radius'])&&_0x2b4d6c['push']('radius='+_0x212e7b['radius']),_0x212e7b['active']===![]&&_0x2b4d6c['push']('active='+_0x212e7b['active']),_0x2b4d6c['length']>0x0&&_0x2b4d6c['forEach']((_0x29c160,_0x1f3e8a)=>{if(_0x1f3e8a>0x0&&_0x595dcb)_0x595dcb+='&';_0x595dcb+=_0x29c160;}),_0x595dcb;}}
16
-
17
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2ee9d5,_0x54de92,_0x10abb4,_0x1b1c7f){function _0x4f17f8(_0x470915){return _0x470915 instanceof _0x10abb4?_0x470915:new _0x10abb4(function(_0x39df84){_0x39df84(_0x470915);});}return new(_0x10abb4||(_0x10abb4=Promise))(function(_0x339b86,_0x4373be){function _0x2ebe2f(_0x17944b){try{_0x50d28d(_0x1b1c7f['next'](_0x17944b));}catch(_0x40e07a){_0x4373be(_0x40e07a);}}function _0x50c8b7(_0x521ea8){try{_0x50d28d(_0x1b1c7f['throw'](_0x521ea8));}catch(_0x4e75ed){_0x4373be(_0x4e75ed);}}function _0x50d28d(_0x441bee){_0x441bee['done']?_0x339b86(_0x441bee['value']):_0x4f17f8(_0x441bee['value'])['then'](_0x2ebe2f,_0x50c8b7);}_0x50d28d((_0x1b1c7f=_0x1b1c7f['apply'](_0x2ee9d5,_0x54de92||[]))['next']());});};class ContributorService{constructor(_0x360f4c){this['fetch']=_0x360f4c,this['path']='contributor';}['create'](_0x27911b,_0x2202dd,_0x50b55f,_0x11c3c2){return __awaiter$4(this,void 0,void 0,function*(){const _0x564765={'account_name':_0x27911b,'list_name':_0x2202dd,'contributor_name':_0x50b55f};try{const _0x174941=yield this['fetch']['post'](this['path'],_0x11c3c2,_0x564765);if(_0x174941['status']>0xc7&&_0x174941['status']<0x12c){const _0x29a0fb=yield _0x174941['json']();return new SuccessfulContributorResponse(_0x29a0fb);}const _0x2bb1cd=yield _0x174941['json']();return new FailedContributorResponse(_0x2bb1cd);}catch(_0x4ed4cf){if(_0x4ed4cf instanceof Error)return new FailedContributorResponse({'detail':_0x4ed4cf['message'],'title':_0x4ed4cf['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ed4cf;}});}['remove'](_0x2ec624,_0x4eb1b3,_0x44582c,_0x186d36){return __awaiter$4(this,void 0,void 0,function*(){const _0x592a05=this['path']+'/'+_0x2ec624+'/'+_0x4eb1b3+'/'+_0x44582c,_0x2bd966=yield this['fetch']['delete'](_0x592a05,_0x186d36);try{if(_0x2bd966['status']>0xc7&&_0x2bd966['status']<0x12c)return new SuccessfulResponse({});const _0x2bc7d1=yield _0x2bd966['json']();return new FailedResponse(_0x2bc7d1);}catch(_0x2316ff){if(_0x2316ff instanceof Error)return new FailedResponse({'detail':_0x2316ff['message'],'title':_0x2316ff['name'],'status':0x1f4,'instance':'','type':''});throw _0x2316ff;}});}['startsWith'](_0xf1b16,_0x324420){return __awaiter$4(this,void 0,void 0,function*(){const _0x3c4925=this['path']+'/'+_0xf1b16;try{const _0x123577=yield this['fetch']['get'](_0x3c4925,_0x324420);if(_0x123577['status']>0xc7&&_0x123577['status']<0x12c){const _0x1cc526=yield _0x123577['json']();return new SuccessfulAccountAndImageResponse(_0x1cc526);}const _0x1910da=yield _0x123577['json']();return new FailedAccountAndImageResponse(_0x1910da);}catch(_0x356a4){if(_0x356a4 instanceof Error)return new FailedAccountAndImageResponse({'detail':_0x356a4['message'],'title':_0x356a4['name'],'status':0x1f4,'instance':'','type':''});throw _0x356a4;}});}}
18
-
19
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1a890b,_0x42f3f9,_0x193319,_0x1771ba){function _0x412e15(_0x61b4d4){return _0x61b4d4 instanceof _0x193319?_0x61b4d4:new _0x193319(function(_0x3fa3d8){_0x3fa3d8(_0x61b4d4);});}return new(_0x193319||(_0x193319=Promise))(function(_0xb39c1f,_0x10cc34){function _0x508503(_0x161d23){try{_0x30ee84(_0x1771ba['next'](_0x161d23));}catch(_0x398b95){_0x10cc34(_0x398b95);}}function _0x40b70c(_0x5d4e37){try{_0x30ee84(_0x1771ba['throw'](_0x5d4e37));}catch(_0x3c41c1){_0x10cc34(_0x3c41c1);}}function _0x30ee84(_0x26dc34){_0x26dc34['done']?_0xb39c1f(_0x26dc34['value']):_0x412e15(_0x26dc34['value'])['then'](_0x508503,_0x40b70c);}_0x30ee84((_0x1771ba=_0x1771ba['apply'](_0x1a890b,_0x42f3f9||[]))['next']());});};class SearchableFieldService{constructor(_0x325655){this['fetch']=_0x325655,this['path']='searchable-field';}['create'](_0x3b6d37,_0x46be44,_0x53d9b5,_0x8d31a1){return __awaiter$3(this,void 0,void 0,function*(){const _0x2f7504={'account_name':_0x3b6d37,'list_name':_0x46be44,'searchable_field_name':_0x53d9b5};try{const _0x3b3dec=yield this['fetch']['post'](this['path'],_0x8d31a1,_0x2f7504);if(_0x3b3dec['status']>0xc7&&_0x3b3dec['status']<0x12c){const _0x559586=yield _0x3b3dec['json']();return new SuccessfulSearchableFieldResponse(_0x559586);}const _0x1583fb=yield _0x3b3dec['json']();return new FailedSearchableFieldResponse(_0x1583fb);}catch(_0xa819f0){if(_0xa819f0 instanceof Error)return new FailedSearchableFieldResponse({'detail':_0xa819f0['message'],'title':_0xa819f0['name'],'status':0x1f4,'instance':'','type':''});throw _0xa819f0;}});}['remove'](_0x4a4d01,_0x1f3f75,_0x3dfae4,_0x2633d7){return __awaiter$3(this,void 0,void 0,function*(){const _0x202d61=this['path']+'/'+_0x4a4d01+'/'+_0x1f3f75+'/'+_0x3dfae4,_0x439706=yield this['fetch']['delete'](_0x202d61,_0x2633d7);try{if(_0x439706['status']>0xc7&&_0x439706['status']<0x12c)return new SuccessfulResponse({});const _0x292347=yield _0x439706['json']();return new FailedResponse(_0x292347);}catch(_0x256106){if(_0x256106 instanceof Error)return new FailedResponse({'detail':_0x256106['message'],'title':_0x256106['name'],'status':0x1f4,'instance':'','type':''});throw _0x256106;}});}['rename'](_0x47fac6,_0x43c2a8,_0x5d2431,_0x1ef508,_0x18987a){return __awaiter$3(this,void 0,void 0,function*(){let _0x16c82b=this['path']+'/'+_0x47fac6+'/'+_0x43c2a8;const _0x517d81={'searchable_field_name':_0x5d2431,'new_searchable_field_name':_0x1ef508};try{const _0x457297=yield this['fetch']['put'](_0x16c82b,_0x18987a,_0x517d81);if(_0x457297['status']>0xc7&&_0x457297['status']<0x12c){const _0x4c1e40=yield _0x457297['json']();return new SuccessfulSearchableFieldResponse(_0x4c1e40);}const _0x51bda8=yield _0x457297['json']();return new FailedSearchableFieldResponse(_0x51bda8);}catch(_0x56ede6){if(_0x56ede6 instanceof Error)return new FailedSearchableFieldResponse({'detail':_0x56ede6['message'],'title':_0x56ede6['name'],'status':0x1f4,'instance':'','type':''});throw _0x56ede6;}});}}
20
-
21
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x3718e7,_0x1b394c,_0x51ca4a,_0x531985){function _0x1586ca(_0x3ad7be){return _0x3ad7be instanceof _0x51ca4a?_0x3ad7be:new _0x51ca4a(function(_0x3b37c8){_0x3b37c8(_0x3ad7be);});}return new(_0x51ca4a||(_0x51ca4a=Promise))(function(_0x52dc96,_0x6943f5){function _0x2621ba(_0x4d1a8e){try{_0x2ff6e1(_0x531985['next'](_0x4d1a8e));}catch(_0x5da5d6){_0x6943f5(_0x5da5d6);}}function _0x1f4ec0(_0x13e123){try{_0x2ff6e1(_0x531985['throw'](_0x13e123));}catch(_0x47154f){_0x6943f5(_0x47154f);}}function _0x2ff6e1(_0x3a9119){_0x3a9119['done']?_0x52dc96(_0x3a9119['value']):_0x1586ca(_0x3a9119['value'])['then'](_0x2621ba,_0x1f4ec0);}_0x2ff6e1((_0x531985=_0x531985['apply'](_0x3718e7,_0x1b394c||[]))['next']());});};class ResourceService{constructor(_0x461af9){this['fetch']=_0x461af9,this['path']='resource';}['create'](_0x12948f,_0x247398,_0x819288,_0x5a3ad7){return __awaiter$2(this,void 0,void 0,function*(){const _0x5a30f5={'account_name':_0x12948f,'list_name':_0x247398,'resource_name':_0x819288};try{const _0xea3508=yield this['fetch']['post'](this['path'],_0x5a3ad7,_0x5a30f5);if(_0xea3508['status']>0xc7&&_0xea3508['status']<0x12c){const _0x12fba9=yield _0xea3508['json']();return new SuccessfulResourceResponse(_0x12fba9);}const _0x120f47=yield _0xea3508['json']();return new FailedResourceResponse(_0x120f47);}catch(_0xf139d9){if(_0xf139d9 instanceof Error)return new FailedResourceResponse({'detail':_0xf139d9['message'],'title':_0xf139d9['name'],'status':0x1f4,'instance':'','type':''});throw _0xf139d9;}});}['remove'](_0x4f077f,_0x5212f1,_0x493509,_0x47e56a){return __awaiter$2(this,void 0,void 0,function*(){const _0x38d905=this['path']+'/'+_0x4f077f+'/'+_0x5212f1+'/'+_0x493509,_0x26a83f=yield this['fetch']['delete'](_0x38d905,_0x47e56a);try{if(_0x26a83f['status']>0xc7&&_0x26a83f['status']<0x12c)return new SuccessfulResponse({});const _0x399efb=yield _0x26a83f['json']();return new FailedResponse(_0x399efb);}catch(_0x37d175){if(_0x37d175 instanceof Error)return new FailedResponse({'detail':_0x37d175['message'],'title':_0x37d175['name'],'status':0x1f4,'instance':'','type':''});throw _0x37d175;}});}['rename'](_0x3c5dde,_0x4f0876,_0x353281,_0x2b0aa8,_0x3831a0){return __awaiter$2(this,void 0,void 0,function*(){let _0x3b2f6c=this['path']+'/'+_0x3c5dde+'/'+_0x4f0876;const _0x5201a4={'resource_name':_0x353281,'new_resource_name':_0x2b0aa8};try{const _0x1108df=yield this['fetch']['put'](_0x3b2f6c,_0x3831a0,_0x5201a4);if(_0x1108df['status']>0xc7&&_0x1108df['status']<0x12c){const _0x20bf03=yield _0x1108df['json']();return new SuccessfulResourceResponse(_0x20bf03);}const _0x2fe928=yield _0x1108df['json']();return new FailedResourceResponse(_0x2fe928);}catch(_0x1086d8){if(_0x1086d8 instanceof Error)return new FailedResourceResponse({'detail':_0x1086d8['message'],'title':_0x1086d8['name'],'status':0x1f4,'instance':'','type':''});throw _0x1086d8;}});}}
22
-
23
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x428307,_0x2cb821,_0xe250aa,_0x320b87){function _0x52e4d2(_0xc886ba){return _0xc886ba instanceof _0xe250aa?_0xc886ba:new _0xe250aa(function(_0x265ec6){_0x265ec6(_0xc886ba);});}return new(_0xe250aa||(_0xe250aa=Promise))(function(_0x12c8b8,_0x5738b5){function _0x383ac8(_0x317920){try{_0x29fc57(_0x320b87['next'](_0x317920));}catch(_0x4aa977){_0x5738b5(_0x4aa977);}}function _0x552a31(_0xa8d45){try{_0x29fc57(_0x320b87['throw'](_0xa8d45));}catch(_0x4885f5){_0x5738b5(_0x4885f5);}}function _0x29fc57(_0x502678){_0x502678['done']?_0x12c8b8(_0x502678['value']):_0x52e4d2(_0x502678['value'])['then'](_0x383ac8,_0x552a31);}_0x29fc57((_0x320b87=_0x320b87['apply'](_0x428307,_0x2cb821||[]))['next']());});};class GroupService{constructor(_0x43e98d){this['fetch']=_0x43e98d,this['path']='group';}['create'](_0x5b7041,_0x4582d7,_0x4a0174,_0x48604a){return __awaiter$1(this,void 0,void 0,function*(){const _0x548aa9={'account_name':_0x5b7041,'search_service_name':_0x4582d7,'group_name':_0x4a0174};try{const _0x20e7f2=yield this['fetch']['post'](this['path'],_0x48604a,_0x548aa9);if(_0x20e7f2['status']>0xc7&&_0x20e7f2['status']<0x12c){const _0xcb0690=yield _0x20e7f2['json']();return new SuccessfulGroupResponse(_0xcb0690);}const _0x1669c3=yield _0x20e7f2['json']();return new FailedGroupResponse(_0x1669c3);}catch(_0x28de1f){if(_0x28de1f instanceof Error)return new FailedGroupResponse({'detail':_0x28de1f['message'],'title':_0x28de1f['name'],'status':0x1f4,'instance':'','type':''});throw _0x28de1f;}});}['addList'](_0x2aecd9,_0x52c85b,_0x32fc83,_0x461e14,_0x1153c6){return __awaiter$1(this,void 0,void 0,function*(){const _0x4a327d={'account_name':_0x2aecd9,'list_name':_0x32fc83,'group_name':_0x52c85b,'version':_0x461e14};try{const _0x198008=yield this['fetch']['post'](this['path']+'/list',_0x1153c6,_0x4a327d);if(_0x198008['status']>0xc7&&_0x198008['status']<0x12c){const _0x3aceb9=yield _0x198008['json']();return new SuccessfulListIdentityResponse(_0x3aceb9);}const _0x4d3866=yield _0x198008['json']();return new FailedListIdentityResponse(_0x4d3866);}catch(_0x2e7b27){if(_0x2e7b27 instanceof Error)return new FailedListIdentityResponse({'detail':_0x2e7b27['message'],'title':_0x2e7b27['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e7b27;}});}['delete'](_0x2d4b67,_0x358a8d,_0x212130){return __awaiter$1(this,void 0,void 0,function*(){const _0x5c5b64=this['path']+'/'+_0x2d4b67+'/'+_0x358a8d,_0x16245e=yield this['fetch']['delete'](_0x5c5b64,_0x212130);try{if(_0x16245e['status']>0xc7&&_0x16245e['status']<0x12c)return new SuccessfulResponse({});const _0x41c11d=yield _0x16245e['json']();return new FailedResponse(_0x41c11d);}catch(_0x1f6162){if(_0x1f6162 instanceof Error)return new FailedResponse({'detail':_0x1f6162['message'],'title':_0x1f6162['name'],'status':0x1f4,'instance':'','type':''});throw _0x1f6162;}});}}
24
-
25
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x47aa92,_0x2fc98b,_0x6c343b,_0x44ab0e){function _0x167829(_0x2dd085){return _0x2dd085 instanceof _0x6c343b?_0x2dd085:new _0x6c343b(function(_0x2bcd0d){_0x2bcd0d(_0x2dd085);});}return new(_0x6c343b||(_0x6c343b=Promise))(function(_0x4429de,_0x2a665a){function _0x2ecfed(_0xc8c729){try{_0x27c919(_0x44ab0e['next'](_0xc8c729));}catch(_0x672546){_0x2a665a(_0x672546);}}function _0xb1b332(_0x88c6cb){try{_0x27c919(_0x44ab0e['throw'](_0x88c6cb));}catch(_0x9e2873){_0x2a665a(_0x9e2873);}}function _0x27c919(_0x43dacd){_0x43dacd['done']?_0x4429de(_0x43dacd['value']):_0x167829(_0x43dacd['value'])['then'](_0x2ecfed,_0xb1b332);}_0x27c919((_0x44ab0e=_0x44ab0e['apply'](_0x47aa92,_0x2fc98b||[]))['next']());});};class AdminClient{constructor(_0x3557b8='https://admin.searchability.dev/'){var _0x4b5208=new Fetch(_0x3557b8);this['Accounts']=new AccountService(_0x4b5208),this['Lists']=new ListService(_0x4b5208),this['ApiKeys']=new ApiKeyService(_0x4b5208),this['SearchServers']=new SearchServersService(_0x4b5208),this['Facets']=new FacetService(_0x4b5208),this['SearchResults']=new SearchResultService(_0x4b5208),this['Contributors']=new ContributorService(_0x4b5208),this['SearchableFields']=new SearchableFieldService(_0x4b5208),this['Groups']=new GroupService(_0x4b5208),this['Resources']=new ResourceService(_0x4b5208);}}class AuthClient{constructor(_0x2d96e0='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x2d96e0);}['login'](_0x1e2fd6){return __awaiter(this,void 0,void 0,function*(){const _0x1b6664='login/'+_0x1e2fd6;try{const _0x4a922e=yield yield fetch(_0x1b6664);if(_0x4a922e['status']>0xc7&&_0x4a922e['status']<0x12c){const _0x25d06a=yield _0x4a922e['json']();return new SuccessfulAuthResponse(_0x25d06a);}const _0xaa8a15=yield _0x4a922e['json']();return new FailedAuthResponse(_0xaa8a15);}catch(_0x1f111c){if(_0x1f111c instanceof Error)return new FailedAuthResponse({'detail':_0x1f111c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1f111c;}});}['refresh'](_0x2af24c){return __awaiter(this,void 0,void 0,function*(){const _0x5eb6f1='refresh',_0x5c1dad={'refresh_token':_0x2af24c};try{const _0x395b25=yield this['fetch']['PostNoAuth'](_0x5eb6f1,_0x5c1dad);if(_0x395b25['status']>0xc7&&_0x395b25['status']<0x12c){const _0x11e41b=yield _0x395b25['json']();return new SuccessfulAuthResponse(_0x11e41b);}const _0x1afbeb=yield _0x395b25['json']();return new FailedAuthResponse(_0x1afbeb);}catch(_0x10d532){if(_0x10d532 instanceof Error)return new FailedAuthResponse({'detail':_0x10d532['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x10d532;}});}['getTokenStatus'](_0x90cd8d){if(Date['now']()<_0x90cd8d['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x90cd8d['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
26
-
27
- export { AdminClient, AuthClient, TokenStatus, Tokens };