@redneckz/wildless-cms-uni-blocks 0.14.662 → 0.14.664

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 (63) hide show
  1. package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -0
  2. package/bundle/bundle.umd.js +28 -10
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  5. package/dist/api/RetailAPI/updateUserTask.d.ts +5 -0
  6. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  7. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -3
  8. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  9. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
  10. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  11. package/dist/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  12. package/dist/components/CreditCardForm/getSixthStepData.js +21 -0
  13. package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -0
  14. package/dist/components/CreditForm/CreditFormStatusTracker.js +5 -3
  15. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  16. package/lib/api/RetailAPI/updateUserTask.d.ts +5 -0
  17. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  18. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -3
  19. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  20. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
  21. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  22. package/lib/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  23. package/lib/components/CreditCardForm/getSixthStepData.js +17 -0
  24. package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -0
  25. package/lib/components/CreditForm/CreditFormStatusTracker.js +5 -3
  26. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  27. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -0
  28. package/mobile/bundle/bundle.umd.js +28 -10
  29. package/mobile/bundle/bundle.umd.min.js +1 -1
  30. package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  31. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -0
  32. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  33. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -3
  34. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  35. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
  36. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  37. package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  38. package/mobile/dist/components/CreditCardForm/getSixthStepData.js +21 -0
  39. package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -0
  40. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +5 -3
  41. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  42. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -0
  43. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  44. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -3
  45. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  46. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -3
  47. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  48. package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +11 -0
  49. package/mobile/lib/components/CreditCardForm/getSixthStepData.js +17 -0
  50. package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -0
  51. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +5 -3
  52. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  53. package/mobile/src/api/RetailAPI/updateUserTask.ts +5 -0
  54. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +5 -3
  55. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
  56. package/mobile/src/components/CreditCardForm/getSixthStepData.ts +21 -0
  57. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +5 -3
  58. package/package.json +1 -1
  59. package/src/api/RetailAPI/updateUserTask.ts +5 -0
  60. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +5 -3
  61. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
  62. package/src/components/CreditCardForm/getSixthStepData.ts +21 -0
  63. package/src/components/CreditForm/CreditFormStatusTracker.tsx +5 -3
@@ -106,6 +106,11 @@ export declare type UpdateUserTaskBody = {
106
106
  office?: {
107
107
  id: string;
108
108
  };
109
+ courierDeliveryFlg?: boolean;
110
+ deliveryDate?: string;
111
+ deliveryTimeCd?: {
112
+ value: string;
113
+ };
109
114
  authorizedAgentId?: number;
110
115
  participants: Participant[];
111
116
  esiaAccountTypeCd?: {
@@ -6086,9 +6086,11 @@
6086
6086
  const [status, setStatus] = useState(STATUS_TYPE.process);
6087
6087
  const [taskId] = useLocalStorage('taskId');
6088
6088
  useEffect(() => {
6089
- for (const signalType of SIGNAL_TYPES$1) {
6090
- sendSignalToProcess({ signalType, taskId });
6091
- }
6089
+ (async () => {
6090
+ for (const signalType of SIGNAL_TYPES$1) {
6091
+ await sendSignalToProcess({ signalType, taskId });
6092
+ }
6093
+ })();
6092
6094
  const trackStatus = () => getTaskStatus({ taskId }).then((res) => {
6093
6095
  if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
6094
6096
  clearInterval(pullingInterval);
@@ -6331,6 +6333,21 @@
6331
6333
  };
6332
6334
  };
6333
6335
 
6336
+ const getDeliveryData = (formData) => {
6337
+ const { methodObtain, deliveryDate = '' } = formData;
6338
+ return {
6339
+ courierDeliveryFlg: methodObtain === 'courier',
6340
+ deliveryDate: formatDate(deliveryDate, true),
6341
+ deliveryTimeCd: { value: 'TIME_2' },
6342
+ };
6343
+ };
6344
+ const getSixthStepData = (formData) => {
6345
+ const { addressCourier } = formData;
6346
+ return {
6347
+ participantAddresses: getParticipantAddresses({ addressCourier }),
6348
+ };
6349
+ };
6350
+
6334
6351
  const getThirdStepData$1 = (formData) => {
6335
6352
  const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
6336
6353
  return {
@@ -6379,6 +6396,7 @@
6379
6396
  ...getCurrentStepData$1(step, formData),
6380
6397
  },
6381
6398
  ],
6399
+ ...getDeliveryData(formData),
6382
6400
  },
6383
6401
  };
6384
6402
  };
@@ -6395,9 +6413,7 @@
6395
6413
  case 4:
6396
6414
  return getFifthStepData(formData);
6397
6415
  case 5:
6398
- return {
6399
- //TODO: Сделать адаптер данных способа получения карты
6400
- };
6416
+ return getSixthStepData(formData);
6401
6417
  default:
6402
6418
  return {};
6403
6419
  }
@@ -6962,9 +6978,11 @@
6962
6978
  const [status, setStatus] = useState(STATUS_TYPE.process);
6963
6979
  const [taskId] = useLocalStorage('taskId');
6964
6980
  useEffect(() => {
6965
- for (const signalType of SIGNAL_TYPES) {
6966
- sendSignalToProcess({ signalType, taskId });
6967
- }
6981
+ (async () => {
6982
+ for (const signalType of SIGNAL_TYPES) {
6983
+ await sendSignalToProcess({ signalType, taskId });
6984
+ }
6985
+ })();
6968
6986
  const trackStatus = () => taskId &&
6969
6987
  getTaskStatus({ taskId }).then((res) => {
6970
6988
  if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
@@ -9899,7 +9917,7 @@
9899
9917
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
9900
9918
  });
9901
9919
 
9902
- const packageVersion = "0.14.661";
9920
+ const packageVersion = "0.14.663";
9903
9921
 
9904
9922
  exports.Blocks = Blocks;
9905
9923
  exports.ContentPage = ContentPage;