Skip to content

Commit

Permalink
chore: queries locales and timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
yosvelquintero committed Aug 25, 2023
1 parent fb35f05 commit b77015b
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 0 deletions.
82 changes: 82 additions & 0 deletions packages/core/graphql/src/lib/generated/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5369,6 +5369,45 @@ export type RequestPasswordChangeMutation = {
};
};

export type MasterDataLocaleReadQueryVariables = Exact<{
input: IIoRestorecommerceResourcebaseReadRequest;
}>;

export type MasterDataLocaleReadQuery = {
__typename?: 'Query';
master_data: {
__typename?: 'ResourceQuery';
locale: {
__typename?: 'ResourceLocaleQuery';
Read?: {
__typename?: 'ProtoIoRestorecommerceLocaleLocaleListResponse';
details?: {
__typename?: 'IoRestorecommerceLocaleLocaleListResponse';
items?: Array<{
__typename?: 'IoRestorecommerceLocaleLocaleResponse';
payload?: {
__typename?: 'IoRestorecommerceLocaleLocale';
id?: string | null;
description?: string | null;
value?: string | null;
} | null;
status?: {
__typename?: 'IoRestorecommerceStatusStatus';
code?: number | null;
message?: string | null;
} | null;
}> | null;
operationStatus?: {
__typename?: 'IoRestorecommerceStatusOperationStatus';
code?: number | null;
message?: string | null;
} | null;
} | null;
} | null;
};
};
};

export const UserDeleteDocument = gql`
mutation UserDelete($input: IIoRestorecommerceResourcebaseDeleteRequest!) {
identity {
Expand Down Expand Up @@ -5679,3 +5718,46 @@ export class RequestPasswordChangeGQL extends Apollo.Mutation<
super(apollo);
}
}
export const MasterDataLocaleReadDocument = gql`
query MasterDataLocaleRead(
$input: IIoRestorecommerceResourcebaseReadRequest!
) {
master_data {
locale {
Read(input: $input) {
details {
items {
payload {
id
description
value
}
status {
code
message
}
}
operationStatus {
code
message
}
}
}
}
}
}
`;

@Injectable({
providedIn: 'root',
})
export class MasterDataLocaleReadGQL extends Apollo.Query<
MasterDataLocaleReadQuery,
MasterDataLocaleReadQueryVariables
> {
override document = MasterDataLocaleReadDocument;

constructor(apollo: Apollo.Apollo) {
super(apollo);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
query MasterDataLocaleRead($input: IIoRestorecommerceResourcebaseReadRequest!) {
master_data {
locale {
Read(input: $input) {
details {
items {
payload {
id
description
value
}
status {
code
message
}
}
operationStatus {
code
message
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
query MasterDataTimezoneRead(
$input: IIoRestorecommerceResourcebaseReadRequest!
) {
master_data {
timezone {
Read(input: $input) {
details {
operationStatus {
code
message
}
items {
payload {
id
description
}
}
}
}
}
}
}

0 comments on commit b77015b

Please sign in to comment.