@visa-check-r/integrations 0.0.17 → 0.0.19

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
@@ -222,6 +222,14 @@ var userSchema = {
222
222
  };
223
223
 
224
224
  // src/services/user/user.entity.ts
225
+ var consultantInviteQuery = [
226
+ "consultantId",
227
+ "createdAt",
228
+ "email",
229
+ "expirationDate",
230
+ "id",
231
+ "updatedAt"
232
+ ];
225
233
  var subscriptionQuery = [
226
234
  "createdAt",
227
235
  "description",
@@ -958,6 +966,139 @@ var createUserSubscriptionService = (client) => ({
958
966
  }
959
967
  });
960
968
 
969
+ // src/services/user/schemas/consultant-invite.ts
970
+ var consultantInviteSchema = {
971
+ createConsultantInvite: (query) => `
972
+ mutation createConsultantInvite($consultantInvite: ConsultantInviteInput!) {
973
+ createConsultantInvite(consultantInvite: $consultantInvite) {
974
+ ${query}
975
+ }
976
+ }
977
+ `,
978
+ updateConsultantInvite: (query) => `
979
+ mutation updateConsultantInvite($consultantInviteId: String!, $consultantInvite: ConsultantInviteInput!) {
980
+ updateConsultantInvite(consultantInviteId: $consultantInviteId, consultantInvite: $consultantInvite) {
981
+ ${query}
982
+ }
983
+ }
984
+ `,
985
+ removeConsultantInvite: (query) => `
986
+ mutation removeConsultantInvite($consultantInviteId: String!) {
987
+ removeConsultantInvite(consultantInviteId: $consultantInviteId) {
988
+ ${query}
989
+ }
990
+ }
991
+ `,
992
+ // get consultantInvite (consultantInvite)
993
+ getConsultantInvite: (query) => `
994
+ query getConsultantInvite($consultantInvite: ConsultantInviteInput!) {
995
+ getConsultantInvite(consultantInvite: $consultantInvite) {
996
+ ${query}
997
+ }
998
+ }
999
+ `,
1000
+ listConsultantInvites: (query) => `
1001
+ query listConsultantInvites($search: String, $consultantInviteIds: [String], $consultantInvite: ConsultantInviteInput, $limit: Int!, $skip: Int!) {
1002
+ listConsultantInvites(search: $search, consultantInviteIds: $consultantInviteIds, consultantInvite: $consultantInvite, limit: $limit, skip: $skip) {
1003
+ ${query}
1004
+ }
1005
+ }
1006
+ `
1007
+ };
1008
+
1009
+ // src/services/user/types/consultant-invite.type.ts
1010
+ var getConsultantInviteResponseFields = ["consultantInvite"];
1011
+ var getConsultantInviteResponseNestedFields = {
1012
+ consultantInvite: consultantInviteQuery
1013
+ };
1014
+ var listConsultantInvitesResponseFields = ["consultantInvites", "total"];
1015
+ var listConsultantInvitesResponseNestedFields = {
1016
+ consultantInvites: consultantInviteQuery
1017
+ };
1018
+ var createConsultantInviteResponseFields = getConsultantInviteResponseFields;
1019
+ var createConsultantInviteResponseNestedFields = getConsultantInviteResponseNestedFields;
1020
+ var updateConsultantInviteResponseFields = getConsultantInviteResponseFields;
1021
+ var updateConsultantInviteResponseNestedFields = getConsultantInviteResponseNestedFields;
1022
+ var deleteConsultantInviteResponseFields = ["consultantInviteId"];
1023
+
1024
+ // src/services/user/consultant-invite.service.ts
1025
+ var createConsultantInviteService = (client) => ({
1026
+ // create
1027
+ async createConsultantInvite(input, fetchFields, option) {
1028
+ var _a, _b, _c;
1029
+ const res = await client.request(
1030
+ consultantInviteSchema.createConsultantInvite(
1031
+ gqlQueryStringBuilder(
1032
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : createConsultantInviteResponseFields,
1033
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : createConsultantInviteResponseNestedFields
1034
+ )
1035
+ ),
1036
+ input,
1037
+ option
1038
+ );
1039
+ return (_c = res.data) == null ? void 0 : _c.createConsultantInvite;
1040
+ },
1041
+ // update
1042
+ async updateConsultantInvite(input, fetchFields, option) {
1043
+ var _a, _b, _c;
1044
+ const res = await client.request(
1045
+ consultantInviteSchema.updateConsultantInvite(
1046
+ gqlQueryStringBuilder(
1047
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : updateConsultantInviteResponseFields,
1048
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : updateConsultantInviteResponseNestedFields
1049
+ )
1050
+ ),
1051
+ input,
1052
+ option
1053
+ );
1054
+ return (_c = res.data) == null ? void 0 : _c.updateConsultantInvite;
1055
+ },
1056
+ // remove
1057
+ async removeConsultantInvite(input, fetchFields, option) {
1058
+ var _a, _b;
1059
+ const res = await client.request(
1060
+ consultantInviteSchema.removeConsultantInvite(
1061
+ gqlQueryStringBuilder(
1062
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : deleteConsultantInviteResponseFields
1063
+ )
1064
+ ),
1065
+ input,
1066
+ option
1067
+ );
1068
+ return (_b = res.data) == null ? void 0 : _b.removeConsultantInvite;
1069
+ },
1070
+ // get subscription
1071
+ async getConsultantInvite(input, fetchFields, option) {
1072
+ var _a, _b, _c;
1073
+ const res = await client.request(
1074
+ consultantInviteSchema.getConsultantInvite(
1075
+ gqlQueryStringBuilder(
1076
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getConsultantInviteResponseFields,
1077
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getConsultantInviteResponseNestedFields
1078
+ )
1079
+ ),
1080
+ input,
1081
+ option
1082
+ );
1083
+ return (_c = res.data) == null ? void 0 : _c.getConsultantInvite;
1084
+ },
1085
+ // list subscription
1086
+ async listConsultantInvites(input, fetchFields, option) {
1087
+ var _a, _b, _c;
1088
+ const res = await client.request(
1089
+ consultantInviteSchema.listConsultantInvites(
1090
+ gqlQueryStringBuilder(
1091
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : listConsultantInvitesResponseFields,
1092
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : listConsultantInvitesResponseNestedFields
1093
+ )
1094
+ ),
1095
+ input,
1096
+ option
1097
+ );
1098
+ return (_c = res.data) == null ? void 0 : _c.listConsultantInvites;
1099
+ }
1100
+ });
1101
+
961
1102
  // src/services/checklist/schemas/checklist-item.schema.ts
962
1103
  var checklistItemSchema = {
963
1104
  getChecklistItem: (query) => `
@@ -2059,6 +2200,7 @@ exports.createChecklistItemService = createChecklistItemService;
2059
2200
  exports.createConsultantAssignmentResponseFields = createConsultantAssignmentResponseFields;
2060
2201
  exports.createConsultantAssignmentResponseNestedFields = createConsultantAssignmentResponseNestedFields;
2061
2202
  exports.createConsultantAssignmentService = createConsultantAssignmentService;
2203
+ exports.createConsultantInviteService = createConsultantInviteService;
2062
2204
  exports.createReadinessScoreReviewResponseFields = createReadinessScoreReviewResponseFields;
2063
2205
  exports.createReadinessScoreReviewResponseNestedFields = createReadinessScoreReviewResponseNestedFields;
2064
2206
  exports.createReadinessScoreReviewService = createReadinessScoreReviewService;