Skip to content

Commit 6d44953

Browse files
committed
feat(shop): add effects for create, update and delete
1 parent 3a3ca50 commit 6d44953

File tree

4 files changed

+448
-2
lines changed

4 files changed

+448
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
mutation MasterDataShopMutate($input: IIoRestorecommerceShopShopList!) {
2+
master_data {
3+
shop {
4+
Mutate(input: $input) {
5+
details {
6+
items {
7+
payload {
8+
...ShopFragment
9+
}
10+
}
11+
operationStatus {
12+
code
13+
message
14+
}
15+
}
16+
}
17+
}
18+
}
19+
}
20+
21+
mutation MasterDataShopDeleteMutate(
22+
$input: IIoRestorecommerceResourcebaseDeleteRequest!
23+
) {
24+
master_data {
25+
shop {
26+
Delete(input: $input) {
27+
details {
28+
operationStatus {
29+
code
30+
message
31+
}
32+
status {
33+
id
34+
code
35+
message
36+
}
37+
}
38+
}
39+
}
40+
}
41+
}

packages/core/graphql/src/lib/generated/generated.ts

+236
Original file line numberDiff line numberDiff line change
@@ -9714,6 +9714,169 @@ export type MasterDataOrganizationReadQuery = {
97149714
};
97159715
};
97169716

