Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add localized_slugs property to the platform taxons and product response #375

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/sdk-platform/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ import makeClient, { Client, Endpoints } from './makeClient'

export { makeClient, endpoints, routes, platformPath }
export type { Client, Endpoints }

export type {
LocalizedSlugs
} from '@spree/core-api-v2-sdk'
2 changes: 2 additions & 0 deletions packages/sdk-platform/src/interfaces/Products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
JsonApiListResponse,
JsonApiSingleResponse,
IRelationships,
LocalizedSlugs,
ResultResponse,
WithCommonOptions
} from '@spree/core-api-v2-sdk'
Expand Down Expand Up @@ -31,6 +32,7 @@ export interface ProductAttr {
currency: string
price: string
compare_at_price: any
localized_slugs: LocalizedSlugs
public_metadata?: {
[key: string]: string
}
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk-platform/src/interfaces/Taxons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
JsonApiListResponse,
JsonApiSingleResponse,
IRelationships,
LocalizedSlugs,
ResultResponse,
WithCommonOptions
} from '@spree/core-api-v2-sdk'
Expand All @@ -25,6 +26,7 @@ export interface TaxonAttr {
is_root: boolean
is_child: boolean
is_leaf: boolean
localized_slugs: LocalizedSlugs
public_metadata?: {
[key: string]: string
}
Expand Down