@restorecommerce/protos 1.0.0 → 1.1.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 +17 -0
- package/io/restorecommerce/auth.proto +3 -5
- package/io/restorecommerce/job.proto +1 -1
- package/io/restorecommerce/options.proto +12 -0
- package/io/restorecommerce/resource_base.proto +9 -1
- package/io/restorecommerce/search.proto +3 -0
- package/io/restorecommerce/user.proto +8 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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
|
+
# [1.1.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@1.0.0...@restorecommerce/protos@1.1.0) (2022-10-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **protos:** added timezone on Job cron repeat options. ([d25a5c0](https://github.com/restorecommerce/libs/commit/d25a5c0740d8f04102691a5eb3b4c5745fbb75ad))
|
|
12
|
+
* **protos:** restore subject id for auth subject ([150e663](https://github.com/restorecommerce/libs/commit/150e663c0c090721da9b7ce028714d5df7994972))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **facade:** add subscriptions ([d9006e9](https://github.com/restorecommerce/libs/commit/d9006e9ebcd1522a67373f8ca8bfa751c551b36f))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [1.0.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@0.7.2...@restorecommerce/protos@1.0.0) (2022-08-25)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -8,11 +8,9 @@ import "io/restorecommerce/attribute.proto";
|
|
|
8
8
|
*/
|
|
9
9
|
message Subject {
|
|
10
10
|
string id = 1; // user id
|
|
11
|
-
string scope = 2; // target scope
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
bool unauthenticated = 5; // for unauthenticated context
|
|
15
|
-
string token = 6;
|
|
11
|
+
string scope = 2; // target scope (ID of the target scoping entity)
|
|
12
|
+
bool unauthenticated = 3; // for unauthenticated context
|
|
13
|
+
string token = 4;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
message Tokens {
|
|
@@ -96,11 +96,11 @@ message Repeat {
|
|
|
96
96
|
string endDate = 4;
|
|
97
97
|
uint32 count = 5;
|
|
98
98
|
string jobId = 6; // To override the job ID - by default, the job ID is a unique generated by bull
|
|
99
|
+
string tz = 7; // time zone
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
// Data which is stored within a job instance
|
|
102
103
|
message Data {
|
|
103
|
-
string timezone = 1;
|
|
104
104
|
google.protobuf.Any payload = 2; // optional variable payload
|
|
105
105
|
io.restorecommerce.meta.Meta meta = 3;
|
|
106
106
|
string subject_id = 4; // id of job creator
|
|
@@ -23,3 +23,15 @@ message Resolver {
|
|
|
23
23
|
string target_method = 4;
|
|
24
24
|
string field_name = 5;
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
extend google.protobuf.MessageOptions {
|
|
28
|
+
KafkaSubscription kafka_subscriber = 31003;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message KafkaSubscription {
|
|
32
|
+
string plural = 1;
|
|
33
|
+
string topic = 2;
|
|
34
|
+
string created = 3;
|
|
35
|
+
string updated = 4;
|
|
36
|
+
string deleted = 5;
|
|
37
|
+
}
|
|
@@ -66,6 +66,12 @@ message FilterOp {
|
|
|
66
66
|
Operator operator = 2;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
message Search {
|
|
70
|
+
string search = 1; // search string
|
|
71
|
+
repeated string fields = 2; // list of fields to be searched on entity (if not specified all indexed fields will be searched)
|
|
72
|
+
bool case_sensitive = 3; // default search is case insensitive
|
|
73
|
+
}
|
|
74
|
+
|
|
69
75
|
message ReadRequest {
|
|
70
76
|
uint32 offset = 1;
|
|
71
77
|
uint32 limit = 2;
|
|
@@ -76,7 +82,6 @@ message ReadRequest {
|
|
|
76
82
|
|
|
77
83
|
/// Fields selector
|
|
78
84
|
repeated FieldFilter field = 5;
|
|
79
|
-
repeated string search = 6;
|
|
80
85
|
|
|
81
86
|
/** Check the query parameters of HTTP request.
|
|
82
87
|
* If query parameter `locales` is given,
|
|
@@ -90,6 +95,7 @@ message ReadRequest {
|
|
|
90
95
|
repeated string custom_queries = 8;
|
|
91
96
|
google.protobuf.Any custom_arguments = 9;
|
|
92
97
|
io.restorecommerce.auth.Subject subject = 10;
|
|
98
|
+
Search search = 11;
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
message DeleteRequest {
|
|
@@ -98,6 +104,8 @@ message DeleteRequest {
|
|
|
98
104
|
/// Delete specified documents
|
|
99
105
|
repeated string ids = 2;
|
|
100
106
|
io.restorecommerce.auth.Subject subject = 3;
|
|
107
|
+
repeated string view = 4; // list of views to be dropped
|
|
108
|
+
repeated string analyzer = 5; // list of analyzers to be deleted
|
|
101
109
|
}
|
|
102
110
|
|
|
103
111
|
message DeleteResponse {
|
|
@@ -3,9 +3,12 @@ package io.restorecommerce.search;
|
|
|
3
3
|
|
|
4
4
|
import "google/protobuf/any.proto";
|
|
5
5
|
import "io/restorecommerce/auth.proto";
|
|
6
|
+
import "io/restorecommerce/options.proto";
|
|
6
7
|
|
|
7
8
|
// Service provides the CRUD operations
|
|
8
9
|
service Service {
|
|
10
|
+
option (io.restorecommerce.options.service_name) = "search";
|
|
11
|
+
|
|
9
12
|
rpc Search (SearchRequest) returns (SearchResponse);
|
|
10
13
|
}
|
|
11
14
|
|
|
@@ -258,6 +258,14 @@ message FindByRoleRequest {
|
|
|
258
258
|
* A User resource.
|
|
259
259
|
*/
|
|
260
260
|
message User {
|
|
261
|
+
option (restorecommerce.options.kafka_subscriber) = {
|
|
262
|
+
plural: "users"
|
|
263
|
+
topic: "io.restorecommerce.users.resource"
|
|
264
|
+
created: "userCreated"
|
|
265
|
+
updated: "userUpdated"
|
|
266
|
+
deleted: "userDeleted"
|
|
267
|
+
};
|
|
268
|
+
|
|
261
269
|
string id = 1; /// User ID, unique, key
|
|
262
270
|
io.restorecommerce.meta.Meta meta = 2;
|
|
263
271
|
string name = 3; // The name of the user, can be used for login
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.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": "
|
|
18
|
+
"gitHead": "0f34bd9515033e3933b0fe578d8e9b7b0b7bcc30"
|
|
19
19
|
}
|