@redneckz/wildless-cms-uni-blocks 0.14.1048 → 0.14.1049
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/bundle.umd.js +20 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/retail/api/getCardTypes.js +15 -4
- package/dist/retail/api/getCardTypes.js.map +1 -1
- package/dist/retail/api/getPaymentSystems.js +6 -1
- package/dist/retail/api/getPaymentSystems.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/retail/api/getCardTypes.js +15 -4
- package/lib/retail/api/getCardTypes.js.map +1 -1
- package/lib/retail/api/getPaymentSystems.js +6 -1
- package/lib/retail/api/getPaymentSystems.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +20 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/retail/api/getCardTypes.js +15 -4
- package/mobile/dist/retail/api/getCardTypes.js.map +1 -1
- package/mobile/dist/retail/api/getPaymentSystems.js +6 -1
- package/mobile/dist/retail/api/getPaymentSystems.js.map +1 -1
- package/mobile/lib/retail/api/getCardTypes.js +15 -4
- package/mobile/lib/retail/api/getCardTypes.js.map +1 -1
- package/mobile/lib/retail/api/getPaymentSystems.js +6 -1
- package/mobile/lib/retail/api/getPaymentSystems.js.map +1 -1
- package/mobile/src/retail/api/getCardTypes.ts +18 -4
- package/mobile/src/retail/api/getPaymentSystems.ts +10 -7
- package/package.json +1 -1
- package/src/retail/api/getCardTypes.ts +18 -4
- package/src/retail/api/getPaymentSystems.ts +10 -7
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getCardTypes = void 0;
|
|
3
|
+
const checkNewMicroservice_1 = require("../utils/checkNewMicroservice");
|
|
3
4
|
const doRequest_1 = require("./doRequest");
|
|
4
5
|
const getCardTypes = async (paymentSystemTypeCd, creditProgramId) => {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const isNewMicroservice = (0, checkNewMicroservice_1.checkNewMicroservice)();
|
|
7
|
+
const endpoint = isNewMicroservice
|
|
8
|
+
? '/external/public-data/dictionaryFiltered'
|
|
9
|
+
: '/dictionaryFiltered';
|
|
10
|
+
const requestBody = isNewMicroservice
|
|
11
|
+
? {
|
|
12
|
+
paymentSystemTypeCd,
|
|
13
|
+
dictionaryType: 'CARD_TYPE',
|
|
14
|
+
}
|
|
15
|
+
: {
|
|
16
|
+
type: 'CARD_TYPE',
|
|
17
|
+
presets: { paymentSystemTypeCd, creditProgramId },
|
|
18
|
+
};
|
|
19
|
+
const data = await (0, doRequest_1.fetchRetailJSON)(endpoint, 'POST', requestBody);
|
|
9
20
|
return Array.isArray(data) ? data : [];
|
|
10
21
|
};
|
|
11
22
|
exports.getCardTypes = getCardTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCardTypes.js","sourceRoot":"","sources":["../../../src/retail/api/getCardTypes.ts"],"names":[],"mappings":";;AACA,2CAA8C;AASvC,MAAM,YAAY,GAAG,KAAK,EAAE,mBAA2B,EAAE,eAAuB,EAAE,EAAE;IACzF,MAAM,
|
|
1
|
+
{"version":3,"file":"getCardTypes.js","sourceRoot":"","sources":["../../../src/retail/api/getCardTypes.ts"],"names":[],"mappings":";;AACA,wEAAqE;AACrE,2CAA8C;AASvC,MAAM,YAAY,GAAG,KAAK,EAAE,mBAA2B,EAAE,eAAuB,EAAE,EAAE;IACzF,MAAM,iBAAiB,GAAG,IAAA,2CAAoB,GAAE,CAAC;IAEjD,MAAM,QAAQ,GAAG,iBAAiB;QAChC,CAAC,CAAC,0CAA0C;QAC5C,CAAC,CAAC,qBAAqB,CAAC;IAE1B,MAAM,WAAW,GAAG,iBAAiB;QACnC,CAAC,CAAC;YACE,mBAAmB;YACnB,cAAc,EAAE,WAAW;SAC5B;QACH,CAAC,CAAC;YACE,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,EAAE,mBAAmB,EAAE,eAAe,EAAE;SAClD,CAAC;IAEN,MAAM,IAAI,GAAG,MAAM,IAAA,2BAAe,EAAiB,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAElF,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC,CAAC;AApBW,QAAA,YAAY,gBAoBvB"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getPaymentSystems = void 0;
|
|
3
|
+
const checkNewMicroservice_1 = require("../utils/checkNewMicroservice");
|
|
3
4
|
const doRequest_1 = require("./doRequest");
|
|
4
5
|
const getPaymentSystems = async (creditProgramId) => {
|
|
5
|
-
const
|
|
6
|
+
const isNewMicroservice = (0, checkNewMicroservice_1.checkNewMicroservice)();
|
|
7
|
+
const endpoint = isNewMicroservice
|
|
8
|
+
? '/external/user-data/getPaymentSystem'
|
|
9
|
+
: '/public-data/creditProgramConditions';
|
|
10
|
+
const data = await (0, doRequest_1.fetchRetailJSON)(endpoint, 'POST', {
|
|
6
11
|
creditProgramId,
|
|
7
12
|
});
|
|
8
13
|
return formatData(data?.paymentSystems || []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPaymentSystems.js","sourceRoot":"","sources":["../../../src/retail/api/getPaymentSystems.ts"],"names":[],"mappings":";;AACA,2CAA8C;AAWvC,MAAM,iBAAiB,GAAG,KAAK,EAAE,eAAuB,EAAE,EAAE;IACjE,MAAM,IAAI,GAAG,MAAM,IAAA,2BAAe,
|
|
1
|
+
{"version":3,"file":"getPaymentSystems.js","sourceRoot":"","sources":["../../../src/retail/api/getPaymentSystems.ts"],"names":[],"mappings":";;AACA,wEAAqE;AACrE,2CAA8C;AAWvC,MAAM,iBAAiB,GAAG,KAAK,EAAE,eAAuB,EAAE,EAAE;IACjE,MAAM,iBAAiB,GAAG,IAAA,2CAAoB,GAAE,CAAC;IAEjD,MAAM,QAAQ,GAAG,iBAAiB;QAChC,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,sCAAsC,CAAC;IAE3C,MAAM,IAAI,GAAG,MAAM,IAAA,2BAAe,EAAwB,QAAQ,EAAE,MAAM,EAAE;QAC1E,eAAe;KAChB,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC,IAAI,EAAE,cAAc,IAAI,EAAE,CAAC,CAAC;AAChD,CAAC,CAAC;AAZW,QAAA,iBAAiB,qBAY5B;AAEF,MAAM,UAAU,GAAG,CAAC,cAA+B,EAAY,EAAE,CAC/D,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACzB,GAAG,EAAE,CAAC,CAAC,IAAI;IACX,IAAI,EAAE,CAAC,CAAC,IAAI;CACb,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import { checkNewMicroservice } from '../utils/checkNewMicroservice.js';
|
|
1
2
|
import { fetchRetailJSON } from './doRequest.js';
|
|
2
3
|
export const getCardTypes = async (paymentSystemTypeCd, creditProgramId) => {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
5
|
+
const endpoint = isNewMicroservice
|
|
6
|
+
? '/external/public-data/dictionaryFiltered'
|
|
7
|
+
: '/dictionaryFiltered';
|
|
8
|
+
const requestBody = isNewMicroservice
|
|
9
|
+
? {
|
|
10
|
+
paymentSystemTypeCd,
|
|
11
|
+
dictionaryType: 'CARD_TYPE',
|
|
12
|
+
}
|
|
13
|
+
: {
|
|
14
|
+
type: 'CARD_TYPE',
|
|
15
|
+
presets: { paymentSystemTypeCd, creditProgramId },
|
|
16
|
+
};
|
|
17
|
+
const data = await fetchRetailJSON(endpoint, 'POST', requestBody);
|
|
7
18
|
return Array.isArray(data) ? data : [];
|
|
8
19
|
};
|
|
9
20
|
//# sourceMappingURL=getCardTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCardTypes.js","sourceRoot":"","sources":["../../../src/retail/api/getCardTypes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAS9C,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,mBAA2B,EAAE,eAAuB,EAAE,EAAE;IACzF,MAAM,
|
|
1
|
+
{"version":3,"file":"getCardTypes.js","sourceRoot":"","sources":["../../../src/retail/api/getCardTypes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAS9C,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,mBAA2B,EAAE,eAAuB,EAAE,EAAE;IACzF,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,MAAM,QAAQ,GAAG,iBAAiB;QAChC,CAAC,CAAC,0CAA0C;QAC5C,CAAC,CAAC,qBAAqB,CAAC;IAE1B,MAAM,WAAW,GAAG,iBAAiB;QACnC,CAAC,CAAC;YACE,mBAAmB;YACnB,cAAc,EAAE,WAAW;SAC5B;QACH,CAAC,CAAC;YACE,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,EAAE,mBAAmB,EAAE,eAAe,EAAE;SAClD,CAAC;IAEN,MAAM,IAAI,GAAG,MAAM,eAAe,CAAiB,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAElF,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { checkNewMicroservice } from '../utils/checkNewMicroservice.js';
|
|
1
2
|
import { fetchRetailJSON } from './doRequest.js';
|
|
2
3
|
export const getPaymentSystems = async (creditProgramId) => {
|
|
3
|
-
const
|
|
4
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
5
|
+
const endpoint = isNewMicroservice
|
|
6
|
+
? '/external/user-data/getPaymentSystem'
|
|
7
|
+
: '/public-data/creditProgramConditions';
|
|
8
|
+
const data = await fetchRetailJSON(endpoint, 'POST', {
|
|
4
9
|
creditProgramId,
|
|
5
10
|
});
|
|
6
11
|
return formatData(data?.paymentSystems || []);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPaymentSystems.js","sourceRoot":"","sources":["../../../src/retail/api/getPaymentSystems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAW9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,eAAuB,EAAE,EAAE;IACjE,MAAM,IAAI,GAAG,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"getPaymentSystems.js","sourceRoot":"","sources":["../../../src/retail/api/getPaymentSystems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAW9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,eAAuB,EAAE,EAAE;IACjE,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IAEjD,MAAM,QAAQ,GAAG,iBAAiB;QAChC,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,sCAAsC,CAAC;IAE3C,MAAM,IAAI,GAAG,MAAM,eAAe,CAAwB,QAAQ,EAAE,MAAM,EAAE;QAC1E,eAAe;KAChB,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC,IAAI,EAAE,cAAc,IAAI,EAAE,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,cAA+B,EAAY,EAAE,CAC/D,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACzB,GAAG,EAAE,CAAC,CAAC,IAAI;IACX,IAAI,EAAE,CAAC,CAAC,IAAI;CACb,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
|
+
import { checkNewMicroservice } from '../utils/checkNewMicroservice';
|
|
2
3
|
import { fetchRetailJSON } from './doRequest';
|
|
3
4
|
|
|
4
5
|
export type CardTypeData = DescriptionProps & {
|
|
@@ -9,10 +10,23 @@ export type CardTypeData = DescriptionProps & {
|
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
export const getCardTypes = async (paymentSystemTypeCd: string, creditProgramId: string) => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
14
|
+
|
|
15
|
+
const endpoint = isNewMicroservice
|
|
16
|
+
? '/external/public-data/dictionaryFiltered'
|
|
17
|
+
: '/dictionaryFiltered';
|
|
18
|
+
|
|
19
|
+
const requestBody = isNewMicroservice
|
|
20
|
+
? {
|
|
21
|
+
paymentSystemTypeCd,
|
|
22
|
+
dictionaryType: 'CARD_TYPE',
|
|
23
|
+
}
|
|
24
|
+
: {
|
|
25
|
+
type: 'CARD_TYPE',
|
|
26
|
+
presets: { paymentSystemTypeCd, creditProgramId },
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const data = await fetchRetailJSON<CardTypeData[]>(endpoint, 'POST', requestBody);
|
|
16
30
|
|
|
17
31
|
return Array.isArray(data) ? data : [];
|
|
18
32
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
import { checkNewMicroservice } from '../utils/checkNewMicroservice';
|
|
2
3
|
import { fetchRetailJSON } from './doRequest';
|
|
3
4
|
|
|
4
5
|
type PaymentSystem = {
|
|
@@ -11,13 +12,15 @@ type PaymentSystemResponse = {
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export const getPaymentSystems = async (creditProgramId: string) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
16
|
+
|
|
17
|
+
const endpoint = isNewMicroservice
|
|
18
|
+
? '/external/user-data/getPaymentSystem'
|
|
19
|
+
: '/public-data/creditProgramConditions';
|
|
20
|
+
|
|
21
|
+
const data = await fetchRetailJSON<PaymentSystemResponse>(endpoint, 'POST', {
|
|
22
|
+
creditProgramId,
|
|
23
|
+
});
|
|
21
24
|
|
|
22
25
|
return formatData(data?.paymentSystems || []);
|
|
23
26
|
};
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
|
+
import { checkNewMicroservice } from '../utils/checkNewMicroservice';
|
|
2
3
|
import { fetchRetailJSON } from './doRequest';
|
|
3
4
|
|
|
4
5
|
export type CardTypeData = DescriptionProps & {
|
|
@@ -9,10 +10,23 @@ export type CardTypeData = DescriptionProps & {
|
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
export const getCardTypes = async (paymentSystemTypeCd: string, creditProgramId: string) => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
14
|
+
|
|
15
|
+
const endpoint = isNewMicroservice
|
|
16
|
+
? '/external/public-data/dictionaryFiltered'
|
|
17
|
+
: '/dictionaryFiltered';
|
|
18
|
+
|
|
19
|
+
const requestBody = isNewMicroservice
|
|
20
|
+
? {
|
|
21
|
+
paymentSystemTypeCd,
|
|
22
|
+
dictionaryType: 'CARD_TYPE',
|
|
23
|
+
}
|
|
24
|
+
: {
|
|
25
|
+
type: 'CARD_TYPE',
|
|
26
|
+
presets: { paymentSystemTypeCd, creditProgramId },
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const data = await fetchRetailJSON<CardTypeData[]>(endpoint, 'POST', requestBody);
|
|
16
30
|
|
|
17
31
|
return Array.isArray(data) ? data : [];
|
|
18
32
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
|
+
import { checkNewMicroservice } from '../utils/checkNewMicroservice';
|
|
2
3
|
import { fetchRetailJSON } from './doRequest';
|
|
3
4
|
|
|
4
5
|
type PaymentSystem = {
|
|
@@ -11,13 +12,15 @@ type PaymentSystemResponse = {
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export const getPaymentSystems = async (creditProgramId: string) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
16
|
+
|
|
17
|
+
const endpoint = isNewMicroservice
|
|
18
|
+
? '/external/user-data/getPaymentSystem'
|
|
19
|
+
: '/public-data/creditProgramConditions';
|
|
20
|
+
|
|
21
|
+
const data = await fetchRetailJSON<PaymentSystemResponse>(endpoint, 'POST', {
|
|
22
|
+
creditProgramId,
|
|
23
|
+
});
|
|
21
24
|
|
|
22
25
|
return formatData(data?.paymentSystems || []);
|
|
23
26
|
};
|