Shahed Nasser
eed88c95ec
docs: improved commerce modules [5/5] ( #9592 )
...
- Improve remaining commerce modules
- Other: add a note about using methods of the modules' main services.
2024-10-16 10:25:21 +00:00
Shahed Nasser
2b77bd85a6
docs-util: fixes for OAS docs generator + framework typedoc config ( #9603 )
...
* fix order replaced in OAS response + framework tsdoc config
* fix for some types
2024-10-16 12:17:28 +03:00
Shahed Nasser
714b9e6c98
docs: update resolve path to use src ( #9605 )
...
Update path used in `resolve` of modules to start with `src`
2024-10-16 09:10:30 +00:00
Shahed Nasser
6efb5897dc
docs: fix package names in module registration ( #9590 )
...
* docs: fix package names in module registration
* update references
2024-10-16 09:05:07 +02:00
Shahed Nasser
b6df24463d
docs: updates for breaking changes ( #9558 )
...
- Update modules registration
- Update `medusa-config.js` to `medusa-config.ts`
- Update the out directory in the admin deployment guide
- Update logger imports
- Other fixes
Note: will need to re-generate references afterwards
Closes #9548
2024-10-14 10:40:30 +00:00
Shahed Nasser
dd162d69be
docs-util: fix import in generated workflow hook snippet ( #9499 )
2024-10-11 17:17:02 +02:00
Shahed Nasser
bc8de8e5b1
docs: add section on testing providers ( #9453 )
2024-10-04 10:29:45 +03:00
Shahed Nasser
5fb9c1f82e
chore(oas): general fixes to OAS ( #9413 )
...
General fixes to OAS
2024-10-02 15:21:40 +00:00
Shahed Nasser
8686ca9d12
docs: updates and fixes in utils + fulfillment provider changes ( #9347 )
...
* fix config + update deps
* rearrange sidebar + add to examples
2024-10-02 10:27:48 +03:00
Shahed Nasser
1e144e9c08
chore(oas): clean up oas ( #9354 )
...
* clean up generated oas
* fix issues in docs-util
* more fixes
* align max level
* validation fix
* add missing summaries
* fix validation
* fix exchanges route
2024-10-02 10:27:02 +03:00
Shahed Nasser
2e16949979
docs: update imports and package names across docs ( #9375 )
...
* docs: update imports and package names across docs
+ reference configs
* generate files
* fix import
* change preview to rc
2024-10-01 11:03:42 +02:00
Shahed Nasser
bd4d2fd554
docs-util: fixes following packages reorg ( #9326 )
...
- Typescript config aren't picked up properly anymore since they're moved to `_tsconfig.base.json` in the root. So, we now read the config from the config file.
- Update Typescript version in the `utils` monorepo to match that of the root monorepo
2024-09-26 17:22:08 +00:00
Shahed Nasser
be1adac024
chore(oas): [18/n] improve oas schemas ( #9311 )
...
Improve OAS schemas [18/n]
2024-09-26 14:08:10 +00:00
Shahed Nasser
af34bf6c0c
chore(oas): [19/n] improve oas schemas ( #9317 )
...
- Improve OAS schemas [19/n]
- docs-generator: combine `Date | string` type to just `Date`.
2024-09-26 13:44:57 +00:00
Shahed Nasser
d352ea8122
chore(oas): [16/n] improve oas schemas ( #9272 )
...
- Improve OAS schemas [16/n]
- fixes and improvements to docs-generator tool
2024-09-26 13:02:32 +00:00
Adrien de Peretti
e096feb7d5
chore: Update modules deps ( #9286 )
2024-09-26 11:14:35 +05:30
Shahed Nasser
6a2a105cf8
fix(oas): support additional props, fix circular references patch, and other fixes ( #9213 )
...
* chore(oas): support additional props, fix circular references patch, and other fixes
* fix description
* description fixes
2024-09-20 17:22:19 +03:00
Shahed Nasser
4923a6e823
chore(oas): [12/n] improve oas schemas ( #9200 )
...
- improve OAS schemas [12/n]
- Support ignoring properties in type if it has the `@ignore` jsdoc tag.
2024-09-19 14:25:16 +00:00
Shahed Nasser
78eaed70e5
chore(oas): [8/n] improve oas schemas ( #9163 )
...
Improve OAS schemas [8/n]
2024-09-17 17:26:41 +00:00
Shahed Nasser
cb79a5dbff
docs-util: fixes for circular references, PAK in examples, namespaces ( #9091 )
...
- Fix circular references in generated OAS comments by cloning objects
- Add publishable API key in the header of store cURL examples + change the admin authentication header to use bearer tokens.
- Add plugin to generate namespaces from the `@customNamespace` tag in TSDocs, this was available before but was removed.
- Other fixes related to re-using schemas, overwritten descriptions, and smaller fixes
2024-09-16 17:55:05 +00:00
Shahed Nasser
8d3fb7fb2b
docs: use require instead of import in medusa-config.js ( #9102 )
...
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-09-16 19:34:00 +02:00
Shahed Nasser
464a3e692f
docs-util: fix after updating node version ( #9072 )
...
Small fix in imports after updating node version
2024-09-10 12:05:19 +00:00
Shahed Nasser
5eafa5a184
oas: [5/n] improve oas schemas ( #9066 )
...
Improve oas schemas [5/n]
2024-09-10 12:03:18 +00:00
Shahed Nasser
6e46baa2cb
docs-util: fix generated hooks example ( #9060 )
...
Fix generated hook examples by the placement of `async` keyword
2024-09-09 18:53:44 +00:00
Shahed Nasser
4ffcc41fe7
chore(utils): update auth provider TSDocs + fix errors stopping references build ( #9023 )
...
- Updated the TSDocs of the auth provider
- Update the Node version in the docs-util as the outdated version was causing TypeScript error
- Add `@ts-ignore` for a line that was causing a typescript error. If there's a better fix here let me know
2024-09-09 13:53:33 +00:00
Shahed Nasser
cd909f9db3
oas: [2/2] improve store OAS ( #9035 )
2024-09-06 18:52:38 +03:00
Shahed Nasser
a28c911c24
docs: update auth docs + add new storefront guides ( #9020 )
...
* docs: update auth docs + add new storefront guides
* lint content
* fix vale error
* add callback response schema
* Update www/apps/resources/app/commerce-modules/auth/auth-providers/github/page.mdx
Co-authored-by: Stevche Radevski <sradevski@live.com >
* Update www/apps/resources/app/commerce-modules/auth/auth-providers/github/page.mdx
Co-authored-by: Stevche Radevski <sradevski@live.com >
* Update www/apps/resources/app/commerce-modules/auth/authentication-route/page.mdx
Co-authored-by: Stevche Radevski <sradevski@live.com >
* address PR comments
* replace google -> github
* better explanation for refresh token
---------
Co-authored-by: Stevche Radevski <sradevski@live.com >
2024-09-06 15:26:10 +03:00
Shahed Nasser
beaa851302
docs-util: fix to enum type + optional ( #8950 )
...
- Fix to some enum types (with one member) not being extracted properly.
- Consider `nullish` Zod types as optional.
2024-09-04 18:36:58 +00:00
Shahed Nasser
090cb36543
docs-utils: fix auth detection + added query params ( #8997 )
2024-09-04 19:36:10 +03:00
Shahed Nasser
dea5af085a
docs-util: fix clean script removing Auth tags ( #8911 )
...
* docs-util: fix clean script removing Auth tags
* fix removal of response types other than json
2024-08-30 17:02:02 +03:00
Shahed Nasser
074b4ae0da
docs-util: include types in workflows.ts in generated references ( #8882 )
2024-08-29 18:42:26 +02:00
Shahed Nasser
9290ce88bf
docs-util: fixes in schema factory + other improvements ( #8874 )
...
- Split schema factory for request / response / common types
- Fix overlapping types "string" and "regexp" to be just one string type
- If `oneOf` or `allOf` OAS schemas have one item, just use that item's type.
2024-08-29 12:35:45 +00:00
Shahed Nasser
25134d2307
docs-util: improvements and fixes to OAS generation ( #8855 )
...
- Add to knowledge base summaries for delete-related properties
- Fix long curl examples overflowing the line
- Fix singular / plural usage in some knowledge base descriptions / summaries
- Fix some workflows not picked up
- Remove query params for routes that don't use them.
2024-08-29 08:40:55 +00:00
Shahed Nasser
c86a9fe864
docs-util: fix removal of manually-added schemas in clean script ( #8840 )
2024-08-29 10:22:50 +03:00
Shahed Nasser
af6d43f0f0
docs-util: fix for product type schemas ( #8837 )
2024-08-28 12:54:35 +03:00
Shahed Nasser
0c4f4c8a11
docs: updates following authentication flow changes ( #8706 )
...
* docs: updates following authentication flow changes
* generate sidebar
* added open api specs
* fix up OAS
* changes to existing pages
* change sidebar items
* update marketplace recipe
2024-08-27 15:47:39 +03:00
Shahed Nasser
4f280e7cd6
docs: [21/n] generate core-flows reference ( #8804 )
...
* docs: [21/n] generate core-flows reference
* more
2024-08-27 12:25:16 +03:00
Oli Juhl
2bacf86d3c
chore: Remove prepublishOnly script ( #8699 )
...
* wip
* wip
* verbose logging
* remove prepublish scripts
* chore: add back prepublish scripts
* wip
* remove prepublishOnly script
* chore: Clean up rest of build scripts
* add back build script
* feedback
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-27 10:31:38 +02:00
Shahed Nasser
0acd94aac3
docs: refactor medusa workflows reference ( #8692 )
...
* docs: fix handling of namespaces in core flows under definitions directory
* change nested handling
* docs-util: expand workflows under definitions in workflows reference
* remove check for definitions
2024-08-22 13:39:52 +03:00
Shahed Nasser
539266559c
chore: update the medusa config TSDocs + options ( #8697 )
2024-08-21 17:46:14 +03:00
Shahed Nasser
f0f83afdd9
docs-util: fix update OAS schema ( #8556 )
...
* docs-util: fix update OAS schema
* fix to updating
* fix condition
2024-08-16 12:37:03 +03:00
Shahed Nasser
5abe9f9c66
docs: fix expand badge ( #8611 )
...
* fix component
* update expand URL
2024-08-16 09:26:16 +03:00
Shahed Nasser
4bd0917aed
docs: change workflow diagram to list ( #8602 )
2024-08-15 16:47:27 +03:00
Shahed Nasser
92a7b5b4c0
docs-util: fix OAS generation error ( #8577 )
2024-08-14 11:21:22 +03:00
Shahed Nasser
cd0acbd921
docs: fixes and preparations for workflows reference ( #8579 )
...
- Fix the merger configuration that adds the correct slug / sidebar labels
- Add an overview page for the workflows reference.
- Fixes to components and build scripts
2024-08-13 12:30:55 +00:00
Shahed Nasser
163205a9a2
docs-util: associate an API route with the workflow it uses ( #8554 )
2024-08-13 09:56:06 +03:00
Shahed Nasser
a19c562bec
docs-util: add support for workflows in markdown theme ( #8485 )
...
* add template for workflows
* initial changes
* added support for parallel steps
* added support for when
* added merge options
* fix merge options
* fix to tooltip
* clean up
* remove redirects
* fixes
* theme fixes + added merge options
* generate hook examples + fixes
* changed namespaces
* add custom autogenerator
* change type of additional data
2024-08-09 16:35:52 +03:00
Shahed Nasser
fe200e0bb3
docs-util: added a namespaces plugin ( #8500 )
...
Added a namespaces plugin that allows generating namespaces and automatically adds reflections in a path pattern to the namespace.
This is particularly useful for the workflows reference, as workflows under the `**/packages/core/core-flows/**/workflows/**` path pattern are shown under a Workflows title, and steps under the path pattern `**/packages/core/core-flows/**/steps/**` are shown under a Steps title.
2024-08-08 13:03:42 +00:00
Shahed Nasser
c870302400
docs-util: added workflows typedoc plugin ( #8463 )
...
* initial changes
* finish workflow plugin
* add comments
* remove todo
2024-08-06 14:23:24 +03:00
Shahed Nasser
5ed5b45cce
chore(utils, types): updated TSDocs of AbstractPaymentProvider ( #8335 )
...
- Update the TSDocs of `AbstractPaymentProvider`
- Remove old TSDocs of `IPaymentProvider`
- Update the config that generates the payment module provider reference.
Closes DOCS-781
2024-08-01 15:50:34 +00:00