@restorecommerce/protos 6.4.0 → 6.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 +34 -0
- package/io/restorecommerce/auth.proto +1 -0
- package/io/restorecommerce/credential.proto +2 -2
- package/io/restorecommerce/fulfillment.proto +1 -1
- package/io/restorecommerce/fulfillment_product.proto +2 -2
- package/io/restorecommerce/location.proto +1 -1
- package/io/restorecommerce/notification_req.proto +3 -3
- package/io/restorecommerce/organization.proto +2 -2
- package/io/restorecommerce/ostorage.proto +1 -1
- package/io/restorecommerce/resource_base.proto +5 -5
- package/io/restorecommerce/user.proto +43 -43
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,40 @@
|
|
|
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.6.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.4.1...@restorecommerce/protos@6.6.0) (2024-01-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **user.proto:** add properties to UserRole ([82b408c](https://github.com/restorecommerce/libs/commit/82b408ca4ba2c673d58b32a99e0705b3d0ad87c1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [6.5.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.4.1...@restorecommerce/protos@6.5.0) (2023-12-22)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **user.proto:** add properties to UserRole ([82b408c](https://github.com/restorecommerce/libs/commit/82b408ca4ba2c673d58b32a99e0705b3d0ad87c1))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [6.4.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.4.0...@restorecommerce/protos@6.4.1) (2023-11-25)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **facade:** fix to send client_id in token find response(this will be persisted to DB from token payload on identity-srv) ([0ebf12f](https://github.com/restorecommerce/libs/commit/0ebf12f4b7bb82e00ef878dc76c26576ad95ea76))
|
|
34
|
+
* **fulfillment.proto:** references should be list ([d9af066](https://github.com/restorecommerce/libs/commit/d9af0667024cc9356bfa3e786a2a4bf610c7c4db))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
6
40
|
# [6.4.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.3.0...@restorecommerce/protos@6.4.0) (2023-11-22)
|
|
7
41
|
|
|
8
42
|
|
|
@@ -47,5 +47,5 @@ message Credential {
|
|
|
47
47
|
optional string description = 4;
|
|
48
48
|
optional string user = 5;
|
|
49
49
|
optional string pass = 6;
|
|
50
|
-
optional google.protobuf.Any credentials = 7;
|
|
51
|
-
}
|
|
50
|
+
optional google.protobuf.Any credentials = 7; // additional credentials as auth key or certificates etc
|
|
51
|
+
}
|
|
@@ -202,7 +202,7 @@ message Fulfillment {
|
|
|
202
202
|
field_name: "shop",
|
|
203
203
|
}
|
|
204
204
|
];
|
|
205
|
-
|
|
205
|
+
repeated io.restorecommerce.reference.Reference references = 6;
|
|
206
206
|
optional Packaging packaging = 7;
|
|
207
207
|
repeated Label labels = 8; //set by service
|
|
208
208
|
repeated Tracking trackings = 9; //set by service
|
|
@@ -34,7 +34,7 @@ service FulfillmentProductService {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
message Preferences {
|
|
37
|
-
repeated io.restorecommerce.attribute.Attribute couriers = 1; //ID, name or type
|
|
37
|
+
repeated io.restorecommerce.attribute.Attribute couriers = 1; // ID, name or type
|
|
38
38
|
repeated io.restorecommerce.attribute.Attribute options = 2;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -148,4 +148,4 @@ message PackingSolutionListResponse {
|
|
|
148
148
|
|
|
149
149
|
message Deleted {
|
|
150
150
|
optional string id = 1;
|
|
151
|
-
}
|
|
151
|
+
}
|
|
@@ -7,7 +7,7 @@ import "io/restorecommerce/reference.proto";
|
|
|
7
7
|
|
|
8
8
|
service NotificationReqService {
|
|
9
9
|
// direct notifications
|
|
10
|
-
rpc Send (NotificationReq) returns (io.restorecommerce.status.OperationStatusObj);
|
|
10
|
+
rpc Send (NotificationReq) returns (io.restorecommerce.status.OperationStatusObj); // generic fallback
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
// mimics nodemailer properties for easy configuration
|
|
@@ -33,8 +33,8 @@ message NotificationReq {
|
|
|
33
33
|
}
|
|
34
34
|
optional string subject = 3;
|
|
35
35
|
optional string body = 4; // text/HTML content
|
|
36
|
-
optional string transport = 5;
|
|
37
|
-
optional string provider = 6;
|
|
36
|
+
optional string transport = 5; // 'email', 'log', ... default == 'log'
|
|
37
|
+
optional string provider = 6; // specific transport provider, eg: 'console' for transport == 'log'
|
|
38
38
|
repeated Attachment attachments = 7;
|
|
39
39
|
optional io.restorecommerce.reference.Reference reference = 8;
|
|
40
40
|
}
|
|
@@ -54,7 +54,7 @@ message OrganizationResponse {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
message Organization {
|
|
57
|
-
optional string id = 1;
|
|
57
|
+
optional string id = 1; // Organization ID, unique, key
|
|
58
58
|
optional io.restorecommerce.meta.Meta meta = 2;
|
|
59
59
|
optional string parent_id = 3 [
|
|
60
60
|
(io.restorecommerce.options.resolver) = {
|
|
@@ -91,5 +91,5 @@ message Organization {
|
|
|
91
91
|
field_name: "paymentMethods",
|
|
92
92
|
}
|
|
93
93
|
];
|
|
94
|
-
optional google.protobuf.Any data = 14;
|
|
94
|
+
optional google.protobuf.Any data = 14; // additional data
|
|
95
95
|
}
|
|
@@ -146,7 +146,7 @@ message Response {
|
|
|
146
146
|
|
|
147
147
|
message ListRequest {
|
|
148
148
|
optional string bucket = 1;
|
|
149
|
-
optional io.restorecommerce.filter.FilterOp filters = 2;
|
|
149
|
+
optional io.restorecommerce.filter.FilterOp filters = 2; // Filter based on fieldName|operation, value|list
|
|
150
150
|
optional io.restorecommerce.auth.Subject subject = 3;
|
|
151
151
|
optional int32 max_keys = 4;
|
|
152
152
|
optional string prefix = 5;
|
|
@@ -77,10 +77,10 @@ message ReadRequest {
|
|
|
77
77
|
optional uint32 limit = 2;
|
|
78
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
84
|
repeated FieldFilter fields = 5;
|
|
85
85
|
|
|
86
86
|
/** Check the query parameters of HTTP request.
|
|
@@ -99,9 +99,9 @@ message ReadRequest {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
message DeleteRequest {
|
|
102
|
-
|
|
102
|
+
// Request to purge the whole collection
|
|
103
103
|
optional bool collection = 1;
|
|
104
|
-
|
|
104
|
+
// Delete specified documents
|
|
105
105
|
repeated string ids = 2;
|
|
106
106
|
optional io.restorecommerce.auth.Subject subject = 3;
|
|
107
107
|
repeated string views = 4; // list of views to be dropped
|
|
@@ -137,4 +137,4 @@ message ResourceResponse {
|
|
|
137
137
|
message Resource {
|
|
138
138
|
optional string id = 1;
|
|
139
139
|
optional io.restorecommerce.meta.Meta meta = 2;
|
|
140
|
-
}
|
|
140
|
+
}
|
|
@@ -74,7 +74,7 @@ message DeleteUsersByOrgResponse {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
message FindRequest {
|
|
77
|
-
optional string id = 1;
|
|
77
|
+
optional string id = 1; // User ID
|
|
78
78
|
optional string name = 2;
|
|
79
79
|
optional string email = 3;
|
|
80
80
|
io.restorecommerce.auth.Subject subject = 4;
|
|
@@ -110,7 +110,7 @@ message RegisterRequest {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
message ActivateRequest {
|
|
113
|
-
optional string identifier = 1;
|
|
113
|
+
optional string identifier = 1; // user name or email
|
|
114
114
|
optional string activation_code = 2;
|
|
115
115
|
optional io.restorecommerce.auth.Subject subject = 3;
|
|
116
116
|
}
|
|
@@ -159,12 +159,12 @@ message ConfirmEmailChangeRequest {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
message UnregisterRequest {
|
|
162
|
-
optional string identifier = 1;
|
|
162
|
+
optional string identifier = 1; // User ID
|
|
163
163
|
optional io.restorecommerce.auth.Subject subject = 2;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
message SendActivationEmailRequest {
|
|
167
|
-
optional string identifier = 1;
|
|
167
|
+
optional string identifier = 1; // User name or email
|
|
168
168
|
optional io.restorecommerce.auth.Subject subject = 2;
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -187,7 +187,7 @@ message Deleted {
|
|
|
187
187
|
* passwordChanged,
|
|
188
188
|
*/
|
|
189
189
|
message PasswordChanged {
|
|
190
|
-
optional string id = 1;
|
|
190
|
+
optional string id = 1; // User ID
|
|
191
191
|
optional string password_hash = 2;
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -205,7 +205,7 @@ message EmailChangeRequested {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
message EmailChangeConfirmed {
|
|
208
|
-
optional string id = 1;
|
|
208
|
+
optional string id = 1; // User ID
|
|
209
209
|
optional string email = 2;
|
|
210
210
|
}
|
|
211
211
|
|
|
@@ -244,7 +244,7 @@ message UserResponse {
|
|
|
244
244
|
* User activation request.
|
|
245
245
|
*/
|
|
246
246
|
message Activate {
|
|
247
|
-
optional string id = 1;
|
|
247
|
+
optional string id = 1; // User ID
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
message FindByRoleRequest {
|
|
@@ -265,17 +265,17 @@ message User {
|
|
|
265
265
|
deleted: "userDeleted"
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
optional string id = 1;
|
|
268
|
+
optional string id = 1; // User ID, unique, key
|
|
269
269
|
optional io.restorecommerce.meta.Meta meta = 2;
|
|
270
270
|
optional string name = 3; // The name of the user, can be used for login
|
|
271
271
|
optional string first_name = 4;
|
|
272
272
|
optional string last_name = 5;
|
|
273
|
-
optional string email = 6;
|
|
274
|
-
optional string new_email = 7;
|
|
275
|
-
optional bool active = 8;
|
|
276
|
-
optional string activation_code = 9;
|
|
277
|
-
optional string password = 10;
|
|
278
|
-
optional string password_hash = 11;
|
|
273
|
+
optional string email = 6; // Email address, can be used for login
|
|
274
|
+
optional string new_email = 7; // New email address; set by `requestEmailChange` and overrides actual email upon `confirmEmailChange`
|
|
275
|
+
optional bool active = 8; // If the user was activated via the activation process
|
|
276
|
+
optional string activation_code = 9; // Activation code used in the activation process
|
|
277
|
+
optional string password = 10; // Raw password, not stored
|
|
278
|
+
optional string password_hash = 11; // Encrypted password, stored
|
|
279
279
|
repeated io.restorecommerce.auth.RoleAssociation role_associations = 12; // A user can have multiple roles and different attributes coupled with each role
|
|
280
280
|
optional string timezone_id = 13 [
|
|
281
281
|
(io.restorecommerce.options.resolver) = {
|
|
@@ -296,34 +296,34 @@ message User {
|
|
|
296
296
|
}
|
|
297
297
|
]; // locale specifications
|
|
298
298
|
optional string default_scope = 15; // default hierarchical scope
|
|
299
|
-
optional bool
|
|
300
|
-
optional
|
|
301
|
-
optional
|
|
302
|
-
optional
|
|
303
|
-
optional
|
|
304
|
-
optional string
|
|
305
|
-
optional string
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
optional google.protobuf.Any data = 26;
|
|
299
|
+
optional bool guest = 16; // Is the user a guest. A guest is a automatically generated user which can later be turned in a non-guest user.
|
|
300
|
+
optional io.restorecommerce.image.Image image = 17;
|
|
301
|
+
optional UserType user_type = 18;
|
|
302
|
+
optional bool invite = 19; // true if user has been invited by another user
|
|
303
|
+
optional string invited_by_user_name = 20; // User who is inviting
|
|
304
|
+
optional string invited_by_user_first_name = 21; // First name of user inviting
|
|
305
|
+
optional string invited_by_user_last_name = 22; // Last name of user inviting
|
|
306
|
+
repeated io.restorecommerce.auth.Tokens tokens = 23;
|
|
307
|
+
optional google.protobuf.Timestamp last_access = 24; // When the user has last been used
|
|
308
|
+
repeated io.restorecommerce.attribute.Attribute properties = 25; // additional properties
|
|
309
|
+
optional google.protobuf.Any data = 26; // additional data
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
313
|
* A User resource with role
|
|
314
314
|
*/
|
|
315
315
|
message UserRole {
|
|
316
|
-
optional string id = 1;
|
|
316
|
+
optional string id = 1; // User ID, unique, key
|
|
317
317
|
optional io.restorecommerce.meta.Meta meta = 2;
|
|
318
318
|
optional string name = 3; // The name of the user, can be used for login
|
|
319
319
|
optional string first_name = 4;
|
|
320
320
|
optional string last_name = 5;
|
|
321
|
-
optional string email = 6;
|
|
322
|
-
optional string new_email = 7;
|
|
323
|
-
optional bool active = 8;
|
|
324
|
-
optional string activation_code = 9;
|
|
325
|
-
optional string password = 10;
|
|
326
|
-
optional string password_hash = 11;
|
|
321
|
+
optional string email = 6; // Email address, can be used for login
|
|
322
|
+
optional string new_email = 7; // New email address; set by `requestEmailChange` and overrides actual email upon `confirmEmailChange`
|
|
323
|
+
optional bool active = 8; // If the user was activated via the activation process
|
|
324
|
+
optional string activation_code = 9; // Activation code used in the activation process
|
|
325
|
+
optional string password = 10; // Raw password, not stored
|
|
326
|
+
optional string password_hash = 11; // Encrypted password, stored
|
|
327
327
|
repeated io.restorecommerce.auth.RoleAssociation role_associations = 12; // A user can have multiple roles and different attributes coupled with each role
|
|
328
328
|
optional string timezone_id = 13 [
|
|
329
329
|
(io.restorecommerce.options.resolver) = {
|
|
@@ -344,16 +344,16 @@ message UserRole {
|
|
|
344
344
|
}
|
|
345
345
|
]; // locale specifications
|
|
346
346
|
optional string default_scope = 15; // default hierarchical scope
|
|
347
|
-
optional bool
|
|
348
|
-
optional
|
|
349
|
-
optional
|
|
350
|
-
optional
|
|
351
|
-
optional
|
|
352
|
-
optional string
|
|
353
|
-
optional string
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
optional google.protobuf.Any data = 26;
|
|
347
|
+
optional bool guest = 16; // Is the user a guest. A guest is a automatically generated user which can later be turned in a non-guest user.
|
|
348
|
+
optional io.restorecommerce.image.Image image = 17;
|
|
349
|
+
optional UserType user_type = 18;
|
|
350
|
+
optional bool invite = 19; // true if user has been invited by another user
|
|
351
|
+
optional string invited_by_user_name = 20; // User who is inviting
|
|
352
|
+
optional string invited_by_user_first_name = 21; // First name of user inviting
|
|
353
|
+
optional string invited_by_user_last_name = 22; // Last name of user inviting
|
|
354
|
+
repeated io.restorecommerce.auth.Tokens tokens = 23;
|
|
355
|
+
optional google.protobuf.Timestamp last_access = 24; // When the user has last been used
|
|
356
|
+
repeated io.restorecommerce.attribute.Attribute properties = 25; // additional properties
|
|
357
|
+
optional google.protobuf.Any data = 26; // additional data
|
|
358
358
|
repeated io.restorecommerce.role.Role roles = 27;
|
|
359
359
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.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": "
|
|
18
|
+
"gitHead": "362539831a3f3ccfcd23a5e5f9718d8f3c500dee"
|
|
19
19
|
}
|