@whizzes/wsfc 0.0.1-early-dev-5 → 0.0.1-early-dev-6
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
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,6 +723,7 @@ 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;
|
@@ -745,6 +788,19 @@ export enum ProductErrorCode {
|
|
745
788
|
DatabaseError = 'DATABASE_ERROR'
|
746
789
|
}
|
747
790
|
|
791
|
+
export type ProductUpdate = {
|
792
|
+
__typename?: 'ProductUpdate';
|
793
|
+
error?: Maybe<ProductError>;
|
794
|
+
product?: Maybe<Product>;
|
795
|
+
};
|
796
|
+
|
797
|
+
export type ProductUpdateInput = {
|
798
|
+
description?: InputMaybe<Scalars['JsonString']['input']>;
|
799
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
800
|
+
position?: InputMaybe<Scalars['Int']['input']>;
|
801
|
+
slug?: InputMaybe<Scalars['Slug']['input']>;
|
802
|
+
};
|
803
|
+
|
748
804
|
export type Query = {
|
749
805
|
__typename?: 'Query';
|
750
806
|
/** Retrieves Categories */
|
@@ -940,9 +996,9 @@ export type ProductsListQueryVariables = Exact<{
|
|
940
996
|
}>;
|
941
997
|
|
942
998
|
|
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 }> } } }> } };
|
999
|
+
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 }> }, categories: Array<{ __typename?: 'Category', id: any, name: string, path: Array<any>, position: number, isActive: boolean, createdAt: any, updatedAt: any }> } }> } };
|
944
1000
|
|
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 }> } };
|
1001
|
+
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 }> }, categories: Array<{ __typename?: 'Category', id: any, name: string, path: Array<any>, position: number, isActive: boolean, createdAt: any, updatedAt: any }> };
|
946
1002
|
|
947
1003
|
export const ProductsListFieldsFragmentDoc = gql`
|
948
1004
|
fragment ProductsListFields on Product {
|
@@ -979,6 +1035,15 @@ export const ProductsListFieldsFragmentDoc = gql`
|
|
979
1035
|
}
|
980
1036
|
}
|
981
1037
|
position
|
1038
|
+
categories {
|
1039
|
+
id
|
1040
|
+
name
|
1041
|
+
path
|
1042
|
+
position
|
1043
|
+
isActive
|
1044
|
+
createdAt
|
1045
|
+
updatedAt
|
1046
|
+
}
|
982
1047
|
}
|
983
1048
|
`;
|
984
1049
|
export const ProductsListDocument = gql`
|