@aneuhold/core-ts-api-lib 1.0.2 → 1.0.3
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/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import APIService from './services/APIService/APIService';
|
|
1
2
|
import DOFunctionService from './services/DOFunctionService/DOFunctionService';
|
|
2
3
|
import { AuthCheckPasswordInput, AuthCheckPasswordOutput, AuthCheckPasswordRawOutput } from './services/DOFunctionService/functions/authCheckPassword';
|
|
3
4
|
import { AuthValidateUserInput, AuthValidateUserOutput, AuthValidateUserRawOutput } from './services/DOFunctionService/functions/authValidateUser';
|
|
4
|
-
export { DOFunctionService };
|
|
5
|
+
export { DOFunctionService, APIService };
|
|
5
6
|
export type { AuthCheckPasswordInput, AuthCheckPasswordOutput, AuthCheckPasswordRawOutput, AuthValidateUserInput, AuthValidateUserOutput, AuthValidateUserRawOutput };
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,yDAAyD,CAAC;AAGjE,OAAO,EAAE,iBAAiB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,OAAO,iBAAiB,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,yDAAyD,CAAC;AAGjE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAGzC,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EAC1B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DOFunctionService = void 0;
|
|
6
|
+
exports.APIService = exports.DOFunctionService = void 0;
|
|
7
|
+
const APIService_1 = __importDefault(require("./services/APIService/APIService"));
|
|
8
|
+
exports.APIService = APIService_1.default;
|
|
7
9
|
const DOFunctionService_1 = __importDefault(require("./services/DOFunctionService/DOFunctionService"));
|
|
8
10
|
exports.DOFunctionService = DOFunctionService_1.default;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { AuthValidateUserInput } from '../DOFunctionService/functions/authValidateUser';
|
|
1
2
|
/**
|
|
2
3
|
* A service for making calls to the backend API for personal projects. This is
|
|
3
4
|
* abstracted so that the backend implementation can change over time.
|
|
4
5
|
*/
|
|
5
6
|
export default class APIService {
|
|
7
|
+
/**
|
|
8
|
+
* Validates the provided username and password against the database and
|
|
9
|
+
* returns the user's information if successful.
|
|
10
|
+
*/
|
|
11
|
+
static validateUser(input: AuthValidateUserInput): Promise<import("../DOFunctionService/functions/authValidateUser").AuthValidateUserOutput>;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=APIService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIService.d.ts","sourceRoot":"","sources":["../../../src/services/APIService/APIService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"APIService.d.ts","sourceRoot":"","sources":["../../../src/services/APIService/APIService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAExF;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B;;;OAGG;WACU,YAAY,CAAC,KAAK,EAAE,qBAAqB;CAIvD"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const DOFunctionService_1 = __importDefault(require("../DOFunctionService/DOFunctionService"));
|
|
3
7
|
/**
|
|
4
8
|
* A service for making calls to the backend API for personal projects. This is
|
|
5
9
|
* abstracted so that the backend implementation can change over time.
|
|
6
10
|
*/
|
|
7
11
|
class APIService {
|
|
12
|
+
/**
|
|
13
|
+
* Validates the provided username and password against the database and
|
|
14
|
+
* returns the user's information if successful.
|
|
15
|
+
*/
|
|
16
|
+
static async validateUser(input) {
|
|
17
|
+
const result = await DOFunctionService_1.default.authValidateUser.call(input);
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
8
20
|
}
|
|
9
21
|
exports.default = APIService;
|
package/package.json
CHANGED