chore: fix typos (#4877)
* Chore: Fix typos * Add generated resources --------- Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
1 parent
359bd290ba
commit
a0bbc1893b
36 files changed
+52
-53
No files matched your search
+1
-1
@@ -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()
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
@@ -93,7 +93,7 @@ const ResetTokenCard: React.FC<ResetTokenCardProps> = ({ goBack }) => {
|
||||
</div>
|
||||
<div className="gap-y-2xsmall flex flex-col">
|
||||
<span className="inter-base-regular">
|
||||
Succesfully sent you an email
|
||||
Successfully sent you an email
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ export const ConditionsProvider = ({
|
||||
{
|
||||
onSuccess: () => {
|
||||
notification(
|
||||
"Condtions were succesfully added",
|
||||
"Conditions were successfully added",
|
||||
"Discount conditions updated",
|
||||
"success"
|
||||
)
|
||||
|
||||
@@ -53,7 +53,7 @@ const EditGiftCardModal = ({
|
||||
onSuccess: () => {
|
||||
notification(
|
||||
"Updated Gift card",
|
||||
"Gift card was succesfully updated",
|
||||
"Gift card was successfully updated",
|
||||
"success"
|
||||
)
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
},
|
||||
|
||||
@@ -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: () => {
|
||||
|
||||
@@ -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
|
||||
/**
|
||||
|
||||
@@ -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<StoreCartsRes>}
|
||||
*/
|
||||
|
||||
@@ -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<StoreShippingOptionsListRes>}
|
||||
@@ -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<StoreShippingOptionsListRes>}
|
||||
|
||||
+1
-1
@@ -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": "<p>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.</p>",
|
||||
"external_id": "shopify_ipod",
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ export class productDomainImprovedIndexes1679950645254
|
||||
{
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
// 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; */
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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<AuthenticateResult> {
|
||||
@@ -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(
|
||||
|
||||
@@ -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<void>} the resulting cart.
|
||||
*/
|
||||
|
||||
@@ -34,7 +34,7 @@ type CalculateOptionPriceInput = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Helps retrive fulfillment providers
|
||||
* Helps retrieve fulfillment providers
|
||||
*/
|
||||
class FulfillmentProviderService extends TransactionBaseService {
|
||||
protected readonly container_: FulfillmentProviderContainer
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -516,7 +516,7 @@ class ProductCategoryService extends TransactionBaseService {
|
||||
| UpdateProductCategoryInput
|
||||
): Promise<CreateProductCategoryInput | UpdateProductCategoryInput> {
|
||||
// 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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -132,7 +132,7 @@ export abstract class MikroOrmAbstractTreeRepositoryBase<T = any>
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
Reference in new issue
Block a user