@aepstore-dev/contracts 1.6.0 → 1.7.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/gen/products.ts +21 -7
- package/package.json +1 -1
- package/proto/products.proto +9 -5
package/gen/products.ts
CHANGED
|
@@ -289,15 +289,17 @@ export interface AttachmentDownloadInfoResponse {
|
|
|
289
289
|
contentType: string;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
export interface
|
|
292
|
+
export interface GetAttachmentDownloadUrlRequest {
|
|
293
293
|
productId: string;
|
|
294
294
|
attachmentId: string;
|
|
295
295
|
userId: string;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
export interface
|
|
299
|
-
|
|
300
|
-
|
|
298
|
+
export interface AttachmentDownloadUrlResponse {
|
|
299
|
+
downloadUrl: string;
|
|
300
|
+
expiresIn: number;
|
|
301
|
+
fileName: string;
|
|
302
|
+
fileSize: number;
|
|
301
303
|
}
|
|
302
304
|
|
|
303
305
|
export const PRODUCTS_V1_PACKAGE_NAME = "products.v1";
|
|
@@ -339,7 +341,12 @@ export interface ProductsServiceClient {
|
|
|
339
341
|
|
|
340
342
|
getAttachmentDownloadInfo(request: GetAttachmentDownloadInfoRequest): Observable<AttachmentDownloadInfoResponse>;
|
|
341
343
|
|
|
342
|
-
|
|
344
|
+
/**
|
|
345
|
+
* Single presigned GET URL for one attachment (after purchase/access check).
|
|
346
|
+
* Bytes never traverse the backend — see upload-service.
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
getAttachmentDownloadUrl(request: GetAttachmentDownloadUrlRequest): Observable<AttachmentDownloadUrlResponse>;
|
|
343
350
|
|
|
344
351
|
getTopProduct(request: Empty): Observable<ProductResponse>;
|
|
345
352
|
|
|
@@ -408,7 +415,14 @@ export interface ProductsServiceController {
|
|
|
408
415
|
| Observable<AttachmentDownloadInfoResponse>
|
|
409
416
|
| AttachmentDownloadInfoResponse;
|
|
410
417
|
|
|
411
|
-
|
|
418
|
+
/**
|
|
419
|
+
* Single presigned GET URL for one attachment (after purchase/access check).
|
|
420
|
+
* Bytes never traverse the backend — see upload-service.
|
|
421
|
+
*/
|
|
422
|
+
|
|
423
|
+
getAttachmentDownloadUrl(
|
|
424
|
+
request: GetAttachmentDownloadUrlRequest,
|
|
425
|
+
): Promise<AttachmentDownloadUrlResponse> | Observable<AttachmentDownloadUrlResponse> | AttachmentDownloadUrlResponse;
|
|
412
426
|
|
|
413
427
|
getTopProduct(request: Empty): Promise<ProductResponse> | Observable<ProductResponse> | ProductResponse;
|
|
414
428
|
|
|
@@ -438,7 +452,7 @@ export function ProductsServiceControllerMethods() {
|
|
|
438
452
|
"resubmitProduct",
|
|
439
453
|
"getSecureDownloadLinks",
|
|
440
454
|
"getAttachmentDownloadInfo",
|
|
441
|
-
"
|
|
455
|
+
"getAttachmentDownloadUrl",
|
|
442
456
|
"getTopProduct",
|
|
443
457
|
"getPopularProducts",
|
|
444
458
|
];
|
package/package.json
CHANGED
package/proto/products.proto
CHANGED
|
@@ -25,7 +25,9 @@ service ProductsService {
|
|
|
25
25
|
|
|
26
26
|
rpc GetSecureDownloadLinks(GetSecureDownloadLinksRequest) returns (SecureDownloadLinksResponse);
|
|
27
27
|
rpc GetAttachmentDownloadInfo(GetAttachmentDownloadInfoRequest) returns (AttachmentDownloadInfoResponse);
|
|
28
|
-
|
|
28
|
+
// Single presigned GET URL for one attachment (after purchase/access check).
|
|
29
|
+
// Bytes never traverse the backend — see upload-service.
|
|
30
|
+
rpc GetAttachmentDownloadUrl(GetAttachmentDownloadUrlRequest) returns (AttachmentDownloadUrlResponse);
|
|
29
31
|
|
|
30
32
|
rpc GetTopProduct(Empty) returns (ProductResponse);
|
|
31
33
|
rpc GetPopularProducts(QueryProductsRequest) returns (ProductsListResponse);
|
|
@@ -318,13 +320,15 @@ message AttachmentDownloadInfoResponse {
|
|
|
318
320
|
string content_type = 3;
|
|
319
321
|
}
|
|
320
322
|
|
|
321
|
-
message
|
|
323
|
+
message GetAttachmentDownloadUrlRequest {
|
|
322
324
|
string product_id = 1;
|
|
323
325
|
string attachment_id = 2;
|
|
324
326
|
string user_id = 3;
|
|
325
327
|
}
|
|
326
328
|
|
|
327
|
-
message
|
|
328
|
-
|
|
329
|
-
|
|
329
|
+
message AttachmentDownloadUrlResponse {
|
|
330
|
+
string download_url = 1;
|
|
331
|
+
int32 expires_in = 2;
|
|
332
|
+
string file_name = 3;
|
|
333
|
+
double file_size = 4;
|
|
330
334
|
}
|