@restorecommerce/protos 4.1.0 → 4.1.1
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 +11 -0
- package/io/restorecommerce/auth.proto +2 -2
- package/io/restorecommerce/authentication_log.proto +2 -1
- package/io/restorecommerce/fulfillment.proto +5 -3
- package/io/restorecommerce/invoice.proto +3 -3
- package/io/restorecommerce/order.proto +3 -3
- package/io/restorecommerce/organization.proto +14 -3
- package/io/restorecommerce/product.proto +1 -1
- package/io/restorecommerce/shop.proto +1 -1
- package/package.json +2 -2
- package/test/test.proto +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.1.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@4.1.0...@restorecommerce/protos@4.1.1) (2023-07-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **fulfillment, invoice, organization.proto:** fix typos in invoice, fulfillment and organization ([8d64222](https://github.com/restorecommerce/libs/commit/8d64222d3cbca44a0c9d4e265431d26aaac20223))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [4.1.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@4.0.1...@restorecommerce/protos@4.1.0) (2023-07-11)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -16,12 +16,12 @@ message Subject {
|
|
|
16
16
|
|
|
17
17
|
message Tokens {
|
|
18
18
|
optional string name = 1; // token name
|
|
19
|
-
optional
|
|
19
|
+
optional google.protobuf.Timestamp expires_in = 2; // expiration date for token
|
|
20
20
|
optional string token = 3; // token
|
|
21
21
|
repeated string scopes = 4; // identifier for role_association
|
|
22
22
|
optional string type = 5; // type of token eg: access_token, refresh_token
|
|
23
23
|
optional bool interactive = 6;
|
|
24
|
-
optional
|
|
24
|
+
optional google.protobuf.Timestamp last_login = 7;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
message HierarchicalScope {
|
|
@@ -2,6 +2,7 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package io.restorecommerce.authentication_log;
|
|
4
4
|
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
5
6
|
import "io/restorecommerce/resource_base.proto";
|
|
6
7
|
import "io/restorecommerce/meta.proto";
|
|
7
8
|
import "io/restorecommerce/auth.proto";
|
|
@@ -47,7 +48,7 @@ message AuthenticationLog {
|
|
|
47
48
|
optional string ipv6_address = 3;
|
|
48
49
|
optional string operating_system = 4;
|
|
49
50
|
optional string user_agent = 5;
|
|
50
|
-
optional
|
|
51
|
+
optional google.protobuf.Timestamp date = 6; // time stamp of login, logout or token update
|
|
51
52
|
optional string activity = 7; // login, logout
|
|
52
53
|
optional io.restorecommerce.meta.Meta meta = 8; // meta info
|
|
53
54
|
optional string subject_id = 9; // subject id
|
|
@@ -12,6 +12,7 @@ import "io/restorecommerce/address.proto";
|
|
|
12
12
|
import "io/restorecommerce/country.proto";
|
|
13
13
|
import "io/restorecommerce/product.proto";
|
|
14
14
|
import "io/restorecommerce/options.proto";
|
|
15
|
+
import "io/restorecommerce/price.proto";
|
|
15
16
|
import "io/restorecommerce/amount.proto";
|
|
16
17
|
import "io/restorecommerce/invoice.proto";
|
|
17
18
|
import "google/protobuf/timestamp.proto";
|
|
@@ -113,9 +114,10 @@ message Parcel {
|
|
|
113
114
|
}
|
|
114
115
|
];
|
|
115
116
|
optional string variant_id = 3;
|
|
116
|
-
|
|
117
|
-
optional io.restorecommerce.
|
|
118
|
-
optional io.restorecommerce.
|
|
117
|
+
repeated Item items = 4;
|
|
118
|
+
optional io.restorecommerce.price.Price price = 5;
|
|
119
|
+
optional io.restorecommerce.amount.Amount amount = 6;
|
|
120
|
+
optional io.restorecommerce.product.Package package = 8;
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
message Label {
|
|
@@ -133,7 +133,7 @@ message Invoice {
|
|
|
133
133
|
optional string customer_id = 6 [
|
|
134
134
|
(io.restorecommerce.options.resolver) = {
|
|
135
135
|
target_type: ".io.restorecommerce.customer.Customer",
|
|
136
|
-
target_service: "
|
|
136
|
+
target_service: "master_data",
|
|
137
137
|
target_sub_service: "customer",
|
|
138
138
|
target_method: "Read",
|
|
139
139
|
field_name: "customer",
|
|
@@ -142,7 +142,7 @@ message Invoice {
|
|
|
142
142
|
optional string shop_id = 7 [
|
|
143
143
|
(io.restorecommerce.options.resolver) = {
|
|
144
144
|
target_type: ".io.restorecommerce.shop.Shop",
|
|
145
|
-
target_service: "
|
|
145
|
+
target_service: "master_data",
|
|
146
146
|
target_sub_service: "shop",
|
|
147
147
|
target_method: "Read",
|
|
148
148
|
field_name: "shop",
|
|
@@ -173,7 +173,7 @@ message Position {
|
|
|
173
173
|
optional string id = 1;
|
|
174
174
|
oneof item_type {
|
|
175
175
|
ProductItem product_item = 2;
|
|
176
|
-
FulfillmentItem
|
|
176
|
+
FulfillmentItem fulfillment_item = 3;
|
|
177
177
|
ManualItem manual_item = 4;
|
|
178
178
|
}
|
|
179
179
|
optional io.restorecommerce.price.Price unit_price = 5;
|
|
@@ -97,7 +97,7 @@ message Order {
|
|
|
97
97
|
optional string user_id = 3 [
|
|
98
98
|
(io.restorecommerce.options.resolver) = {
|
|
99
99
|
target_type: ".io.restorecommerce.customer.Customer",
|
|
100
|
-
target_service: "
|
|
100
|
+
target_service: "master_data",
|
|
101
101
|
target_sub_service: "customer",
|
|
102
102
|
target_method: "Read",
|
|
103
103
|
field_name: "customer",
|
|
@@ -106,7 +106,7 @@ message Order {
|
|
|
106
106
|
optional string customer_id = 4 [
|
|
107
107
|
(io.restorecommerce.options.resolver) = {
|
|
108
108
|
target_type: ".io.restorecommerce.customer.Customer",
|
|
109
|
-
target_service: "
|
|
109
|
+
target_service: "master_data",
|
|
110
110
|
target_sub_service: "customer",
|
|
111
111
|
target_method: "Read",
|
|
112
112
|
field_name: "customer",
|
|
@@ -115,7 +115,7 @@ message Order {
|
|
|
115
115
|
optional string shop_id = 5 [
|
|
116
116
|
(io.restorecommerce.options.resolver) = {
|
|
117
117
|
target_type: ".io.restorecommerce.shop.Shop",
|
|
118
|
-
target_service: "
|
|
118
|
+
target_service: "master_data",
|
|
119
119
|
target_sub_service: "shop",
|
|
120
120
|
target_method: "Read",
|
|
121
121
|
field_name: "shop",
|
|
@@ -2,16 +2,19 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package io.restorecommerce.organization;
|
|
4
4
|
|
|
5
|
-
import "io/restorecommerce/resource_base.proto";
|
|
6
5
|
import "google/protobuf/any.proto";
|
|
6
|
+
|
|
7
|
+
import "io/restorecommerce/resource_base.proto";
|
|
7
8
|
import "io/restorecommerce/meta.proto";
|
|
8
9
|
import "io/restorecommerce/auth.proto";
|
|
9
10
|
import "io/restorecommerce/status.proto";
|
|
11
|
+
import "io/restorecommerce/image.proto";
|
|
10
12
|
import "io/restorecommerce/options.proto";
|
|
11
13
|
|
|
12
14
|
// Used by resolvers
|
|
13
15
|
import "io/restorecommerce/address.proto";
|
|
14
16
|
import "io/restorecommerce/contact_point.proto";
|
|
17
|
+
import "io/restorecommerce/payment_method.proto";
|
|
15
18
|
|
|
16
19
|
service OrganizationService {
|
|
17
20
|
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (OrganizationListResponse) {
|
|
@@ -73,12 +76,20 @@ message Organization {
|
|
|
73
76
|
]; // list of possible legal addresses of different types
|
|
74
77
|
optional string website = 5;
|
|
75
78
|
optional string email = 6;
|
|
76
|
-
optional
|
|
79
|
+
optional io.restorecommerce.image.Image logo = 7; // base64; arangoDB does not support blob storage
|
|
77
80
|
optional string vat_id = 8;
|
|
78
81
|
optional string isic_v4 = 9;
|
|
79
82
|
optional string registration = 10;
|
|
80
83
|
optional string registration_court = 11;
|
|
81
84
|
optional string name = 12;
|
|
82
|
-
repeated string payment_method_ids = 13
|
|
85
|
+
repeated string payment_method_ids = 13 [
|
|
86
|
+
(io.restorecommerce.options.resolver) = {
|
|
87
|
+
target_type: ".io.restorecommerce.payment_method.PaymentMethod",
|
|
88
|
+
target_service: "payment",
|
|
89
|
+
target_sub_service: "payment_method",
|
|
90
|
+
target_method: "Read",
|
|
91
|
+
field_name: "paymentMethods",
|
|
92
|
+
}
|
|
93
|
+
];
|
|
83
94
|
optional google.protobuf.Any data = 14; /// additional data
|
|
84
95
|
}
|
|
@@ -67,7 +67,7 @@ message Product {
|
|
|
67
67
|
optional string shop_id = 5 [
|
|
68
68
|
(io.restorecommerce.options.resolver) = {
|
|
69
69
|
target_type: ".io.restorecommerce.shop.Shop",
|
|
70
|
-
target_service: "
|
|
70
|
+
target_service: "master_data",
|
|
71
71
|
target_sub_service: "shop",
|
|
72
72
|
target_method: "Read",
|
|
73
73
|
field_name: "shop",
|
|
@@ -54,7 +54,7 @@ message Shop {
|
|
|
54
54
|
optional string organization_id = 7 [
|
|
55
55
|
(io.restorecommerce.options.resolver) = {
|
|
56
56
|
target_type: ".io.restorecommerce.organization.Organization",
|
|
57
|
-
target_service: "
|
|
57
|
+
target_service: "master_data",
|
|
58
58
|
target_sub_service: "organization",
|
|
59
59
|
target_method: "Read",
|
|
60
60
|
field_name: "organization",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Protobuf descriptors for Restorecommerce services",
|
|
5
5
|
"author": "n-fuse GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"protobufs"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "0b69448ada6429205437ec5642fded8495695360"
|
|
19
19
|
}
|
package/test/test.proto
CHANGED
|
@@ -6,6 +6,7 @@ import "io/restorecommerce/resource_base.proto";
|
|
|
6
6
|
import "io/restorecommerce/meta.proto";
|
|
7
7
|
import "io/restorecommerce/status.proto";
|
|
8
8
|
import "io/restorecommerce/auth.proto";
|
|
9
|
+
import "google/protobuf/timestamp.proto";
|
|
9
10
|
|
|
10
11
|
service Test {
|
|
11
12
|
rpc Test (TestRequest) returns (TestResponse);
|
|
@@ -103,7 +104,7 @@ message Resource {
|
|
|
103
104
|
int32 value = 3;
|
|
104
105
|
string text = 4;
|
|
105
106
|
bool active = 5;
|
|
106
|
-
|
|
107
|
+
google.protobuf.Timestamp created = 6;
|
|
107
108
|
string status = 7;
|
|
108
109
|
optional google.protobuf.Any data = 8;
|
|
109
110
|
}
|