@restorecommerce/protos 6.8.0 → 6.8.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 CHANGED
@@ -3,6 +3,19 @@
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.8.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.0...@restorecommerce/protos@6.8.1) (2024-04-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **order_state:** remove FAILED and INVALID from order_state ([6a0c6bf](https://github.com/restorecommerce/libs/commit/6a0c6bfb54d00e5c169bd2d688f773baff8a88c8))
12
+ * **product:** add missing imports for resolver ([be68bdf](https://github.com/restorecommerce/libs/commit/be68bdfa5a281454a641808895bd227cdbc6e605))
13
+ * **timezone:** more information in timezone, fix invalid resolver on product.taxIds ([106ef81](https://github.com/restorecommerce/libs/commit/106ef81533ce279129c5d8be89f7070382a705da))
14
+
15
+
16
+
17
+
18
+
6
19
  # [6.8.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.7.0...@restorecommerce/protos@6.8.0) (2024-03-05)
7
20
 
8
21
 
@@ -90,14 +90,14 @@ service FulfillmentService {
90
90
  }
91
91
 
92
92
  enum State {
93
- FAILED = 0;
93
+ PENDING = 0;
94
94
  INVALID = 1;
95
- CREATED = 2;
96
- SUBMITTED = 3;
97
- IN_TRANSIT = 4;
98
- FULFILLED = 5;
99
- WITHDRAWN = 6;
100
- CANCELLED = 7;
95
+ SUBMITTED = 2;
96
+ IN_TRANSIT = 3;
97
+ COMPLETED = 4;
98
+ WITHDRAWN = 5;
99
+ CANCELLED = 6;
100
+ FAILED = 7;
101
101
  }
102
102
 
103
103
  message Item {
@@ -45,6 +45,7 @@ message LocaleResponse {
45
45
  message Locale {
46
46
  optional string id = 1;
47
47
  optional io.restorecommerce.meta.Meta meta = 2;
48
- optional string value = 3;
48
+ optional string value = 3; // official symbole
49
49
  optional string description = 4;
50
+ optional string name = 5; // display name
50
51
  }
@@ -21,6 +21,7 @@ import "io/restorecommerce/invoice.proto";
21
21
  import "io/restorecommerce/user.proto";
22
22
  import "io/restorecommerce/customer.proto";
23
23
  import "io/restorecommerce/shop.proto";
24
+ import "io/restorecommerce/product.proto";
24
25
 
25
26
 
26
27
  service OrderService {
@@ -50,14 +51,11 @@ service OrderService {
50
51
  }
51
52
 
52
53
  enum OrderState {
53
- FAILED = 0;
54
- INVALID = 1;
55
- CREATED = 2;
56
- SUBMITTED = 3;
57
- IN_PROCESS = 4;
58
- DONE = 5;
59
- WITHDRAWN = 6;
60
- CANCELLED = 7;
54
+ PENDING = 0;
55
+ SUBMITTED = 1;
56
+ COMPLETED = 2;
57
+ WITHDRAWN = 3;
58
+ CANCELLED = 4;
61
59
  }
62
60
 
63
61
  enum FulfillmentInvoiceMode {
@@ -15,6 +15,8 @@ import "io/restorecommerce/price.proto";
15
15
  import "io/restorecommerce/options.proto";
16
16
 
17
17
  // Used by resolvers
18
+ import "io/restorecommerce/product_category.proto";
19
+ import "io/restorecommerce/product_prototype.proto";
18
20
  import "io/restorecommerce/manufacturer.proto";
19
21
  import "io/restorecommerce/property.proto";
20
22
  import "io/restorecommerce/shop.proto";
@@ -125,15 +127,7 @@ message IndividualProduct {
125
127
  }
126
128
  ];
127
129
  }
128
- repeated string tax_ids = 8 [
129
- (io.restorecommerce.options.resolver) = {
130
- target_type: ".io.restorecommerce.tax.Tax",
131
- target_service: "master_data",
132
- target_sub_service: "tax",
133
- target_method: "Read",
134
- field_name: "tax",
135
- }
136
- ];
130
+ repeated string tax_ids = 8;
137
131
  optional string gtin = 10;
138
132
  oneof nature {
139
133
  PhysicalProduct physical = 11;
@@ -188,15 +182,7 @@ message PhysicalVariant {
188
182
  optional string stock_keeping_unit = 8;
189
183
  optional string parent_variant_id = 9;
190
184
  repeated io.restorecommerce.property.Property properties = 10;
191
- repeated string tax_ids = 11 [
192
- (io.restorecommerce.options.resolver) = {
193
- target_type: ".io.restorecommerce.tax.Tax",
194
- target_service: "master_data",
195
- target_sub_service: "tax",
196
- target_method: "Read",
197
- field_name: "tax",
198
- }
199
- ];
185
+ repeated string tax_ids = 11;
200
186
  optional Package package = 12;
201
187
  }
202
188
 
@@ -211,15 +197,7 @@ message ServiceVariant {
211
197
  optional string stock_keeping_unit = 8;
212
198
  optional string parent_variant_id = 9;
213
199
  repeated io.restorecommerce.property.Property properties = 10;
214
- repeated string tax_ids = 11 [
215
- (io.restorecommerce.options.resolver) = {
216
- target_type: ".io.restorecommerce.tax.Tax",
217
- target_service: "master_data",
218
- target_sub_service: "tax",
219
- target_method: "Read",
220
- field_name: "tax",
221
- }
222
- ];
200
+ repeated string tax_ids = 11;
223
201
  }
224
202
 
225
203
  message VirtualVariant {
@@ -233,15 +211,7 @@ message VirtualVariant {
233
211
  optional string stock_keeping_unit = 8;
234
212
  optional string parent_variant_id = 9;
235
213
  repeated io.restorecommerce.property.Property properties = 10;
236
- repeated string tax_ids = 11 [
237
- (io.restorecommerce.options.resolver) = {
238
- target_type: ".io.restorecommerce.tax.Tax",
239
- target_service: "master_data",
240
- target_sub_service: "tax",
241
- target_method: "Read",
242
- field_name: "tax",
243
- }
244
- ];
214
+ repeated string tax_ids = 11;
245
215
  }
246
216
 
247
217
  message Bundle {
@@ -69,4 +69,6 @@ message Tax {
69
69
  field_name: "type",
70
70
  }
71
71
  ];
72
+ optional string name = 7;
73
+ optional string abbreviation = 8;
72
74
  }
@@ -42,8 +42,19 @@ message TimezoneResponse {
42
42
  optional io.restorecommerce.status.Status status = 2;
43
43
  }
44
44
 
45
+ message TimezoneOffset {
46
+ optional int32 hours = 1;
47
+ optional int32 minutes = 2;
48
+ }
49
+
45
50
  message Timezone {
46
51
  optional string id = 1;
47
52
  optional io.restorecommerce.meta.Meta meta = 2;
48
- optional string description = 3;
53
+ optional string name = 3; // display name
54
+ optional string value = 4; // official name
55
+ optional string abbreviation_std = 5;
56
+ optional string abbreviation_dst = 6;
57
+ optional TimezoneOffset offset_std = 7;
58
+ optional TimezoneOffset offset_dst = 8;
59
+ optional string description = 9;
49
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "6.8.0",
3
+ "version": "6.8.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": "48456b8ea43fd3bfad46deaea7010ccd899ea074"
18
+ "gitHead": "068f1450161f53afd87f8ae9615778001edd66ce"
19
19
  }