@whizzes/wsfc 0.0.1-early-dev-5 → 0.0.1-early-dev-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -4,6 +4,7 @@ fragment ProductsListFields on Product {
|
|
4
4
|
name
|
5
5
|
slug
|
6
6
|
description
|
7
|
+
metadata
|
7
8
|
defaultVariantId
|
8
9
|
defaultVariant {
|
9
10
|
id
|
@@ -32,4 +33,13 @@ fragment ProductsListFields on Product {
|
|
32
33
|
}
|
33
34
|
}
|
34
35
|
position
|
36
|
+
categories {
|
37
|
+
id
|
38
|
+
name
|
39
|
+
path
|
40
|
+
position
|
41
|
+
isActive
|
42
|
+
createdAt
|
43
|
+
updatedAt
|
44
|
+
}
|
35
45
|
}
|
package/src/types/index.ts
CHANGED
@@ -26,6 +26,20 @@ export type Scalars = {
|
|
26
26
|
Upload: { input: any; output: any; }
|
27
27
|
};
|
28
28
|
|
29
|
+
export type ActorType = {
|
30
|
+
__typename?: 'ActorType';
|
31
|
+
actorId: Scalars['String']['output'];
|
32
|
+
actorType: ActorTypeKind;
|
33
|
+
};
|
34
|
+
|
35
|
+
export enum ActorTypeKind {
|
36
|
+
Admin = 'ADMIN',
|
37
|
+
Customer = 'CUSTOMER',
|
38
|
+
Integration = 'INTEGRATION',
|
39
|
+
Service = 'SERVICE',
|
40
|
+
Storefront = 'STOREFRONT'
|
41
|
+
}
|
42
|
+
|
29
43
|
export type AuthError = {
|
30
44
|
__typename?: 'AuthError';
|
31
45
|
code: AuthErrorCode;
|
@@ -430,6 +444,8 @@ export type Mutation = {
|
|
430
444
|
productCategoryAppend: ProductCategoryAppend;
|
431
445
|
/** Creates a Product */
|
432
446
|
productCreate: ProductCreate;
|
447
|
+
/** Updates a Product */
|
448
|
+
productUpdate: ProductUpdate;
|
433
449
|
/**
|
434
450
|
* start checkout process
|
435
451
|
* This will update the order status to `Address` or `Payment` depending on the order type.
|
@@ -521,6 +537,13 @@ export type MutationProductCreateArgs = {
|
|
521
537
|
};
|
522
538
|
|
523
539
|
|
540
|
+
export type MutationProductUpdateArgs = {
|
541
|
+
channel: Scalars['ChannelCode']['input'];
|
542
|
+
id: Scalars['UUID']['input'];
|
543
|
+
input: ProductUpdateInput;
|
544
|
+
};
|
545
|
+
|
546
|
+
|
524
547
|
export type MutationStartCheckoutArgs = {
|
525
548
|
channel: Scalars['ChannelCode']['input'];
|
526
549
|
input: OrderStartCheckoutInput;
|
@@ -552,12 +575,24 @@ export type Order = {
|
|
552
575
|
customerId?: Maybe<Scalars['UUID']['output']>;
|
553
576
|
id: Scalars['UUID']['output'];
|
554
577
|
lineItems: Array<OrderLineItem>;
|
578
|
+
orderEvents: Array<OrderEvent>;
|
555
579
|
orderNumber: Scalars['Int']['output'];
|
556
580
|
state: OrderState;
|
557
581
|
total: Scalars['Decimal']['output'];
|
558
582
|
updatedAt: Scalars['DateTime']['output'];
|
559
583
|
};
|
560
584
|
|
585
|
+
export enum OrderAction {
|
586
|
+
AddAddress = 'ADD_ADDRESS',
|
587
|
+
AddPayment = 'ADD_PAYMENT',
|
588
|
+
Advance = 'ADVANCE',
|
589
|
+
CancelOrder = 'CANCEL_ORDER',
|
590
|
+
ConfirmOrder = 'CONFIRM_ORDER',
|
591
|
+
Revert = 'REVERT',
|
592
|
+
SelectDelivery = 'SELECT_DELIVERY',
|
593
|
+
StartCheckout = 'START_CHECKOUT'
|
594
|
+
}
|
595
|
+
|
561
596
|
export type OrderConnection = {
|
562
597
|
__typename?: 'OrderConnection';
|
563
598
|
/** A list of edges. */
|
@@ -610,6 +645,13 @@ export enum OrderErrorCode {
|
|
610
645
|
DatabaseError = 'DATABASE_ERROR'
|
611
646
|
}
|
612
647
|
|
648
|
+
export type OrderEvent = {
|
649
|
+
__typename?: 'OrderEvent';
|
650
|
+
action: OrderAction;
|
651
|
+
actor?: Maybe<ActorType>;
|
652
|
+
eventTimestamp: Scalars['DateTime']['output'];
|
653
|
+
};
|
654
|
+
|
613
655
|
export type OrderLineItem = {
|
614
656
|
__typename?: 'OrderLineItem';
|
615
657
|
channelCode: Scalars['ChannelCode']['output'];
|
@@ -681,12 +723,14 @@ export type Price = {
|
|
681
723
|
/** Platform Product */
|
682
724
|
export type Product = {
|
683
725
|
__typename?: 'Product';
|
726
|
+
categories: Array<Category>;
|
684
727
|
channelCode: Scalars['ChannelCode']['output'];
|
685
728
|
createdAt: Scalars['DateTime']['output'];
|
686
729
|
defaultVariant: Variant;
|
687
730
|
defaultVariantId: Scalars['UUID']['output'];
|
688
731
|
description: Scalars['JsonString']['output'];
|
689
732
|
id: Scalars['UUID']['output'];
|
733
|
+
metadata?: Maybe<Scalars['JsonString']['output']>;
|
690
734
|
name: Scalars['String']['output'];
|
691
735
|
position: Scalars['Int']['output'];
|
692
736
|
publishAt: Scalars['DateTime']['output'];
|
@@ -745,6 +789,20 @@ export enum ProductErrorCode {
|
|
745
789
|
DatabaseError = 'DATABASE_ERROR'
|
746
790
|
}
|
747
791
|
|
792
|
+
export type ProductUpdate = {
|
793
|
+
__typename?: 'ProductUpdate';
|
794
|
+
error?: Maybe<ProductError>;
|
795
|
+
product?: Maybe<Product>;
|
796
|
+
};
|
797
|
+
|
798
|
+
export type ProductUpdateInput = {
|
799
|
+
description?: InputMaybe<Scalars['JsonString']['input']>;
|
800
|
+
metadata?: InputMaybe<Scalars['JsonString']['input']>;
|
801
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
802
|
+
position?: InputMaybe<Scalars['Int']['input']>;
|
803
|
+
slug?: InputMaybe<Scalars['Slug']['input']>;
|
804
|
+
};
|
805
|
+
|
748
806
|
export type Query = {
|
749
807
|
__typename?: 'Query';
|
750
808
|
/** Retrieves Categories */
|
@@ -940,9 +998,9 @@ export type ProductsListQueryVariables = Exact<{
|
|
940
998
|
}>;
|
941
999
|
|
942
1000
|
|
943
|
-
export type ProductsListQuery = { __typename?: 'Query', products: { __typename?: 'ProductConnection', edges: Array<{ __typename?: 'ProductEdge', node: { __typename?: 'Product', channelCode: any, id: any, name: string, slug: any, description: any, defaultVariantId: any, position: number, defaultVariant: { __typename?: 'Variant', id: any, channelCode: any, sku?: string | null, productId: any, requiresShipping: boolean, images: Array<{ __typename?: 'Image', id: any, channelCode: any, height: number, width: number, url: string, thumbnailUrl?: string | null, size: number, mimeType: MimeType, useCase: UseCase, createdAt: any, updatedAt: any }>, prices: Array<{ __typename?: 'Price', variantId: any, channelCode: any, currency: Iso4217, price: any }> } } }> } };
|
1001
|
+
export type ProductsListQuery = { __typename?: 'Query', products: { __typename?: 'ProductConnection', edges: Array<{ __typename?: 'ProductEdge', node: { __typename?: 'Product', channelCode: any, id: any, name: string, slug: any, description: any, metadata?: any | null, defaultVariantId: any, position: number, defaultVariant: { __typename?: 'Variant', id: any, channelCode: any, sku?: string | null, productId: any, requiresShipping: boolean, images: Array<{ __typename?: 'Image', id: any, channelCode: any, height: number, width: number, url: string, thumbnailUrl?: string | null, size: number, mimeType: MimeType, useCase: UseCase, createdAt: any, updatedAt: any }>, prices: Array<{ __typename?: 'Price', variantId: any, channelCode: any, currency: Iso4217, price: any }> }, categories: Array<{ __typename?: 'Category', id: any, name: string, path: Array<any>, position: number, isActive: boolean, createdAt: any, updatedAt: any }> } }> } };
|
944
1002
|
|
945
|
-
export type ProductsListFieldsFragment = { __typename?: 'Product', channelCode: any, id: any, name: string, slug: any, description: any, defaultVariantId: any, position: number, defaultVariant: { __typename?: 'Variant', id: any, channelCode: any, sku?: string | null, productId: any, requiresShipping: boolean, images: Array<{ __typename?: 'Image', id: any, channelCode: any, height: number, width: number, url: string, thumbnailUrl?: string | null, size: number, mimeType: MimeType, useCase: UseCase, createdAt: any, updatedAt: any }>, prices: Array<{ __typename?: 'Price', variantId: any, channelCode: any, currency: Iso4217, price: any }> } };
|
1003
|
+
export type ProductsListFieldsFragment = { __typename?: 'Product', channelCode: any, id: any, name: string, slug: any, description: any, metadata?: any | null, defaultVariantId: any, position: number, defaultVariant: { __typename?: 'Variant', id: any, channelCode: any, sku?: string | null, productId: any, requiresShipping: boolean, images: Array<{ __typename?: 'Image', id: any, channelCode: any, height: number, width: number, url: string, thumbnailUrl?: string | null, size: number, mimeType: MimeType, useCase: UseCase, createdAt: any, updatedAt: any }>, prices: Array<{ __typename?: 'Price', variantId: any, channelCode: any, currency: Iso4217, price: any }> }, categories: Array<{ __typename?: 'Category', id: any, name: string, path: Array<any>, position: number, isActive: boolean, createdAt: any, updatedAt: any }> };
|
946
1004
|
|
947
1005
|
export const ProductsListFieldsFragmentDoc = gql`
|
948
1006
|
fragment ProductsListFields on Product {
|
@@ -951,6 +1009,7 @@ export const ProductsListFieldsFragmentDoc = gql`
|
|
951
1009
|
name
|
952
1010
|
slug
|
953
1011
|
description
|
1012
|
+
metadata
|
954
1013
|
defaultVariantId
|
955
1014
|
defaultVariant {
|
956
1015
|
id
|
@@ -979,6 +1038,15 @@ export const ProductsListFieldsFragmentDoc = gql`
|
|
979
1038
|
}
|
980
1039
|
}
|
981
1040
|
position
|
1041
|
+
categories {
|
1042
|
+
id
|
1043
|
+
name
|
1044
|
+
path
|
1045
|
+
position
|
1046
|
+
isActive
|
1047
|
+
createdAt
|
1048
|
+
updatedAt
|
1049
|
+
}
|
982
1050
|
}
|
983
1051
|
`;
|
984
1052
|
export const ProductsListDocument = gql`
|