@infrab4a/connect 0.17.0-beta.9 → 0.17.1-beta.2
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/bundles/infrab4a-connect.umd.js +88 -55
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/models/enums/shops.enum.d.ts +1 -2
- package/domain/shop-settings/models/index.d.ts +1 -0
- package/domain/shop-settings/models/shop-settings.d.ts +6 -0
- package/domain/shop-settings/repositories/index.d.ts +1 -0
- package/domain/shop-settings/repositories/shop-settings.repository.d.ts +4 -0
- package/domain/shopping/models/coupons/coupon.d.ts +5 -10
- package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +4 -2
- package/domain/shopping/models/coupons/enums/exclusivities.enum.d.ts +1 -4
- package/domain/shopping/models/coupons/financial-coupon.d.ts +9 -0
- package/domain/shopping/models/coupons/index.d.ts +1 -0
- package/domain/shopping/models/enums/checkout-types.enum.d.ts +1 -2
- package/esm2015/domain/catalog/models/enums/shops.enum.js +1 -2
- package/esm2015/domain/shop-settings/models/index.js +2 -1
- package/esm2015/domain/shop-settings/models/shop-settings.js +7 -0
- package/esm2015/domain/shop-settings/repositories/index.js +2 -1
- package/esm2015/domain/shop-settings/repositories/shop-settings.repository.js +2 -0
- package/esm2015/domain/shopping/models/coupons/coupon.js +2 -17
- package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +1 -1
- package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +5 -7
- package/esm2015/domain/shopping/models/coupons/enums/exclusivities.enum.js +1 -4
- package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -0
- package/esm2015/domain/shopping/models/coupons/index.js +2 -1
- package/esm2015/domain/shopping/models/enums/checkout-types.enum.js +1 -2
- package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +4 -2
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +2 -2
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/index.js +2 -1
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.js +12 -0
- package/fesm2015/infrab4a-connect.js +49 -29
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/firebase/firestore/repositories/shop-settings/index.d.ts +1 -0
- package/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.d.ts +49 -0
- package/package.json +1 -1
- package/domain/shopping/models/coupons/enums/coupon-club-mens.enum.d.ts +0 -5
- package/esm2015/domain/shopping/models/coupons/enums/coupon-club-mens.enum.js +0 -7
package/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { FirebaseFirestore } from '@firebase/firestore-types';
|
|
2
|
+
import { ShopSettings, ShopSettingsRepository } from '../../../../../domain';
|
|
3
|
+
declare const ShopSettingsFirestoreRepository_base: {
|
|
4
|
+
new (...args: any[]): {
|
|
5
|
+
update(data: import("../../../../../domain").RepositoryUpdateParams<ShopSettings>): Promise<ShopSettings>;
|
|
6
|
+
buildCollectionPathForUpdate(identifiers: import("../../../../../domain").RepositoryUpdateParams<ShopSettings>): string;
|
|
7
|
+
paramsToPlain(params: import("../../../../../domain").RepositoryUpdateParams<ShopSettings>): Partial<ShopSettings>;
|
|
8
|
+
readonly firestore?: FirebaseFirestore;
|
|
9
|
+
collectionName: string;
|
|
10
|
+
model: import("../../../../../domain").BaseModelBuilder<ShopSettings>;
|
|
11
|
+
collection(path?: string): import("@firebase/firestore-types").CollectionReference<ShopSettings>;
|
|
12
|
+
toArray<T extends import("../../../../../domain").BaseModelWithIdentifier<T>>(snapShot: import("@firebase/firestore-types").QuerySnapshot<T> | import("@firebase/firestore-types").QueryDocumentSnapshot<T>[]): T[];
|
|
13
|
+
isSubCollection<T_1 extends import("../../../../../domain").BaseModelWithIdentifier<T_1>>(repository: import("@infrab4a/connect").FirestoreRepository<T_1>): repository is import("@infrab4a/connect").FirestoreSubRepository<T_1, import("../../../../../domain").BaseModelWithIdentifier<{}>>;
|
|
14
|
+
get(identifiers: import("../../../../../domain").NonFunctionProperties<ShopSettings>): Promise<ShopSettings>;
|
|
15
|
+
buildCollectionPathForGet(identifiers: import("../../../../../domain").NonFunctionProperties<ShopSettings>): string;
|
|
16
|
+
find(filters?: import("../../../../../domain").RepositoryFindFielters<ShopSettings>[], limits?: import("../../../../../domain").RepositoryLimitOptions<ShopSettings>, orderBy?: import("../../../../../domain").RepositoryOrderByList<ShopSettings>): Promise<import("../../../../../domain").RepositoryFindResult<ShopSettings>>;
|
|
17
|
+
buildCollectionPathForFind(filters: import("../../../../../domain").RepositoryFindFielters<ShopSettings>[]): string;
|
|
18
|
+
makeFirestoreWhere: (queryReference: import("@firebase/firestore-types").CollectionReference<ShopSettings> | import("@firebase/firestore-types").Query<ShopSettings>, filter: import("../../../../../domain").RepositoryFindFielters<ShopSettings>) => import("@firebase/firestore-types").Query<ShopSettings>;
|
|
19
|
+
buildWhereSentence: (queryReference: import("@firebase/firestore-types").CollectionReference<ShopSettings> | import("@firebase/firestore-types").Query<ShopSettings>, fieldName: string, options: import("../../../../../domain").RepositoryFindFieltersOptions<ShopSettings, import("../../../../../domain").NonFunctionPropertyNames<ShopSettings>>) => import("@firebase/firestore-types").Query<ShopSettings>;
|
|
20
|
+
defineLimits(query: import("@firebase/firestore-types").CollectionReference<ShopSettings> | import("@firebase/firestore-types").Query<ShopSettings>, filters: import("../../../../../domain").RepositoryFindFielters<ShopSettings>[], limits: import("../../../../../domain").RepositoryLimitOptions<ShopSettings>): Promise<import("@firebase/firestore-types").Query<ShopSettings>>;
|
|
21
|
+
calculateCount(data: ShopSettings[], limits: import("../../../../../domain").RepositoryLimitOptions<ShopSettings>): number;
|
|
22
|
+
delete(identifiers: import("../../../../../domain").NonFunctionProperties<ShopSettings>): Promise<void>;
|
|
23
|
+
buildCollectionPathForRemove(identifiers: import("../../../../../domain").NonFunctionProperties<ShopSettings>): string;
|
|
24
|
+
create(data: Partial<ShopSettings>): Promise<ShopSettings>;
|
|
25
|
+
save(data: ShopSettings): Promise<import("@firebase/firestore-types").DocumentReference<ShopSettings>>;
|
|
26
|
+
buildCollectionPathForAdd(identifiers: Partial<ShopSettings>): string;
|
|
27
|
+
};
|
|
28
|
+
} & {
|
|
29
|
+
new (...args: any[]): {
|
|
30
|
+
toArray<T_2 extends import("../../../../../domain").BaseModelWithIdentifier<T_2>>(snapShot: import("@firebase/firestore-types").QuerySnapshot<T_2> | import("@firebase/firestore-types").QueryDocumentSnapshot<T_2>[]): T_2[];
|
|
31
|
+
isSubCollection<T_3 extends import("../../../../../domain").BaseModelWithIdentifier<T_3>>(repository: import("@infrab4a/connect").FirestoreRepository<T_3>): repository is import("@infrab4a/connect").FirestoreSubRepository<T_3, import("../../../../../domain").BaseModelWithIdentifier<{}>>;
|
|
32
|
+
};
|
|
33
|
+
} & {
|
|
34
|
+
new (...args: any[]): {
|
|
35
|
+
readonly firestore?: FirebaseFirestore;
|
|
36
|
+
collectionName: string;
|
|
37
|
+
model: import("../../../../../domain").BaseModelBuilder<ShopSettings>;
|
|
38
|
+
collection(path?: string): import("@firebase/firestore-types").CollectionReference<ShopSettings>;
|
|
39
|
+
buildModelInstance(): {
|
|
40
|
+
toFirestore: (data: ShopSettings) => import("@firebase/firestore-types").DocumentData;
|
|
41
|
+
fromFirestore: (snap: import("@firebase/firestore-types").QueryDocumentSnapshot<ShopSettings>) => ShopSettings;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare class ShopSettingsFirestoreRepository extends ShopSettingsFirestoreRepository_base implements ShopSettingsRepository {
|
|
46
|
+
readonly firestore: FirebaseFirestore;
|
|
47
|
+
constructor(firestore: FirebaseFirestore);
|
|
48
|
+
}
|
|
49
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var ClubeDaMensPlan;
|
|
2
|
-
(function (ClubeDaMensPlan) {
|
|
3
|
-
ClubeDaMensPlan["PRIME"] = "PRIME";
|
|
4
|
-
ClubeDaMensPlan["SELECT"] = "SELECT";
|
|
5
|
-
ClubeDaMensPlan["ALL"] = "ALL";
|
|
6
|
-
})(ClubeDaMensPlan || (ClubeDaMensPlan = {}));
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291cG9uLWNsdWItbWVucy5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL3Nob3BwaW5nL21vZGVscy9jb3Vwb25zL2VudW1zL2NvdXBvbi1jbHViLW1lbnMuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxlQUlYO0FBSkQsV0FBWSxlQUFlO0lBQ3pCLGtDQUFlLENBQUE7SUFDZixvQ0FBaUIsQ0FBQTtJQUNqQiw4QkFBVyxDQUFBO0FBQ2IsQ0FBQyxFQUpXLGVBQWUsS0FBZixlQUFlLFFBSTFCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gQ2x1YmVEYU1lbnNQbGFuIHtcclxuICBQUklNRSA9ICdQUklNRScsXHJcbiAgU0VMRUNUID0gJ1NFTEVDVCcsXHJcbiAgQUxMID0gJ0FMTCcsXHJcbn1cclxuIl19
|