@restorecommerce/protos 6.8.2 → 6.8.4
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,30 @@
|
|
|
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.4](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.3...@restorecommerce/protos@6.8.4) (2024-04-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **template.proto:** add template resource ([fdc5dc2](https://github.com/restorecommerce/libs/commit/fdc5dc21e00f36b434b0fcb41276f674accb80fc))
|
|
12
|
+
* **template:** fix imports ([a981ad3](https://github.com/restorecommerce/libs/commit/a981ad343e5003f184edeff5863ea1d2631dd4c6))
|
|
13
|
+
* **templates:** fix templates, add settings to customer ([e726970](https://github.com/restorecommerce/libs/commit/e726970c27ec8b323e667fff37d90f76b0ed0365))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [6.8.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.2...@restorecommerce/protos@6.8.3) (2024-04-23)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **acs-client:** add obligations and custom-query to decorators, add pdf-rendering.proto ([d84995d](https://github.com/restorecommerce/libs/commit/d84995d965136ffde44afe9f42b962f61bcd2173))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [6.8.2](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.1...@restorecommerce/protos@6.8.2) (2024-04-19)
|
|
7
31
|
|
|
8
32
|
|
|
@@ -5,6 +5,7 @@ package io.restorecommerce.customer;
|
|
|
5
5
|
import "io/restorecommerce/resource_base.proto";
|
|
6
6
|
import "io/restorecommerce/meta.proto";
|
|
7
7
|
import "io/restorecommerce/auth.proto";
|
|
8
|
+
import "io/restorecommerce/attribute.proto";
|
|
8
9
|
import "io/restorecommerce/status.proto";
|
|
9
10
|
import "io/restorecommerce/options.proto";
|
|
10
11
|
|
|
@@ -51,6 +52,7 @@ message Customer {
|
|
|
51
52
|
Commercial commercial = 4;
|
|
52
53
|
PublicSector public_sector = 5;
|
|
53
54
|
};
|
|
55
|
+
repeated io.restorecommerce.attribute.Attribute settings = 6;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
message Private {
|
|
@@ -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
|
+
}
|
|
@@ -5,6 +5,7 @@ package io.restorecommerce.shop;
|
|
|
5
5
|
import "io/restorecommerce/resource_base.proto";
|
|
6
6
|
import "io/restorecommerce/meta.proto";
|
|
7
7
|
import "io/restorecommerce/auth.proto";
|
|
8
|
+
import "io/restorecommerce/attribute.proto";
|
|
8
9
|
import "io/restorecommerce/status.proto";
|
|
9
10
|
import "io/restorecommerce/options.proto";
|
|
10
11
|
|
|
@@ -59,4 +60,5 @@ message Shop {
|
|
|
59
60
|
field_name: "organization",
|
|
60
61
|
}
|
|
61
62
|
];
|
|
63
|
+
repeated io.restorecommerce.attribute.Attribute settings = 8;
|
|
62
64
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package io.restorecommerce.template;
|
|
4
|
+
|
|
5
|
+
import "io/restorecommerce/resource_base.proto";
|
|
6
|
+
import "io/restorecommerce/attribute.proto";
|
|
7
|
+
import "io/restorecommerce/image.proto";
|
|
8
|
+
import "io/restorecommerce/file.proto";
|
|
9
|
+
import "io/restorecommerce/meta.proto";
|
|
10
|
+
import "io/restorecommerce/auth.proto";
|
|
11
|
+
import "io/restorecommerce/status.proto";
|
|
12
|
+
import "io/restorecommerce/reference.proto";
|
|
13
|
+
import "io/restorecommerce/options.proto";
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* Microservice definition.
|
|
17
|
+
*/
|
|
18
|
+
service TemplateService {
|
|
19
|
+
rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (TemplateListResponse) {
|
|
20
|
+
option (io.restorecommerce.options.is_query) = true;
|
|
21
|
+
};
|
|
22
|
+
rpc Create (TemplateList) returns (TemplateListResponse);
|
|
23
|
+
rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
|
|
24
|
+
rpc Update (TemplateList) returns (TemplateListResponse);
|
|
25
|
+
rpc Upsert (TemplateList) returns (TemplateListResponse);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message Deleted {
|
|
29
|
+
optional string id = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message TemplateList {
|
|
33
|
+
repeated Template items = 1;
|
|
34
|
+
optional uint32 total_count = 2;
|
|
35
|
+
optional io.restorecommerce.auth.Subject subject = 3;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message TemplateListResponse {
|
|
39
|
+
repeated TemplateResponse items = 1;
|
|
40
|
+
optional uint32 total_count = 2;
|
|
41
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 3;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message TemplateResponse {
|
|
45
|
+
optional Template payload = 1;
|
|
46
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message Template {
|
|
50
|
+
optional string id = 1;
|
|
51
|
+
optional io.restorecommerce.meta.Meta meta = 2;
|
|
52
|
+
optional string name = 3;
|
|
53
|
+
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;
|
|
58
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.4",
|
|
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": "030d775589522985f76cb4aab874c32f6277835b"
|
|
19
19
|
}
|