@restorecommerce/protos 6.11.3 → 6.11.5
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 +23 -0
- package/io/restorecommerce/contact_point.proto +1 -1
- package/io/restorecommerce/country.proto +27 -0
- package/io/restorecommerce/file.proto +5 -9
- package/io/restorecommerce/image.proto +10 -6
- package/io/restorecommerce/locale.proto +9 -0
- package/io/restorecommerce/product.proto +8 -6
- package/package.json +2 -2
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.5](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.11.4...@restorecommerce/protos@6.11.5) (2025-05-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **protos:** fix typos ([1432953](https://github.com/restorecommerce/libs/commit/1432953e3fd80488f90b8b71c7c5dfe9cb3e24ee))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [6.11.4](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.11.3...@restorecommerce/protos@6.11.4) (2025-05-23)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **protos:** bundle product should have valid time frame too ([8670be0](https://github.com/restorecommerce/libs/commit/8670be0354b8bb0bfe239c14db81a6eb494b60a8))
|
|
23
|
+
* **protos:** link data nodes: country, localization, timezones ([fc5f226](https://github.com/restorecommerce/libs/commit/fc5f22616dedc403c170f1fd531542e19b64a78f))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## [6.11.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.11.2...@restorecommerce/protos@6.11.3) (2025-05-19)
|
|
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: "
|
|
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
|
-
|
|
15
|
+
string base64 = 7;
|
|
16
|
+
bytes blob = 8;
|
|
21
17
|
}
|
|
22
|
-
optional int64 bytes =
|
|
23
|
-
repeated string tags =
|
|
24
|
-
optional io.restorecommerce.image.Image thumbnail =
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
optional
|
|
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
|
}
|
|
@@ -84,7 +84,7 @@ message Association {
|
|
|
84
84
|
optional AssociationType type = 3;
|
|
85
85
|
repeated string tags = 4;
|
|
86
86
|
optional google.protobuf.Any data = 5;
|
|
87
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
87
|
+
repeated io.restorecommerce.attribute.Attribute attributes = 6;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// Product resource entity
|
|
@@ -116,7 +116,7 @@ message Product {
|
|
|
116
116
|
repeated string tags = 7;
|
|
117
117
|
repeated Association associations = 8;
|
|
118
118
|
optional google.protobuf.Any data = 9;
|
|
119
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
119
|
+
repeated io.restorecommerce.attribute.Attribute attributes = 10;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
message IndividualProduct {
|
|
@@ -222,7 +222,7 @@ message PhysicalVariant {
|
|
|
222
222
|
optional bool active = 12;
|
|
223
223
|
optional google.protobuf.Timestamp valid_from = 13; // valid for sale
|
|
224
224
|
optional google.protobuf.Timestamp valid_to = 14;
|
|
225
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
225
|
+
repeated io.restorecommerce.attribute.Attribute attributes = 15;
|
|
226
226
|
optional Package package = 16; // size for shipping
|
|
227
227
|
optional string taric_code = 17;
|
|
228
228
|
optional string hs_code = 18;
|
|
@@ -244,7 +244,7 @@ message ServiceVariant {
|
|
|
244
244
|
optional bool active = 12;
|
|
245
245
|
optional google.protobuf.Timestamp valid_from = 13; // valid for sale
|
|
246
246
|
optional google.protobuf.Timestamp valid_to = 14;
|
|
247
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
247
|
+
repeated io.restorecommerce.attribute.Attribute attributes = 15;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
message VirtualVariant {
|
|
@@ -262,7 +262,7 @@ message VirtualVariant {
|
|
|
262
262
|
optional bool active = 12;
|
|
263
263
|
optional google.protobuf.Timestamp valid_from = 13;
|
|
264
264
|
optional google.protobuf.Timestamp valid_to = 14;
|
|
265
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
265
|
+
repeated io.restorecommerce.attribute.Attribute attributes = 15;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
message Bundle {
|
|
@@ -272,7 +272,9 @@ message Bundle {
|
|
|
272
272
|
repeated BundleProduct products = 4;
|
|
273
273
|
optional io.restorecommerce.price.Price price = 5;
|
|
274
274
|
optional Package pre_packaged = 6;
|
|
275
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
275
|
+
repeated io.restorecommerce.attribute.Attribute attributes = 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
|
+
"version": "6.11.5",
|
|
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": "d6cb17cb2845b0ff24ec58947eec07b83120a35e"
|
|
19
19
|
}
|