@restorecommerce/protos 6.8.2 → 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,17 @@
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
+
6
17
  ## [6.8.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.1...@restorecommerce/protos@6.8.2) (2024-04-19)
7
18
 
8
19
 
@@ -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.2",
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": "a612bb7c4da0d4aeebdabe4d5b9c4f15224188a1"
18
+ "gitHead": "d2afdd3577f2d744621ff06a9f45a8349f35b4cd"
19
19
  }