@restorecommerce/protos 6.11.2 → 6.11.4

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,29 @@
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
+ ## [6.11.4](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.11.3...@restorecommerce/protos@6.11.4) (2025-05-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **protos:** bundle product should have valid time frame too ([8670be0](https://github.com/restorecommerce/libs/commit/8670be0354b8bb0bfe239c14db81a6eb494b60a8))
12
+ * **protos:** link data nodes: country, localization, timezones ([fc5f226](https://github.com/restorecommerce/libs/commit/fc5f22616dedc403c170f1fd531542e19b64a78f))
13
+
14
+
15
+
16
+
17
+
18
+ ## [6.11.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.11.2...@restorecommerce/protos@6.11.3) (2025-05-19)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **protos:** add persistent export information ([680ff84](https://github.com/restorecommerce/libs/commit/680ff8499f927812dd906304137b6d7be493e058))
24
+
25
+
26
+
27
+
28
+
6
29
  ## [6.11.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.11.1...@restorecommerce/protos@6.11.2) (2025-05-14)
7
30
 
8
31
 
@@ -63,7 +63,7 @@ message ContactPoint {
63
63
  (io.restorecommerce.options.resolver) = {
64
64
  target_type: ".io.restorecommerce.contact_point_type.ContactPointType",
65
65
  target_service: "master_data",
66
- target_sub_service: "contact_point_types",
66
+ target_sub_service: "contact_point_type",
67
67
  target_method: "Read",
68
68
  field_name: "contactPointTypes",
69
69
  }
@@ -8,6 +8,9 @@ import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/status.proto";
9
9
  import "io/restorecommerce/options.proto";
10
10
 
11
+ // Used by resolvers
12
+ import "io/restorecommerce/locale.proto";
13
+
11
14
  /*
12
15
  * Microservice definition.
13
16
  */
@@ -43,6 +46,11 @@ message CountryResponse {
43
46
  }
44
47
 
45
48
  message Country {
49
+ message LocaleName {
50
+ optional string locale = 1;
51
+ optional string name = 2;
52
+ }
53
+
46
54
  optional string id = 1;
47
55
  optional io.restorecommerce.meta.Meta meta = 2;
48
56
  optional string name = 3;
@@ -51,4 +59,23 @@ message Country {
51
59
  repeated string economic_areas = 6;
52
60
  optional string country_code_alpha_2 = 7; // ISO 3166-1 alpha-2
53
61
  optional string country_code_alpha_3 = 8; // ISO 3166-1 alpha-3
62
+ repeated string locale_ids = 9 [
63
+ (io.restorecommerce.options.resolver) = {
64
+ target_type: ".io.restorecommerce.locale.Locale",
65
+ target_service: "master_data",
66
+ target_sub_service: "locale",
67
+ target_method: "Read",
68
+ field_name: "locales",
69
+ }
70
+ ]; // list of common locale in this country, sorted by priority first
71
+ repeated LocaleName localized_names = 10; // list of localized names
72
+ repeated string timezone_ids = 11 [
73
+ (io.restorecommerce.options.resolver) = {
74
+ target_type: ".io.restorecommerce.timezone.Timezone",
75
+ target_service: "master_data",
76
+ target_sub_service: "timezone",
77
+ target_method: "Read",
78
+ field_name: "timezones",
79
+ }
80
+ ]; // list of avalable timezones in this country
54
81
  }
@@ -4,11 +4,6 @@ package io.restorecommerce.file;
4
4
 
5
5
  import "io/restorecommerce/image.proto";
6
6
 
7
- message Blob {
8
- bytes data = 1;
9
- string encoding = 2;
10
- }
11
-
12
7
  message File {
13
8
  optional string id = 1;
14
9
  optional uint32 ordinal = 2;
@@ -17,11 +12,12 @@ message File {
17
12
  optional string content_type = 5;
18
13
  oneof type {
19
14
  string url = 6;
20
- Blob blob = 7;
15
+ string base64 = 7;
16
+ bytes blob = 8;
21
17
  }
22
- optional int64 bytes = 8;
23
- repeated string tags = 9;
24
- optional io.restorecommerce.image.Image thumbnail = 10;
18
+ optional int64 bytes = 9;
19
+ repeated string tags = 10;
20
+ optional io.restorecommerce.image.Image thumbnail = 11;
25
21
  }
26
22
 
27
23
  message FileList {
@@ -9,6 +9,7 @@ import "io/restorecommerce/auth.proto";
9
9
  import "io/restorecommerce/status.proto";
10
10
  import "io/restorecommerce/meta.proto";
11
11
  import "io/restorecommerce/address.proto";
12
+ import "io/restorecommerce/country.proto";
12
13
  import "io/restorecommerce/product.proto";
13
14
  import "io/restorecommerce/options.proto";
14
15
  import "io/restorecommerce/price.proto";
@@ -124,8 +125,13 @@ message Item {
124
125
  optional string product_id = 1;
125
126
  optional string variant_id = 2;
126
127
  optional int32 quantity = 3;
127
- optional string harmonizedSystemCode = 4;
128
- optional io.restorecommerce.amount.Amount amount = 5;
128
+ optional string name = 4;
129
+ optional string description = 5;
130
+ optional string taric_code = 6;
131
+ optional string hs_code = 7;
132
+ optional string origin_country_id = 8;
133
+ optional io.restorecommerce.amount.Amount value = 9;
134
+ optional io.restorecommerce.product.Package package = 10;
129
135
  }
130
136
 
131
137
  message Parcel {
@@ -7,12 +7,16 @@ message Image {
7
7
  optional string caption = 2;
8
8
  optional string filename = 3;
9
9
  optional string content_type = 4;
10
- optional string url = 5;
11
- optional double width = 6;
12
- optional double height = 7;
13
- optional double length = 8;
14
- repeated string tags = 9;
15
- optional int64 index = 10;
10
+ oneof type {
11
+ string url = 5;
12
+ string base64 = 6;
13
+ bytes blob = 7;
14
+ }
15
+ optional double width = 8;
16
+ optional double height = 9;
17
+ optional double length = 10;
18
+ repeated string tags = 11;
19
+ optional int64 index = 12;
16
20
  }
17
21
 
18
22
  message ImageList {
@@ -48,4 +48,13 @@ message Locale {
48
48
  optional string value = 3; // official symbole
49
49
  optional string description = 4;
50
50
  optional string name = 5; // display name
51
+ optional string parent_id = 6 [
52
+ (io.restorecommerce.options.resolver) = {
53
+ target_type: ".io.restorecommerce.locale.Locale",
54
+ target_service: "master_data",
55
+ target_sub_service: "locale",
56
+ target_method: "Read",
57
+ field_name: "parent",
58
+ }
59
+ ]; // parent_id for allowed fallback e.g.: 'en-de' may allow fallback to 'en'
51
60
  }
@@ -140,7 +140,6 @@ message IndividualProduct {
140
140
  field_name: "origin_country",
141
141
  }
142
142
  ];
143
- optional string taric_code = 5;
144
143
  oneof classification {
145
144
  string prototype_id = 6 [
146
145
  (io.restorecommerce.options.resolver) = {
@@ -221,10 +220,13 @@ message PhysicalVariant {
221
220
  repeated io.restorecommerce.property.Property properties = 10;
222
221
  repeated string tax_ids = 11;
223
222
  optional bool active = 12;
224
- optional google.protobuf.Timestamp valid_from = 13;
223
+ optional google.protobuf.Timestamp valid_from = 13; // valid for sale
225
224
  optional google.protobuf.Timestamp valid_to = 14;
226
225
  repeated io.restorecommerce.attribute.Attribute attibutes = 15;
227
226
  optional Package package = 16; // size for shipping
227
+ optional string taric_code = 17;
228
+ optional string hs_code = 18;
229
+ optional string export_description = 19;
228
230
  }
229
231
 
230
232
  message ServiceVariant {
@@ -240,7 +242,7 @@ message ServiceVariant {
240
242
  repeated io.restorecommerce.property.Property properties = 10;
241
243
  repeated string tax_ids = 11;
242
244
  optional bool active = 12;
243
- optional google.protobuf.Timestamp valid_from = 13;
245
+ optional google.protobuf.Timestamp valid_from = 13; // valid for sale
244
246
  optional google.protobuf.Timestamp valid_to = 14;
245
247
  repeated io.restorecommerce.attribute.Attribute attibutes = 15;
246
248
  }
@@ -271,6 +273,8 @@ message Bundle {
271
273
  optional io.restorecommerce.price.Price price = 5;
272
274
  optional Package pre_packaged = 6;
273
275
  repeated io.restorecommerce.attribute.Attribute attibutes = 7;
276
+ optional google.protobuf.Timestamp valid_from = 8;
277
+ optional google.protobuf.Timestamp valid_to = 9;
274
278
  }
275
279
 
276
280
  message BundleProduct {
@@ -384,6 +388,7 @@ message IndividualProductVariant {
384
388
  optional google.protobuf.Timestamp valid_to = 25;
385
389
  repeated io.restorecommerce.attribute.Attribute attributes = 26;
386
390
  optional Package package = 27; // size for shipping
391
+ optional string hs_code = 28;
387
392
  }
388
393
 
389
394
  message IndividualProductVariantResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "6.11.2",
3
+ "version": "6.11.4",
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": "7e6127b5e0c68b998bfa54364d23fa6461bf1b76"
18
+ "gitHead": "24e55b2dd57afd069cc1d593e5134ad718017a3f"
19
19
  }