@restorecommerce/protos 4.1.0 → 4.2.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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
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.2.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@4.1.1...@restorecommerce/protos@4.2.0) (2023-07-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **protos:** add property type ([397aaaa](https://github.com/restorecommerce/libs/commit/397aaaae8b02459b816d71d6c4e161da8da0b3f1))
12
+ * **protos:** updated property proto for capital case and removed unused proto messages ([c185814](https://github.com/restorecommerce/libs/commit/c18581474ea98e45bf91e9029a701117aeb72a11))
13
+ * **rc-grpc-clients, facade:** regnerated typings due to changes in proto files ([df3f100](https://github.com/restorecommerce/libs/commit/df3f10038e10842b77e8fa6cd523d4870dfa2683))
14
+
15
+
16
+
17
+
18
+
19
+ ## [4.1.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@4.1.0...@restorecommerce/protos@4.1.1) (2023-07-12)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **fulfillment, invoice, organization.proto:** fix typos in invoice, fulfillment and organization ([8d64222](https://github.com/restorecommerce/libs/commit/8d64222d3cbca44a0c9d4e265431d26aaac20223))
25
+
26
+
27
+
28
+
29
+
6
30
  # [4.1.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@4.0.1...@restorecommerce/protos@4.1.0) (2023-07-11)
7
31
 
8
32
 
@@ -6,8 +6,4 @@ message Attribute {
6
6
  optional string id = 1;
7
7
  optional string value = 2;
8
8
  repeated Attribute attributes = 3;
9
- }
10
-
11
- message AttributeObj {
12
- optional Attribute attributes = 1;
13
9
  }
@@ -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 double date = 6; // time stamp of login, logout or token update
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
- optional Item item = 4;
117
- optional io.restorecommerce.amount.Amount amount = 5;
118
- optional io.restorecommerce.product.Package package = 6;
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: "resource",
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: "resource",
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 fultillment_item = 3;
176
+ FulfillmentItem fulfillment_item = 3;
177
177
  ManualItem manual_item = 4;
178
178
  }
179
179
  optional io.restorecommerce.price.Price unit_price = 5;
@@ -12,5 +12,5 @@ message Meta {
12
12
  optional google.protobuf.Timestamp modified = 2; // timestamp
13
13
  optional string modified_by = 3; // ID from last User who modified it
14
14
  repeated io.restorecommerce.attribute.Attribute owners = 4;
15
- repeated io.restorecommerce.attribute.AttributeObj acls = 5;
15
+ repeated io.restorecommerce.attribute.Attribute acls = 5;
16
16
  }
@@ -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: "resource",
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: "resource",
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: "resource",
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 string logo = 7; // base64; arangoDB does not support blob storage
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: "resource",
70
+ target_service: "master_data",
71
71
  target_sub_service: "shop",
72
72
  target_method: "Read",
73
73
  field_name: "shop",
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+
3
+ package io.restorecommerce.property;
4
+
5
+ message Property {
6
+ optional string id = 1;
7
+ optional string value = 2;
8
+ optional string unit_code = 3;
9
+ }
10
+
11
+ message PropertyObj {
12
+ optional Property properties = 1;
13
+ }
@@ -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: "resource",
57
+ target_service: "master_data",
58
58
  target_sub_service: "organization",
59
59
  target_method: "Read",
60
60
  field_name: "organization",
@@ -8,14 +8,6 @@ message Status {
8
8
  string message = 3;
9
9
  }
10
10
 
11
- message StatusArray {
12
- repeated Status status = 1;
13
- }
14
-
15
- message StatusObj {
16
- Status status = 1;
17
- }
18
-
19
11
  message OperationStatusObj {
20
12
  OperationStatus operation_status = 1;
21
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
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": "7619c89c883143a16d1244e371c1a66e75d0890e"
18
+ "gitHead": "901bcf20e37b332fbe4e31559ba05a5f7a8068c1"
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
- double created = 6;
107
+ google.protobuf.Timestamp created = 6;
107
108
  string status = 7;
108
109
  optional google.protobuf.Any data = 8;
109
110
  }