@restorecommerce/protos 6.11.3 → 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,18 @@
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
+
6
18
  ## [6.11.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.11.2...@restorecommerce/protos@6.11.3) (2025-05-19)
7
19
 
8
20
 
@@ -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 {
@@ -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
  }
@@ -273,6 +273,8 @@ message Bundle {
273
273
  optional io.restorecommerce.price.Price price = 5;
274
274
  optional Package pre_packaged = 6;
275
275
  repeated io.restorecommerce.attribute.Attribute attibutes = 7;
276
+ optional google.protobuf.Timestamp valid_from = 8;
277
+ optional google.protobuf.Timestamp valid_to = 9;
276
278
  }
277
279
 
278
280
  message BundleProduct {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "6.11.3",
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": "c35fee3d7b022c3460597d803e668bc93d2a13fb"
18
+ "gitHead": "24e55b2dd57afd069cc1d593e5134ad718017a3f"
19
19
  }