├── .babelrc.js ├── .env.template ├── .gitignore ├── .npmignore ├── .yarnrc.yml ├── Dockerfile ├── README.md ├── datasource.d.ts ├── develop.sh ├── docker-compose.yml ├── index.js ├── joycon └── README.md ├── medusa-config.js ├── package.json ├── src ├── admin │ ├── routes │ │ └── custom-attributes │ │ │ ├── attribute-type-select.tsx │ │ │ ├── attribute-values.tsx │ │ │ ├── page.tsx │ │ │ └── util │ │ │ ├── schema.ts │ │ │ ├── use-admin-create-attribute.ts │ │ │ ├── use-admin-delete-attribute.ts │ │ │ └── use-admin-update-atttribute.ts │ ├── util │ │ ├── api.ts │ │ ├── multi-select.tsx │ │ └── use-admin-attributes.ts │ └── widgets │ │ └── custom-attributes │ │ └── custom-attributes.tsx ├── api │ ├── attribute │ │ ├── create-attribute.ts │ │ ├── delete-attribute.ts │ │ ├── get-attribute.ts │ │ ├── index.ts │ │ ├── list-attributes.ts │ │ ├── list-store-attributes.ts │ │ └── update-attribute.ts │ └── index.ts ├── index.ts ├── loaders │ ├── README.md │ ├── extend-admin-product-fields.ts │ └── extend-store-product-fields.ts ├── migrations │ ├── 1697996009676-create-attribute.ts │ ├── 1697996037567-create-attribute-value.ts │ ├── 1697997647471-add-product-categories-relation.ts │ ├── 1698052418604-add-metadata-to-attribute-value.ts │ ├── 1698057573427-add-rank-to-attribute-value.ts │ ├── 1698144141322-add-attribute-values-to-product.ts │ ├── 1698144428582-attribute-value-value-nullable.ts │ ├── 1699130179109-add-int-value-attribute.ts │ ├── 1699130473267-add-int-value-attribute-to-product.ts │ └── 1705415535262-add-index-to-product-attribute-values.ts ├── models │ ├── attribute-value.ts │ ├── attribute.ts │ ├── int-attribute-value.ts │ ├── product-category.ts │ └── product.ts ├── repositories │ ├── attribute-value.ts │ ├── attribute.ts │ ├── int-attribute-value.ts │ ├── product-category.ts │ └── product.ts ├── services │ ├── attribute.ts │ └── product.ts ├── subscribers │ └── README.md └── util │ └── validate-int-attributes.ts ├── tsconfig.admin.json ├── tsconfig.json ├── tsconfig.server.json └── tsconfig.spec.json /.babelrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/.babelrc.js -------------------------------------------------------------------------------- /.env.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/.env.template -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/.npmignore -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | nodeLinker: node-modules -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/README.md -------------------------------------------------------------------------------- /datasource.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/datasource.d.ts -------------------------------------------------------------------------------- /develop.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/develop.sh -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/index.js -------------------------------------------------------------------------------- /joycon/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/joycon/README.md -------------------------------------------------------------------------------- /medusa-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/medusa-config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/package.json -------------------------------------------------------------------------------- /src/admin/routes/custom-attributes/attribute-type-select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/routes/custom-attributes/attribute-type-select.tsx -------------------------------------------------------------------------------- /src/admin/routes/custom-attributes/attribute-values.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/routes/custom-attributes/attribute-values.tsx -------------------------------------------------------------------------------- /src/admin/routes/custom-attributes/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/routes/custom-attributes/page.tsx -------------------------------------------------------------------------------- /src/admin/routes/custom-attributes/util/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/routes/custom-attributes/util/schema.ts -------------------------------------------------------------------------------- /src/admin/routes/custom-attributes/util/use-admin-create-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/routes/custom-attributes/util/use-admin-create-attribute.ts -------------------------------------------------------------------------------- /src/admin/routes/custom-attributes/util/use-admin-delete-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/routes/custom-attributes/util/use-admin-delete-attribute.ts -------------------------------------------------------------------------------- /src/admin/routes/custom-attributes/util/use-admin-update-atttribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/routes/custom-attributes/util/use-admin-update-atttribute.ts -------------------------------------------------------------------------------- /src/admin/util/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/util/api.ts -------------------------------------------------------------------------------- /src/admin/util/multi-select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/util/multi-select.tsx -------------------------------------------------------------------------------- /src/admin/util/use-admin-attributes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/util/use-admin-attributes.ts -------------------------------------------------------------------------------- /src/admin/widgets/custom-attributes/custom-attributes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/admin/widgets/custom-attributes/custom-attributes.tsx -------------------------------------------------------------------------------- /src/api/attribute/create-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/api/attribute/create-attribute.ts -------------------------------------------------------------------------------- /src/api/attribute/delete-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/api/attribute/delete-attribute.ts -------------------------------------------------------------------------------- /src/api/attribute/get-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/api/attribute/get-attribute.ts -------------------------------------------------------------------------------- /src/api/attribute/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/api/attribute/index.ts -------------------------------------------------------------------------------- /src/api/attribute/list-attributes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/api/attribute/list-attributes.ts -------------------------------------------------------------------------------- /src/api/attribute/list-store-attributes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/api/attribute/list-store-attributes.ts -------------------------------------------------------------------------------- /src/api/attribute/update-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/api/attribute/update-attribute.ts -------------------------------------------------------------------------------- /src/api/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/api/index.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/loaders/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/loaders/README.md -------------------------------------------------------------------------------- /src/loaders/extend-admin-product-fields.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/loaders/extend-admin-product-fields.ts -------------------------------------------------------------------------------- /src/loaders/extend-store-product-fields.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/loaders/extend-store-product-fields.ts -------------------------------------------------------------------------------- /src/migrations/1697996009676-create-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1697996009676-create-attribute.ts -------------------------------------------------------------------------------- /src/migrations/1697996037567-create-attribute-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1697996037567-create-attribute-value.ts -------------------------------------------------------------------------------- /src/migrations/1697997647471-add-product-categories-relation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1697997647471-add-product-categories-relation.ts -------------------------------------------------------------------------------- /src/migrations/1698052418604-add-metadata-to-attribute-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1698052418604-add-metadata-to-attribute-value.ts -------------------------------------------------------------------------------- /src/migrations/1698057573427-add-rank-to-attribute-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1698057573427-add-rank-to-attribute-value.ts -------------------------------------------------------------------------------- /src/migrations/1698144141322-add-attribute-values-to-product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1698144141322-add-attribute-values-to-product.ts -------------------------------------------------------------------------------- /src/migrations/1698144428582-attribute-value-value-nullable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1698144428582-attribute-value-value-nullable.ts -------------------------------------------------------------------------------- /src/migrations/1699130179109-add-int-value-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1699130179109-add-int-value-attribute.ts -------------------------------------------------------------------------------- /src/migrations/1699130473267-add-int-value-attribute-to-product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1699130473267-add-int-value-attribute-to-product.ts -------------------------------------------------------------------------------- /src/migrations/1705415535262-add-index-to-product-attribute-values.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/migrations/1705415535262-add-index-to-product-attribute-values.ts -------------------------------------------------------------------------------- /src/models/attribute-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/models/attribute-value.ts -------------------------------------------------------------------------------- /src/models/attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/models/attribute.ts -------------------------------------------------------------------------------- /src/models/int-attribute-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/models/int-attribute-value.ts -------------------------------------------------------------------------------- /src/models/product-category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/models/product-category.ts -------------------------------------------------------------------------------- /src/models/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/models/product.ts -------------------------------------------------------------------------------- /src/repositories/attribute-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/repositories/attribute-value.ts -------------------------------------------------------------------------------- /src/repositories/attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/repositories/attribute.ts -------------------------------------------------------------------------------- /src/repositories/int-attribute-value.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/repositories/int-attribute-value.ts -------------------------------------------------------------------------------- /src/repositories/product-category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/repositories/product-category.ts -------------------------------------------------------------------------------- /src/repositories/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/repositories/product.ts -------------------------------------------------------------------------------- /src/services/attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/services/attribute.ts -------------------------------------------------------------------------------- /src/services/product.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/services/product.ts -------------------------------------------------------------------------------- /src/subscribers/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/subscribers/README.md -------------------------------------------------------------------------------- /src/util/validate-int-attributes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/src/util/validate-int-attributes.ts -------------------------------------------------------------------------------- /tsconfig.admin.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/tsconfig.admin.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.server.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/tsconfig.server.json -------------------------------------------------------------------------------- /tsconfig.spec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vholik/medusa-custom-attributes/HEAD/tsconfig.spec.json --------------------------------------------------------------------------------