@visa-check-r/integrations 0.0.21 → 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.d.mts CHANGED
@@ -39,6 +39,7 @@ type HtmlString = string;
39
39
  interface ConsultantInvite {
40
40
  id: string;
41
41
  email: string;
42
+ token: string;
42
43
  expirationDate: string;
43
44
  createdAt: string;
44
45
  updatedAt: string;
@@ -701,6 +702,13 @@ declare const createUserSubscriptionService: (client: GraphQLClient) => {
701
702
  };
702
703
  type UserSubscriptionService = ReturnType<typeof createUserSubscriptionService>;
703
704
 
705
+ interface VerifyConsultantInviteCodeRequest {
706
+ code: string;
707
+ email: string;
708
+ }
709
+ interface VerifyConsultantInviteCodeResponse {
710
+ success: boolean;
711
+ }
704
712
  interface GetConsultantInviteRequest {
705
713
  consultantInvite: Partial<ConsultantInvite>;
706
714
  }
@@ -739,6 +747,9 @@ interface DeleteConsultantInviteRequest {
739
747
  type DeleteConsultantInviteResponse = DeleteConsultantInviteRequest;
740
748
 
741
749
  declare const createConsultantInviteService: (client: GraphQLClient) => {
750
+ verifyConsultantInviteCode(input: VerifyConsultantInviteCodeRequest, fetchFields?: {
751
+ root?: (keyof VerifyConsultantInviteCodeResponse)[];
752
+ }, option?: RequestOption): Promise<VerifyConsultantInviteCodeResponse | undefined>;
742
753
  createConsultantInvite(input: CreateConsultantInviteRequest, fetchFields?: {
743
754
  root?: (keyof CreateConsultantInviteResponse)[];
744
755
  nestedFields?: CreateConsultantInviteResponseNestedFields;
package/dist/index.d.ts CHANGED
@@ -39,6 +39,7 @@ type HtmlString = string;
39
39
  interface ConsultantInvite {
40
40
  id: string;
41
41
  email: string;
42
+ token: string;
42
43
  expirationDate: string;
43
44
  createdAt: string;
44
45
  updatedAt: string;
@@ -701,6 +702,13 @@ declare const createUserSubscriptionService: (client: GraphQLClient) => {
701
702
  };
702
703
  type UserSubscriptionService = ReturnType<typeof createUserSubscriptionService>;
703
704
 
705
+ interface VerifyConsultantInviteCodeRequest {
706
+ code: string;
707
+ email: string;
708
+ }
709
+ interface VerifyConsultantInviteCodeResponse {
710
+ success: boolean;
711
+ }
704
712
  interface GetConsultantInviteRequest {
705
713
  consultantInvite: Partial<ConsultantInvite>;
706
714
  }
@@ -739,6 +747,9 @@ interface DeleteConsultantInviteRequest {
739
747
  type DeleteConsultantInviteResponse = DeleteConsultantInviteRequest;
740
748
 
741
749
  declare const createConsultantInviteService: (client: GraphQLClient) => {
750
+ verifyConsultantInviteCode(input: VerifyConsultantInviteCodeRequest, fetchFields?: {
751
+ root?: (keyof VerifyConsultantInviteCodeResponse)[];
752
+ }, option?: RequestOption): Promise<VerifyConsultantInviteCodeResponse | undefined>;
742
753
  createConsultantInvite(input: CreateConsultantInviteRequest, fetchFields?: {
743
754
  root?: (keyof CreateConsultantInviteResponse)[];
744
755
  nestedFields?: CreateConsultantInviteResponseNestedFields;
package/dist/index.esm.js CHANGED
@@ -222,6 +222,7 @@ var userSchema = {
222
222
  // src/services/user/user.entity.ts
223
223
  var consultantInviteQuery = [
224
224
  "createdAt",
225
+ "token",
225
226
  "email",
226
227
  "expirationDate",
227
228
  "id",
@@ -963,8 +964,15 @@ var createUserSubscriptionService = (client) => ({
963
964
  }
964
965
  });
965
966
 
966
- // src/services/user/schemas/consultant-invite.ts
967
+ // src/services/user/schemas/consultant-invite.schema.ts
967
968
  var consultantInviteSchema = {
969
+ verifyConsultantInviteCode: (query) => `
970
+ mutation verifyConsultantInviteCode($code: String!, $email: String!) {
971
+ verifyConsultantInviteCode(code: $code, email: $email) {
972
+ ${query}
973
+ }
974
+ }
975
+ `,
968
976
  createConsultantInvite: (query) => `
969
977
  mutation createConsultantInvite($consultantInvite: ConsultantInviteInput!) {
970
978
  createConsultantInvite(consultantInvite: $consultantInvite) {
@@ -1004,6 +1012,7 @@ var consultantInviteSchema = {
1004
1012
  };
1005
1013
 
1006
1014
  // src/services/user/types/consultant-invite.type.ts
1015
+ var verifyConsultantInviteCodeResponseFields = ["success"];
1007
1016
  var getConsultantInviteResponseFields = ["consultantInvite"];
1008
1017
  var getConsultantInviteResponseNestedFields = {
1009
1018
  consultantInvite: consultantInviteQuery
@@ -1020,6 +1029,20 @@ var deleteConsultantInviteResponseFields = ["consultantInviteId"];
1020
1029
 
1021
1030
  // src/services/user/consultant-invite.service.ts
1022
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
+ },
1023
1046
  // create
1024
1047
  async createConsultantInvite(input, fetchFields, option) {
1025
1048
  var _a, _b, _c;