@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.cjs.js +24 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.esm.js +24 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -224,6 +224,7 @@ var userSchema = {
|
|
|
224
224
|
// src/services/user/user.entity.ts
|
|
225
225
|
var consultantInviteQuery = [
|
|
226
226
|
"createdAt",
|
|
227
|
+
"token",
|
|
227
228
|
"email",
|
|
228
229
|
"expirationDate",
|
|
229
230
|
"id",
|
|
@@ -965,8 +966,15 @@ var createUserSubscriptionService = (client) => ({
|
|
|
965
966
|
}
|
|
966
967
|
});
|
|
967
968
|
|
|
968
|
-
// src/services/user/schemas/consultant-invite.ts
|
|
969
|
+
// src/services/user/schemas/consultant-invite.schema.ts
|
|
969
970
|
var consultantInviteSchema = {
|
|
971
|
+
verifyConsultantInviteCode: (query) => `
|
|
972
|
+
mutation verifyConsultantInviteCode($code: String!, $email: String!) {
|
|
973
|
+
verifyConsultantInviteCode(code: $code, email: $email) {
|
|
974
|
+
${query}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
`,
|
|
970
978
|
createConsultantInvite: (query) => `
|
|
971
979
|
mutation createConsultantInvite($consultantInvite: ConsultantInviteInput!) {
|
|
972
980
|
createConsultantInvite(consultantInvite: $consultantInvite) {
|
|
@@ -1006,6 +1014,7 @@ var consultantInviteSchema = {
|
|
|
1006
1014
|
};
|
|
1007
1015
|
|
|
1008
1016
|
// src/services/user/types/consultant-invite.type.ts
|
|
1017
|
+
var verifyConsultantInviteCodeResponseFields = ["success"];
|
|
1009
1018
|
var getConsultantInviteResponseFields = ["consultantInvite"];
|
|
1010
1019
|
var getConsultantInviteResponseNestedFields = {
|
|
1011
1020
|
consultantInvite: consultantInviteQuery
|
|
@@ -1022,6 +1031,20 @@ var deleteConsultantInviteResponseFields = ["consultantInviteId"];
|
|
|
1022
1031
|
|
|
1023
1032
|
// src/services/user/consultant-invite.service.ts
|
|
1024
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
|
+
},
|
|
1025
1048
|
// create
|
|
1026
1049
|
async createConsultantInvite(input, fetchFields, option) {
|
|
1027
1050
|
var _a, _b, _c;
|