@restorecommerce/protos 4.1.1 → 5.0.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,36 @@
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
+ # [5.0.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@4.2.0...@restorecommerce/protos@5.0.0) (2023-07-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **invoice:** fix misstyped import, regenerate types ([88fe1fd](https://github.com/restorecommerce/libs/commit/88fe1fd55cec8f488d17bb8c60f9a34fa07455fe))
12
+ * **product, invoice:** add and use Properties in Product and Invoice ([ecd5a01](https://github.com/restorecommerce/libs/commit/ecd5a013f742761c2aa5944318c6f9e2450dce81))
13
+
14
+
15
+ ### BREAKING CHANGES
16
+
17
+ * **product, invoice:** Code and data regarding to Attibutes in Product and Invoice must be fixed
18
+
19
+
20
+
21
+
22
+
23
+ # [4.2.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@4.1.1...@restorecommerce/protos@4.2.0) (2023-07-21)
24
+
25
+
26
+ ### Features
27
+
28
+ * **protos:** add property type ([397aaaa](https://github.com/restorecommerce/libs/commit/397aaaae8b02459b816d71d6c4e161da8da0b3f1))
29
+ * **protos:** updated property proto for capital case and removed unused proto messages ([c185814](https://github.com/restorecommerce/libs/commit/c18581474ea98e45bf91e9029a701117aeb72a11))
30
+ * **rc-grpc-clients, facade:** regnerated typings due to changes in proto files ([df3f100](https://github.com/restorecommerce/libs/commit/df3f10038e10842b77e8fa6cd523d4870dfa2683))
31
+
32
+
33
+
34
+
35
+
6
36
  ## [4.1.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@4.1.0...@restorecommerce/protos@4.1.1) (2023-07-12)
7
37
 
8
38
 
@@ -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
  }
@@ -16,12 +16,12 @@ message Subject {
16
16
 
17
17
  message Tokens {
18
18
  optional string name = 1; // token name
19
- optional google.protobuf.Timestamp expires_in = 2; // expiration date for token
19
+ optional double expires_in = 2; // expiration date for token
20
20
  optional string token = 3; // token
21
21
  repeated string scopes = 4; // identifier for role_association
22
22
  optional string type = 5; // type of token eg: access_token, refresh_token
23
23
  optional bool interactive = 6;
24
- optional google.protobuf.Timestamp last_login = 7;
24
+ optional double last_login = 7;
25
25
  }
26
26
 
27
27
  message HierarchicalScope {
@@ -15,6 +15,7 @@ import "io/restorecommerce/price.proto";
15
15
  import "io/restorecommerce/file.proto";
16
16
  import "io/restorecommerce/reference.proto";
17
17
  import "io/restorecommerce/attribute.proto";
18
+ import "io/restorecommerce/property.proto";
18
19
 
19
20
  // Used by resolvers
20
21
  import "io/restorecommerce/user.proto";
@@ -213,4 +214,5 @@ message ManualItem {
213
214
  optional string stock_keeping_unit = 1;
214
215
  optional string name = 2;
215
216
  optional string descritpion = 3;
217
+ repeated io.restorecommerce.property.Property properties = 4;
216
218
  }
@@ -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
  }
@@ -12,6 +12,7 @@ import "io/restorecommerce/status.proto";
12
12
  import "io/restorecommerce/attribute.proto";
13
13
  import "io/restorecommerce/geometry.proto";
14
14
  import "io/restorecommerce/price.proto";
15
+ import "io/restorecommerce/property.proto";
15
16
  import "io/restorecommerce/options.proto";
16
17
 
17
18
  // Used by resolvers
@@ -176,7 +177,7 @@ message PhysicalVariant {
176
177
  optional string stock_keeping_unit = 8;
177
178
  optional string template_variant = 9;
178
179
  optional Package package = 10;
179
- repeated io.restorecommerce.attribute.Attribute attributes = 11;
180
+ repeated io.restorecommerce.property.Property properties = 11;
180
181
  }
181
182
 
182
183
  message ServiceVariant {
@@ -189,7 +190,7 @@ message ServiceVariant {
189
190
  repeated io.restorecommerce.file.File files = 7;
190
191
  optional string stock_keeping_unit = 8;
191
192
  optional string template_variant = 9;
192
- repeated io.restorecommerce.attribute.Attribute attributes = 10;
193
+ repeated io.restorecommerce.property.Property properties = 10;
193
194
  }
194
195
 
195
196
  message VirtualVariant {
@@ -202,7 +203,7 @@ message VirtualVariant {
202
203
  repeated io.restorecommerce.file.File files = 7;
203
204
  optional string stock_keeping_unit = 8;
204
205
  optional string template_variant = 9;
205
- repeated io.restorecommerce.attribute.Attribute attributes = 10;
206
+ repeated io.restorecommerce.property.Property properties = 10;
206
207
  }
207
208
 
208
209
  message Bundle {
@@ -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
+ }
@@ -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.1",
3
+ "version": "5.0.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": "0b69448ada6429205437ec5642fded8495695360"
18
+ "gitHead": "10ce5d4cc82217c0f8148c0e609a904711484730"
19
19
  }