Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

NEXT-28963 - Fix data handling types #86

Merged
merged 1 commit into from
Jul 6, 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@shopware-ag/admin-extension-sdk",
"license": "MIT",
"version": "3.0.13",
"version": "3.0.14",
"repository": "git://github.com/shopware/admin-extension-sdk.git",
"description": "The SDK for App iframes to communicate with the Shopware Administration",
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion src/_internals/serializer/criteria-serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const CriteriaSerializer: SerializerFactory = () => ({
// @ts-expect-error
serializedData.associations.forEach((association) => {
// Associations need also to be deserialized
// @ts-expect-error
deserializedCriteria.associations.push(customizerMethod(association));
});
// @ts-expect-error
Expand Down
30 changes: 15 additions & 15 deletions src/data/Criteria.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,35 +169,35 @@ export function setDefaultValues(options: { page?: number|null, limit?: number|n
}

export default class Criteria {
private page: number | null;
page: number | null;

private limit: number | null;
limit: number | null;

private term: string | null;
term: string | null;

private filters: SingleFilter[];
filters: SingleFilter[];

private ids: string[];
ids: string[];

private queries: Query[];
queries: Query[];

private associations: Association[];
associations: Association[];

private postFilter: SingleFilter[];
postFilter: SingleFilter[];

private sortings: Sorting[];
sortings: Sorting[];

private aggregations: Aggregation[];
aggregations: Aggregation[];

private grouping: string[];
grouping: string[];

private fields: string[];
fields: string[];

private groupFields: GroupField[];
groupFields: GroupField[];

private totalCountMode: TotalCountMode | null;
totalCountMode: TotalCountMode | null;

private includes: Include | null;
includes: Include | null;

constructor(page: number|null = defaultPage, limit: number|null = defaultLimit) {
this.page = page;
Expand Down