@searchability/admin-client 0.0.106 → 0.0.108

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.106",
3
+ "version": "0.0.108",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -1,27 +0,0 @@
1
- var TokenStatus;(function(_0x4a08fa){_0x4a08fa[_0x4a08fa['Ok']=0x0]='Ok',_0x4a08fa[_0x4a08fa['Refresh']=0x1]='Refresh',_0x4a08fa[_0x4a08fa['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(_0x43f61b){this['isSuccess']=_0x43f61b;}}class SuccessfulFacetValueResponse extends Response{constructor(_0x3bdbbe){super(!![]),this['facets']=_0x3bdbbe;}['toSuccess'](){return this['facets'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetValuesResponse extends Response{constructor(_0x2ef6c3){super(![]),this['problem']=_0x2ef6c3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulContributorResponse extends Response{constructor(_0x515810){super(!![]),this['contributor']=_0x515810;}['toSuccess'](){return this['contributor'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedContributorResponse extends Response{constructor(_0xb2c9bc){super(![]),this['problem']=_0xb2c9bc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountAndImageResponse extends Response{constructor(_0x34158a){super(!![]),this['accountAndImages']=_0x34158a;}['toSuccess'](){return this['accountAndImages'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountAndImageResponse extends Response{constructor(_0x505e02){super(![]),this['problem']=_0x505e02;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulFacetResponse extends Response{constructor(_0x38cf3d){super(!![]),this['facet']=_0x38cf3d;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x14a93a){super(![]),this['problem']=_0x14a93a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedSearchableFieldResponse extends Response{constructor(_0x4f801e){super(![]),this['problem']=_0x4f801e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchableFieldResponse extends Response{constructor(_0x1e5da5){super(!![]),this['searchable_field']=_0x1e5da5;}['toSuccess'](){return this['searchable_field'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountResponse extends Response{constructor(_0x12a6fe){super(!![]),this['account']=_0x12a6fe;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountImageResponse extends Response{constructor(_0x6e6573){super(!![]),this['accountImage']=_0x6e6573;}['toSuccess'](){return this['accountImage'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x1f5f20){super(!![]),this['list']=_0x1f5f20;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulGroupResponse extends Response{constructor(_0x59d590){super(!![]),this['group']=_0x59d590;}['toSuccess'](){return this['group'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedGroupResponse extends Response{constructor(_0x495ccb){super(![]),this['problem']=_0x495ccb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListResponse extends Response{constructor(_0x3d408f){super(!![]),this['list']=_0x3d408f;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedListResponse extends Response{constructor(_0x35015b){super(![]),this['problem']=_0x35015b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSuggesterResponse extends Response{constructor(_0x11e7b8){super(!![]),this['suggester']=_0x11e7b8;}['toSuccess'](){return this['suggester'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSuggesterResponse extends Response{constructor(_0xdd616e){super(![]),this['problem']=_0xdd616e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountResponse extends Response{constructor(_0xa0341e){super(![]),this['problem']=_0xa0341e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountImageResponse extends Response{constructor(_0x5f1da3){super(![]),this['problem']=_0x5f1da3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x24daff){super(![]),this['problem']=_0x24daff;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3e9b8c){super(!![]),this['tokens']=_0x3e9b8c;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x38942f){super(![]),this['problem']=_0x38942f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x26666f){super(!![]),this['apiKey']=_0x26666f;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1cca90){super(![]),this['problem']=_0x1cca90;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x530d83){super(!![]),this['searchService']=_0x530d83;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x452037){super(![]),this['problem']=_0x452037;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x295097){super(!![]),this['searchService']=_0x295097;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x19264f){super(!![]),this['searchResult']=_0x19264f;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x5e4c3a){super(![]),this['problem']=_0x5e4c3a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchResultResponse extends Response{constructor(_0x3d5de7){super(!![]),this['searchResults']=_0x3d5de7;}['toSuccess'](){return this['searchResults'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchResultResponse extends Response{constructor(_0x57914e){super(![]),this['problem']=_0x57914e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x530453){super(!![]),this['searchServices']=_0x530453;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x3780d2){super(![]),this['problem']=_0x3780d2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x306689){super(![]),this['problem']=_0x306689;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x3ae882){super(!![]),this['apiKeyValue']=_0x3ae882;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x2b2181){super(!![]),this['obj']=_0x2b2181;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0xe57f5e){super(![]),this['problem']=_0xe57f5e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x3edc9d){super(![]),this['problem']=_0x3edc9d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$b=undefined&&undefined['__awaiter']||function(_0x3c2d35,_0x4c4ab6,_0x3b1a28,_0x143a6f){function _0x555dee(_0x5f3969){return _0x5f3969 instanceof _0x3b1a28?_0x5f3969:new _0x3b1a28(function(_0x44cc8d){_0x44cc8d(_0x5f3969);});}return new(_0x3b1a28||(_0x3b1a28=Promise))(function(_0x150c6f,_0x125900){function _0x4ea6a8(_0x5cbd6c){try{_0x16aa6d(_0x143a6f['next'](_0x5cbd6c));}catch(_0x2eae4b){_0x125900(_0x2eae4b);}}function _0x27b8fc(_0x27f429){try{_0x16aa6d(_0x143a6f['throw'](_0x27f429));}catch(_0x11e3d9){_0x125900(_0x11e3d9);}}function _0x16aa6d(_0x5cbc57){_0x5cbc57['done']?_0x150c6f(_0x5cbc57['value']):_0x555dee(_0x5cbc57['value'])['then'](_0x4ea6a8,_0x27b8fc);}_0x16aa6d((_0x143a6f=_0x143a6f['apply'](_0x3c2d35,_0x4c4ab6||[]))['next']());});};class AccountService{constructor(_0x174309){this['fetch']=_0x174309;}['get'](_0x2dfe36,_0x2f11d2){return __awaiter$b(this,void 0,void 0,function*(){const _0x411f87='Account/'+_0x2dfe36+'/',_0x5a6118=yield this['fetch']['get'](_0x411f87,_0x2f11d2);try{if(_0x5a6118['status']>0xc7&&_0x5a6118['status']<0x12c){const _0x622bd8=yield _0x5a6118['json']();return new SuccessfulAccountResponse(_0x622bd8);}const _0x270cfe=yield _0x5a6118['json']();return new FailedAccountResponse(_0x270cfe);}catch(_0x594b5f){if(_0x594b5f instanceof Error)return new FailedAccountResponse({'detail':_0x594b5f['message'],'title':_0x594b5f['name'],'status':0x1f4,'instance':'','type':''});throw _0x594b5f;}});}['getImage'](_0x40d3f2,_0x2c0ca2){return __awaiter$b(this,void 0,void 0,function*(){const _0x233350='account/image/'+_0x40d3f2+'/',_0x38f1ea=yield this['fetch']['get'](_0x233350,_0x2c0ca2);try{if(_0x38f1ea['status']>0xc7&&_0x38f1ea['status']<0x12c){const _0x3fef3a=yield _0x38f1ea['json']();return new SuccessfulAccountImageResponse(_0x3fef3a);}const _0x2c0d9c=yield _0x38f1ea['json']();return new FailedAccountImageResponse(_0x2c0d9c);}catch(_0x565c05){if(_0x565c05 instanceof Error)return new FailedAccountImageResponse({'detail':_0x565c05['message'],'title':_0x565c05['name'],'status':0x1f4,'instance':'','type':''});throw _0x565c05;}});}}
4
-
5
- var __awaiter$a=undefined&&undefined['__awaiter']||function(_0x37de71,_0x5320aa,_0x5df2e6,_0x97fcf8){function _0x5ae197(_0x40069b){return _0x40069b instanceof _0x5df2e6?_0x40069b:new _0x5df2e6(function(_0x13028e){_0x13028e(_0x40069b);});}return new(_0x5df2e6||(_0x5df2e6=Promise))(function(_0x27ea85,_0x55f934){function _0x4b02a3(_0x1ad503){try{_0x5d421a(_0x97fcf8['next'](_0x1ad503));}catch(_0x1384d6){_0x55f934(_0x1384d6);}}function _0x1b9d23(_0x1df719){try{_0x5d421a(_0x97fcf8['throw'](_0x1df719));}catch(_0x470561){_0x55f934(_0x470561);}}function _0x5d421a(_0x24a66a){_0x24a66a['done']?_0x27ea85(_0x24a66a['value']):_0x5ae197(_0x24a66a['value'])['then'](_0x4b02a3,_0x1b9d23);}_0x5d421a((_0x97fcf8=_0x97fcf8['apply'](_0x37de71,_0x5320aa||[]))['next']());});};class ApiKeyService{constructor(_0x4cc049){this['fetch']=_0x4cc049,this['path']='api-key';}['create'](_0x4fd449,_0x1f14dd,_0x4c9717){return __awaiter$a(this,void 0,void 0,function*(){const _0x229440={'account_name':_0x4fd449,'api_key_name':_0x1f14dd};try{const _0x15e2c7=yield this['fetch']['post'](this['path'],_0x4c9717,_0x229440);if(_0x15e2c7['status']>0xc7&&_0x15e2c7['status']<0x12c){const _0x136f21=yield _0x15e2c7['json']();return new SuccessfulApiKeyResponse(_0x136f21);}const _0x409a5b=yield _0x15e2c7['json']();return new FailedApiKeyResponse(_0x409a5b);}catch(_0x38fd27){if(_0x38fd27 instanceof Error)return new FailedApiKeyResponse({'detail':_0x38fd27['message'],'title':_0x38fd27['name'],'status':0x1f4,'instance':'','type':''});throw _0x38fd27;}});}['view'](_0x6a778d,_0x3b4770,_0x11a855){return __awaiter$a(this,void 0,void 0,function*(){const _0x1b0f32=this['path']+'/'+_0x6a778d+'/'+_0x3b4770;try{const _0x203b87=yield this['fetch']['get'](_0x1b0f32,_0x11a855);if(_0x203b87['status']>0xc7&&_0x203b87['status']<0x12c){const _0x73d570=yield _0x203b87['json']();return new SuccessfulApiKeyValueResponse(_0x73d570);}const _0x33fa36=yield _0x203b87['json']();return new FailedApiKeyValueResponse(_0x33fa36);}catch(_0x328dbc){if(_0x328dbc instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x328dbc['message'],'title':_0x328dbc['name'],'status':0x1f4,'instance':'','type':''});throw _0x328dbc;}});}['delete'](_0x534583,_0x8ec813,_0x48cc03){return __awaiter$a(this,void 0,void 0,function*(){const _0x3ce046=this['path']+'/'+_0x534583+'/'+_0x8ec813;try{const _0x46b4f1=yield this['fetch']['delete'](_0x3ce046,_0x48cc03);if(_0x46b4f1['status']>0xc7&&_0x46b4f1['status']<0x12c)return new SuccessfulResponse({});const _0x2b7779=yield _0x46b4f1['json']();return new FailedResponse(_0x2b7779);}catch(_0x4db8a3){if(_0x4db8a3 instanceof Error)return new FailedResponse({'detail':_0x4db8a3['message'],'title':_0x4db8a3['name'],'status':0x1f4,'instance':'','type':''});throw _0x4db8a3;}});}}
6
-
7
- var __awaiter$9=undefined&&undefined['__awaiter']||function(_0x574ef7,_0x39575f,_0x3f355d,_0x2c9566){function _0x3eec36(_0x2ee79e){return _0x2ee79e instanceof _0x3f355d?_0x2ee79e:new _0x3f355d(function(_0x58579b){_0x58579b(_0x2ee79e);});}return new(_0x3f355d||(_0x3f355d=Promise))(function(_0x25d4d9,_0x1852f5){function _0x46a57d(_0x387ba5){try{_0x26e5b7(_0x2c9566['next'](_0x387ba5));}catch(_0x239e54){_0x1852f5(_0x239e54);}}function _0x4eb0bd(_0x542b35){try{_0x26e5b7(_0x2c9566['throw'](_0x542b35));}catch(_0x33d37a){_0x1852f5(_0x33d37a);}}function _0x26e5b7(_0x5c43aa){_0x5c43aa['done']?_0x25d4d9(_0x5c43aa['value']):_0x3eec36(_0x5c43aa['value'])['then'](_0x46a57d,_0x4eb0bd);}_0x26e5b7((_0x2c9566=_0x2c9566['apply'](_0x574ef7,_0x39575f||[]))['next']());});};class ListService{constructor(_0x530c45){this['fetch']=_0x530c45,this['path']='list';}['create'](_0x447227,_0x21bb34,_0x5da5b1,_0x574f11){return __awaiter$9(this,void 0,void 0,function*(){const _0x51ac01={'account_name':_0x447227,'list_name':_0x21bb34,'search_service_name_or_group':_0x5da5b1};try{const _0xb04a0c=yield this['fetch']['post'](this['path'],_0x574f11,_0x51ac01);if(_0xb04a0c['status']>0xc7&&_0xb04a0c['status']<0x12c){const _0x1a340e=yield _0xb04a0c['json']();return new SuccessfulListIdentityResponse(_0x1a340e);}const _0x548424=yield _0xb04a0c['json']();return new FailedListIdentityResponse(_0x548424);}catch(_0x5240ee){if(_0x5240ee instanceof Error)return new FailedListIdentityResponse({'detail':_0x5240ee['message'],'title':_0x5240ee['name'],'status':0x1f4,'instance':'','type':''});throw _0x5240ee;}});}['delete'](_0x1a8ad9,_0xc75cd9,_0x24dc74){return __awaiter$9(this,void 0,void 0,function*(){const _0xfc4509=this['path']+'/'+_0x1a8ad9+'/'+_0xc75cd9,_0x4682a5=yield this['fetch']['delete'](_0xfc4509,_0x24dc74);try{if(_0x4682a5['status']>0xc7&&_0x4682a5['status']<0x12c)return new SuccessfulResponse({});const _0x6831e5=yield _0x4682a5['json']();return new FailedResponse(_0x6831e5);}catch(_0x1c32dc){if(_0x1c32dc instanceof Error)return new FailedResponse({'detail':_0x1c32dc['message'],'title':_0x1c32dc['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c32dc;}});}['get'](_0x1a193a,_0x5c2b85,_0x5a499b){return __awaiter$9(this,void 0,void 0,function*(){const _0x170df4=this['path']+'/'+_0x1a193a+'/'+_0x5c2b85;try{const _0xb5846a=yield this['fetch']['get'](_0x170df4,_0x5a499b);if(_0xb5846a['status']>0xc7&&_0xb5846a['status']<0x12c){const _0x1ab396=yield _0xb5846a['json']();return new SuccessfulListResponse(_0x1ab396);}const _0x507712=yield _0xb5846a['json']();return new FailedListResponse(_0x507712);}catch(_0x1750da){if(_0x1750da instanceof Error)return new FailedListResponse({'detail':_0x1750da['message'],'title':_0x1750da['name'],'status':0x1f4,'instance':'','type':''});throw _0x1750da;}});}}
8
-
9
- var __awaiter$8=undefined&&undefined['__awaiter']||function(_0x438287,_0x6318df,_0x486c47,_0x433443){function _0x465c49(_0x27dfd4){return _0x27dfd4 instanceof _0x486c47?_0x27dfd4:new _0x486c47(function(_0x540a30){_0x540a30(_0x27dfd4);});}return new(_0x486c47||(_0x486c47=Promise))(function(_0x7b4bfb,_0x30806b){function _0x1727dc(_0xb4cf86){try{_0x2f086f(_0x433443['next'](_0xb4cf86));}catch(_0x21a58d){_0x30806b(_0x21a58d);}}function _0x5b89da(_0x2153e8){try{_0x2f086f(_0x433443['throw'](_0x2153e8));}catch(_0x3a7548){_0x30806b(_0x3a7548);}}function _0x2f086f(_0x3596da){_0x3596da['done']?_0x7b4bfb(_0x3596da['value']):_0x465c49(_0x3596da['value'])['then'](_0x1727dc,_0x5b89da);}_0x2f086f((_0x433443=_0x433443['apply'](_0x438287,_0x6318df||[]))['next']());});};class Fetch{constructor(_0x500f68){this['baseUri']=_0x500f68,this['getUrl']=_0x3d25de=>{return _0x3d25de['startsWith']('/')&&(_0x3d25de=_0x3d25de['replace']('/','')),''+this['baseUri']+_0x3d25de;},!_0x500f68['endsWith']('/')&&(_0x500f68=_0x500f68+'/');}['get'](_0x2a21bc,_0x22d4c0){return __awaiter$8(this,void 0,void 0,function*(){const _0x2015e1=this['getUrl'](_0x2a21bc);return yield fetch(_0x2015e1,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x22d4c0}});});}['post'](_0x4345fd,_0x1819ad,_0x558768){return __awaiter$8(this,void 0,void 0,function*(){const _0x34951b=this['getUrl'](_0x4345fd);return yield fetch(_0x34951b,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1819ad},'body':_0x558768?JSON['stringify'](_0x558768):null});});}['PostNoAuth'](_0x331728,_0x481953){return __awaiter$8(this,void 0,void 0,function*(){const _0x1b45d7=this['getUrl'](_0x331728);return yield fetch(_0x1b45d7,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x481953?JSON['stringify'](_0x481953):null});});}['put'](_0x27aa87,_0x38107d,_0x5f5942){return __awaiter$8(this,void 0,void 0,function*(){const _0x571ca5=this['getUrl'](_0x27aa87);return yield fetch(_0x571ca5,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x38107d},'body':_0x5f5942?JSON['stringify'](_0x5f5942):null});});}['delete'](_0x1ffd80,_0x1a90f0){return __awaiter$8(this,void 0,void 0,function*(){const _0x221a76=this['getUrl'](_0x1ffd80);return yield fetch(_0x221a76,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1a90f0}});});}}
10
-
11
- var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x22db04,_0x309a91,_0x371c9b,_0x3d57a5){function _0x3c965d(_0x14f3f9){return _0x14f3f9 instanceof _0x371c9b?_0x14f3f9:new _0x371c9b(function(_0x5c8dca){_0x5c8dca(_0x14f3f9);});}return new(_0x371c9b||(_0x371c9b=Promise))(function(_0xdd059b,_0x3210c0){function _0xa3e789(_0x352f8c){try{_0x3fff5c(_0x3d57a5['next'](_0x352f8c));}catch(_0x2618fb){_0x3210c0(_0x2618fb);}}function _0x2a9ad3(_0x5d708b){try{_0x3fff5c(_0x3d57a5['throw'](_0x5d708b));}catch(_0x2e5455){_0x3210c0(_0x2e5455);}}function _0x3fff5c(_0x54328f){_0x54328f['done']?_0xdd059b(_0x54328f['value']):_0x3c965d(_0x54328f['value'])['then'](_0xa3e789,_0x2a9ad3);}_0x3fff5c((_0x3d57a5=_0x3d57a5['apply'](_0x22db04,_0x309a91||[]))['next']());});};class SearchServersService{constructor(_0x26e83b){this['fetch']=_0x26e83b,this['path']='search-services';}['create'](_0x4d601e,_0x3f38f5,_0x2be953,_0x381540,_0x357746,_0xe28856,_0x439c81,_0x310d53){return __awaiter$7(this,void 0,void 0,function*(){const _0x12ce07={'account_name':_0x4d601e,'search_service_name':_0x3f38f5,'endpoint':_0x2be953,'key':_0x381540,'country':_0x357746,'provider':_0xe28856,'index_name':_0x439c81};try{const _0x84cffe=yield this['fetch']['post'](this['path'],_0x310d53,_0x12ce07);if(_0x84cffe['status']>0xc7&&_0x84cffe['status']<0x12c){const _0x4b0c0b=yield _0x84cffe['json']();return new SuccessfulSearchServiceResponse(_0x4b0c0b);}const _0x26a6ee=yield _0x84cffe['json']();return new FailedSearchServiceResponse(_0x26a6ee);}catch(_0x40415e){if(_0x40415e instanceof Error)return new FailedSearchServiceResponse({'detail':_0x40415e['message'],'title':_0x40415e['name'],'status':0x1f4,'instance':'','type':''});throw _0x40415e;}});}['delete'](_0x39d2a7,_0x3d3641,_0x442353){return __awaiter$7(this,void 0,void 0,function*(){const _0xf32b68=this['path']+'/'+_0x39d2a7+'/'+_0x3d3641;try{const _0x583341=yield this['fetch']['delete'](_0xf32b68,_0x442353);if(_0x583341['status']>0xc7&&_0x583341['status']<0x12c)return new SuccessfulResponse({});const _0x3b2743=yield _0x583341['json']();return new FailedResponse(_0x3b2743);}catch(_0x21c5f6){if(_0x21c5f6 instanceof Error)return new FailedResponse({'detail':_0x21c5f6['message'],'title':_0x21c5f6['name'],'status':0x1f4,'instance':'','type':''});throw _0x21c5f6;}});}['view'](_0x30ed22,_0x4eaa68,_0x3b3bd3){return __awaiter$7(this,void 0,void 0,function*(){const _0x1bce99=this['path']+'/'+_0x30ed22+'/'+_0x4eaa68;try{const _0x5a7324=yield this['fetch']['get'](_0x1bce99,_0x3b3bd3);if(_0x5a7324['status']>0xc7&&_0x5a7324['status']<0x12c){const _0x21d989=yield _0x5a7324['json']();return new SuccessfulViewSearchServiceResponse(_0x21d989);}const _0xf60c62=yield _0x5a7324['json']();return new FailedViewSearchServiceResponse(_0xf60c62);}catch(_0x396fc3){if(_0x396fc3 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x396fc3['message'],'title':_0x396fc3['name'],'status':0x1f4,'instance':'','type':''});throw _0x396fc3;}});}['edit'](_0x5bb964,_0x495696,_0x120347,_0x4eb555,_0x38ae19){return __awaiter$7(this,void 0,void 0,function*(){const _0x4d6099={'account_name':_0x5bb964,'search_service_name':_0x495696,'key':_0x120347,'country':_0x4eb555};try{const _0x23595b=yield this['fetch']['put'](this['path'],_0x38ae19,_0x4d6099);if(_0x23595b['status']>0xc7&&_0x23595b['status']<0x12c){const _0x2ca0f2=yield _0x23595b['json']();return new SuccessfulSearchServiceResponse(_0x2ca0f2);}const _0x1c235e=yield _0x23595b['json']();return new FailedSearchServiceResponse(_0x1c235e);}catch(_0x1c628f){if(_0x1c628f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1c628f['message'],'title':_0x1c628f['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c628f;}});}['list'](_0x49ef40,_0x48f95f){return __awaiter$7(this,void 0,void 0,function*(){const _0x4a4bd5=this['path']+'/'+_0x49ef40;try{const _0x51dbc6=yield this['fetch']['get'](_0x4a4bd5,_0x48f95f);if(_0x51dbc6['status']>0xc7&&_0x51dbc6['status']<0x12c){const _0x1bf7b6=yield _0x51dbc6['json']();return new SuccessfulListSearchServiceResponse(_0x1bf7b6);}const _0x4a343a=yield _0x51dbc6['json']();return new FailedViewSearchServicesResponse(_0x4a343a);}catch(_0x739c94){if(_0x739c94 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x739c94['message'],'title':_0x739c94['name'],'status':0x1f4,'instance':'','type':''});throw _0x739c94;}});}}
12
-
13
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x1be4b4,_0x4992a3,_0x3eba0d,_0xb5a21a){function _0x3bac30(_0x5c731e){return _0x5c731e instanceof _0x3eba0d?_0x5c731e:new _0x3eba0d(function(_0x45d9f6){_0x45d9f6(_0x5c731e);});}return new(_0x3eba0d||(_0x3eba0d=Promise))(function(_0x300ed9,_0x1c2bbb){function _0x4d698e(_0xedb0cd){try{_0x293a2d(_0xb5a21a['next'](_0xedb0cd));}catch(_0x432f6d){_0x1c2bbb(_0x432f6d);}}function _0x5d470d(_0x1af47e){try{_0x293a2d(_0xb5a21a['throw'](_0x1af47e));}catch(_0x56b76d){_0x1c2bbb(_0x56b76d);}}function _0x293a2d(_0x210679){_0x210679['done']?_0x300ed9(_0x210679['value']):_0x3bac30(_0x210679['value'])['then'](_0x4d698e,_0x5d470d);}_0x293a2d((_0xb5a21a=_0xb5a21a['apply'](_0x1be4b4,_0x4992a3||[]))['next']());});};class FacetService{constructor(_0x2b10f8){this['fetch']=_0x2b10f8,this['path']='facet';}['create'](_0x223e0b,_0x28fe3f,_0x59ca34,_0xfb766c){return __awaiter$6(this,void 0,void 0,function*(){const _0x5b0761={'account_name':_0x223e0b,'list_name':_0x28fe3f,'facet_name':_0x59ca34};try{const _0x5abcc3=yield this['fetch']['post'](this['path'],_0xfb766c,_0x5b0761);if(_0x5abcc3['status']>0xc7&&_0x5abcc3['status']<0x12c){const _0x238a1e=yield _0x5abcc3['json']();return new SuccessfulFacetResponse(_0x238a1e);}const _0x1b6c97=yield _0x5abcc3['json']();return new FailedFacetResponse(_0x1b6c97);}catch(_0x2675c1){if(_0x2675c1 instanceof Error)return new FailedFacetResponse({'detail':_0x2675c1['message'],'title':_0x2675c1['name'],'status':0x1f4,'instance':'','type':''});throw _0x2675c1;}});}['remove'](_0xd51ebd,_0x5359e0,_0x10d2ee,_0x4d4dcc){return __awaiter$6(this,void 0,void 0,function*(){const _0x29beee='Facet/'+_0xd51ebd+'/'+_0x5359e0+'/'+_0x10d2ee,_0x29ff24=yield this['fetch']['delete'](_0x29beee,_0x4d4dcc);try{if(_0x29ff24['status']>0xc7&&_0x29ff24['status']<0x12c)return new SuccessfulResponse({});const _0x4c1112=yield _0x29ff24['json']();return new FailedResponse(_0x4c1112);}catch(_0x42c350){if(_0x42c350 instanceof Error)return new FailedResponse({'detail':_0x42c350['message'],'title':_0x42c350['name'],'status':0x1f4,'instance':'','type':''});throw _0x42c350;}});}['rename'](_0x326fdd,_0x14d58f,_0x239741,_0x22fe0a,_0x3b1cdc){return __awaiter$6(this,void 0,void 0,function*(){const _0x50648f={'account_name':_0x326fdd,'list_name':_0x14d58f,'facet_name':_0x239741,'new_facet_name':_0x22fe0a};try{const _0x4748a0=yield this['fetch']['put'](this['path'],_0x3b1cdc,_0x50648f);if(_0x4748a0['status']>0xc7&&_0x4748a0['status']<0x12c){const _0x1e5c94=yield _0x4748a0['json']();return new SuccessfulFacetResponse(_0x1e5c94);}const _0x41201f=yield _0x4748a0['json']();return new FailedFacetResponse(_0x41201f);}catch(_0x2bffa5){if(_0x2bffa5 instanceof Error)return new FailedFacetResponse({'detail':_0x2bffa5['message'],'title':_0x2bffa5['name'],'status':0x1f4,'instance':'','type':''});throw _0x2bffa5;}});}['list'](_0x119f6b,_0x7cf7f,_0x3da019,_0x4e0737,_0xafc5a1){return __awaiter$6(this,void 0,void 0,function*(){let _0x50d703=this['path']+'/'+_0x119f6b+'/'+_0x7cf7f+'/'+_0x3da019+'/'+_0x4e0737;try{const _0x8bf9e=yield this['fetch']['get'](_0x50d703,_0xafc5a1);if(_0x8bf9e['status']>0xc7&&_0x8bf9e['status']<0x12c){const _0x311814=yield _0x8bf9e['json']();return new SuccessfulFacetValueResponse(_0x311814);}const _0x5c4a45=yield _0x8bf9e['json']();return new FailedFacetValuesResponse(_0x5c4a45);}catch(_0xb8776){if(_0xb8776 instanceof Error)return new FailedFacetValuesResponse({'detail':_0xb8776['message'],'title':_0xb8776['name'],'status':0x1f4,'instance':'','type':''});throw _0xb8776;}});}}
14
-
15
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x211949,_0x16971d,_0x3e2c5a,_0x4d6d4c){function _0x26ad6(_0x381bef){return _0x381bef instanceof _0x3e2c5a?_0x381bef:new _0x3e2c5a(function(_0x3bc988){_0x3bc988(_0x381bef);});}return new(_0x3e2c5a||(_0x3e2c5a=Promise))(function(_0x45e95c,_0x5894d7){function _0x59e76b(_0x499932){try{_0x196e3f(_0x4d6d4c['next'](_0x499932));}catch(_0x5d1bc7){_0x5894d7(_0x5d1bc7);}}function _0x4b99c9(_0x1d101b){try{_0x196e3f(_0x4d6d4c['throw'](_0x1d101b));}catch(_0x4031c9){_0x5894d7(_0x4031c9);}}function _0x196e3f(_0x3fccde){_0x3fccde['done']?_0x45e95c(_0x3fccde['value']):_0x26ad6(_0x3fccde['value'])['then'](_0x59e76b,_0x4b99c9);}_0x196e3f((_0x4d6d4c=_0x4d6d4c['apply'](_0x211949,_0x16971d||[]))['next']());});};class SearchResultService{constructor(_0x5db7d1){this['fetch']=_0x5db7d1,this['path']='search-result';}['create'](_0x2d299b,_0x1221f6,_0x4b5d2e,_0x20e159,_0x243086){return __awaiter$5(this,void 0,void 0,function*(){_0x243086=_0x243086!==null&&_0x243086!==void 0?_0x243086:{'resource_1':'','resource_2':'','resource_3':'','latitude':0x0,'longitude':0x0,'facets':[],'searchable_fields':[]};const _0x21c6a2=Object['assign']({'account_name':_0x2d299b,'search_result_name':_0x4b5d2e,'list_name':_0x1221f6},_0x243086);try{const _0x1cc19e=yield this['fetch']['post'](this['path'],_0x20e159,_0x21c6a2);if(_0x1cc19e['status']>0xc7&&_0x1cc19e['status']<0x12c){const _0x4dc5ef=yield _0x1cc19e['json']();return new SuccessfulViewSearchResultResponse(_0x4dc5ef);}const _0x5bf4ee=yield _0x1cc19e['json']();return new FailedSearchResultResponse(_0x5bf4ee);}catch(_0x4c044e){if(_0x4c044e instanceof Error)return new FailedSearchResultResponse({'detail':_0x4c044e['message'],'title':_0x4c044e['name'],'status':0x1f4,'instance':'','type':''});throw _0x4c044e;}});}['transfer'](_0x37a1ec,_0x2c31ed,_0xb09332,_0xf53845){return __awaiter$5(this,void 0,void 0,function*(){const _0x5a5729={'account_name':_0x37a1ec,'list_name':_0x2c31ed,'new_search_service_name':_0xb09332};try{const _0x4ef43f=yield this['fetch']['post'](this['path']+'/transfer',_0xf53845,_0x5a5729);if(_0x4ef43f['status']>0xc7&&_0x4ef43f['status']<0x12c){const _0x4fa8ad=yield _0x4ef43f['json']();return new SuccessfulListResponse(_0x4fa8ad);}const _0x1075dd=yield _0x4ef43f['json']();return new FailedListResponse(_0x1075dd);}catch(_0xf5a223){if(_0xf5a223 instanceof Error)return new FailedListResponse({'detail':_0xf5a223['message'],'title':_0xf5a223['name'],'status':0x1f4,'instance':'','type':''});throw _0xf5a223;}});}['list'](_0x508e88,_0x11cbb3,_0x22dcef,_0x24c327){return __awaiter$5(this,void 0,void 0,function*(){let _0x56b3a8=this['path']+'/'+_0x508e88+'/'+_0x11cbb3+'?'+this['getQueryStr'](_0x24c327);try{const _0x3a2c34=yield this['fetch']['get'](_0x56b3a8,_0x22dcef);if(_0x3a2c34['status']>0xc7&&_0x3a2c34['status']<0x12c){const _0x29cc42=yield _0x3a2c34['json']();return new SuccessfulListSearchResultResponse(_0x29cc42);}const _0x2229d5=yield _0x3a2c34['json']();return new FailedViewSearchResultResponse(_0x2229d5);}catch(_0x583cce){if(_0x583cce instanceof Error)return new FailedViewSearchResultResponse({'detail':_0x583cce['message'],'title':_0x583cce['name'],'status':0x1f4,'instance':'','type':''});throw _0x583cce;}});}['delete'](_0x2c60f1,_0x44741a,_0x2cc1dd,_0x5785fd){return __awaiter$5(this,void 0,void 0,function*(){const _0x1df0c7=this['path']+'/'+_0x2c60f1+'/'+_0x44741a+'/'+_0x2cc1dd,_0x29ff42=yield this['fetch']['delete'](_0x1df0c7,_0x5785fd);try{if(_0x29ff42['status']>0xc7&&_0x29ff42['status']<0x12c)return new SuccessfulResponse({});const _0xad2da7=yield _0x29ff42['json']();return new FailedResponse(_0xad2da7);}catch(_0x1c1e03){if(_0x1c1e03 instanceof Error)return new FailedResponse({'detail':_0x1c1e03['message'],'title':_0x1c1e03['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c1e03;}});}['getQueryStr'](_0x16e391){let _0x32f9ef='';const _0x1a1dad=[];return (_0x16e391===null||_0x16e391===void 0?void 0:_0x16e391['size'])&&_0x1a1dad['push']('size='+_0x16e391['size']),(_0x16e391===null||_0x16e391===void 0?void 0:_0x16e391['skip'])&&_0x1a1dad['push']('skip='+_0x16e391['skip']),(_0x16e391===null||_0x16e391===void 0?void 0:_0x16e391['query'])&&_0x1a1dad['push']('query='+_0x16e391['query']),(_0x16e391===null||_0x16e391===void 0?void 0:_0x16e391['filter'])&&_0x1a1dad['push']('filter='+_0x16e391['filter']),(_0x16e391===null||_0x16e391===void 0?void 0:_0x16e391['radius'])&&_0x1a1dad['push']('radius='+_0x16e391['radius']),_0x1a1dad['length']>0x0&&_0x1a1dad['forEach']((_0x9a97d0,_0x22d54e)=>{if(_0x22d54e>0x0&&_0x32f9ef)_0x32f9ef+='&';_0x32f9ef+=_0x9a97d0;}),_0x32f9ef;}}
16
-
17
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0xb87f2a,_0x4d53ea,_0x14e9d0,_0x278f16){function _0x4d7e28(_0x2331b1){return _0x2331b1 instanceof _0x14e9d0?_0x2331b1:new _0x14e9d0(function(_0x1afb5d){_0x1afb5d(_0x2331b1);});}return new(_0x14e9d0||(_0x14e9d0=Promise))(function(_0x5795a1,_0x191ba4){function _0x2aa589(_0xd8afba){try{_0x252322(_0x278f16['next'](_0xd8afba));}catch(_0x11ca29){_0x191ba4(_0x11ca29);}}function _0xa1e84f(_0x1c8b2f){try{_0x252322(_0x278f16['throw'](_0x1c8b2f));}catch(_0x12b15e){_0x191ba4(_0x12b15e);}}function _0x252322(_0x8b4f74){_0x8b4f74['done']?_0x5795a1(_0x8b4f74['value']):_0x4d7e28(_0x8b4f74['value'])['then'](_0x2aa589,_0xa1e84f);}_0x252322((_0x278f16=_0x278f16['apply'](_0xb87f2a,_0x4d53ea||[]))['next']());});};class ContributorService{constructor(_0x27f29d){this['fetch']=_0x27f29d,this['path']='contributor';}['create'](_0x2e687f,_0x1f373a,_0x1f38c9,_0x24408e){return __awaiter$4(this,void 0,void 0,function*(){const _0x1f4d1e={'account_name':_0x2e687f,'list_name':_0x1f373a,'contributor_name':_0x1f38c9};try{const _0x1e9640=yield this['fetch']['post'](this['path'],_0x24408e,_0x1f4d1e);if(_0x1e9640['status']>0xc7&&_0x1e9640['status']<0x12c){const _0x5cc3f7=yield _0x1e9640['json']();return new SuccessfulContributorResponse(_0x5cc3f7);}const _0x49cb3b=yield _0x1e9640['json']();return new FailedContributorResponse(_0x49cb3b);}catch(_0x48115c){if(_0x48115c instanceof Error)return new FailedContributorResponse({'detail':_0x48115c['message'],'title':_0x48115c['name'],'status':0x1f4,'instance':'','type':''});throw _0x48115c;}});}['remove'](_0x3eb21f,_0x35e042,_0x3c3ade,_0x563e0b){return __awaiter$4(this,void 0,void 0,function*(){const _0x2ea407=this['path']+'/'+_0x3eb21f+'/'+_0x35e042+'/'+_0x3c3ade,_0x140c9e=yield this['fetch']['delete'](_0x2ea407,_0x563e0b);try{if(_0x140c9e['status']>0xc7&&_0x140c9e['status']<0x12c)return new SuccessfulResponse({});const _0xf20691=yield _0x140c9e['json']();return new FailedResponse(_0xf20691);}catch(_0x1b1b42){if(_0x1b1b42 instanceof Error)return new FailedResponse({'detail':_0x1b1b42['message'],'title':_0x1b1b42['name'],'status':0x1f4,'instance':'','type':''});throw _0x1b1b42;}});}['startsWith'](_0x18063b,_0x1c9930){return __awaiter$4(this,void 0,void 0,function*(){const _0x52672d=this['path']+'/'+_0x18063b;try{const _0x51e580=yield this['fetch']['get'](_0x52672d,_0x1c9930);if(_0x51e580['status']>0xc7&&_0x51e580['status']<0x12c){const _0x5cd9b5=yield _0x51e580['json']();return new SuccessfulAccountAndImageResponse(_0x5cd9b5);}const _0xb76368=yield _0x51e580['json']();return new FailedAccountAndImageResponse(_0xb76368);}catch(_0x27b625){if(_0x27b625 instanceof Error)return new FailedAccountAndImageResponse({'detail':_0x27b625['message'],'title':_0x27b625['name'],'status':0x1f4,'instance':'','type':''});throw _0x27b625;}});}}
18
-
19
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x24101a,_0xf60075,_0x1cf6ed,_0x41bc5f){function _0x4de4b1(_0x90b8b6){return _0x90b8b6 instanceof _0x1cf6ed?_0x90b8b6:new _0x1cf6ed(function(_0x2f873b){_0x2f873b(_0x90b8b6);});}return new(_0x1cf6ed||(_0x1cf6ed=Promise))(function(_0x3aa446,_0x4f827c){function _0x161bac(_0x32f098){try{_0x41e9c2(_0x41bc5f['next'](_0x32f098));}catch(_0x21f65d){_0x4f827c(_0x21f65d);}}function _0x354a68(_0x375bd7){try{_0x41e9c2(_0x41bc5f['throw'](_0x375bd7));}catch(_0x556490){_0x4f827c(_0x556490);}}function _0x41e9c2(_0x5f5743){_0x5f5743['done']?_0x3aa446(_0x5f5743['value']):_0x4de4b1(_0x5f5743['value'])['then'](_0x161bac,_0x354a68);}_0x41e9c2((_0x41bc5f=_0x41bc5f['apply'](_0x24101a,_0xf60075||[]))['next']());});};class SearchableFieldService{constructor(_0x6b8890){this['fetch']=_0x6b8890,this['path']='searchable-field';}['create'](_0x49de9f,_0x9f3669,_0x5f52b6,_0x2c11e0){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a573d={'account_name':_0x49de9f,'list_name':_0x9f3669,'searchable_field_name':_0x5f52b6};try{const _0x38523d=yield this['fetch']['post'](this['path'],_0x2c11e0,_0x2a573d);if(_0x38523d['status']>0xc7&&_0x38523d['status']<0x12c){const _0x2ee4e0=yield _0x38523d['json']();return new SuccessfulSearchableFieldResponse(_0x2ee4e0);}const _0x83080=yield _0x38523d['json']();return new FailedSearchableFieldResponse(_0x83080);}catch(_0x52f5c6){if(_0x52f5c6 instanceof Error)return new FailedSearchableFieldResponse({'detail':_0x52f5c6['message'],'title':_0x52f5c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x52f5c6;}});}['remove'](_0x5b24f0,_0x316900,_0x2c14b2,_0x2f55a9){return __awaiter$3(this,void 0,void 0,function*(){const _0x1fd64d=this['path']+'/'+_0x5b24f0+'/'+_0x316900+'/'+_0x2c14b2,_0x383eee=yield this['fetch']['delete'](_0x1fd64d,_0x2f55a9);try{if(_0x383eee['status']>0xc7&&_0x383eee['status']<0x12c)return new SuccessfulResponse({});const _0x10e648=yield _0x383eee['json']();return new FailedResponse(_0x10e648);}catch(_0x237466){if(_0x237466 instanceof Error)return new FailedResponse({'detail':_0x237466['message'],'title':_0x237466['name'],'status':0x1f4,'instance':'','type':''});throw _0x237466;}});}['rename'](_0x2a0915,_0x46ab87,_0x2dc912,_0x35051d,_0x393204){return __awaiter$3(this,void 0,void 0,function*(){const _0x2c578a={'account_name':_0x2a0915,'list_name':_0x46ab87,'searchable_field_name':_0x2dc912,'new_searchable_field_name':_0x35051d};try{const _0xc689c4=yield this['fetch']['put'](this['path'],_0x393204,_0x2c578a);if(_0xc689c4['status']>0xc7&&_0xc689c4['status']<0x12c){const _0xf1be0=yield _0xc689c4['json']();return new SuccessfulSearchableFieldResponse(_0xf1be0);}const _0x167b6d=yield _0xc689c4['json']();return new FailedSearchableFieldResponse(_0x167b6d);}catch(_0x426aea){if(_0x426aea instanceof Error)return new FailedSearchableFieldResponse({'detail':_0x426aea['message'],'title':_0x426aea['name'],'status':0x1f4,'instance':'','type':''});throw _0x426aea;}});}}
20
-
21
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x3b1ecf,_0x1707d2,_0x257ce6,_0x377801){function _0x24f8a7(_0x392376){return _0x392376 instanceof _0x257ce6?_0x392376:new _0x257ce6(function(_0x534fa4){_0x534fa4(_0x392376);});}return new(_0x257ce6||(_0x257ce6=Promise))(function(_0xe65a8f,_0x1a2fb8){function _0xc0aec7(_0x143cf8){try{_0x35f6c2(_0x377801['next'](_0x143cf8));}catch(_0x5861da){_0x1a2fb8(_0x5861da);}}function _0x2dd161(_0x450f51){try{_0x35f6c2(_0x377801['throw'](_0x450f51));}catch(_0x1dc82f){_0x1a2fb8(_0x1dc82f);}}function _0x35f6c2(_0x780645){_0x780645['done']?_0xe65a8f(_0x780645['value']):_0x24f8a7(_0x780645['value'])['then'](_0xc0aec7,_0x2dd161);}_0x35f6c2((_0x377801=_0x377801['apply'](_0x3b1ecf,_0x1707d2||[]))['next']());});};class SuggesterService{constructor(_0x3dccfc){this['fetch']=_0x3dccfc,this['path']='suggester';}['create'](_0x1dc84c,_0x2f52ce,_0x5f3b5d,_0xf70d02){return __awaiter$2(this,void 0,void 0,function*(){const _0x62178f={'account_name':_0x1dc84c,'suggester_name':_0x2f52ce,'group_name':_0x5f3b5d};try{const _0x37d31b=yield this['fetch']['post'](this['path'],_0xf70d02,_0x62178f);if(_0x37d31b['status']>0xc7&&_0x37d31b['status']<0x12c){const _0x38e775=yield _0x37d31b['json']();return new SuccessfulSuggesterResponse(_0x38e775);}const _0x2e5d65=yield _0x37d31b['json']();return new FailedSuggesterResponse(_0x2e5d65);}catch(_0x2e4a78){if(_0x2e4a78 instanceof Error)return new FailedSuggesterResponse({'detail':_0x2e4a78['message'],'title':_0x2e4a78['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e4a78;}});}}
22
-
23
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1181c4,_0x29abff,_0x545f02,_0x6cb945){function _0x54f0f5(_0x309662){return _0x309662 instanceof _0x545f02?_0x309662:new _0x545f02(function(_0x2bc68e){_0x2bc68e(_0x309662);});}return new(_0x545f02||(_0x545f02=Promise))(function(_0x16617e,_0x3d63d0){function _0x259992(_0x263618){try{_0x4fefdf(_0x6cb945['next'](_0x263618));}catch(_0xf98ab7){_0x3d63d0(_0xf98ab7);}}function _0x5bb72a(_0x4d4afa){try{_0x4fefdf(_0x6cb945['throw'](_0x4d4afa));}catch(_0x1eb18c){_0x3d63d0(_0x1eb18c);}}function _0x4fefdf(_0x1a1f4b){_0x1a1f4b['done']?_0x16617e(_0x1a1f4b['value']):_0x54f0f5(_0x1a1f4b['value'])['then'](_0x259992,_0x5bb72a);}_0x4fefdf((_0x6cb945=_0x6cb945['apply'](_0x1181c4,_0x29abff||[]))['next']());});};class ServiceGroupService{constructor(_0x255ec1){this['fetch']=_0x255ec1,this['path']='service-group';}['create'](_0x533047,_0x58ac32,_0x109a82,_0x1fc55c){return __awaiter$1(this,void 0,void 0,function*(){const _0xb269dd={'account_name':_0x533047,'search_service_name':_0x58ac32,'search_service_group_name':_0x109a82};try{const _0xf38a26=yield this['fetch']['post'](this['path'],_0x1fc55c,_0xb269dd);if(_0xf38a26['status']>0xc7&&_0xf38a26['status']<0x12c){const _0x193723=yield _0xf38a26['json']();return new SuccessfulGroupResponse(_0x193723);}const _0x528b2c=yield _0xf38a26['json']();return new FailedGroupResponse(_0x528b2c);}catch(_0x435258){if(_0x435258 instanceof Error)return new FailedGroupResponse({'detail':_0x435258['message'],'title':_0x435258['name'],'status':0x1f4,'instance':'','type':''});throw _0x435258;}});}}
24
-
25
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x3f82da,_0x5887e9,_0x4b37fb,_0x30dee1){function _0x1c93d6(_0xebb3f5){return _0xebb3f5 instanceof _0x4b37fb?_0xebb3f5:new _0x4b37fb(function(_0x5180c6){_0x5180c6(_0xebb3f5);});}return new(_0x4b37fb||(_0x4b37fb=Promise))(function(_0x226940,_0x1ec1bb){function _0xbb79ab(_0x1b5430){try{_0x2704ef(_0x30dee1['next'](_0x1b5430));}catch(_0x8e1a82){_0x1ec1bb(_0x8e1a82);}}function _0xad61f1(_0x224642){try{_0x2704ef(_0x30dee1['throw'](_0x224642));}catch(_0x1cbc2d){_0x1ec1bb(_0x1cbc2d);}}function _0x2704ef(_0x18d686){_0x18d686['done']?_0x226940(_0x18d686['value']):_0x1c93d6(_0x18d686['value'])['then'](_0xbb79ab,_0xad61f1);}_0x2704ef((_0x30dee1=_0x30dee1['apply'](_0x3f82da,_0x5887e9||[]))['next']());});};class AdminClient{constructor(_0x827ed1='https://admin.searchability.dev/'){var _0x121351=new Fetch(_0x827ed1);this['Accounts']=new AccountService(_0x121351),this['Lists']=new ListService(_0x121351),this['ApiKeys']=new ApiKeyService(_0x121351),this['SearchServers']=new SearchServersService(_0x121351),this['Facets']=new FacetService(_0x121351),this['SearchResults']=new SearchResultService(_0x121351),this['Contributors']=new ContributorService(_0x121351),this['SearchableFields']=new SearchableFieldService(_0x121351),this['Suggesters']=new SuggesterService(_0x121351),this['ServiceGroups']=new ServiceGroupService(_0x121351);}}class AuthClient{constructor(_0x1303a3='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1303a3);}['login'](_0x32ef0d){return __awaiter(this,void 0,void 0,function*(){const _0x8ad4ea='login/'+_0x32ef0d;try{const _0x1cb314=yield yield fetch(_0x8ad4ea);if(_0x1cb314['status']>0xc7&&_0x1cb314['status']<0x12c){const _0x51a766=yield _0x1cb314['json']();return new SuccessfulAuthResponse(_0x51a766);}const _0x3b253d=yield _0x1cb314['json']();return new FailedAuthResponse(_0x3b253d);}catch(_0x2e9358){if(_0x2e9358 instanceof Error)return new FailedAuthResponse({'detail':_0x2e9358['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2e9358;}});}['refresh'](_0x52cdf2){return __awaiter(this,void 0,void 0,function*(){const _0x4299f2='refresh',_0x1e9e3f={'refresh_token':_0x52cdf2};try{const _0x45bb64=yield this['fetch']['PostNoAuth'](_0x4299f2,_0x1e9e3f);if(_0x45bb64['status']>0xc7&&_0x45bb64['status']<0x12c){const _0x3bed70=yield _0x45bb64['json']();return new SuccessfulAuthResponse(_0x3bed70);}const _0x386e78=yield _0x45bb64['json']();return new FailedAuthResponse(_0x386e78);}catch(_0x279dae){if(_0x279dae instanceof Error)return new FailedAuthResponse({'detail':_0x279dae['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x279dae;}});}['getTokenStatus'](_0x10603a){if(Date['now']()<_0x10603a['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x10603a['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
26
-
27
- export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- exports.TokenStatus = void 0;(function(_0x32d7ad){_0x32d7ad[_0x32d7ad['Ok']=0x0]='Ok',_0x32d7ad[_0x32d7ad['Refresh']=0x1]='Refresh',_0x32d7ad[_0x32d7ad['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(_0x41864a){this['isSuccess']=_0x41864a;}}class SuccessfulFacetValueResponse extends Response{constructor(_0x110c82){super(!![]),this['facets']=_0x110c82;}['toSuccess'](){return this['facets'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetValuesResponse extends Response{constructor(_0x7257ca){super(![]),this['problem']=_0x7257ca;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulContributorResponse extends Response{constructor(_0x545b1a){super(!![]),this['contributor']=_0x545b1a;}['toSuccess'](){return this['contributor'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedContributorResponse extends Response{constructor(_0xb66840){super(![]),this['problem']=_0xb66840;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountAndImageResponse extends Response{constructor(_0x1486ec){super(!![]),this['accountAndImages']=_0x1486ec;}['toSuccess'](){return this['accountAndImages'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountAndImageResponse extends Response{constructor(_0x4ac351){super(![]),this['problem']=_0x4ac351;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulFacetResponse extends Response{constructor(_0x1142d3){super(!![]),this['facet']=_0x1142d3;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x1d6c44){super(![]),this['problem']=_0x1d6c44;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedSearchableFieldResponse extends Response{constructor(_0x337a06){super(![]),this['problem']=_0x337a06;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchableFieldResponse extends Response{constructor(_0x59251d){super(!![]),this['searchable_field']=_0x59251d;}['toSuccess'](){return this['searchable_field'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountResponse extends Response{constructor(_0x537834){super(!![]),this['account']=_0x537834;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountImageResponse extends Response{constructor(_0x4a98a2){super(!![]),this['accountImage']=_0x4a98a2;}['toSuccess'](){return this['accountImage'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x5a9aca){super(!![]),this['list']=_0x5a9aca;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulGroupResponse extends Response{constructor(_0x4598a9){super(!![]),this['group']=_0x4598a9;}['toSuccess'](){return this['group'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedGroupResponse extends Response{constructor(_0x495a05){super(![]),this['problem']=_0x495a05;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListResponse extends Response{constructor(_0x153661){super(!![]),this['list']=_0x153661;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedListResponse extends Response{constructor(_0x111a29){super(![]),this['problem']=_0x111a29;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSuggesterResponse extends Response{constructor(_0xbf807e){super(!![]),this['suggester']=_0xbf807e;}['toSuccess'](){return this['suggester'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSuggesterResponse extends Response{constructor(_0x24d739){super(![]),this['problem']=_0x24d739;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountResponse extends Response{constructor(_0x5355e7){super(![]),this['problem']=_0x5355e7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountImageResponse extends Response{constructor(_0x2f3464){super(![]),this['problem']=_0x2f3464;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x5db568){super(![]),this['problem']=_0x5db568;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x17f9cd){super(!![]),this['tokens']=_0x17f9cd;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x3c2999){super(![]),this['problem']=_0x3c2999;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x110f11){super(!![]),this['apiKey']=_0x110f11;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1952b6){super(![]),this['problem']=_0x1952b6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x30ef31){super(!![]),this['searchService']=_0x30ef31;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x3d1cba){super(![]),this['problem']=_0x3d1cba;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x55c24a){super(!![]),this['searchService']=_0x55c24a;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x19c9e6){super(!![]),this['searchResult']=_0x19c9e6;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x39fe79){super(![]),this['problem']=_0x39fe79;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchResultResponse extends Response{constructor(_0x2890c2){super(!![]),this['searchResults']=_0x2890c2;}['toSuccess'](){return this['searchResults'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchResultResponse extends Response{constructor(_0x4cb971){super(![]),this['problem']=_0x4cb971;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x4d81aa){super(!![]),this['searchServices']=_0x4d81aa;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x55d491){super(![]),this['problem']=_0x55d491;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x3dcd57){super(![]),this['problem']=_0x3dcd57;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x50f1ea){super(!![]),this['apiKeyValue']=_0x50f1ea;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x4f8f22){super(!![]),this['obj']=_0x4f8f22;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x1e6810){super(![]),this['problem']=_0x1e6810;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x1f665c){super(![]),this['problem']=_0x1f665c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
-
5
- var __awaiter$b=undefined&&undefined['__awaiter']||function(_0x5a67f2,_0x1f1562,_0x87162d,_0xa396c5){function _0x262e24(_0x5c53d7){return _0x5c53d7 instanceof _0x87162d?_0x5c53d7:new _0x87162d(function(_0x3c0626){_0x3c0626(_0x5c53d7);});}return new(_0x87162d||(_0x87162d=Promise))(function(_0x2d9321,_0x2cfc9a){function _0x2047be(_0x4a5e69){try{_0x2263e7(_0xa396c5['next'](_0x4a5e69));}catch(_0x58d5f0){_0x2cfc9a(_0x58d5f0);}}function _0xfe16df(_0x3b33fc){try{_0x2263e7(_0xa396c5['throw'](_0x3b33fc));}catch(_0x58264d){_0x2cfc9a(_0x58264d);}}function _0x2263e7(_0x59d396){_0x59d396['done']?_0x2d9321(_0x59d396['value']):_0x262e24(_0x59d396['value'])['then'](_0x2047be,_0xfe16df);}_0x2263e7((_0xa396c5=_0xa396c5['apply'](_0x5a67f2,_0x1f1562||[]))['next']());});};class AccountService{constructor(_0x5f572b){this['fetch']=_0x5f572b;}['get'](_0x72151,_0x13acaa){return __awaiter$b(this,void 0,void 0,function*(){const _0x2618fb='Account/'+_0x72151+'/',_0x47cf57=yield this['fetch']['get'](_0x2618fb,_0x13acaa);try{if(_0x47cf57['status']>0xc7&&_0x47cf57['status']<0x12c){const _0x108eef=yield _0x47cf57['json']();return new SuccessfulAccountResponse(_0x108eef);}const _0x22fb4f=yield _0x47cf57['json']();return new FailedAccountResponse(_0x22fb4f);}catch(_0x10313b){if(_0x10313b instanceof Error)return new FailedAccountResponse({'detail':_0x10313b['message'],'title':_0x10313b['name'],'status':0x1f4,'instance':'','type':''});throw _0x10313b;}});}['getImage'](_0x5d4f78,_0x342f25){return __awaiter$b(this,void 0,void 0,function*(){const _0x33e0b4='account/image/'+_0x5d4f78+'/',_0x31c7f7=yield this['fetch']['get'](_0x33e0b4,_0x342f25);try{if(_0x31c7f7['status']>0xc7&&_0x31c7f7['status']<0x12c){const _0xd6554d=yield _0x31c7f7['json']();return new SuccessfulAccountImageResponse(_0xd6554d);}const _0x49ae55=yield _0x31c7f7['json']();return new FailedAccountImageResponse(_0x49ae55);}catch(_0x5b743b){if(_0x5b743b instanceof Error)return new FailedAccountImageResponse({'detail':_0x5b743b['message'],'title':_0x5b743b['name'],'status':0x1f4,'instance':'','type':''});throw _0x5b743b;}});}}
6
-
7
- var __awaiter$a=undefined&&undefined['__awaiter']||function(_0x58b936,_0x49bbbf,_0x2faf1a,_0x564fe4){function _0x4fbea6(_0x13ebdf){return _0x13ebdf instanceof _0x2faf1a?_0x13ebdf:new _0x2faf1a(function(_0x2fb5e6){_0x2fb5e6(_0x13ebdf);});}return new(_0x2faf1a||(_0x2faf1a=Promise))(function(_0x1c87da,_0x1e2f92){function _0x5cfe75(_0x34de8a){try{_0x59d4ea(_0x564fe4['next'](_0x34de8a));}catch(_0x1a2414){_0x1e2f92(_0x1a2414);}}function _0x3545c4(_0x3449a4){try{_0x59d4ea(_0x564fe4['throw'](_0x3449a4));}catch(_0x4e5753){_0x1e2f92(_0x4e5753);}}function _0x59d4ea(_0x433156){_0x433156['done']?_0x1c87da(_0x433156['value']):_0x4fbea6(_0x433156['value'])['then'](_0x5cfe75,_0x3545c4);}_0x59d4ea((_0x564fe4=_0x564fe4['apply'](_0x58b936,_0x49bbbf||[]))['next']());});};class ApiKeyService{constructor(_0x5ed934){this['fetch']=_0x5ed934,this['path']='api-key';}['create'](_0x5945a0,_0x42dad8,_0x43b828){return __awaiter$a(this,void 0,void 0,function*(){const _0xedb6={'account_name':_0x5945a0,'api_key_name':_0x42dad8};try{const _0x194e55=yield this['fetch']['post'](this['path'],_0x43b828,_0xedb6);if(_0x194e55['status']>0xc7&&_0x194e55['status']<0x12c){const _0x314c76=yield _0x194e55['json']();return new SuccessfulApiKeyResponse(_0x314c76);}const _0x2101d5=yield _0x194e55['json']();return new FailedApiKeyResponse(_0x2101d5);}catch(_0x40185a){if(_0x40185a instanceof Error)return new FailedApiKeyResponse({'detail':_0x40185a['message'],'title':_0x40185a['name'],'status':0x1f4,'instance':'','type':''});throw _0x40185a;}});}['view'](_0x3dca4f,_0x110251,_0x19e36e){return __awaiter$a(this,void 0,void 0,function*(){const _0x3413bc=this['path']+'/'+_0x3dca4f+'/'+_0x110251;try{const _0x55a811=yield this['fetch']['get'](_0x3413bc,_0x19e36e);if(_0x55a811['status']>0xc7&&_0x55a811['status']<0x12c){const _0x374aaf=yield _0x55a811['json']();return new SuccessfulApiKeyValueResponse(_0x374aaf);}const _0x5609f3=yield _0x55a811['json']();return new FailedApiKeyValueResponse(_0x5609f3);}catch(_0x4226b4){if(_0x4226b4 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x4226b4['message'],'title':_0x4226b4['name'],'status':0x1f4,'instance':'','type':''});throw _0x4226b4;}});}['delete'](_0x2ae47e,_0x4950a4,_0x49affb){return __awaiter$a(this,void 0,void 0,function*(){const _0x3e05e6=this['path']+'/'+_0x2ae47e+'/'+_0x4950a4;try{const _0x483ad0=yield this['fetch']['delete'](_0x3e05e6,_0x49affb);if(_0x483ad0['status']>0xc7&&_0x483ad0['status']<0x12c)return new SuccessfulResponse({});const _0x24d42e=yield _0x483ad0['json']();return new FailedResponse(_0x24d42e);}catch(_0x17c0f7){if(_0x17c0f7 instanceof Error)return new FailedResponse({'detail':_0x17c0f7['message'],'title':_0x17c0f7['name'],'status':0x1f4,'instance':'','type':''});throw _0x17c0f7;}});}}
8
-
9
- var __awaiter$9=undefined&&undefined['__awaiter']||function(_0x5a2855,_0xf5ff5e,_0xee21c3,_0x3812aa){function _0x13ba64(_0x389b7f){return _0x389b7f instanceof _0xee21c3?_0x389b7f:new _0xee21c3(function(_0x23e2f1){_0x23e2f1(_0x389b7f);});}return new(_0xee21c3||(_0xee21c3=Promise))(function(_0x2119bd,_0x283c39){function _0x1cdd14(_0x25c565){try{_0x1a87aa(_0x3812aa['next'](_0x25c565));}catch(_0x54e53f){_0x283c39(_0x54e53f);}}function _0xc41123(_0x1715eb){try{_0x1a87aa(_0x3812aa['throw'](_0x1715eb));}catch(_0x1d4075){_0x283c39(_0x1d4075);}}function _0x1a87aa(_0x2cbaba){_0x2cbaba['done']?_0x2119bd(_0x2cbaba['value']):_0x13ba64(_0x2cbaba['value'])['then'](_0x1cdd14,_0xc41123);}_0x1a87aa((_0x3812aa=_0x3812aa['apply'](_0x5a2855,_0xf5ff5e||[]))['next']());});};class ListService{constructor(_0x556181){this['fetch']=_0x556181,this['path']='list';}['create'](_0x4be1f7,_0x4093b2,_0x546bbc,_0x519bf6){return __awaiter$9(this,void 0,void 0,function*(){const _0x1fd343={'account_name':_0x4be1f7,'list_name':_0x4093b2,'search_service_name_or_group':_0x546bbc};try{const _0x2b04fd=yield this['fetch']['post'](this['path'],_0x519bf6,_0x1fd343);if(_0x2b04fd['status']>0xc7&&_0x2b04fd['status']<0x12c){const _0x31f072=yield _0x2b04fd['json']();return new SuccessfulListIdentityResponse(_0x31f072);}const _0x37e5aa=yield _0x2b04fd['json']();return new FailedListIdentityResponse(_0x37e5aa);}catch(_0xb0b1e0){if(_0xb0b1e0 instanceof Error)return new FailedListIdentityResponse({'detail':_0xb0b1e0['message'],'title':_0xb0b1e0['name'],'status':0x1f4,'instance':'','type':''});throw _0xb0b1e0;}});}['delete'](_0x4ad819,_0x9edeb8,_0x4f23b7){return __awaiter$9(this,void 0,void 0,function*(){const _0x1443b9=this['path']+'/'+_0x4ad819+'/'+_0x9edeb8,_0xcafeaf=yield this['fetch']['delete'](_0x1443b9,_0x4f23b7);try{if(_0xcafeaf['status']>0xc7&&_0xcafeaf['status']<0x12c)return new SuccessfulResponse({});const _0x335ca5=yield _0xcafeaf['json']();return new FailedResponse(_0x335ca5);}catch(_0x5c5c25){if(_0x5c5c25 instanceof Error)return new FailedResponse({'detail':_0x5c5c25['message'],'title':_0x5c5c25['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c5c25;}});}['get'](_0x85c0c0,_0x156692,_0x202d6e){return __awaiter$9(this,void 0,void 0,function*(){const _0x28032c=this['path']+'/'+_0x85c0c0+'/'+_0x156692;try{const _0x315e3a=yield this['fetch']['get'](_0x28032c,_0x202d6e);if(_0x315e3a['status']>0xc7&&_0x315e3a['status']<0x12c){const _0x11c39d=yield _0x315e3a['json']();return new SuccessfulListResponse(_0x11c39d);}const _0x5bb7a5=yield _0x315e3a['json']();return new FailedListResponse(_0x5bb7a5);}catch(_0x55ef2d){if(_0x55ef2d instanceof Error)return new FailedListResponse({'detail':_0x55ef2d['message'],'title':_0x55ef2d['name'],'status':0x1f4,'instance':'','type':''});throw _0x55ef2d;}});}}
10
-
11
- var __awaiter$8=undefined&&undefined['__awaiter']||function(_0x1f1584,_0x5195f0,_0x22a470,_0x1e605f){function _0x1af76a(_0x344060){return _0x344060 instanceof _0x22a470?_0x344060:new _0x22a470(function(_0x2170b1){_0x2170b1(_0x344060);});}return new(_0x22a470||(_0x22a470=Promise))(function(_0x9dfde1,_0x5062db){function _0x1cddb3(_0xda2f8a){try{_0x4a55c7(_0x1e605f['next'](_0xda2f8a));}catch(_0x3baf18){_0x5062db(_0x3baf18);}}function _0x5157ac(_0x375908){try{_0x4a55c7(_0x1e605f['throw'](_0x375908));}catch(_0x5d03ef){_0x5062db(_0x5d03ef);}}function _0x4a55c7(_0x555abc){_0x555abc['done']?_0x9dfde1(_0x555abc['value']):_0x1af76a(_0x555abc['value'])['then'](_0x1cddb3,_0x5157ac);}_0x4a55c7((_0x1e605f=_0x1e605f['apply'](_0x1f1584,_0x5195f0||[]))['next']());});};class Fetch{constructor(_0x2b3e6d){this['baseUri']=_0x2b3e6d,this['getUrl']=_0x5ca16f=>{return _0x5ca16f['startsWith']('/')&&(_0x5ca16f=_0x5ca16f['replace']('/','')),''+this['baseUri']+_0x5ca16f;},!_0x2b3e6d['endsWith']('/')&&(_0x2b3e6d=_0x2b3e6d+'/');}['get'](_0xb49f36,_0x89a490){return __awaiter$8(this,void 0,void 0,function*(){const _0x3e6358=this['getUrl'](_0xb49f36);return yield fetch(_0x3e6358,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x89a490}});});}['post'](_0x8a43b5,_0x319395,_0x2124d9){return __awaiter$8(this,void 0,void 0,function*(){const _0x1fa910=this['getUrl'](_0x8a43b5);return yield fetch(_0x1fa910,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x319395},'body':_0x2124d9?JSON['stringify'](_0x2124d9):null});});}['PostNoAuth'](_0x2f092f,_0xa03d8c){return __awaiter$8(this,void 0,void 0,function*(){const _0x5f2122=this['getUrl'](_0x2f092f);return yield fetch(_0x5f2122,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0xa03d8c?JSON['stringify'](_0xa03d8c):null});});}['put'](_0x5e647f,_0xd6c30a,_0x4bfa45){return __awaiter$8(this,void 0,void 0,function*(){const _0x40637a=this['getUrl'](_0x5e647f);return yield fetch(_0x40637a,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xd6c30a},'body':_0x4bfa45?JSON['stringify'](_0x4bfa45):null});});}['delete'](_0x1abeee,_0x5c8b38){return __awaiter$8(this,void 0,void 0,function*(){const _0x492589=this['getUrl'](_0x1abeee);return yield fetch(_0x492589,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5c8b38}});});}}
12
-
13
- var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x53feaf,_0x189c52,_0x59c717,_0xbdff02){function _0x361969(_0x3945de){return _0x3945de instanceof _0x59c717?_0x3945de:new _0x59c717(function(_0x41eafe){_0x41eafe(_0x3945de);});}return new(_0x59c717||(_0x59c717=Promise))(function(_0x56e930,_0x8a5f41){function _0x555f9c(_0x1591e2){try{_0x27f34e(_0xbdff02['next'](_0x1591e2));}catch(_0x1c593a){_0x8a5f41(_0x1c593a);}}function _0x1eafec(_0xb4d0ba){try{_0x27f34e(_0xbdff02['throw'](_0xb4d0ba));}catch(_0x49817d){_0x8a5f41(_0x49817d);}}function _0x27f34e(_0x521993){_0x521993['done']?_0x56e930(_0x521993['value']):_0x361969(_0x521993['value'])['then'](_0x555f9c,_0x1eafec);}_0x27f34e((_0xbdff02=_0xbdff02['apply'](_0x53feaf,_0x189c52||[]))['next']());});};class SearchServersService{constructor(_0x241ac6){this['fetch']=_0x241ac6,this['path']='search-services';}['create'](_0x4bda47,_0x47eb3c,_0x1da690,_0x3c47ac,_0x2e2bfc,_0x5274a6,_0x5e88d9,_0x27fc65){return __awaiter$7(this,void 0,void 0,function*(){const _0x53f2f4={'account_name':_0x4bda47,'search_service_name':_0x47eb3c,'endpoint':_0x1da690,'key':_0x3c47ac,'country':_0x2e2bfc,'provider':_0x5274a6,'index_name':_0x5e88d9};try{const _0x12ff7d=yield this['fetch']['post'](this['path'],_0x27fc65,_0x53f2f4);if(_0x12ff7d['status']>0xc7&&_0x12ff7d['status']<0x12c){const _0x324b56=yield _0x12ff7d['json']();return new SuccessfulSearchServiceResponse(_0x324b56);}const _0x12333c=yield _0x12ff7d['json']();return new FailedSearchServiceResponse(_0x12333c);}catch(_0x732dba){if(_0x732dba instanceof Error)return new FailedSearchServiceResponse({'detail':_0x732dba['message'],'title':_0x732dba['name'],'status':0x1f4,'instance':'','type':''});throw _0x732dba;}});}['delete'](_0x46e588,_0x44bf54,_0x3872f2){return __awaiter$7(this,void 0,void 0,function*(){const _0x1b8ecc=this['path']+'/'+_0x46e588+'/'+_0x44bf54;try{const _0x355347=yield this['fetch']['delete'](_0x1b8ecc,_0x3872f2);if(_0x355347['status']>0xc7&&_0x355347['status']<0x12c)return new SuccessfulResponse({});const _0x368760=yield _0x355347['json']();return new FailedResponse(_0x368760);}catch(_0x30d208){if(_0x30d208 instanceof Error)return new FailedResponse({'detail':_0x30d208['message'],'title':_0x30d208['name'],'status':0x1f4,'instance':'','type':''});throw _0x30d208;}});}['view'](_0x16be7f,_0x5061e0,_0x2d73f9){return __awaiter$7(this,void 0,void 0,function*(){const _0x3f0257=this['path']+'/'+_0x16be7f+'/'+_0x5061e0;try{const _0x41ab38=yield this['fetch']['get'](_0x3f0257,_0x2d73f9);if(_0x41ab38['status']>0xc7&&_0x41ab38['status']<0x12c){const _0x42c69b=yield _0x41ab38['json']();return new SuccessfulViewSearchServiceResponse(_0x42c69b);}const _0x5e222b=yield _0x41ab38['json']();return new FailedViewSearchServiceResponse(_0x5e222b);}catch(_0x54624f){if(_0x54624f instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x54624f['message'],'title':_0x54624f['name'],'status':0x1f4,'instance':'','type':''});throw _0x54624f;}});}['edit'](_0x22af8e,_0x1b8a86,_0x17cede,_0x557424,_0x2ee6f3){return __awaiter$7(this,void 0,void 0,function*(){const _0x200931={'account_name':_0x22af8e,'search_service_name':_0x1b8a86,'key':_0x17cede,'country':_0x557424};try{const _0x112535=yield this['fetch']['put'](this['path'],_0x2ee6f3,_0x200931);if(_0x112535['status']>0xc7&&_0x112535['status']<0x12c){const _0x27fb3e=yield _0x112535['json']();return new SuccessfulSearchServiceResponse(_0x27fb3e);}const _0x1bdc0e=yield _0x112535['json']();return new FailedSearchServiceResponse(_0x1bdc0e);}catch(_0x1b1f4f){if(_0x1b1f4f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1b1f4f['message'],'title':_0x1b1f4f['name'],'status':0x1f4,'instance':'','type':''});throw _0x1b1f4f;}});}['list'](_0x27dd85,_0x1b9ebb){return __awaiter$7(this,void 0,void 0,function*(){const _0xcc9f0f=this['path']+'/'+_0x27dd85;try{const _0x1a0551=yield this['fetch']['get'](_0xcc9f0f,_0x1b9ebb);if(_0x1a0551['status']>0xc7&&_0x1a0551['status']<0x12c){const _0x47454a=yield _0x1a0551['json']();return new SuccessfulListSearchServiceResponse(_0x47454a);}const _0x354058=yield _0x1a0551['json']();return new FailedViewSearchServicesResponse(_0x354058);}catch(_0x5b5715){if(_0x5b5715 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5b5715['message'],'title':_0x5b5715['name'],'status':0x1f4,'instance':'','type':''});throw _0x5b5715;}});}}
14
-
15
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x1501a0,_0x168fb3,_0x4d606a,_0x4483dd){function _0x54b029(_0x2853d7){return _0x2853d7 instanceof _0x4d606a?_0x2853d7:new _0x4d606a(function(_0x2e5abb){_0x2e5abb(_0x2853d7);});}return new(_0x4d606a||(_0x4d606a=Promise))(function(_0x13e44b,_0x50b782){function _0x841310(_0x4182bb){try{_0x3520a9(_0x4483dd['next'](_0x4182bb));}catch(_0x3ea57a){_0x50b782(_0x3ea57a);}}function _0x2ea441(_0x247e86){try{_0x3520a9(_0x4483dd['throw'](_0x247e86));}catch(_0x3a7df7){_0x50b782(_0x3a7df7);}}function _0x3520a9(_0x4405ed){_0x4405ed['done']?_0x13e44b(_0x4405ed['value']):_0x54b029(_0x4405ed['value'])['then'](_0x841310,_0x2ea441);}_0x3520a9((_0x4483dd=_0x4483dd['apply'](_0x1501a0,_0x168fb3||[]))['next']());});};class FacetService{constructor(_0x3a1315){this['fetch']=_0x3a1315,this['path']='facet';}['create'](_0x279360,_0x5b5203,_0x4c8766,_0x5b0b2b){return __awaiter$6(this,void 0,void 0,function*(){const _0x4664c7={'account_name':_0x279360,'list_name':_0x5b5203,'facet_name':_0x4c8766};try{const _0x226441=yield this['fetch']['post'](this['path'],_0x5b0b2b,_0x4664c7);if(_0x226441['status']>0xc7&&_0x226441['status']<0x12c){const _0x3cde10=yield _0x226441['json']();return new SuccessfulFacetResponse(_0x3cde10);}const _0x4a0755=yield _0x226441['json']();return new FailedFacetResponse(_0x4a0755);}catch(_0x2bd968){if(_0x2bd968 instanceof Error)return new FailedFacetResponse({'detail':_0x2bd968['message'],'title':_0x2bd968['name'],'status':0x1f4,'instance':'','type':''});throw _0x2bd968;}});}['remove'](_0x118a25,_0x106307,_0x28b756,_0x3ba35b){return __awaiter$6(this,void 0,void 0,function*(){const _0xe9e0ef='Facet/'+_0x118a25+'/'+_0x106307+'/'+_0x28b756,_0x55e37=yield this['fetch']['delete'](_0xe9e0ef,_0x3ba35b);try{if(_0x55e37['status']>0xc7&&_0x55e37['status']<0x12c)return new SuccessfulResponse({});const _0x236ac0=yield _0x55e37['json']();return new FailedResponse(_0x236ac0);}catch(_0x55be96){if(_0x55be96 instanceof Error)return new FailedResponse({'detail':_0x55be96['message'],'title':_0x55be96['name'],'status':0x1f4,'instance':'','type':''});throw _0x55be96;}});}['rename'](_0x37bc4c,_0x33aaa5,_0x368e42,_0x5026c1,_0x1a6aca){return __awaiter$6(this,void 0,void 0,function*(){const _0x9247a6={'account_name':_0x37bc4c,'list_name':_0x33aaa5,'facet_name':_0x368e42,'new_facet_name':_0x5026c1};try{const _0x371b56=yield this['fetch']['put'](this['path'],_0x1a6aca,_0x9247a6);if(_0x371b56['status']>0xc7&&_0x371b56['status']<0x12c){const _0xbf13ac=yield _0x371b56['json']();return new SuccessfulFacetResponse(_0xbf13ac);}const _0x4ed9aa=yield _0x371b56['json']();return new FailedFacetResponse(_0x4ed9aa);}catch(_0x5ce682){if(_0x5ce682 instanceof Error)return new FailedFacetResponse({'detail':_0x5ce682['message'],'title':_0x5ce682['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ce682;}});}['list'](_0x48ac1a,_0x110e50,_0x3e280b,_0x346715,_0x325cdd){return __awaiter$6(this,void 0,void 0,function*(){let _0x4abc30=this['path']+'/'+_0x48ac1a+'/'+_0x110e50+'/'+_0x3e280b+'/'+_0x346715;try{const _0xe50c0d=yield this['fetch']['get'](_0x4abc30,_0x325cdd);if(_0xe50c0d['status']>0xc7&&_0xe50c0d['status']<0x12c){const _0x23a82c=yield _0xe50c0d['json']();return new SuccessfulFacetValueResponse(_0x23a82c);}const _0x4a177d=yield _0xe50c0d['json']();return new FailedFacetValuesResponse(_0x4a177d);}catch(_0x25b725){if(_0x25b725 instanceof Error)return new FailedFacetValuesResponse({'detail':_0x25b725['message'],'title':_0x25b725['name'],'status':0x1f4,'instance':'','type':''});throw _0x25b725;}});}}
16
-
17
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0xe42efe,_0x13de0d,_0x202dcc,_0x50fb5a){function _0x2a00b1(_0x3888eb){return _0x3888eb instanceof _0x202dcc?_0x3888eb:new _0x202dcc(function(_0x561d68){_0x561d68(_0x3888eb);});}return new(_0x202dcc||(_0x202dcc=Promise))(function(_0x3510e1,_0x33baf1){function _0x196e99(_0x2b2d5e){try{_0x183a0f(_0x50fb5a['next'](_0x2b2d5e));}catch(_0x476ec0){_0x33baf1(_0x476ec0);}}function _0x49f66b(_0x4659c4){try{_0x183a0f(_0x50fb5a['throw'](_0x4659c4));}catch(_0x4a3506){_0x33baf1(_0x4a3506);}}function _0x183a0f(_0x5b8928){_0x5b8928['done']?_0x3510e1(_0x5b8928['value']):_0x2a00b1(_0x5b8928['value'])['then'](_0x196e99,_0x49f66b);}_0x183a0f((_0x50fb5a=_0x50fb5a['apply'](_0xe42efe,_0x13de0d||[]))['next']());});};class SearchResultService{constructor(_0x34ef77){this['fetch']=_0x34ef77,this['path']='search-result';}['create'](_0x368343,_0x19910d,_0x29f151,_0x77326f,_0x5dcc24){return __awaiter$5(this,void 0,void 0,function*(){_0x5dcc24=_0x5dcc24!==null&&_0x5dcc24!==void 0?_0x5dcc24:{'resource_1':'','resource_2':'','resource_3':'','latitude':0x0,'longitude':0x0,'facets':[],'searchable_fields':[]};const _0x5e1ecc=Object['assign']({'account_name':_0x368343,'search_result_name':_0x29f151,'list_name':_0x19910d},_0x5dcc24);try{const _0x130be0=yield this['fetch']['post'](this['path'],_0x77326f,_0x5e1ecc);if(_0x130be0['status']>0xc7&&_0x130be0['status']<0x12c){const _0x3bdd04=yield _0x130be0['json']();return new SuccessfulViewSearchResultResponse(_0x3bdd04);}const _0x1db604=yield _0x130be0['json']();return new FailedSearchResultResponse(_0x1db604);}catch(_0xd5dbfa){if(_0xd5dbfa instanceof Error)return new FailedSearchResultResponse({'detail':_0xd5dbfa['message'],'title':_0xd5dbfa['name'],'status':0x1f4,'instance':'','type':''});throw _0xd5dbfa;}});}['transfer'](_0x311a72,_0x54494d,_0x5cc25d,_0x5a4b6b){return __awaiter$5(this,void 0,void 0,function*(){const _0x2f19af={'account_name':_0x311a72,'list_name':_0x54494d,'new_search_service_name':_0x5cc25d};try{const _0x1c3e2b=yield this['fetch']['post'](this['path']+'/transfer',_0x5a4b6b,_0x2f19af);if(_0x1c3e2b['status']>0xc7&&_0x1c3e2b['status']<0x12c){const _0x1513e7=yield _0x1c3e2b['json']();return new SuccessfulListResponse(_0x1513e7);}const _0x2a87bc=yield _0x1c3e2b['json']();return new FailedListResponse(_0x2a87bc);}catch(_0x38a82c){if(_0x38a82c instanceof Error)return new FailedListResponse({'detail':_0x38a82c['message'],'title':_0x38a82c['name'],'status':0x1f4,'instance':'','type':''});throw _0x38a82c;}});}['list'](_0x21dea4,_0x11632a,_0x31a232,_0x4f22f9){return __awaiter$5(this,void 0,void 0,function*(){let _0x5ec875=this['path']+'/'+_0x21dea4+'/'+_0x11632a+'?'+this['getQueryStr'](_0x4f22f9);try{const _0x41f661=yield this['fetch']['get'](_0x5ec875,_0x31a232);if(_0x41f661['status']>0xc7&&_0x41f661['status']<0x12c){const _0x49cdda=yield _0x41f661['json']();return new SuccessfulListSearchResultResponse(_0x49cdda);}const _0xc305c0=yield _0x41f661['json']();return new FailedViewSearchResultResponse(_0xc305c0);}catch(_0x335bae){if(_0x335bae instanceof Error)return new FailedViewSearchResultResponse({'detail':_0x335bae['message'],'title':_0x335bae['name'],'status':0x1f4,'instance':'','type':''});throw _0x335bae;}});}['delete'](_0x363cec,_0x2a18e5,_0x5e1136,_0x20d1b4){return __awaiter$5(this,void 0,void 0,function*(){const _0x2b9532=this['path']+'/'+_0x363cec+'/'+_0x2a18e5+'/'+_0x5e1136,_0x14371c=yield this['fetch']['delete'](_0x2b9532,_0x20d1b4);try{if(_0x14371c['status']>0xc7&&_0x14371c['status']<0x12c)return new SuccessfulResponse({});const _0x1ad90f=yield _0x14371c['json']();return new FailedResponse(_0x1ad90f);}catch(_0x3d8cc){if(_0x3d8cc instanceof Error)return new FailedResponse({'detail':_0x3d8cc['message'],'title':_0x3d8cc['name'],'status':0x1f4,'instance':'','type':''});throw _0x3d8cc;}});}['getQueryStr'](_0x23a0c5){let _0x4fd40b='';const _0x548395=[];return (_0x23a0c5===null||_0x23a0c5===void 0?void 0:_0x23a0c5['size'])&&_0x548395['push']('size='+_0x23a0c5['size']),(_0x23a0c5===null||_0x23a0c5===void 0?void 0:_0x23a0c5['skip'])&&_0x548395['push']('skip='+_0x23a0c5['skip']),(_0x23a0c5===null||_0x23a0c5===void 0?void 0:_0x23a0c5['query'])&&_0x548395['push']('query='+_0x23a0c5['query']),(_0x23a0c5===null||_0x23a0c5===void 0?void 0:_0x23a0c5['filter'])&&_0x548395['push']('filter='+_0x23a0c5['filter']),(_0x23a0c5===null||_0x23a0c5===void 0?void 0:_0x23a0c5['radius'])&&_0x548395['push']('radius='+_0x23a0c5['radius']),_0x548395['length']>0x0&&_0x548395['forEach']((_0x12c2fe,_0xda8f17)=>{if(_0xda8f17>0x0&&_0x4fd40b)_0x4fd40b+='&';_0x4fd40b+=_0x12c2fe;}),_0x4fd40b;}}
18
-
19
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4157c5,_0x1e6eb7,_0x2b6343,_0x5e6057){function _0x36ec16(_0xf1f9c1){return _0xf1f9c1 instanceof _0x2b6343?_0xf1f9c1:new _0x2b6343(function(_0x40ef6b){_0x40ef6b(_0xf1f9c1);});}return new(_0x2b6343||(_0x2b6343=Promise))(function(_0x24ac7e,_0x390498){function _0xa41d02(_0x3ce383){try{_0x3d6d49(_0x5e6057['next'](_0x3ce383));}catch(_0x2ebcbb){_0x390498(_0x2ebcbb);}}function _0x526c28(_0x277517){try{_0x3d6d49(_0x5e6057['throw'](_0x277517));}catch(_0x17fb57){_0x390498(_0x17fb57);}}function _0x3d6d49(_0x52b3f2){_0x52b3f2['done']?_0x24ac7e(_0x52b3f2['value']):_0x36ec16(_0x52b3f2['value'])['then'](_0xa41d02,_0x526c28);}_0x3d6d49((_0x5e6057=_0x5e6057['apply'](_0x4157c5,_0x1e6eb7||[]))['next']());});};class ContributorService{constructor(_0x1d25c7){this['fetch']=_0x1d25c7,this['path']='contributor';}['create'](_0x2b23e1,_0x4c8c46,_0x4e86ef,_0x1280d9){return __awaiter$4(this,void 0,void 0,function*(){const _0x38f65e={'account_name':_0x2b23e1,'list_name':_0x4c8c46,'contributor_name':_0x4e86ef};try{const _0x350a43=yield this['fetch']['post'](this['path'],_0x1280d9,_0x38f65e);if(_0x350a43['status']>0xc7&&_0x350a43['status']<0x12c){const _0x85d4a2=yield _0x350a43['json']();return new SuccessfulContributorResponse(_0x85d4a2);}const _0x22c4ca=yield _0x350a43['json']();return new FailedContributorResponse(_0x22c4ca);}catch(_0x214fe1){if(_0x214fe1 instanceof Error)return new FailedContributorResponse({'detail':_0x214fe1['message'],'title':_0x214fe1['name'],'status':0x1f4,'instance':'','type':''});throw _0x214fe1;}});}['remove'](_0x461b78,_0x21fcda,_0x1399c5,_0x570b7f){return __awaiter$4(this,void 0,void 0,function*(){const _0x1b53f9=this['path']+'/'+_0x461b78+'/'+_0x21fcda+'/'+_0x1399c5,_0x328c1f=yield this['fetch']['delete'](_0x1b53f9,_0x570b7f);try{if(_0x328c1f['status']>0xc7&&_0x328c1f['status']<0x12c)return new SuccessfulResponse({});const _0x5bf33d=yield _0x328c1f['json']();return new FailedResponse(_0x5bf33d);}catch(_0x46790f){if(_0x46790f instanceof Error)return new FailedResponse({'detail':_0x46790f['message'],'title':_0x46790f['name'],'status':0x1f4,'instance':'','type':''});throw _0x46790f;}});}['startsWith'](_0x1c8f2e,_0x449c0d){return __awaiter$4(this,void 0,void 0,function*(){const _0x20db16=this['path']+'/'+_0x1c8f2e;try{const _0xfbf949=yield this['fetch']['get'](_0x20db16,_0x449c0d);if(_0xfbf949['status']>0xc7&&_0xfbf949['status']<0x12c){const _0x169442=yield _0xfbf949['json']();return new SuccessfulAccountAndImageResponse(_0x169442);}const _0x30fb6b=yield _0xfbf949['json']();return new FailedAccountAndImageResponse(_0x30fb6b);}catch(_0x26852a){if(_0x26852a instanceof Error)return new FailedAccountAndImageResponse({'detail':_0x26852a['message'],'title':_0x26852a['name'],'status':0x1f4,'instance':'','type':''});throw _0x26852a;}});}}
20
-
21
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x57e73d,_0x28197c,_0x9efd3e,_0x4ff45d){function _0x5b1ad1(_0x5d2bda){return _0x5d2bda instanceof _0x9efd3e?_0x5d2bda:new _0x9efd3e(function(_0x291d48){_0x291d48(_0x5d2bda);});}return new(_0x9efd3e||(_0x9efd3e=Promise))(function(_0x59eb23,_0x5d0430){function _0x43769d(_0x3ef4ab){try{_0x14a50f(_0x4ff45d['next'](_0x3ef4ab));}catch(_0x561a4d){_0x5d0430(_0x561a4d);}}function _0x118542(_0x477405){try{_0x14a50f(_0x4ff45d['throw'](_0x477405));}catch(_0x384a7b){_0x5d0430(_0x384a7b);}}function _0x14a50f(_0x543b3e){_0x543b3e['done']?_0x59eb23(_0x543b3e['value']):_0x5b1ad1(_0x543b3e['value'])['then'](_0x43769d,_0x118542);}_0x14a50f((_0x4ff45d=_0x4ff45d['apply'](_0x57e73d,_0x28197c||[]))['next']());});};class SearchableFieldService{constructor(_0x1a46b5){this['fetch']=_0x1a46b5,this['path']='searchable-field';}['create'](_0x12ec81,_0x263801,_0x17c69e,_0x358b44){return __awaiter$3(this,void 0,void 0,function*(){const _0x536bf8={'account_name':_0x12ec81,'list_name':_0x263801,'searchable_field_name':_0x17c69e};try{const _0xd569a1=yield this['fetch']['post'](this['path'],_0x358b44,_0x536bf8);if(_0xd569a1['status']>0xc7&&_0xd569a1['status']<0x12c){const _0x2b592c=yield _0xd569a1['json']();return new SuccessfulSearchableFieldResponse(_0x2b592c);}const _0x4bbd6a=yield _0xd569a1['json']();return new FailedSearchableFieldResponse(_0x4bbd6a);}catch(_0xf4b962){if(_0xf4b962 instanceof Error)return new FailedSearchableFieldResponse({'detail':_0xf4b962['message'],'title':_0xf4b962['name'],'status':0x1f4,'instance':'','type':''});throw _0xf4b962;}});}['remove'](_0x2b524d,_0x4a04ef,_0x448adc,_0x1c062d){return __awaiter$3(this,void 0,void 0,function*(){const _0x260f25=this['path']+'/'+_0x2b524d+'/'+_0x4a04ef+'/'+_0x448adc,_0x28c915=yield this['fetch']['delete'](_0x260f25,_0x1c062d);try{if(_0x28c915['status']>0xc7&&_0x28c915['status']<0x12c)return new SuccessfulResponse({});const _0x3f93c3=yield _0x28c915['json']();return new FailedResponse(_0x3f93c3);}catch(_0x378ceb){if(_0x378ceb instanceof Error)return new FailedResponse({'detail':_0x378ceb['message'],'title':_0x378ceb['name'],'status':0x1f4,'instance':'','type':''});throw _0x378ceb;}});}['rename'](_0x5f1d1b,_0x3c550d,_0x343086,_0x574502,_0x2abfe4){return __awaiter$3(this,void 0,void 0,function*(){const _0x1c6237={'account_name':_0x5f1d1b,'list_name':_0x3c550d,'searchable_field_name':_0x343086,'new_searchable_field_name':_0x574502};try{const _0x1d197e=yield this['fetch']['put'](this['path'],_0x2abfe4,_0x1c6237);if(_0x1d197e['status']>0xc7&&_0x1d197e['status']<0x12c){const _0x34c339=yield _0x1d197e['json']();return new SuccessfulSearchableFieldResponse(_0x34c339);}const _0x2d78d3=yield _0x1d197e['json']();return new FailedSearchableFieldResponse(_0x2d78d3);}catch(_0x1b7ace){if(_0x1b7ace instanceof Error)return new FailedSearchableFieldResponse({'detail':_0x1b7ace['message'],'title':_0x1b7ace['name'],'status':0x1f4,'instance':'','type':''});throw _0x1b7ace;}});}}
22
-
23
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1931d8,_0x156468,_0x8e4795,_0x34abaa){function _0x7da8b1(_0x2ac2b9){return _0x2ac2b9 instanceof _0x8e4795?_0x2ac2b9:new _0x8e4795(function(_0x3cb048){_0x3cb048(_0x2ac2b9);});}return new(_0x8e4795||(_0x8e4795=Promise))(function(_0x3c783d,_0x5f1afc){function _0x20bf31(_0x5aaefe){try{_0x1764cd(_0x34abaa['next'](_0x5aaefe));}catch(_0x31c2b2){_0x5f1afc(_0x31c2b2);}}function _0x1af799(_0x4dad56){try{_0x1764cd(_0x34abaa['throw'](_0x4dad56));}catch(_0x4d24d1){_0x5f1afc(_0x4d24d1);}}function _0x1764cd(_0x18bf07){_0x18bf07['done']?_0x3c783d(_0x18bf07['value']):_0x7da8b1(_0x18bf07['value'])['then'](_0x20bf31,_0x1af799);}_0x1764cd((_0x34abaa=_0x34abaa['apply'](_0x1931d8,_0x156468||[]))['next']());});};class SuggesterService{constructor(_0x489114){this['fetch']=_0x489114,this['path']='suggester';}['create'](_0x15c1d9,_0x41f460,_0x5b32d8,_0x5d48f0){return __awaiter$2(this,void 0,void 0,function*(){const _0x3ffbac={'account_name':_0x15c1d9,'suggester_name':_0x41f460,'group_name':_0x5b32d8};try{const _0x8e3ffb=yield this['fetch']['post'](this['path'],_0x5d48f0,_0x3ffbac);if(_0x8e3ffb['status']>0xc7&&_0x8e3ffb['status']<0x12c){const _0x4298d3=yield _0x8e3ffb['json']();return new SuccessfulSuggesterResponse(_0x4298d3);}const _0x186eaf=yield _0x8e3ffb['json']();return new FailedSuggesterResponse(_0x186eaf);}catch(_0x3a1702){if(_0x3a1702 instanceof Error)return new FailedSuggesterResponse({'detail':_0x3a1702['message'],'title':_0x3a1702['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a1702;}});}}
24
-
25
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x15e396,_0x238d9b,_0x547068,_0x2f2671){function _0x5f5c58(_0x430362){return _0x430362 instanceof _0x547068?_0x430362:new _0x547068(function(_0x16f200){_0x16f200(_0x430362);});}return new(_0x547068||(_0x547068=Promise))(function(_0xb56aa1,_0x96434a){function _0xf85e7d(_0x4d6abd){try{_0x5f4890(_0x2f2671['next'](_0x4d6abd));}catch(_0x3aff32){_0x96434a(_0x3aff32);}}function _0x3177bf(_0x37cb12){try{_0x5f4890(_0x2f2671['throw'](_0x37cb12));}catch(_0x586970){_0x96434a(_0x586970);}}function _0x5f4890(_0x1af519){_0x1af519['done']?_0xb56aa1(_0x1af519['value']):_0x5f5c58(_0x1af519['value'])['then'](_0xf85e7d,_0x3177bf);}_0x5f4890((_0x2f2671=_0x2f2671['apply'](_0x15e396,_0x238d9b||[]))['next']());});};class ServiceGroupService{constructor(_0x15d42e){this['fetch']=_0x15d42e,this['path']='service-group';}['create'](_0xceca7d,_0x57bb03,_0xd0e9b,_0x557ca0){return __awaiter$1(this,void 0,void 0,function*(){const _0x37d58a={'account_name':_0xceca7d,'search_service_name':_0x57bb03,'search_service_group_name':_0xd0e9b};try{const _0x478995=yield this['fetch']['post'](this['path'],_0x557ca0,_0x37d58a);if(_0x478995['status']>0xc7&&_0x478995['status']<0x12c){const _0x16c00e=yield _0x478995['json']();return new SuccessfulGroupResponse(_0x16c00e);}const _0x4fe8c6=yield _0x478995['json']();return new FailedGroupResponse(_0x4fe8c6);}catch(_0x2bc514){if(_0x2bc514 instanceof Error)return new FailedGroupResponse({'detail':_0x2bc514['message'],'title':_0x2bc514['name'],'status':0x1f4,'instance':'','type':''});throw _0x2bc514;}});}}
26
-
27
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x15e17f,_0x2d4863,_0xfc0443,_0xa24682){function _0x57d79d(_0x1b9d6c){return _0x1b9d6c instanceof _0xfc0443?_0x1b9d6c:new _0xfc0443(function(_0xce2b06){_0xce2b06(_0x1b9d6c);});}return new(_0xfc0443||(_0xfc0443=Promise))(function(_0x2dc51b,_0x3b5cbb){function _0xe70905(_0x1a2a4a){try{_0x1e5424(_0xa24682['next'](_0x1a2a4a));}catch(_0x273b49){_0x3b5cbb(_0x273b49);}}function _0xa58b96(_0x7fdbf6){try{_0x1e5424(_0xa24682['throw'](_0x7fdbf6));}catch(_0x422074){_0x3b5cbb(_0x422074);}}function _0x1e5424(_0x357b4e){_0x357b4e['done']?_0x2dc51b(_0x357b4e['value']):_0x57d79d(_0x357b4e['value'])['then'](_0xe70905,_0xa58b96);}_0x1e5424((_0xa24682=_0xa24682['apply'](_0x15e17f,_0x2d4863||[]))['next']());});};class AdminClient{constructor(_0x440cb4='https://admin.searchability.dev/'){var _0x16a332=new Fetch(_0x440cb4);this['Accounts']=new AccountService(_0x16a332),this['Lists']=new ListService(_0x16a332),this['ApiKeys']=new ApiKeyService(_0x16a332),this['SearchServers']=new SearchServersService(_0x16a332),this['Facets']=new FacetService(_0x16a332),this['SearchResults']=new SearchResultService(_0x16a332),this['Contributors']=new ContributorService(_0x16a332),this['SearchableFields']=new SearchableFieldService(_0x16a332),this['Suggesters']=new SuggesterService(_0x16a332),this['ServiceGroups']=new ServiceGroupService(_0x16a332);}}class AuthClient{constructor(_0xefa14d='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0xefa14d);}['login'](_0x5894ba){return __awaiter(this,void 0,void 0,function*(){const _0x126017='login/'+_0x5894ba;try{const _0x267f0d=yield yield fetch(_0x126017);if(_0x267f0d['status']>0xc7&&_0x267f0d['status']<0x12c){const _0xd7edbd=yield _0x267f0d['json']();return new SuccessfulAuthResponse(_0xd7edbd);}const _0x4384fa=yield _0x267f0d['json']();return new FailedAuthResponse(_0x4384fa);}catch(_0x539f98){if(_0x539f98 instanceof Error)return new FailedAuthResponse({'detail':_0x539f98['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x539f98;}});}['refresh'](_0x16c069){return __awaiter(this,void 0,void 0,function*(){const _0x197ec5='refresh',_0x19f299={'refresh_token':_0x16c069};try{const _0x5f6915=yield this['fetch']['PostNoAuth'](_0x197ec5,_0x19f299);if(_0x5f6915['status']>0xc7&&_0x5f6915['status']<0x12c){const _0x2f7e45=yield _0x5f6915['json']();return new SuccessfulAuthResponse(_0x2f7e45);}const _0x3aa32b=yield _0x5f6915['json']();return new FailedAuthResponse(_0x3aa32b);}catch(_0x4c5b45){if(_0x4c5b45 instanceof Error)return new FailedAuthResponse({'detail':_0x4c5b45['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4c5b45;}});}['getTokenStatus'](_0x4e2323){if(Date['now']()<_0x4e2323['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x4e2323['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
28
-
29
- exports.AdminClient = AdminClient;
30
- exports.AuthClient = AuthClient;
31
- exports.Tokens = Tokens;
@@ -1,27 +0,0 @@
1
- var TokenStatus;(function(_0x225f15){_0x225f15[_0x225f15['Ok']=0x0]='Ok',_0x225f15[_0x225f15['Refresh']=0x1]='Refresh',_0x225f15[_0x225f15['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(_0xa88fd3){this['isSuccess']=_0xa88fd3;}}class SuccessfulFacetValueResponse extends Response{constructor(_0x2f67b3){super(!![]),this['facets']=_0x2f67b3;}['toSuccess'](){return this['facets'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetValuesResponse extends Response{constructor(_0x21834a){super(![]),this['problem']=_0x21834a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulContributorResponse extends Response{constructor(_0x4d4478){super(!![]),this['contributor']=_0x4d4478;}['toSuccess'](){return this['contributor'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedContributorResponse extends Response{constructor(_0x8b6cf9){super(![]),this['problem']=_0x8b6cf9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAccountAndImageResponse extends Response{constructor(_0x13f0c2){super(!![]),this['accountAndImages']=_0x13f0c2;}['toSuccess'](){return this['accountAndImages'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountAndImageResponse extends Response{constructor(_0x18a4f8){super(![]),this['problem']=_0x18a4f8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulFacetResponse extends Response{constructor(_0x11a776){super(!![]),this['facet']=_0x11a776;}['toSuccess'](){return this['facet'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedFacetResponse extends Response{constructor(_0x3cfc24){super(![]),this['problem']=_0x3cfc24;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedSearchableFieldResponse extends Response{constructor(_0x53c529){super(![]),this['problem']=_0x53c529;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchableFieldResponse extends Response{constructor(_0xce7602){super(!![]),this['searchable_field']=_0xce7602;}['toSuccess'](){return this['searchable_field'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountResponse extends Response{constructor(_0x10e032){super(!![]),this['account']=_0x10e032;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulAccountImageResponse extends Response{constructor(_0x1655d3){super(!![]),this['accountImage']=_0x1655d3;}['toSuccess'](){return this['accountImage'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x59409a){super(!![]),this['list']=_0x59409a;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulGroupResponse extends Response{constructor(_0x456168){super(!![]),this['group']=_0x456168;}['toSuccess'](){return this['group'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedGroupResponse extends Response{constructor(_0x806084){super(![]),this['problem']=_0x806084;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListResponse extends Response{constructor(_0x459233){super(!![]),this['list']=_0x459233;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedListResponse extends Response{constructor(_0x32c7f7){super(![]),this['problem']=_0x32c7f7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSuggesterResponse extends Response{constructor(_0x2431a1){super(!![]),this['suggester']=_0x2431a1;}['toSuccess'](){return this['suggester'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSuggesterResponse extends Response{constructor(_0x1e4146){super(![]),this['problem']=_0x1e4146;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountResponse extends Response{constructor(_0x463d9b){super(![]),this['problem']=_0x463d9b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedAccountImageResponse extends Response{constructor(_0x115759){super(![]),this['problem']=_0x115759;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x37fbf1){super(![]),this['problem']=_0x37fbf1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x248548){super(!![]),this['tokens']=_0x248548;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x58619d){super(![]),this['problem']=_0x58619d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x4cec14){super(!![]),this['apiKey']=_0x4cec14;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4d007e){super(![]),this['problem']=_0x4d007e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0xb7bfed){super(!![]),this['searchService']=_0xb7bfed;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x365b38){super(![]),this['problem']=_0x365b38;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x18c899){super(!![]),this['searchService']=_0x18c899;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulViewSearchResultResponse extends Response{constructor(_0x393b7e){super(!![]),this['searchResult']=_0x393b7e;}['toSuccess'](){return this['searchResult'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchResultResponse extends Response{constructor(_0x1caf7f){super(![]),this['problem']=_0x1caf7f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchResultResponse extends Response{constructor(_0x56bfd1){super(!![]),this['searchResults']=_0x56bfd1;}['toSuccess'](){return this['searchResults'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchResultResponse extends Response{constructor(_0x52f478){super(![]),this['problem']=_0x52f478;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x5568e1){super(!![]),this['searchServices']=_0x5568e1;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x2af029){super(![]),this['problem']=_0x2af029;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x12c150){super(![]),this['problem']=_0x12c150;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x555afe){super(!![]),this['apiKeyValue']=_0x555afe;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x3188f7){super(!![]),this['obj']=_0x3188f7;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x11f95e){super(![]),this['problem']=_0x11f95e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x5160b5){super(![]),this['problem']=_0x5160b5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$b=undefined&&undefined['__awaiter']||function(_0x53458a,_0x442d03,_0x2d7644,_0x15b7a5){function _0x155fb4(_0x2f11b1){return _0x2f11b1 instanceof _0x2d7644?_0x2f11b1:new _0x2d7644(function(_0x43e52f){_0x43e52f(_0x2f11b1);});}return new(_0x2d7644||(_0x2d7644=Promise))(function(_0x4926c3,_0x3669ff){function _0x5e26c5(_0x78bb32){try{_0x56b592(_0x15b7a5['next'](_0x78bb32));}catch(_0x2174c3){_0x3669ff(_0x2174c3);}}function _0x126b01(_0x18b1e7){try{_0x56b592(_0x15b7a5['throw'](_0x18b1e7));}catch(_0x21ec62){_0x3669ff(_0x21ec62);}}function _0x56b592(_0x3b0aa5){_0x3b0aa5['done']?_0x4926c3(_0x3b0aa5['value']):_0x155fb4(_0x3b0aa5['value'])['then'](_0x5e26c5,_0x126b01);}_0x56b592((_0x15b7a5=_0x15b7a5['apply'](_0x53458a,_0x442d03||[]))['next']());});};class AccountService{constructor(_0x3e5629){this['fetch']=_0x3e5629;}['get'](_0x562ba4,_0x2ff9c3){return __awaiter$b(this,void 0,void 0,function*(){const _0x5dc1a4='Account/'+_0x562ba4+'/',_0x1edf19=yield this['fetch']['get'](_0x5dc1a4,_0x2ff9c3);try{if(_0x1edf19['status']>0xc7&&_0x1edf19['status']<0x12c){const _0x3425d9=yield _0x1edf19['json']();return new SuccessfulAccountResponse(_0x3425d9);}const _0xdf6f24=yield _0x1edf19['json']();return new FailedAccountResponse(_0xdf6f24);}catch(_0x22e41f){if(_0x22e41f instanceof Error)return new FailedAccountResponse({'detail':_0x22e41f['message'],'title':_0x22e41f['name'],'status':0x1f4,'instance':'','type':''});throw _0x22e41f;}});}['getImage'](_0xaaabe6,_0x20813e){return __awaiter$b(this,void 0,void 0,function*(){const _0x5bf812='account/image/'+_0xaaabe6+'/',_0x3f92ae=yield this['fetch']['get'](_0x5bf812,_0x20813e);try{if(_0x3f92ae['status']>0xc7&&_0x3f92ae['status']<0x12c){const _0x13830b=yield _0x3f92ae['json']();return new SuccessfulAccountImageResponse(_0x13830b);}const _0x1b0b9d=yield _0x3f92ae['json']();return new FailedAccountImageResponse(_0x1b0b9d);}catch(_0x5ea0ff){if(_0x5ea0ff instanceof Error)return new FailedAccountImageResponse({'detail':_0x5ea0ff['message'],'title':_0x5ea0ff['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ea0ff;}});}}
4
-
5
- var __awaiter$a=undefined&&undefined['__awaiter']||function(_0x596df9,_0xf3fcf4,_0x796999,_0x48d1ec){function _0x597d85(_0x4d48ce){return _0x4d48ce instanceof _0x796999?_0x4d48ce:new _0x796999(function(_0x383cff){_0x383cff(_0x4d48ce);});}return new(_0x796999||(_0x796999=Promise))(function(_0x466024,_0x129196){function _0x11c3ab(_0x5315f7){try{_0x1ca900(_0x48d1ec['next'](_0x5315f7));}catch(_0x113d4a){_0x129196(_0x113d4a);}}function _0x15ed17(_0x30ff23){try{_0x1ca900(_0x48d1ec['throw'](_0x30ff23));}catch(_0x213b3a){_0x129196(_0x213b3a);}}function _0x1ca900(_0x3fd0fe){_0x3fd0fe['done']?_0x466024(_0x3fd0fe['value']):_0x597d85(_0x3fd0fe['value'])['then'](_0x11c3ab,_0x15ed17);}_0x1ca900((_0x48d1ec=_0x48d1ec['apply'](_0x596df9,_0xf3fcf4||[]))['next']());});};class ApiKeyService{constructor(_0x90cb73){this['fetch']=_0x90cb73,this['path']='api-key';}['create'](_0x399056,_0x3ad11c,_0x56f693){return __awaiter$a(this,void 0,void 0,function*(){const _0x25197a={'account_name':_0x399056,'api_key_name':_0x3ad11c};try{const _0x147b6d=yield this['fetch']['post'](this['path'],_0x56f693,_0x25197a);if(_0x147b6d['status']>0xc7&&_0x147b6d['status']<0x12c){const _0x11f848=yield _0x147b6d['json']();return new SuccessfulApiKeyResponse(_0x11f848);}const _0x321b59=yield _0x147b6d['json']();return new FailedApiKeyResponse(_0x321b59);}catch(_0x23f09f){if(_0x23f09f instanceof Error)return new FailedApiKeyResponse({'detail':_0x23f09f['message'],'title':_0x23f09f['name'],'status':0x1f4,'instance':'','type':''});throw _0x23f09f;}});}['view'](_0x92cb30,_0x1dcc3d,_0x3154f3){return __awaiter$a(this,void 0,void 0,function*(){const _0x41ed76=this['path']+'/'+_0x92cb30+'/'+_0x1dcc3d;try{const _0x279e84=yield this['fetch']['get'](_0x41ed76,_0x3154f3);if(_0x279e84['status']>0xc7&&_0x279e84['status']<0x12c){const _0x561a15=yield _0x279e84['json']();return new SuccessfulApiKeyValueResponse(_0x561a15);}const _0x173eaa=yield _0x279e84['json']();return new FailedApiKeyValueResponse(_0x173eaa);}catch(_0x1ea4fa){if(_0x1ea4fa instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1ea4fa['message'],'title':_0x1ea4fa['name'],'status':0x1f4,'instance':'','type':''});throw _0x1ea4fa;}});}['delete'](_0x82fbd4,_0xefd698,_0x2e091b){return __awaiter$a(this,void 0,void 0,function*(){const _0xd54bee=this['path']+'/'+_0x82fbd4+'/'+_0xefd698;try{const _0x3c58fa=yield this['fetch']['delete'](_0xd54bee,_0x2e091b);if(_0x3c58fa['status']>0xc7&&_0x3c58fa['status']<0x12c)return new SuccessfulResponse({});const _0x281759=yield _0x3c58fa['json']();return new FailedResponse(_0x281759);}catch(_0x59fd10){if(_0x59fd10 instanceof Error)return new FailedResponse({'detail':_0x59fd10['message'],'title':_0x59fd10['name'],'status':0x1f4,'instance':'','type':''});throw _0x59fd10;}});}}
6
-
7
- var __awaiter$9=undefined&&undefined['__awaiter']||function(_0x37b9f0,_0x59731c,_0x4b690b,_0x3ff419){function _0x29e21b(_0x3e8733){return _0x3e8733 instanceof _0x4b690b?_0x3e8733:new _0x4b690b(function(_0x5a5961){_0x5a5961(_0x3e8733);});}return new(_0x4b690b||(_0x4b690b=Promise))(function(_0x5cdf59,_0x52829a){function _0x561c19(_0x581415){try{_0x41ecf5(_0x3ff419['next'](_0x581415));}catch(_0x5ae24e){_0x52829a(_0x5ae24e);}}function _0x5ae79c(_0x2ac0b3){try{_0x41ecf5(_0x3ff419['throw'](_0x2ac0b3));}catch(_0x3adab0){_0x52829a(_0x3adab0);}}function _0x41ecf5(_0x35ff8f){_0x35ff8f['done']?_0x5cdf59(_0x35ff8f['value']):_0x29e21b(_0x35ff8f['value'])['then'](_0x561c19,_0x5ae79c);}_0x41ecf5((_0x3ff419=_0x3ff419['apply'](_0x37b9f0,_0x59731c||[]))['next']());});};class ListService{constructor(_0x226833){this['fetch']=_0x226833,this['path']='list';}['create'](_0x23d757,_0x18b5c8,_0x551aaf,_0x376d9b){return __awaiter$9(this,void 0,void 0,function*(){const _0x3b6088={'account_name':_0x23d757,'list_name':_0x18b5c8,'search_service_name_or_group':_0x551aaf};try{const _0x1c5629=yield this['fetch']['post'](this['path'],_0x376d9b,_0x3b6088);if(_0x1c5629['status']>0xc7&&_0x1c5629['status']<0x12c){const _0x5cc436=yield _0x1c5629['json']();return new SuccessfulListIdentityResponse(_0x5cc436);}const _0x35ba66=yield _0x1c5629['json']();return new FailedListIdentityResponse(_0x35ba66);}catch(_0x3a1f1a){if(_0x3a1f1a instanceof Error)return new FailedListIdentityResponse({'detail':_0x3a1f1a['message'],'title':_0x3a1f1a['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a1f1a;}});}['delete'](_0x18352a,_0x5a0517,_0x255d58){return __awaiter$9(this,void 0,void 0,function*(){const _0x150127=this['path']+'/'+_0x18352a+'/'+_0x5a0517,_0x333f56=yield this['fetch']['delete'](_0x150127,_0x255d58);try{if(_0x333f56['status']>0xc7&&_0x333f56['status']<0x12c)return new SuccessfulResponse({});const _0x4b8b17=yield _0x333f56['json']();return new FailedResponse(_0x4b8b17);}catch(_0xb5a59f){if(_0xb5a59f instanceof Error)return new FailedResponse({'detail':_0xb5a59f['message'],'title':_0xb5a59f['name'],'status':0x1f4,'instance':'','type':''});throw _0xb5a59f;}});}['get'](_0x308132,_0x1f24ca,_0x30f2b4){return __awaiter$9(this,void 0,void 0,function*(){const _0x2ff598=this['path']+'/'+_0x308132+'/'+_0x1f24ca;try{const _0x523bbf=yield this['fetch']['get'](_0x2ff598,_0x30f2b4);if(_0x523bbf['status']>0xc7&&_0x523bbf['status']<0x12c){const _0x5d70c0=yield _0x523bbf['json']();return new SuccessfulListResponse(_0x5d70c0);}const _0x24c474=yield _0x523bbf['json']();return new FailedListResponse(_0x24c474);}catch(_0x44e41c){if(_0x44e41c instanceof Error)return new FailedListResponse({'detail':_0x44e41c['message'],'title':_0x44e41c['name'],'status':0x1f4,'instance':'','type':''});throw _0x44e41c;}});}}
8
-
9
- var __awaiter$8=undefined&&undefined['__awaiter']||function(_0x21d67f,_0x32af82,_0x59c7ec,_0x5d5fdf){function _0x440c37(_0x5cfd0d){return _0x5cfd0d instanceof _0x59c7ec?_0x5cfd0d:new _0x59c7ec(function(_0x19d1c9){_0x19d1c9(_0x5cfd0d);});}return new(_0x59c7ec||(_0x59c7ec=Promise))(function(_0x3c89b5,_0x5ca1d0){function _0x57ae1c(_0x5a8cb7){try{_0x224636(_0x5d5fdf['next'](_0x5a8cb7));}catch(_0xe30b5c){_0x5ca1d0(_0xe30b5c);}}function _0x4d395b(_0x5c4363){try{_0x224636(_0x5d5fdf['throw'](_0x5c4363));}catch(_0x581c9d){_0x5ca1d0(_0x581c9d);}}function _0x224636(_0x44e685){_0x44e685['done']?_0x3c89b5(_0x44e685['value']):_0x440c37(_0x44e685['value'])['then'](_0x57ae1c,_0x4d395b);}_0x224636((_0x5d5fdf=_0x5d5fdf['apply'](_0x21d67f,_0x32af82||[]))['next']());});};class Fetch{constructor(_0x34143f){this['baseUri']=_0x34143f,this['getUrl']=_0x3c43e9=>{return _0x3c43e9['startsWith']('/')&&(_0x3c43e9=_0x3c43e9['replace']('/','')),''+this['baseUri']+_0x3c43e9;},!_0x34143f['endsWith']('/')&&(_0x34143f=_0x34143f+'/');}['get'](_0x3401cb,_0x198337){return __awaiter$8(this,void 0,void 0,function*(){const _0x34e479=this['getUrl'](_0x3401cb);return yield fetch(_0x34e479,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x198337}});});}['post'](_0x5a0e0b,_0x32bb34,_0x178956){return __awaiter$8(this,void 0,void 0,function*(){const _0x18b090=this['getUrl'](_0x5a0e0b);return yield fetch(_0x18b090,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x32bb34},'body':_0x178956?JSON['stringify'](_0x178956):null});});}['PostNoAuth'](_0x2b6f45,_0x27d4c1){return __awaiter$8(this,void 0,void 0,function*(){const _0x2569b8=this['getUrl'](_0x2b6f45);return yield fetch(_0x2569b8,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x27d4c1?JSON['stringify'](_0x27d4c1):null});});}['put'](_0x4584a7,_0xa05e48,_0x5f594c){return __awaiter$8(this,void 0,void 0,function*(){const _0x5e98b2=this['getUrl'](_0x4584a7);return yield fetch(_0x5e98b2,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xa05e48},'body':_0x5f594c?JSON['stringify'](_0x5f594c):null});});}['delete'](_0x121968,_0x42852e){return __awaiter$8(this,void 0,void 0,function*(){const _0x22c405=this['getUrl'](_0x121968);return yield fetch(_0x22c405,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x42852e}});});}}
10
-
11
- var __awaiter$7=undefined&&undefined['__awaiter']||function(_0x5bbea3,_0x3739b5,_0x3cc2d8,_0x3b4a23){function _0x1af727(_0x1b562c){return _0x1b562c instanceof _0x3cc2d8?_0x1b562c:new _0x3cc2d8(function(_0x459055){_0x459055(_0x1b562c);});}return new(_0x3cc2d8||(_0x3cc2d8=Promise))(function(_0xdc5d8b,_0x84b885){function _0x492259(_0x523d0e){try{_0x1a5988(_0x3b4a23['next'](_0x523d0e));}catch(_0x5d89a8){_0x84b885(_0x5d89a8);}}function _0x3fac94(_0x3b19b5){try{_0x1a5988(_0x3b4a23['throw'](_0x3b19b5));}catch(_0x4bfa22){_0x84b885(_0x4bfa22);}}function _0x1a5988(_0x6a0710){_0x6a0710['done']?_0xdc5d8b(_0x6a0710['value']):_0x1af727(_0x6a0710['value'])['then'](_0x492259,_0x3fac94);}_0x1a5988((_0x3b4a23=_0x3b4a23['apply'](_0x5bbea3,_0x3739b5||[]))['next']());});};class SearchServersService{constructor(_0x55e0ef){this['fetch']=_0x55e0ef,this['path']='search-services';}['create'](_0x48706d,_0x4d3784,_0x1e3aa7,_0x3d90b7,_0xa2711a,_0x212c76,_0x6311d2,_0x87180){return __awaiter$7(this,void 0,void 0,function*(){const _0x200fab={'account_name':_0x48706d,'search_service_name':_0x4d3784,'endpoint':_0x1e3aa7,'key':_0x3d90b7,'country':_0xa2711a,'provider':_0x212c76,'index_name':_0x6311d2};try{const _0x2895d9=yield this['fetch']['post'](this['path'],_0x87180,_0x200fab);if(_0x2895d9['status']>0xc7&&_0x2895d9['status']<0x12c){const _0x4867a9=yield _0x2895d9['json']();return new SuccessfulSearchServiceResponse(_0x4867a9);}const _0x185d02=yield _0x2895d9['json']();return new FailedSearchServiceResponse(_0x185d02);}catch(_0x41baaf){if(_0x41baaf instanceof Error)return new FailedSearchServiceResponse({'detail':_0x41baaf['message'],'title':_0x41baaf['name'],'status':0x1f4,'instance':'','type':''});throw _0x41baaf;}});}['delete'](_0x4f36b6,_0xfe2837,_0xf4f19c){return __awaiter$7(this,void 0,void 0,function*(){const _0x538ace=this['path']+'/'+_0x4f36b6+'/'+_0xfe2837;try{const _0x2332cd=yield this['fetch']['delete'](_0x538ace,_0xf4f19c);if(_0x2332cd['status']>0xc7&&_0x2332cd['status']<0x12c)return new SuccessfulResponse({});const _0x244681=yield _0x2332cd['json']();return new FailedResponse(_0x244681);}catch(_0x208567){if(_0x208567 instanceof Error)return new FailedResponse({'detail':_0x208567['message'],'title':_0x208567['name'],'status':0x1f4,'instance':'','type':''});throw _0x208567;}});}['view'](_0x511f49,_0x534265,_0x5487e0){return __awaiter$7(this,void 0,void 0,function*(){const _0x498cb6=this['path']+'/'+_0x511f49+'/'+_0x534265;try{const _0x462a36=yield this['fetch']['get'](_0x498cb6,_0x5487e0);if(_0x462a36['status']>0xc7&&_0x462a36['status']<0x12c){const _0x2a7342=yield _0x462a36['json']();return new SuccessfulViewSearchServiceResponse(_0x2a7342);}const _0x18d5b3=yield _0x462a36['json']();return new FailedViewSearchServiceResponse(_0x18d5b3);}catch(_0x439c18){if(_0x439c18 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x439c18['message'],'title':_0x439c18['name'],'status':0x1f4,'instance':'','type':''});throw _0x439c18;}});}['edit'](_0x786be2,_0xe9fd66,_0x3a7f4f,_0x4472cc,_0x17570d){return __awaiter$7(this,void 0,void 0,function*(){const _0xaa993={'account_name':_0x786be2,'search_service_name':_0xe9fd66,'key':_0x3a7f4f,'country':_0x4472cc};try{const _0x5b6804=yield this['fetch']['put'](this['path'],_0x17570d,_0xaa993);if(_0x5b6804['status']>0xc7&&_0x5b6804['status']<0x12c){const _0x21e7b4=yield _0x5b6804['json']();return new SuccessfulSearchServiceResponse(_0x21e7b4);}const _0x40439d=yield _0x5b6804['json']();return new FailedSearchServiceResponse(_0x40439d);}catch(_0x2cad2c){if(_0x2cad2c instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2cad2c['message'],'title':_0x2cad2c['name'],'status':0x1f4,'instance':'','type':''});throw _0x2cad2c;}});}['list'](_0x157f72,_0x561d5b){return __awaiter$7(this,void 0,void 0,function*(){const _0x454e74=this['path']+'/'+_0x157f72;try{const _0xf887d9=yield this['fetch']['get'](_0x454e74,_0x561d5b);if(_0xf887d9['status']>0xc7&&_0xf887d9['status']<0x12c){const _0x245145=yield _0xf887d9['json']();return new SuccessfulListSearchServiceResponse(_0x245145);}const _0x501271=yield _0xf887d9['json']();return new FailedViewSearchServicesResponse(_0x501271);}catch(_0x5047c0){if(_0x5047c0 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5047c0['message'],'title':_0x5047c0['name'],'status':0x1f4,'instance':'','type':''});throw _0x5047c0;}});}}
12
-
13
- var __awaiter$6=undefined&&undefined['__awaiter']||function(_0x2498af,_0xa4d104,_0x2f0d26,_0x598d9e){function _0x40ec4e(_0x1a762b){return _0x1a762b instanceof _0x2f0d26?_0x1a762b:new _0x2f0d26(function(_0x3cfc9d){_0x3cfc9d(_0x1a762b);});}return new(_0x2f0d26||(_0x2f0d26=Promise))(function(_0x43927b,_0x193679){function _0x10b167(_0x3114bf){try{_0x24895a(_0x598d9e['next'](_0x3114bf));}catch(_0xb60d73){_0x193679(_0xb60d73);}}function _0x4db1e4(_0x33893b){try{_0x24895a(_0x598d9e['throw'](_0x33893b));}catch(_0x4ed157){_0x193679(_0x4ed157);}}function _0x24895a(_0x4ce13d){_0x4ce13d['done']?_0x43927b(_0x4ce13d['value']):_0x40ec4e(_0x4ce13d['value'])['then'](_0x10b167,_0x4db1e4);}_0x24895a((_0x598d9e=_0x598d9e['apply'](_0x2498af,_0xa4d104||[]))['next']());});};class FacetService{constructor(_0x27b6e2){this['fetch']=_0x27b6e2,this['path']='facet';}['create'](_0x36771c,_0x34823d,_0x3271c5,_0x3b4efe){return __awaiter$6(this,void 0,void 0,function*(){const _0x529ace={'account_name':_0x36771c,'list_name':_0x34823d,'facet_name':_0x3271c5};try{const _0x20be91=yield this['fetch']['post'](this['path'],_0x3b4efe,_0x529ace);if(_0x20be91['status']>0xc7&&_0x20be91['status']<0x12c){const _0x5157a4=yield _0x20be91['json']();return new SuccessfulFacetResponse(_0x5157a4);}const _0x22ba07=yield _0x20be91['json']();return new FailedFacetResponse(_0x22ba07);}catch(_0x13946b){if(_0x13946b instanceof Error)return new FailedFacetResponse({'detail':_0x13946b['message'],'title':_0x13946b['name'],'status':0x1f4,'instance':'','type':''});throw _0x13946b;}});}['remove'](_0x591b66,_0x3bf716,_0x29fd55,_0x646485){return __awaiter$6(this,void 0,void 0,function*(){const _0x21a838='Facet/'+_0x591b66+'/'+_0x3bf716+'/'+_0x29fd55,_0x4c317a=yield this['fetch']['delete'](_0x21a838,_0x646485);try{if(_0x4c317a['status']>0xc7&&_0x4c317a['status']<0x12c)return new SuccessfulResponse({});const _0x30752e=yield _0x4c317a['json']();return new FailedResponse(_0x30752e);}catch(_0x2bdb37){if(_0x2bdb37 instanceof Error)return new FailedResponse({'detail':_0x2bdb37['message'],'title':_0x2bdb37['name'],'status':0x1f4,'instance':'','type':''});throw _0x2bdb37;}});}['rename'](_0x3d0970,_0x1ea4e1,_0x4aa0d3,_0x3624c3,_0x5ada45){return __awaiter$6(this,void 0,void 0,function*(){const _0x422941={'account_name':_0x3d0970,'list_name':_0x1ea4e1,'facet_name':_0x4aa0d3,'new_facet_name':_0x3624c3};try{const _0x26f206=yield this['fetch']['put'](this['path'],_0x5ada45,_0x422941);if(_0x26f206['status']>0xc7&&_0x26f206['status']<0x12c){const _0x27c934=yield _0x26f206['json']();return new SuccessfulFacetResponse(_0x27c934);}const _0x33d0f8=yield _0x26f206['json']();return new FailedFacetResponse(_0x33d0f8);}catch(_0x2d2547){if(_0x2d2547 instanceof Error)return new FailedFacetResponse({'detail':_0x2d2547['message'],'title':_0x2d2547['name'],'status':0x1f4,'instance':'','type':''});throw _0x2d2547;}});}['list'](_0x2f0f41,_0x5a5ddb,_0x289772,_0x597868,_0x42a070){return __awaiter$6(this,void 0,void 0,function*(){let _0x172012=this['path']+'/'+_0x2f0f41+'/'+_0x5a5ddb+'/'+_0x289772+'/'+_0x597868;try{const _0x19c5df=yield this['fetch']['get'](_0x172012,_0x42a070);if(_0x19c5df['status']>0xc7&&_0x19c5df['status']<0x12c){const _0x194fbf=yield _0x19c5df['json']();return new SuccessfulFacetValueResponse(_0x194fbf);}const _0x1713ef=yield _0x19c5df['json']();return new FailedFacetValuesResponse(_0x1713ef);}catch(_0x51dc73){if(_0x51dc73 instanceof Error)return new FailedFacetValuesResponse({'detail':_0x51dc73['message'],'title':_0x51dc73['name'],'status':0x1f4,'instance':'','type':''});throw _0x51dc73;}});}}
14
-
15
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0xbbb540,_0x5a71e0,_0x3533c2,_0x80a73){function _0x42cfc5(_0x538ae2){return _0x538ae2 instanceof _0x3533c2?_0x538ae2:new _0x3533c2(function(_0x217b69){_0x217b69(_0x538ae2);});}return new(_0x3533c2||(_0x3533c2=Promise))(function(_0xa92bfc,_0x751697){function _0x9f427d(_0x2b3d48){try{_0xc52c21(_0x80a73['next'](_0x2b3d48));}catch(_0x21a4db){_0x751697(_0x21a4db);}}function _0x8b942e(_0x19d0ca){try{_0xc52c21(_0x80a73['throw'](_0x19d0ca));}catch(_0x1149ac){_0x751697(_0x1149ac);}}function _0xc52c21(_0x1eb83b){_0x1eb83b['done']?_0xa92bfc(_0x1eb83b['value']):_0x42cfc5(_0x1eb83b['value'])['then'](_0x9f427d,_0x8b942e);}_0xc52c21((_0x80a73=_0x80a73['apply'](_0xbbb540,_0x5a71e0||[]))['next']());});};class SearchResultService{constructor(_0x31bc3c){this['fetch']=_0x31bc3c,this['path']='search-result';}['create'](_0x3d0ec8,_0x536cad,_0x534f53,_0x118a61,_0x365e8f){return __awaiter$5(this,void 0,void 0,function*(){_0x365e8f=_0x365e8f!==null&&_0x365e8f!==void 0?_0x365e8f:{'resource_1':'','resource_2':'','resource_3':'','latitude':0x0,'longitude':0x0,'facets':[],'searchable_fields':[]};const _0xb5fa05=Object['assign']({'account_name':_0x3d0ec8,'search_result_name':_0x534f53,'list_name':_0x536cad},_0x365e8f);try{const _0x4cd1ec=yield this['fetch']['post'](this['path'],_0x118a61,_0xb5fa05);if(_0x4cd1ec['status']>0xc7&&_0x4cd1ec['status']<0x12c){const _0x3f24bb=yield _0x4cd1ec['json']();return new SuccessfulViewSearchResultResponse(_0x3f24bb);}const _0x2937a8=yield _0x4cd1ec['json']();return new FailedSearchResultResponse(_0x2937a8);}catch(_0x88d9d9){if(_0x88d9d9 instanceof Error)return new FailedSearchResultResponse({'detail':_0x88d9d9['message'],'title':_0x88d9d9['name'],'status':0x1f4,'instance':'','type':''});throw _0x88d9d9;}});}['transfer'](_0x1ecb2c,_0x3171a4,_0x1ee4c4,_0x335d58){return __awaiter$5(this,void 0,void 0,function*(){const _0x33664a={'account_name':_0x1ecb2c,'list_name':_0x3171a4,'new_search_service_name':_0x1ee4c4};try{const _0x331d75=yield this['fetch']['post'](this['path']+'/transfer',_0x335d58,_0x33664a);if(_0x331d75['status']>0xc7&&_0x331d75['status']<0x12c){const _0x281913=yield _0x331d75['json']();return new SuccessfulListResponse(_0x281913);}const _0x2f3292=yield _0x331d75['json']();return new FailedListResponse(_0x2f3292);}catch(_0x13328c){if(_0x13328c instanceof Error)return new FailedListResponse({'detail':_0x13328c['message'],'title':_0x13328c['name'],'status':0x1f4,'instance':'','type':''});throw _0x13328c;}});}['list'](_0x73fd17,_0x2d4c94,_0x2fd675,_0x532fbd){return __awaiter$5(this,void 0,void 0,function*(){let _0x435f50=this['path']+'/'+_0x73fd17+'/'+_0x2d4c94+'?'+this['getQueryStr'](_0x532fbd);try{const _0x33cd41=yield this['fetch']['get'](_0x435f50,_0x2fd675);if(_0x33cd41['status']>0xc7&&_0x33cd41['status']<0x12c){const _0x3f3fca=yield _0x33cd41['json']();return new SuccessfulListSearchResultResponse(_0x3f3fca);}const _0x4763fb=yield _0x33cd41['json']();return new FailedViewSearchResultResponse(_0x4763fb);}catch(_0x31b116){if(_0x31b116 instanceof Error)return new FailedViewSearchResultResponse({'detail':_0x31b116['message'],'title':_0x31b116['name'],'status':0x1f4,'instance':'','type':''});throw _0x31b116;}});}['delete'](_0x25ccb4,_0x4baaa9,_0x568348,_0xc5a712){return __awaiter$5(this,void 0,void 0,function*(){const _0xdab638=this['path']+'/'+_0x25ccb4+'/'+_0x4baaa9+'/'+_0x568348,_0x5477cb=yield this['fetch']['delete'](_0xdab638,_0xc5a712);try{if(_0x5477cb['status']>0xc7&&_0x5477cb['status']<0x12c)return new SuccessfulResponse({});const _0x2c2794=yield _0x5477cb['json']();return new FailedResponse(_0x2c2794);}catch(_0x314eac){if(_0x314eac instanceof Error)return new FailedResponse({'detail':_0x314eac['message'],'title':_0x314eac['name'],'status':0x1f4,'instance':'','type':''});throw _0x314eac;}});}['getQueryStr'](_0x30a0b8){let _0x4428ee='';const _0x3651b9=[];return (_0x30a0b8===null||_0x30a0b8===void 0?void 0:_0x30a0b8['size'])&&_0x3651b9['push']('size='+_0x30a0b8['size']),(_0x30a0b8===null||_0x30a0b8===void 0?void 0:_0x30a0b8['skip'])&&_0x3651b9['push']('skip='+_0x30a0b8['skip']),(_0x30a0b8===null||_0x30a0b8===void 0?void 0:_0x30a0b8['query'])&&_0x3651b9['push']('query='+_0x30a0b8['query']),(_0x30a0b8===null||_0x30a0b8===void 0?void 0:_0x30a0b8['filter'])&&_0x3651b9['push']('filter='+_0x30a0b8['filter']),(_0x30a0b8===null||_0x30a0b8===void 0?void 0:_0x30a0b8['radius'])&&_0x3651b9['push']('radius='+_0x30a0b8['radius']),_0x3651b9['length']>0x0&&_0x3651b9['forEach']((_0x111d68,_0x3647b0)=>{if(_0x3647b0>0x0&&_0x4428ee)_0x4428ee+='&';_0x4428ee+=_0x111d68;}),_0x4428ee;}}
16
-
17
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x5bddd9,_0x5960e6,_0x24d65d,_0x470535){function _0x112ea1(_0x1d2a05){return _0x1d2a05 instanceof _0x24d65d?_0x1d2a05:new _0x24d65d(function(_0x3f0acf){_0x3f0acf(_0x1d2a05);});}return new(_0x24d65d||(_0x24d65d=Promise))(function(_0x26e9a2,_0x3de9ac){function _0x205bd4(_0x1275f3){try{_0x239c32(_0x470535['next'](_0x1275f3));}catch(_0x38a28f){_0x3de9ac(_0x38a28f);}}function _0x47236b(_0x13d101){try{_0x239c32(_0x470535['throw'](_0x13d101));}catch(_0x16282){_0x3de9ac(_0x16282);}}function _0x239c32(_0x556e5){_0x556e5['done']?_0x26e9a2(_0x556e5['value']):_0x112ea1(_0x556e5['value'])['then'](_0x205bd4,_0x47236b);}_0x239c32((_0x470535=_0x470535['apply'](_0x5bddd9,_0x5960e6||[]))['next']());});};class ContributorService{constructor(_0x2e03c7){this['fetch']=_0x2e03c7,this['path']='contributor';}['create'](_0x3c11b6,_0x9ac3b7,_0x234f15,_0x3791be){return __awaiter$4(this,void 0,void 0,function*(){const _0x45e8a0={'account_name':_0x3c11b6,'list_name':_0x9ac3b7,'contributor_name':_0x234f15};try{const _0x505c3b=yield this['fetch']['post'](this['path'],_0x3791be,_0x45e8a0);if(_0x505c3b['status']>0xc7&&_0x505c3b['status']<0x12c){const _0x4f0353=yield _0x505c3b['json']();return new SuccessfulContributorResponse(_0x4f0353);}const _0x3d8d5d=yield _0x505c3b['json']();return new FailedContributorResponse(_0x3d8d5d);}catch(_0x6827a2){if(_0x6827a2 instanceof Error)return new FailedContributorResponse({'detail':_0x6827a2['message'],'title':_0x6827a2['name'],'status':0x1f4,'instance':'','type':''});throw _0x6827a2;}});}['remove'](_0x379f28,_0x13b3d3,_0x43cf0c,_0x78bfed){return __awaiter$4(this,void 0,void 0,function*(){const _0x3de373=this['path']+'/'+_0x379f28+'/'+_0x13b3d3+'/'+_0x43cf0c,_0x43f61e=yield this['fetch']['delete'](_0x3de373,_0x78bfed);try{if(_0x43f61e['status']>0xc7&&_0x43f61e['status']<0x12c)return new SuccessfulResponse({});const _0x1f7c02=yield _0x43f61e['json']();return new FailedResponse(_0x1f7c02);}catch(_0x9b6c0a){if(_0x9b6c0a instanceof Error)return new FailedResponse({'detail':_0x9b6c0a['message'],'title':_0x9b6c0a['name'],'status':0x1f4,'instance':'','type':''});throw _0x9b6c0a;}});}['startsWith'](_0x2daa60,_0x5823bc){return __awaiter$4(this,void 0,void 0,function*(){const _0x2b9b2d=this['path']+'/'+_0x2daa60;try{const _0x409097=yield this['fetch']['get'](_0x2b9b2d,_0x5823bc);if(_0x409097['status']>0xc7&&_0x409097['status']<0x12c){const _0x5bd680=yield _0x409097['json']();return new SuccessfulAccountAndImageResponse(_0x5bd680);}const _0x583f07=yield _0x409097['json']();return new FailedAccountAndImageResponse(_0x583f07);}catch(_0x3ec006){if(_0x3ec006 instanceof Error)return new FailedAccountAndImageResponse({'detail':_0x3ec006['message'],'title':_0x3ec006['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ec006;}});}}
18
-
19
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x5182a2,_0xc4fcd7,_0x3604fa,_0x2dd4e9){function _0x401e37(_0xffd974){return _0xffd974 instanceof _0x3604fa?_0xffd974:new _0x3604fa(function(_0x3fc736){_0x3fc736(_0xffd974);});}return new(_0x3604fa||(_0x3604fa=Promise))(function(_0x2e9207,_0x218c58){function _0x27d4ba(_0x45350e){try{_0x56b0bd(_0x2dd4e9['next'](_0x45350e));}catch(_0x58120d){_0x218c58(_0x58120d);}}function _0x1e149d(_0x3c4b42){try{_0x56b0bd(_0x2dd4e9['throw'](_0x3c4b42));}catch(_0x37aa91){_0x218c58(_0x37aa91);}}function _0x56b0bd(_0x5cad0d){_0x5cad0d['done']?_0x2e9207(_0x5cad0d['value']):_0x401e37(_0x5cad0d['value'])['then'](_0x27d4ba,_0x1e149d);}_0x56b0bd((_0x2dd4e9=_0x2dd4e9['apply'](_0x5182a2,_0xc4fcd7||[]))['next']());});};class SearchableFieldService{constructor(_0x3b07ac){this['fetch']=_0x3b07ac,this['path']='searchable-field';}['create'](_0x2fda47,_0x1877d6,_0x5e5bbe,_0x22ab7c){return __awaiter$3(this,void 0,void 0,function*(){const _0x5b1981={'account_name':_0x2fda47,'list_name':_0x1877d6,'searchable_field_name':_0x5e5bbe};try{const _0x397ff6=yield this['fetch']['post'](this['path'],_0x22ab7c,_0x5b1981);if(_0x397ff6['status']>0xc7&&_0x397ff6['status']<0x12c){const _0x18a589=yield _0x397ff6['json']();return new SuccessfulSearchableFieldResponse(_0x18a589);}const _0x1f3672=yield _0x397ff6['json']();return new FailedSearchableFieldResponse(_0x1f3672);}catch(_0x4573d4){if(_0x4573d4 instanceof Error)return new FailedSearchableFieldResponse({'detail':_0x4573d4['message'],'title':_0x4573d4['name'],'status':0x1f4,'instance':'','type':''});throw _0x4573d4;}});}['remove'](_0x506200,_0x22c8d8,_0x5e2e46,_0x19ef9d){return __awaiter$3(this,void 0,void 0,function*(){const _0x186258=this['path']+'/'+_0x506200+'/'+_0x22c8d8+'/'+_0x5e2e46,_0x15096e=yield this['fetch']['delete'](_0x186258,_0x19ef9d);try{if(_0x15096e['status']>0xc7&&_0x15096e['status']<0x12c)return new SuccessfulResponse({});const _0x6a507c=yield _0x15096e['json']();return new FailedResponse(_0x6a507c);}catch(_0x142467){if(_0x142467 instanceof Error)return new FailedResponse({'detail':_0x142467['message'],'title':_0x142467['name'],'status':0x1f4,'instance':'','type':''});throw _0x142467;}});}['rename'](_0x110ed3,_0x41b857,_0xb049b1,_0xceafdf,_0x5099b6){return __awaiter$3(this,void 0,void 0,function*(){const _0x5c62ca={'account_name':_0x110ed3,'list_name':_0x41b857,'searchable_field_name':_0xb049b1,'new_searchable_field_name':_0xceafdf};try{const _0x2680dd=yield this['fetch']['put'](this['path'],_0x5099b6,_0x5c62ca);if(_0x2680dd['status']>0xc7&&_0x2680dd['status']<0x12c){const _0x281435=yield _0x2680dd['json']();return new SuccessfulSearchableFieldResponse(_0x281435);}const _0x4a3ce3=yield _0x2680dd['json']();return new FailedSearchableFieldResponse(_0x4a3ce3);}catch(_0x29faf6){if(_0x29faf6 instanceof Error)return new FailedSearchableFieldResponse({'detail':_0x29faf6['message'],'title':_0x29faf6['name'],'status':0x1f4,'instance':'','type':''});throw _0x29faf6;}});}}
20
-
21
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x27a8ac,_0x5192e8,_0x4dd0bd,_0x1daa55){function _0x167e21(_0x393320){return _0x393320 instanceof _0x4dd0bd?_0x393320:new _0x4dd0bd(function(_0x54642f){_0x54642f(_0x393320);});}return new(_0x4dd0bd||(_0x4dd0bd=Promise))(function(_0x4f96db,_0x1cf202){function _0x46fb74(_0x59b07c){try{_0x239f73(_0x1daa55['next'](_0x59b07c));}catch(_0x476d20){_0x1cf202(_0x476d20);}}function _0x18b6c8(_0x4a562c){try{_0x239f73(_0x1daa55['throw'](_0x4a562c));}catch(_0x326632){_0x1cf202(_0x326632);}}function _0x239f73(_0x12f025){_0x12f025['done']?_0x4f96db(_0x12f025['value']):_0x167e21(_0x12f025['value'])['then'](_0x46fb74,_0x18b6c8);}_0x239f73((_0x1daa55=_0x1daa55['apply'](_0x27a8ac,_0x5192e8||[]))['next']());});};class SuggesterService{constructor(_0xed524b){this['fetch']=_0xed524b,this['path']='suggester';}['create'](_0x2c5231,_0x5a5198,_0x1194aa,_0x507fb9){return __awaiter$2(this,void 0,void 0,function*(){const _0xee48a5={'account_name':_0x2c5231,'suggester_name':_0x5a5198,'group_name':_0x1194aa};try{const _0x3282ce=yield this['fetch']['post'](this['path'],_0x507fb9,_0xee48a5);if(_0x3282ce['status']>0xc7&&_0x3282ce['status']<0x12c){const _0xe02206=yield _0x3282ce['json']();return new SuccessfulSuggesterResponse(_0xe02206);}const _0x4d1b88=yield _0x3282ce['json']();return new FailedSuggesterResponse(_0x4d1b88);}catch(_0x4e90f2){if(_0x4e90f2 instanceof Error)return new FailedSuggesterResponse({'detail':_0x4e90f2['message'],'title':_0x4e90f2['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e90f2;}});}}
22
-
23
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x5eefd3,_0x21a1cf,_0x53d54f,_0x4cb67e){function _0x58276a(_0x410790){return _0x410790 instanceof _0x53d54f?_0x410790:new _0x53d54f(function(_0x51e112){_0x51e112(_0x410790);});}return new(_0x53d54f||(_0x53d54f=Promise))(function(_0x50ca16,_0x1ee1b0){function _0x19993f(_0x270b09){try{_0x2ac35d(_0x4cb67e['next'](_0x270b09));}catch(_0x589260){_0x1ee1b0(_0x589260);}}function _0xb9ce60(_0x1e6f3f){try{_0x2ac35d(_0x4cb67e['throw'](_0x1e6f3f));}catch(_0x317d4f){_0x1ee1b0(_0x317d4f);}}function _0x2ac35d(_0x12f9f7){_0x12f9f7['done']?_0x50ca16(_0x12f9f7['value']):_0x58276a(_0x12f9f7['value'])['then'](_0x19993f,_0xb9ce60);}_0x2ac35d((_0x4cb67e=_0x4cb67e['apply'](_0x5eefd3,_0x21a1cf||[]))['next']());});};class ServiceGroupService{constructor(_0x34f882){this['fetch']=_0x34f882,this['path']='service-group';}['create'](_0x2d102d,_0x2fb979,_0x529cba,_0x1de0fd){return __awaiter$1(this,void 0,void 0,function*(){const _0x2d19e6={'account_name':_0x2d102d,'search_service_name':_0x2fb979,'search_service_group_name':_0x529cba};try{const _0xe502e1=yield this['fetch']['post'](this['path'],_0x1de0fd,_0x2d19e6);if(_0xe502e1['status']>0xc7&&_0xe502e1['status']<0x12c){const _0x208a2d=yield _0xe502e1['json']();return new SuccessfulGroupResponse(_0x208a2d);}const _0x4e5cc2=yield _0xe502e1['json']();return new FailedGroupResponse(_0x4e5cc2);}catch(_0xaf913b){if(_0xaf913b instanceof Error)return new FailedGroupResponse({'detail':_0xaf913b['message'],'title':_0xaf913b['name'],'status':0x1f4,'instance':'','type':''});throw _0xaf913b;}});}}
24
-
25
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x4e3b6e,_0x1ea3e8,_0x53bdca,_0x4582b2){function _0x48c3a4(_0xe08cb0){return _0xe08cb0 instanceof _0x53bdca?_0xe08cb0:new _0x53bdca(function(_0xbafe11){_0xbafe11(_0xe08cb0);});}return new(_0x53bdca||(_0x53bdca=Promise))(function(_0x40360a,_0x5baed9){function _0xc07517(_0x392757){try{_0x4f6456(_0x4582b2['next'](_0x392757));}catch(_0x3b556a){_0x5baed9(_0x3b556a);}}function _0x9a9b26(_0x3ddf1f){try{_0x4f6456(_0x4582b2['throw'](_0x3ddf1f));}catch(_0x403204){_0x5baed9(_0x403204);}}function _0x4f6456(_0x4c2b37){_0x4c2b37['done']?_0x40360a(_0x4c2b37['value']):_0x48c3a4(_0x4c2b37['value'])['then'](_0xc07517,_0x9a9b26);}_0x4f6456((_0x4582b2=_0x4582b2['apply'](_0x4e3b6e,_0x1ea3e8||[]))['next']());});};class AdminClient{constructor(_0x532d5c='https://admin.searchability.dev/'){var _0x29e9fa=new Fetch(_0x532d5c);this['Accounts']=new AccountService(_0x29e9fa),this['Lists']=new ListService(_0x29e9fa),this['ApiKeys']=new ApiKeyService(_0x29e9fa),this['SearchServers']=new SearchServersService(_0x29e9fa),this['Facets']=new FacetService(_0x29e9fa),this['SearchResults']=new SearchResultService(_0x29e9fa),this['Contributors']=new ContributorService(_0x29e9fa),this['SearchableFields']=new SearchableFieldService(_0x29e9fa),this['Suggesters']=new SuggesterService(_0x29e9fa),this['ServiceGroups']=new ServiceGroupService(_0x29e9fa);}}class AuthClient{constructor(_0x26393b='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x26393b);}['login'](_0x183fb0){return __awaiter(this,void 0,void 0,function*(){const _0xe2d195='login/'+_0x183fb0;try{const _0x329c4e=yield yield fetch(_0xe2d195);if(_0x329c4e['status']>0xc7&&_0x329c4e['status']<0x12c){const _0x5c4b48=yield _0x329c4e['json']();return new SuccessfulAuthResponse(_0x5c4b48);}const _0x4c78cb=yield _0x329c4e['json']();return new FailedAuthResponse(_0x4c78cb);}catch(_0x13d616){if(_0x13d616 instanceof Error)return new FailedAuthResponse({'detail':_0x13d616['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x13d616;}});}['refresh'](_0x58bd70){return __awaiter(this,void 0,void 0,function*(){const _0xca87ad='refresh',_0x2b7492={'refresh_token':_0x58bd70};try{const _0xda1515=yield this['fetch']['PostNoAuth'](_0xca87ad,_0x2b7492);if(_0xda1515['status']>0xc7&&_0xda1515['status']<0x12c){const _0x50956a=yield _0xda1515['json']();return new SuccessfulAuthResponse(_0x50956a);}const _0x1d096b=yield _0xda1515['json']();return new FailedAuthResponse(_0x1d096b);}catch(_0x3c5564){if(_0x3c5564 instanceof Error)return new FailedAuthResponse({'detail':_0x3c5564['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3c5564;}});}['getTokenStatus'](_0x2a1ed1){if(Date['now']()<_0x2a1ed1['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x2a1ed1['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
26
-
27
- export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts DELETED
@@ -1,508 +0,0 @@
1
- declare class Fetch {
2
- readonly baseUri: string;
3
- constructor(baseUri: string);
4
- private getUrl;
5
- get(path: string, accessToken: string): Promise<globalThis.Response>;
6
- post(path: string, accessToken: string, body: any): Promise<globalThis.Response>;
7
- PostNoAuth(path: string, body: any): Promise<globalThis.Response>;
8
- put(path: string, accessToken: string, body: any): Promise<globalThis.Response>;
9
- delete(path: string, accessToken: string): Promise<globalThis.Response>;
10
- }
11
-
12
- declare class AccountService {
13
- private readonly fetch;
14
- constructor(fetch: Fetch);
15
- get(accountName: string, access_token: string): Promise<Response<Account, Problem>>;
16
- getImage(accountName: string, access_token: string): Promise<Response<AccountImage, Problem>>;
17
- }
18
-
19
- declare class ApiKeyService {
20
- private readonly fetch;
21
- private readonly path;
22
- constructor(fetch: Fetch);
23
- create(account_name: string, api_key_name: string, access_token: string): Promise<Response<ApiKey, Problem>>;
24
- view(account_name: string, api_key_name: string, access_token: string): Promise<Response<ApiKeyValue, Problem>>;
25
- delete(account_name: string, api_key_name: string, access_token: string): Promise<Response<any, Problem>>;
26
- }
27
-
28
- declare class ListService {
29
- private readonly fetch;
30
- private readonly path;
31
- constructor(fetch: Fetch);
32
- create(account_name: string, list_name: string, search_service_name_or_group: string, access_token: string): Promise<Response<ListIdentity, Problem>>;
33
- delete(account_name: string, list_name: string, access_token: string): Promise<Response<any, Problem>>;
34
- get(account_name: string, list_name: string, access_token: string): Promise<Response<List, Problem>>;
35
- }
36
-
37
- declare class SearchServersService {
38
- private readonly fetch;
39
- private readonly path;
40
- constructor(fetch: Fetch);
41
- create(account_name: string, search_service_name: string, endpoint: string, key: string, country: string, provider: string, index_name: string, access_token: string): Promise<Response<SearchService, Problem>>;
42
- delete(account_name: string, search_service_name: string, access_token: string): Promise<Response<any, Problem>>;
43
- view(account_name: string, search_service_name: string, access_token: string): Promise<Response<SearchServiceDetails, Problem>>;
44
- edit(account_name: string, search_service_name: string, key: string, country: string, access_token: string): Promise<Response<SearchService, Problem>>;
45
- list(account_name: string, access_token: string): Promise<Response<SearchService[], Problem>>;
46
- }
47
-
48
- declare class FacetService {
49
- private readonly fetch;
50
- private readonly path;
51
- constructor(fetch: Fetch);
52
- create(account_name: string, list_name: string, facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
53
- remove(account_name: string, list_name: string, facet_name: string, access_token: string): Promise<Response<any, Problem>>;
54
- rename(account_name: string, list_name: string, facet_name: string, new_facet_name: string, access_token: string): Promise<Response<Facet, Problem>>;
55
- list(account_name: string, list_name: string, version: number, facet_name: string, access_token: string): Promise<Response<any[], Problem>>;
56
- }
57
-
58
- declare class SearchResultService {
59
- private readonly fetch;
60
- private readonly path;
61
- constructor(fetch: Fetch);
62
- create(account_name: string, list_name: string, search_result_name: string, access_token: string, options?: Partial<CreateSearchResultOptions> | undefined): Promise<Response<SearchResult, Problem>>;
63
- transfer(account_name: string, list_name: string, new_search_service_name: string, access_token: string): Promise<Response<List, Problem>>;
64
- list(account_name: string, list_name: string, access_token: string, options: Partial<ListSearchResultOptions>): Promise<Response<SearchResult[], Problem>>;
65
- delete(account_name: string, list_name: string, id: string, access_token: string): Promise<Response<any, Problem>>;
66
- getQueryStr(options: Partial<ListSearchResultOptions>): string;
67
- }
68
-
69
- declare class ContributorService {
70
- private readonly fetch;
71
- private readonly path;
72
- constructor(fetch: Fetch);
73
- create(account_name: string, list_name: string, contributor_name: string, access_token: string): Promise<Response<Contributor, Problem>>;
74
- remove(account_name: string, list_name: string, contributor_name: string, access_token: string): Promise<Response<any, Problem>>;
75
- startsWith(account_name: string, access_token: string): Promise<Response<AccountAndImage[], Problem>>;
76
- }
77
-
78
- declare class SearchableFieldService {
79
- private readonly fetch;
80
- private readonly path;
81
- constructor(fetch: Fetch);
82
- create(account_name: string, list_name: string, searchable_field_name: string, access_token: string): Promise<Response<SearchableField, Problem>>;
83
- remove(account_name: string, list_name: string, searchable_field_name: string, access_token: string): Promise<Response<any, Problem>>;
84
- rename(account_name: string, list_name: string, searchable_field_name: string, new_searchable_field_name: string, access_token: string): Promise<Response<SearchableField, Problem>>;
85
- }
86
-
87
- declare class SuggesterService {
88
- private readonly fetch;
89
- private readonly path;
90
- constructor(fetch: Fetch);
91
- create(account_name: string, suggester_name: string, group_name: string, access_token: string): Promise<Response<Suggester, Problem>>;
92
- }
93
-
94
- declare class ServiceGroupService {
95
- private readonly fetch;
96
- private readonly path;
97
- constructor(fetch: Fetch);
98
- create(account_name: string, search_service_name: string, search_service_group_name: string, access_token: string): Promise<Response<Group, Problem>>;
99
- }
100
-
101
- declare class AdminClient {
102
- constructor(baseUri?: string);
103
- readonly Accounts: AccountService;
104
- readonly Lists: ListService;
105
- readonly ApiKeys: ApiKeyService;
106
- readonly SearchServers: SearchServersService;
107
- readonly Facets: FacetService;
108
- readonly SearchResults: SearchResultService;
109
- readonly Contributors: ContributorService;
110
- readonly SearchableFields: SearchableFieldService;
111
- readonly Suggesters: SuggesterService;
112
- readonly ServiceGroups: ServiceGroupService;
113
- }
114
- declare class AuthClient {
115
- private readonly fetch;
116
- constructor(baseUri?: string);
117
- login(apiKey: string): Promise<Response<Tokens, Problem>>;
118
- refresh(refreshToken: string): Promise<Response<Tokens, Problem>>;
119
- getTokenStatus(tokens: Tokens): TokenStatus;
120
- }
121
-
122
- declare enum TokenStatus {
123
- Ok = 0,
124
- Refresh = 1,
125
- Expired = 2
126
- }
127
- type RefreshRequest = {
128
- refresh_token: string;
129
- };
130
- declare class Tokens {
131
- access_token: string;
132
- access_expires: number;
133
- refresh_token: string;
134
- refresh_expires: number;
135
- }
136
- declare abstract class Response<S, F> {
137
- readonly isSuccess: boolean;
138
- constructor(isSuccess: boolean);
139
- abstract toSuccess(): S;
140
- abstract toProblem(): F;
141
- }
142
- type ListIdentity = {
143
- list_name: string;
144
- created: number;
145
- account_name: string;
146
- version: number;
147
- };
148
- type Suggester = {
149
- group_name: string;
150
- suggester_name: string;
151
- created: number;
152
- lists: ListIdentity[];
153
- };
154
- type Group = {
155
- search_service_name: string;
156
- created: number;
157
- group_name: string;
158
- };
159
- type List = ListIdentity & {
160
- facets: Facet[];
161
- contributors: Contributor[];
162
- searchable_fields: SearchableField[];
163
- search_result_count: number;
164
- search_result_limit: number;
165
- search_service_name: string;
166
- search_service_is_shared: boolean;
167
- show_coorinates: boolean;
168
- group_name: string;
169
- };
170
- type ApiKey = {
171
- name: string;
172
- created: number;
173
- };
174
- type Facet = {
175
- facet_id: string;
176
- facet_name: string;
177
- };
178
- type SearchableField = {
179
- searchable_field_id: string;
180
- searchable_field_name: string;
181
- };
182
- type Contributor = {
183
- contributor_name: string;
184
- };
185
- type SearchResult = {
186
- id: string;
187
- account_name: string;
188
- list_name: string;
189
- search_result_name: string;
190
- resource_1: string;
191
- resource_2: string;
192
- resource_3: string;
193
- latitude: number;
194
- longitude: number;
195
- active: boolean;
196
- facets: NameAndValue[];
197
- searchable_fields: NameAndValue[];
198
- created: number;
199
- };
200
- type SearchService = {
201
- search_service_name: string;
202
- created: number;
203
- country: string;
204
- provider: string;
205
- search_service_is_shared: boolean;
206
- };
207
- type SearchServiceDetails = {
208
- endpoint: string;
209
- key: string;
210
- search_service_name: string;
211
- country: string;
212
- index_name: string;
213
- };
214
- type ApiKeyValue = {
215
- value: string;
216
- version: number;
217
- };
218
- type Error = {
219
- [key: string]: string[];
220
- };
221
- type Problem = {
222
- type: string;
223
- title: string;
224
- status: number;
225
- instance: string;
226
- detail: string;
227
- };
228
- type AccountAndImage = {
229
- account_name: string;
230
- image_path: string;
231
- };
232
- type Account = {
233
- name: string;
234
- owner: string;
235
- country: string;
236
- created: number;
237
- image_path: string;
238
- lists: ListIdentity[];
239
- api_keys: ApiKey[];
240
- search_services: SearchService[];
241
- suggesters: Suggester[];
242
- groups: Group[];
243
- };
244
- type AccountImage = {
245
- image_path: string;
246
- };
247
- type NameAndValue = {
248
- name: string;
249
- value: any | undefined;
250
- };
251
- type CreateSearchResultOptions = {
252
- resource_1?: string;
253
- resource_2?: string;
254
- resource_3?: string;
255
- latitude?: number;
256
- longitude?: number;
257
- facets?: NameAndValue[];
258
- searchable_fields?: NameAndValue[];
259
- };
260
- type ListSearchResultOptions = {
261
- size?: number;
262
- skip?: number;
263
- query?: string;
264
- filter?: string;
265
- radius?: string;
266
- };
267
- declare class SuccessfulFacetValueResponse extends Response<any[], Problem> {
268
- readonly facets: any[];
269
- constructor(facets: any[]);
270
- toSuccess(): any[];
271
- toProblem(): Problem;
272
- }
273
- declare class FailedFacetValuesResponse extends Response<any[], Problem> {
274
- readonly problem: Problem;
275
- constructor(problem: Problem);
276
- toSuccess(): any[];
277
- toProblem(): Problem;
278
- }
279
- declare class SuccessfulContributorResponse extends Response<Contributor, Problem> {
280
- readonly contributor: Contributor;
281
- constructor(contributor: Contributor);
282
- toSuccess(): Contributor;
283
- toProblem(): Problem;
284
- }
285
- declare class FailedContributorResponse extends Response<Contributor, Problem> {
286
- readonly problem: Problem;
287
- constructor(problem: Problem);
288
- toSuccess(): Contributor;
289
- toProblem(): Problem;
290
- }
291
- declare class SuccessfulAccountAndImageResponse extends Response<AccountAndImage[], Problem> {
292
- readonly accountAndImages: AccountAndImage[];
293
- constructor(accountAndImages: AccountAndImage[]);
294
- toSuccess(): AccountAndImage[];
295
- toProblem(): Problem;
296
- }
297
- declare class FailedAccountAndImageResponse extends Response<AccountAndImage[], Problem> {
298
- readonly problem: Problem;
299
- constructor(problem: Problem);
300
- toSuccess(): AccountAndImage[];
301
- toProblem(): Problem;
302
- }
303
- declare class SuccessfulFacetResponse extends Response<Facet, Problem> {
304
- readonly facet: Facet;
305
- constructor(facet: Facet);
306
- toSuccess(): Facet;
307
- toProblem(): Problem;
308
- }
309
- declare class FailedFacetResponse extends Response<Facet, Problem> {
310
- readonly problem: Problem;
311
- constructor(problem: Problem);
312
- toSuccess(): Facet;
313
- toProblem(): Problem;
314
- }
315
- declare class FailedSearchableFieldResponse extends Response<SearchableField, Problem> {
316
- readonly problem: Problem;
317
- constructor(problem: Problem);
318
- toSuccess(): SearchableField;
319
- toProblem(): Problem;
320
- }
321
- declare class SuccessfulSearchableFieldResponse extends Response<SearchableField, Problem> {
322
- readonly searchable_field: SearchableField;
323
- constructor(searchable_field: SearchableField);
324
- toSuccess(): SearchableField;
325
- toProblem(): Problem;
326
- }
327
- declare class SuccessfulAccountResponse extends Response<Account, Problem> {
328
- readonly account: Account;
329
- constructor(account: Account);
330
- toSuccess(): Account;
331
- toProblem(): Problem;
332
- }
333
- declare class SuccessfulAccountImageResponse extends Response<AccountImage, Problem> {
334
- readonly accountImage: AccountImage;
335
- constructor(accountImage: AccountImage);
336
- toSuccess(): AccountImage;
337
- toProblem(): Problem;
338
- }
339
- declare class SuccessfulListIdentityResponse extends Response<ListIdentity, Problem> {
340
- readonly list: ListIdentity;
341
- constructor(list: ListIdentity);
342
- toSuccess(): ListIdentity;
343
- toProblem(): Problem;
344
- }
345
- declare class SuccessfulGroupResponse extends Response<Group, Problem> {
346
- readonly group: Group;
347
- constructor(group: Group);
348
- toSuccess(): Group;
349
- toProblem(): Problem;
350
- }
351
- declare class FailedGroupResponse extends Response<Group, Problem> {
352
- readonly problem: Problem;
353
- constructor(problem: Problem);
354
- toSuccess(): Group;
355
- toProblem(): Problem;
356
- }
357
- declare class SuccessfulListResponse extends Response<List, Problem> {
358
- readonly list: List;
359
- constructor(list: List);
360
- toSuccess(): List;
361
- toProblem(): Problem;
362
- }
363
- declare class FailedListResponse extends Response<List, Problem> {
364
- readonly problem: Problem;
365
- constructor(problem: Problem);
366
- toSuccess(): List;
367
- toProblem(): Problem;
368
- }
369
- declare class SuccessfulSuggesterResponse extends Response<Suggester, Problem> {
370
- readonly suggester: Suggester;
371
- constructor(suggester: Suggester);
372
- toSuccess(): Suggester;
373
- toProblem(): Problem;
374
- }
375
- declare class FailedSuggesterResponse extends Response<Suggester, Problem> {
376
- readonly problem: Problem;
377
- constructor(problem: Problem);
378
- toSuccess(): Suggester;
379
- toProblem(): Problem;
380
- }
381
- declare class FailedAccountResponse extends Response<Account, Problem> {
382
- readonly problem: Problem;
383
- constructor(problem: Problem);
384
- toSuccess(): Account;
385
- toProblem(): Problem;
386
- }
387
- declare class FailedAccountImageResponse extends Response<AccountImage, Problem> {
388
- readonly problem: Problem;
389
- constructor(problem: Problem);
390
- toSuccess(): AccountImage;
391
- toProblem(): Problem;
392
- }
393
- declare class FailedListIdentityResponse extends Response<ListIdentity, Problem> {
394
- readonly problem: Problem;
395
- constructor(problem: Problem);
396
- toSuccess(): ListIdentity;
397
- toProblem(): Problem;
398
- }
399
- declare class SuccessfulAuthResponse extends Response<Tokens, Problem> {
400
- readonly tokens: Tokens;
401
- constructor(tokens: Tokens);
402
- toSuccess(): Tokens;
403
- toProblem(): Problem;
404
- }
405
- declare class FailedAuthResponse extends Response<Tokens, Problem> {
406
- readonly problem: Problem;
407
- constructor(problem: Problem);
408
- toSuccess(): Tokens;
409
- toProblem(): Problem;
410
- }
411
- declare class SuccessfulApiKeyResponse extends Response<ApiKey, Problem> {
412
- readonly apiKey: ApiKey;
413
- constructor(apiKey: ApiKey);
414
- toSuccess(): ApiKey;
415
- toProblem(): Problem;
416
- }
417
- declare class FailedApiKeyResponse extends Response<ApiKey, Problem> {
418
- readonly problem: Problem;
419
- constructor(problem: Problem);
420
- toSuccess(): ApiKey;
421
- toProblem(): Problem;
422
- }
423
- declare class SuccessfulSearchServiceResponse extends Response<SearchService, Problem> {
424
- readonly searchService: SearchService;
425
- constructor(searchService: SearchService);
426
- toSuccess(): SearchService;
427
- toProblem(): Problem;
428
- }
429
- declare class FailedSearchServiceResponse extends Response<SearchService, Problem> {
430
- readonly problem: Problem;
431
- constructor(problem: Problem);
432
- toSuccess(): SearchService;
433
- toProblem(): Problem;
434
- }
435
- declare class SuccessfulViewSearchServiceResponse extends Response<SearchServiceDetails, Problem> {
436
- readonly searchService: SearchServiceDetails;
437
- constructor(searchService: SearchServiceDetails);
438
- toSuccess(): SearchServiceDetails;
439
- toProblem(): Problem;
440
- }
441
- declare class SuccessfulViewSearchResultResponse extends Response<SearchResult, Problem> {
442
- readonly searchResult: SearchResult;
443
- constructor(searchResult: SearchResult);
444
- toSuccess(): SearchResult;
445
- toProblem(): Problem;
446
- }
447
- declare class FailedSearchResultResponse extends Response<SearchResult, Problem> {
448
- readonly problem: Problem;
449
- constructor(problem: Problem);
450
- toSuccess(): SearchResult;
451
- toProblem(): Problem;
452
- }
453
- declare class SuccessfulListSearchResultResponse extends Response<SearchResult[], Problem> {
454
- readonly searchResults: SearchResult[];
455
- constructor(searchResults: SearchResult[]);
456
- toSuccess(): SearchResult[];
457
- toProblem(): Problem;
458
- }
459
- declare class FailedViewSearchResultResponse extends Response<SearchResult[], Problem> {
460
- readonly problem: Problem;
461
- constructor(problem: Problem);
462
- toSuccess(): SearchResult[];
463
- toProblem(): Problem;
464
- }
465
- declare class SuccessfulListSearchServiceResponse extends Response<SearchService[], Problem> {
466
- readonly searchServices: SearchService[];
467
- constructor(searchServices: SearchService[]);
468
- toSuccess(): SearchService[];
469
- toProblem(): Problem;
470
- }
471
- declare class FailedViewSearchServicesResponse extends Response<SearchService[], Problem> {
472
- readonly problem: Problem;
473
- constructor(problem: Problem);
474
- toSuccess(): SearchService[];
475
- toProblem(): Problem;
476
- }
477
- declare class FailedViewSearchServiceResponse extends Response<SearchServiceDetails, Problem> {
478
- readonly problem: Problem;
479
- constructor(problem: Problem);
480
- toSuccess(): SearchServiceDetails;
481
- toProblem(): Problem;
482
- }
483
- declare class SuccessfulApiKeyValueResponse extends Response<ApiKeyValue, Problem> {
484
- readonly apiKeyValue: ApiKeyValue;
485
- constructor(apiKeyValue: ApiKeyValue);
486
- toSuccess(): ApiKeyValue;
487
- toProblem(): Problem;
488
- }
489
- declare class SuccessfulResponse extends Response<any, Problem> {
490
- readonly obj: any;
491
- constructor(obj: any);
492
- toSuccess(): any;
493
- toProblem(): Problem;
494
- }
495
- declare class FailedResponse extends Response<any, Problem> {
496
- readonly problem: Problem;
497
- constructor(problem: Problem);
498
- toSuccess(): any;
499
- toProblem(): Problem;
500
- }
501
- declare class FailedApiKeyValueResponse extends Response<ApiKeyValue, Problem> {
502
- readonly problem: Problem;
503
- constructor(problem: Problem);
504
- toSuccess(): ApiKeyValue;
505
- toProblem(): Problem;
506
- }
507
-
508
- export { type Account, type AccountAndImage, type AccountImage, AdminClient, type ApiKey, type ApiKeyValue, AuthClient, type Contributor, type CreateSearchResultOptions, type Error, type Facet, FailedAccountAndImageResponse, FailedAccountImageResponse, FailedAccountResponse, FailedApiKeyResponse, FailedApiKeyValueResponse, FailedAuthResponse, FailedContributorResponse, FailedFacetResponse, FailedFacetValuesResponse, FailedGroupResponse, FailedListIdentityResponse, FailedListResponse, FailedResponse, FailedSearchResultResponse, FailedSearchServiceResponse, FailedSearchableFieldResponse, FailedSuggesterResponse, FailedViewSearchResultResponse, FailedViewSearchServiceResponse, FailedViewSearchServicesResponse, type Group, type List, type ListIdentity, type ListSearchResultOptions, type NameAndValue, type Problem, type RefreshRequest, Response, type SearchResult, type SearchService, type SearchServiceDetails, type SearchableField, SuccessfulAccountAndImageResponse, SuccessfulAccountImageResponse, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulApiKeyValueResponse, SuccessfulAuthResponse, SuccessfulContributorResponse, SuccessfulFacetResponse, SuccessfulFacetValueResponse, SuccessfulGroupResponse, SuccessfulListIdentityResponse, SuccessfulListResponse, SuccessfulListSearchResultResponse, SuccessfulListSearchServiceResponse, SuccessfulResponse, SuccessfulSearchServiceResponse, SuccessfulSearchableFieldResponse, SuccessfulSuggesterResponse, SuccessfulViewSearchResultResponse, SuccessfulViewSearchServiceResponse, type Suggester, TokenStatus, Tokens };