9717+
export type MasterDataShopMutateMutationVariables = Exact<{
9718+
input: IIoRestorecommerceShopShopList;
9719+
}>;
9720+
9721+
export type MasterDataShopMutateMutation = {
9722+
__typename?: 'Mutation';
9723+
master_data: {
9724+
__typename?: 'ResourceMutation';
9725+
shop: {
9726+
__typename?: 'ResourceShopMutation';
9727+
Mutate?: {
9728+
__typename?: 'ProtoIoRestorecommerceShopShopListResponse';
9729+
details?: {
9730+
__typename?: 'IoRestorecommerceShopShopListResponse';
9731+
items?: Array<{
9732+
__typename?: 'IoRestorecommerceShopShopResponse';
9733+
payload?: {
9734+
__typename?: 'IoRestorecommerceShopShop';
9735+
id?: string | null;
9736+
shopNumber?: string | null;
9737+
name?: string | null;
9738+
description?: string | null;
9739+
domains?: Array<string> | null;
9740+
organization?: {
9741+
__typename?: 'IoRestorecommerceOrganizationOrganization';
9742+
id?: string | null;
9743+
parentId?: string | null;
9744+
name?: string | null;
9745+
email?: string | null;
9746+
website?: string | null;
9747+
vatId?: string | null;
9748+
logo?: {
9749+
__typename?: 'IoRestorecommerceImageImage';
9750+
id?: string | null;
9751+
index?: number | null;
9752+
filename?: string | null;
9753+
height?: number | null;
9754+
width?: number | null;
9755+
url?: string | null;
9756+
} | null;
9757+
contactPoints?: Array<{
9758+
__typename?: 'IoRestorecommerceContactPointContactPoint';
9759+
id?: string | null;
9760+
name?: string | null;
9761+
description?: string | null;
9762+
email?: string | null;
9763+
telephone?: string | null;
9764+
website?: string | null;
9765+
timezone?: {
9766+
__typename?: 'IoRestorecommerceTimezoneTimezone';
9767+
id?: string | null;
9768+
value?: string | null;
9769+
description?: string | null;
9770+
} | null;
9771+
locale?: {
9772+
__typename?: 'IoRestorecommerceLocaleLocale';
9773+
id?: string | null;
9774+
value?: string | null;
9775+
description?: string | null;
9776+
} | null;
9777+
meta?: {
9778+
__typename?: 'IoRestorecommerceMetaMeta';
9779+
created?: unknown | null;
9780+
modified?: unknown | null;
9781+
createdBy?: string | null;
9782+
modifiedBy?: string | null;
9783+
owners?: Array<{
9784+
__typename?: 'IoRestorecommerceAttributeAttribute';
9785+
id?: string | null;
9786+
value?: string | null;
9787+
attributes?: Array<{
9788+
__typename?: 'IoRestorecommerceAttributeAttribute';
9789+
id?: string | null;
9790+
value?: string | null;
9791+
}> | null;
9792+
}> | null;
9793+
} | null;
9794+
}> | null;
9795+
paymentMethods?: Array<{
9796+
__typename?: 'IoRestorecommercePaymentMethodPaymentMethod';
9797+
id?: string | null;
9798+
transferType?: IoRestorecommercePaymentMethodTransferTypeEnum | null;
9799+
paymentMethod?: IoRestorecommercePaymentMethodPaymentMethodEnum | null;
9800+
}> | null;
9801+
meta?: {
9802+
__typename?: 'IoRestorecommerceMetaMeta';
9803+
created?: unknown | null;
9804+
modified?: unknown | null;
9805+
createdBy?: string | null;
9806+
modifiedBy?: string | null;
9807+
owners?: Array<{
9808+
__typename?: 'IoRestorecommerceAttributeAttribute';
9809+
id?: string | null;
9810+
value?: string | null;
9811+
attributes?: Array<{
9812+
__typename?: 'IoRestorecommerceAttributeAttribute';
9813+
id?: string | null;
9814+
value?: string | null;
9815+
}> | null;
9816+
}> | null;
9817+
} | null;
9818+
} | null;
9819+
meta?: {
9820+
__typename?: 'IoRestorecommerceMetaMeta';
9821+
created?: unknown | null;
9822+
modified?: unknown | null;
9823+
createdBy?: string | null;
9824+
modifiedBy?: string | null;
9825+
owners?: Array<{
9826+
__typename?: 'IoRestorecommerceAttributeAttribute';
9827+
id?: string | null;
9828+
value?: string | null;
9829+
attributes?: Array<{
9830+
__typename?: 'IoRestorecommerceAttributeAttribute';
9831+
id?: string | null;
9832+
value?: string | null;
9833+
}> | null;
9834+
}> | null;
9835+
} | null;
9836+
} | null;
9837+
}> | null;
9838+
operationStatus?: {
9839+
__typename?: 'IoRestorecommerceStatusOperationStatus';
9840+
code?: number | null;
9841+
message?: string | null;
9842+
} | null;
9843+
} | null;
9844+
} | null;
9845+
};
9846+
};
9847+
};
9848+
9849+
export type MasterDataShopDeleteMutateMutationVariables = Exact<{
9850+
input: IIoRestorecommerceResourcebaseDeleteRequest;
9851+
}>;
9852+
9853+
export type MasterDataShopDeleteMutateMutation = {
9854+
__typename?: 'Mutation';
9855+
master_data: {
9856+
__typename?: 'ResourceMutation';
9857+
shop: {
9858+
__typename?: 'ResourceShopMutation';
9859+
Delete?: {
9860+
__typename?: 'ProtoIoRestorecommerceResourcebaseDeleteResponse';
9861+
details?: {
9862+
__typename?: 'IoRestorecommerceResourcebaseDeleteResponse';
9863+
operationStatus?: {
9864+
__typename?: 'IoRestorecommerceStatusOperationStatus';
9865+
code?: number | null;
9866+
message?: string | null;
9867+
} | null;
9868+
status?: Array<{
9869+
__typename?: 'IoRestorecommerceStatusStatus';
9870+
id?: string | null;
9871+
code?: number | null;
9872+
message?: string | null;
9873+
}> | null;
9874+
} | null;
9875+
} | null;
9876+
};
9877+
};
9878+
};
9879+
97179880
export type MasterDataShopReadQueryVariables = Exact<{
97189881
input: IIoRestorecommerceResourcebaseReadRequest;
97199882
}>;
@@ -13502,6 +13665,79 @@ export class MasterDataOrganizationReadGQL extends Apollo.Query<
1350213665
super(apollo);
1350313666
}
1350413667
}
13668+
export const MasterDataShopMutateDocument = gql`
13669+
mutation MasterDataShopMutate($input: IIoRestorecommerceShopShopList!) {
13670+
master_data {
13671+
shop {
13672+
Mutate(input: $input) {
13673+
details {
13674+
items {
13675+
payload {
13676+
...ShopFragment
13677+
}
13678+
}
13679+
operationStatus {
13680+
code
13681+
message
13682+
}
13683+
}
13684+
}
13685+
}
13686+
}
13687+
}
13688+
${ShopFragmentFragmentDoc}
13689+
`;
13690+
13691+
@Injectable({
13692+
providedIn: 'root',
13693+
})
13694+
export class MasterDataShopMutateGQL extends Apollo.Mutation<
13695+
MasterDataShopMutateMutation,
13696+
MasterDataShopMutateMutationVariables
13697+
> {
13698+
override document = MasterDataShopMutateDocument;
13699+
13700+
constructor(apollo: Apollo.Apollo) {
13701+
super(apollo);
13702+
}
13703+
}
13704+
export const MasterDataShopDeleteMutateDocument = gql`
13705+
mutation MasterDataShopDeleteMutate(
13706+
$input: IIoRestorecommerceResourcebaseDeleteRequest!
13707+
) {
13708+
master_data {
13709+
shop {
13710+
Delete(input: $input) {
13711+
details {
13712+
operationStatus {
13713+
code
13714+
message
13715+
}
13716+
status {
13717+
id
13718+
code
13719+
message
13720+
}
13721+
}
13722+
}
13723+
}
13724+
}
13725+
}
13726+
`;
13727+
13728+
@Injectable({
13729+
providedIn: 'root',
13730+
})
13731+
export class MasterDataShopDeleteMutateGQL extends Apollo.Mutation<
13732+
MasterDataShopDeleteMutateMutation,
13733+
MasterDataShopDeleteMutateMutationVariables
13734+
> {
13735+
override document = MasterDataShopDeleteMutateDocument;
13736+
13737+
constructor(apollo: Apollo.Apollo) {
13738+
super(apollo);
13739+
}
13740+
}
1350513741
export const MasterDataShopReadDocument = gql`
1350613742
query MasterDataShopRead($input: IIoRestorecommerceResourcebaseReadRequest!) {
1350713743
master_data {

0 commit comments

Comments
 (0)