diff --git a/packages/admin-ui/ui/src/components/organisms/gift-card-denominations-section/add-denominations-modal.tsx b/packages/admin-ui/ui/src/components/organisms/gift-card-denominations-section/add-denominations-modal.tsx index c0190eaed1..6b719e3a43 100644 --- a/packages/admin-ui/ui/src/components/organisms/gift-card-denominations-section/add-denominations-modal.tsx +++ b/packages/admin-ui/ui/src/components/organisms/gift-card-denominations-section/add-denominations-modal.tsx @@ -115,7 +115,7 @@ const AddDenominationModal = ({ open, onClose, giftCard }: Props) => { onSuccess: () => { notification( "Denomination added", - "A new denomination was succesfully added", + "A new denomination was successfully added", "success" ) handleClose() diff --git a/packages/admin-ui/ui/src/components/organisms/gift-card-denominations-section/edit-denominations-modal.tsx b/packages/admin-ui/ui/src/components/organisms/gift-card-denominations-section/edit-denominations-modal.tsx index 741b3de683..c3217d4121 100644 --- a/packages/admin-ui/ui/src/components/organisms/gift-card-denominations-section/edit-denominations-modal.tsx +++ b/packages/admin-ui/ui/src/components/organisms/gift-card-denominations-section/edit-denominations-modal.tsx @@ -92,7 +92,7 @@ const EditDenominationsModal = ({ onSuccess: () => { notification( "Denomination updated", - "A new denomination was succesfully updated", + "A new denomination was successfully updated", "success" ) queryClient.invalidateQueries(adminProductKeys.all) diff --git a/packages/admin-ui/ui/src/components/organisms/reset-token-card/index.tsx b/packages/admin-ui/ui/src/components/organisms/reset-token-card/index.tsx index 2f9a747959..419c31ef29 100644 --- a/packages/admin-ui/ui/src/components/organisms/reset-token-card/index.tsx +++ b/packages/admin-ui/ui/src/components/organisms/reset-token-card/index.tsx @@ -93,7 +93,7 @@ const ResetTokenCard: React.FC = ({ goBack }) => {
- Succesfully sent you an email + Successfully sent you an email
diff --git a/packages/admin-ui/ui/src/domain/discounts/details/conditions/add-condition/conditions-provider.tsx b/packages/admin-ui/ui/src/domain/discounts/details/conditions/add-condition/conditions-provider.tsx index d330393c64..27ee6b5879 100644 --- a/packages/admin-ui/ui/src/domain/discounts/details/conditions/add-condition/conditions-provider.tsx +++ b/packages/admin-ui/ui/src/domain/discounts/details/conditions/add-condition/conditions-provider.tsx @@ -130,7 +130,7 @@ export const ConditionsProvider = ({ { onSuccess: () => { notification( - "Condtions were succesfully added", + "Conditions were successfully added", "Discount conditions updated", "success" ) diff --git a/packages/admin-ui/ui/src/domain/gift-cards/details/edit-gift-card-modal.tsx b/packages/admin-ui/ui/src/domain/gift-cards/details/edit-gift-card-modal.tsx index 931621e529..0016b519b6 100644 --- a/packages/admin-ui/ui/src/domain/gift-cards/details/edit-gift-card-modal.tsx +++ b/packages/admin-ui/ui/src/domain/gift-cards/details/edit-gift-card-modal.tsx @@ -53,7 +53,7 @@ const EditGiftCardModal = ({ onSuccess: () => { notification( "Updated Gift card", - "Gift card was succesfully updated", + "Gift card was successfully updated", "success" ) diff --git a/packages/admin-ui/ui/src/domain/gift-cards/details/index.tsx b/packages/admin-ui/ui/src/domain/gift-cards/details/index.tsx index c1304a9e44..583ac4b628 100644 --- a/packages/admin-ui/ui/src/domain/gift-cards/details/index.tsx +++ b/packages/admin-ui/ui/src/domain/gift-cards/details/index.tsx @@ -62,7 +62,7 @@ const GiftCardDetails = () => { onSuccess: () => { notification( "Updated status", - "Succesfully updated the status of the Gift Card", + "Successfully updated the status of the Gift Card", "success" ) }, diff --git a/packages/admin-ui/ui/src/hooks/use-edit-product-actions.tsx b/packages/admin-ui/ui/src/hooks/use-edit-product-actions.tsx index 8e5fbcc0c9..1c855b25e4 100644 --- a/packages/admin-ui/ui/src/hooks/use-edit-product-actions.tsx +++ b/packages/admin-ui/ui/src/hooks/use-edit-product-actions.tsx @@ -94,7 +94,7 @@ const useEditProductActions = (productId: string) => { const onDeleteVariant = ( variantId: string, onSuccess?: () => void, - successMessage = "Variant was succesfully deleted" + successMessage = "Variant was successfully deleted" ) => { deleteVariant.mutate(variantId, { onSuccess: () => { diff --git a/packages/generated/client-types/src/lib/models/CustomShippingOption.ts b/packages/generated/client-types/src/lib/models/CustomShippingOption.ts index 332bceaa00..0a85e8b6e7 100644 --- a/packages/generated/client-types/src/lib/models/CustomShippingOption.ts +++ b/packages/generated/client-types/src/lib/models/CustomShippingOption.ts @@ -7,7 +7,7 @@ import type { Cart } from "./Cart" import type { ShippingOption } from "./ShippingOption" /** - * Custom Shipping Options are overriden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option. + * Custom Shipping Options are overridden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option. */ export interface CustomShippingOption { /** @@ -23,7 +23,7 @@ export interface CustomShippingOption { */ shipping_option_id: string /** - * The details of the overriden shipping options. + * The details of the overridden shipping options. */ shipping_option?: ShippingOption | null /** diff --git a/packages/medusa-js/src/resources/carts.ts b/packages/medusa-js/src/resources/carts.ts index 0c8c65f72f..bc7fca37f6 100644 --- a/packages/medusa-js/src/resources/carts.ts +++ b/packages/medusa-js/src/resources/carts.ts @@ -17,7 +17,7 @@ class CartsResource extends BaseResource { /** * Adds a shipping method to cart * @param {string} cart_id Id of cart - * @param {StorePostCartsCartShippingMethodReq} payload Containg id of shipping option and optional data + * @param {StorePostCartsCartShippingMethodReq} payload Contains id of shipping option and optional data * @param customHeaders * @return {ResponsePromise} */ diff --git a/packages/medusa-js/src/resources/shipping-options.ts b/packages/medusa-js/src/resources/shipping-options.ts index 9035669708..280f1479de 100644 --- a/packages/medusa-js/src/resources/shipping-options.ts +++ b/packages/medusa-js/src/resources/shipping-options.ts @@ -8,7 +8,7 @@ import BaseResource from "./base" class ShippingOptionsResource extends BaseResource { /** - * @description Lists shiping options available for a cart + * @description Lists shipping options available for a cart * @param {string} cart_id * @param customHeaders * @return {ResponsePromise} @@ -19,7 +19,7 @@ class ShippingOptionsResource extends BaseResource { } /** - * @description Lists shiping options available + * @description Lists shipping options available * @param {StoreGetShippingOptionsParams} query * @param customHeaders * @return {ResponsePromise} diff --git a/packages/medusa-source-shopify/src/services/__tests__/__snapshots__/shopify-product.js.snap b/packages/medusa-source-shopify/src/services/__tests__/__snapshots__/shopify-product.js.snap index f8add2c1cb..a1e095cbc7 100644 --- a/packages/medusa-source-shopify/src/services/__tests__/__snapshots__/shopify-product.js.snap +++ b/packages/medusa-source-shopify/src/services/__tests__/__snapshots__/shopify-product.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`ShopifyProductService normalizeProduct_ succesfully normalizes a product from Shopify 1`] = ` +exports[`ShopifyProductService normalizeProduct_ successfully normalizes a product from Shopify 1`] = ` Object { "description": "

It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.

", "external_id": "shopify_ipod", diff --git a/packages/medusa-source-shopify/src/services/__tests__/shopify-product.js b/packages/medusa-source-shopify/src/services/__tests__/shopify-product.js index 19113b1a6e..21afb6bf35 100644 --- a/packages/medusa-source-shopify/src/services/__tests__/shopify-product.js +++ b/packages/medusa-source-shopify/src/services/__tests__/shopify-product.js @@ -18,7 +18,7 @@ describe("ShopifyProductService", () => { jest.clearAllMocks() }) - it("succesfully normalizes a product from Shopify", async () => { + it("successfully normalizes a product from Shopify", async () => { const data = await ShopifyClientServiceMock.get({ path: "products/ipod" }) const normalized = shopifyProductService.normalizeProduct_(data) @@ -41,7 +41,7 @@ describe("ShopifyProductService", () => { jest.clearAllMocks() }) - it("succesfully creates a product from Shopify", async () => { + it("successfully creates a product from Shopify", async () => { const data = shopifyProducts.new_ipod const product = await shopifyProductService.create(data) diff --git a/packages/medusa/src/api/routes/admin/discounts/__tests__/create-discount.js b/packages/medusa/src/api/routes/admin/discounts/__tests__/create-discount.js index 70a02bec9f..2ac77cc2ed 100644 --- a/packages/medusa/src/api/routes/admin/discounts/__tests__/create-discount.js +++ b/packages/medusa/src/api/routes/admin/discounts/__tests__/create-discount.js @@ -238,7 +238,7 @@ describe("POST /admin/discounts", () => { }) }) - describe("succesfully creates a dynamic discount without setting valid duration", () => { + describe("successfully creates a dynamic discount without setting valid duration", () => { let subject beforeAll(async () => { diff --git a/packages/medusa/src/api/routes/store/carts/__tests__/refresh-payment-session.js b/packages/medusa/src/api/routes/store/carts/__tests__/refresh-payment-session.js index 037ba8a893..08585002ae 100644 --- a/packages/medusa/src/api/routes/store/carts/__tests__/refresh-payment-session.js +++ b/packages/medusa/src/api/routes/store/carts/__tests__/refresh-payment-session.js @@ -27,7 +27,7 @@ describe("POST /store/carts/:id/payment-session/update", () => { ) }) - it("calls CartService retrive", () => { + it("calls CartService retrieve", () => { expect(CartServiceMock.retrieveWithTotals).toHaveBeenCalledTimes(1) }) diff --git a/packages/medusa/src/api/routes/store/carts/__tests__/update-payment-session.js b/packages/medusa/src/api/routes/store/carts/__tests__/update-payment-session.js index 00dbe6edc6..e0a30e1884 100644 --- a/packages/medusa/src/api/routes/store/carts/__tests__/update-payment-session.js +++ b/packages/medusa/src/api/routes/store/carts/__tests__/update-payment-session.js @@ -41,7 +41,7 @@ describe("POST /store/carts/:id/payment-session/update", () => { ) }) - it("calls CartService retrive", () => { + it("calls CartService retrieve", () => { expect(CartServiceMock.retrieveWithTotals).toHaveBeenCalledTimes(1) }) diff --git a/packages/medusa/src/migrations/1679950645254-product-domain-impoved-indexes.ts b/packages/medusa/src/migrations/1679950645254-product-domain-impoved-indexes.ts index 7bb8f9e3cb..bbc572998b 100644 --- a/packages/medusa/src/migrations/1679950645254-product-domain-impoved-indexes.ts +++ b/packages/medusa/src/migrations/1679950645254-product-domain-impoved-indexes.ts @@ -5,7 +5,7 @@ export class productDomainImprovedIndexes1679950645254 { public async up(queryRunner: QueryRunner): Promise { // If you want to reset it to 'on' run 'set enable_nestloop to on;' - // Improve large IN queries, since we have separate queries everytime it is better to turn it off + // Improve large IN queries, since we have separate queries every time it is better to turn it off await queryRunner.query(` /* You can turn of this settings if you are in a context with lots of variants) set enable_nestloop to off; */ diff --git a/packages/medusa/src/models/custom-shipping-option.ts b/packages/medusa/src/models/custom-shipping-option.ts index 366bc24ce9..a4153f1e4e 100644 --- a/packages/medusa/src/models/custom-shipping-option.ts +++ b/packages/medusa/src/models/custom-shipping-option.ts @@ -48,7 +48,7 @@ export class CustomShippingOption extends SoftDeletableEntity { /** * @schema CustomShippingOption * title: "Custom Shipping Option" - * description: "Custom Shipping Options are overriden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option." + * description: "Custom Shipping Options are overridden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option." * type: object * required: * - cart_id @@ -73,7 +73,7 @@ export class CustomShippingOption extends SoftDeletableEntity { * type: string * example: so_01G1G5V27GYX4QXNARRQCW1N8T * shipping_option: - * description: The details of the overriden shipping options. + * description: The details of the overridden shipping options. * x-expandable: "shipping_option" * nullable: true * $ref: "#/components/schemas/ShippingOption" diff --git a/packages/medusa/src/services/auth.ts b/packages/medusa/src/services/auth.ts index 28388a2a74..1be477dadd 100644 --- a/packages/medusa/src/services/auth.ts +++ b/packages/medusa/src/services/auth.ts @@ -46,7 +46,7 @@ class AuthService extends TransactionBaseService { * @param {string} token - the api_token of the user to authenticate * @return {AuthenticateResult} * success: whether authentication succeeded - * user: the user document if authentication succeded + * user: the user document if authentication succeeded * error: a string with the error message */ async authenticateAPIToken(token: string): Promise { @@ -89,7 +89,7 @@ class AuthService extends TransactionBaseService { * @param {string} password - the password of the user * @return {AuthenticateResult} * success: whether authentication succeeded - * user: the user document if authentication succeded + * user: the user document if authentication succeeded * error: a string with the error message */ async authenticate( @@ -138,7 +138,7 @@ class AuthService extends TransactionBaseService { * @param {string} password - the password of the user * @return {{ success: (bool), customer: (object | undefined) }} * success: whether authentication succeeded - * user: the user document if authentication succeded + * user: the user document if authentication succeeded * error: a string with the error message */ async authenticateCustomer( diff --git a/packages/medusa/src/services/cart.ts b/packages/medusa/src/services/cart.ts index 5afa284384..793cf3f652 100644 --- a/packages/medusa/src/services/cart.ts +++ b/packages/medusa/src/services/cart.ts @@ -605,7 +605,7 @@ class CartService extends TransactionBaseService { * @param cartId - the id of the cart that we will add to * @param lineItem - the line item to add. * @param config - * validateSalesChannels - should check if product belongs to the same sales chanel as cart + * validateSalesChannels - should check if product belongs to the same sales channel as cart * (if cart has associated sales channel) * @return the result of the update operation * @deprecated Use {@link addOrUpdateLineItems} instead. @@ -746,7 +746,7 @@ class CartService extends TransactionBaseService { * @param cartId - the id of the cart that we will add to * @param lineItems - the line items to add. * @param config - * validateSalesChannels - should check if product belongs to the same sales chanel as cart + * validateSalesChannels - should check if product belongs to the same sales channel as cart * (if cart has associated sales channel) * @return the result of the update operation */ @@ -1985,7 +1985,7 @@ class CartService extends TransactionBaseService { /** * Removes a payment session from the cart. * @param cartId - the id of the cart to remove from - * @param providerId - the id of the provider whoose payment session + * @param providerId - the id of the provider whose payment session * should be removed. * @return the resulting cart. */ @@ -2037,7 +2037,7 @@ class CartService extends TransactionBaseService { /** * Refreshes a payment session on a cart * @param cartId - the id of the cart to remove from - * @param providerId - the id of the provider whoose payment session + * @param providerId - the id of the provider whose payment session * should be removed. * @return {Promise} the resulting cart. */ diff --git a/packages/medusa/src/services/fulfillment-provider.ts b/packages/medusa/src/services/fulfillment-provider.ts index afd7b20805..03b36a8fdd 100644 --- a/packages/medusa/src/services/fulfillment-provider.ts +++ b/packages/medusa/src/services/fulfillment-provider.ts @@ -34,7 +34,7 @@ type CalculateOptionPriceInput = { } /** - * Helps retrive fulfillment providers + * Helps retrieve fulfillment providers */ class FulfillmentProviderService extends TransactionBaseService { protected readonly container_: FulfillmentProviderContainer diff --git a/packages/medusa/src/services/new-totals.ts b/packages/medusa/src/services/new-totals.ts index bc13e0db96..aa192f4cde 100644 --- a/packages/medusa/src/services/new-totals.ts +++ b/packages/medusa/src/services/new-totals.ts @@ -720,7 +720,7 @@ export default class NewTotalsService extends TransactionBaseService { } /** - * Calculate and return the shipping method totals legacy using teh tax rate + * Calculate and return the shipping method totals legacy using the tax rate * @param shippingMethod * @param calculationContext * @param taxRate diff --git a/packages/medusa/src/services/notification.ts b/packages/medusa/src/services/notification.ts index c515f88c5b..f7faa0bc64 100644 --- a/packages/medusa/src/services/notification.ts +++ b/packages/medusa/src/services/notification.ts @@ -211,7 +211,7 @@ class NotificationService extends TransactionBaseService { * method. Persists the Notification in the database. * @param event - the name of the event * @param eventData - the data the event was sent with - * @param providerId - the provider that should hande the event. + * @param providerId - the provider that should handle the event. * @return the created notification */ async send( diff --git a/packages/medusa/src/services/order.ts b/packages/medusa/src/services/order.ts index 8d29dfecf8..7fff4cbcf9 100644 --- a/packages/medusa/src/services/order.ts +++ b/packages/medusa/src/services/order.ts @@ -850,8 +850,7 @@ class OrderService extends TransactionBaseService { * have been created in regards to the shipment. * @param orderId - the id of the order that has been shipped * @param fulfillmentId - the fulfillment that has now been shipped - * @param trackingLinks - array of tracking numebers - * associated with the shipment + * @param trackingLinks - array of tracking numbers associated with the shipment * @param config - the config of the order that has been shipped * @return the resulting order following the update. */ @@ -1957,8 +1956,8 @@ class OrderService extends TransactionBaseService { * Handles receiving a return. This will create a * refund to the customer. If the returned items don't match the requested * items the return status will be updated to requires_action. This behaviour - * is useful in sitautions where a custom refund amount is requested, but the - * retuned items are not matching the requested items. Setting the + * is useful in situations where a custom refund amount is requested, but the + * returned items are not matching the requested items. Setting the * allowMismatch argument to true, will process the return, ignoring any * mismatches. * @param orderId - the order to return. diff --git a/packages/medusa/src/services/product-category.ts b/packages/medusa/src/services/product-category.ts index ac85012777..e2ccc12db4 100644 --- a/packages/medusa/src/services/product-category.ts +++ b/packages/medusa/src/services/product-category.ts @@ -516,7 +516,7 @@ class ProductCategoryService extends TransactionBaseService { | UpdateProductCategoryInput ): Promise { // Typeorm only updates mpath when the category entity of the parent - // is passed into create/save. For this reason, everytime we create a + // is passed into create/save. For this reason, every time we create a // category, we must fetch the entity and push to create const parentCategoryId = productCategoryInput.parent_category_id diff --git a/packages/medusa/src/services/return.ts b/packages/medusa/src/services/return.ts index 57d0e1a852..e4a81e2381 100644 --- a/packages/medusa/src/services/return.ts +++ b/packages/medusa/src/services/return.ts @@ -566,8 +566,8 @@ class ReturnService extends TransactionBaseService { * Registers a previously requested return as received. This will create a * refund to the customer. If the returned items don't match the requested * items the return status will be updated to requires_action. This behaviour - * is useful in sitautions where a custom refund amount is requested, but the - * retuned items are not matching the requested items. Setting the + * is useful in situations where a custom refund amount is requested, but the + * returned items are not matching the requested items. Setting the * allowMismatch argument to true, will process the return, ignoring any * mismatches. * @param returnId - the orderId to return to diff --git a/packages/utils/src/dal/mikro-orm/mikro-orm-repository.ts b/packages/utils/src/dal/mikro-orm/mikro-orm-repository.ts index f0c29eedc4..1ab617ceaf 100644 --- a/packages/utils/src/dal/mikro-orm/mikro-orm-repository.ts +++ b/packages/utils/src/dal/mikro-orm/mikro-orm-repository.ts @@ -132,7 +132,7 @@ export abstract class MikroOrmAbstractTreeRepositoryBase } /** - * Priviliged extends of the abstract classes unless most of the methods can't be implemented + * Privileged extends of the abstract classes unless most of the methods can't be implemented * in your repository. This base repository is also used to provide a base repository * injection if needed to be able to use the common methods without being related to an entity. * In this case, none of the method will be implemented except the manager and transaction diff --git a/www/api-reference/specs/admin/components/schemas/CustomShippingOption.yaml b/www/api-reference/specs/admin/components/schemas/CustomShippingOption.yaml index 66c68e1f1f..472d04273b 100644 --- a/www/api-reference/specs/admin/components/schemas/CustomShippingOption.yaml +++ b/www/api-reference/specs/admin/components/schemas/CustomShippingOption.yaml @@ -1,6 +1,6 @@ title: Custom Shipping Option description: >- - Custom Shipping Options are overriden Shipping Options. Admins can attach a + Custom Shipping Options are overridden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option. type: object @@ -29,7 +29,7 @@ properties: type: string example: so_01G1G5V27GYX4QXNARRQCW1N8T shipping_option: - description: The details of the overriden shipping options. + description: The details of the overridden shipping options. x-expandable: shipping_option nullable: true $ref: ./ShippingOption.yaml diff --git a/www/api-reference/specs/store/components/schemas/CustomShippingOption.yaml b/www/api-reference/specs/store/components/schemas/CustomShippingOption.yaml index 66c68e1f1f..472d04273b 100644 --- a/www/api-reference/specs/store/components/schemas/CustomShippingOption.yaml +++ b/www/api-reference/specs/store/components/schemas/CustomShippingOption.yaml @@ -1,6 +1,6 @@ title: Custom Shipping Option description: >- - Custom Shipping Options are overriden Shipping Options. Admins can attach a + Custom Shipping Options are overridden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option. type: object @@ -29,7 +29,7 @@ properties: type: string example: so_01G1G5V27GYX4QXNARRQCW1N8T shipping_option: - description: The details of the overriden shipping options. + description: The details of the overridden shipping options. x-expandable: shipping_option nullable: true $ref: ./ShippingOption.yaml diff --git a/www/docs/content/deployments/server/deploying-on-digital-ocean.md b/www/docs/content/deployments/server/deploying-on-digital-ocean.md index db80b84271..9b566372bd 100644 --- a/www/docs/content/deployments/server/deploying-on-digital-ocean.md +++ b/www/docs/content/deployments/server/deploying-on-digital-ocean.md @@ -42,7 +42,7 @@ Change the `start` script in `package.json` to the following: "start": "npm run build && medusa migrations run && medusa start" ``` -This ensures that Migrations are run everytime the Medusa backend is restarted. +This ensures that Migrations are run every time the Medusa backend is restarted. --- diff --git a/www/docs/content/development/backend/configurations.md b/www/docs/content/development/backend/configurations.md index 9109f4f649..5acdfdecf5 100644 --- a/www/docs/content/development/backend/configurations.md +++ b/www/docs/content/development/backend/configurations.md @@ -259,7 +259,7 @@ postgres://[user][:password]@[host][:port]/[dbname] Where: -- `[user]`: (required) your PostgreSQL username. If not specified, the system's username is used by default. The database user that you use must have create privileges. If you're using the `postgres` superuser, then it should have these privileges by default. Otherwise, make sure to grant your user create priviliges. You can learn how to do that in [PostgreSQL's documentation](https://www.postgresql.org/docs/current/ddl-priv.html). +- `[user]`: (required) your PostgreSQL username. If not specified, the system's username is used by default. The database user that you use must have create privileges. If you're using the `postgres` superuser, then it should have these privileges by default. Otherwise, make sure to grant your user create privileges. You can learn how to do that in [PostgreSQL's documentation](https://www.postgresql.org/docs/current/ddl-priv.html). - `[:password]`: an optional password for the user. When provided, make sure to put `:` before the password. - `[host]`: (required) your PostgreSQL host. When run locally, it should be `localhost`. - `[:post]`: an optional port that the PostgreSQL server is listening on. By default, it's `5432`. When provided, make sure to put `:` before the port. diff --git a/www/docs/content/development/batch-jobs/index.mdx b/www/docs/content/development/batch-jobs/index.mdx index 1fd8cb1bba..fee00a8fc3 100644 --- a/www/docs/content/development/batch-jobs/index.mdx +++ b/www/docs/content/development/batch-jobs/index.mdx @@ -55,7 +55,7 @@ A batch job’s flow from creation to completion is: 4. If `dry_run` is not set in the Create Batch Job request in step one or if it is set to `false`, the batch job will automatically be confirmed after processing. Otherwise, if `dry_run` is set to `true`, the batch job can be confirmed using the [Confirm Batch Job API](https://docs.medusajs.com/api/admin#batch-jobs_postbatchjobsbatchjobconfirmprocessing) endpoint. 5. Once the batch job is confirmed, the batch job’s status is changed to `confirmed` and the `batch.confirmed` event is triggered by the `BatchJobService`. 6. The `BatchJobSubscriber` handles the `confirmed` event. It resolves the batch job strategy, then uses it to process the batch job. -7. Once the batch job is processed succesfully, the batch job has the status `completed`. +7. Once the batch job is processed successfully, the batch job has the status `completed`. You can track the progress of the batch job at any point using the [Retrieve Batch Job](https://docs.medusajs.com/api/admin#batch-jobs_getbatchjobsbatchjob) endpoint. diff --git a/www/docs/content/development/plugins/create.mdx b/www/docs/content/development/plugins/create.mdx index 7d48618030..69599984be 100644 --- a/www/docs/content/development/plugins/create.mdx +++ b/www/docs/content/development/plugins/create.mdx @@ -9,7 +9,7 @@ import LearningPath from '@site/src/components/LearningPath'; # How to Create a Plugin -In this document, you’ll learn how to create a plugin and some tips for develoment. If you’re interested to learn more about what plugins are and where to find available official and community plugins, check out the [overview document](./overview.mdx). +In this document, you’ll learn how to create a plugin and some tips for development. If you’re interested to learn more about what plugins are and where to find available official and community plugins, check out the [overview document](./overview.mdx). Alternatively, you can follow this recipe to create a plugin with step-by-step guidance. @@ -362,7 +362,7 @@ class MyService extends TransactionBaseService { } ``` -You can also access the options in your plugin's endpoints. The second parameter that the function declared in `src/api/index.ts` receives is an object including your plugin's configrations. +You can also access the options in your plugin's endpoints. The second parameter that the function declared in `src/api/index.ts` receives is an object including your plugin's configurations. For example: diff --git a/www/docs/content/development/services/create-service.mdx b/www/docs/content/development/services/create-service.mdx index 1a42a4d447..011b67106a 100644 --- a/www/docs/content/development/services/create-service.mdx +++ b/www/docs/content/development/services/create-service.mdx @@ -164,7 +164,7 @@ As the dependency container in Medusa is built on top of [awilix](https://github There are three lifetime types: -1. `Lifetime.TRANSIENT`: when used, a new instance of the service is created everytime it is resolved in other resources from the dependency container. +1. `Lifetime.TRANSIENT`: when used, a new instance of the service is created every time it is resolved in other resources from the dependency container. 2. `Lifetime.SCOPED`: (default for custom services) when used, an instance of the service is created and reused in the scope of the dependency container. So, when the service is resolved in other resources that share that dependency container, the same instance of the service will be returned. 3. `Lifetime.SINGLETON`: (default for core services) when used, the service is always reused, regardless of the scope. An instance of the service is cached in the root container. @@ -218,7 +218,7 @@ export default PostService ## Pagination, Filtering, and Relations -Often, your service will provide methods that retrieve a list of items, which can be used by endpoints. In these methods, it can be helpful to provide filtering and pagination utilities that can be used by endpoints or any other resources utilitizing this service. +Often, your service will provide methods that retrieve a list of items, which can be used by endpoints. In these methods, it can be helpful to provide filtering and pagination utilities that can be used by endpoints or any other resources utilizing this service. The `@medusajs/medusa` package provides the following generic types that you can use to create the signature of your method that accepts filtering and pagination parameters: diff --git a/www/docs/content/development/strategies/overview.mdx b/www/docs/content/development/strategies/overview.mdx index f00616b4f9..e225f01242 100644 --- a/www/docs/content/development/strategies/overview.mdx +++ b/www/docs/content/development/strategies/overview.mdx @@ -40,7 +40,7 @@ export default async (req, res) => { } ``` -When a strategy is overriden, dependency injection then resolves the strategy (in the code example above, `CartCompletionStrategy`) to the custom strategy that the developer created. Then, the method (in the code example above, `complete`) of the custom strategy will be executed instead of the one defined in the core package. +When a strategy is overridden, dependency injection then resolves the strategy (in the code example above, `CartCompletionStrategy`) to the custom strategy that the developer created. Then, the method (in the code example above, `complete`) of the custom strategy will be executed instead of the one defined in the core package. ## Custom Development diff --git a/www/docs/content/plugins/notifications/mailchimp.md b/www/docs/content/plugins/notifications/mailchimp.md index 0466a98a19..9308fe57e1 100644 --- a/www/docs/content/plugins/notifications/mailchimp.md +++ b/www/docs/content/plugins/notifications/mailchimp.md @@ -169,7 +169,7 @@ export default function NewsletterForm() { email, }) .then((e) => { - alert("Subscribed sucessfully!") + alert("Subscribed successfully!") setEmail("") }) .catch((e) => { diff --git a/www/docs/content/upgrade-guides/admin/1-0-0.md b/www/docs/content/upgrade-guides/admin/1-0-0.md index 06d3070ee4..e07e86f8b6 100644 --- a/www/docs/content/upgrade-guides/admin/1-0-0.md +++ b/www/docs/content/upgrade-guides/admin/1-0-0.md @@ -43,7 +43,7 @@ You can learn how to deploy the Admin to a host through the [Vercel Deployment G ### Preserving Customizations in the Admin -If you have made customizations to the Admin, it is recommend that you keep your current setup and wait for the next minor release of Medusa Admin, that will introduce a more seamless way to extend the UI. Migrating customizations to the new admin plugin is not supported, and will require manaully patching any changes or forking the Admin plugin. The current Admin repository will still receive critical bug fixes while in maintenance, but it will not be updated with new features. If you can forego the latest features introduced in 1.8 you can continue to use the standalone admin repository for now. +If you have made customizations to the Admin, it is recommend that you keep your current setup and wait for the next minor release of Medusa Admin, that will introduce a more seamless way to extend the UI. Migrating customizations to the new admin plugin is not supported, and will require manually patching any changes or forking the Admin plugin. The current Admin repository will still receive critical bug fixes while in maintenance, but it will not be updated with new features. If you can forego the latest features introduced in 1.8 you can continue to use the standalone admin repository for now. While it's generally not recommended, if you want to maintain your customizations while upgrading to the latest version of Medusa Admin, you have two options: