@visa-check-r/integrations 0.0.1 → 0.0.3

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
@@ -622,6 +622,7 @@ var checklistItemSchema = {
622
622
  };
623
623
 
624
624
  // src/services/checklist/checklist.entity.ts
625
+ var fileInfoQuery = ["name", "url", "mimeType", "size"];
625
626
  var checklistItemQuery = [
626
627
  "id",
627
628
  "title",
@@ -631,7 +632,8 @@ var checklistItemQuery = [
631
632
  "inputType",
632
633
  "category",
633
634
  "isRequired",
634
- "createdAt"
635
+ "createdAt",
636
+ "status"
635
637
  ];
636
638
  var visaProfileChecklistItemQuery = [
637
639
  "id",
@@ -639,7 +641,9 @@ var visaProfileChecklistItemQuery = [
639
641
  "checklistItemId",
640
642
  "value",
641
643
  "isApproved",
642
- "createdAt"
644
+ "createdAt",
645
+ "checklistItem",
646
+ "fileInfo"
643
647
  ];
644
648
 
645
649
  // src/services/checklist/types/checklist-item.type.ts
@@ -735,6 +739,13 @@ var createChecklistItemService = (client) => ({
735
739
 
736
740
  // src/services/checklist/schemas/visaprofile-checklist-item.schema.ts
737
741
  var visaProfileChecklistItemSchema = {
742
+ createVisaProfileChecklistItems: (query) => `
743
+ mutation createVisaProfileChecklistItems($visaProfileChecklistItems: [VisaProfileChecklistItemsInput]!) {
744
+ createVisaProfileChecklistItems(visaProfileChecklistItems: $visaProfileChecklistItems) {
745
+ ${query}
746
+ }
747
+ }
748
+ `,
738
749
  createVisaProfileChecklistItem: (query) => `
739
750
  mutation createVisaProfileChecklistItem($visaProfileChecklistItem: VisaProfileChecklistItemInput!) {
740
751
  createVisaProfileChecklistItem(visaProfileChecklistItem: $visaProfileChecklistItem) {
@@ -774,13 +785,26 @@ var visaProfileChecklistItemSchema = {
774
785
 
775
786
  // src/services/checklist/types/visaprofile-checklist-item.type.ts
776
787
  var getVisaProfileChecklistItemResponse = ["visaProfileChecklistItem"];
788
+ var _getVisaProfileChecklistItemResponseNestedFields = {
789
+ checklistItem: checklistItemQuery,
790
+ fileInfo: fileInfoQuery
791
+ };
777
792
  var getVisaProfileChecklistItemResponseNestedFields = {
793
+ ..._getVisaProfileChecklistItemResponseNestedFields,
778
794
  visaProfileChecklistItem: visaProfileChecklistItemQuery
779
795
  };
780
796
  var listVisaProfileChecklistItemResponse = [
781
797
  "visaProfileChecklistItems"
782
798
  ];
783
799
  var listVisaProfileChecklistItemResponseNestedFields = {
800
+ ..._getVisaProfileChecklistItemResponseNestedFields,
801
+ visaProfileChecklistItems: visaProfileChecklistItemQuery
802
+ };
803
+ var createVisaProfileChecklistItemsResponse = [
804
+ "visaProfileChecklistItems"
805
+ ];
806
+ var createVisaProfileChecklistItemsResponseNestedFields = {
807
+ ..._getVisaProfileChecklistItemResponseNestedFields,
784
808
  visaProfileChecklistItems: visaProfileChecklistItemQuery
785
809
  };
786
810
  var createVisaProfileChecklistItemResponse = getVisaProfileChecklistItemResponse;
@@ -819,6 +843,20 @@ var createVisaProfileChecklistItemService = (client) => ({
819
843
  );
820
844
  return (_c = res.data) == null ? void 0 : _c.updateVisaProfileChecklistItem;
821
845
  },
846
+ async createVisaProfileChecklistItems(input, fetchFields, option) {
847
+ var _a, _b, _c;
848
+ const res = await client.request(
849
+ visaProfileChecklistItemSchema.createVisaProfileChecklistItems(
850
+ gqlQueryStringBuilder(
851
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : createVisaProfileChecklistItemsResponse,
852
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : createVisaProfileChecklistItemsResponseNestedFields
853
+ )
854
+ ),
855
+ input,
856
+ option
857
+ );
858
+ return (_c = res.data) == null ? void 0 : _c.createVisaProfileChecklistItems;
859
+ },
822
860
  async createVisaProfileChecklistItem(input, fetchFields, option) {
823
861
  var _a, _b, _c;
824
862
  const res = await client.request(
@@ -1475,6 +1513,7 @@ exports.GraphQLClient = GraphQLClient;
1475
1513
  exports.NetworkError = NetworkError;
1476
1514
  exports.SdkError = SdkError;
1477
1515
  exports._getConsultantAssignmentResponseNestedFields = _getConsultantAssignmentResponseNestedFields;
1516
+ exports._getVisaProfileChecklistItemResponseNestedFields = _getVisaProfileChecklistItemResponseNestedFields;
1478
1517
  exports._getVisaProfileResponseNestedFields = _getVisaProfileResponseNestedFields;
1479
1518
  exports.compose = compose;
1480
1519
  exports.createAuthService = createAuthService;
@@ -1500,6 +1539,8 @@ exports.createVisaApplicationService = createVisaApplicationService;
1500
1539
  exports.createVisaProfileChecklistItemResponse = createVisaProfileChecklistItemResponse;
1501
1540
  exports.createVisaProfileChecklistItemResponseNestedFields = createVisaProfileChecklistItemResponseNestedFields;
1502
1541
  exports.createVisaProfileChecklistItemService = createVisaProfileChecklistItemService;
1542
+ exports.createVisaProfileChecklistItemsResponse = createVisaProfileChecklistItemsResponse;
1543
+ exports.createVisaProfileChecklistItemsResponseNestedFields = createVisaProfileChecklistItemsResponseNestedFields;
1503
1544
  exports.createVisaProfileResponse = createVisaProfileResponse;
1504
1545
  exports.createVisaProfileResponseNestedFields = createVisaProfileResponseNestedFields;
1505
1546
  exports.createVisaProfileReviewCommentResponseFields = createVisaProfileReviewCommentResponseFields;