ggez-banking-sdk 0.5.13 → 0.5.15
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/dist/api/proxy/programProxy.d.ts +2 -1
- package/dist/api/proxy/programProxy.js +2 -0
- package/dist/api/service/programService.d.ts +3 -2
- package/dist/api/service/programService.js +4 -0
- package/dist/types/banking/program/program/index.d.ts +2 -0
- package/dist/types/banking/program/program/signupRequirements.d.ts +17 -0
- package/dist/types/banking/program/program/signupRequirements.js +1 -0
- package/dist/types/banking/program/program/validation/IDVerificationSetup.d.ts +14 -0
- package/dist/types/banking/program/program/validation/IDVerificationSetup.js +1 -0
- package/dist/types/banking/program/program/validation/advancedConfiguration.d.ts +5 -0
- package/dist/types/banking/program/program/validation/advancedConfiguration.js +1 -0
- package/dist/types/banking/program/program/validation/configuration.d.ts +7 -0
- package/dist/types/banking/program/program/validation/configuration.js +1 -0
- package/dist/types/banking/program/program/validation/customerRegistrationSetup.d.ts +5 -0
- package/dist/types/banking/program/program/validation/customerRegistrationSetup.js +1 -0
- package/dist/types/banking/program/program/validation/enabledServices.d.ts +6 -0
- package/dist/types/banking/program/program/validation/enabledServices.js +1 -0
- package/dist/types/banking/program/program/validation/index.d.ts +6 -0
- package/dist/types/banking/program/program/validation/index.js +1 -0
- package/dist/types/banking/program/program/validation/validationServicesSettings.d.ts +13 -0
- package/dist/types/banking/program/program/validation/validationServicesSettings.js +1 -0
- package/package.json +1 -1
|
@@ -3,9 +3,10 @@ import { BaseProxy } from "./baseProxy";
|
|
|
3
3
|
declare class ProgramProxy extends BaseProxy {
|
|
4
4
|
private programService;
|
|
5
5
|
constructor(data: BaseProxyParameters);
|
|
6
|
+
get: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
6
7
|
getSystemFeatures: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
7
8
|
getBin: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
8
|
-
getSignUp: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").
|
|
9
|
+
getSignUp: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").SignupRequirements>>;
|
|
9
10
|
getProgramSecurity: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
10
11
|
}
|
|
11
12
|
export { ProgramProxy };
|
|
@@ -6,6 +6,8 @@ class ProgramProxy extends BaseProxy {
|
|
|
6
6
|
super(data);
|
|
7
7
|
this.programService = new ProgramService(data);
|
|
8
8
|
}
|
|
9
|
+
// #region "GET"
|
|
10
|
+
get = async () => this.programService.get();
|
|
9
11
|
getSystemFeatures = async () => this.programService.getSystemFeatures();
|
|
10
12
|
getBin = async () => this.programService.getBin();
|
|
11
13
|
getSignUp = async () => this.programService.getSignUp();
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { BaseService } from "./baseService";
|
|
2
2
|
import type { ProgramServiceParameter } from "../../types";
|
|
3
|
-
import type { ProgramData } from "../../types/banking/program";
|
|
3
|
+
import type { ProgramData, SignupRequirements } from "../../types/banking/program";
|
|
4
4
|
declare class ProgramService extends BaseService {
|
|
5
5
|
protected endpoint: string;
|
|
6
6
|
private authService;
|
|
7
7
|
constructor(data: ProgramServiceParameter);
|
|
8
8
|
private onProgramRequest;
|
|
9
|
+
get(): Promise<import("../..").ApiResponse<ProgramData>>;
|
|
9
10
|
getSystemFeatures(): Promise<import("../..").ApiResponse<ProgramData>>;
|
|
10
11
|
getBin(): Promise<import("../..").ApiResponse<ProgramData>>;
|
|
11
|
-
getSignUp(): Promise<import("../..").ApiResponse<
|
|
12
|
+
getSignUp(): Promise<import("../..").ApiResponse<SignupRequirements>>;
|
|
12
13
|
getProgramSecurity(): Promise<import("../..").ApiResponse<ProgramData>>;
|
|
13
14
|
}
|
|
14
15
|
export { ProgramService };
|
|
@@ -16,6 +16,10 @@ class ProgramService extends BaseService {
|
|
|
16
16
|
return req;
|
|
17
17
|
}
|
|
18
18
|
//#region "GET"
|
|
19
|
+
get() {
|
|
20
|
+
const url = this.resolveURL(this.context.getProgramId());
|
|
21
|
+
return this.GET(url);
|
|
22
|
+
}
|
|
19
23
|
getSystemFeatures() {
|
|
20
24
|
const url = this.resolveURL(`${ProgramEndpoints.SystemFeatures}/${this.context.getProgramId()}`);
|
|
21
25
|
return this.GET(url);
|
|
@@ -24,6 +24,7 @@ export type * from "./programSecurity";
|
|
|
24
24
|
export type * from "./screeningOptions";
|
|
25
25
|
export type * from "./securityUserAlert";
|
|
26
26
|
export type * from "./securityUserAlertOptions";
|
|
27
|
+
export type * from "./signupRequirements";
|
|
27
28
|
export type * from "./setup";
|
|
28
29
|
export type * from "./socialMedia";
|
|
29
30
|
export type * from "./status";
|
|
@@ -37,5 +38,6 @@ export type * from "./userContentInformation";
|
|
|
37
38
|
export type * from "./userIdentificationSetup";
|
|
38
39
|
export type * from "./userSystemOptions";
|
|
39
40
|
export type * from "./userVerificationContent";
|
|
41
|
+
export type * from "./validation";
|
|
40
42
|
export type * from "./verificationRequirements";
|
|
41
43
|
export type * from "./webServiceSystemOptions";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseResult } from "../../common";
|
|
2
|
+
import { PasswordSettings, TermsConditions, VerificationRequirements, UserSystemOptions, EcommerceSettings } from ".";
|
|
3
|
+
import { Bin } from "../bin";
|
|
4
|
+
import { UserApplication } from "./applicationOptions";
|
|
5
|
+
import { ValidationServicesSettings } from "./validation";
|
|
6
|
+
type SignupRequirements = BaseResult & {
|
|
7
|
+
program_id: number;
|
|
8
|
+
password_settings: PasswordSettings;
|
|
9
|
+
terms_conditions: TermsConditions[];
|
|
10
|
+
bin: Bin[];
|
|
11
|
+
verification_requirements: VerificationRequirements;
|
|
12
|
+
user_system_options: UserSystemOptions;
|
|
13
|
+
ecommerce_settings: EcommerceSettings;
|
|
14
|
+
user_application: UserApplication;
|
|
15
|
+
validation_service_settings: ValidationServicesSettings[];
|
|
16
|
+
};
|
|
17
|
+
export type { SignupRequirements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type IDVerificationSetup = {
|
|
2
|
+
is_selfie_method_enabled: boolean;
|
|
3
|
+
is_manual_method_enabled: boolean;
|
|
4
|
+
is_ocr_mrz_method_enabled: boolean;
|
|
5
|
+
number_of_mandatory: number;
|
|
6
|
+
max_trials_count_ocr: number;
|
|
7
|
+
max_trials_count_selfie: number;
|
|
8
|
+
max_trials_count_manual: number;
|
|
9
|
+
ocr_supported_countries: string;
|
|
10
|
+
selfie_supported_countries: string;
|
|
11
|
+
manual_supported_countries: string;
|
|
12
|
+
enable_auto_reject_document: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type { IDVerificationSetup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EnabledServices, CustomerRegistrationSetup, IDVerificationSetup } from ".";
|
|
2
|
+
type Configuration = {
|
|
3
|
+
enabled_services: EnabledServices;
|
|
4
|
+
customer_registration_setup: CustomerRegistrationSetup;
|
|
5
|
+
id_verification_setup: IDVerificationSetup;
|
|
6
|
+
};
|
|
7
|
+
export type { Configuration };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type * from "./advancedConfiguration";
|
|
2
|
+
export type * from "./configuration";
|
|
3
|
+
export type * from "./customerRegistrationSetup";
|
|
4
|
+
export type * from "./enabledServices";
|
|
5
|
+
export type * from "./IDVerificationSetup";
|
|
6
|
+
export type * from "./validationServicesSettings";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SecurityValidationType, ServiceProvider } from "../../../../../constant";
|
|
2
|
+
import { Configuration, AdvancedConfiguration } from ".";
|
|
3
|
+
type ValidationServicesSettings = {
|
|
4
|
+
id: number;
|
|
5
|
+
status: boolean;
|
|
6
|
+
bin_id: number;
|
|
7
|
+
service_provider: ServiceProvider;
|
|
8
|
+
validation_type: SecurityValidationType;
|
|
9
|
+
supported_countries: string;
|
|
10
|
+
configuration: Configuration;
|
|
11
|
+
advanced_configuration: AdvancedConfiguration;
|
|
12
|
+
};
|
|
13
|
+
export type { ValidationServicesSettings };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.15",
|
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|