@restorecommerce/protos 0.4.8 → 0.6.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,80 @@
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
+ # [0.6.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.5.0...@restorecommerce/protos@0.6.0) (2022-02-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **protos:** added type for location ([d332fdd](https://github.com/restorecommerce/libs/commit/d332fdd687b361381259b77beddc4d646ad6d718))
12
+ * **protos:** removed children_ids for location proto ([4908e7c](https://github.com/restorecommerce/libs/commit/4908e7c36312bb2a45e9402c357be8f0e0a5ffd0))
13
+ * **protos:** up organization proto to remove children_ids ([b0b8741](https://github.com/restorecommerce/libs/commit/b0b8741e2ad3b0cbec605ebbfdca75e50e7c0f61))
14
+
15
+
16
+ ### Features
17
+
18
+ * add oauth ([3e7798e](https://github.com/restorecommerce/libs/commit/3e7798e3aa10ef092872928f5254cd5fbb125f3b))
19
+
20
+
21
+
22
+
23
+
24
+ # [0.5.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.11...@restorecommerce/protos@0.5.0) (2022-01-28)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * **fix generated interfaces: convert snake_case to camelcase:** snake_case to camelCase ([bf78c27](https://github.com/restorecommerce/libs/commit/bf78c27a1e776d716c711c0b633acd7609ca4561))
30
+
31
+
32
+ ### Features
33
+
34
+ * **add protos for fulfillment-product solution proposals:** packsol ([ce6f78f](https://github.com/restorecommerce/libs/commit/ce6f78f34a39924aa30c50857ad751b9ac3be396))
35
+
36
+
37
+ ### BREAKING CHANGES
38
+
39
+ * **add protos for fulfillment-product solution proposals:** fulfillment.proto, fulfillment-courier.proto and fulfillment-product.proto have
40
+ changed completely
41
+
42
+
43
+
44
+
45
+
46
+ ## [0.4.11](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.10...@restorecommerce/protos@0.4.11) (2021-12-09)
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * **protos:** updated access_control proto to include `obligation` in isAllowed and whatIsAllowed response. ([c2af601](https://github.com/restorecommerce/libs/commit/c2af60104bf8cbcde9296ee99a374b6bdddb132a))
52
+
53
+
54
+
55
+
56
+
57
+ ## [0.4.10](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.9...@restorecommerce/protos@0.4.10) (2021-12-06)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * **protos:** fixed import and reference errors ([6efb6b1](https://github.com/restorecommerce/libs/commit/6efb6b1954bf6449f8c58e267f959b22c45e8066))
63
+ * **protos:** updated graph proto to include operation status ([dcf0a39](https://github.com/restorecommerce/libs/commit/dcf0a3920bcfd098efdd42d6186864359025b1fd))
64
+
65
+
66
+
67
+
68
+
69
+ ## [0.4.9](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.8...@restorecommerce/protos@0.4.9) (2021-11-08)
70
+
71
+
72
+ ### Bug Fixes
73
+
74
+ * **protos:** rename sourcePath to sourceObject for Move api ([11c5049](https://github.com/restorecommerce/libs/commit/11c504939fc22005c22dc28b3b6886684a1224c3))
75
+
76
+
77
+
78
+
79
+
6
80
  ## [0.4.8](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.4.7...@restorecommerce/protos@0.4.8) (2021-11-05)
7
81
 
8
82
 
@@ -6,6 +6,7 @@ import "google/protobuf/any.proto";
6
6
  import "io/restorecommerce/rule.proto";
7
7
  import "io/restorecommerce/policy_set.proto";
8
8
  import "io/restorecommerce/status.proto";
9
+ import "io/restorecommerce/attribute.proto";
9
10
 
10
11
  /**
11
12
  * Access control service interface.
@@ -32,14 +33,15 @@ message Response {
32
33
  INDETERMINATE = 3;
33
34
  }
34
35
  Decision decision = 1;
35
- string obligation = 2;
36
+ repeated io.restorecommerce.attribute.Attribute obligation = 2;
36
37
  bool evaluation_cacheable = 3;
37
38
  io.restorecommerce.status.OperationStatus operation_status = 4;
38
39
  }
39
40
 
40
41
  message ReverseQuery {
41
42
  repeated io.restorecommerce.policy_set.PolicySetRQ policy_sets = 1;
42
- io.restorecommerce.status.OperationStatus operation_status = 2;
43
+ repeated io.restorecommerce.attribute.Attribute obligation = 2;
44
+ io.restorecommerce.status.OperationStatus operation_status = 3;
43
45
  }
44
46
 
45
47
  service Service {
@@ -6,6 +6,7 @@ import "google/protobuf/any.proto";
6
6
  import "io/restorecommerce/resource_base.proto";
7
7
  import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/status.proto";
9
+ import "io/restorecommerce/meta.proto";
9
10
  import "io/restorecommerce/address.proto";
10
11
  import "io/restorecommerce/country.proto";
11
12
 
@@ -19,25 +20,10 @@ service Service {
19
20
  rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (FulfillmentResponseList);
20
21
 
21
22
  /**
22
- Creates but does not execute fulfillment orders
23
+ Creates and executes fulfillment orders
23
24
  */
24
25
  rpc Create (FulfillmentRequestList) returns (FulfillmentResponseList);
25
26
 
26
- /**
27
- Updates but does not execute fulfillment orders
28
- */
29
- rpc Update (FulfillmentRequestList) returns (FulfillmentResponseList);
30
-
31
- /**
32
- Upserts but does not execute fulfillment orders
33
- */
34
- rpc Upsert (FulfillmentRequestList) returns (FulfillmentResponseList);
35
-
36
- /**
37
- Executes and Upserts fulfillment orders
38
- */
39
- rpc Order (FulfillmentRequestList) returns (FulfillmentResponseList);
40
-
41
27
  /**
42
28
  Track a batch of fulfillment orders
43
29
  */
@@ -46,7 +32,7 @@ service Service {
46
32
  /**
47
33
  Cancel a batch of fulfillment orders
48
34
  */
49
- rpc Cancel (CancelRequestList) returns (CancelResultList);
35
+ rpc Cancel (CancelRequestList) returns (FulfillmentResponseList);
50
36
 
51
37
  /**
52
38
  Delete a batch of fulfillments from the database
@@ -55,17 +41,13 @@ service Service {
55
41
  }
56
42
 
57
43
  enum State {
58
- Incomplete = 0;
59
- Ordered = 1;
60
- Processing = 2;
61
- Done=3;
62
- Cancelled = 4;
63
- Failed = 5;
64
- }
65
-
66
- message Origin {
67
- string country = 1;
68
- string iso_code = 2;
44
+ Undefined = 0;
45
+ Invalid = 1;
46
+ Ordered = 2;
47
+ Shipping = 3;
48
+ Done= 4;
49
+ Cancelled = 5;
50
+ Failed = 6;
69
51
  }
70
52
 
71
53
  message Contact {
@@ -75,13 +57,15 @@ message Contact {
75
57
  }
76
58
 
77
59
  message Branch {
78
- string branch_number = 1;
79
- string post_number = 2;
60
+ string provider = 1;
61
+ string branch_number = 2;
62
+ string post_number = 3;
80
63
  }
81
64
 
82
65
  message Packstation {
83
- string station_number = 1;
84
- string post_number = 2;
66
+ string provider = 1;
67
+ string station_number = 2;
68
+ string post_number = 3;
85
69
  }
86
70
 
87
71
  message Address {
@@ -92,22 +76,30 @@ message Address {
92
76
  Packstation packstation = 4;
93
77
  Branch branch = 5;
94
78
  };
95
- io.restorecommerce.counrty country = 6;
79
+ io.restorecommerce.country.Country country = 6;
96
80
  Contact contact = 7;
97
81
  }
98
82
 
99
83
  message Parcel {
100
- int32 quantity = 1;
101
- float weight = 2;
102
- float height = 3;
103
- float width = 4;
104
- float length = 5;
84
+ message Item {
85
+ string item_id = 1;
86
+ int32 quantity = 2;
87
+ }
88
+
89
+ string product_id = 1;
90
+ string product_variant_id = 2;
91
+ repeated Item items = 3;
92
+ float weight_in_kg = 4;
93
+ float height_in_cm = 5;
94
+ float width_in_cm = 6;
95
+ float length_in_cm = 7;
105
96
  }
106
97
 
107
98
  message Order {
108
- repeated Parcel parcels = 1;
109
- Address sender = 2;
110
- Address receiver = 3;
99
+ string reference_id = 1;
100
+ repeated Parcel parcels = 2;
101
+ Address sender = 3;
102
+ Address receiver = 4;
111
103
  string notify = 5;
112
104
  }
113
105
 
@@ -117,24 +109,15 @@ message Label {
117
109
  string pdf = 2;
118
110
  string png = 3;
119
111
  }
120
- string shipment_id = 4; //filled on Order
112
+ string shipment_number = 4; //filled on Order
121
113
  State state = 5; //update by Track
122
114
  io.restorecommerce.status.Status status = 6; //API status
123
115
  }
124
116
 
125
- message Event {
126
- io.restorecommerce.status.Status status = 1;
127
- string timestamp = 2;
128
- string location = 3;
129
- google.protobuf.Any details = 4;
130
- }
131
-
132
117
  message FulfillmentRequest {
133
118
  string id = 1;
134
- string courier_id = 2;
135
- string product_id = 3;
136
- Order order = 4;
137
- io.restorecommerce.meta.Meta meta = 5;
119
+ Order order = 2;
120
+ io.restorecommerce.meta.Meta meta = 3;
138
121
  }
139
122
 
140
123
  message FulfillmentRequestList {
@@ -148,11 +131,10 @@ This is the message how it get stored to the database
148
131
  */
149
132
  message Fulfillment {
150
133
  string id = 1;
151
- string courier_id = 2;
152
- string product_id = 3;
153
- Order order = 4;
154
- io.restorecommerce.meta.Meta meta = 5;
155
- Label label = 6; //filled on Order
134
+ Order order = 2;
135
+ io.restorecommerce.meta.Meta meta = 3;
136
+ repeated Label labels = 4; //filled by service
137
+ bool fulfilled = 5;
156
138
  }
157
139
 
158
140
  message FulfillmentResponse {
@@ -167,8 +149,9 @@ message FulfillmentResponseList {
167
149
  }
168
150
 
169
151
  message TrackingRequest {
170
- string order_id = 1;
171
- google.protobuf.Any options = 2;
152
+ string fulfillment_id = 1;
153
+ repeated string shipment_numbers = 2; //optional
154
+ google.protobuf.Any options = 3;
172
155
  }
173
156
 
174
157
  message TrackingRequestList {
@@ -176,15 +159,28 @@ message TrackingRequestList {
176
159
  io.restorecommerce.auth.Subject subject = 2;
177
160
  }
178
161
 
179
- message Tracking {
180
- string fulfillment_id = 1;
181
- repeated Event events = 2;
162
+ message Event {
163
+ int64 timestamp = 1;
164
+ string location = 2;
182
165
  google.protobuf.Any details = 3;
183
166
  io.restorecommerce.status.Status status = 4;
184
167
  }
185
168
 
169
+ message Tracking {
170
+ string shipment_number = 1;
171
+ repeated Event events = 3;
172
+ google.protobuf.Any details = 4;
173
+ io.restorecommerce.status.Status status = 5;
174
+ }
175
+
176
+ message TrackingResult {
177
+ Fulfillment fulfillment = 1;
178
+ repeated Tracking tracks = 2;
179
+ io.restorecommerce.status.Status status = 3;
180
+ }
181
+
186
182
  message TrackingResultList {
187
- repeated Tracking items = 1;
183
+ repeated TrackingResult items = 1;
188
184
  io.restorecommerce.status.OperationStatus operation_status = 2;
189
185
  }
190
186
 
@@ -193,11 +189,6 @@ message CancelRequestList {
193
189
  io.restorecommerce.auth.Subject subject = 2;
194
190
  }
195
191
 
196
- message CancelResultList {
197
- repeated io.restorecommerce.status.Status items = 1;
198
- io.restorecommerce.status.OperationStatus operation_status = 2;
199
- }
200
-
201
192
  message Deleted {
202
193
  string id = 1;
203
194
  }
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
 
3
3
  package io.restorecommerce.fulfillment_courier;
4
4
 
5
+ import "google/protobuf/any.proto";
5
6
  import "io/restorecommerce/resource_base.proto";
6
7
  import "io/restorecommerce/meta.proto";
7
8
  import "io/restorecommerce/auth.proto";
@@ -12,37 +13,37 @@ Microservice defination
12
13
  */
13
14
 
14
15
  service Service {
15
- rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (CourierResponseList);
16
- rpc Create (CourierList) returns (CourierResponseList);
17
- rpc Update (CourierList) returns (CourierResponseList);
18
- rpc Upsert (CourierList) returns (CourierResponseList);
16
+ rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (FulfillmentCourierResponseList);
17
+ rpc Create (FulfillmentCourierList) returns (FulfillmentCourierResponseList);
18
+ rpc Update (FulfillmentCourierList) returns (FulfillmentCourierResponseList);
19
+ rpc Upsert (FulfillmentCourierList) returns (FulfillmentCourierResponseList);
19
20
  rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
20
21
  }
21
22
 
22
- message Courier {
23
+ message FulfillmentCourier {
23
24
  string id = 1;
24
25
  string name = 4;
25
26
  string description = 5;
26
27
  string logo = 6;
27
28
  string website = 7;
28
29
  string stub_type = 8;
29
- google.protobuf.Any configuration = 9;
30
- io.restorecommerce.meta.Meta meta = 10;
30
+ google.protobuf.Any configuration = 10;
31
+ io.restorecommerce.meta.Meta meta = 11;
31
32
  }
32
33
 
33
- message CourierList {
34
- repeated Courier items = 1;
34
+ message FulfillmentCourierList {
35
+ repeated FulfillmentCourier items = 1;
35
36
  uint32 total_count = 2;
36
37
  io.restorecommerce.auth.Subject subject = 3;
37
38
  }
38
39
 
39
- message CourierResponse {
40
- Courier payload = 1;
40
+ message FulfillmentCourierResponse {
41
+ FulfillmentCourier payload = 1;
41
42
  io.restorecommerce.status.Status status = 2;
42
43
  }
43
44
 
44
- message CourierResponseList {
45
- repeated CourierResponse items = 1;
45
+ message FulfillmentCourierResponseList {
46
+ repeated FulfillmentCourierResponse items = 1;
46
47
  uint32 total_count = 2;
47
48
  io.restorecommerce.status.OperationStatus operation_status = 3;
48
49
  }
@@ -6,42 +6,37 @@ import "io/restorecommerce/resource_base.proto";
6
6
  import "io/restorecommerce/meta.proto";
7
7
  import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/status.proto";
9
+ import "io/restorecommerce/attribute.proto";
10
+ import "io/restorecommerce/order.proto";
9
11
  import "io/restorecommerce/fulfillment.proto";
10
12
 
13
+
11
14
  /**
12
15
  Microservice defination
13
16
  */
14
17
 
15
18
  service Service {
16
- rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (ProductResponseList);
17
- rpc Find (QueryList) returns (ProductResponseList);
18
- /* - start_address
19
- - destination_address
20
- - good[]:
21
- - quantity
22
- - weight
23
- - height
24
- - width
25
- - depth*/
26
-
27
- rpc Create (ProductList) returns (ProductResponseList);
28
- rpc Update (ProductList) returns (ProductResponseList);
29
- rpc Upsert (ProductList) returns (ProductResponseList);
19
+ rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (FulfillmentProductResponseList);
20
+ rpc Find (QueryList) returns (PackingSolutionResponseList);
21
+ rpc Create (FulfillmentProductList) returns (FulfillmentProductResponseList);
22
+ rpc Update (FulfillmentProductList) returns (FulfillmentProductResponseList);
23
+ rpc Upsert (FulfillmentProductList) returns (FulfillmentProductResponseList);
30
24
  rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
31
25
  }
32
26
 
33
- message Good {
34
- double quantity = 1;
35
- double weight = 2;
36
- double height = 3;
37
- double width = 4;
38
- double length = 5;
27
+ message Preferences {
28
+ repeated io.restorecommerce.attribute.Attribute couriers = 1; //ID, name or type
29
+ float pricing = 2;
30
+ float compactness = 3;
31
+ float homogeneity = 4;
39
32
  }
40
33
 
41
34
  message Query {
42
35
  io.restorecommerce.fulfillment.Address sender = 1;
43
- io.restorecommerce.fulfillment.Address receiver = 2;
44
- repeated Good good = 3;
36
+ io.restorecommerce.fulfillment.Address receiver = 2;
37
+ repeated io.restorecommerce.order.Item goods = 3;
38
+ Preferences preferences = 4;
39
+ string reference_id = 5;
45
40
  }
46
41
 
47
42
  message QueryList {
@@ -50,19 +45,19 @@ message QueryList {
50
45
  io.restorecommerce.auth.Subject subject = 3;
51
46
  }
52
47
 
53
- message Product {
48
+ message FulfillmentProduct {
54
49
  string id = 1;
55
50
  string name = 2;
56
51
  string description = 3;
57
52
  string courier_id = 4;
58
- repeated io.restorecommerce.country.Country start_country = 5;
59
- repeated string start_zone = 6;
60
- repeated io.restorecommerce.country.Country destination_country = 5;
61
- repeated string destination_zone = 6;
62
- repeated string tax_id = 7;
63
- repeated io.restorecommerce.attribute.Attribute attributes = 8;
64
- repeated Variant variants = 9;
65
- io.restorecommerce.meta.Meta meta = 10;
53
+ //repeated io.restorecommerce.country.Country start_country = 5;
54
+ repeated string start_zones = 6;
55
+ //repeated io.restorecommerce.country.Country destination_country = 7;
56
+ repeated string destination_zones = 8;
57
+ repeated string tax_ids = 9;
58
+ repeated io.restorecommerce.attribute.Attribute attributes = 10;
59
+ repeated Variant variants = 11;
60
+ io.restorecommerce.meta.Meta meta = 12;
66
61
  }
67
62
 
68
63
  message Variant {
@@ -77,19 +72,39 @@ message Variant {
77
72
  double max_volume = 9;
78
73
  }
79
74
 
80
- message ProductList {
81
- repeated Product items = 1;
75
+ message FulfillmentProductList {
76
+ repeated FulfillmentProduct items = 1;
82
77
  uint32 total_count = 2;
83
78
  io.restorecommerce.auth.Subject subject = 3;
84
79
  }
85
80
 
86
- message ProductResponse {
87
- Product payload = 1;
81
+ message FulfillmentProductResponse {
82
+ FulfillmentProduct payload = 1;
83
+ io.restorecommerce.status.Status status = 2;
84
+ }
85
+
86
+ message FulfillmentProductResponseList {
87
+ repeated FulfillmentProductResponse items = 1;
88
+ uint32 total_count = 2;
89
+ io.restorecommerce.status.OperationStatus operation_status = 3;
90
+ }
91
+
92
+ message PackingSolution {
93
+ string reference_id = 1;
94
+ float price = 2;
95
+ float compactness = 3;
96
+ float homogeneity = 4;
97
+ float score = 5;
98
+ repeated io.restorecommerce.fulfillment.Parcel parcels = 6;
99
+ }
100
+
101
+ message PackingSolutionResponse {
102
+ repeated PackingSolution solutions = 1;
88
103
  io.restorecommerce.status.Status status = 2;
89
104
  }
90
105
 
91
- message ProductResponseList {
92
- repeated ProductResponse items = 1;
106
+ message PackingSolutionResponseList {
107
+ repeated PackingSolutionResponse items = 1;
93
108
  uint32 total_count = 2;
94
109
  io.restorecommerce.status.OperationStatus operation_status = 3;
95
110
  }
@@ -1,7 +1,10 @@
1
1
  syntax = "proto3";
2
2
  package io.restorecommerce.graph;
3
+
3
4
  import "google/protobuf/any.proto";
4
5
  import "io/restorecommerce/auth.proto";
6
+ import "io/restorecommerce/status.proto";
7
+ import "io/restorecommerce/resource_base.proto";
5
8
 
6
9
  // Service provides the CRUD operations
7
10
  service Service {
@@ -9,68 +12,81 @@ service Service {
9
12
  }
10
13
 
11
14
  message TraversalRequest {
12
- message StartVertices {
13
- repeated string vertices = 1;
14
- }
15
-
16
15
  // Document handle either _id or _key value
17
16
  oneof vertex {
18
- string start_vertex = 1;
19
- StartVertices start_vertices = 2;
17
+ Vertices vertices = 1;
18
+ Collection collection = 2;
20
19
  }
21
-
22
- // Filter based on fieldName|operation, value|list
23
20
  Options opts = 3;
24
- string collection_name = 4;
25
- string edge_name = 5;
26
- bool data = 6;
27
- bool path = 7;
28
- bool aql = 8;
29
- io.restorecommerce.auth.Subject subject = 9;
21
+ bool path = 4;
22
+ io.restorecommerce.auth.Subject subject = 5;
23
+ repeated Filters filters = 6;
30
24
  }
31
25
 
32
- message TraversalResponse {
33
- repeated VertexFields vertex_fields = 1;
34
- google.protobuf.Any paths = 2;
35
- google.protobuf.Any data = 3;
26
+ message Vertices {
27
+ string collection_name = 1;
28
+ repeated string start_vertex_id = 2;
36
29
  }
37
30
 
38
- message VertexFields {
39
- string id = 1;
40
- string key = 2;
41
- string rev = 3;
31
+ message Collection {
32
+ string collection_name = 1;
33
+ uint32 limit = 2;
34
+ uint32 offset = 3;
35
+ repeated io.restorecommerce.resourcebase.Sort sort = 4;
42
36
  }
43
37
 
44
38
  message Options {
45
- string sort = 1; // JS code
46
- string direction = 2; // either inbound or outbound
47
- uint32 min_depth = 3; // ANDed with any existing filters): visits only nodes in at least the given depth
48
- string start_vertex = 4; // id of the startVertex
49
- string visitor = 5; // JS code
50
- string item_order = 6; // item iteration order can be "forward" or "backward"
51
- string strategy = 7; // traversal strategy can be "depthfirst" or "breadthfirst"
52
- repeated Filter filter = 8; // JS code
53
- string init = 9; // JS code
54
- uint32 max_iterations = 10; // maximum number of iterations in each traversal
55
- uint32 max_depth = 11; // ANDed with any existing filters visits only nodes in at most the given depth
56
- Uniqueness uniqueness = 12; // specifies uniqueness for vertices and edges visited
57
- string order = 13; // "preorder", "postorder" or "preorder-expander"
58
- string graph_name = 14; // name of graph that contains the edges
59
- repeated Expander expander = 15; // JS code
60
- string edge_collection = 16; // name of the collection that contains the edges
61
- bool lowest_common_ancestor = 17;
39
+ repeated string include_vertex = 1; // to include vertices
40
+ repeated string exclude_vertex = 2; // to exclude vertices
41
+ repeated string include_edge = 3; // to include vertices
42
+ repeated string exclude_edge = 4; // to exclude vertices
43
+ Direction direction = 5; // either inbound or outbound, defaults to outbound direction
44
+ enum Direction {
45
+ OUTBOUND = 0;
46
+ INBOUND = 1;
47
+ }
62
48
  }
63
49
 
64
- message Filter {
65
- string vertex = 1; // exclude these vertices
66
- }
67
50
 
68
- message Expander {
69
- string edge = 1; // expand these edges
70
- string direction = 2;
51
+ message Filters {
52
+ string entity = 1; // entity on which the filters are applied
53
+ string edge = 2; // if edge is specified depending on the direction filter are applied only for those entities
54
+ repeated Filter filter = 3;
55
+ enum Operator {
56
+ and = 0;
57
+ or = 1;
58
+ }
59
+ Operator operator = 4;
71
60
  }
72
61
 
73
- message Uniqueness {
74
- string vertices = 1; // "none"|"global"|"path" for unique vertices
75
- string edges = 2; // "none"|"global"|"path" for unique edges
62
+ message Filter {
63
+ string field = 1;
64
+ enum Operation {
65
+ eq = 0;
66
+ lt = 1;
67
+ lte = 2;
68
+ gt = 3;
69
+ gte = 4;
70
+ isEmpty = 5;
71
+ iLike = 6;
72
+ in = 7;
73
+ neq = 8;
74
+ }
75
+ Operation operation = 2;
76
+ string value = 3;
77
+ enum ValueType {
78
+ STRING = 0; // default value type if not specified
79
+ NUMBER = 1;
80
+ BOOLEAN = 2;
81
+ DATE = 3;
82
+ ARRAY = 4;
83
+ }
84
+ ValueType type = 4;
85
+ repeated Filters filters = 5;
76
86
  }
87
+
88
+ message TraversalResponse {
89
+ google.protobuf.Any data = 1; // vertices
90
+ google.protobuf.Any paths = 2; // traversed vertices paths
91
+ io.restorecommerce.status.OperationStatus operation_status = 3;
92
+ }
@@ -47,7 +47,7 @@ message Location {
47
47
  string description = 4;
48
48
  string organization_id = 5; // Organization to which this location is linked
49
49
  string parent_id = 6; // Location which may contain this location; may be null
50
- repeated string children_ids = 7; // Locations contained in this location
51
50
  string address_id = 8;
52
51
  google.protobuf.Any data = 9; /// additional data
52
+ string type = 10; // location type
53
53
  }
@@ -0,0 +1,31 @@
1
+ syntax = "proto3";
2
+
3
+ package io.restorecommerce.oauth;
4
+
5
+ import "io/restorecommerce/user.proto";
6
+ import "google/protobuf/empty.proto";
7
+
8
+ service Service {
9
+ rpc AvailableServices(google.protobuf.Empty) returns (ServicesResponse);
10
+ rpc GenerateLinks(google.protobuf.Empty) returns (GenerateLinksResponse);
11
+ rpc ExchangeCode(ExchangeCodeRequest) returns (ExchangeCodeResponse);
12
+ }
13
+
14
+ message ServicesResponse {
15
+ repeated string services = 1;
16
+ }
17
+
18
+ message GenerateLinksResponse {
19
+ map<string, string> links = 1;
20
+ }
21
+
22
+ message ExchangeCodeRequest {
23
+ string service = 1;
24
+ string code = 2;
25
+ string state = 3;
26
+ }
27
+
28
+ message ExchangeCodeResponse {
29
+ io.restorecommerce.user.UserResponse user = 1;
30
+ string email = 2;
31
+ }
@@ -48,7 +48,6 @@ message Organization {
48
48
  io.restorecommerce.meta.Meta meta = 2;
49
49
  string address_id = 3; /// Address for the organization
50
50
  string parent_id = 4; // Hierarchically superior organization; may be null
51
- repeated string children_ids = 5; // Hierarchically inferior organizations; may be null/empty
52
51
  repeated string contact_point_ids = 6; // list of possible legal addresses of different types
53
52
  string website = 7;
54
53
  string email = 8;
@@ -162,9 +162,9 @@ message MoveRequestList {
162
162
  }
163
163
 
164
164
  message MoveRequestItem {
165
- string bucket = 1;
166
- string sourcePath = 2;
167
- string key = 3;
165
+ string bucket = 1; // destination bucket name
166
+ string sourceObject = 2; // source object with bucket name
167
+ string key = 3; // destination key name
168
168
  io.restorecommerce.meta.Meta meta = 4;
169
169
  Options options = 5;
170
170
  }
@@ -181,7 +181,7 @@ message MoveResponsePayloadWithStatus {
181
181
 
182
182
  message MoveResponseItem {
183
183
  string bucket = 1;
184
- string sourcePath = 2;
184
+ string sourceObject = 2;
185
185
  string key = 3;
186
186
  io.restorecommerce.meta.Meta meta = 4;
187
187
  Options options = 5;
@@ -1,6 +1,5 @@
1
1
  syntax = "proto3";
2
2
  package io.restorecommerce.payment;
3
- import "google/protobuf/wrappers.proto";
4
3
  import "io/restorecommerce/auth.proto";
5
4
  import "io/restorecommerce/status.proto";
6
5
 
@@ -75,7 +75,7 @@ message Variant {
75
75
  repeated io.restorecommerce.image.Image image = 8;
76
76
  string stock_keeping_unit = 9;
77
77
  string template_variant = 10;
78
- repeated Attribute attributes = 11;
78
+ repeated io.restorecommerce.attribute.Attribute attributes = 11;
79
79
  }
80
80
 
81
81
  message Bundle {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "0.4.8",
3
+ "version": "0.6.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": "21cc27c93eab50ae5f0294b9495fb0404a09aacd"
18
+ "gitHead": "97966555c4e421699a8a7c054f41ccc4385f618f"
19
19
  }