@wenex/sdk 1.1.10 → 1.1.11
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.
|
@@ -7,5 +7,11 @@ export interface Account<Properties extends object = object> extends Core<Proper
|
|
|
7
7
|
bio?: string;
|
|
8
8
|
status?: string;
|
|
9
9
|
}
|
|
10
|
+
export type Credential = {
|
|
11
|
+
ttl: number;
|
|
12
|
+
user: string;
|
|
13
|
+
pass: string;
|
|
14
|
+
urls: string[];
|
|
15
|
+
};
|
|
10
16
|
export type AccountDoc<Properties extends object = object> = Account<Properties> & Document;
|
|
11
17
|
export type AccountDto<Properties extends object = object> = Dto<Account<Properties>>;
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import { RestfulService } from '../../common/core/classes';
|
|
3
|
-
import { Account, AccountDto } from '../../common/interfaces/conjoint';
|
|
2
|
+
import { RequestConfig, RestfulService } from '../../common/core/classes';
|
|
3
|
+
import { Account, AccountDto, Credential } from '../../common/interfaces/conjoint';
|
|
4
4
|
export declare class AccountsService<Properties extends object = object> extends RestfulService<Account<Properties>, AccountDto<Properties>> {
|
|
5
5
|
protected axios: AxiosInstance;
|
|
6
6
|
constructor(axios: AxiosInstance);
|
|
7
|
+
cred(config?: RequestConfig<Credential>): Promise<Credential>;
|
|
7
8
|
static build<Properties extends object = object>(axios: AxiosInstance): AccountsService<Properties>;
|
|
8
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.service.js","sourceRoot":"","sources":["../../src/services/conjoint/accounts.service.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"accounts.service.js","sourceRoot":"","sources":["../../src/services/conjoint/accounts.service.ts"],"names":[],"mappings":";;;AAEA,uDAA0E;AAG1E,MAAa,eAAoD,SAAQ,wBAGxE;IACC,YAAsB,KAAoB;QACxC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;QADd,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,IAAI,CAAC,MAAkC;QACrC,OAAO,IAAI,CAAC,IAAI,CAAqB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,eAAe,CAAa,KAAK,CAAC,CAAC;IAChD,CAAC;CACF;AAfD,0CAeC"}
|