@restorecommerce/protos 6.9.0 → 6.9.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 CHANGED
@@ -3,6 +3,21 @@
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.9.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.9.0...@restorecommerce/protos@6.9.1) (2024-11-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **proto:** fulfillment_product, set correct field number ([70b6fb5](https://github.com/restorecommerce/libs/commit/70b6fb585439e54b28756d2eefe0a5bd0edd5131))
12
+ * **protos:** add customer_order_nr to invoicing ([19a14f9](https://github.com/restorecommerce/libs/commit/19a14f983ada1f5fd5146fc4814a7a437ac97237))
13
+ * **protos:** add setting resource, enrich templates ([63fe572](https://github.com/restorecommerce/libs/commit/63fe572c3a52581591aed5ff96faee23fb73e459))
14
+ * **protos:** selectable document_ids for send ([bcb2910](https://github.com/restorecommerce/libs/commit/bcb2910fe67bcd2142a86a4a41647bc4b8a28585))
15
+ * **protos:** shop settings intermediate ([1ddefcc](https://github.com/restorecommerce/libs/commit/1ddefcc5e7594cefbc9b97694715f76e85718704))
16
+
17
+
18
+
19
+
20
+
6
21
  # [6.9.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.12...@restorecommerce/protos@6.9.0) (2024-11-05)
7
22
 
8
23
 
@@ -7,6 +7,7 @@ import "io/restorecommerce/meta.proto";
7
7
  import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/attribute.proto";
9
9
  import "io/restorecommerce/status.proto";
10
+ import "io/restorecommerce/setting.proto";
10
11
  import "io/restorecommerce/options.proto";
11
12
 
12
13
  // Used by resolvers
@@ -58,7 +59,15 @@ message Customer {
58
59
  Commercial commercial = 4;
59
60
  PublicSector public_sector = 5;
60
61
  };
61
- repeated io.restorecommerce.attribute.Attribute settings = 6;
62
+ string setting_id = 6 [
63
+ (io.restorecommerce.options.resolver) = {
64
+ target_type: ".io.restorecommerce.setting.Setting",
65
+ target_service: "master_data",
66
+ target_sub_service: "setting",
67
+ target_method: "Read",
68
+ field_name: "setting",
69
+ }
70
+ ];
62
71
  }
63
72
 
64
73
  message Private {
@@ -92,6 +101,15 @@ message Commercial {
92
101
  field_name: "organization",
93
102
  }
94
103
  ];
104
+ repeated string template_ids = 2 [
105
+ (io.restorecommerce.options.resolver) = {
106
+ target_type: ".io.restorecommerce.template.Template",
107
+ target_service: "master_data",
108
+ target_sub_service: "template",
109
+ target_method: "Read",
110
+ field_name: "templates",
111
+ }
112
+ ]; // list of active templates
95
113
  }
96
114
 
97
115
  message PublicSector {
@@ -104,4 +122,13 @@ message PublicSector {
104
122
  field_name: "organization",
105
123
  }
106
124
  ];
125
+ repeated string template_ids = 2 [
126
+ (io.restorecommerce.options.resolver) = {
127
+ target_type: ".io.restorecommerce.template.Template",
128
+ target_service: "master_data",
129
+ target_sub_service: "template",
130
+ target_method: "Read",
131
+ field_name: "templates",
132
+ }
133
+ ]; // list of active templates
107
134
  }
@@ -6,7 +6,7 @@ import "io/restorecommerce/image.proto";
6
6
 
7
7
  message File {
8
8
  optional string id = 1;
9
- optional int64 index = 2;
9
+ optional uint32 ordinal = 2;
10
10
  optional string caption = 3;
11
11
  optional string filename = 4;
12
12
  optional string content_type = 5;
@@ -19,8 +19,4 @@ message File {
19
19
  message FileList {
20
20
  repeated File items = 1;
21
21
  optional uint32 total_count = 2;
22
- }
23
-
24
- message Deleted {
25
- optional string id = 1;
26
22
  }
@@ -239,10 +239,6 @@ message FulfillmentIdList {
239
239
  optional io.restorecommerce.auth.Subject subject = 3;
240
240
  }
241
241
 
242
- message Deleted {
243
- optional string id = 1;
244
- }
245
-
246
242
  message FulfillmentInvoiceSection {
247
243
  optional string fulfillment_id = 1;
248
244
  repeated string selected_parcels = 2; // selects all on empty
@@ -50,9 +50,10 @@ message FulfillmentCourier {
50
50
  optional string description = 5;
51
51
  optional string logo = 6;
52
52
  optional string website = 7;
53
- optional string stub_type = 8;
53
+ optional string stub_type = 8; // obsolete, use api
54
54
  optional string credential_id = 9;
55
55
  optional google.protobuf.Any configuration = 10;
56
+ optional string api = 11;
56
57
  }
57
58
 
58
59
  message FulfillmentCourierList {
@@ -72,7 +73,3 @@ message FulfillmentCourierListResponse {
72
73
  optional io.restorecommerce.status.OperationStatus operation_status = 3;
73
74
  }
74
75
 
75
- message Deleted {
76
- optional string id = 1;
77
- }
78
-
@@ -34,9 +34,10 @@ service FulfillmentProductService {
34
34
  }
35
35
 
36
36
  message Preferences {
37
- optional bool partial_filfillment_allowed = 1;
38
- repeated string couriers = 2; // ID of courier
39
- repeated io.restorecommerce.attribute.Attribute options = 3; // Courier specific options such as C02 neutral delivery etc.
37
+ optional bool partial_fulfillment_allowed = 1;
38
+ repeated string courier_ids = 2; // Narrows search to certain couriers, leave empty for open search
39
+ repeated string fulfillment_product_ids = 3; // Narrows search to certain tariffs, leave empty for open search
40
+ repeated io.restorecommerce.attribute.Attribute options = 4; // Courier specific options such as CO2 neutral delivery etc.
40
41
  }
41
42
 
42
43
  message FulfillmentSolutionQuery {
@@ -128,11 +129,9 @@ message FulfillmentProductListResponse {
128
129
  }
129
130
 
130
131
  message FulfillmentSolution {
131
- repeated io.restorecommerce.amount.Amount amounts = 1;
132
- optional double compactness = 2;
133
- optional double homogeneity = 3;
134
- optional double score = 4;
135
- repeated io.restorecommerce.fulfillment.Parcel parcels = 5;
132
+ repeated string courier_ids = 1;
133
+ repeated io.restorecommerce.fulfillment.Parcel parcels = 2;
134
+ repeated io.restorecommerce.amount.Amount amounts = 3;
136
135
  }
137
136
 
138
137
  message FulfillmentSolutionResponse {
@@ -146,7 +145,3 @@ message FulfillmentSolutionListResponse {
146
145
  optional uint32 total_count = 2;
147
146
  optional io.restorecommerce.status.OperationStatus operation_status = 3;
148
147
  }
149
-
150
- message Deleted {
151
- optional string id = 1;
152
- }
@@ -96,9 +96,10 @@ message InvoiceResponse {
96
96
 
97
97
  message InvoiceId {
98
98
  optional string id = 1;
99
- repeated string channel_ids = 2;
100
- optional google.protobuf.Any options = 3;
101
- optional io.restorecommerce.auth.Subject subject = 4;
99
+ repeated string document_ids = 2; // empty takes latest
100
+ repeated string notification_channel_ids = 3;
101
+ optional google.protobuf.Any options = 4;
102
+ optional io.restorecommerce.auth.Subject subject = 5;
102
103
  }
103
104
 
104
105
  message InvoiceIdList {
@@ -162,6 +163,7 @@ message Invoice {
162
163
  optional google.protobuf.Timestamp to_date = 17; // value performance to date
163
164
  optional bool sent = 18;
164
165
  optional bool withdrawn = 19;
166
+ optional string customer_order_number = 20;
165
167
  }
166
168
 
167
169
  message Section {
@@ -39,6 +39,9 @@ service OrderService {
39
39
  rpc Cancel (OrderIdList) returns (OrderListResponse);
40
40
  rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
41
41
 
42
+ // Requires Fulfillment Service
43
+ // Evaluates plausibility of the Fulfillment that would result from given order.
44
+ rpc EvaluateFulfillment (OrderList) returns (io.restorecommerce.status.StatusListResponse);
42
45
  // Requires Fulfillment Service
43
46
  rpc QueryFulfillmentSolution (FulfillmentRequestList) returns (io.restorecommerce.fulfillment_product.FulfillmentSolutionListResponse);
44
47
  // Requires Fulfillment Service
@@ -0,0 +1,45 @@
1
+ syntax = "proto3";
2
+
3
+ package io.restorecommerce.setting;
4
+
5
+ import "io/restorecommerce/meta.proto";
6
+ import "io/restorecommerce/attribute.proto";
7
+ import "io/restorecommerce/resource_base.proto";
8
+ import "io/restorecommerce/auth.proto";
9
+ import "io/restorecommerce/status.proto";
10
+ import "io/restorecommerce/options.proto";
11
+
12
+ service SettingService {
13
+ rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (SettingListResponse) {
14
+ option (io.restorecommerce.options.is_query) = true;
15
+ };
16
+ rpc Create (SettingList) returns (SettingListResponse);
17
+ rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
18
+ rpc Update (SettingList) returns (SettingListResponse);
19
+ rpc Upsert (SettingList) returns (SettingListResponse);
20
+ }
21
+
22
+ message Setting {
23
+ optional string id = 1;
24
+ optional io.restorecommerce.meta.Meta meta = 2;
25
+ optional string name = 3;
26
+ optional string description = 4;
27
+ repeated io.restorecommerce.attribute.Attribute settings = 5;
28
+ }
29
+
30
+ message SettingList {
31
+ repeated Setting items = 1;
32
+ optional uint32 total_count = 2;
33
+ optional io.restorecommerce.auth.Subject subject = 3;
34
+ }
35
+
36
+ message SettingListResponse {
37
+ repeated SettingResponse items = 1;
38
+ optional uint32 total_count = 2;
39
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
40
+ }
41
+
42
+ message SettingResponse {
43
+ optional Setting payload = 1;
44
+ optional io.restorecommerce.status.Status status = 3;
45
+ }
@@ -7,6 +7,7 @@ import "io/restorecommerce/meta.proto";
7
7
  import "io/restorecommerce/auth.proto";
8
8
  import "io/restorecommerce/attribute.proto";
9
9
  import "io/restorecommerce/status.proto";
10
+ import "io/restorecommerce/setting.proto";
10
11
  import "io/restorecommerce/options.proto";
11
12
 
12
13
  // Used by resolvers
@@ -60,5 +61,22 @@ message Shop {
60
61
  field_name: "organization",
61
62
  }
62
63
  ];
63
- repeated io.restorecommerce.attribute.Attribute settings = 8;
64
+ repeated string template_ids = 8 [
65
+ (io.restorecommerce.options.resolver) = {
66
+ target_type: ".io.restorecommerce.template.Template",
67
+ target_service: "master_data",
68
+ target_sub_service: "template",
69
+ target_method: "Read",
70
+ field_name: "templates",
71
+ }
72
+ ]; // list of active templates
73
+ string setting_id = 9 [
74
+ (io.restorecommerce.options.resolver) = {
75
+ target_type: ".io.restorecommerce.setting.Setting",
76
+ target_service: "master_data",
77
+ target_sub_service: "setting",
78
+ target_method: "Read",
79
+ field_name: "setting",
80
+ }
81
+ ];
64
82
  }
@@ -9,7 +9,6 @@ import "io/restorecommerce/file.proto";
9
9
  import "io/restorecommerce/meta.proto";
10
10
  import "io/restorecommerce/auth.proto";
11
11
  import "io/restorecommerce/status.proto";
12
- import "io/restorecommerce/reference.proto";
13
12
  import "io/restorecommerce/options.proto";
14
13
 
15
14
  /*
@@ -25,6 +24,15 @@ service TemplateService {
25
24
  rpc Upsert (TemplateList) returns (TemplateListResponse);
26
25
  }
27
26
 
27
+ enum TemplateUseCase {
28
+ MISCELLANEOUS = 0;
29
+ INVOICE_PDF = 1;
30
+ INVOICE_EMAIL = 2;
31
+ INVITATION_EMAIL = 3;
32
+ REGISTRATION_EMAIL = 4;
33
+ CHANGE_PASSWORD_EMAIL = 5;
34
+ }
35
+
28
36
  message Deleted {
29
37
  optional string id = 1;
30
38
  }
@@ -46,13 +54,23 @@ message TemplateResponse {
46
54
  optional io.restorecommerce.status.Status status = 2;
47
55
  }
48
56
 
57
+ message Localization {
58
+ repeated string local_codes = 1; // e.g. en, en_US, en_UK, ...
59
+ optional io.restorecommerce.file.File l10n = 2; // JSON expected
60
+ }
61
+
49
62
  message Template {
50
63
  optional string id = 1;
51
64
  optional io.restorecommerce.meta.Meta meta = 2;
52
65
  optional string name = 3;
53
66
  optional string description = 4;
54
- optional io.restorecommerce.reference.Reference reference = 5;
55
- repeated io.restorecommerce.file.File files = 6;
56
- repeated io.restorecommerce.image.Image images = 7;
57
- repeated io.restorecommerce.attribute.Attribute attributes = 8;
67
+ optional TemplateUseCase use_case = 5;
68
+ optional uint32 ordinal = 6; // sort number
69
+ optional string section = 7; // e.g. header, body, footer
70
+ optional io.restorecommerce.file.File body = 8; // e.g. text/html
71
+ optional io.restorecommerce.file.File layout = 9;
72
+ repeated io.restorecommerce.file.File styles = 10; // e.g. application/css
73
+ repeated io.restorecommerce.image.Image images = 11;
74
+ repeated Localization localization = 12;
75
+ repeated io.restorecommerce.attribute.Attribute attributes = 14;
58
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "6.9.0",
3
+ "version": "6.9.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": "a8e0e2e2417dd3cb4045286494fb1f58115a41ba"
18
+ "gitHead": "82e454f58534b5adbf50eb4b2c0a6797fd1a4f9b"
19
19
  }