@airxpay/init-sdk 1.0.2 → 1.0.4
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/README.md +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +9 -19
- package/dist/types/bank.d.ts +8 -8
- package/dist/types/bank.js +2 -0
- package/dist/types/bank.ts +8 -0
- package/dist/types/index.d.ts +17 -14
- package/dist/types/index.js +20 -0
- package/dist/types/index.ts +13 -0
- package/dist/types/keys.d.ts +5 -5
- package/dist/types/keys.js +2 -0
- package/dist/types/keys.ts +5 -0
- package/dist/types/kyc.d.ts +10 -11
- package/dist/types/kyc.js +2 -0
- package/dist/types/kyc.ts +11 -0
- package/dist/types/seller.d.ts +35 -46
- package/dist/types/seller.js +2 -0
- package/dist/types/seller.ts +46 -0
- package/package.json +1 -1
- /package/dist/api/{sellerOnboard.d.ts → sellerOnboardAPI.d.ts} +0 -0
- /package/dist/api/{sellerOnboard.js → sellerOnboardAPI.js} +0 -0
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# AirXPay Flixora SDK - Seller Onboard
|
|
2
2
|
|
|
3
|
-
<div align="center">
|
|
3
|
+
<!-- <div align="center">
|
|
4
4
|
<img src="./assets/images/flixora.png" alt="AirXPay Flixora SDK" width="100"/>
|
|
5
|
-
</div>
|
|
5
|
+
</div> -->
|
|
6
6
|
|
|
7
7
|
**Enterprise-grade TypeScript SDK** for seamless seller onboarding in multi-tenant SaaS platforms. Built with ❤️ by the **Flixora Ecosystem**. Powered by **AirXPay** for payouts and payments, integrated with **TizzyGo**, **TizzyOS**, and soon **TizzyChat** for real-time notifications. Made with a **smiles-first philosophy**, designed to evolve and upgrade continuously for future generations.
|
|
8
8
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export { AirXPay } from "./api/sellerOnboardAPI";
|
|
2
|
+
export type { Seller } from "./types/sellerTypes";
|
|
3
|
+
export type { DeveloperKeys } from "./types/developerTypes";
|
|
4
|
+
export { validateKeys } from "./utils/validateKeys";
|
|
5
|
+
export { base64ToBlob } from "./utils/uploadHelper";
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
exports.base64ToBlob = exports.validateKeys = exports.AirXPay = void 0;
|
|
4
|
+
// ✅ Main SDK class (explicit export)
|
|
5
|
+
var sellerOnboardAPI_1 = require("./api/sellerOnboardAPI");
|
|
6
|
+
Object.defineProperty(exports, "AirXPay", { enumerable: true, get: function () { return sellerOnboardAPI_1.AirXPay; } });
|
|
7
|
+
// ✅ Utilities (optional public API)
|
|
8
|
+
var validateKeys_1 = require("./utils/validateKeys");
|
|
9
|
+
Object.defineProperty(exports, "validateKeys", { enumerable: true, get: function () { return validateKeys_1.validateKeys; } });
|
|
10
|
+
var uploadHelper_1 = require("./utils/uploadHelper");
|
|
11
|
+
Object.defineProperty(exports, "base64ToBlob", { enumerable: true, get: function () { return uploadHelper_1.base64ToBlob; } });
|
package/dist/types/bank.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface BankDetails {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
export interface BankDetails {
|
|
2
|
+
accountHolderName?: string;
|
|
3
|
+
bankName?: string;
|
|
4
|
+
accountNumber?: string;
|
|
5
|
+
ifscCode?: string;
|
|
6
|
+
upiId?: string;
|
|
7
|
+
cancelledChequeUrl?: string;
|
|
8
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
export * from './seller';
|
|
2
|
+
export * from './bank';
|
|
3
|
+
export * from './kyc';
|
|
4
|
+
export * from './keys';
|
|
5
|
+
export declare class AirXPayTypes {
|
|
6
|
+
constructor(config: {
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
secretKey: string;
|
|
9
|
+
clientKey: string;
|
|
10
|
+
});
|
|
11
|
+
createSeller(seller: import('./seller').SellerData, keys: import('./keys').Keys): Promise<import('./seller').SellerData>;
|
|
12
|
+
updateKyc(sellerId: string, docs: Partial<import('./kyc').KycDocuments>): Promise<import('./seller').SellerData>;
|
|
13
|
+
updateBank(sellerId: string, bankDetails: Partial<import('./bank').BankDetails>): Promise<import('./seller').SellerData>;
|
|
14
|
+
getPendingStatus(sellerId: string): Promise<{
|
|
15
|
+
status: import('./kyc').KycStatus | import('./seller').SellerStatus;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./seller"), exports);
|
|
18
|
+
__exportStar(require("./bank"), exports);
|
|
19
|
+
__exportStar(require("./kyc"), exports);
|
|
20
|
+
__exportStar(require("./keys"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './seller';
|
|
2
|
+
export * from './bank';
|
|
3
|
+
export * from './kyc';
|
|
4
|
+
export * from './keys';
|
|
5
|
+
|
|
6
|
+
export declare class AirXPayTypes {
|
|
7
|
+
constructor(config: { baseUrl: string; secretKey: string; clientKey: string });
|
|
8
|
+
|
|
9
|
+
createSeller(seller: import('./seller').SellerData, keys: import('./keys').Keys): Promise<import('./seller').SellerData>;
|
|
10
|
+
updateKyc(sellerId: string, docs: Partial<import('./kyc').KycDocuments>): Promise<import('./seller').SellerData>;
|
|
11
|
+
updateBank(sellerId: string, bankDetails: Partial<import('./bank').BankDetails>): Promise<import('./seller').SellerData>;
|
|
12
|
+
getPendingStatus(sellerId: string): Promise<{ status: import('./kyc').KycStatus | import('./seller').SellerStatus }>;
|
|
13
|
+
}
|
package/dist/types/keys.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface Keys {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export interface Keys {
|
|
2
|
+
publicKey: string;
|
|
3
|
+
secretKey: string;
|
|
4
|
+
clientKey: string;
|
|
5
|
+
}
|
package/dist/types/kyc.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export type KycStatus = "not_submitted" | "pending" | "verified" | "rejected";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
1
|
+
export type KycStatus = "not_submitted" | "pending" | "verified" | "rejected";
|
|
2
|
+
export interface KycDocuments {
|
|
3
|
+
panCardUrl?: string;
|
|
4
|
+
aadhaarUrl?: string;
|
|
5
|
+
identityProofUrl?: string;
|
|
6
|
+
addressProofUrl?: string;
|
|
7
|
+
selfieUrl?: string;
|
|
8
|
+
businessRegistrationUrl?: string;
|
|
9
|
+
gstCertificateUrl?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type KycStatus = "not_submitted" | "pending" | "verified" | "rejected";
|
|
2
|
+
|
|
3
|
+
export interface KycDocuments {
|
|
4
|
+
panCardUrl?: string;
|
|
5
|
+
aadhaarUrl?: string;
|
|
6
|
+
identityProofUrl?: string;
|
|
7
|
+
addressProofUrl?: string;
|
|
8
|
+
selfieUrl?: string;
|
|
9
|
+
businessRegistrationUrl?: string;
|
|
10
|
+
gstCertificateUrl?: string;
|
|
11
|
+
}
|
package/dist/types/seller.d.ts
CHANGED
|
@@ -1,46 +1,35 @@
|
|
|
1
|
-
export type BusinessType = "individual" | "company";
|
|
2
|
-
export type Mode = "test" | "live";
|
|
3
|
-
export type SellerStatus = "active" | "suspended" | "blocked";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
bankDetails?: import("./bank").BankDetails;
|
|
37
|
-
isBankDetailsCompleted: boolean;
|
|
38
|
-
|
|
39
|
-
onboardedPlatforms: OnboardedPlatform[];
|
|
40
|
-
|
|
41
|
-
status: SellerStatus;
|
|
42
|
-
metadata?: any;
|
|
43
|
-
|
|
44
|
-
createdAt: Date;
|
|
45
|
-
updatedAt: Date;
|
|
46
|
-
}
|
|
1
|
+
export type BusinessType = "individual" | "company";
|
|
2
|
+
export type Mode = "test" | "live";
|
|
3
|
+
export type SellerStatus = "active" | "suspended" | "blocked";
|
|
4
|
+
export interface OnboardedPlatform {
|
|
5
|
+
platformName: string;
|
|
6
|
+
platformId: string;
|
|
7
|
+
onboardedAt: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface SellerData {
|
|
10
|
+
sellerName: string;
|
|
11
|
+
sellerEmail: string;
|
|
12
|
+
sellerPhone?: string;
|
|
13
|
+
developerId: string;
|
|
14
|
+
developerUserId?: string;
|
|
15
|
+
developerClientKey: string;
|
|
16
|
+
sellerDID: string;
|
|
17
|
+
walletId: string;
|
|
18
|
+
businessName?: string;
|
|
19
|
+
businessType?: BusinessType;
|
|
20
|
+
businessCategory?: string;
|
|
21
|
+
country?: string;
|
|
22
|
+
dob?: Date;
|
|
23
|
+
nationality?: string;
|
|
24
|
+
mode: Mode;
|
|
25
|
+
kycStatus: "not_submitted" | "pending" | "verified" | "rejected";
|
|
26
|
+
isKycCompleted: boolean;
|
|
27
|
+
kycDocuments?: import("./kyc").KycDocuments;
|
|
28
|
+
bankDetails?: import("./bank").BankDetails;
|
|
29
|
+
isBankDetailsCompleted: boolean;
|
|
30
|
+
onboardedPlatforms: OnboardedPlatform[];
|
|
31
|
+
status: SellerStatus;
|
|
32
|
+
metadata?: any;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
updatedAt: Date;
|
|
35
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type BusinessType = "individual" | "company";
|
|
2
|
+
export type Mode = "test" | "live";
|
|
3
|
+
export type SellerStatus = "active" | "suspended" | "blocked";
|
|
4
|
+
|
|
5
|
+
export interface OnboardedPlatform {
|
|
6
|
+
platformName: string;
|
|
7
|
+
platformId: string;
|
|
8
|
+
onboardedAt: Date;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface SellerData {
|
|
12
|
+
sellerName: string;
|
|
13
|
+
sellerEmail: string;
|
|
14
|
+
sellerPhone?: string;
|
|
15
|
+
|
|
16
|
+
developerId: string;
|
|
17
|
+
developerUserId?: string;
|
|
18
|
+
developerClientKey: string;
|
|
19
|
+
|
|
20
|
+
sellerDID: string;
|
|
21
|
+
walletId: string;
|
|
22
|
+
|
|
23
|
+
businessName?: string;
|
|
24
|
+
businessType?: BusinessType;
|
|
25
|
+
businessCategory?: string;
|
|
26
|
+
country?: string;
|
|
27
|
+
dob?: Date;
|
|
28
|
+
nationality?: string;
|
|
29
|
+
|
|
30
|
+
mode: Mode;
|
|
31
|
+
|
|
32
|
+
kycStatus: "not_submitted" | "pending" | "verified" | "rejected";
|
|
33
|
+
isKycCompleted: boolean;
|
|
34
|
+
|
|
35
|
+
kycDocuments?: import("./kyc").KycDocuments;
|
|
36
|
+
bankDetails?: import("./bank").BankDetails;
|
|
37
|
+
isBankDetailsCompleted: boolean;
|
|
38
|
+
|
|
39
|
+
onboardedPlatforms: OnboardedPlatform[];
|
|
40
|
+
|
|
41
|
+
status: SellerStatus;
|
|
42
|
+
metadata?: any;
|
|
43
|
+
|
|
44
|
+
createdAt: Date;
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|