@shopware/api-gen 1.4.0 → 1.5.0

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/dist/index.d.mts CHANGED
@@ -31,11 +31,16 @@ declare function generate(args: {
31
31
  * - OPENAPI_JSON_URL
32
32
  * - OPENAPI_ACCESS_KEY
33
33
  *
34
- * For `admin` API:
34
+ * For `admin` API (password grant):
35
35
  * - OPENAPI_JSON_URL
36
36
  * - SHOPWARE_ADMIN_USERNAME
37
37
  * - SHOPWARE_ADMIN_PASSWORD
38
38
  *
39
+ * For `admin` API (client_credentials grant):
40
+ * - OPENAPI_JSON_URL
41
+ * - SHOPWARE_ADMIN_CLIENT_ID
42
+ * - SHOPWARE_ADMIN_CLIENT_SECRET
43
+ *
39
44
  */
40
45
  declare function loadSchema(args: {
41
46
  /**
package/dist/index.d.ts CHANGED
@@ -31,11 +31,16 @@ declare function generate(args: {
31
31
  * - OPENAPI_JSON_URL
32
32
  * - OPENAPI_ACCESS_KEY
33
33
  *
34
- * For `admin` API:
34
+ * For `admin` API (password grant):
35
35
  * - OPENAPI_JSON_URL
36
36
  * - SHOPWARE_ADMIN_USERNAME
37
37
  * - SHOPWARE_ADMIN_PASSWORD
38
38
  *
39
+ * For `admin` API (client_credentials grant):
40
+ * - OPENAPI_JSON_URL
41
+ * - SHOPWARE_ADMIN_CLIENT_ID
42
+ * - SHOPWARE_ADMIN_CLIENT_SECRET
43
+ *
39
44
  */
40
45
  declare function loadSchema(args: {
41
46
  /**
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
- export { g as generate, l as loadSchema, v as validateJson } from './shared/api-gen.BWZPGkRz.mjs';
1
+ export { a as generate, l as loadSchema, v as validateJson } from './shared/api-gen.a71ec925.mjs';
2
2
  import 'node:fs';
3
3
  import 'node:path';
4
4
  import 'openapi-typescript';
5
5
  import 'typescript';
6
- import 'ofetch';
7
- import 'prettier';
8
- import 'ts-morph';
9
6
  import 'fs';
10
7
  import 'path';
11
8
  import 'os';
12
9
  import 'crypto';
10
+ import 'ofetch';
11
+ import 'prettier';
12
+ import 'ts-morph';
13
13
  import '@shopware/api-client';