@visa-check-r/integrations 0.0.20 → 0.0.22
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 +24 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +11 -17
- package/dist/index.d.ts +11 -17
- package/dist/index.esm.js +24 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -36,26 +36,10 @@ type ConsultantDashboardMetricCount = Record<ConsultantDashboardMetricCountKey,
|
|
|
36
36
|
type AdminDashboardMatrixKey = "visaProfileCount" | "partnerCount" | "consultantCount" | "pendingReviewCount";
|
|
37
37
|
type AdminDashboardMatrix = Record<AdminDashboardMatrixKey, number>;
|
|
38
38
|
type HtmlString = string;
|
|
39
|
-
/**
|
|
40
|
-
* message ConsultantInvite {
|
|
41
|
-
// @gotags: bson:"id"
|
|
42
|
-
string id = 1;
|
|
43
|
-
// @gotags: bson:"consultantId"
|
|
44
|
-
string consultantId = 2;
|
|
45
|
-
// @gotags: bson:"email"
|
|
46
|
-
string email = 3;
|
|
47
|
-
// @gotags: bson:"expirationDate"
|
|
48
|
-
string expirationDate = 4;
|
|
49
|
-
// @gotags: bson:"createdAt"
|
|
50
|
-
string createdAt = 7;
|
|
51
|
-
// @gotags: bson:"updatedAt"
|
|
52
|
-
string updatedAt = 8;
|
|
53
|
-
}
|
|
54
|
-
*/
|
|
55
39
|
interface ConsultantInvite {
|
|
56
40
|
id: string;
|
|
57
|
-
consultantId: string;
|
|
58
41
|
email: string;
|
|
42
|
+
token: string;
|
|
59
43
|
expirationDate: string;
|
|
60
44
|
createdAt: string;
|
|
61
45
|
updatedAt: string;
|
|
@@ -718,6 +702,13 @@ declare const createUserSubscriptionService: (client: GraphQLClient) => {
|
|
|
718
702
|
};
|
|
719
703
|
type UserSubscriptionService = ReturnType<typeof createUserSubscriptionService>;
|
|
720
704
|
|
|
705
|
+
interface VerifyConsultantInviteCodeRequest {
|
|
706
|
+
code: string;
|
|
707
|
+
email: string;
|
|
708
|
+
}
|
|
709
|
+
interface VerifyConsultantInviteCodeResponse {
|
|
710
|
+
success: boolean;
|
|
711
|
+
}
|
|
721
712
|
interface GetConsultantInviteRequest {
|
|
722
713
|
consultantInvite: Partial<ConsultantInvite>;
|
|
723
714
|
}
|
|
@@ -756,6 +747,9 @@ interface DeleteConsultantInviteRequest {
|
|
|
756
747
|
type DeleteConsultantInviteResponse = DeleteConsultantInviteRequest;
|
|
757
748
|
|
|
758
749
|
declare const createConsultantInviteService: (client: GraphQLClient) => {
|
|
750
|
+
verifyConsultantInviteCode(input: VerifyConsultantInviteCodeRequest, fetchFields?: {
|
|
751
|
+
root?: (keyof VerifyConsultantInviteCodeResponse)[];
|
|
752
|
+
}, option?: RequestOption): Promise<VerifyConsultantInviteCodeResponse | undefined>;
|
|
759
753
|
createConsultantInvite(input: CreateConsultantInviteRequest, fetchFields?: {
|
|
760
754
|
root?: (keyof CreateConsultantInviteResponse)[];
|
|
761
755
|
nestedFields?: CreateConsultantInviteResponseNestedFields;
|
package/dist/index.d.ts
CHANGED
|
@@ -36,26 +36,10 @@ type ConsultantDashboardMetricCount = Record<ConsultantDashboardMetricCountKey,
|
|
|
36
36
|
type AdminDashboardMatrixKey = "visaProfileCount" | "partnerCount" | "consultantCount" | "pendingReviewCount";
|
|
37
37
|
type AdminDashboardMatrix = Record<AdminDashboardMatrixKey, number>;
|
|
38
38
|
type HtmlString = string;
|
|
39
|
-
/**
|
|
40
|
-
* message ConsultantInvite {
|
|
41
|
-
// @gotags: bson:"id"
|
|
42
|
-
string id = 1;
|
|
43
|
-
// @gotags: bson:"consultantId"
|
|
44
|
-
string consultantId = 2;
|
|
45
|
-
// @gotags: bson:"email"
|
|
46
|
-
string email = 3;
|
|
47
|
-
// @gotags: bson:"expirationDate"
|
|
48
|
-
string expirationDate = 4;
|
|
49
|
-
// @gotags: bson:"createdAt"
|
|
50
|
-
string createdAt = 7;
|
|
51
|
-
// @gotags: bson:"updatedAt"
|
|
52
|
-
string updatedAt = 8;
|
|
53
|
-
}
|
|
54
|
-
*/
|
|
55
39
|
interface ConsultantInvite {
|
|
56
40
|
id: string;
|
|
57
|
-
consultantId: string;
|
|
58
41
|
email: string;
|
|
42
|
+
token: string;
|
|
59
43
|
expirationDate: string;
|
|
60
44
|
createdAt: string;
|
|
61
45
|
updatedAt: string;
|
|
@@ -718,6 +702,13 @@ declare const createUserSubscriptionService: (client: GraphQLClient) => {
|
|
|
718
702
|
};
|
|
719
703
|
type UserSubscriptionService = ReturnType<typeof createUserSubscriptionService>;
|
|
720
704
|
|
|
705
|
+
interface VerifyConsultantInviteCodeRequest {
|
|
706
|
+
code: string;
|
|
707
|
+
email: string;
|
|
708
|
+
}
|
|
709
|
+
interface VerifyConsultantInviteCodeResponse {
|
|
710
|
+
success: boolean;
|
|
711
|
+
}
|
|
721
712
|
interface GetConsultantInviteRequest {
|
|
722
713
|
consultantInvite: Partial<ConsultantInvite>;
|
|
723
714
|
}
|
|
@@ -756,6 +747,9 @@ interface DeleteConsultantInviteRequest {
|
|
|
756
747
|
type DeleteConsultantInviteResponse = DeleteConsultantInviteRequest;
|
|
757
748
|
|
|
758
749
|
declare const createConsultantInviteService: (client: GraphQLClient) => {
|
|
750
|
+
verifyConsultantInviteCode(input: VerifyConsultantInviteCodeRequest, fetchFields?: {
|
|
751
|
+
root?: (keyof VerifyConsultantInviteCodeResponse)[];
|
|
752
|
+
}, option?: RequestOption): Promise<VerifyConsultantInviteCodeResponse | undefined>;
|
|
759
753
|
createConsultantInvite(input: CreateConsultantInviteRequest, fetchFields?: {
|
|
760
754
|
root?: (keyof CreateConsultantInviteResponse)[];
|
|
761
755
|
nestedFields?: CreateConsultantInviteResponseNestedFields;
|
package/dist/index.esm.js
CHANGED
|
@@ -221,8 +221,8 @@ var userSchema = {
|
|
|
221
221
|
|
|
222
222
|
// src/services/user/user.entity.ts
|
|
223
223
|
var consultantInviteQuery = [
|
|
224
|
-
"consultantId",
|
|
225
224
|
"createdAt",
|
|
225
|
+
"token",
|
|
226
226
|
"email",
|
|
227
227
|
"expirationDate",
|
|
228
228
|
"id",
|
|
@@ -964,8 +964,15 @@ var createUserSubscriptionService = (client) => ({
|
|
|
964
964
|
}
|
|
965
965
|
});
|
|
966
966
|
|
|
967
|
-
// src/services/user/schemas/consultant-invite.ts
|
|
967
|
+
// src/services/user/schemas/consultant-invite.schema.ts
|
|
968
968
|
var consultantInviteSchema = {
|
|
969
|
+
verifyConsultantInviteCode: (query) => `
|
|
970
|
+
mutation verifyConsultantInviteCode($code: String!, $email: String!) {
|
|
971
|
+
verifyConsultantInviteCode(code: $code, email: $email) {
|
|
972
|
+
${query}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
`,
|
|
969
976
|
createConsultantInvite: (query) => `
|
|
970
977
|
mutation createConsultantInvite($consultantInvite: ConsultantInviteInput!) {
|
|
971
978
|
createConsultantInvite(consultantInvite: $consultantInvite) {
|
|
@@ -1005,6 +1012,7 @@ var consultantInviteSchema = {
|
|
|
1005
1012
|
};
|
|
1006
1013
|
|
|
1007
1014
|
// src/services/user/types/consultant-invite.type.ts
|
|
1015
|
+
var verifyConsultantInviteCodeResponseFields = ["success"];
|
|
1008
1016
|
var getConsultantInviteResponseFields = ["consultantInvite"];
|
|
1009
1017
|
var getConsultantInviteResponseNestedFields = {
|
|
1010
1018
|
consultantInvite: consultantInviteQuery
|
|
@@ -1021,6 +1029,20 @@ var deleteConsultantInviteResponseFields = ["consultantInviteId"];
|
|
|
1021
1029
|
|
|
1022
1030
|
// src/services/user/consultant-invite.service.ts
|
|
1023
1031
|
var createConsultantInviteService = (client) => ({
|
|
1032
|
+
//verify consultant invite
|
|
1033
|
+
async verifyConsultantInviteCode(input, fetchFields, option) {
|
|
1034
|
+
var _a, _b;
|
|
1035
|
+
const res = await client.request(
|
|
1036
|
+
consultantInviteSchema.verifyConsultantInviteCode(
|
|
1037
|
+
gqlQueryStringBuilder(
|
|
1038
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : verifyConsultantInviteCodeResponseFields
|
|
1039
|
+
)
|
|
1040
|
+
),
|
|
1041
|
+
input,
|
|
1042
|
+
option
|
|
1043
|
+
);
|
|
1044
|
+
return (_b = res.data) == null ? void 0 : _b.verifyConsultantInviteCode;
|
|
1045
|
+
},
|
|
1024
1046
|
// create
|
|
1025
1047
|
async createConsultantInvite(input, fetchFields, option) {
|
|
1026
1048
|
var _a, _b, _c;
|