@visa-check-r/integrations 0.0.53 → 0.0.54

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
@@ -472,7 +472,13 @@ var createUserService = (client) => ({
472
472
 
473
473
  // src/services/user/schemas/auth.schema.ts
474
474
  var authSchema = {
475
- // sendOTP(email: String!)
475
+ contactUs: (query) => `
476
+ mutation contactUs($contactMessage: ContactMessageInput!) {
477
+ contactUs(contactMessage: $contactMessage) {
478
+ ${query}
479
+ }
480
+ }
481
+ `,
476
482
  sendOTP: (query) => `
477
483
  mutation sendOTP($email: String!) {
478
484
  sendOTP(email: $email) {
@@ -519,6 +525,7 @@ var authSchema = {
519
525
  };
520
526
 
521
527
  // src/services/user/types/auth.type.ts
528
+ var contactUsResponseFields = ["success"];
522
529
  var loginResponseFields = ["accessToken", "userId"];
523
530
  var signUpResponseFields = loginResponseFields;
524
531
  var sendOTPResponseFields = ["successful", "otp"];
@@ -528,6 +535,19 @@ var updatePasswordResponseFields = ["success"];
528
535
 
529
536
  // src/services/user/auth.service.ts
530
537
  var createAuthService = (client) => ({
538
+ async contactUs(input, fetchFields, option) {
539
+ var _a, _b;
540
+ const res = await client.request(
541
+ authSchema.contactUs(
542
+ gqlQueryStringBuilder(
543
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : contactUsResponseFields
544
+ )
545
+ ),
546
+ input,
547
+ option
548
+ );
549
+ return (_b = res.data) == null ? void 0 : _b.contactUs;
550
+ },
531
551
  async changePassword(input, fetchFields, option) {
532
552
  var _a, _b;
533
553
  const res = await client.request(
@@ -1686,6 +1706,9 @@ var visaProfileReviewCommentQuery = [
1686
1706
  ];
1687
1707
 
1688
1708
  // src/services/profile/types/visa-profile.type.ts
1709
+ var getVisaProfileCountByFilterResponse = [
1710
+ "count"
1711
+ ];
1689
1712
  var getVisaProfileCountResponse = ["visaProfileCount"];
1690
1713
  var getVisaProfileCountResponseNestedFields = {
1691
1714
  visaProfileCount: visaProfileCountQuery
@@ -1814,6 +1837,13 @@ var deleteVisaApplicationResponseFields = ["visaApplicationId"];
1814
1837
 
1815
1838
  // src/services/profile/schemas/visa-profile.schema.ts
1816
1839
  var visaProfileSchema = {
1840
+ getVisaProfileCountByFilter: (query) => `
1841
+ query getVisaProfileCountByFilter($visaProfile: VisaProfileInput!) {
1842
+ getVisaProfileCountByFilter(visaProfile: $visaProfile) {
1843
+ ${query}
1844
+ }
1845
+ }
1846
+ `,
1817
1847
  getVisaProfileCount: (query) => `
1818
1848
  query getVisaProfileCount {
1819
1849
  getVisaProfileCount {
@@ -1884,6 +1914,19 @@ var visaProfileSchema = {
1884
1914
 
1885
1915
  // src/services/profile/visa-profile.service.ts
1886
1916
  var createVisaProfileService = (client) => ({
1917
+ async getVisaProfileCountByFilter(input, fetchFields, option) {
1918
+ var _a, _b;
1919
+ const res = await client.request(
1920
+ visaProfileSchema.getVisaProfileCountByFilter(
1921
+ gqlQueryStringBuilder(
1922
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getVisaProfileCountByFilterResponse
1923
+ )
1924
+ ),
1925
+ input,
1926
+ option
1927
+ );
1928
+ return (_b = res.data) == null ? void 0 : _b.getVisaProfileCountByFilter;
1929
+ },
1887
1930
  async getVisaProfileCount(fetchFields, option) {
1888
1931
  var _a, _b, _c;
1889
1932
  const res = await client.request(
@@ -2635,6 +2678,7 @@ exports._getVisaProfileChecklistItemResponseNestedFields = _getVisaProfileCheckl
2635
2678
  exports._getVisaProfileResponseNestedFields = _getVisaProfileResponseNestedFields;
2636
2679
  exports._getVisaProfileReviewCommentResponseNestedFields = _getVisaProfileReviewCommentResponseNestedFields;
2637
2680
  exports.compose = compose;
2681
+ exports.contactUsResponseFields = contactUsResponseFields;
2638
2682
  exports.createActivityLogService = createActivityLogService;
2639
2683
  exports.createAuthService = createAuthService;
2640
2684
  exports.createCardObjectResponse = createCardObjectResponse;
@@ -2714,6 +2758,7 @@ exports.getVisaProfileChecklistItemResponse = getVisaProfileChecklistItemRespons
2714
2758
  exports.getVisaProfileChecklistItemResponseNestedFields = getVisaProfileChecklistItemResponseNestedFields;
2715
2759
  exports.getVisaProfileChecklistItemsByChecklistResponse = getVisaProfileChecklistItemsByChecklistResponse;
2716
2760
  exports.getVisaProfileChecklistItemsByChecklistResponseNestedFields = getVisaProfileChecklistItemsByChecklistResponseNestedFields;
2761
+ exports.getVisaProfileCountByFilterResponse = getVisaProfileCountByFilterResponse;
2717
2762
  exports.getVisaProfileCountResponse = getVisaProfileCountResponse;
2718
2763
  exports.getVisaProfileCountResponseNestedFields = getVisaProfileCountResponseNestedFields;
2719
2764
  exports.getVisaProfileResponse = getVisaProfileResponse;