@visa-check-r/integrations 0.0.53 → 0.0.55

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
@@ -336,7 +336,7 @@ var getUserCountResponse = [
336
336
  var getUserCountResponseNestedFields = {
337
337
  userCount: userCountQuery
338
338
  };
339
- var meResponseFields = ["user", "userSetting"];
339
+ var meResponseFields = ["user", "userSetting", "visaProfileCount"];
340
340
  var meResponseNestedFields = {
341
341
  user: userQuery,
342
342
  userSetting: userSettingQuery
@@ -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,9 +1837,16 @@ 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
- query getVisaProfileCount {
1819
- getVisaProfileCount {
1848
+ query getVisaProfileCount($visaProfile: VisaProfileInput!) {
1849
+ getVisaProfileCount(visaProfile: $visaProfile) {
1820
1850
  ${query}
1821
1851
  }
1822
1852
  }
@@ -1884,18 +1914,38 @@ var visaProfileSchema = {
1884
1914
 
1885
1915
  // src/services/profile/visa-profile.service.ts
1886
1916
  var createVisaProfileService = (client) => ({
1887
- async getVisaProfileCount(fetchFields, option) {
1888
- var _a, _b, _c;
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
+ },
1930
+ async getVisaProfileCount(input, fetchFields, option) {
1931
+ var _a, _b, _c, _d, _e;
1932
+ console.log(visaProfileSchema.getVisaProfileCount(
1933
+ gqlQueryStringBuilder(
1934
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getVisaProfileCountResponse,
1935
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getVisaProfileCountResponseNestedFields
1936
+ )
1937
+ ));
1889
1938
  const res = await client.request(
1890
1939
  visaProfileSchema.getVisaProfileCount(
1891
1940
  gqlQueryStringBuilder(
1892
- (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getVisaProfileCountResponse,
1893
- (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getVisaProfileCountResponseNestedFields
1941
+ (_c = fetchFields == null ? void 0 : fetchFields.root) != null ? _c : getVisaProfileCountResponse,
1942
+ (_d = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _d : getVisaProfileCountResponseNestedFields
1894
1943
  )
1895
1944
  ),
1945
+ input,
1896
1946
  option
1897
1947
  );
1898
- return (_c = res.data) == null ? void 0 : _c.getVisaProfileCount;
1948
+ return (_e = res.data) == null ? void 0 : _e.getVisaProfileCount;
1899
1949
  },
1900
1950
  // job
1901
1951
  async getJob(input, fetchFields, option) {
@@ -2635,6 +2685,7 @@ exports._getVisaProfileChecklistItemResponseNestedFields = _getVisaProfileCheckl
2635
2685
  exports._getVisaProfileResponseNestedFields = _getVisaProfileResponseNestedFields;
2636
2686
  exports._getVisaProfileReviewCommentResponseNestedFields = _getVisaProfileReviewCommentResponseNestedFields;
2637
2687
  exports.compose = compose;
2688
+ exports.contactUsResponseFields = contactUsResponseFields;
2638
2689
  exports.createActivityLogService = createActivityLogService;
2639
2690
  exports.createAuthService = createAuthService;
2640
2691
  exports.createCardObjectResponse = createCardObjectResponse;
@@ -2714,6 +2765,7 @@ exports.getVisaProfileChecklistItemResponse = getVisaProfileChecklistItemRespons
2714
2765
  exports.getVisaProfileChecklistItemResponseNestedFields = getVisaProfileChecklistItemResponseNestedFields;
2715
2766
  exports.getVisaProfileChecklistItemsByChecklistResponse = getVisaProfileChecklistItemsByChecklistResponse;
2716
2767
  exports.getVisaProfileChecklistItemsByChecklistResponseNestedFields = getVisaProfileChecklistItemsByChecklistResponseNestedFields;
2768
+ exports.getVisaProfileCountByFilterResponse = getVisaProfileCountByFilterResponse;
2717
2769
  exports.getVisaProfileCountResponse = getVisaProfileCountResponse;
2718
2770
  exports.getVisaProfileCountResponseNestedFields = getVisaProfileCountResponseNestedFields;
2719
2771
  exports.getVisaProfileResponse = getVisaProfileResponse;