No description
Find a file
Adrian Pilarczyk 453baf78a1
feat: finalize order process (#355)
* feat:  add dummy order-created

* refactor: 🔥 unused private-providers-configuration-service

* feat:  add dummy order-fulfilled

* refactor: 🚚 move provider-config

* refactor: 🚚 crudSettingsConfigurator -> crudSettingsManager

* refactor: ♻️ [tax-provider].ts -> [tax-provider]-webhook.service.ts

* feat:  add dummy createOrder

* refactor: ♻️ distinguish between salesOrder and salesInvoice in avatax

* refactor: 🚚 [provider]-calculate.ts to [provider]-transform.ts

* refactor: 🚚 ResponseTaxPayload to tax-provider-webhook.ts

* refactor: 🚚 ResponseTaxPayload -> CalculateTaxesResponse

* refactor: ♻️ webhooks with active-tax-provider.service.ts

* feat:  add skeleton orderCreate functionality

* refactor: ♻️ [provider]-transform.ts -> [provider]-[webhook]-transform.ts

* feat:  add order-fulfilled with avatax call

* refactor: ♻️ move getActiveTaxProvider to active-tax-provider

* refactor: 🏷️ export types for [provider]-client function args

* refactor: 🚚 UpdateAppMetadata -> UpdateMetadata

* feat:  fulfill order with id from metadata

* build: ⬆️ upgrade avatax

* feat:  commit transaction on fulfill in avatax

* fix: 🐛 return of webhooks to ensure valid retry behavior

* refactor: 🚚 [provider]-[webhook]-transform -> [provider]-[webhook]-map

* refactor: 🏷️ export types of avatax-calculate-taxes mapPayload

* refactor: ♻️ extract address-map to separate function

* refactor: ♻️ remove schema.ts

* refactor: ♻️ move addressSchema to channels-config.ts

* feat:  add tests & placeholder tests for avatax & taxjar maps

* refactor: ♻️ throw error if no metadata

* refactor: ♻️ change EXTERNAL_ID_KEY to PROVIDER_ORDER_ID_KEY

add comments

* refactor: ♻️ comments -> it.todo in tests

* refactor: 💡 add comment about shipping_item_code

* refactor:  add todo items for tests

* refactor: ♻️ remove export and add sumLines to taxJarOrderCreated

* refactor: ♻️ address-map with avatarAddressFactory

* docs: 💡 add comment about MOCKED_SALEOR_PAYLOAD

* refactor: ♻️ remove export of mapLines and add to avataxCalculateTaxes

* style: 🎨 add newline-after-var warn to eslint-config-saleor

* style: 🎨 autofix newline-after-var in taxes

* test:  restructure tests according to new naming in address-map

* refactor: ♻️ add shippingItemCode to avataxCalculateTaxes wrapper object

* refactor: 🚚 payloadProps -> payloadArgs

* refactor: ♻️ add Maps suffix to map wrapper objects

* refactor: ♻️ remove data: null from ActiveTaxProviderResult

* refactor: ♻️ maintain the object hierarchy in tests

* refactor: ♻️ refactor webhook responses with WebhookResponseFactory

* build: ⬆️ vitest

* test:  add tests for get-app-config-test

* test:  add tests for getActiveTaxProvider

* refactor: ♻️ use address fragment for taxBase and order

* refactor: ♻️ rename WebhookResponseFactory -> WebhookResponse

* style: 👷 add multiline-comment-style

* fix: 🐛 dummy test in get-app-config.test.ts

* refactor: ♻️ rename AddressFragment -> Address

* refactor: ♻️ use debug instead of error in webhook-response noRetry

* refactor: ♻️ refactor as variables in mutation

* build: 👷 add changeset

* refactor: ♻️ split changesets in two

* build: ⬆️ vite

* build: ⬆️ vite && vitest in all apps
2023-04-17 13:58:21 +02:00
.changeset feat: finalize order process (#355) 2023-04-17 13:58:21 +02:00
.github Introduce CRM App (#292) 2023-04-06 09:26:56 +02:00
.husky Add prettier on pre-commit & reformat codebase (#137) 2023-02-10 11:13:59 +01:00
apps feat: finalize order process (#355) 2023-04-17 13:58:21 +02:00
packages feat: finalize order process (#355) 2023-04-17 13:58:21 +02:00
templates Setup Turborepo boilerplate 2023-02-07 18:57:26 +01:00
.eslintignore Update UI to match new dashboard style (#138) 2023-02-21 11:34:30 +01:00
.eslintrc.js Add shared eslint 2023-02-07 19:11:48 +01:00
.gitignore Invoices: Add debug logs and better temp pdf location (#265) 2023-03-15 09:38:13 +01:00
.prettierignore Add prettier on pre-commit & reformat codebase (#137) 2023-02-10 11:13:59 +01:00
.prettierrc Move config files 2023-02-07 19:27:17 +01:00
CODEOWNERS Move config files 2023-02-07 19:27:17 +01:00
LICENSE Move config files 2023-02-07 19:27:17 +01:00
package.json Update next to 13.3.0 (#388) 2023-04-14 11:27:25 +02:00
pnpm-lock.yaml feat: finalize order process (#355) 2023-04-17 13:58:21 +02:00
pnpm-workspace.yaml Setup Turborepo boilerplate 2023-02-07 18:57:26 +01:00
README.md Move the development docs to docs.saleor.io (#344) 2023-03-29 12:32:01 +02:00
turbo.json Change turborepo config to use local turbo.json (#353) 2023-04-13 12:44:27 +02:00

Saleor Apps

Saleor Apps

The central space for Saleor Apps, Integrations and Marketplace.

Overview

This repository serves as a starting point in the exploration of Saleor apps.

Saleor apps are separate applications that use GraphQL to talk to the Saleor server and receive webhooks with event notifications from Saleor.

docs.saleor.io

Apps list

In the apps folder, you will find the following applications:

  • data-importer - import data from CSV to Saleor.
  • invoices - generate invoice PDF for each order.
  • klaviyo - send Saleor events to Klaviyo, where you can notify the customers.
  • emails-and-messages - notifications and email communication with customers.
  • search - connect Saleor with search engines.
  • slack - get notifications on Slack channel from Saleor events.
  • taxes - calculate order and checkout taxes using external services.
  • cms - exports products from Saleor to CMS.

Development

You can find the documentation for saleor/apps on docs.saleor.io.