feat(medusa): added endpoints for rule attribute/operator/values options (#6911)

what:

adds endpoints that returns attribute options, operator options and value options for a particular rule.
This commit is contained in:
Riqwan Thamir
2024-04-04 11:56:17 +02:00
committed by GitHub
parent 9ca38eba04
commit 483bf98a49
15 changed files with 642 additions and 16 deletions
+14 -5
View File
@@ -23,10 +23,19 @@ export const joinerConfig: ModuleJoinerConfig = {
serviceName: Modules.CUSTOMER,
primaryKeys: ["id"],
linkableKeys: LinkableKeys,
alias: {
name: ["customer", "customers"],
args: {
entity: Customer.name,
alias: [
{
name: ["customer", "customers"],
args: {
entity: Customer.name,
},
},
},
{
name: ["customer_group", "customer_groups"],
args: {
entity: CustomerGroup.name,
methodSuffix: "CustomerGroups",
},
},
],
}