@graphcommerce/magento-graphql-rest 9.0.0-canary.100
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/CHANGELOG.md +79 -0
- package/README.md +26 -0
- package/index.ts +1 -0
- package/m2-filtered-spec.json +9886 -0
- package/package.json +29 -0
- package/plugins/meshConfigM2Rest.ts +63 -0
- package/scripts/generate-spec.mts +74 -0
- package/scripts/m2rest-admin.json +66351 -0
- package/scripts/m2rest-customer.json +13289 -0
- package/scripts/m2rest-guest.json +10007 -0
- package/tsconfig.json +5 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# @graphcommerce/magento-graphql-rest
|
|
2
|
+
|
|
3
|
+
## 9.0.0-canary.100
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.99
|
|
6
|
+
|
|
7
|
+
## 9.0.0-canary.98
|
|
8
|
+
|
|
9
|
+
## 9.0.0-canary.97
|
|
10
|
+
|
|
11
|
+
## 9.0.0-canary.96
|
|
12
|
+
|
|
13
|
+
## 9.0.0-canary.95
|
|
14
|
+
|
|
15
|
+
## 9.0.0-canary.94
|
|
16
|
+
|
|
17
|
+
## 9.0.0-canary.93
|
|
18
|
+
|
|
19
|
+
## 9.0.0-canary.92
|
|
20
|
+
|
|
21
|
+
## 9.0.0-canary.91
|
|
22
|
+
|
|
23
|
+
## 9.0.0-canary.90
|
|
24
|
+
|
|
25
|
+
## 9.0.0-canary.89
|
|
26
|
+
|
|
27
|
+
## 9.0.0-canary.88
|
|
28
|
+
|
|
29
|
+
## 9.0.0-canary.87
|
|
30
|
+
|
|
31
|
+
## 9.0.0-canary.86
|
|
32
|
+
|
|
33
|
+
## 9.0.0-canary.85
|
|
34
|
+
|
|
35
|
+
## 9.0.0-canary.84
|
|
36
|
+
|
|
37
|
+
## 9.0.0-canary.83
|
|
38
|
+
|
|
39
|
+
## 9.0.0-canary.82
|
|
40
|
+
|
|
41
|
+
## 9.0.0-canary.81
|
|
42
|
+
|
|
43
|
+
## 9.0.0-canary.80
|
|
44
|
+
|
|
45
|
+
## 9.0.0-canary.79
|
|
46
|
+
|
|
47
|
+
## 9.0.0-canary.78
|
|
48
|
+
|
|
49
|
+
## 9.0.0-canary.77
|
|
50
|
+
|
|
51
|
+
## 9.0.0-canary.76
|
|
52
|
+
|
|
53
|
+
## 9.0.0-canary.75
|
|
54
|
+
|
|
55
|
+
## 9.0.0-canary.74
|
|
56
|
+
|
|
57
|
+
## 9.0.0-canary.73
|
|
58
|
+
|
|
59
|
+
## 9.0.0-canary.72
|
|
60
|
+
|
|
61
|
+
## 9.0.0-canary.71
|
|
62
|
+
|
|
63
|
+
## 9.0.0-canary.70
|
|
64
|
+
|
|
65
|
+
## 9.0.0-canary.69
|
|
66
|
+
|
|
67
|
+
## 9.0.0-canary.68
|
|
68
|
+
|
|
69
|
+
## 9.0.0-canary.67
|
|
70
|
+
|
|
71
|
+
## 9.0.0-canary.66
|
|
72
|
+
|
|
73
|
+
## 9.0.0-canary.65
|
|
74
|
+
|
|
75
|
+
## 9.0.0-canary.64
|
|
76
|
+
|
|
77
|
+
### Minor Changes
|
|
78
|
+
|
|
79
|
+
- [#2334](https://github.com/graphcommerce-org/graphcommerce/pull/2334) [`435b19c`](https://github.com/graphcommerce-org/graphcommerce/commit/435b19c951568a8f6b52d0f3fe4d9410ab6c1b86) - Created a new @graphcommerce/magento-graphql-rest package to integrate with Magento's REST API. By default allows you to retrieve the customer with m2rest_GetV1CustomersMe and only provides the group_id additionally on the customer. ([@Renzovh](https://github.com/Renzovh))
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Magento GraphQL Rest
|
|
2
|
+
|
|
3
|
+
Integrates Magento's REST API as a Mesh Service API.
|
|
4
|
+
|
|
5
|
+
## Todo
|
|
6
|
+
|
|
7
|
+
Currently the only spec that is implemented is the `GET:/customers/me` endpoint.
|
|
8
|
+
Future extensions and usecases are welcome.
|
|
9
|
+
|
|
10
|
+
## Modifications and customization
|
|
11
|
+
|
|
12
|
+
In `./scripts/generate-spec.mts` you can find the filter-script that cleans up
|
|
13
|
+
the spec. Modifications could be made there.
|
|
14
|
+
|
|
15
|
+
## Maybe?
|
|
16
|
+
|
|
17
|
+
```graphql
|
|
18
|
+
type Customer {
|
|
19
|
+
rest: M2RestCustomerDataCustomerInterface
|
|
20
|
+
@resolveTo(
|
|
21
|
+
sourceName: "m2rest"
|
|
22
|
+
sourceTypeName: "Query"
|
|
23
|
+
sourceFieldName: "m2rest_GetV1CustomersMe"
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
```
|
package/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|