@redneckz/wildless-cms-uni-blocks 0.14.720 → 0.14.721
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/bundle/api/RetailAPI/updateUserTask.d.ts +9 -0
- package/bundle/bundle.umd.js +12 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +9 -0
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +11 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +9 -0
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +11 -0
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +9 -0
- package/mobile/bundle/bundle.umd.js +12 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +9 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +11 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +9 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +11 -0
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/src/api/RetailAPI/updateUserTask.ts +10 -0
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +15 -1
- package/package.json +1 -1
- package/src/api/RetailAPI/updateUserTask.ts +10 -0
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +15 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
2
3
|
declare type ParticipantAddress = {
|
|
3
4
|
addressType: {
|
|
4
5
|
key: 'REGISTRATION' | 'RESIDENTAL' | 'WORK';
|
|
@@ -98,6 +99,13 @@ export declare type Participant = {
|
|
|
98
99
|
classCard?: Option;
|
|
99
100
|
codeWord?: string;
|
|
100
101
|
};
|
|
102
|
+
export declare type MarketingInfo = {
|
|
103
|
+
utm_campaign?: Nullable<string>;
|
|
104
|
+
utm_medium?: Nullable<string>;
|
|
105
|
+
utm_source?: Nullable<string>;
|
|
106
|
+
utm_content?: Nullable<string>;
|
|
107
|
+
utm_term?: Nullable<string>;
|
|
108
|
+
};
|
|
101
109
|
export declare type UpdateUserTaskBody = {
|
|
102
110
|
sendToBank: boolean;
|
|
103
111
|
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
@@ -120,6 +128,7 @@ export declare type UpdateUserTaskBody = {
|
|
|
120
128
|
loanAmount?: number;
|
|
121
129
|
creditPeriod?: number;
|
|
122
130
|
paymentTypeCd?: PaymentType;
|
|
131
|
+
marketingInfo?: MarketingInfo;
|
|
123
132
|
};
|
|
124
133
|
};
|
|
125
134
|
export declare type CreateUserProfileResponse = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateUserTask.js","sourceRoot":"","sources":["../../../src/api/RetailAPI/updateUserTask.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"updateUserTask.js","sourceRoot":"","sources":["../../../src/api/RetailAPI/updateUserTask.ts"],"names":[],"mappings":";;AAEA,2CAAwC;AAuJjC,MAAM,cAAc,GAAG,CAAC,IAAwB,EAAE,EAAE,CACzD,IAAA,qBAAS,EAAC,2BAA2B,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;AADzC,QAAA,cAAc,kBAC2B"}
|
|
@@ -33,8 +33,19 @@ const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) =>
|
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
],
|
|
36
|
+
marketingInfo: getMarketingInfo(),
|
|
36
37
|
},
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
exports.getLeadFormTaskData = getLeadFormTaskData;
|
|
41
|
+
const getMarketingInfo = () => {
|
|
42
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
43
|
+
return {
|
|
44
|
+
utm_campaign: params.get('utm_campaign'),
|
|
45
|
+
utm_medium: params.get('utm_medium'),
|
|
46
|
+
utm_source: params.get('utm_source'),
|
|
47
|
+
utm_content: params.get('utm_content'),
|
|
48
|
+
utm_term: params.get('utm_term'),
|
|
49
|
+
};
|
|
50
|
+
};
|
|
40
51
|
//# sourceMappingURL=getLeadFormTaskData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLeadFormTaskData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getLeadFormTaskData.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getLeadFormTaskData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getLeadFormTaskData.ts"],"names":[],"mappings":";;AAEA,wEAAqE;AACrE,uDAAoD;AACpD,yDAAsD;AACtD,+CAA6D;AAUtD,MAAM,mBAAmB,GAAG,CAAC,EAClC,aAAa,EACb,MAAM,EACN,SAAS,EACT,QAAQ,GACiB,EAAsB,EAAE;IACjD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAC9E,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IAEtC,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE;YACJ,UAAU,EAAE,SAAS,CAAC,MAAM;YAC5B,EAAE,EAAE,MAAM;YACV,YAAY,EAAE;gBACZ;oBACE,SAAS,EAAE,eAAe,IAAI,IAAA,uBAAU,EAAC,eAAe,EAAE,IAAI,CAAC;oBAC/D,EAAE,EAAE,aAAa;oBACjB,OAAO,EAAE,UAAU;oBACnB,IAAI;oBACJ,OAAO;oBACP,OAAO,EAAE;wBACP,EAAE,EAAE,SAAS;qBACd;oBACD,mBAAmB,EAAE,IAAA,8BAAsB,EAAC;wBAC1C,KAAK,EAAE,KAAK,IAAI,IAAA,yBAAW,EAAC,KAAK,CAAC;wBAClC,KAAK;qBACN,CAAC;oBACF,MAAM,EAAE;wBACN,GAAG,EAAE,UAAU;wBACf,KAAK,EAAE,SAAS;qBACjB;iBACF;aACF;YACD,aAAa,EAAE,gBAAgB,EAAE;SAClC;KACF,CAAC;AACJ,CAAC,CAAC;AAtCW,QAAA,mBAAmB,uBAsC9B;AAEF,MAAM,gBAAgB,GAAG,GAAkB,EAAE;IAC3C,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEpF,OAAO;QACL,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;QACxC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;QACpC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;QACpC,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC;QACtC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;KACjC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
2
3
|
declare type ParticipantAddress = {
|
|
3
4
|
addressType: {
|
|
4
5
|
key: 'REGISTRATION' | 'RESIDENTAL' | 'WORK';
|
|
@@ -98,6 +99,13 @@ export declare type Participant = {
|
|
|
98
99
|
classCard?: Option;
|
|
99
100
|
codeWord?: string;
|
|
100
101
|
};
|
|
102
|
+
export declare type MarketingInfo = {
|
|
103
|
+
utm_campaign?: Nullable<string>;
|
|
104
|
+
utm_medium?: Nullable<string>;
|
|
105
|
+
utm_source?: Nullable<string>;
|
|
106
|
+
utm_content?: Nullable<string>;
|
|
107
|
+
utm_term?: Nullable<string>;
|
|
108
|
+
};
|
|
101
109
|
export declare type UpdateUserTaskBody = {
|
|
102
110
|
sendToBank: boolean;
|
|
103
111
|
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
@@ -120,6 +128,7 @@ export declare type UpdateUserTaskBody = {
|
|
|
120
128
|
loanAmount?: number;
|
|
121
129
|
creditPeriod?: number;
|
|
122
130
|
paymentTypeCd?: PaymentType;
|
|
131
|
+
marketingInfo?: MarketingInfo;
|
|
123
132
|
};
|
|
124
133
|
};
|
|
125
134
|
export declare type CreateUserProfileResponse = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateUserTask.js","sourceRoot":"","sources":["../../../src/api/RetailAPI/updateUserTask.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateUserTask.js","sourceRoot":"","sources":["../../../src/api/RetailAPI/updateUserTask.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAuJxC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAwB,EAAE,EAAE,CACzD,SAAS,CAAC,2BAA2B,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -31,7 +31,18 @@ export const getLeadFormTaskData = ({ participantId, taskId, profileId, formData
|
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
],
|
|
34
|
+
marketingInfo: getMarketingInfo(),
|
|
34
35
|
},
|
|
35
36
|
};
|
|
36
37
|
};
|
|
38
|
+
const getMarketingInfo = () => {
|
|
39
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
40
|
+
return {
|
|
41
|
+
utm_campaign: params.get('utm_campaign'),
|
|
42
|
+
utm_medium: params.get('utm_medium'),
|
|
43
|
+
utm_source: params.get('utm_source'),
|
|
44
|
+
utm_content: params.get('utm_content'),
|
|
45
|
+
utm_term: params.get('utm_term'),
|
|
46
|
+
};
|
|
47
|
+
};
|
|
37
48
|
//# sourceMappingURL=getLeadFormTaskData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLeadFormTaskData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getLeadFormTaskData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getLeadFormTaskData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getLeadFormTaskData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAU7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,aAAa,EACb,MAAM,EACN,SAAS,EACT,QAAQ,GACiB,EAAsB,EAAE;IACjD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAC9E,MAAM,SAAS,GAAG,iBAAiB,EAAE,CAAC;IAEtC,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE;YACJ,UAAU,EAAE,SAAS,CAAC,MAAM;YAC5B,EAAE,EAAE,MAAM;YACV,YAAY,EAAE;gBACZ;oBACE,SAAS,EAAE,eAAe,IAAI,UAAU,CAAC,eAAe,EAAE,IAAI,CAAC;oBAC/D,EAAE,EAAE,aAAa;oBACjB,OAAO,EAAE,UAAU;oBACnB,IAAI;oBACJ,OAAO;oBACP,OAAO,EAAE;wBACP,EAAE,EAAE,SAAS;qBACd;oBACD,mBAAmB,EAAE,sBAAsB,CAAC;wBAC1C,KAAK,EAAE,KAAK,IAAI,WAAW,CAAC,KAAK,CAAC;wBAClC,KAAK;qBACN,CAAC;oBACF,MAAM,EAAE;wBACN,GAAG,EAAE,UAAU;wBACf,KAAK,EAAE,SAAS;qBACjB;iBACF;aACF;YACD,aAAa,EAAE,gBAAgB,EAAE;SAClC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,GAAkB,EAAE;IAC3C,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,kBAAkB,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEpF,OAAO;QACL,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;QACxC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;QACpC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;QACpC,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC;QACtC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;KACjC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
2
3
|
import { doRequest } from './doRequest';
|
|
3
4
|
|
|
4
5
|
type ParticipantAddress = {
|
|
@@ -110,6 +111,14 @@ export type Participant = {
|
|
|
110
111
|
codeWord?: string;
|
|
111
112
|
};
|
|
112
113
|
|
|
114
|
+
export type MarketingInfo = {
|
|
115
|
+
utm_campaign?: Nullable<string>;
|
|
116
|
+
utm_medium?: Nullable<string>;
|
|
117
|
+
utm_source?: Nullable<string>;
|
|
118
|
+
utm_content?: Nullable<string>;
|
|
119
|
+
utm_term?: Nullable<string>;
|
|
120
|
+
};
|
|
121
|
+
|
|
113
122
|
export type UpdateUserTaskBody = {
|
|
114
123
|
sendToBank: boolean;
|
|
115
124
|
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
@@ -132,6 +141,7 @@ export type UpdateUserTaskBody = {
|
|
|
132
141
|
loanAmount?: number;
|
|
133
142
|
creditPeriod?: number;
|
|
134
143
|
paymentTypeCd?: PaymentType;
|
|
144
|
+
marketingInfo?: MarketingInfo;
|
|
135
145
|
};
|
|
136
146
|
};
|
|
137
147
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { type MarketingInfo, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
3
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
4
|
import { formatDate } from '../../utils/formatDate';
|
|
4
5
|
import { formatPhone } from '../../utils/formatPhone';
|
|
@@ -47,6 +48,19 @@ export const getLeadFormTaskData = ({
|
|
|
47
48
|
},
|
|
48
49
|
},
|
|
49
50
|
],
|
|
51
|
+
marketingInfo: getMarketingInfo(),
|
|
50
52
|
},
|
|
51
53
|
};
|
|
52
54
|
};
|
|
55
|
+
|
|
56
|
+
const getMarketingInfo = (): MarketingInfo => {
|
|
57
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
utm_campaign: params.get('utm_campaign'),
|
|
61
|
+
utm_medium: params.get('utm_medium'),
|
|
62
|
+
utm_source: params.get('utm_source'),
|
|
63
|
+
utm_content: params.get('utm_content'),
|
|
64
|
+
utm_term: params.get('utm_term'),
|
|
65
|
+
};
|
|
66
|
+
};
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
2
3
|
import { doRequest } from './doRequest';
|
|
3
4
|
|
|
4
5
|
type ParticipantAddress = {
|
|
@@ -110,6 +111,14 @@ export type Participant = {
|
|
|
110
111
|
codeWord?: string;
|
|
111
112
|
};
|
|
112
113
|
|
|
114
|
+
export type MarketingInfo = {
|
|
115
|
+
utm_campaign?: Nullable<string>;
|
|
116
|
+
utm_medium?: Nullable<string>;
|
|
117
|
+
utm_source?: Nullable<string>;
|
|
118
|
+
utm_content?: Nullable<string>;
|
|
119
|
+
utm_term?: Nullable<string>;
|
|
120
|
+
};
|
|
121
|
+
|
|
113
122
|
export type UpdateUserTaskBody = {
|
|
114
123
|
sendToBank: boolean;
|
|
115
124
|
taskKind: 'SHORT' | 'FULL' | 'UNITED';
|
|
@@ -132,6 +141,7 @@ export type UpdateUserTaskBody = {
|
|
|
132
141
|
loanAmount?: number;
|
|
133
142
|
creditPeriod?: number;
|
|
134
143
|
paymentTypeCd?: PaymentType;
|
|
144
|
+
marketingInfo?: MarketingInfo;
|
|
135
145
|
};
|
|
136
146
|
};
|
|
137
147
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { type MarketingInfo, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
3
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
4
|
import { formatDate } from '../../utils/formatDate';
|
|
4
5
|
import { formatPhone } from '../../utils/formatPhone';
|
|
@@ -47,6 +48,19 @@ export const getLeadFormTaskData = ({
|
|
|
47
48
|
},
|
|
48
49
|
},
|
|
49
50
|
],
|
|
51
|
+
marketingInfo: getMarketingInfo(),
|
|
50
52
|
},
|
|
51
53
|
};
|
|
52
54
|
};
|
|
55
|
+
|
|
56
|
+
const getMarketingInfo = (): MarketingInfo => {
|
|
57
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
58
|
+
|
|
59
|
+
return {
|
|
60
|
+
utm_campaign: params.get('utm_campaign'),
|
|
61
|
+
utm_medium: params.get('utm_medium'),
|
|
62
|
+
utm_source: params.get('utm_source'),
|
|
63
|
+
utm_content: params.get('utm_content'),
|
|
64
|
+
utm_term: params.get('utm_term'),
|
|
65
|
+
};
|
|
66
|
+
};
|