@infrab4a/connect 5.8.0-alpha.3 → 5.8.1-beta.0
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/index.cjs.js
CHANGED
|
@@ -208,9 +208,7 @@ function isPositiveInteger(value) {
|
|
|
208
208
|
function normalizeLimitOrders(raw, allowInfiniteZip) {
|
|
209
209
|
if (!raw)
|
|
210
210
|
return null;
|
|
211
|
-
const zip = allowInfiniteZip && (raw.zip === null || raw.zip === undefined || raw.zip === Infinity)
|
|
212
|
-
? Infinity
|
|
213
|
-
: raw.zip;
|
|
211
|
+
const zip = allowInfiniteZip && (raw.zip === null || raw.zip === undefined || raw.zip === Infinity) ? Infinity : raw.zip;
|
|
214
212
|
const normalized = {
|
|
215
213
|
cpf: raw.cpf,
|
|
216
214
|
email: raw.email,
|
|
@@ -2062,6 +2060,7 @@ class AntifraudBankSlipService {
|
|
|
2062
2060
|
}
|
|
2063
2061
|
}
|
|
2064
2062
|
|
|
2063
|
+
/* eslint-disable max-params */
|
|
2065
2064
|
class AntifraudCardService {
|
|
2066
2065
|
constructor(orderRepository, orderBlockedRepository, shopConfigsRepository) {
|
|
2067
2066
|
this.orderRepository = orderRepository;
|
package/index.esm.js
CHANGED
|
@@ -202,9 +202,7 @@ function isPositiveInteger(value) {
|
|
|
202
202
|
function normalizeLimitOrders(raw, allowInfiniteZip) {
|
|
203
203
|
if (!raw)
|
|
204
204
|
return null;
|
|
205
|
-
const zip = allowInfiniteZip && (raw.zip === null || raw.zip === undefined || raw.zip === Infinity)
|
|
206
|
-
? Infinity
|
|
207
|
-
: raw.zip;
|
|
205
|
+
const zip = allowInfiniteZip && (raw.zip === null || raw.zip === undefined || raw.zip === Infinity) ? Infinity : raw.zip;
|
|
208
206
|
const normalized = {
|
|
209
207
|
cpf: raw.cpf,
|
|
210
208
|
email: raw.email,
|
|
@@ -2056,6 +2054,7 @@ class AntifraudBankSlipService {
|
|
|
2056
2054
|
}
|
|
2057
2055
|
}
|
|
2058
2056
|
|
|
2057
|
+
/* eslint-disable max-params */
|
|
2059
2058
|
class AntifraudCardService {
|
|
2060
2059
|
constructor(orderRepository, orderBlockedRepository, shopConfigsRepository) {
|
|
2061
2060
|
this.orderRepository = orderRepository;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
2
|
import { ShopAntifraudConfig, ShopErrorMessages, ShopSameDayNotAvailable } from './types';
|
|
3
3
|
export declare class ShopConfigs extends BaseModel<ShopConfigs> {
|
|
4
|
+
id: string;
|
|
4
5
|
errors?: ShopErrorMessages[];
|
|
5
6
|
antifraude?: ShopAntifraudConfig;
|
|
6
7
|
sameDayNotAvaliable?: ShopSameDayNotAvailable;
|
|
@@ -5,7 +5,7 @@ import { FirestoreRepository, FirestoreSubRepository } from '../types';
|
|
|
5
5
|
export declare const withHelpers: <TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<any, any[]> & TMixinBase) => {
|
|
6
6
|
new (...args: any[]): {
|
|
7
7
|
[x: string]: any;
|
|
8
|
-
toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T> | QueryDocumentSnapshot<T>[]): T[];
|
|
8
|
+
toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T, import("firebase/firestore").DocumentData> | QueryDocumentSnapshot<T, import("firebase/firestore").DocumentData>[]): T[];
|
|
9
9
|
isSubCollection<T_1 extends ModelBaseStructure<T_1, T_1["identifiersFields"][number]>, E extends ModelBaseStructure<E, E["identifiersFields"][number]>>(repository: FirestoreRepository<T_1> | FirestoreSubRepository<T_1, E>): repository is FirestoreSubRepository<T_1, E>;
|
|
10
10
|
};
|
|
11
11
|
} & TMixinBase;
|