@visa-check-r/integrations 0.0.51 → 0.0.52
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/index.cjs.js +153 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +145 -26
- package/dist/index.d.ts +145 -26
- package/dist/index.esm.js +147 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -293,6 +293,93 @@ interface VisaProfileChecklistItem {
|
|
|
293
293
|
fileInfo: FileInfo;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
+
/**
|
|
297
|
+
* type Job struct {
|
|
298
|
+
ID string
|
|
299
|
+
Type string
|
|
300
|
+
Status Status
|
|
301
|
+
Progress int
|
|
302
|
+
Message string
|
|
303
|
+
Result any
|
|
304
|
+
Error string
|
|
305
|
+
CreatedAt time.Time
|
|
306
|
+
UpdatedAt time.Time
|
|
307
|
+
}
|
|
308
|
+
*/
|
|
309
|
+
interface Job<T = any> {
|
|
310
|
+
id: string;
|
|
311
|
+
type: string;
|
|
312
|
+
status: string;
|
|
313
|
+
progress: number;
|
|
314
|
+
message: string;
|
|
315
|
+
result: T;
|
|
316
|
+
error: string;
|
|
317
|
+
createdAt: string;
|
|
318
|
+
updatedAt: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface FlutterApiResponse<T = any, E = any> {
|
|
322
|
+
status: string;
|
|
323
|
+
message: string;
|
|
324
|
+
data: T;
|
|
325
|
+
next_action: E;
|
|
326
|
+
}
|
|
327
|
+
interface FlutterCustomerAddress {
|
|
328
|
+
city: string;
|
|
329
|
+
country: string;
|
|
330
|
+
line1: string;
|
|
331
|
+
line2: string;
|
|
332
|
+
postal_code: string;
|
|
333
|
+
state: string;
|
|
334
|
+
}
|
|
335
|
+
interface FlutterCustomerName {
|
|
336
|
+
first: string;
|
|
337
|
+
middle: string;
|
|
338
|
+
last: string;
|
|
339
|
+
}
|
|
340
|
+
interface FlutterCustomerPhone {
|
|
341
|
+
country_code: string;
|
|
342
|
+
number: string;
|
|
343
|
+
}
|
|
344
|
+
interface FlutterwaveCustomer {
|
|
345
|
+
id: string;
|
|
346
|
+
email: string;
|
|
347
|
+
address: FlutterCustomerAddress;
|
|
348
|
+
name: FlutterCustomerName;
|
|
349
|
+
phone: FlutterCustomerPhone;
|
|
350
|
+
}
|
|
351
|
+
interface Card {
|
|
352
|
+
encrypted_card_number: string;
|
|
353
|
+
encrypted_expiry_month: string;
|
|
354
|
+
encrypted_expiry_year: string;
|
|
355
|
+
encrypted_cvv: string;
|
|
356
|
+
nonce: string;
|
|
357
|
+
}
|
|
358
|
+
interface CardProcessed {
|
|
359
|
+
expiry_month: number;
|
|
360
|
+
expiry_year: number;
|
|
361
|
+
first6: string;
|
|
362
|
+
last4: string;
|
|
363
|
+
network: string;
|
|
364
|
+
}
|
|
365
|
+
interface CardObject {
|
|
366
|
+
type: "card";
|
|
367
|
+
card: CardProcessed;
|
|
368
|
+
id: string;
|
|
369
|
+
meta: Record<string, string>;
|
|
370
|
+
created_datetime: string;
|
|
371
|
+
}
|
|
372
|
+
interface PaymentMethod {
|
|
373
|
+
type: "card";
|
|
374
|
+
card: Card;
|
|
375
|
+
id: string;
|
|
376
|
+
customer_id: string;
|
|
377
|
+
meta: any;
|
|
378
|
+
device_fingerprint: any;
|
|
379
|
+
client_ip: any;
|
|
380
|
+
created_datetime: string;
|
|
381
|
+
}
|
|
382
|
+
|
|
296
383
|
type AuthTokenProvider = () => Promise<string | null> | string | null;
|
|
297
384
|
type HeadersFactory = () => Promise<Record<string, string>> | Record<string, string>;
|
|
298
385
|
declare const toAsyncTokenProvider: (p?: AuthTokenProvider) => (() => Promise<string | null>);
|
|
@@ -984,31 +1071,6 @@ declare const createVisaProfileChecklistItemService: (client: GraphQLClient) =>
|
|
|
984
1071
|
};
|
|
985
1072
|
type VisaProfileChecklistItemService = ReturnType<typeof createVisaProfileChecklistItemService>;
|
|
986
1073
|
|
|
987
|
-
/**
|
|
988
|
-
* type Job struct {
|
|
989
|
-
ID string
|
|
990
|
-
Type string
|
|
991
|
-
Status Status
|
|
992
|
-
Progress int
|
|
993
|
-
Message string
|
|
994
|
-
Result any
|
|
995
|
-
Error string
|
|
996
|
-
CreatedAt time.Time
|
|
997
|
-
UpdatedAt time.Time
|
|
998
|
-
}
|
|
999
|
-
*/
|
|
1000
|
-
interface Job<T = any> {
|
|
1001
|
-
id: string;
|
|
1002
|
-
type: string;
|
|
1003
|
-
status: string;
|
|
1004
|
-
progress: number;
|
|
1005
|
-
message: string;
|
|
1006
|
-
result: T;
|
|
1007
|
-
error: string;
|
|
1008
|
-
createdAt: string;
|
|
1009
|
-
updatedAt: string;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
1074
|
type ReadinessScoreReviewFields = (keyof ReadinessScoreReview)[];
|
|
1013
1075
|
type VisaProfileFields = (keyof VisaProfile)[];
|
|
1014
1076
|
type VisaApplicationFields = (keyof VisaApplication)[];
|
|
@@ -1431,4 +1493,61 @@ declare const createVisaProfileReviewCommentService: (client: GraphQLClient) =>
|
|
|
1431
1493
|
};
|
|
1432
1494
|
type VisaProfileReviewCommentService = ReturnType<typeof createVisaProfileReviewCommentService>;
|
|
1433
1495
|
|
|
1434
|
-
export { type AdminDashboardMatrix, type AdminDashboardMatrixKey, type AllUserNotificationSettingKey, type AuthService, type AuthTokenProvider, AuthenticationError, type BooleanLiteral, type ChecklistItem, type ChecklistItemService, type ClientOptions, type ConsultantAssignment, type ConsultantAssignmentService, type ConsultantDashboardMetricCount, type ConsultantDashboardMetricCountKey, type ConsultantInvite, type ConsultantInviteService, type ConsultantNotificationSettingKey, type ConsultantRequest, type CreateChecklistItemRequest, type CreateChecklistItemResponse, type CreateChecklistItemResponseNestedFields, type CreateConsultantAssignmentRequest, type CreateConsultantAssignmentResponse, type CreateConsultantAssignmentResponseNestedFields, type CreateReadinessScoreReviewRequest, type CreateReadinessScoreReviewResponse, type CreateReadinessScoreReviewResponseNestedFields, type CreateUserRequest, type CreateUserResponse, type CreateUserResponseNestedFields, type CreateUserSettingRequest, type CreateUserSettingResponse, type CreateUserSettingResponseNestedFields, type CreateVisaApplicationRequest, type CreateVisaApplicationResponse, type CreateVisaApplicationResponseNestedFields, type CreateVisaProfileChecklistItemRequest, type CreateVisaProfileChecklistItemResponse, type CreateVisaProfileChecklistItemResponseNestedFields, type CreateVisaProfileChecklistItemsRequest, type CreateVisaProfileChecklistItemsResponse, type CreateVisaProfileChecklistItemsResponseNestedFields, type CreateVisaProfileRequest, type CreateVisaProfileResponse, type CreateVisaProfileResponseNestedFields, type CreateVisaProfileReviewCommentRequest, type CreateVisaProfileReviewCommentResponse, type CreateVisaProfileReviewCommentResponseNestedFields, type DeleteChecklistItemRequest, type DeleteChecklistItemResponse, type DeleteConsultantAssignmentRequest, type DeleteConsultantAssignmentResponse, type DeleteReadinessScoreReviewRequest, type DeleteReadinessScoreReviewResponse, type DeleteUserRequest, type DeleteUserResponse, type DeleteUserSettingRequest, type DeleteUserSettingResponse, type DeleteVisaApplicationRequest, type DeleteVisaApplicationResponse, type DeleteVisaProfileChecklistItemRequest, type DeleteVisaProfileChecklistItemResponse, type DeleteVisaProfileRequest, type DeleteVisaProfileResponse, type DeleteVisaProfileReviewCommentRequest, type DeleteVisaProfileReviewCommentResponse, type DocumentReview, type EducationalBackground, type FileInfo, type GenerateSOPRequest, type GenerateSOPResponse, type GenerateSOPResponseNestedFields, type GetActivityLogRequest, type GetActivityLogResponse, type GetActivityLogResponseNestedFields, type GetChecklistItemRequest, type GetChecklistItemResponse, type GetChecklistItemResponseNestedFields, type GetConsultantAssignmentCountRequest, type GetConsultantAssignmentCountResponse, type GetConsultantAssignmentRequest, type GetConsultantAssignmentResponse, type GetConsultantAssignmentResponseNestedFields, type GetGeneratedSOPRequest, type GetGeneratedSOPResponse, type GetGeneratedSOPResponseNestedFields, type GetJobRequest, type GetJobResponse, type GetJobResponseNestedFields, type GetReadinessScoreReviewRequest, type GetReadinessScoreReviewResponse, type GetReadinessScoreReviewResponseNestedFields, type GetUserRequest, type GetUserResponse, type GetUserResponseNestedFields, type GetUserSettingRequest, type GetUserSettingResponse, type GetUserSettingResponseNestedFields, type GetVisaApplicationRequest, type GetVisaApplicationResponse, type GetVisaApplicationResponseNestedFields, type GetVisaProfileChecklistItemRequest, type GetVisaProfileChecklistItemResponse, type GetVisaProfileChecklistItemResponseNestedFields, type GetVisaProfileChecklistItemsByChecklistRequest, type GetVisaProfileChecklistItemsByChecklistResponse, type GetVisaProfileChecklistItemsByChecklistResponseNestedFields, type GetVisaProfileRequest, type GetVisaProfileResponse, type GetVisaProfileResponseNestedFields, type GetVisaProfileReviewCommentRequest, type GetVisaProfileReviewCommentResponse, type GetVisaProfileReviewCommentResponseNestedFields, GraphQLClient, type GraphQLError, type GraphQLRequest, type GraphQLResponse, type GraphQLVariables, type HeadersFactory, type Help, type HtmlString, type ListActivityLogsRequest, type ListActivityLogsResponse, type ListActivityLogsResponseNestedFields, type ListChecklistItemsRequest, type ListChecklistItemsResponse, type ListChecklistItemsResponseNestedFields, type ListConsultantAssignmentsRequest, type ListConsultantAssignmentsResponse, type ListConsultantAssignmentsResponseNestedFields, type ListReadinessScoreReviewsRequest, type ListReadinessScoreReviewsResponse, type ListReadinessScoreReviewsResponseNestedFields, type ListUsersRequest, type ListUsersResponse, type ListUsersResponseNestedFields, type ListVisaApplicationsRequest, type ListVisaApplicationsResponse, type ListVisaApplicationsResponseNestedFields, type ListVisaProfileChecklistItemsRequest, type ListVisaProfileChecklistItemsResponse, type ListVisaProfileChecklistItemsResponseNestedFields, type ListVisaProfileReviewCommentsRequest, type ListVisaProfileReviewCommentsResponse, type ListVisaProfileReviewCommentsResponseNestedFields, type ListVisaProfilesRequest, type ListVisaProfilesResponse, type ListVisaProfilesResponseNestedFields, type LoginRequest, type LoginResponse, type MeRequest, type MeResponse, type MeResponseNestedFields, type Middleware, NetworkError, type Next, type Notification, type Pagination, type PartnerDashboardMatrix, type PartnerDashboardMatrixKey, type Plan, type ReadinessScore, type ReadinessScoreReview, type ReadinessScoreReviewService, type RegisterForm, type RequestContext, type RequestOption, type ResetPasswordRequest, type ResetPasswordResponse, type ResponseContext, type SOPAnswer, type SOPReview, SdkError, type SendOTPRequest, type SendOTPResponse, type SettingNotificationChannelKey, type SignUpRequest, type SignUpResponse, type Subscription, type SubscriptionPackage, type SubscriptionService, type TransportOptions, type UpdateChecklistItemRequest, type UpdateChecklistItemResponse, type UpdateChecklistItemResponseNestedFields, type UpdateConsultantAssignmentRequest, type UpdateConsultantAssignmentResponse, type UpdateConsultantAssignmentResponseNestedFields, type UpdatePasswordRequest, type UpdatePasswordResponse, type UpdateReadinessScoreReviewRequest, type UpdateReadinessScoreReviewResponse, type UpdateReadinessScoreReviewResponseNestedFields, type UpdateUserRequest, type UpdateUserResponse, type UpdateUserResponseNestedFields, type UpdateUserSettingRequest, type UpdateUserSettingResponse, type UpdateUserSettingResponseNestedFields, type UpdateVisaApplicationRequest, type UpdateVisaApplicationResponse, type UpdateVisaApplicationResponseNestedFields, type UpdateVisaProfileChecklistItemRequest, type UpdateVisaProfileChecklistItemResponse, type UpdateVisaProfileChecklistItemResponseNestedFields, type UpdateVisaProfileRequest, type UpdateVisaProfileResponse, type UpdateVisaProfileResponseNestedFields, type UpdateVisaProfileReviewCommentRequest, type UpdateVisaProfileReviewCommentResponse, type UpdateVisaProfileReviewCommentResponseNestedFields, type User, type UserActivityLog, type UserApplicationMetric, type UserNotificationSettingKey, type UserService, type UserSetting, type UserSettingService, type UserStatus, type UserSubscription, type UserSubscriptionService, type UserType, type VerifyOTPRequest, type VerifyOTPResponse, type VisaApplication, type VisaApplicationMetricKey, type VisaApplicationService, type VisaApplicationStatus, type VisaProfile, type VisaProfileActivityLog, type VisaProfileChecklistItem, type VisaProfileChecklistItemService, type VisaProfileDetails, type VisaProfileProgram, type VisaProfileReviewComment, type VisaProfileReviewCommentService, type VisaProfileService, type VisaType, _generateSOPResponseNestedFields, _getConsultantAssignmentResponseNestedFields, _getVisaProfileChecklistItemResponseNestedFields, _getVisaProfileResponseNestedFields, _getVisaProfileReviewCommentResponseNestedFields, compose, createActivityLogService, createAuthService, createChecklistItemResponse, createChecklistItemResponseNestedFields, createChecklistItemService, createConsultantAssignmentResponseFields, createConsultantAssignmentResponseNestedFields, createConsultantAssignmentService, createConsultantInviteService, createReadinessScoreReviewResponseFields, createReadinessScoreReviewResponseNestedFields, createReadinessScoreReviewService, createSubscriptionService, createTransport, createUserResponseFields, createUserResponseNestedFields, createUserService, createUserSettingResponseFields, createUserSettingResponseNestedFields, createUserSettingService, createUserSubscriptionService, createVisaApplicationResponseFields, createVisaApplicationResponseNestedFields, createVisaApplicationService, createVisaProfileChecklistItemResponse, createVisaProfileChecklistItemResponseNestedFields, createVisaProfileChecklistItemService, createVisaProfileChecklistItemsResponse, createVisaProfileChecklistItemsResponseNestedFields, createVisaProfileResponse, createVisaProfileResponseNestedFields, createVisaProfileReviewCommentResponseFields, createVisaProfileReviewCommentResponseNestedFields, createVisaProfileReviewCommentService, createVisaProfileService, deleteChecklistItemResponse, deleteConsultantAssignmentResponseFields, deleteReadinessScoreReviewResponseFields, deleteUserResponseFields, deleteUserSettingResponseFields, deleteVisaApplicationResponseFields, deleteVisaProfileChecklistItemResponse, deleteVisaProfileResponse, deleteVisaProfileReviewCommentResponseFields, generateSOPResponse, generateSOPResponseNestedFields, getActivityLogResponseFields, getActivityLogResponseNestedFields, getChecklistItemResponse, getChecklistItemResponseNestedFields, getConsultantAssignmentCountResponseFields, getConsultantAssignmentResponseFields, getConsultantAssignmentResponseNestedFields, getGeneratedSOPResponse, getGeneratedSOPResponseNestedFields, getJobResponse, getJobResponseNestedFields, getReadinessScoreReviewResponseFields, getReadinessScoreReviewResponseNestedFields, getUserResponseFields, getUserResponseNestedFields, getUserSettingResponseFields, getUserSettingResponseNestedFields, getVisaApplicationResponseFields, getVisaApplicationResponseNestedFields, getVisaProfileChecklistItemResponse, getVisaProfileChecklistItemResponseNestedFields, getVisaProfileChecklistItemsByChecklistResponse, getVisaProfileChecklistItemsByChecklistResponseNestedFields, getVisaProfileResponse, getVisaProfileResponseNestedFields, getVisaProfileReviewCommentResponseFields, getVisaProfileReviewCommentResponseNestedFields, listActivityLogsResponseFields, listActivityLogsResponseNestedFields, listChecklistItemResponse, listChecklistItemResponseNestedFields, listConsultantAssignmentsResponseFields, listConsultantAssignmentsResponseNestedFields, listReadinessScoreReviewsResponseFields, listReadinessScoreReviewsResponseNestedFields, listUsersResponseFields, listUsersResponseNestedFields, listVisaApplicationsResponseFields, listVisaApplicationsResponseNestedFields, listVisaProfileChecklistItemResponse, listVisaProfileChecklistItemResponseNestedFields, listVisaProfileReviewCommentsResponseFields, listVisaProfileReviewCommentsResponseNestedFields, listVisaProfilesResponse, listVisaProfilesResponseNestedFields, loginResponseFields, meResponseFields, meResponseNestedFields, resetPasswordResponseFields, sendOTPResponseFields, signUpResponseFields, toAsyncHeadersFactory, toAsyncTokenProvider, updateChecklistItemResponse, updateChecklistItemResponseNestedFields, updateConsultantAssignmentResponseFields, updateConsultantAssignmentResponseNestedFields, updatePasswordResponseFields, updateReadinessScoreReviewResponseFields, updateReadinessScoreReviewResponseNestedFields, updateUserResponseFields, updateUserResponseNestedFields, updateUserSettingResponseFields, updateUserSettingResponseNestedFields, updateVisaApplicationResponseFields, updateVisaApplicationResponseNestedFields, updateVisaProfileChecklistItemResponse, updateVisaProfileChecklistItemResponseNestedFields, updateVisaProfileResponseFields, updateVisaProfileResponseNestedFields, updateVisaProfileReviewCommentResponseFields, updateVisaProfileReviewCommentResponseNestedFields, verifyOTPResponseFields };
|
|
1496
|
+
interface CreateCardObjectRequest {
|
|
1497
|
+
userId: string;
|
|
1498
|
+
card: Card;
|
|
1499
|
+
}
|
|
1500
|
+
interface CreateCardObjectResponse {
|
|
1501
|
+
cardObjectId: string;
|
|
1502
|
+
chargeId: string;
|
|
1503
|
+
}
|
|
1504
|
+
declare const createCardObjectResponse: (keyof CreateCardObjectResponse)[];
|
|
1505
|
+
interface GetFlutterAccessTokenRequest {
|
|
1506
|
+
userId: string;
|
|
1507
|
+
}
|
|
1508
|
+
interface GetFlutterAccessTokenResponse {
|
|
1509
|
+
accessToken: string;
|
|
1510
|
+
}
|
|
1511
|
+
declare const getFlutterAccessTokenResponse: (keyof GetFlutterAccessTokenResponse)[];
|
|
1512
|
+
interface CreateCustomerObjectRequest {
|
|
1513
|
+
userId: string;
|
|
1514
|
+
customer: FlutterwaveCustomer;
|
|
1515
|
+
}
|
|
1516
|
+
interface CreateCustomerObjectResponse {
|
|
1517
|
+
customerObjectId: string;
|
|
1518
|
+
}
|
|
1519
|
+
declare const createCustomerObjectResponse: (keyof CreateCustomerObjectResponse)[];
|
|
1520
|
+
|
|
1521
|
+
interface PaystackInitializePaymentRequest {
|
|
1522
|
+
userId: string;
|
|
1523
|
+
}
|
|
1524
|
+
interface PaystackInitializePaymentResponse {
|
|
1525
|
+
authorization_url: string;
|
|
1526
|
+
access_code: string;
|
|
1527
|
+
reference: string;
|
|
1528
|
+
}
|
|
1529
|
+
declare const paystackInitializePaymentResponse: (keyof PaystackInitializePaymentResponse)[];
|
|
1530
|
+
|
|
1531
|
+
declare const createFlutterwaveService: (client: GraphQLClient) => {
|
|
1532
|
+
getFlutterAccessToken(input: GetFlutterAccessTokenRequest, fetchFields?: {
|
|
1533
|
+
root?: (keyof GetFlutterAccessTokenResponse)[];
|
|
1534
|
+
}, option?: RequestOption): Promise<GetFlutterAccessTokenResponse | undefined>;
|
|
1535
|
+
createCardObject(input: CreateCardObjectRequest, fetchFields?: {
|
|
1536
|
+
root?: (keyof CreateCardObjectResponse)[];
|
|
1537
|
+
}, option?: RequestOption): Promise<CreateCardObjectResponse | undefined>;
|
|
1538
|
+
createCustomerObject(input: CreateCustomerObjectRequest, fetchFields?: {
|
|
1539
|
+
root?: (keyof CreateCustomerObjectResponse)[];
|
|
1540
|
+
}, option?: RequestOption): Promise<CreateCustomerObjectResponse | undefined>;
|
|
1541
|
+
};
|
|
1542
|
+
type FlutterwaveService = ReturnType<typeof createFlutterwaveService>;
|
|
1543
|
+
|
|
1544
|
+
declare function encryptAES(data: string, token: string, nonce: string): Promise<string>;
|
|
1545
|
+
|
|
1546
|
+
declare const createPaystackService: (client: GraphQLClient) => {
|
|
1547
|
+
paystackInitializePayment(input: PaystackInitializePaymentRequest, fetchFields?: {
|
|
1548
|
+
root?: (keyof PaystackInitializePaymentResponse)[];
|
|
1549
|
+
}, option?: RequestOption): Promise<PaystackInitializePaymentResponse | undefined>;
|
|
1550
|
+
};
|
|
1551
|
+
type PaystackService = ReturnType<typeof createPaystackService>;
|
|
1552
|
+
|
|
1553
|
+
export { type AdminDashboardMatrix, type AdminDashboardMatrixKey, type AllUserNotificationSettingKey, type AuthService, type AuthTokenProvider, AuthenticationError, type BooleanLiteral, type Card, type CardObject, type CardProcessed, type ChecklistItem, type ChecklistItemService, type ClientOptions, type ConsultantAssignment, type ConsultantAssignmentService, type ConsultantDashboardMetricCount, type ConsultantDashboardMetricCountKey, type ConsultantInvite, type ConsultantInviteService, type ConsultantNotificationSettingKey, type ConsultantRequest, type CreateCardObjectRequest, type CreateCardObjectResponse, type CreateChecklistItemRequest, type CreateChecklistItemResponse, type CreateChecklistItemResponseNestedFields, type CreateConsultantAssignmentRequest, type CreateConsultantAssignmentResponse, type CreateConsultantAssignmentResponseNestedFields, type CreateCustomerObjectRequest, type CreateCustomerObjectResponse, type CreateReadinessScoreReviewRequest, type CreateReadinessScoreReviewResponse, type CreateReadinessScoreReviewResponseNestedFields, type CreateUserRequest, type CreateUserResponse, type CreateUserResponseNestedFields, type CreateUserSettingRequest, type CreateUserSettingResponse, type CreateUserSettingResponseNestedFields, type CreateVisaApplicationRequest, type CreateVisaApplicationResponse, type CreateVisaApplicationResponseNestedFields, type CreateVisaProfileChecklistItemRequest, type CreateVisaProfileChecklistItemResponse, type CreateVisaProfileChecklistItemResponseNestedFields, type CreateVisaProfileChecklistItemsRequest, type CreateVisaProfileChecklistItemsResponse, type CreateVisaProfileChecklistItemsResponseNestedFields, type CreateVisaProfileRequest, type CreateVisaProfileResponse, type CreateVisaProfileResponseNestedFields, type CreateVisaProfileReviewCommentRequest, type CreateVisaProfileReviewCommentResponse, type CreateVisaProfileReviewCommentResponseNestedFields, type DeleteChecklistItemRequest, type DeleteChecklistItemResponse, type DeleteConsultantAssignmentRequest, type DeleteConsultantAssignmentResponse, type DeleteReadinessScoreReviewRequest, type DeleteReadinessScoreReviewResponse, type DeleteUserRequest, type DeleteUserResponse, type DeleteUserSettingRequest, type DeleteUserSettingResponse, type DeleteVisaApplicationRequest, type DeleteVisaApplicationResponse, type DeleteVisaProfileChecklistItemRequest, type DeleteVisaProfileChecklistItemResponse, type DeleteVisaProfileRequest, type DeleteVisaProfileResponse, type DeleteVisaProfileReviewCommentRequest, type DeleteVisaProfileReviewCommentResponse, type DocumentReview, type EducationalBackground, type FileInfo, type FlutterApiResponse, type FlutterCustomerAddress, type FlutterCustomerName, type FlutterCustomerPhone, type FlutterwaveCustomer, type FlutterwaveService, type GenerateSOPRequest, type GenerateSOPResponse, type GenerateSOPResponseNestedFields, type GetActivityLogRequest, type GetActivityLogResponse, type GetActivityLogResponseNestedFields, type GetChecklistItemRequest, type GetChecklistItemResponse, type GetChecklistItemResponseNestedFields, type GetConsultantAssignmentCountRequest, type GetConsultantAssignmentCountResponse, type GetConsultantAssignmentRequest, type GetConsultantAssignmentResponse, type GetConsultantAssignmentResponseNestedFields, type GetFlutterAccessTokenRequest, type GetFlutterAccessTokenResponse, type GetGeneratedSOPRequest, type GetGeneratedSOPResponse, type GetGeneratedSOPResponseNestedFields, type GetJobRequest, type GetJobResponse, type GetJobResponseNestedFields, type GetReadinessScoreReviewRequest, type GetReadinessScoreReviewResponse, type GetReadinessScoreReviewResponseNestedFields, type GetUserRequest, type GetUserResponse, type GetUserResponseNestedFields, type GetUserSettingRequest, type GetUserSettingResponse, type GetUserSettingResponseNestedFields, type GetVisaApplicationRequest, type GetVisaApplicationResponse, type GetVisaApplicationResponseNestedFields, type GetVisaProfileChecklistItemRequest, type GetVisaProfileChecklistItemResponse, type GetVisaProfileChecklistItemResponseNestedFields, type GetVisaProfileChecklistItemsByChecklistRequest, type GetVisaProfileChecklistItemsByChecklistResponse, type GetVisaProfileChecklistItemsByChecklistResponseNestedFields, type GetVisaProfileRequest, type GetVisaProfileResponse, type GetVisaProfileResponseNestedFields, type GetVisaProfileReviewCommentRequest, type GetVisaProfileReviewCommentResponse, type GetVisaProfileReviewCommentResponseNestedFields, GraphQLClient, type GraphQLError, type GraphQLRequest, type GraphQLResponse, type GraphQLVariables, type HeadersFactory, type Help, type HtmlString, type Job, type ListActivityLogsRequest, type ListActivityLogsResponse, type ListActivityLogsResponseNestedFields, type ListChecklistItemsRequest, type ListChecklistItemsResponse, type ListChecklistItemsResponseNestedFields, type ListConsultantAssignmentsRequest, type ListConsultantAssignmentsResponse, type ListConsultantAssignmentsResponseNestedFields, type ListReadinessScoreReviewsRequest, type ListReadinessScoreReviewsResponse, type ListReadinessScoreReviewsResponseNestedFields, type ListUsersRequest, type ListUsersResponse, type ListUsersResponseNestedFields, type ListVisaApplicationsRequest, type ListVisaApplicationsResponse, type ListVisaApplicationsResponseNestedFields, type ListVisaProfileChecklistItemsRequest, type ListVisaProfileChecklistItemsResponse, type ListVisaProfileChecklistItemsResponseNestedFields, type ListVisaProfileReviewCommentsRequest, type ListVisaProfileReviewCommentsResponse, type ListVisaProfileReviewCommentsResponseNestedFields, type ListVisaProfilesRequest, type ListVisaProfilesResponse, type ListVisaProfilesResponseNestedFields, type LoginRequest, type LoginResponse, type MeRequest, type MeResponse, type MeResponseNestedFields, type Middleware, NetworkError, type Next, type Notification, type Pagination, type PartnerDashboardMatrix, type PartnerDashboardMatrixKey, type PaymentMethod, type PaystackInitializePaymentRequest, type PaystackInitializePaymentResponse, type PaystackService, type Plan, type ReadinessScore, type ReadinessScoreReview, type ReadinessScoreReviewService, type RegisterForm, type RequestContext, type RequestOption, type ResetPasswordRequest, type ResetPasswordResponse, type ResponseContext, type SOPAnswer, type SOPReview, SdkError, type SendOTPRequest, type SendOTPResponse, type SettingNotificationChannelKey, type SignUpRequest, type SignUpResponse, type Subscription, type SubscriptionPackage, type SubscriptionService, type TransportOptions, type UpdateChecklistItemRequest, type UpdateChecklistItemResponse, type UpdateChecklistItemResponseNestedFields, type UpdateConsultantAssignmentRequest, type UpdateConsultantAssignmentResponse, type UpdateConsultantAssignmentResponseNestedFields, type UpdatePasswordRequest, type UpdatePasswordResponse, type UpdateReadinessScoreReviewRequest, type UpdateReadinessScoreReviewResponse, type UpdateReadinessScoreReviewResponseNestedFields, type UpdateUserRequest, type UpdateUserResponse, type UpdateUserResponseNestedFields, type UpdateUserSettingRequest, type UpdateUserSettingResponse, type UpdateUserSettingResponseNestedFields, type UpdateVisaApplicationRequest, type UpdateVisaApplicationResponse, type UpdateVisaApplicationResponseNestedFields, type UpdateVisaProfileChecklistItemRequest, type UpdateVisaProfileChecklistItemResponse, type UpdateVisaProfileChecklistItemResponseNestedFields, type UpdateVisaProfileRequest, type UpdateVisaProfileResponse, type UpdateVisaProfileResponseNestedFields, type UpdateVisaProfileReviewCommentRequest, type UpdateVisaProfileReviewCommentResponse, type UpdateVisaProfileReviewCommentResponseNestedFields, type User, type UserActivityLog, type UserApplicationMetric, type UserNotificationSettingKey, type UserService, type UserSetting, type UserSettingService, type UserStatus, type UserSubscription, type UserSubscriptionService, type UserType, type VerifyOTPRequest, type VerifyOTPResponse, type VisaApplication, type VisaApplicationMetricKey, type VisaApplicationService, type VisaApplicationStatus, type VisaProfile, type VisaProfileActivityLog, type VisaProfileChecklistItem, type VisaProfileChecklistItemService, type VisaProfileDetails, type VisaProfileProgram, type VisaProfileReviewComment, type VisaProfileReviewCommentService, type VisaProfileService, type VisaType, _generateSOPResponseNestedFields, _getConsultantAssignmentResponseNestedFields, _getVisaProfileChecklistItemResponseNestedFields, _getVisaProfileResponseNestedFields, _getVisaProfileReviewCommentResponseNestedFields, compose, createActivityLogService, createAuthService, createCardObjectResponse, createChecklistItemResponse, createChecklistItemResponseNestedFields, createChecklistItemService, createConsultantAssignmentResponseFields, createConsultantAssignmentResponseNestedFields, createConsultantAssignmentService, createConsultantInviteService, createCustomerObjectResponse, createFlutterwaveService, createPaystackService, createReadinessScoreReviewResponseFields, createReadinessScoreReviewResponseNestedFields, createReadinessScoreReviewService, createSubscriptionService, createTransport, createUserResponseFields, createUserResponseNestedFields, createUserService, createUserSettingResponseFields, createUserSettingResponseNestedFields, createUserSettingService, createUserSubscriptionService, createVisaApplicationResponseFields, createVisaApplicationResponseNestedFields, createVisaApplicationService, createVisaProfileChecklistItemResponse, createVisaProfileChecklistItemResponseNestedFields, createVisaProfileChecklistItemService, createVisaProfileChecklistItemsResponse, createVisaProfileChecklistItemsResponseNestedFields, createVisaProfileResponse, createVisaProfileResponseNestedFields, createVisaProfileReviewCommentResponseFields, createVisaProfileReviewCommentResponseNestedFields, createVisaProfileReviewCommentService, createVisaProfileService, deleteChecklistItemResponse, deleteConsultantAssignmentResponseFields, deleteReadinessScoreReviewResponseFields, deleteUserResponseFields, deleteUserSettingResponseFields, deleteVisaApplicationResponseFields, deleteVisaProfileChecklistItemResponse, deleteVisaProfileResponse, deleteVisaProfileReviewCommentResponseFields, encryptAES, generateSOPResponse, generateSOPResponseNestedFields, getActivityLogResponseFields, getActivityLogResponseNestedFields, getChecklistItemResponse, getChecklistItemResponseNestedFields, getConsultantAssignmentCountResponseFields, getConsultantAssignmentResponseFields, getConsultantAssignmentResponseNestedFields, getFlutterAccessTokenResponse, getGeneratedSOPResponse, getGeneratedSOPResponseNestedFields, getJobResponse, getJobResponseNestedFields, getReadinessScoreReviewResponseFields, getReadinessScoreReviewResponseNestedFields, getUserResponseFields, getUserResponseNestedFields, getUserSettingResponseFields, getUserSettingResponseNestedFields, getVisaApplicationResponseFields, getVisaApplicationResponseNestedFields, getVisaProfileChecklistItemResponse, getVisaProfileChecklistItemResponseNestedFields, getVisaProfileChecklistItemsByChecklistResponse, getVisaProfileChecklistItemsByChecklistResponseNestedFields, getVisaProfileResponse, getVisaProfileResponseNestedFields, getVisaProfileReviewCommentResponseFields, getVisaProfileReviewCommentResponseNestedFields, listActivityLogsResponseFields, listActivityLogsResponseNestedFields, listChecklistItemResponse, listChecklistItemResponseNestedFields, listConsultantAssignmentsResponseFields, listConsultantAssignmentsResponseNestedFields, listReadinessScoreReviewsResponseFields, listReadinessScoreReviewsResponseNestedFields, listUsersResponseFields, listUsersResponseNestedFields, listVisaApplicationsResponseFields, listVisaApplicationsResponseNestedFields, listVisaProfileChecklistItemResponse, listVisaProfileChecklistItemResponseNestedFields, listVisaProfileReviewCommentsResponseFields, listVisaProfileReviewCommentsResponseNestedFields, listVisaProfilesResponse, listVisaProfilesResponseNestedFields, loginResponseFields, meResponseFields, meResponseNestedFields, paystackInitializePaymentResponse, resetPasswordResponseFields, sendOTPResponseFields, signUpResponseFields, toAsyncHeadersFactory, toAsyncTokenProvider, updateChecklistItemResponse, updateChecklistItemResponseNestedFields, updateConsultantAssignmentResponseFields, updateConsultantAssignmentResponseNestedFields, updatePasswordResponseFields, updateReadinessScoreReviewResponseFields, updateReadinessScoreReviewResponseNestedFields, updateUserResponseFields, updateUserResponseNestedFields, updateUserSettingResponseFields, updateUserSettingResponseNestedFields, updateVisaApplicationResponseFields, updateVisaApplicationResponseNestedFields, updateVisaProfileChecklistItemResponse, updateVisaProfileChecklistItemResponseNestedFields, updateVisaProfileResponseFields, updateVisaProfileResponseNestedFields, updateVisaProfileReviewCommentResponseFields, updateVisaProfileReviewCommentResponseNestedFields, verifyOTPResponseFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -293,6 +293,93 @@ interface VisaProfileChecklistItem {
|
|
|
293
293
|
fileInfo: FileInfo;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
+
/**
|
|
297
|
+
* type Job struct {
|
|
298
|
+
ID string
|
|
299
|
+
Type string
|
|
300
|
+
Status Status
|
|
301
|
+
Progress int
|
|
302
|
+
Message string
|
|
303
|
+
Result any
|
|
304
|
+
Error string
|
|
305
|
+
CreatedAt time.Time
|
|
306
|
+
UpdatedAt time.Time
|
|
307
|
+
}
|
|
308
|
+
*/
|
|
309
|
+
interface Job<T = any> {
|
|
310
|
+
id: string;
|
|
311
|
+
type: string;
|
|
312
|
+
status: string;
|
|
313
|
+
progress: number;
|
|
314
|
+
message: string;
|
|
315
|
+
result: T;
|
|
316
|
+
error: string;
|
|
317
|
+
createdAt: string;
|
|
318
|
+
updatedAt: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface FlutterApiResponse<T = any, E = any> {
|
|
322
|
+
status: string;
|
|
323
|
+
message: string;
|
|
324
|
+
data: T;
|
|
325
|
+
next_action: E;
|
|
326
|
+
}
|
|
327
|
+
interface FlutterCustomerAddress {
|
|
328
|
+
city: string;
|
|
329
|
+
country: string;
|
|
330
|
+
line1: string;
|
|
331
|
+
line2: string;
|
|
332
|
+
postal_code: string;
|
|
333
|
+
state: string;
|
|
334
|
+
}
|
|
335
|
+
interface FlutterCustomerName {
|
|
336
|
+
first: string;
|
|
337
|
+
middle: string;
|
|
338
|
+
last: string;
|
|
339
|
+
}
|
|
340
|
+
interface FlutterCustomerPhone {
|
|
341
|
+
country_code: string;
|
|
342
|
+
number: string;
|
|
343
|
+
}
|
|
344
|
+
interface FlutterwaveCustomer {
|
|
345
|
+
id: string;
|
|
346
|
+
email: string;
|
|
347
|
+
address: FlutterCustomerAddress;
|
|
348
|
+
name: FlutterCustomerName;
|
|
349
|
+
phone: FlutterCustomerPhone;
|
|
350
|
+
}
|
|
351
|
+
interface Card {
|
|
352
|
+
encrypted_card_number: string;
|
|
353
|
+
encrypted_expiry_month: string;
|
|
354
|
+
encrypted_expiry_year: string;
|
|
355
|
+
encrypted_cvv: string;
|
|
356
|
+
nonce: string;
|
|
357
|
+
}
|
|
358
|
+
interface CardProcessed {
|
|
359
|
+
expiry_month: number;
|
|
360
|
+
expiry_year: number;
|
|
361
|
+
first6: string;
|
|
362
|
+
last4: string;
|
|
363
|
+
network: string;
|
|
364
|
+
}
|
|
365
|
+
interface CardObject {
|
|
366
|
+
type: "card";
|
|
367
|
+
card: CardProcessed;
|
|
368
|
+
id: string;
|
|
369
|
+
meta: Record<string, string>;
|
|
370
|
+
created_datetime: string;
|
|
371
|
+
}
|
|
372
|
+
interface PaymentMethod {
|
|
373
|
+
type: "card";
|
|
374
|
+
card: Card;
|
|
375
|
+
id: string;
|
|
376
|
+
customer_id: string;
|
|
377
|
+
meta: any;
|
|
378
|
+
device_fingerprint: any;
|
|
379
|
+
client_ip: any;
|
|
380
|
+
created_datetime: string;
|
|
381
|
+
}
|
|
382
|
+
|
|
296
383
|
type AuthTokenProvider = () => Promise<string | null> | string | null;
|
|
297
384
|
type HeadersFactory = () => Promise<Record<string, string>> | Record<string, string>;
|
|
298
385
|
declare const toAsyncTokenProvider: (p?: AuthTokenProvider) => (() => Promise<string | null>);
|
|
@@ -984,31 +1071,6 @@ declare const createVisaProfileChecklistItemService: (client: GraphQLClient) =>
|
|
|
984
1071
|
};
|
|
985
1072
|
type VisaProfileChecklistItemService = ReturnType<typeof createVisaProfileChecklistItemService>;
|
|
986
1073
|
|
|
987
|
-
/**
|
|
988
|
-
* type Job struct {
|
|
989
|
-
ID string
|
|
990
|
-
Type string
|
|
991
|
-
Status Status
|
|
992
|
-
Progress int
|
|
993
|
-
Message string
|
|
994
|
-
Result any
|
|
995
|
-
Error string
|
|
996
|
-
CreatedAt time.Time
|
|
997
|
-
UpdatedAt time.Time
|
|
998
|
-
}
|
|
999
|
-
*/
|
|
1000
|
-
interface Job<T = any> {
|
|
1001
|
-
id: string;
|
|
1002
|
-
type: string;
|
|
1003
|
-
status: string;
|
|
1004
|
-
progress: number;
|
|
1005
|
-
message: string;
|
|
1006
|
-
result: T;
|
|
1007
|
-
error: string;
|
|
1008
|
-
createdAt: string;
|
|
1009
|
-
updatedAt: string;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
1074
|
type ReadinessScoreReviewFields = (keyof ReadinessScoreReview)[];
|
|
1013
1075
|
type VisaProfileFields = (keyof VisaProfile)[];
|
|
1014
1076
|
type VisaApplicationFields = (keyof VisaApplication)[];
|
|
@@ -1431,4 +1493,61 @@ declare const createVisaProfileReviewCommentService: (client: GraphQLClient) =>
|
|
|
1431
1493
|
};
|
|
1432
1494
|
type VisaProfileReviewCommentService = ReturnType<typeof createVisaProfileReviewCommentService>;
|
|
1433
1495
|
|
|
1434
|
-
export { type AdminDashboardMatrix, type AdminDashboardMatrixKey, type AllUserNotificationSettingKey, type AuthService, type AuthTokenProvider, AuthenticationError, type BooleanLiteral, type ChecklistItem, type ChecklistItemService, type ClientOptions, type ConsultantAssignment, type ConsultantAssignmentService, type ConsultantDashboardMetricCount, type ConsultantDashboardMetricCountKey, type ConsultantInvite, type ConsultantInviteService, type ConsultantNotificationSettingKey, type ConsultantRequest, type CreateChecklistItemRequest, type CreateChecklistItemResponse, type CreateChecklistItemResponseNestedFields, type CreateConsultantAssignmentRequest, type CreateConsultantAssignmentResponse, type CreateConsultantAssignmentResponseNestedFields, type CreateReadinessScoreReviewRequest, type CreateReadinessScoreReviewResponse, type CreateReadinessScoreReviewResponseNestedFields, type CreateUserRequest, type CreateUserResponse, type CreateUserResponseNestedFields, type CreateUserSettingRequest, type CreateUserSettingResponse, type CreateUserSettingResponseNestedFields, type CreateVisaApplicationRequest, type CreateVisaApplicationResponse, type CreateVisaApplicationResponseNestedFields, type CreateVisaProfileChecklistItemRequest, type CreateVisaProfileChecklistItemResponse, type CreateVisaProfileChecklistItemResponseNestedFields, type CreateVisaProfileChecklistItemsRequest, type CreateVisaProfileChecklistItemsResponse, type CreateVisaProfileChecklistItemsResponseNestedFields, type CreateVisaProfileRequest, type CreateVisaProfileResponse, type CreateVisaProfileResponseNestedFields, type CreateVisaProfileReviewCommentRequest, type CreateVisaProfileReviewCommentResponse, type CreateVisaProfileReviewCommentResponseNestedFields, type DeleteChecklistItemRequest, type DeleteChecklistItemResponse, type DeleteConsultantAssignmentRequest, type DeleteConsultantAssignmentResponse, type DeleteReadinessScoreReviewRequest, type DeleteReadinessScoreReviewResponse, type DeleteUserRequest, type DeleteUserResponse, type DeleteUserSettingRequest, type DeleteUserSettingResponse, type DeleteVisaApplicationRequest, type DeleteVisaApplicationResponse, type DeleteVisaProfileChecklistItemRequest, type DeleteVisaProfileChecklistItemResponse, type DeleteVisaProfileRequest, type DeleteVisaProfileResponse, type DeleteVisaProfileReviewCommentRequest, type DeleteVisaProfileReviewCommentResponse, type DocumentReview, type EducationalBackground, type FileInfo, type GenerateSOPRequest, type GenerateSOPResponse, type GenerateSOPResponseNestedFields, type GetActivityLogRequest, type GetActivityLogResponse, type GetActivityLogResponseNestedFields, type GetChecklistItemRequest, type GetChecklistItemResponse, type GetChecklistItemResponseNestedFields, type GetConsultantAssignmentCountRequest, type GetConsultantAssignmentCountResponse, type GetConsultantAssignmentRequest, type GetConsultantAssignmentResponse, type GetConsultantAssignmentResponseNestedFields, type GetGeneratedSOPRequest, type GetGeneratedSOPResponse, type GetGeneratedSOPResponseNestedFields, type GetJobRequest, type GetJobResponse, type GetJobResponseNestedFields, type GetReadinessScoreReviewRequest, type GetReadinessScoreReviewResponse, type GetReadinessScoreReviewResponseNestedFields, type GetUserRequest, type GetUserResponse, type GetUserResponseNestedFields, type GetUserSettingRequest, type GetUserSettingResponse, type GetUserSettingResponseNestedFields, type GetVisaApplicationRequest, type GetVisaApplicationResponse, type GetVisaApplicationResponseNestedFields, type GetVisaProfileChecklistItemRequest, type GetVisaProfileChecklistItemResponse, type GetVisaProfileChecklistItemResponseNestedFields, type GetVisaProfileChecklistItemsByChecklistRequest, type GetVisaProfileChecklistItemsByChecklistResponse, type GetVisaProfileChecklistItemsByChecklistResponseNestedFields, type GetVisaProfileRequest, type GetVisaProfileResponse, type GetVisaProfileResponseNestedFields, type GetVisaProfileReviewCommentRequest, type GetVisaProfileReviewCommentResponse, type GetVisaProfileReviewCommentResponseNestedFields, GraphQLClient, type GraphQLError, type GraphQLRequest, type GraphQLResponse, type GraphQLVariables, type HeadersFactory, type Help, type HtmlString, type ListActivityLogsRequest, type ListActivityLogsResponse, type ListActivityLogsResponseNestedFields, type ListChecklistItemsRequest, type ListChecklistItemsResponse, type ListChecklistItemsResponseNestedFields, type ListConsultantAssignmentsRequest, type ListConsultantAssignmentsResponse, type ListConsultantAssignmentsResponseNestedFields, type ListReadinessScoreReviewsRequest, type ListReadinessScoreReviewsResponse, type ListReadinessScoreReviewsResponseNestedFields, type ListUsersRequest, type ListUsersResponse, type ListUsersResponseNestedFields, type ListVisaApplicationsRequest, type ListVisaApplicationsResponse, type ListVisaApplicationsResponseNestedFields, type ListVisaProfileChecklistItemsRequest, type ListVisaProfileChecklistItemsResponse, type ListVisaProfileChecklistItemsResponseNestedFields, type ListVisaProfileReviewCommentsRequest, type ListVisaProfileReviewCommentsResponse, type ListVisaProfileReviewCommentsResponseNestedFields, type ListVisaProfilesRequest, type ListVisaProfilesResponse, type ListVisaProfilesResponseNestedFields, type LoginRequest, type LoginResponse, type MeRequest, type MeResponse, type MeResponseNestedFields, type Middleware, NetworkError, type Next, type Notification, type Pagination, type PartnerDashboardMatrix, type PartnerDashboardMatrixKey, type Plan, type ReadinessScore, type ReadinessScoreReview, type ReadinessScoreReviewService, type RegisterForm, type RequestContext, type RequestOption, type ResetPasswordRequest, type ResetPasswordResponse, type ResponseContext, type SOPAnswer, type SOPReview, SdkError, type SendOTPRequest, type SendOTPResponse, type SettingNotificationChannelKey, type SignUpRequest, type SignUpResponse, type Subscription, type SubscriptionPackage, type SubscriptionService, type TransportOptions, type UpdateChecklistItemRequest, type UpdateChecklistItemResponse, type UpdateChecklistItemResponseNestedFields, type UpdateConsultantAssignmentRequest, type UpdateConsultantAssignmentResponse, type UpdateConsultantAssignmentResponseNestedFields, type UpdatePasswordRequest, type UpdatePasswordResponse, type UpdateReadinessScoreReviewRequest, type UpdateReadinessScoreReviewResponse, type UpdateReadinessScoreReviewResponseNestedFields, type UpdateUserRequest, type UpdateUserResponse, type UpdateUserResponseNestedFields, type UpdateUserSettingRequest, type UpdateUserSettingResponse, type UpdateUserSettingResponseNestedFields, type UpdateVisaApplicationRequest, type UpdateVisaApplicationResponse, type UpdateVisaApplicationResponseNestedFields, type UpdateVisaProfileChecklistItemRequest, type UpdateVisaProfileChecklistItemResponse, type UpdateVisaProfileChecklistItemResponseNestedFields, type UpdateVisaProfileRequest, type UpdateVisaProfileResponse, type UpdateVisaProfileResponseNestedFields, type UpdateVisaProfileReviewCommentRequest, type UpdateVisaProfileReviewCommentResponse, type UpdateVisaProfileReviewCommentResponseNestedFields, type User, type UserActivityLog, type UserApplicationMetric, type UserNotificationSettingKey, type UserService, type UserSetting, type UserSettingService, type UserStatus, type UserSubscription, type UserSubscriptionService, type UserType, type VerifyOTPRequest, type VerifyOTPResponse, type VisaApplication, type VisaApplicationMetricKey, type VisaApplicationService, type VisaApplicationStatus, type VisaProfile, type VisaProfileActivityLog, type VisaProfileChecklistItem, type VisaProfileChecklistItemService, type VisaProfileDetails, type VisaProfileProgram, type VisaProfileReviewComment, type VisaProfileReviewCommentService, type VisaProfileService, type VisaType, _generateSOPResponseNestedFields, _getConsultantAssignmentResponseNestedFields, _getVisaProfileChecklistItemResponseNestedFields, _getVisaProfileResponseNestedFields, _getVisaProfileReviewCommentResponseNestedFields, compose, createActivityLogService, createAuthService, createChecklistItemResponse, createChecklistItemResponseNestedFields, createChecklistItemService, createConsultantAssignmentResponseFields, createConsultantAssignmentResponseNestedFields, createConsultantAssignmentService, createConsultantInviteService, createReadinessScoreReviewResponseFields, createReadinessScoreReviewResponseNestedFields, createReadinessScoreReviewService, createSubscriptionService, createTransport, createUserResponseFields, createUserResponseNestedFields, createUserService, createUserSettingResponseFields, createUserSettingResponseNestedFields, createUserSettingService, createUserSubscriptionService, createVisaApplicationResponseFields, createVisaApplicationResponseNestedFields, createVisaApplicationService, createVisaProfileChecklistItemResponse, createVisaProfileChecklistItemResponseNestedFields, createVisaProfileChecklistItemService, createVisaProfileChecklistItemsResponse, createVisaProfileChecklistItemsResponseNestedFields, createVisaProfileResponse, createVisaProfileResponseNestedFields, createVisaProfileReviewCommentResponseFields, createVisaProfileReviewCommentResponseNestedFields, createVisaProfileReviewCommentService, createVisaProfileService, deleteChecklistItemResponse, deleteConsultantAssignmentResponseFields, deleteReadinessScoreReviewResponseFields, deleteUserResponseFields, deleteUserSettingResponseFields, deleteVisaApplicationResponseFields, deleteVisaProfileChecklistItemResponse, deleteVisaProfileResponse, deleteVisaProfileReviewCommentResponseFields, generateSOPResponse, generateSOPResponseNestedFields, getActivityLogResponseFields, getActivityLogResponseNestedFields, getChecklistItemResponse, getChecklistItemResponseNestedFields, getConsultantAssignmentCountResponseFields, getConsultantAssignmentResponseFields, getConsultantAssignmentResponseNestedFields, getGeneratedSOPResponse, getGeneratedSOPResponseNestedFields, getJobResponse, getJobResponseNestedFields, getReadinessScoreReviewResponseFields, getReadinessScoreReviewResponseNestedFields, getUserResponseFields, getUserResponseNestedFields, getUserSettingResponseFields, getUserSettingResponseNestedFields, getVisaApplicationResponseFields, getVisaApplicationResponseNestedFields, getVisaProfileChecklistItemResponse, getVisaProfileChecklistItemResponseNestedFields, getVisaProfileChecklistItemsByChecklistResponse, getVisaProfileChecklistItemsByChecklistResponseNestedFields, getVisaProfileResponse, getVisaProfileResponseNestedFields, getVisaProfileReviewCommentResponseFields, getVisaProfileReviewCommentResponseNestedFields, listActivityLogsResponseFields, listActivityLogsResponseNestedFields, listChecklistItemResponse, listChecklistItemResponseNestedFields, listConsultantAssignmentsResponseFields, listConsultantAssignmentsResponseNestedFields, listReadinessScoreReviewsResponseFields, listReadinessScoreReviewsResponseNestedFields, listUsersResponseFields, listUsersResponseNestedFields, listVisaApplicationsResponseFields, listVisaApplicationsResponseNestedFields, listVisaProfileChecklistItemResponse, listVisaProfileChecklistItemResponseNestedFields, listVisaProfileReviewCommentsResponseFields, listVisaProfileReviewCommentsResponseNestedFields, listVisaProfilesResponse, listVisaProfilesResponseNestedFields, loginResponseFields, meResponseFields, meResponseNestedFields, resetPasswordResponseFields, sendOTPResponseFields, signUpResponseFields, toAsyncHeadersFactory, toAsyncTokenProvider, updateChecklistItemResponse, updateChecklistItemResponseNestedFields, updateConsultantAssignmentResponseFields, updateConsultantAssignmentResponseNestedFields, updatePasswordResponseFields, updateReadinessScoreReviewResponseFields, updateReadinessScoreReviewResponseNestedFields, updateUserResponseFields, updateUserResponseNestedFields, updateUserSettingResponseFields, updateUserSettingResponseNestedFields, updateVisaApplicationResponseFields, updateVisaApplicationResponseNestedFields, updateVisaProfileChecklistItemResponse, updateVisaProfileChecklistItemResponseNestedFields, updateVisaProfileResponseFields, updateVisaProfileResponseNestedFields, updateVisaProfileReviewCommentResponseFields, updateVisaProfileReviewCommentResponseNestedFields, verifyOTPResponseFields };
|
|
1496
|
+
interface CreateCardObjectRequest {
|
|
1497
|
+
userId: string;
|
|
1498
|
+
card: Card;
|
|
1499
|
+
}
|
|
1500
|
+
interface CreateCardObjectResponse {
|
|
1501
|
+
cardObjectId: string;
|
|
1502
|
+
chargeId: string;
|
|
1503
|
+
}
|
|
1504
|
+
declare const createCardObjectResponse: (keyof CreateCardObjectResponse)[];
|
|
1505
|
+
interface GetFlutterAccessTokenRequest {
|
|
1506
|
+
userId: string;
|
|
1507
|
+
}
|
|
1508
|
+
interface GetFlutterAccessTokenResponse {
|
|
1509
|
+
accessToken: string;
|
|
1510
|
+
}
|
|
1511
|
+
declare const getFlutterAccessTokenResponse: (keyof GetFlutterAccessTokenResponse)[];
|
|
1512
|
+
interface CreateCustomerObjectRequest {
|
|
1513
|
+
userId: string;
|
|
1514
|
+
customer: FlutterwaveCustomer;
|
|
1515
|
+
}
|
|
1516
|
+
interface CreateCustomerObjectResponse {
|
|
1517
|
+
customerObjectId: string;
|
|
1518
|
+
}
|
|
1519
|
+
declare const createCustomerObjectResponse: (keyof CreateCustomerObjectResponse)[];
|
|
1520
|
+
|
|
1521
|
+
interface PaystackInitializePaymentRequest {
|
|
1522
|
+
userId: string;
|
|
1523
|
+
}
|
|
1524
|
+
interface PaystackInitializePaymentResponse {
|
|
1525
|
+
authorization_url: string;
|
|
1526
|
+
access_code: string;
|
|
1527
|
+
reference: string;
|
|
1528
|
+
}
|
|
1529
|
+
declare const paystackInitializePaymentResponse: (keyof PaystackInitializePaymentResponse)[];
|
|
1530
|
+
|
|
1531
|
+
declare const createFlutterwaveService: (client: GraphQLClient) => {
|
|
1532
|
+
getFlutterAccessToken(input: GetFlutterAccessTokenRequest, fetchFields?: {
|
|
1533
|
+
root?: (keyof GetFlutterAccessTokenResponse)[];
|
|
1534
|
+
}, option?: RequestOption): Promise<GetFlutterAccessTokenResponse | undefined>;
|
|
1535
|
+
createCardObject(input: CreateCardObjectRequest, fetchFields?: {
|
|
1536
|
+
root?: (keyof CreateCardObjectResponse)[];
|
|
1537
|
+
}, option?: RequestOption): Promise<CreateCardObjectResponse | undefined>;
|
|
1538
|
+
createCustomerObject(input: CreateCustomerObjectRequest, fetchFields?: {
|
|
1539
|
+
root?: (keyof CreateCustomerObjectResponse)[];
|
|
1540
|
+
}, option?: RequestOption): Promise<CreateCustomerObjectResponse | undefined>;
|
|
1541
|
+
};
|
|
1542
|
+
type FlutterwaveService = ReturnType<typeof createFlutterwaveService>;
|
|
1543
|
+
|
|
1544
|
+
declare function encryptAES(data: string, token: string, nonce: string): Promise<string>;
|
|
1545
|
+
|
|
1546
|
+
declare const createPaystackService: (client: GraphQLClient) => {
|
|
1547
|
+
paystackInitializePayment(input: PaystackInitializePaymentRequest, fetchFields?: {
|
|
1548
|
+
root?: (keyof PaystackInitializePaymentResponse)[];
|
|
1549
|
+
}, option?: RequestOption): Promise<PaystackInitializePaymentResponse | undefined>;
|
|
1550
|
+
};
|
|
1551
|
+
type PaystackService = ReturnType<typeof createPaystackService>;
|
|
1552
|
+
|
|
1553
|
+
export { type AdminDashboardMatrix, type AdminDashboardMatrixKey, type AllUserNotificationSettingKey, type AuthService, type AuthTokenProvider, AuthenticationError, type BooleanLiteral, type Card, type CardObject, type CardProcessed, type ChecklistItem, type ChecklistItemService, type ClientOptions, type ConsultantAssignment, type ConsultantAssignmentService, type ConsultantDashboardMetricCount, type ConsultantDashboardMetricCountKey, type ConsultantInvite, type ConsultantInviteService, type ConsultantNotificationSettingKey, type ConsultantRequest, type CreateCardObjectRequest, type CreateCardObjectResponse, type CreateChecklistItemRequest, type CreateChecklistItemResponse, type CreateChecklistItemResponseNestedFields, type CreateConsultantAssignmentRequest, type CreateConsultantAssignmentResponse, type CreateConsultantAssignmentResponseNestedFields, type CreateCustomerObjectRequest, type CreateCustomerObjectResponse, type CreateReadinessScoreReviewRequest, type CreateReadinessScoreReviewResponse, type CreateReadinessScoreReviewResponseNestedFields, type CreateUserRequest, type CreateUserResponse, type CreateUserResponseNestedFields, type CreateUserSettingRequest, type CreateUserSettingResponse, type CreateUserSettingResponseNestedFields, type CreateVisaApplicationRequest, type CreateVisaApplicationResponse, type CreateVisaApplicationResponseNestedFields, type CreateVisaProfileChecklistItemRequest, type CreateVisaProfileChecklistItemResponse, type CreateVisaProfileChecklistItemResponseNestedFields, type CreateVisaProfileChecklistItemsRequest, type CreateVisaProfileChecklistItemsResponse, type CreateVisaProfileChecklistItemsResponseNestedFields, type CreateVisaProfileRequest, type CreateVisaProfileResponse, type CreateVisaProfileResponseNestedFields, type CreateVisaProfileReviewCommentRequest, type CreateVisaProfileReviewCommentResponse, type CreateVisaProfileReviewCommentResponseNestedFields, type DeleteChecklistItemRequest, type DeleteChecklistItemResponse, type DeleteConsultantAssignmentRequest, type DeleteConsultantAssignmentResponse, type DeleteReadinessScoreReviewRequest, type DeleteReadinessScoreReviewResponse, type DeleteUserRequest, type DeleteUserResponse, type DeleteUserSettingRequest, type DeleteUserSettingResponse, type DeleteVisaApplicationRequest, type DeleteVisaApplicationResponse, type DeleteVisaProfileChecklistItemRequest, type DeleteVisaProfileChecklistItemResponse, type DeleteVisaProfileRequest, type DeleteVisaProfileResponse, type DeleteVisaProfileReviewCommentRequest, type DeleteVisaProfileReviewCommentResponse, type DocumentReview, type EducationalBackground, type FileInfo, type FlutterApiResponse, type FlutterCustomerAddress, type FlutterCustomerName, type FlutterCustomerPhone, type FlutterwaveCustomer, type FlutterwaveService, type GenerateSOPRequest, type GenerateSOPResponse, type GenerateSOPResponseNestedFields, type GetActivityLogRequest, type GetActivityLogResponse, type GetActivityLogResponseNestedFields, type GetChecklistItemRequest, type GetChecklistItemResponse, type GetChecklistItemResponseNestedFields, type GetConsultantAssignmentCountRequest, type GetConsultantAssignmentCountResponse, type GetConsultantAssignmentRequest, type GetConsultantAssignmentResponse, type GetConsultantAssignmentResponseNestedFields, type GetFlutterAccessTokenRequest, type GetFlutterAccessTokenResponse, type GetGeneratedSOPRequest, type GetGeneratedSOPResponse, type GetGeneratedSOPResponseNestedFields, type GetJobRequest, type GetJobResponse, type GetJobResponseNestedFields, type GetReadinessScoreReviewRequest, type GetReadinessScoreReviewResponse, type GetReadinessScoreReviewResponseNestedFields, type GetUserRequest, type GetUserResponse, type GetUserResponseNestedFields, type GetUserSettingRequest, type GetUserSettingResponse, type GetUserSettingResponseNestedFields, type GetVisaApplicationRequest, type GetVisaApplicationResponse, type GetVisaApplicationResponseNestedFields, type GetVisaProfileChecklistItemRequest, type GetVisaProfileChecklistItemResponse, type GetVisaProfileChecklistItemResponseNestedFields, type GetVisaProfileChecklistItemsByChecklistRequest, type GetVisaProfileChecklistItemsByChecklistResponse, type GetVisaProfileChecklistItemsByChecklistResponseNestedFields, type GetVisaProfileRequest, type GetVisaProfileResponse, type GetVisaProfileResponseNestedFields, type GetVisaProfileReviewCommentRequest, type GetVisaProfileReviewCommentResponse, type GetVisaProfileReviewCommentResponseNestedFields, GraphQLClient, type GraphQLError, type GraphQLRequest, type GraphQLResponse, type GraphQLVariables, type HeadersFactory, type Help, type HtmlString, type Job, type ListActivityLogsRequest, type ListActivityLogsResponse, type ListActivityLogsResponseNestedFields, type ListChecklistItemsRequest, type ListChecklistItemsResponse, type ListChecklistItemsResponseNestedFields, type ListConsultantAssignmentsRequest, type ListConsultantAssignmentsResponse, type ListConsultantAssignmentsResponseNestedFields, type ListReadinessScoreReviewsRequest, type ListReadinessScoreReviewsResponse, type ListReadinessScoreReviewsResponseNestedFields, type ListUsersRequest, type ListUsersResponse, type ListUsersResponseNestedFields, type ListVisaApplicationsRequest, type ListVisaApplicationsResponse, type ListVisaApplicationsResponseNestedFields, type ListVisaProfileChecklistItemsRequest, type ListVisaProfileChecklistItemsResponse, type ListVisaProfileChecklistItemsResponseNestedFields, type ListVisaProfileReviewCommentsRequest, type ListVisaProfileReviewCommentsResponse, type ListVisaProfileReviewCommentsResponseNestedFields, type ListVisaProfilesRequest, type ListVisaProfilesResponse, type ListVisaProfilesResponseNestedFields, type LoginRequest, type LoginResponse, type MeRequest, type MeResponse, type MeResponseNestedFields, type Middleware, NetworkError, type Next, type Notification, type Pagination, type PartnerDashboardMatrix, type PartnerDashboardMatrixKey, type PaymentMethod, type PaystackInitializePaymentRequest, type PaystackInitializePaymentResponse, type PaystackService, type Plan, type ReadinessScore, type ReadinessScoreReview, type ReadinessScoreReviewService, type RegisterForm, type RequestContext, type RequestOption, type ResetPasswordRequest, type ResetPasswordResponse, type ResponseContext, type SOPAnswer, type SOPReview, SdkError, type SendOTPRequest, type SendOTPResponse, type SettingNotificationChannelKey, type SignUpRequest, type SignUpResponse, type Subscription, type SubscriptionPackage, type SubscriptionService, type TransportOptions, type UpdateChecklistItemRequest, type UpdateChecklistItemResponse, type UpdateChecklistItemResponseNestedFields, type UpdateConsultantAssignmentRequest, type UpdateConsultantAssignmentResponse, type UpdateConsultantAssignmentResponseNestedFields, type UpdatePasswordRequest, type UpdatePasswordResponse, type UpdateReadinessScoreReviewRequest, type UpdateReadinessScoreReviewResponse, type UpdateReadinessScoreReviewResponseNestedFields, type UpdateUserRequest, type UpdateUserResponse, type UpdateUserResponseNestedFields, type UpdateUserSettingRequest, type UpdateUserSettingResponse, type UpdateUserSettingResponseNestedFields, type UpdateVisaApplicationRequest, type UpdateVisaApplicationResponse, type UpdateVisaApplicationResponseNestedFields, type UpdateVisaProfileChecklistItemRequest, type UpdateVisaProfileChecklistItemResponse, type UpdateVisaProfileChecklistItemResponseNestedFields, type UpdateVisaProfileRequest, type UpdateVisaProfileResponse, type UpdateVisaProfileResponseNestedFields, type UpdateVisaProfileReviewCommentRequest, type UpdateVisaProfileReviewCommentResponse, type UpdateVisaProfileReviewCommentResponseNestedFields, type User, type UserActivityLog, type UserApplicationMetric, type UserNotificationSettingKey, type UserService, type UserSetting, type UserSettingService, type UserStatus, type UserSubscription, type UserSubscriptionService, type UserType, type VerifyOTPRequest, type VerifyOTPResponse, type VisaApplication, type VisaApplicationMetricKey, type VisaApplicationService, type VisaApplicationStatus, type VisaProfile, type VisaProfileActivityLog, type VisaProfileChecklistItem, type VisaProfileChecklistItemService, type VisaProfileDetails, type VisaProfileProgram, type VisaProfileReviewComment, type VisaProfileReviewCommentService, type VisaProfileService, type VisaType, _generateSOPResponseNestedFields, _getConsultantAssignmentResponseNestedFields, _getVisaProfileChecklistItemResponseNestedFields, _getVisaProfileResponseNestedFields, _getVisaProfileReviewCommentResponseNestedFields, compose, createActivityLogService, createAuthService, createCardObjectResponse, createChecklistItemResponse, createChecklistItemResponseNestedFields, createChecklistItemService, createConsultantAssignmentResponseFields, createConsultantAssignmentResponseNestedFields, createConsultantAssignmentService, createConsultantInviteService, createCustomerObjectResponse, createFlutterwaveService, createPaystackService, createReadinessScoreReviewResponseFields, createReadinessScoreReviewResponseNestedFields, createReadinessScoreReviewService, createSubscriptionService, createTransport, createUserResponseFields, createUserResponseNestedFields, createUserService, createUserSettingResponseFields, createUserSettingResponseNestedFields, createUserSettingService, createUserSubscriptionService, createVisaApplicationResponseFields, createVisaApplicationResponseNestedFields, createVisaApplicationService, createVisaProfileChecklistItemResponse, createVisaProfileChecklistItemResponseNestedFields, createVisaProfileChecklistItemService, createVisaProfileChecklistItemsResponse, createVisaProfileChecklistItemsResponseNestedFields, createVisaProfileResponse, createVisaProfileResponseNestedFields, createVisaProfileReviewCommentResponseFields, createVisaProfileReviewCommentResponseNestedFields, createVisaProfileReviewCommentService, createVisaProfileService, deleteChecklistItemResponse, deleteConsultantAssignmentResponseFields, deleteReadinessScoreReviewResponseFields, deleteUserResponseFields, deleteUserSettingResponseFields, deleteVisaApplicationResponseFields, deleteVisaProfileChecklistItemResponse, deleteVisaProfileResponse, deleteVisaProfileReviewCommentResponseFields, encryptAES, generateSOPResponse, generateSOPResponseNestedFields, getActivityLogResponseFields, getActivityLogResponseNestedFields, getChecklistItemResponse, getChecklistItemResponseNestedFields, getConsultantAssignmentCountResponseFields, getConsultantAssignmentResponseFields, getConsultantAssignmentResponseNestedFields, getFlutterAccessTokenResponse, getGeneratedSOPResponse, getGeneratedSOPResponseNestedFields, getJobResponse, getJobResponseNestedFields, getReadinessScoreReviewResponseFields, getReadinessScoreReviewResponseNestedFields, getUserResponseFields, getUserResponseNestedFields, getUserSettingResponseFields, getUserSettingResponseNestedFields, getVisaApplicationResponseFields, getVisaApplicationResponseNestedFields, getVisaProfileChecklistItemResponse, getVisaProfileChecklistItemResponseNestedFields, getVisaProfileChecklistItemsByChecklistResponse, getVisaProfileChecklistItemsByChecklistResponseNestedFields, getVisaProfileResponse, getVisaProfileResponseNestedFields, getVisaProfileReviewCommentResponseFields, getVisaProfileReviewCommentResponseNestedFields, listActivityLogsResponseFields, listActivityLogsResponseNestedFields, listChecklistItemResponse, listChecklistItemResponseNestedFields, listConsultantAssignmentsResponseFields, listConsultantAssignmentsResponseNestedFields, listReadinessScoreReviewsResponseFields, listReadinessScoreReviewsResponseNestedFields, listUsersResponseFields, listUsersResponseNestedFields, listVisaApplicationsResponseFields, listVisaApplicationsResponseNestedFields, listVisaProfileChecklistItemResponse, listVisaProfileChecklistItemResponseNestedFields, listVisaProfileReviewCommentsResponseFields, listVisaProfileReviewCommentsResponseNestedFields, listVisaProfilesResponse, listVisaProfilesResponseNestedFields, loginResponseFields, meResponseFields, meResponseNestedFields, paystackInitializePaymentResponse, resetPasswordResponseFields, sendOTPResponseFields, signUpResponseFields, toAsyncHeadersFactory, toAsyncTokenProvider, updateChecklistItemResponse, updateChecklistItemResponseNestedFields, updateConsultantAssignmentResponseFields, updateConsultantAssignmentResponseNestedFields, updatePasswordResponseFields, updateReadinessScoreReviewResponseFields, updateReadinessScoreReviewResponseNestedFields, updateUserResponseFields, updateUserResponseNestedFields, updateUserSettingResponseFields, updateUserSettingResponseNestedFields, updateVisaApplicationResponseFields, updateVisaApplicationResponseNestedFields, updateVisaProfileChecklistItemResponse, updateVisaProfileChecklistItemResponseNestedFields, updateVisaProfileResponseFields, updateVisaProfileResponseNestedFields, updateVisaProfileReviewCommentResponseFields, updateVisaProfileReviewCommentResponseNestedFields, verifyOTPResponseFields };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
+
});
|
|
7
|
+
|
|
1
8
|
// src/auth.ts
|
|
2
9
|
var toAsyncTokenProvider = (p) => {
|
|
3
10
|
if (!p) return async () => null;
|
|
@@ -2381,6 +2388,145 @@ var createVisaProfileReviewCommentService = (client) => ({
|
|
|
2381
2388
|
}
|
|
2382
2389
|
});
|
|
2383
2390
|
|
|
2384
|
-
|
|
2391
|
+
// src/services/subscription/types/flutter.ts
|
|
2392
|
+
var createCardObjectResponse = ["cardObjectId", "chargeId"];
|
|
2393
|
+
var getFlutterAccessTokenResponse = ["accessToken"];
|
|
2394
|
+
var createCustomerObjectResponse = ["customerObjectId"];
|
|
2395
|
+
|
|
2396
|
+
// src/services/subscription/types/paystack.ts
|
|
2397
|
+
var paystackInitializePaymentResponse = [
|
|
2398
|
+
"access_code",
|
|
2399
|
+
"authorization_url",
|
|
2400
|
+
"reference"
|
|
2401
|
+
];
|
|
2402
|
+
|
|
2403
|
+
// src/services/subscription/schemas/flutter-customer.schema.ts
|
|
2404
|
+
var flutterSchema = {
|
|
2405
|
+
createCardObject: (query) => `
|
|
2406
|
+
mutation createCardObject($userId: String!, $card: CardInput!) {
|
|
2407
|
+
createCardObject(userId: $userId, card: $card) {
|
|
2408
|
+
${query}
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
`,
|
|
2412
|
+
getFlutterAccessToken: (query) => `
|
|
2413
|
+
query getFlutterAccessToken($userId: String!) {
|
|
2414
|
+
getFlutterAccessToken(userId: $userId) {
|
|
2415
|
+
${query}
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
`,
|
|
2419
|
+
createCustomerObject: (query) => `
|
|
2420
|
+
mutation createCustomerObject($userId: String!, $customer: CustomerInput!) {
|
|
2421
|
+
createCustomerObject(userId: $userId, customer: $customer) {
|
|
2422
|
+
${query}
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
`
|
|
2426
|
+
// GetFlutterAccessToken
|
|
2427
|
+
};
|
|
2428
|
+
|
|
2429
|
+
// src/services/subscription/flutterwave.service.ts
|
|
2430
|
+
var createFlutterwaveService = (client) => ({
|
|
2431
|
+
async getFlutterAccessToken(input, fetchFields, option) {
|
|
2432
|
+
var _a, _b;
|
|
2433
|
+
const res = await client.request(
|
|
2434
|
+
flutterSchema.getFlutterAccessToken(
|
|
2435
|
+
gqlQueryStringBuilder(
|
|
2436
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getFlutterAccessTokenResponse
|
|
2437
|
+
)
|
|
2438
|
+
),
|
|
2439
|
+
input,
|
|
2440
|
+
option
|
|
2441
|
+
);
|
|
2442
|
+
return (_b = res.data) == null ? void 0 : _b.getFlutterAccessToken;
|
|
2443
|
+
},
|
|
2444
|
+
async createCardObject(input, fetchFields, option) {
|
|
2445
|
+
var _a, _b;
|
|
2446
|
+
const res = await client.request(
|
|
2447
|
+
flutterSchema.createCardObject(
|
|
2448
|
+
gqlQueryStringBuilder(
|
|
2449
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : createCardObjectResponse
|
|
2450
|
+
)
|
|
2451
|
+
),
|
|
2452
|
+
input,
|
|
2453
|
+
option
|
|
2454
|
+
);
|
|
2455
|
+
return (_b = res.data) == null ? void 0 : _b.createCardObject;
|
|
2456
|
+
},
|
|
2457
|
+
async createCustomerObject(input, fetchFields, option) {
|
|
2458
|
+
var _a, _b;
|
|
2459
|
+
const res = await client.request(
|
|
2460
|
+
flutterSchema.createCustomerObject(
|
|
2461
|
+
gqlQueryStringBuilder(
|
|
2462
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : createCustomerObjectResponse
|
|
2463
|
+
)
|
|
2464
|
+
),
|
|
2465
|
+
input,
|
|
2466
|
+
option
|
|
2467
|
+
);
|
|
2468
|
+
return (_b = res.data) == null ? void 0 : _b.createCustomerObject;
|
|
2469
|
+
}
|
|
2470
|
+
});
|
|
2471
|
+
|
|
2472
|
+
// src/services/subscription/encrypt-data.ts
|
|
2473
|
+
async function encryptAES(data, token, nonce) {
|
|
2474
|
+
var _a, _b;
|
|
2475
|
+
if (nonce.length !== 12) {
|
|
2476
|
+
throw new Error("Nonce must be exactly 12 characters long");
|
|
2477
|
+
}
|
|
2478
|
+
const cryptoSubtle = ((_a = globalThis.crypto) == null ? void 0 : _a.subtle) || ((_b = __require("crypto").webcrypto) == null ? void 0 : _b.subtle);
|
|
2479
|
+
if (!cryptoSubtle) {
|
|
2480
|
+
throw new Error("Crypto API is not available in this environment.");
|
|
2481
|
+
}
|
|
2482
|
+
const decodedKeyBytes = Uint8Array.from(atob(token), (c) => c.charCodeAt(0));
|
|
2483
|
+
const key = await cryptoSubtle.importKey(
|
|
2484
|
+
"raw",
|
|
2485
|
+
decodedKeyBytes,
|
|
2486
|
+
{ name: "AES-GCM" },
|
|
2487
|
+
false,
|
|
2488
|
+
["encrypt"]
|
|
2489
|
+
);
|
|
2490
|
+
const iv = new TextEncoder().encode(nonce);
|
|
2491
|
+
const encryptedData = await cryptoSubtle.encrypt(
|
|
2492
|
+
{
|
|
2493
|
+
name: "AES-GCM",
|
|
2494
|
+
iv
|
|
2495
|
+
},
|
|
2496
|
+
key,
|
|
2497
|
+
new TextEncoder().encode(data)
|
|
2498
|
+
);
|
|
2499
|
+
return btoa(String.fromCharCode(...new Uint8Array(encryptedData)));
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
// src/services/subscription/schemas/paystack.ts
|
|
2503
|
+
var paystackSchema = {
|
|
2504
|
+
paystackInitializePayment: (query) => `
|
|
2505
|
+
mutation paystackInitializePayment($userId: String!) {
|
|
2506
|
+
paystackInitializePayment(userId: $userId) {
|
|
2507
|
+
${query}
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
`
|
|
2511
|
+
};
|
|
2512
|
+
|
|
2513
|
+
// src/services/subscription/paystack.service.ts
|
|
2514
|
+
var createPaystackService = (client) => ({
|
|
2515
|
+
async paystackInitializePayment(input, fetchFields, option) {
|
|
2516
|
+
var _a, _b;
|
|
2517
|
+
const res = await client.request(
|
|
2518
|
+
paystackSchema.paystackInitializePayment(
|
|
2519
|
+
gqlQueryStringBuilder(
|
|
2520
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : paystackInitializePaymentResponse
|
|
2521
|
+
)
|
|
2522
|
+
),
|
|
2523
|
+
input,
|
|
2524
|
+
option
|
|
2525
|
+
);
|
|
2526
|
+
return (_b = res.data) == null ? void 0 : _b.paystackInitializePayment;
|
|
2527
|
+
}
|
|
2528
|
+
});
|
|
2529
|
+
|
|
2530
|
+
export { AuthenticationError, GraphQLClient, NetworkError, SdkError, _generateSOPResponseNestedFields, _getConsultantAssignmentResponseNestedFields, _getVisaProfileChecklistItemResponseNestedFields, _getVisaProfileResponseNestedFields, _getVisaProfileReviewCommentResponseNestedFields, compose, createActivityLogService, createAuthService, createCardObjectResponse, createChecklistItemResponse, createChecklistItemResponseNestedFields, createChecklistItemService, createConsultantAssignmentResponseFields, createConsultantAssignmentResponseNestedFields, createConsultantAssignmentService, createConsultantInviteService, createCustomerObjectResponse, createFlutterwaveService, createPaystackService, createReadinessScoreReviewResponseFields, createReadinessScoreReviewResponseNestedFields, createReadinessScoreReviewService, createSubscriptionService, createTransport, createUserResponseFields, createUserResponseNestedFields, createUserService, createUserSettingResponseFields, createUserSettingResponseNestedFields, createUserSettingService, createUserSubscriptionService, createVisaApplicationResponseFields, createVisaApplicationResponseNestedFields, createVisaApplicationService, createVisaProfileChecklistItemResponse, createVisaProfileChecklistItemResponseNestedFields, createVisaProfileChecklistItemService, createVisaProfileChecklistItemsResponse, createVisaProfileChecklistItemsResponseNestedFields, createVisaProfileResponse, createVisaProfileResponseNestedFields, createVisaProfileReviewCommentResponseFields, createVisaProfileReviewCommentResponseNestedFields, createVisaProfileReviewCommentService, createVisaProfileService, deleteChecklistItemResponse, deleteConsultantAssignmentResponseFields, deleteReadinessScoreReviewResponseFields, deleteUserResponseFields, deleteUserSettingResponseFields, deleteVisaApplicationResponseFields, deleteVisaProfileChecklistItemResponse, deleteVisaProfileResponse, deleteVisaProfileReviewCommentResponseFields, encryptAES, generateSOPResponse, generateSOPResponseNestedFields, getActivityLogResponseFields, getActivityLogResponseNestedFields, getChecklistItemResponse, getChecklistItemResponseNestedFields, getConsultantAssignmentCountResponseFields, getConsultantAssignmentResponseFields, getConsultantAssignmentResponseNestedFields, getFlutterAccessTokenResponse, getGeneratedSOPResponse, getGeneratedSOPResponseNestedFields, getJobResponse, getJobResponseNestedFields, getReadinessScoreReviewResponseFields, getReadinessScoreReviewResponseNestedFields, getUserResponseFields, getUserResponseNestedFields, getUserSettingResponseFields, getUserSettingResponseNestedFields, getVisaApplicationResponseFields, getVisaApplicationResponseNestedFields, getVisaProfileChecklistItemResponse, getVisaProfileChecklistItemResponseNestedFields, getVisaProfileChecklistItemsByChecklistResponse, getVisaProfileChecklistItemsByChecklistResponseNestedFields, getVisaProfileResponse, getVisaProfileResponseNestedFields, getVisaProfileReviewCommentResponseFields, getVisaProfileReviewCommentResponseNestedFields, listActivityLogsResponseFields, listActivityLogsResponseNestedFields, listChecklistItemResponse, listChecklistItemResponseNestedFields, listConsultantAssignmentsResponseFields, listConsultantAssignmentsResponseNestedFields, listReadinessScoreReviewsResponseFields, listReadinessScoreReviewsResponseNestedFields, listUsersResponseFields, listUsersResponseNestedFields, listVisaApplicationsResponseFields, listVisaApplicationsResponseNestedFields, listVisaProfileChecklistItemResponse, listVisaProfileChecklistItemResponseNestedFields, listVisaProfileReviewCommentsResponseFields, listVisaProfileReviewCommentsResponseNestedFields, listVisaProfilesResponse, listVisaProfilesResponseNestedFields, loginResponseFields, meResponseFields, meResponseNestedFields, paystackInitializePaymentResponse, resetPasswordResponseFields, sendOTPResponseFields, signUpResponseFields, toAsyncHeadersFactory, toAsyncTokenProvider, updateChecklistItemResponse, updateChecklistItemResponseNestedFields, updateConsultantAssignmentResponseFields, updateConsultantAssignmentResponseNestedFields, updatePasswordResponseFields, updateReadinessScoreReviewResponseFields, updateReadinessScoreReviewResponseNestedFields, updateUserResponseFields, updateUserResponseNestedFields, updateUserSettingResponseFields, updateUserSettingResponseNestedFields, updateVisaApplicationResponseFields, updateVisaApplicationResponseNestedFields, updateVisaProfileChecklistItemResponse, updateVisaProfileChecklistItemResponseNestedFields, updateVisaProfileResponseFields, updateVisaProfileResponseNestedFields, updateVisaProfileReviewCommentResponseFields, updateVisaProfileReviewCommentResponseNestedFields, verifyOTPResponseFields };
|
|
2385
2531
|
//# sourceMappingURL=index.esm.js.map
|
|
2386
2532
|
//# sourceMappingURL=index.esm.js.map
|