@searchability/admin-client 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x2ec56e,_0x30298d,_0xb65223,_0x1cad79){function _0x473bb1(_0x3da147){return _0x3da147 instanceof _0xb65223?_0x3da147:new _0xb65223(function(_0xe8f72b){_0xe8f72b(_0x3da147);});}return new(_0xb65223||(_0xb65223=Promise))(function(_0x29e400,_0x2a27f3){function _0x535586(_0x2f7973){try{_0x3675de(_0x1cad79['next'](_0x2f7973));}catch(_0x458bfa){_0x2a27f3(_0x458bfa);}}function _0x287771(_0x350ea5){try{_0x3675de(_0x1cad79['throw'](_0x350ea5));}catch(_0x4ffc7b){_0x2a27f3(_0x4ffc7b);}}function _0x3675de(_0x3b038a){_0x3b038a['done']?_0x29e400(_0x3b038a['value']):_0x473bb1(_0x3b038a['value'])['then'](_0x535586,_0x287771);}_0x3675de((_0x1cad79=_0x1cad79['apply'](_0x2ec56e,_0x30298d||[]))['next']());});};class Fetch{static['get'](_0x4d40e0,_0x67bbc9){return __awaiter$1(this,void 0,void 0,function*(){return yield fetch(_0x4d40e0,{'method':'get','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x67bbc9}});});}}
1
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1cd876,_0x1aba90,_0x4f56f2,_0x430be3){function _0x26d4f7(_0x481acd){return _0x481acd instanceof _0x4f56f2?_0x481acd:new _0x4f56f2(function(_0x1eb483){_0x1eb483(_0x481acd);});}return new(_0x4f56f2||(_0x4f56f2=Promise))(function(_0x297f96,_0x46b7ac){function _0x228e6b(_0xe72e32){try{_0x1bb595(_0x430be3['next'](_0xe72e32));}catch(_0x326de8){_0x46b7ac(_0x326de8);}}function _0x28186d(_0x45774d){try{_0x1bb595(_0x430be3['throw'](_0x45774d));}catch(_0x2dfa29){_0x46b7ac(_0x2dfa29);}}function _0x1bb595(_0x325ec9){_0x325ec9['done']?_0x297f96(_0x325ec9['value']):_0x26d4f7(_0x325ec9['value'])['then'](_0x228e6b,_0x28186d);}_0x1bb595((_0x430be3=_0x430be3['apply'](_0x1cd876,_0x1aba90||[]))['next']());});};class Fetch{static['get'](_0x2155a2,_0x8f94cf){return __awaiter$1(this,void 0,void 0,function*(){return yield fetch(_0x2155a2,{'method':'get','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x8f94cf}});});}}
2
2
 
3
- class Response{constructor(_0x345240){this['isSuccess']=_0x345240;}}class SuccessfulAccountResponse extends Response{constructor(_0x47e5af){super(!![]),this['account']=_0x47e5af;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x1babe2){super(![]),this['problem']=_0x1babe2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ class Response{constructor(_0x15129d){this['isSuccess']=_0x15129d;}}class SuccessfulAccountResponse extends Response{constructor(_0x2839e7){super(!![]),this['account']=_0x2839e7;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x149a88){super(![]),this['problem']=_0x149a88;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter=undefined&&undefined['__awaiter']||function(_0xd89516,_0x3ae92c,_0x251e40,_0x1b04f7){function _0x157ec3(_0xd83d87){return _0xd83d87 instanceof _0x251e40?_0xd83d87:new _0x251e40(function(_0x24dfda){_0x24dfda(_0xd83d87);});}return new(_0x251e40||(_0x251e40=Promise))(function(_0x4b0c38,_0x104ea9){function _0x419869(_0x4f155b){try{_0x4ef678(_0x1b04f7['next'](_0x4f155b));}catch(_0x80c5e){_0x104ea9(_0x80c5e);}}function _0x219362(_0x218553){try{_0x4ef678(_0x1b04f7['throw'](_0x218553));}catch(_0x14ec6b){_0x104ea9(_0x14ec6b);}}function _0x4ef678(_0x1cff1f){_0x1cff1f['done']?_0x4b0c38(_0x1cff1f['value']):_0x157ec3(_0x1cff1f['value'])['then'](_0x419869,_0x219362);}_0x4ef678((_0x1b04f7=_0x1b04f7['apply'](_0xd89516,_0x3ae92c||[]))['next']());});};class AccountService{constructor(){}['get'](_0x2fce04,_0x564285){return __awaiter(this,arguments,void 0,function*(_0x2c64e6,_0x4fe00f,_0x55a52e={}){let _0x26e3d3=_0x55a52e['baseUri'];_0x26e3d3=_0x26e3d3+'/Account/'+_0x4fe00f+'/';const _0x236137=yield Fetch['get'](_0x26e3d3,_0x2c64e6);if(_0x236137['status']>0xc7&&_0x236137['status']<0x12c){const _0x5e6854=yield _0x236137['json']();return new SuccessfulAccountResponse(_0x5e6854);}if(_0x236137['bodyUsed']){const _0x58011e=yield _0x236137['json']();return new FailedAccountResponse(_0x58011e);}const _0x523223={'type':'','status':_0x236137['status'],'title':'','instance':'','errors':{}};return new FailedAccountResponse(_0x523223);});}}
5
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x4224ec,_0x31ccfb,_0x32f87c,_0x3e6c2b){function _0x3b51ac(_0xb3a6fa){return _0xb3a6fa instanceof _0x32f87c?_0xb3a6fa:new _0x32f87c(function(_0x5ecfaa){_0x5ecfaa(_0xb3a6fa);});}return new(_0x32f87c||(_0x32f87c=Promise))(function(_0x1cfd4e,_0x5e7013){function _0x35852c(_0x23398e){try{_0x4774d8(_0x3e6c2b['next'](_0x23398e));}catch(_0x3ba682){_0x5e7013(_0x3ba682);}}function _0x2667c6(_0x236366){try{_0x4774d8(_0x3e6c2b['throw'](_0x236366));}catch(_0x584b6f){_0x5e7013(_0x584b6f);}}function _0x4774d8(_0x2305e6){_0x2305e6['done']?_0x1cfd4e(_0x2305e6['value']):_0x3b51ac(_0x2305e6['value'])['then'](_0x35852c,_0x2667c6);}_0x4774d8((_0x3e6c2b=_0x3e6c2b['apply'](_0x4224ec,_0x31ccfb||[]))['next']());});};class AccountService{constructor(_0xd9588b){this['baseUri']=_0xd9588b;}['get'](_0x50b3bd,_0x2aac6d){return __awaiter(this,arguments,void 0,function*(_0x547146,_0x3f1702,_0x2efcbc={}){var _0x17116d;let _0x55bc6a=(_0x17116d=_0x2efcbc['baseUri'])!==null&&_0x17116d!==void 0?_0x17116d:this['baseUri'];_0x55bc6a=_0x55bc6a+'/Account/'+_0x3f1702+'/';const _0x206704=yield Fetch['get'](_0x55bc6a,_0x547146);if(_0x206704['status']>0xc7&&_0x206704['status']<0x12c){const _0x579ec6=yield _0x206704['json']();return new SuccessfulAccountResponse(_0x579ec6);}if(_0x206704['bodyUsed']){const _0x312596=yield _0x206704['json']();return new FailedAccountResponse(_0x312596);}const _0x2891d2={'type':'','status':_0x206704['status'],'title':'','instance':'','errors':{}};return new FailedAccountResponse(_0x2891d2);});}}
6
6
 
7
- class AdminClient{constructor(){this['baseUri']='https://admin.searchability.dev',this['Accounts']=new AccountService();}}
7
+ var _a;class AdminClient{}_a=AdminClient,AdminClient['baseUri']='https://admin.searchability.dev',AdminClient['Accounts']=new AccountService(_a['baseUri']);
8
8
 
9
9
  export { AdminClient };
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x5a75d9,_0x6ba4bc,_0x4cb627,_0x5aa308){function _0x23fbb3(_0x4f444a){return _0x4f444a instanceof _0x4cb627?_0x4f444a:new _0x4cb627(function(_0x4e8d3e){_0x4e8d3e(_0x4f444a);});}return new(_0x4cb627||(_0x4cb627=Promise))(function(_0x41ce9c,_0x3aeed0){function _0x18e4a5(_0x3a03e9){try{_0x4a0076(_0x5aa308['next'](_0x3a03e9));}catch(_0x1a240e){_0x3aeed0(_0x1a240e);}}function _0x37f5b4(_0x348154){try{_0x4a0076(_0x5aa308['throw'](_0x348154));}catch(_0x5d0995){_0x3aeed0(_0x5d0995);}}function _0x4a0076(_0x35a040){_0x35a040['done']?_0x41ce9c(_0x35a040['value']):_0x23fbb3(_0x35a040['value'])['then'](_0x18e4a5,_0x37f5b4);}_0x4a0076((_0x5aa308=_0x5aa308['apply'](_0x5a75d9,_0x6ba4bc||[]))['next']());});};class Fetch{static['get'](_0x4e9c86,_0xaac7bb){return __awaiter$1(this,void 0,void 0,function*(){return yield fetch(_0x4e9c86,{'method':'get','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xaac7bb}});});}}
3
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x580bf0,_0x66316c,_0x7afe77,_0x2bd145){function _0x1259ff(_0x18526e){return _0x18526e instanceof _0x7afe77?_0x18526e:new _0x7afe77(function(_0x3a00c6){_0x3a00c6(_0x18526e);});}return new(_0x7afe77||(_0x7afe77=Promise))(function(_0xeb8711,_0x480b4b){function _0x4fd4e8(_0x139982){try{_0xee4384(_0x2bd145['next'](_0x139982));}catch(_0xca23a1){_0x480b4b(_0xca23a1);}}function _0x1e56ea(_0x23c1bf){try{_0xee4384(_0x2bd145['throw'](_0x23c1bf));}catch(_0x34fa8f){_0x480b4b(_0x34fa8f);}}function _0xee4384(_0x42c7d9){_0x42c7d9['done']?_0xeb8711(_0x42c7d9['value']):_0x1259ff(_0x42c7d9['value'])['then'](_0x4fd4e8,_0x1e56ea);}_0xee4384((_0x2bd145=_0x2bd145['apply'](_0x580bf0,_0x66316c||[]))['next']());});};class Fetch{static['get'](_0x1b2d59,_0x2bb766){return __awaiter$1(this,void 0,void 0,function*(){return yield fetch(_0x1b2d59,{'method':'get','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2bb766}});});}}
4
4
 
5
- class Response{constructor(_0x78a668){this['isSuccess']=_0x78a668;}}class SuccessfulAccountResponse extends Response{constructor(_0x146923){super(!![]),this['account']=_0x146923;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0xc83e06){super(![]),this['problem']=_0xc83e06;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
5
+ class Response{constructor(_0x1be5df){this['isSuccess']=_0x1be5df;}}class SuccessfulAccountResponse extends Response{constructor(_0x4b3068){super(!![]),this['account']=_0x4b3068;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4aeb42){super(![]),this['problem']=_0x4aeb42;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
6
6
 
7
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x3a5d36,_0x3e67e1,_0x3e596b,_0x56ba57){function _0xeb6baf(_0xd03f22){return _0xd03f22 instanceof _0x3e596b?_0xd03f22:new _0x3e596b(function(_0xb389b3){_0xb389b3(_0xd03f22);});}return new(_0x3e596b||(_0x3e596b=Promise))(function(_0x529db7,_0x4c0742){function _0x43fe38(_0x5bf0cd){try{_0x38bdca(_0x56ba57['next'](_0x5bf0cd));}catch(_0x1a86a1){_0x4c0742(_0x1a86a1);}}function _0x39a679(_0x59ff66){try{_0x38bdca(_0x56ba57['throw'](_0x59ff66));}catch(_0x189780){_0x4c0742(_0x189780);}}function _0x38bdca(_0x31767c){_0x31767c['done']?_0x529db7(_0x31767c['value']):_0xeb6baf(_0x31767c['value'])['then'](_0x43fe38,_0x39a679);}_0x38bdca((_0x56ba57=_0x56ba57['apply'](_0x3a5d36,_0x3e67e1||[]))['next']());});};class AccountService{constructor(){}['get'](_0x53e1db,_0x450685){return __awaiter(this,arguments,void 0,function*(_0x5ed4a2,_0x103326,_0x1bf6cb={}){let _0x487b69=_0x1bf6cb['baseUri'];_0x487b69=_0x487b69+'/Account/'+_0x103326+'/';const _0x3ab0c0=yield Fetch['get'](_0x487b69,_0x5ed4a2);if(_0x3ab0c0['status']>0xc7&&_0x3ab0c0['status']<0x12c){const _0x45e047=yield _0x3ab0c0['json']();return new SuccessfulAccountResponse(_0x45e047);}if(_0x3ab0c0['bodyUsed']){const _0x41e5f5=yield _0x3ab0c0['json']();return new FailedAccountResponse(_0x41e5f5);}const _0x4d83c8={'type':'','status':_0x3ab0c0['status'],'title':'','instance':'','errors':{}};return new FailedAccountResponse(_0x4d83c8);});}}
7
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x15454e,_0x556014,_0x26a756,_0x1bb587){function _0xb9f461(_0x266ef9){return _0x266ef9 instanceof _0x26a756?_0x266ef9:new _0x26a756(function(_0x168d29){_0x168d29(_0x266ef9);});}return new(_0x26a756||(_0x26a756=Promise))(function(_0xcfe8ce,_0x4c4cd3){function _0x2ad599(_0x116a68){try{_0x17ed23(_0x1bb587['next'](_0x116a68));}catch(_0x2c6168){_0x4c4cd3(_0x2c6168);}}function _0x539f03(_0x61e8de){try{_0x17ed23(_0x1bb587['throw'](_0x61e8de));}catch(_0x2e445f){_0x4c4cd3(_0x2e445f);}}function _0x17ed23(_0x76bccb){_0x76bccb['done']?_0xcfe8ce(_0x76bccb['value']):_0xb9f461(_0x76bccb['value'])['then'](_0x2ad599,_0x539f03);}_0x17ed23((_0x1bb587=_0x1bb587['apply'](_0x15454e,_0x556014||[]))['next']());});};class AccountService{constructor(_0x34d697){this['baseUri']=_0x34d697;}['get'](_0xc0fff2,_0x1298ac){return __awaiter(this,arguments,void 0,function*(_0x317fa3,_0x215aee,_0x448b85={}){var _0x3135f3;let _0x38e10a=(_0x3135f3=_0x448b85['baseUri'])!==null&&_0x3135f3!==void 0?_0x3135f3:this['baseUri'];_0x38e10a=_0x38e10a+'/Account/'+_0x215aee+'/';const _0x549fcd=yield Fetch['get'](_0x38e10a,_0x317fa3);if(_0x549fcd['status']>0xc7&&_0x549fcd['status']<0x12c){const _0x4db49b=yield _0x549fcd['json']();return new SuccessfulAccountResponse(_0x4db49b);}if(_0x549fcd['bodyUsed']){const _0x37273d=yield _0x549fcd['json']();return new FailedAccountResponse(_0x37273d);}const _0x289dee={'type':'','status':_0x549fcd['status'],'title':'','instance':'','errors':{}};return new FailedAccountResponse(_0x289dee);});}}
8
8
 
9
- class AdminClient{constructor(){this['baseUri']='https://admin.searchability.dev',this['Accounts']=new AccountService();}}
9
+ var _a;class AdminClient{}_a=AdminClient,AdminClient['baseUri']='https://admin.searchability.dev',AdminClient['Accounts']=new AccountService(_a['baseUri']);
10
10
 
11
11
  exports.AdminClient = AdminClient;
@@ -0,0 +1,9 @@
1
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xc12900,_0x5359ac,_0x3ad6ab,_0x2be2d8){function _0x46b8fc(_0x2049e9){return _0x2049e9 instanceof _0x3ad6ab?_0x2049e9:new _0x3ad6ab(function(_0x21d8fd){_0x21d8fd(_0x2049e9);});}return new(_0x3ad6ab||(_0x3ad6ab=Promise))(function(_0x22103f,_0x58b6a0){function _0x46b1e5(_0x1d22c2){try{_0x3a5f9c(_0x2be2d8['next'](_0x1d22c2));}catch(_0x56a586){_0x58b6a0(_0x56a586);}}function _0x4562f2(_0x1c04b6){try{_0x3a5f9c(_0x2be2d8['throw'](_0x1c04b6));}catch(_0x39155c){_0x58b6a0(_0x39155c);}}function _0x3a5f9c(_0x53d7fb){_0x53d7fb['done']?_0x22103f(_0x53d7fb['value']):_0x46b8fc(_0x53d7fb['value'])['then'](_0x46b1e5,_0x4562f2);}_0x3a5f9c((_0x2be2d8=_0x2be2d8['apply'](_0xc12900,_0x5359ac||[]))['next']());});};class Fetch{static['get'](_0x489c66,_0xaf2c03){return __awaiter$1(this,void 0,void 0,function*(){return yield fetch(_0x489c66,{'method':'get','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xaf2c03}});});}}
2
+
3
+ class Response{constructor(_0x4aa07f){this['isSuccess']=_0x4aa07f;}}class SuccessfulAccountResponse extends Response{constructor(_0x7eacf5){super(!![]),this['account']=_0x7eacf5;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4fdcff){super(![]),this['problem']=_0x4fdcff;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
+
5
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x1b87cb,_0x424120,_0x5d47b4,_0x4eff57){function _0x571e2c(_0x478c6e){return _0x478c6e instanceof _0x5d47b4?_0x478c6e:new _0x5d47b4(function(_0x380e33){_0x380e33(_0x478c6e);});}return new(_0x5d47b4||(_0x5d47b4=Promise))(function(_0x118de4,_0x3da08a){function _0x113f02(_0x4eee5f){try{_0x2eb9a6(_0x4eff57['next'](_0x4eee5f));}catch(_0x200e01){_0x3da08a(_0x200e01);}}function _0x39d59e(_0x244586){try{_0x2eb9a6(_0x4eff57['throw'](_0x244586));}catch(_0x1d5791){_0x3da08a(_0x1d5791);}}function _0x2eb9a6(_0x101c4b){_0x101c4b['done']?_0x118de4(_0x101c4b['value']):_0x571e2c(_0x101c4b['value'])['then'](_0x113f02,_0x39d59e);}_0x2eb9a6((_0x4eff57=_0x4eff57['apply'](_0x1b87cb,_0x424120||[]))['next']());});};class AccountService{constructor(_0x3c7f70){this['baseUri']=_0x3c7f70;}['get'](_0x38be53,_0x49c753){return __awaiter(this,arguments,void 0,function*(_0x7697aa,_0x253bd8,_0x42fdec={}){var _0x34d814;let _0x3989dd=(_0x34d814=_0x42fdec['baseUri'])!==null&&_0x34d814!==void 0?_0x34d814:this['baseUri'];_0x3989dd=_0x3989dd+'/Account/'+_0x253bd8+'/';const _0xbde0f0=yield Fetch['get'](_0x3989dd,_0x7697aa);if(_0xbde0f0['status']>0xc7&&_0xbde0f0['status']<0x12c){const _0xd764cc=yield _0xbde0f0['json']();return new SuccessfulAccountResponse(_0xd764cc);}if(_0xbde0f0['bodyUsed']){const _0x32e1f8=yield _0xbde0f0['json']();return new FailedAccountResponse(_0x32e1f8);}const _0x175bed={'type':'','status':_0xbde0f0['status'],'title':'','instance':'','errors':{}};return new FailedAccountResponse(_0x175bed);});}}
6
+
7
+ var _a;class AdminClient{}_a=AdminClient,AdminClient['baseUri']='https://admin.searchability.dev',AdminClient['Accounts']=new AccountService(_a['baseUri']);
8
+
9
+ export { AdminClient };
package/dist/types.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  declare class AccountService {
2
- constructor();
2
+ readonly baseUri: string;
3
+ constructor(baseUri: string);
3
4
  get(accessToken: string, accountName: string, options?: Partial<Options>): Promise<Response<Account, Problem>>;
4
5
  }
5
6
 
6
7
  declare class AdminClient {
7
- readonly baseUri = "https://admin.searchability.dev";
8
- readonly Accounts: AccountService;
9
- constructor();
8
+ static baseUri: string;
9
+ static Accounts: AccountService;
10
10
  }
11
11
 
12
12
  type Options = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -8,7 +8,7 @@
8
8
  "exports": {
9
9
  "import":{
10
10
  "types":"./dist/types.d.ts",
11
- "default":"./dist/searchability-admin-client.js"
11
+ "default":"./dist/searchability-admin-client.mjs"
12
12
  },
13
13
  "require":{
14
14
  "types":"./dist/types.d.ts",
@@ -1,9 +0,0 @@
1
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xe1d169,_0x310f23,_0x7dc183,_0x4ebf66){function _0x27cc91(_0x59207e){return _0x59207e instanceof _0x7dc183?_0x59207e:new _0x7dc183(function(_0x44a99e){_0x44a99e(_0x59207e);});}return new(_0x7dc183||(_0x7dc183=Promise))(function(_0x4c2c2e,_0x18f062){function _0x2ea042(_0x48e8ba){try{_0xf92b18(_0x4ebf66['next'](_0x48e8ba));}catch(_0x213d08){_0x18f062(_0x213d08);}}function _0x3727e4(_0x4efdb9){try{_0xf92b18(_0x4ebf66['throw'](_0x4efdb9));}catch(_0x511180){_0x18f062(_0x511180);}}function _0xf92b18(_0x15e3a4){_0x15e3a4['done']?_0x4c2c2e(_0x15e3a4['value']):_0x27cc91(_0x15e3a4['value'])['then'](_0x2ea042,_0x3727e4);}_0xf92b18((_0x4ebf66=_0x4ebf66['apply'](_0xe1d169,_0x310f23||[]))['next']());});};class Fetch{static['get'](_0x16edad,_0x2295b1){return __awaiter$1(this,void 0,void 0,function*(){return yield fetch(_0x16edad,{'method':'get','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2295b1}});});}}
2
-
3
- class Response{constructor(_0x4b4b5a){this['isSuccess']=_0x4b4b5a;}}class SuccessfulAccountResponse extends Response{constructor(_0x3a9d48){super(!![]),this['account']=_0x3a9d48;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x42d662){super(![]),this['problem']=_0x42d662;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
-
5
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x5efb31,_0x213af3,_0x2d164a,_0x25532e){function _0x172889(_0x3f1a1e){return _0x3f1a1e instanceof _0x2d164a?_0x3f1a1e:new _0x2d164a(function(_0x192ded){_0x192ded(_0x3f1a1e);});}return new(_0x2d164a||(_0x2d164a=Promise))(function(_0x500ae5,_0x557cfd){function _0x522302(_0x3a04cc){try{_0x123439(_0x25532e['next'](_0x3a04cc));}catch(_0x395e2e){_0x557cfd(_0x395e2e);}}function _0x3401a1(_0x5c39d5){try{_0x123439(_0x25532e['throw'](_0x5c39d5));}catch(_0x24e2cd){_0x557cfd(_0x24e2cd);}}function _0x123439(_0x3208d1){_0x3208d1['done']?_0x500ae5(_0x3208d1['value']):_0x172889(_0x3208d1['value'])['then'](_0x522302,_0x3401a1);}_0x123439((_0x25532e=_0x25532e['apply'](_0x5efb31,_0x213af3||[]))['next']());});};class AccountService{constructor(){}['get'](_0x1522eb,_0x5c9b66){return __awaiter(this,arguments,void 0,function*(_0x50fe7d,_0x2929d1,_0x4f59e7={}){let _0x15bb2e=_0x4f59e7['baseUri'];_0x15bb2e=_0x15bb2e+'/Account/'+_0x2929d1+'/';const _0x2c7e24=yield Fetch['get'](_0x15bb2e,_0x50fe7d);if(_0x2c7e24['status']>0xc7&&_0x2c7e24['status']<0x12c){const _0x5151f1=yield _0x2c7e24['json']();return new SuccessfulAccountResponse(_0x5151f1);}if(_0x2c7e24['bodyUsed']){const _0x50d428=yield _0x2c7e24['json']();return new FailedAccountResponse(_0x50d428);}const _0x285dc0={'type':'','status':_0x2c7e24['status'],'title':'','instance':'','errors':{}};return new FailedAccountResponse(_0x285dc0);});}}
6
-
7
- class AdminClient{constructor(){this['baseUri']='https://admin.searchability.dev',this['Accounts']=new AccountService();}}
8
-
9
- export { AdminClient };