@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 CHANGED
@@ -223,8 +223,8 @@ var userSchema = {
223
223
 
224
224
  // src/services/user/user.entity.ts
225
225
  var consultantInviteQuery = [
226
- "consultantId",
227
226
  "createdAt",
227
+ "token",
228
228
  "email",
229
229
  "expirationDate",
230
230
  "id",
@@ -966,8 +966,15 @@ var createUserSubscriptionService = (client) => ({
966
966
  }
967
967
  });
968
968
 
969
- // src/services/user/schemas/consultant-invite.ts
969
+ // src/services/user/schemas/consultant-invite.schema.ts
970
970
  var consultantInviteSchema = {
971
+ verifyConsultantInviteCode: (query) => `
972
+ mutation verifyConsultantInviteCode($code: String!, $email: String!) {
973
+ verifyConsultantInviteCode(code: $code, email: $email) {
974
+ ${query}
975
+ }
976
+ }
977
+ `,
971
978
  createConsultantInvite: (query) => `
972
979
  mutation createConsultantInvite($consultantInvite: ConsultantInviteInput!) {
973
980
  createConsultantInvite(consultantInvite: $consultantInvite) {
@@ -1007,6 +1014,7 @@ var consultantInviteSchema = {
1007
1014
  };
1008
1015
 
1009
1016
  // src/services/user/types/consultant-invite.type.ts
1017
+ var verifyConsultantInviteCodeResponseFields = ["success"];
1010
1018
  var getConsultantInviteResponseFields = ["consultantInvite"];
1011
1019
  var getConsultantInviteResponseNestedFields = {
1012
1020
  consultantInvite: consultantInviteQuery
@@ -1023,6 +1031,20 @@ var deleteConsultantInviteResponseFields = ["consultantInviteId"];
1023
1031
 
1024
1032
  // src/services/user/consultant-invite.service.ts
1025
1033
  var createConsultantInviteService = (client) => ({
1034
+ //verify consultant invite
1035
+ async verifyConsultantInviteCode(input, fetchFields, option) {
1036
+ var _a, _b;
1037
+ const res = await client.request(
1038
+ consultantInviteSchema.verifyConsultantInviteCode(
1039
+ gqlQueryStringBuilder(
1040
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : verifyConsultantInviteCodeResponseFields
1041
+ )
1042
+ ),
1043
+ input,
1044
+ option
1045
+ );
1046
+ return (_b = res.data) == null ? void 0 : _b.verifyConsultantInviteCode;
1047
+ },
1026
1048
  // create
1027
1049
  async createConsultantInvite(input, fetchFields, option) {
1028
1050
  var _a, _b, _c;