@react-pakistan/util-functions 1.22.44 → 1.22.45
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.
|
@@ -42,5 +42,5 @@ export declare const getProfileById: ({ prisma, id, }: GetProfileByIdArgs) => Pr
|
|
|
42
42
|
export declare const getProfileByUserId: ({ prisma, userId, }: GetProfileByUserIdArgs) => Promise<ProfileBE>;
|
|
43
43
|
export declare const postProfiles: ({ currentPage, pageLimit, prisma, queryWhere, }: PostProfilesArgs) => Promise<Array<ProfileBE>>;
|
|
44
44
|
export declare const postProfile: ({ avatar, dob, email, firstName, gender, id, language, lastName, location, phone, prisma, skill, userId, }: PostProfileArgs) => Promise<Array<ProfileBE>>;
|
|
45
|
-
export declare const
|
|
45
|
+
export declare const deleteProfile: ({ prisma, id, }: DeleteProfileArgs) => Promise<ProfileBE>;
|
|
46
46
|
export {};
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.
|
|
13
|
+
exports.deleteProfile = exports.postProfile = exports.postProfiles = exports.getProfileByUserId = exports.getProfileById = exports.getProfiles = void 0;
|
|
14
14
|
const getProfiles = (_a) => __awaiter(void 0, [_a], void 0, function* ({ prisma, }) {
|
|
15
15
|
const profiles = yield prisma.profile.findMany({
|
|
16
16
|
orderBy: {
|
|
@@ -90,7 +90,7 @@ const postProfile = (_e) => __awaiter(void 0, [_e], void 0, function* ({ avatar,
|
|
|
90
90
|
return profile;
|
|
91
91
|
});
|
|
92
92
|
exports.postProfile = postProfile;
|
|
93
|
-
const
|
|
93
|
+
const deleteProfile = (_f) => __awaiter(void 0, [_f], void 0, function* ({ prisma, id, }) {
|
|
94
94
|
const profile = yield prisma.profile.delete({
|
|
95
95
|
where: {
|
|
96
96
|
id,
|
|
@@ -98,4 +98,4 @@ const DeleteProfile = (_f) => __awaiter(void 0, [_f], void 0, function* ({ prism
|
|
|
98
98
|
});
|
|
99
99
|
return profile;
|
|
100
100
|
});
|
|
101
|
-
exports.
|
|
101
|
+
exports.deleteProfile = deleteProfile;
|