docs: added mark fulfillment delivered step in digital products recipe (#12290)
* docs: add fulfillment delivered step to digital products recipe * generate llms * small change
This commit is contained in:
@@ -60,7 +60,7 @@ class BlogModuleService extends MedusaService({
|
||||
title: "My Post",
|
||||
content: "This is a post",
|
||||
author_id: "01JSGRGQ8S61SR0Y7VCRV8FH66",
|
||||
}
|
||||
},
|
||||
])
|
||||
|
||||
return posts
|
||||
|
||||
@@ -55,7 +55,7 @@ class BlogModuleService extends MedusaService({
|
||||
@MedusaContext() sharedContext?: Context<EntityManager>
|
||||
): Promise<any> {
|
||||
const deletedIds = await this.postRepository_.delete({
|
||||
id
|
||||
id,
|
||||
})
|
||||
|
||||
return deletedIds
|
||||
@@ -105,7 +105,7 @@ class BlogModuleService extends MedusaService({
|
||||
@MedusaContext() sharedContext?: Context<EntityManager>
|
||||
): Promise<any> {
|
||||
const deletedIds = await this.postRepository_.delete({
|
||||
title: "My Post"
|
||||
title: "My Post",
|
||||
})
|
||||
|
||||
return deletedIds
|
||||
|
||||
@@ -227,11 +227,11 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const posts = await this.postRepository_.find({
|
||||
where: {
|
||||
id
|
||||
id,
|
||||
},
|
||||
options: {
|
||||
populate: ["author"]
|
||||
}
|
||||
populate: ["author"],
|
||||
},
|
||||
})
|
||||
|
||||
return posts
|
||||
@@ -299,11 +299,11 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const posts = await this.postRepository_.find({
|
||||
where: {
|
||||
id
|
||||
id,
|
||||
},
|
||||
options: {
|
||||
fields: ["title"]
|
||||
}
|
||||
fields: ["title"],
|
||||
},
|
||||
})
|
||||
|
||||
return posts
|
||||
@@ -363,12 +363,12 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const posts = await this.postRepository_.find({
|
||||
where: {
|
||||
id
|
||||
id,
|
||||
},
|
||||
options: {
|
||||
limit: 10,
|
||||
offset: 10,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
return posts
|
||||
@@ -424,13 +424,13 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const posts = await this.postRepository_.find({
|
||||
where: {
|
||||
id
|
||||
id,
|
||||
},
|
||||
options: {
|
||||
orderBy: {
|
||||
title: "ASC"
|
||||
}
|
||||
}
|
||||
title: "ASC",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
return posts
|
||||
|
||||
+17
-17
@@ -122,7 +122,7 @@ class BlogModuleService extends MedusaService({
|
||||
|
||||
return {
|
||||
posts,
|
||||
count
|
||||
count,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ class BlogModuleService extends MedusaService({
|
||||
|
||||
return {
|
||||
posts,
|
||||
count
|
||||
count,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,16 +240,16 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [posts, count] = await this.postRepository_.findAndCount({
|
||||
where: {
|
||||
id
|
||||
id,
|
||||
},
|
||||
options: {
|
||||
populate: ["author"]
|
||||
}
|
||||
populate: ["author"],
|
||||
},
|
||||
})
|
||||
|
||||
return {
|
||||
posts,
|
||||
count
|
||||
count,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -320,16 +320,16 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [posts, count] = await this.postRepository_.findAndCount({
|
||||
where: {
|
||||
id
|
||||
id,
|
||||
},
|
||||
options: {
|
||||
fields: ["title"]
|
||||
}
|
||||
fields: ["title"],
|
||||
},
|
||||
})
|
||||
|
||||
return {
|
||||
posts,
|
||||
count
|
||||
count,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,12 +392,12 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [posts, count] = await this.postRepository_.findAndCount({
|
||||
where: {
|
||||
id
|
||||
id,
|
||||
},
|
||||
options: {
|
||||
limit: 10,
|
||||
offset: 10,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
return posts
|
||||
@@ -453,18 +453,18 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [posts, count] = await this.postRepository_.findAndCount({
|
||||
where: {
|
||||
id
|
||||
id,
|
||||
},
|
||||
options: {
|
||||
orderBy: {
|
||||
title: "ASC"
|
||||
}
|
||||
}
|
||||
title: "ASC",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
return {
|
||||
posts,
|
||||
count
|
||||
count,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [
|
||||
restoredPosts,
|
||||
restoredEntities
|
||||
restoredEntities,
|
||||
] = await this.postRepository_.restore(id)
|
||||
|
||||
return restoredPosts
|
||||
@@ -154,7 +154,7 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [
|
||||
restoredPosts,
|
||||
restoredEntities
|
||||
restoredEntities,
|
||||
] = await this.postRepository_.restore(ids)
|
||||
|
||||
return restoredPosts
|
||||
@@ -250,9 +250,9 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [
|
||||
restoredPosts,
|
||||
restoredEntities
|
||||
restoredEntities,
|
||||
] = await this.postRepository_.restore({
|
||||
title: "My Post"
|
||||
title: "My Post",
|
||||
})
|
||||
|
||||
return restoredPosts
|
||||
|
||||
@@ -60,7 +60,7 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [
|
||||
deletedPosts,
|
||||
deletedEntities
|
||||
deletedEntities,
|
||||
] = await this.postRepository_.softDelete(id)
|
||||
|
||||
return deletedPosts
|
||||
@@ -156,7 +156,7 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [
|
||||
deletedPosts,
|
||||
deletedEntities
|
||||
deletedEntities,
|
||||
] = await this.postRepository_.softDelete(ids)
|
||||
|
||||
return deletedPosts
|
||||
@@ -252,9 +252,9 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const [
|
||||
deletedPosts,
|
||||
deletedEntities
|
||||
deletedEntities,
|
||||
] = await this.postRepository_.softDelete({
|
||||
title: "My Post"
|
||||
title: "My Post",
|
||||
})
|
||||
|
||||
return deletedPosts
|
||||
|
||||
@@ -71,17 +71,17 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const existingPost = await this.postRepository_.find({
|
||||
where: {
|
||||
id
|
||||
}
|
||||
id,
|
||||
},
|
||||
})
|
||||
|
||||
const posts = await this.postRepository_.update([
|
||||
{
|
||||
entity: existingPost[0],
|
||||
update: {
|
||||
title: "My Post Updated"
|
||||
}
|
||||
}
|
||||
title: "My Post Updated",
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
return posts
|
||||
|
||||
@@ -61,7 +61,7 @@ class BlogModuleService extends MedusaService({
|
||||
},
|
||||
{
|
||||
title: "My New Post",
|
||||
}
|
||||
},
|
||||
])
|
||||
|
||||
return posts
|
||||
|
||||
+4
-4
@@ -62,22 +62,22 @@ class BlogModuleService extends MedusaService({
|
||||
): Promise<any> {
|
||||
const {
|
||||
entities,
|
||||
performedActions
|
||||
performedActions,
|
||||
} = await this.postRepository_.upsertWithReplace([
|
||||
{
|
||||
id: "01JSHAW6Z7KW4X6E8MFPGNEKHC",
|
||||
title: "My Old Post",
|
||||
author_id: null
|
||||
author_id: null,
|
||||
},
|
||||
{
|
||||
id: "123",
|
||||
title: "My New Post",
|
||||
}
|
||||
},
|
||||
])
|
||||
|
||||
return {
|
||||
entities,
|
||||
performedActions
|
||||
performedActions,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user