@shopware/api-gen 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,20 +20,20 @@ npm install -D @shopware/api-gen
20
20
  yarn add -D @shopware/api-gen
21
21
 
22
22
  # pnpm
23
- pnpm install -D @shopware/api-gen
23
+ pnpm add -D @shopware/api-gen
24
24
 
25
25
  # bun
26
26
  bun install -D @shopware/api-gen
27
27
 
28
28
  # deno
29
- deno install --dev @shopware/api-gen
29
+ deno install --dev npm:@shopware/api-gen
30
30
  ```
31
31
 
32
32
  <!-- /automd -->
33
33
 
34
34
  ## Features
35
35
 
36
- Generator will create a new directory `api-types` with TypeScript schemas inside. Depending on the `apiType` parameter it will create `storeApiTypes.ts` or `adminApiTypes.ts` file.
36
+ Generator will create a new directory `api-types` with TypeScript schemas inside. Depending on the `apiType` parameter it will create `storeApiTypes.d.ts` or `adminApiTypes.d.ts` file.
37
37
 
38
38
  ### Overriding
39
39
 
@@ -156,7 +156,7 @@ You could also use multiple patches and add your own overrides on top:
156
156
  }
157
157
  ```
158
158
 
159
- and then inside the `storeApiTypes.overrides.json` file you can add your patches:
159
+ and then inside the `./api-types/myOwnPatches.overrides.json` file you can add your patches:
160
160
 
161
161
  ```json
162
162
  {
@@ -281,7 +281,7 @@ pnpx @shopware/api-gen validateJson --help
281
281
  pnpx @shopware/api-gen validateJson --apiType=store
282
282
  ```
283
283
 
284
- this searches for `api-types/storeApiTypes.json` file and validates it. Use [loadSchema](#loadSchema) command first to fetch your JSON file.
284
+ this searches for `api-types/storeApiSchema.json` file and validates it. Use [loadSchema](#loadSchema) command first to fetch your JSON file.
285
285
 
286
286
  Prepare your config file named **api-gen.config.json**:
287
287
 
@@ -338,9 +338,9 @@ Each command can also be used programmatically within your own scripts:
338
338
  ```ts
339
339
  import { generate } from "@shopware/api-gen";
340
340
 
341
- await generate({
341
+ await generate({
342
342
  cwd: process.cwd(),
343
- filename: "storeApiTypes.ts",
343
+ filename: "storeApiSchema.json",
344
344
  apiType: "store",
345
345
  debug: true,
346
346
  logPatches: true,
@@ -354,7 +354,7 @@ import { loadSchema } from "@shopware/api-gen";
354
354
 
355
355
  await loadSchema({
356
356
  cwd: process.cwd(),
357
- filename: "storeApiTypes.json",
357
+ filename: "storeApiSchema.json",
358
358
  apiType: "store",
359
359
  });
360
360
  ```
@@ -366,7 +366,7 @@ import { validateJson } from "@shopware/api-gen";
366
366
 
367
367
  await validateJson({
368
368
  cwd: process.cwd(),
369
- filename: "storeApiTypes.json",
369
+ filename: "storeApiSchema.json",
370
370
  apiType: "store",
371
371
  logPatches: true,
372
372
  debug: true,
@@ -391,7 +391,7 @@ await split({
391
391
 
392
392
  ## Links
393
393
 
394
- - [📘 Documentation](https://frontends.shopware.com)
394
+ - [📘 Documentation](https://developer.shopware.com/frontends)
395
395
 
396
396
  - [👥 Community Discord](https://discord.com/channels/1308047705309708348/1405501315160739951) (`#composable-frontend` channel)
397
397
 
@@ -401,13 +401,9 @@ await split({
401
401
 
402
402
  Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/api-gen/CHANGELOG.md)
403
403
 
404
- ### Latest changes: 1.5.0
405
-
406
- ### Minor Changes
407
-
408
- - [#2262](https://github.com/shopware/frontends/pull/2262) [`7a20ea0`](https://github.com/shopware/frontends/commit/7a20ea0454ee237c772e532a03408477e968a958) Thanks [@mkucmus](https://github.com/mkucmus)! - Added support for `client_credentials` grant type authentication when loading Admin API schema. Set `SHOPWARE_ADMIN_CLIENT_SECRET` and `SHOPWARE_ADMIN_CLIENT_ID`environment variables to use integration credentials instead of username/password.
404
+ ### Latest changes: 1.5.2
409
405
 
410
406
  ### Patch Changes
411
407
 
412
- - Updated dependencies [[`9604f22`](https://github.com/shopware/frontends/commit/9604f22678150d04c3c3156fd8ee2ce440c8c8bf), [`b5f7e2a`](https://github.com/shopware/frontends/commit/b5f7e2a20c9dfdde1690e9006252d847f732bc0a), [`9604f22`](https://github.com/shopware/frontends/commit/9604f22678150d04c3c3156fd8ee2ce440c8c8bf)]:
413
- - @shopware/api-client@1.5.0
408
+ - Updated dependencies [[`183c183`](https://github.com/shopware/frontends/commit/183c183f905486c27fa770fd0f4cd9993e86c20e), [`458494e`](https://github.com/shopware/frontends/commit/458494e8bd2be88d4fbf161636a109c8f4efc443)]:
409
+ - @shopware/api-client@1.6.0