fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-17 02:34:31 +01:00
parent ebd50b0bed
commit 5b823b09ac
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ let testAccount: letterxpress.LetterXpressAccount;
let testLetter: tsclass.business.ILetter;
tap.test('should create a valid account', async () => {
testAccount = await letterxpress.LetterXpressAccount.createAndInit({
testAccount = await letterxpress.LetterXpressAccount.createAndStart({
apiKey: await testQenv.getEnvVarOnDemand('API_TOKEN'),
username: await testQenv.getEnvVarOnDemand('API_USERNAME'),
});

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiclient.xyz/letterxpress',
version: '1.0.16',
version: '1.0.17',
description: 'an unofficial API package for the letterxpress API'
}

View File

@ -7,9 +7,9 @@ export interface ILetterXpressConstructorOptions {
export class LetterXpressAccount {
// STATIC
public static async createAndInit(optionsArg: ConstructorParameters<typeof LetterXpressAccount>[0]) {
public static async createAndStart(optionsArg: ConstructorParameters<typeof LetterXpressAccount>[0]) {
const letterXpressInstance = new LetterXpressAccount(optionsArg);
await letterXpressInstance.init();
await letterXpressInstance.start();
return letterXpressInstance;
}
@ -25,7 +25,7 @@ export class LetterXpressAccount {
this.options = optionsArg;
}
public async init() {
public async start() {
this.deesDocumentInstance = await plugins.deesDocument.PdfService.createAndStart({});
}