diff --git a/proto b/proto index 51bf0dc6..2ed69669 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 51bf0dc64bb5db52eef1a4bb96afd234e01268a0 +Subproject commit 2ed69669078ede137ae770434e8e519302c3dbcd diff --git a/src/api/proto-http/common/index.ts b/src/api/proto-http/common/index.ts index 681d4f26..abb3d0e4 100644 --- a/src/api/proto-http/common/index.ts +++ b/src/api/proto-http/common/index.ts @@ -398,7 +398,7 @@ export type ProductInsert = { }; export type ProductBody = { - preorder: string | undefined; + preorder: wellKnownTimestamp | undefined; name: string | undefined; brand: string | undefined; sku: string | undefined; @@ -450,7 +450,7 @@ export type Product = { export type ProductDisplay = { productBody: ProductBody | undefined; - thumbnail: MediaItem | undefined; + thumbnail: MediaFull | undefined; }; export type ProductSize = { diff --git a/src/api/proto-http/frontend/index.ts b/src/api/proto-http/frontend/index.ts index f09b3491..bd5d8322 100644 --- a/src/api/proto-http/frontend/index.ts +++ b/src/api/proto-http/frontend/index.ts @@ -67,11 +67,11 @@ export type common_Product = { export type common_ProductDisplay = { productBody: common_ProductBody | undefined; - thumbnail: common_MediaItem | undefined; + thumbnail: common_MediaFull | undefined; }; export type common_ProductBody = { - preorder: string | undefined; + preorder: wellKnownTimestamp | undefined; name: string | undefined; brand: string | undefined; sku: string | undefined; @@ -294,7 +294,10 @@ export type common_CurrencyRate = { }; export type GetProductRequest = { - slug: string | undefined; + gender: string | undefined; + brand: string | undefined; + name: string | undefined; + id: number | undefined; }; export type GetProductResponse = { @@ -691,10 +694,19 @@ export function createFrontendServiceClient( }) as Promise; }, GetProduct(request) { // eslint-disable-line @typescript-eslint/no-unused-vars - if (!request.slug) { - throw new Error("missing required field request.slug"); + if (!request.gender) { + throw new Error("missing required field request.gender"); + } + if (!request.brand) { + throw new Error("missing required field request.brand"); + } + if (!request.name) { + throw new Error("missing required field request.name"); + } + if (!request.id) { + throw new Error("missing required field request.id"); } - const path = `api/frontend/product/${request.slug}`; // eslint-disable-line quotes + const path = `api/frontend/product/${request.gender}/${request.brand}/${request.name}/${request.id}`; // eslint-disable-line quotes const body = null; const queryParams: string[] = []; let uri = path;