Да, просто создайте три разные функции с подстановочными знаками с триггером onCreate
exports.BrandFunction = functions.firestore
.document('brands/{brandId}')
.onCreate(async (snap, context) => {
//Function doesnt need to be async unless you use await in the body
//YOUR CODE HERE
});
exports.PackFunction = functions.firestore
.document('packs/{packId}')
.onCreate(async (snap, context) => {
//YOUR CODE HERE
});
exports.ItemFunction = functions.firestore
.document('items/{itemId}')
.onCreate(async (snap, context) => {
//YOUR CODE HERE
});