@restorecommerce/protos 6.8.1 → 6.8.3

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,29 @@
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.8.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.2...@restorecommerce/protos@6.8.3) (2024-04-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **acs-client:** add obligations and custom-query to decorators, add pdf-rendering.proto ([d84995d](https://github.com/restorecommerce/libs/commit/d84995d965136ffde44afe9f42b962f61bcd2173))
12
+
13
+
14
+
15
+
16
+
17
+ ## [6.8.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.1...@restorecommerce/protos@6.8.2) (2024-04-19)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **ordering:** remove fulfillment state and payment state from order ([73ab259](https://github.com/restorecommerce/libs/commit/73ab25928fb7ce3cc9b19e7ac06cda31b2f0f78e))
23
+ * **protos:** rename State to FulfillmentState ([4debc8b](https://github.com/restorecommerce/libs/commit/4debc8bfcb7e870ca827826cb3d58c2f6aa20840))
24
+
25
+
26
+
27
+
28
+
6
29
  ## [6.8.1](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.0...@restorecommerce/protos@6.8.1) (2024-04-15)
7
30
 
8
31
 
@@ -89,7 +89,7 @@ service FulfillmentService {
89
89
  rpc TriggerInvoice (FulfillmentInvoiceRequestList) returns (io.restorecommerce.status.StatusListResponse);
90
90
  }
91
91
 
92
- enum State {
92
+ enum FulfillmentState {
93
93
  PENDING = 0;
94
94
  INVALID = 1;
95
95
  SUBMITTED = 2;
@@ -133,7 +133,7 @@ message Label {
133
133
  }
134
134
  optional string parcel_id = 4;
135
135
  optional string shipment_number = 5; //filled on Order
136
- optional State state = 6; //update by Track
136
+ optional FulfillmentState state = 6; //update by Track
137
137
  optional io.restorecommerce.status.Status status = 7; //API status
138
138
  }
139
139
 
@@ -207,7 +207,7 @@ message Fulfillment {
207
207
  repeated Label labels = 8; //set by service
208
208
  repeated Tracking trackings = 9; //set by service
209
209
  repeated io.restorecommerce.amount.Amount total_amounts = 10; //set by service
210
- optional State state = 11; //set by service
210
+ optional FulfillmentState fulfillment_state = 11; //set by service
211
211
  }
212
212
 
213
213
  message FulfillmentList {
@@ -124,15 +124,13 @@ message Order {
124
124
  ];
125
125
  repeated Item items = 6;
126
126
  optional OrderState order_state = 7; // Set by service
127
- optional io.restorecommerce.fulfillment.State fulfillment_state = 8; // Set by kafka
128
- optional io.restorecommerce.invoice.PaymentState payment_state = 9; // Set by kafka
129
- repeated io.restorecommerce.amount.Amount total_amounts = 10; // Set by service --- repeated in case of variant currency?
130
- optional io.restorecommerce.address.ShippingAddress shipping_address = 11;
131
- optional io.restorecommerce.address.BillingAddress billing_address = 12;
132
- optional string notification_email = 13;
133
- optional string customer_order_nr = 14;
134
- optional string customer_remark = 15;
135
- optional io.restorecommerce.fulfillment_product.Preferences packaging_preferences = 16;
127
+ repeated io.restorecommerce.amount.Amount total_amounts = 8; // Set by service --- repeated in case of variant currency?
128
+ optional io.restorecommerce.address.ShippingAddress shipping_address = 9;
129
+ optional io.restorecommerce.address.BillingAddress billing_address = 10;
130
+ optional string notification_email = 11;
131
+ optional string customer_order_nr = 12;
132
+ optional string customer_remark = 13;
133
+ optional io.restorecommerce.fulfillment_product.Preferences packaging_preferences = 14;
136
134
  }
137
135
 
138
136
  message OrderIdList {
@@ -0,0 +1,162 @@
1
+ syntax = "proto3";
2
+
3
+ package io.restorecommerce.pdf_rendering;
4
+
5
+ import "google/protobuf/any.proto";
6
+ import "google/protobuf/empty.proto";
7
+ import "io/restorecommerce/auth.proto";
8
+ import "io/restorecommerce/status.proto";
9
+
10
+ // Service
11
+
12
+ service PdfRenderingService {
13
+ rpc Render(RenderRequest) returns (RenderingResponse);
14
+ rpc Info(google.protobuf.Empty) returns (InfoResponse);
15
+ }
16
+
17
+ // Requests
18
+
19
+ message RenderRequest {
20
+ oneof type {
21
+ IndividualRequest individual = 1;
22
+ CombinedRequest combined = 2;
23
+ }
24
+ optional io.restorecommerce.auth.Subject subject = 3;
25
+ }
26
+
27
+ message IndividualRequest {
28
+ message IndividualRequestData {
29
+ RenderData data = 1;
30
+ optional OutputOptions output = 2;
31
+ }
32
+
33
+ repeated IndividualRequestData data = 1;
34
+ }
35
+
36
+ message CombinedRequest {
37
+ repeated RenderData data = 1;
38
+ optional OutputOptions output = 2;
39
+ }
40
+
41
+ message RenderData {
42
+ RenderSource source = 1;
43
+ optional RenderOptions options = 2;
44
+ }
45
+
46
+ message OutputOptions {
47
+ optional bool generate_pdfa = 1;
48
+ optional MetaData meta_data = 2;
49
+ optional UploadOptions upload_options = 3;
50
+ }
51
+
52
+ message RenderOptions {
53
+ optional int64 wait_after_load_time = 5;
54
+ optional PuppeteerOptions puppeteer_options = 6;
55
+ }
56
+
57
+ message RenderSource {
58
+ oneof content {
59
+ string url = 1;
60
+ string html = 2;
61
+ }
62
+ }
63
+
64
+ message UploadOptions {
65
+ optional string bucket = 1;
66
+ optional string key = 2;
67
+ optional string content_disposition = 3;
68
+ }
69
+
70
+ message MetaData {
71
+ optional string title = 1;
72
+ optional string creator = 2;
73
+ optional string producer = 3;
74
+ }
75
+
76
+ // Responses
77
+
78
+ message RenderingResponse {
79
+ oneof response {
80
+ IndividualResponse individual = 1;
81
+ ResponsePayloadWithStatus combined = 2;
82
+ }
83
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
84
+ }
85
+
86
+ message IndividualResponse {
87
+ repeated ResponsePayloadWithStatus RenderingResponse = 1;
88
+ }
89
+
90
+ message ResponsePayloadWithStatus {
91
+ optional ResponsePayload payload = 1;
92
+ optional io.restorecommerce.status.Status status = 3;
93
+ }
94
+
95
+ message ResponsePayload {
96
+ oneof response {
97
+ ResponsePDF pdf = 1;
98
+ ResponseS3Upload upload_result = 2;
99
+ }
100
+ }
101
+
102
+ message ResponsePDF {
103
+ bytes data = 1;
104
+ }
105
+
106
+ message ResponseS3Upload {
107
+ string url = 1;
108
+ int32 length = 2;
109
+ }
110
+
111
+ // Info
112
+
113
+ message InfoResponse {
114
+ message ChromeVersion {
115
+ string protocol_version = 1;
116
+ string product = 2;
117
+ string revision = 3;
118
+ string user_agent = 4;
119
+ string js_version = 5;
120
+ }
121
+
122
+ ChromeVersion chrome = 1;
123
+ }
124
+
125
+ // Puppeteer
126
+
127
+ message PuppeteerOptions {
128
+ optional PDFOptions pdf_options = 1;
129
+ }
130
+
131
+ message PDFOptions {
132
+ enum PaperFormat {
133
+ A0 = 0;
134
+ A1 = 1;
135
+ A2 = 2;
136
+ A3 = 3;
137
+ A4 = 4;
138
+ A5 = 5;
139
+ A6 = 6;
140
+ A7 = 7;
141
+ LETTER = 8;
142
+ LEGAL = 9;
143
+ TABLOID = 10;
144
+ }
145
+
146
+ optional bool landscape = 1;
147
+ optional bool display_header_footer = 2;
148
+ optional bool print_background = 3;
149
+ optional PaperFormat format = 4;
150
+ optional float scale = 5;
151
+ optional float paper_width = 6;
152
+ optional float paper_height = 7;
153
+ optional float margin_top = 8;
154
+ optional float margin_bottom = 9;
155
+ optional float margin_left = 10;
156
+ optional float margin_right = 11;
157
+ optional string page_ranges = 12;
158
+ optional bool ignore_invalid_page_ranges = 13;
159
+ optional string header_template = 14;
160
+ optional string footer_template = 15;
161
+ optional bool prefer_css_page_size = 16;
162
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "6.8.1",
3
+ "version": "6.8.3",
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": "068f1450161f53afd87f8ae9615778001edd66ce"
18
+ "gitHead": "d2afdd3577f2d744621ff06a9f45a8349f35b4cd"
19
19
  }