@restorecommerce/protos 3.0.0 → 3.0.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 +11 -0
- package/io/restorecommerce/access_control.proto +2 -2
- package/io/restorecommerce/attribute.proto +2 -2
- package/io/restorecommerce/filter.proto +1 -1
- package/io/restorecommerce/fulfillment.proto +1 -1
- package/io/restorecommerce/graph.proto +7 -7
- package/io/restorecommerce/invoice.proto +2 -2
- package/io/restorecommerce/job.proto +1 -1
- package/io/restorecommerce/meta.proto +2 -2
- package/io/restorecommerce/ostorage.proto +3 -3
- package/io/restorecommerce/product.proto +1 -1
- package/io/restorecommerce/rendering.proto +2 -2
- package/io/restorecommerce/resource_base.proto +5 -5
- package/io/restorecommerce/rule.proto +2 -2
- package/io/restorecommerce/search.proto +1 -1
- package/io/restorecommerce/user.proto +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## [3.0.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@3.0.0...@restorecommerce/protos@3.0.1) (2023-05-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **protos:** pluralize rendering proto ([f1f2afa](https://github.com/restorecommerce/libs/commit/f1f2afaa47755be6ba34fafda157ee797d2cb9fb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.0.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@2.0.2...@restorecommerce/protos@3.0.0) (2023-05-22)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -34,14 +34,14 @@ message Response {
|
|
|
34
34
|
INDETERMINATE = 3;
|
|
35
35
|
}
|
|
36
36
|
Decision decision = 1;
|
|
37
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
37
|
+
repeated io.restorecommerce.attribute.Attribute obligations = 2;
|
|
38
38
|
bool evaluation_cacheable = 3;
|
|
39
39
|
io.restorecommerce.status.OperationStatus operation_status = 4;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
message ReverseQuery {
|
|
43
43
|
repeated io.restorecommerce.policy_set.PolicySetRQ policy_sets = 1;
|
|
44
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
44
|
+
repeated io.restorecommerce.attribute.Attribute obligations = 2;
|
|
45
45
|
io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -5,9 +5,9 @@ package io.restorecommerce.attribute;
|
|
|
5
5
|
message Attribute {
|
|
6
6
|
optional string id = 1;
|
|
7
7
|
optional string value = 2;
|
|
8
|
-
repeated Attribute
|
|
8
|
+
repeated Attribute attributes = 3;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
message AttributeObj {
|
|
12
|
-
optional Attribute
|
|
12
|
+
optional Attribute attributes = 1;
|
|
13
13
|
}
|
|
@@ -156,7 +156,7 @@ message Fulfillment {
|
|
|
156
156
|
optional Packaging packaging = 2; //filled by user
|
|
157
157
|
optional io.restorecommerce.meta.Meta meta = 3;
|
|
158
158
|
repeated Label labels = 4; //filled by service
|
|
159
|
-
repeated Tracking
|
|
159
|
+
repeated Tracking trackings = 5; //filled by service
|
|
160
160
|
optional State state = 6; //filled by service
|
|
161
161
|
optional double total_price = 7;
|
|
162
162
|
optional double total_vat = 8;
|
|
@@ -25,21 +25,21 @@ message TraversalRequest {
|
|
|
25
25
|
|
|
26
26
|
message Vertices {
|
|
27
27
|
string collection_name = 1;
|
|
28
|
-
repeated string
|
|
28
|
+
repeated string start_vertex_ids = 2;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message Collection {
|
|
32
32
|
string collection_name = 1;
|
|
33
33
|
uint32 limit = 2;
|
|
34
34
|
uint32 offset = 3;
|
|
35
|
-
repeated io.restorecommerce.resourcebase.Sort
|
|
35
|
+
repeated io.restorecommerce.resourcebase.Sort sorts = 4;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
message Options {
|
|
39
|
-
repeated string
|
|
40
|
-
repeated string
|
|
41
|
-
repeated string
|
|
42
|
-
repeated string
|
|
39
|
+
repeated string include_vertexs = 1; // to include vertices
|
|
40
|
+
repeated string exclude_vertexs = 2; // to exclude vertices
|
|
41
|
+
repeated string include_edges = 3; // to include vertices
|
|
42
|
+
repeated string exclude_edges = 4; // to exclude vertices
|
|
43
43
|
Direction direction = 5; // either inbound or outbound, defaults to outbound direction
|
|
44
44
|
enum Direction {
|
|
45
45
|
OUTBOUND = 0;
|
|
@@ -51,7 +51,7 @@ message Options {
|
|
|
51
51
|
message Filters {
|
|
52
52
|
optional string entity = 1; // entity on which the filters are applied
|
|
53
53
|
optional string edge = 2; // if edge is specified depending on the direction filter are applied only for those entities
|
|
54
|
-
repeated Filter
|
|
54
|
+
repeated Filter filters = 3;
|
|
55
55
|
enum Operator {
|
|
56
56
|
and = 0;
|
|
57
57
|
or = 1;
|
|
@@ -89,7 +89,7 @@ message Invoice {
|
|
|
89
89
|
* List of Invoice Positions data
|
|
90
90
|
*/
|
|
91
91
|
message InvoicesPositionsData {
|
|
92
|
-
repeated InvoicePositions
|
|
92
|
+
repeated InvoicePositions invoice_positions = 1;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
message InvoicePositions {
|
|
@@ -128,7 +128,7 @@ message BillingAddress {
|
|
|
128
128
|
|
|
129
129
|
message InvoicePosition {
|
|
130
130
|
optional string currency = 1;
|
|
131
|
-
repeated InvoiceRow
|
|
131
|
+
repeated InvoiceRow invoiceRows = 2;
|
|
132
132
|
optional InvoicePrice totalPrice = 3;
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -165,7 +165,7 @@ message JobReadRequest {
|
|
|
165
165
|
optional JobFilter filter = 4;
|
|
166
166
|
|
|
167
167
|
// Fields selector
|
|
168
|
-
repeated io.restorecommerce.resourcebase.FieldFilter
|
|
168
|
+
repeated io.restorecommerce.resourcebase.FieldFilter fields = 3;
|
|
169
169
|
io.restorecommerce.auth.Subject subject = 5;
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -10,6 +10,6 @@ message Meta {
|
|
|
10
10
|
optional double created = 1; // timestamp
|
|
11
11
|
optional double modified = 2; // timestamp
|
|
12
12
|
optional string modified_by = 3; // ID from last User who modified it
|
|
13
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
14
|
-
repeated io.restorecommerce.attribute.AttributeObj
|
|
13
|
+
repeated io.restorecommerce.attribute.Attribute owners = 4;
|
|
14
|
+
repeated io.restorecommerce.attribute.AttributeObj acls = 5;
|
|
15
15
|
}
|
|
@@ -30,7 +30,7 @@ message CopyRequestList {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
message CopyResponseList {
|
|
33
|
-
repeated copyResponsePayloadWithStatus
|
|
33
|
+
repeated copyResponsePayloadWithStatus responses = 1;
|
|
34
34
|
io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -104,7 +104,7 @@ message GetRequest {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
message ListResponse {
|
|
107
|
-
repeated ObjectsDataWithPayloadStatus
|
|
107
|
+
repeated ObjectsDataWithPayloadStatus responses = 1;
|
|
108
108
|
io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -175,7 +175,7 @@ message MoveRequestItem {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
message MoveResponseList {
|
|
178
|
-
repeated MoveResponsePayloadWithStatus
|
|
178
|
+
repeated MoveResponsePayloadWithStatus responses = 1;
|
|
179
179
|
io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -185,7 +185,7 @@ message VirtualVariant {
|
|
|
185
185
|
message Bundle {
|
|
186
186
|
optional string name = 1;
|
|
187
187
|
optional string description = 2;
|
|
188
|
-
repeated io.restorecommerce.image.Image
|
|
188
|
+
repeated io.restorecommerce.image.Image images = 3;
|
|
189
189
|
repeated BundleProduct products = 4;
|
|
190
190
|
optional double price = 5;
|
|
191
191
|
optional Package pre_packaged = 6;
|
|
@@ -25,10 +25,10 @@ message Payload {
|
|
|
25
25
|
message RenderRequest {
|
|
26
26
|
string id = 1; // identifies the render request payload
|
|
27
27
|
// List of templates with associated data and rendering options
|
|
28
|
-
repeated Payload
|
|
28
|
+
repeated Payload payloads = 2;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message RenderResponse {
|
|
32
32
|
string id = 1;
|
|
33
|
-
repeated google.protobuf.Any
|
|
33
|
+
repeated google.protobuf.Any responses = 2; // error or HTML contents
|
|
34
34
|
}
|
|
@@ -58,7 +58,7 @@ message Filter {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
message FilterOp {
|
|
61
|
-
repeated Filter
|
|
61
|
+
repeated Filter filters = 1;
|
|
62
62
|
enum Operator {
|
|
63
63
|
and = 0;
|
|
64
64
|
or = 1;
|
|
@@ -75,13 +75,13 @@ message Search {
|
|
|
75
75
|
message ReadRequest {
|
|
76
76
|
optional uint32 offset = 1;
|
|
77
77
|
optional uint32 limit = 2;
|
|
78
|
-
repeated Sort
|
|
78
|
+
repeated Sort sorts = 3;
|
|
79
79
|
|
|
80
80
|
/// Filter based on fieldName|operation, value|list
|
|
81
81
|
repeated FilterOp filters = 4; // repeated filters
|
|
82
82
|
|
|
83
83
|
/// Fields selector
|
|
84
|
-
repeated FieldFilter
|
|
84
|
+
repeated FieldFilter fields = 5;
|
|
85
85
|
|
|
86
86
|
/** Check the query parameters of HTTP request.
|
|
87
87
|
* If query parameter `locales` is given,
|
|
@@ -104,8 +104,8 @@ message DeleteRequest {
|
|
|
104
104
|
/// Delete specified documents
|
|
105
105
|
repeated string ids = 2;
|
|
106
106
|
io.restorecommerce.auth.Subject subject = 3;
|
|
107
|
-
repeated string
|
|
108
|
-
repeated string
|
|
107
|
+
repeated string views = 4; // list of views to be dropped
|
|
108
|
+
repeated string analyzers = 5; // list of analyzers to be deleted
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
message DeleteResponse {
|
|
@@ -14,9 +14,9 @@ import "io/restorecommerce/options.proto";
|
|
|
14
14
|
* Target specified by a Rule or a Request.
|
|
15
15
|
*/
|
|
16
16
|
message Target {
|
|
17
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
17
|
+
repeated io.restorecommerce.attribute.Attribute subjects = 1;
|
|
18
18
|
repeated io.restorecommerce.attribute.Attribute resources = 2;
|
|
19
|
-
repeated io.restorecommerce.attribute.Attribute
|
|
19
|
+
repeated io.restorecommerce.attribute.Attribute actions = 3;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -353,5 +353,5 @@ message UserRole {
|
|
|
353
353
|
repeated io.restorecommerce.auth.Tokens tokens = 24;
|
|
354
354
|
double last_access = 25;
|
|
355
355
|
google.protobuf.Any data = 26; /// additional data
|
|
356
|
-
repeated io.restorecommerce.role.Role
|
|
356
|
+
repeated io.restorecommerce.role.Role roles = 27;
|
|
357
357
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.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": "
|
|
18
|
+
"gitHead": "1c4ac0aaccaa55439930b96256d6db3884690cb0"
|
|
19
19
|
}
|