@redneckz/wildless-cms-uni-blocks 0.14.1000 → 0.14.1001
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/LeadServiceAPI.d.ts +2 -1
- package/bundle/bundle.umd.js +9 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/api/LeadServiceAPI.d.ts +2 -1
- package/dist/api/LeadServiceAPI.js +3 -3
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/components/ApplicationForm/constants.js +5 -1
- package/dist/components/ApplicationForm/constants.js.map +1 -1
- package/lib/api/LeadServiceAPI.d.ts +2 -1
- package/lib/api/LeadServiceAPI.js +3 -3
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/lib/components/ApplicationForm/constants.js +5 -1
- package/lib/components/ApplicationForm/constants.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/mobile/bundle/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +9 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.js +3 -3
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/constants.js +5 -1
- package/mobile/dist/components/ApplicationForm/constants.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/lib/api/LeadServiceAPI.js +3 -3
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/constants.js +5 -1
- package/mobile/lib/components/ApplicationForm/constants.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +4 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
- package/mobile/src/components/ApplicationForm/constants.ts +5 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +4 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
- package/src/components/ApplicationForm/constants.ts +5 -1
|
@@ -39,7 +39,7 @@ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & Fil
|
|
|
39
39
|
customName?: string;
|
|
40
40
|
};
|
|
41
41
|
/** @hidden */
|
|
42
|
-
export declare type EndpointType = 'lead' | 'initcorporatelead' | 'sendcorporatelead' | 'callback' | 'practice' | 'internship';
|
|
42
|
+
export declare type EndpointType = 'lead' | 'initcorporatelead' | 'confirmCorporateLead' | 'sendcorporatelead' | 'callback' | 'practice' | 'internship';
|
|
43
43
|
/**
|
|
44
44
|
* @title Секция полей ввода
|
|
45
45
|
*/
|
|
@@ -20,6 +20,7 @@ export declare type CheckCodeProps = {
|
|
|
20
20
|
code: string;
|
|
21
21
|
body: LeadRequest;
|
|
22
22
|
router: Router;
|
|
23
|
+
endpoint?: EndpointType;
|
|
23
24
|
};
|
|
24
25
|
declare type CheckCodeResponse = {
|
|
25
26
|
errorCode?: string;
|
|
@@ -38,7 +39,7 @@ export declare type sendProps = {
|
|
|
38
39
|
export declare function LeadServiceAPI(): {
|
|
39
40
|
send: ({ body, router, endpoint }: sendProps) => Promise<any>;
|
|
40
41
|
sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
|
|
41
|
-
checkCode: ({ reqId, code, body, router, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
|
+
checkCode: ({ reqId, code, body, router, endpoint, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
43
|
sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
|
|
43
44
|
};
|
|
44
45
|
export {};
|
|
@@ -39,14 +39,14 @@ function LeadServiceAPI() {
|
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
async function checkCode({ reqId, code, body, router, }) {
|
|
42
|
+
async function checkCode({ reqId, code, body, router, endpoint = 'confirmCorporateLead', }) {
|
|
43
43
|
const submitBody = {
|
|
44
44
|
requestId: reqId,
|
|
45
45
|
confimationCode: code,
|
|
46
|
-
leadRequest: (0, getSubmitBody_1.getSubmitBody)({ body, router }),
|
|
46
|
+
leadRequest: (0, getSubmitBody_1.getSubmitBody)({ body, endpoint, router }),
|
|
47
47
|
};
|
|
48
48
|
try {
|
|
49
|
-
const response = await LeadServiceFetch(`${apiBaseUrl_1.API_BASE_URI}
|
|
49
|
+
const response = await LeadServiceFetch(`${apiBaseUrl_1.API_BASE_URI}/${endpoint}`, submitBody);
|
|
50
50
|
return await response.json();
|
|
51
51
|
}
|
|
52
52
|
catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AAGA,sDAA6D;AAC7D,6CAA4C;AAC5C,mDAA8D;
|
|
1
|
+
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":";;AAGA,sDAA6D;AAC7D,6CAA4C;AAC5C,mDAA8D;AAkD9D,kDAAkD;AAClD,SAAgB,cAAc;IAC5B,KAAK,UAAU,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAa;QACvD,MAAM,kBAAkB,GAAG,QAAQ,IAAI,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,GAAG,GAAG,GAAG,yBAAY,IAAI,kBAAkB,EAAE,CAAC;QAEpD,MAAM,UAAU,GAAG,IA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G,IAAI;QACP,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK;QACtD,cAAc,EAAE,IAAA,mCAAqB,GAAE;KACxC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,QAAsB,EAAE,IAAiB,EAAE,EAAE;IAChE,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAElC,IAAI,QAAQ,KAAK,MAAM,IAAI,gBAAgB,KAAK,uBAAuB,EAAE;QACvE,OAAO,MAAM,CAAC;KACf;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -39,7 +39,7 @@ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & Fil
|
|
|
39
39
|
customName?: string;
|
|
40
40
|
};
|
|
41
41
|
/** @hidden */
|
|
42
|
-
export declare type EndpointType = 'lead' | 'initcorporatelead' | 'sendcorporatelead' | 'callback' | 'practice' | 'internship';
|
|
42
|
+
export declare type EndpointType = 'lead' | 'initcorporatelead' | 'confirmCorporateLead' | 'sendcorporatelead' | 'callback' | 'practice' | 'internship';
|
|
43
43
|
/**
|
|
44
44
|
* @title Секция полей ввода
|
|
45
45
|
*/
|
|
@@ -18,7 +18,11 @@ exports.ENDPOINT_MAPPING = {
|
|
|
18
18
|
isNaturalEndpoint: true,
|
|
19
19
|
},
|
|
20
20
|
initcorporatelead: {
|
|
21
|
-
withTypeForm:
|
|
21
|
+
withTypeForm: true,
|
|
22
|
+
isNaturalEndpoint: false,
|
|
23
|
+
},
|
|
24
|
+
confirmCorporateLead: {
|
|
25
|
+
withTypeForm: true,
|
|
22
26
|
isNaturalEndpoint: false,
|
|
23
27
|
},
|
|
24
28
|
callback: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/constants.ts"],"names":[],"mappings":";;AAOa,QAAA,gBAAgB,GAAuC;IAClE,IAAI,EAAE;QACJ,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;KACxB;IACD,iBAAiB,EAAE;QACjB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;KACzB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;IACD,UAAU,EAAE;QACV,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;IACD,iBAAiB,EAAE;QACjB,YAAY,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/constants.ts"],"names":[],"mappings":";;AAOa,QAAA,gBAAgB,GAAuC;IAClE,IAAI,EAAE;QACJ,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;KACxB;IACD,iBAAiB,EAAE;QACjB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;KACzB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;IACD,UAAU,EAAE;QACV,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;IACD,iBAAiB,EAAE;QACjB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;KACzB;IACD,oBAAoB,EAAE;QACpB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;KACzB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;CACF,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare type CheckCodeProps = {
|
|
|
20
20
|
code: string;
|
|
21
21
|
body: LeadRequest;
|
|
22
22
|
router: Router;
|
|
23
|
+
endpoint?: EndpointType;
|
|
23
24
|
};
|
|
24
25
|
declare type CheckCodeResponse = {
|
|
25
26
|
errorCode?: string;
|
|
@@ -38,7 +39,7 @@ export declare type sendProps = {
|
|
|
38
39
|
export declare function LeadServiceAPI(): {
|
|
39
40
|
send: ({ body, router, endpoint }: sendProps) => Promise<any>;
|
|
40
41
|
sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
|
|
41
|
-
checkCode: ({ reqId, code, body, router, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
|
+
checkCode: ({ reqId, code, body, router, endpoint, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
43
|
sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
|
|
43
44
|
};
|
|
44
45
|
export {};
|
|
@@ -37,14 +37,14 @@ export function LeadServiceAPI() {
|
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
async function checkCode({ reqId, code, body, router, }) {
|
|
40
|
+
async function checkCode({ reqId, code, body, router, endpoint = 'confirmCorporateLead', }) {
|
|
41
41
|
const submitBody = {
|
|
42
42
|
requestId: reqId,
|
|
43
43
|
confimationCode: code,
|
|
44
|
-
leadRequest: getSubmitBody({ body, router }),
|
|
44
|
+
leadRequest: getSubmitBody({ body, endpoint, router }),
|
|
45
45
|
};
|
|
46
46
|
try {
|
|
47
|
-
const response = await LeadServiceFetch(`${API_BASE_URI}
|
|
47
|
+
const response = await LeadServiceFetch(`${API_BASE_URI}/${endpoint}`, submitBody);
|
|
48
48
|
return await response.json();
|
|
49
49
|
}
|
|
50
50
|
catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeadServiceAPI.js","sourceRoot":"","sources":["../../src/api/LeadServiceAPI.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Le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;KACrB,CAAC;AACJ,CAAC;AAED,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,UAAsB,EAAE,EAAE,CAC/D,KAAK,CAAC,GAAG,EAAE;IACT,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;IAC/C,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;CACjC,CAAC,CAAC;AAEL,MAAM,2BAA2B,GAAG,CAAC,UAAgC,EAAc,EAAE;IACnF,6DAA6D;IAC7D,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAC;IAEvE,OAAO;QACL,GAAG,IAAI;QACP,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK;QACtD,cAAc,EAAE,qBAAqB,EAAE;KACxC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,QAAsB,EAAE,IAAiB,EAAE,EAAE;IAChE,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;IAElC,IAAI,QAAQ,KAAK,MAAM,IAAI,gBAAgB,KAAK,uBAAuB,EAAE;QACvE,OAAO,MAAM,CAAC;KACf;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -39,7 +39,7 @@ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & Fil
|
|
|
39
39
|
customName?: string;
|
|
40
40
|
};
|
|
41
41
|
/** @hidden */
|
|
42
|
-
export declare type EndpointType = 'lead' | 'initcorporatelead' | 'sendcorporatelead' | 'callback' | 'practice' | 'internship';
|
|
42
|
+
export declare type EndpointType = 'lead' | 'initcorporatelead' | 'confirmCorporateLead' | 'sendcorporatelead' | 'callback' | 'practice' | 'internship';
|
|
43
43
|
/**
|
|
44
44
|
* @title Секция полей ввода
|
|
45
45
|
*/
|
|
@@ -16,7 +16,11 @@ export const ENDPOINT_MAPPING = {
|
|
|
16
16
|
isNaturalEndpoint: true,
|
|
17
17
|
},
|
|
18
18
|
initcorporatelead: {
|
|
19
|
-
withTypeForm:
|
|
19
|
+
withTypeForm: true,
|
|
20
|
+
isNaturalEndpoint: false,
|
|
21
|
+
},
|
|
22
|
+
confirmCorporateLead: {
|
|
23
|
+
withTypeForm: true,
|
|
20
24
|
isNaturalEndpoint: false,
|
|
21
25
|
},
|
|
22
26
|
callback: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/constants.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,gBAAgB,GAAuC;IAClE,IAAI,EAAE;QACJ,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;KACxB;IACD,iBAAiB,EAAE;QACjB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;KACzB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;IACD,UAAU,EAAE;QACV,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;IACD,iBAAiB,EAAE;QACjB,YAAY,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/constants.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,gBAAgB,GAAuC;IAClE,IAAI,EAAE;QACJ,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,IAAI;KACxB;IACD,iBAAiB,EAAE;QACjB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;KACzB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;IACD,UAAU,EAAE;QACV,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;IACD,iBAAiB,EAAE;QACjB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;KACzB;IACD,oBAAoB,EAAE;QACpB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;KACzB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,IAAI;KACxB;CACF,CAAC"}
|
|
@@ -25,6 +25,7 @@ export type CheckCodeProps = {
|
|
|
25
25
|
code: string;
|
|
26
26
|
body: LeadRequest;
|
|
27
27
|
router: Router;
|
|
28
|
+
endpoint?: EndpointType;
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
type CheckCodeResponse = {
|
|
@@ -102,14 +103,15 @@ export function LeadServiceAPI() {
|
|
|
102
103
|
code,
|
|
103
104
|
body,
|
|
104
105
|
router,
|
|
106
|
+
endpoint = 'confirmCorporateLead',
|
|
105
107
|
}: CheckCodeProps): Promise<CheckCodeResponse> {
|
|
106
108
|
const submitBody = {
|
|
107
109
|
requestId: reqId,
|
|
108
110
|
confimationCode: code, // не исправлять опечатку!
|
|
109
|
-
leadRequest: getSubmitBody({ body, router }),
|
|
111
|
+
leadRequest: getSubmitBody({ body, endpoint, router }),
|
|
110
112
|
};
|
|
111
113
|
try {
|
|
112
|
-
const response = await LeadServiceFetch(`${API_BASE_URI}
|
|
114
|
+
const response = await LeadServiceFetch(`${API_BASE_URI}/${endpoint}`, submitBody);
|
|
113
115
|
|
|
114
116
|
return await response.json();
|
|
115
117
|
} catch (e) {
|
|
@@ -23,7 +23,11 @@ export const ENDPOINT_MAPPING: Record<EndpointType, EndpointInfo> = {
|
|
|
23
23
|
isNaturalEndpoint: true,
|
|
24
24
|
},
|
|
25
25
|
initcorporatelead: {
|
|
26
|
-
withTypeForm:
|
|
26
|
+
withTypeForm: true,
|
|
27
|
+
isNaturalEndpoint: false,
|
|
28
|
+
},
|
|
29
|
+
confirmCorporateLead: {
|
|
30
|
+
withTypeForm: true,
|
|
27
31
|
isNaturalEndpoint: false,
|
|
28
32
|
},
|
|
29
33
|
callback: {
|
package/package.json
CHANGED
|
@@ -25,6 +25,7 @@ export type CheckCodeProps = {
|
|
|
25
25
|
code: string;
|
|
26
26
|
body: LeadRequest;
|
|
27
27
|
router: Router;
|
|
28
|
+
endpoint?: EndpointType;
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
type CheckCodeResponse = {
|
|
@@ -102,14 +103,15 @@ export function LeadServiceAPI() {
|
|
|
102
103
|
code,
|
|
103
104
|
body,
|
|
104
105
|
router,
|
|
106
|
+
endpoint = 'confirmCorporateLead',
|
|
105
107
|
}: CheckCodeProps): Promise<CheckCodeResponse> {
|
|
106
108
|
const submitBody = {
|
|
107
109
|
requestId: reqId,
|
|
108
110
|
confimationCode: code, // не исправлять опечатку!
|
|
109
|
-
leadRequest: getSubmitBody({ body, router }),
|
|
111
|
+
leadRequest: getSubmitBody({ body, endpoint, router }),
|
|
110
112
|
};
|
|
111
113
|
try {
|
|
112
|
-
const response = await LeadServiceFetch(`${API_BASE_URI}
|
|
114
|
+
const response = await LeadServiceFetch(`${API_BASE_URI}/${endpoint}`, submitBody);
|
|
113
115
|
|
|
114
116
|
return await response.json();
|
|
115
117
|
} catch (e) {
|
|
@@ -23,7 +23,11 @@ export const ENDPOINT_MAPPING: Record<EndpointType, EndpointInfo> = {
|
|
|
23
23
|
isNaturalEndpoint: true,
|
|
24
24
|
},
|
|
25
25
|
initcorporatelead: {
|
|
26
|
-
withTypeForm:
|
|
26
|
+
withTypeForm: true,
|
|
27
|
+
isNaturalEndpoint: false,
|
|
28
|
+
},
|
|
29
|
+
confirmCorporateLead: {
|
|
30
|
+
withTypeForm: true,
|
|
27
31
|
isNaturalEndpoint: false,
|
|
28
32
|
},
|
|
29
33
|
callback: {
|