@redneckz/wildless-cms-uni-blocks 0.14.993 → 0.14.995

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.
Files changed (34) hide show
  1. package/bundle/bundle.umd.js +11 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/retail/api/uploadFile.d.ts +7 -2
  4. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +7 -1
  5. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  6. package/dist/retail/api/uploadFile.d.ts +7 -2
  7. package/dist/retail/api/uploadFile.js +3 -3
  8. package/dist/retail/api/uploadFile.js.map +1 -1
  9. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +7 -1
  10. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  11. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  12. package/lib/retail/api/uploadFile.d.ts +7 -2
  13. package/lib/retail/api/uploadFile.js +3 -3
  14. package/lib/retail/api/uploadFile.js.map +1 -1
  15. package/mobile/bundle/bundle.umd.js +11 -5
  16. package/mobile/bundle/bundle.umd.min.js +1 -1
  17. package/mobile/bundle/retail/api/uploadFile.d.ts +7 -2
  18. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +7 -1
  19. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  20. package/mobile/dist/retail/api/uploadFile.d.ts +7 -2
  21. package/mobile/dist/retail/api/uploadFile.js +3 -3
  22. package/mobile/dist/retail/api/uploadFile.js.map +1 -1
  23. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +7 -1
  24. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  25. package/mobile/lib/retail/api/uploadFile.d.ts +7 -2
  26. package/mobile/lib/retail/api/uploadFile.js +3 -3
  27. package/mobile/lib/retail/api/uploadFile.js.map +1 -1
  28. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +17 -1
  29. package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +9 -3
  30. package/mobile/src/retail/api/uploadFile.ts +9 -8
  31. package/package.json +1 -1
  32. package/src/components/ApplicationForm/ApplicationForm.example.json +17 -1
  33. package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +9 -3
  34. package/src/retail/api/uploadFile.ts +9 -8
@@ -7743,10 +7743,10 @@
7743
7743
  return { ...formState };
7744
7744
  };
7745
7745
 
7746
- const uploadFile = async (file, documentCategory, isPDF = false) => {
7746
+ const uploadFile = async (file, document) => {
7747
7747
  const fd = new FormData();
7748
- fd.append('documentCategory', documentCategory);
7749
- fd.append('file', file, `file.${isPDF ? 'pdf' : 'xml'}`);
7748
+ fd.append('documentCategory', document.category);
7749
+ fd.append('file', file, `${document.fileName}.${document.isPDF ? 'pdf' : 'xml'}`);
7750
7750
  return await globalThis
7751
7751
  ?.fetch?.(`/light-api-cash/v1/file`, {
7752
7752
  method: 'POST',
@@ -7839,31 +7839,37 @@
7839
7839
  const documents = [
7840
7840
  {
7841
7841
  file: esiaAdditionalDocument.pdfFileWorkbook,
7842
+ fileName: 'pdfFileWorkbook',
7842
7843
  category: 'CONFIRMING_INCOME_DOC',
7843
7844
  isPDF: true,
7844
7845
  },
7845
7846
  {
7846
7847
  file: esiaAdditionalDocument.pdfFilePayout,
7848
+ fileName: 'pdfFilePayout',
7847
7849
  category: 'CONFIRMING_EMPLOYMENT_DOC',
7848
7850
  isPDF: true,
7849
7851
  },
7850
7852
  {
7851
7853
  file: esiaAdditionalDocument.pdfFileSigPayout,
7854
+ fileName: 'pdfFileSigPayout',
7852
7855
  category: 'CONFIRMING_EMPLOYMENT_DOC',
7853
7856
  isPDF: true,
7854
7857
  },
7855
7858
  {
7856
7859
  file: esiaAdditionalDocument.xmlFilePayout,
7860
+ fileName: 'xmlFilePayout',
7857
7861
  category: 'CONFIRMING_EMPLOYMENT_DOC',
7858
7862
  isPDF: false,
7859
7863
  },
7860
7864
  {
7861
7865
  file: esiaAdditionalDocument.xmlFileSigPayout,
7866
+ fileName: 'xmlFileSigPayout',
7862
7867
  category: 'CONFIRMING_EMPLOYMENT_DOC',
7863
7868
  isPDF: false,
7864
7869
  },
7865
7870
  {
7866
7871
  file: esiaAdditionalDocument.xmlFileWorkbook,
7872
+ fileName: 'xmlFileWorkbook',
7867
7873
  category: 'CONFIRMING_INCOME_DOC',
7868
7874
  isPDF: false,
7869
7875
  },
@@ -7872,7 +7878,7 @@
7872
7878
  const contentType = doc.isPDF ? 'data:application/pdf;base64' : 'data:application/xml;base64';
7873
7879
  await fetch(`${contentType},${doc.file}`)
7874
7880
  .then((res) => res.blob())
7875
- .then((value) => uploadFile(value, doc.category, doc.isPDF))
7881
+ .then((value) => uploadFile(value, doc))
7876
7882
  .then((file) => files.push(file));
7877
7883
  }
7878
7884
  return files;
@@ -13736,7 +13742,7 @@
13736
13742
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
13737
13743
  });
13738
13744
 
13739
- const packageVersion = "0.14.992";
13745
+ const packageVersion = "0.14.994";
13740
13746
 
13741
13747
  exports.Blocks = Blocks;
13742
13748
  exports.ContentPage = ContentPage;