@whizzes/wsfc 0.0.1-early-dev-4 → 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;
|
@@ -426,8 +440,12 @@ export type Mutation = {
|
|
426
440
|
orderCustomerUpdate: OrderCustomerUpdate;
|
427
441
|
/** Add line item to an order. */
|
428
442
|
orderLineItemAdd: OrderLineItemAdd;
|
443
|
+
/** Appends a Category to a Product */
|
444
|
+
productCategoryAppend: ProductCategoryAppend;
|
429
445
|
/** Creates a Product */
|
430
446
|
productCreate: ProductCreate;
|
447
|
+
/** Updates a Product */
|
448
|
+
productUpdate: ProductUpdate;
|
431
449
|
/**
|
432
450
|
* start checkout process
|
433
451
|
* This will update the order status to `Address` or `Payment` depending on the order type.
|
@@ -507,12 +525,25 @@ export type MutationOrderLineItemAddArgs = {
|
|
507
525
|
};
|
508
526
|
|
509
527
|
|
528
|
+
export type MutationProductCategoryAppendArgs = {
|
529
|
+
channel: Scalars['ChannelCode']['input'];
|
530
|
+
input: ProductCategoryAppendInput;
|
531
|
+
};
|
532
|
+
|
533
|
+
|
510
534
|
export type MutationProductCreateArgs = {
|
511
535
|
channel: Scalars['ChannelCode']['input'];
|
512
536
|
input: ProductCreateInput;
|
513
537
|
};
|
514
538
|
|
515
539
|
|
540
|
+
export type MutationProductUpdateArgs = {
|
541
|
+
channel: Scalars['ChannelCode']['input'];
|
542
|
+
id: Scalars['UUID']['input'];
|
543
|
+
input: ProductUpdateInput;
|
544
|
+
};
|
545
|
+
|
546
|
+
|
516
547
|
export type MutationStartCheckoutArgs = {
|
517
548
|
channel: Scalars['ChannelCode']['input'];
|
518
549
|
input: OrderStartCheckoutInput;
|
@@ -544,12 +575,24 @@ export type Order = {
|
|
544
575
|
customerId?: Maybe<Scalars['UUID']['output']>;
|
545
576
|
id: Scalars['UUID']['output'];
|
546
577
|
lineItems: Array<OrderLineItem>;
|
578
|
+
orderEvents: Array<OrderEvent>;
|
547
579
|
orderNumber: Scalars['Int']['output'];
|
548
580
|
state: OrderState;
|
549
581
|
total: Scalars['Decimal']['output'];
|
550
582
|
updatedAt: Scalars['DateTime']['output'];
|
551
583
|
};
|
552
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
|
+
|
553
596
|
export type OrderConnection = {
|
554
597
|
__typename?: 'OrderConnection';
|
555
598
|
/** A list of edges. */
|
@@ -602,6 +645,13 @@ export enum OrderErrorCode {
|
|
602
645
|
DatabaseError = 'DATABASE_ERROR'
|
603
646
|
}
|
604
647
|
|
648
|
+
export type OrderEvent = {
|
649
|
+
__typename?: 'OrderEvent';
|
650
|
+
action: OrderAction;
|
651
|
+
actor?: Maybe<ActorType>;
|
652
|
+
eventTimestamp: Scalars['DateTime']['output'];
|
653
|
+
};
|
654
|
+
|
605
655
|
export type OrderLineItem = {
|
606
656
|
__typename?: 'OrderLineItem';
|
607
657
|
channelCode: Scalars['ChannelCode']['output'];
|
@@ -673,7 +723,7 @@ export type Price = {
|
|
673
723
|
/** Platform Product */
|
674
724
|
export type Product = {
|
675
725
|
__typename?: 'Product';
|
676
|
-
|
726
|
+
categories: Array<Category>;
|
677
727
|
channelCode: Scalars['ChannelCode']['output'];
|
678
728
|
createdAt: Scalars['DateTime']['output'];
|
679
729
|
defaultVariant: Variant;
|
@@ -687,6 +737,16 @@ export type Product = {
|
|
687
737
|
updatedAt: Scalars['DateTime']['output'];
|
688
738
|
};
|
689
739
|
|
740
|
+
export type ProductCategoryAppend = {
|
741
|
+
__typename?: 'ProductCategoryAppend';
|
742
|
+
error?: Maybe<ProductError>;
|
743
|
+
};
|
744
|
+
|
745
|
+
export type ProductCategoryAppendInput = {
|
746
|
+
categoryId: Scalars['UUID']['input'];
|
747
|
+
productId: Scalars['UUID']['input'];
|
748
|
+
};
|
749
|
+
|
690
750
|
export type ProductConnection = {
|
691
751
|
__typename?: 'ProductConnection';
|
692
752
|
/** A list of edges. */
|
@@ -728,6 +788,19 @@ export enum ProductErrorCode {
|
|
728
788
|
DatabaseError = 'DATABASE_ERROR'
|
729
789
|
}
|
730
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
|
+
|
731
804
|
export type Query = {
|
732
805
|
__typename?: 'Query';
|
733
806
|
/** Retrieves Categories */
|
@@ -923,9 +996,9 @@ export type ProductsListQueryVariables = Exact<{
|
|
923
996
|
}>;
|
924
997
|
|
925
998
|
|
926
|
-
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,
|
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 }> } }> } };
|
927
1000
|
|
928
|
-
export type ProductsListFieldsFragment = { __typename?: 'Product', channelCode: any, id: any, name: string, slug: any, description: any, defaultVariantId: any, position: number,
|
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 }> };
|
929
1002
|
|
930
1003
|
export const ProductsListFieldsFragmentDoc = gql`
|
931
1004
|
fragment ProductsListFields on Product {
|
@@ -962,7 +1035,15 @@ export const ProductsListFieldsFragmentDoc = gql`
|
|
962
1035
|
}
|
963
1036
|
}
|
964
1037
|
position
|
965
|
-
|
1038
|
+
categories {
|
1039
|
+
id
|
1040
|
+
name
|
1041
|
+
path
|
1042
|
+
position
|
1043
|
+
isActive
|
1044
|
+
createdAt
|
1045
|
+
updatedAt
|
1046
|
+
}
|
966
1047
|
}
|
967
1048
|
`;
|
968
1049
|
export const ProductsListDocument = gql`
|