@nizza/core 0.3.1-alpha.0 → 0.3.1-beta.0
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/dist/index.cjs +4 -4
- package/dist/index.mjs +855 -844
- package/dist/lib/constants/products.d.ts +2 -1
- package/dist/lib/mobx/NizzaStore.d.ts +5 -3
- package/dist/lib/types/api-graphql-types.d.ts +54 -0
- package/dist/lib/types/nizza/nizzaGlobalObject.d.ts +0 -4
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,10 @@ export declare enum NizzaVariationTypes {
|
|
|
2
2
|
COMBO = "Combo"
|
|
3
3
|
}
|
|
4
4
|
export declare enum NizzaProductRequestOriginTypes {
|
|
5
|
+
VTEX = "VTEX",
|
|
6
|
+
PLATFORM = "platform",
|
|
5
7
|
CACE = "CACE",
|
|
6
8
|
GLOBAL_PAGE = "globalPage",
|
|
7
|
-
PLATFORM = "platform",
|
|
8
9
|
DEV_LOCAL = "dev:local",
|
|
9
10
|
CUSTOMIZATION = "customization"
|
|
10
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NizzaConfiguration, NizzaGlobalObjet, NizzaProductDataSource } from '../types';
|
|
2
1
|
import { NizzaAccount } from '../accounts';
|
|
3
|
-
|
|
2
|
+
import { NizzaConfiguration, NizzaProductDataSource } from '../types';
|
|
3
|
+
export declare class NizzaStore {
|
|
4
4
|
private static _instance;
|
|
5
5
|
private _config;
|
|
6
6
|
private _account;
|
|
@@ -8,8 +8,10 @@ export declare class NizzaStore implements NizzaGlobalObjet {
|
|
|
8
8
|
readonly instanceId: string;
|
|
9
9
|
private constructor();
|
|
10
10
|
static instance(): NizzaStore;
|
|
11
|
-
configure(config: NizzaConfiguration): Promise<
|
|
11
|
+
configure(config: NizzaConfiguration): Promise<this>;
|
|
12
12
|
get account(): NizzaAccount;
|
|
13
|
+
get ok(): boolean;
|
|
14
|
+
get accountName(): string;
|
|
13
15
|
get productDataSource(): NizzaProductDataSource | null;
|
|
14
16
|
get config(): NizzaConfiguration | null;
|
|
15
17
|
setProductDataSource(dataSource: NizzaProductDataSource): void;
|
|
@@ -693,6 +693,21 @@ export type SearchMinimalEventsQuery = {
|
|
|
693
693
|
}> | null;
|
|
694
694
|
};
|
|
695
695
|
};
|
|
696
|
+
export type AppendProductsToSnackVideoMutationVariables = Exact<{
|
|
697
|
+
data: RelateToProductsSnackVideoInput;
|
|
698
|
+
}>;
|
|
699
|
+
export type AppendProductsToSnackVideoMutation = {
|
|
700
|
+
__typename?: 'Mutation';
|
|
701
|
+
appendProductsSnackVideo: {
|
|
702
|
+
__typename: 'ActionSnackVideoSuccess';
|
|
703
|
+
message: string;
|
|
704
|
+
} | {
|
|
705
|
+
__typename: 'ErrorGeneral';
|
|
706
|
+
message: string;
|
|
707
|
+
statusCode: string;
|
|
708
|
+
timestamp: string;
|
|
709
|
+
};
|
|
710
|
+
};
|
|
696
711
|
export type CreateSnackVideoBatchMutationVariables = Exact<{
|
|
697
712
|
data: CreateSnackVideoInput;
|
|
698
713
|
}>;
|
|
@@ -711,6 +726,20 @@ export type CreateSnackVideoBatchMutation = {
|
|
|
711
726
|
}> | null;
|
|
712
727
|
};
|
|
713
728
|
};
|
|
729
|
+
export type DeleteRelationshipWithSnackVideoMutationVariables = Exact<{
|
|
730
|
+
data: SnackVideoRelationshipKeys;
|
|
731
|
+
}>;
|
|
732
|
+
export type DeleteRelationshipWithSnackVideoMutation = {
|
|
733
|
+
__typename?: 'Mutation';
|
|
734
|
+
deleteRelationshipSnackVideo: {
|
|
735
|
+
__typename: 'ActionSnackVideoSuccess';
|
|
736
|
+
message: string;
|
|
737
|
+
} | {
|
|
738
|
+
__typename: 'ErrorGeneral';
|
|
739
|
+
message: string;
|
|
740
|
+
statusCode: string;
|
|
741
|
+
};
|
|
742
|
+
};
|
|
714
743
|
export type FindManySnackVideosQueryVariables = Exact<{
|
|
715
744
|
data: FindManySnackVideoInput;
|
|
716
745
|
}>;
|
|
@@ -768,6 +797,22 @@ export type GetAllSnackVideosQuery = {
|
|
|
768
797
|
} | null;
|
|
769
798
|
};
|
|
770
799
|
};
|
|
800
|
+
export type GetSnackVideoRelationshipsQueryVariables = Exact<{
|
|
801
|
+
data: SnackVideoRelationshipInput;
|
|
802
|
+
}>;
|
|
803
|
+
export type GetSnackVideoRelationshipsQuery = {
|
|
804
|
+
__typename?: 'Query';
|
|
805
|
+
getRelationshipSnackVideos: {
|
|
806
|
+
__typename: 'ErrorGeneral';
|
|
807
|
+
} | {
|
|
808
|
+
__typename: 'RelationshipSnackVideoArray';
|
|
809
|
+
data?: Array<{
|
|
810
|
+
__typename?: 'RelationshipSnackVideo';
|
|
811
|
+
sourceEntity: string;
|
|
812
|
+
attributeId: string;
|
|
813
|
+
}> | null;
|
|
814
|
+
};
|
|
815
|
+
};
|
|
771
816
|
export type SearchSnackVideosQueryVariables = Exact<{
|
|
772
817
|
data: SearchInput;
|
|
773
818
|
}>;
|
|
@@ -857,15 +902,24 @@ export declare const FindMinimalEventDocument: DocumentNode<FindMinimalEventQuer
|
|
|
857
902
|
export declare const SearchMinimalEventsDocument: DocumentNode<SearchMinimalEventsQuery, Exact<{
|
|
858
903
|
data: SearchEventInput;
|
|
859
904
|
}>>;
|
|
905
|
+
export declare const AppendProductsToSnackVideoDocument: DocumentNode<AppendProductsToSnackVideoMutation, Exact<{
|
|
906
|
+
data: RelateToProductsSnackVideoInput;
|
|
907
|
+
}>>;
|
|
860
908
|
export declare const CreateSnackVideoBatchDocument: DocumentNode<CreateSnackVideoBatchMutation, Exact<{
|
|
861
909
|
data: CreateSnackVideoInput;
|
|
862
910
|
}>>;
|
|
911
|
+
export declare const DeleteRelationshipWithSnackVideoDocument: DocumentNode<DeleteRelationshipWithSnackVideoMutation, Exact<{
|
|
912
|
+
data: SnackVideoRelationshipKeys;
|
|
913
|
+
}>>;
|
|
863
914
|
export declare const FindManySnackVideosDocument: DocumentNode<FindManySnackVideosQuery, Exact<{
|
|
864
915
|
data: FindManySnackVideoInput;
|
|
865
916
|
}>>;
|
|
866
917
|
export declare const GetAllSnackVideosDocument: DocumentNode<GetAllSnackVideosQuery, Exact<{
|
|
867
918
|
data: QueryInput;
|
|
868
919
|
}>>;
|
|
920
|
+
export declare const GetSnackVideoRelationshipsDocument: DocumentNode<GetSnackVideoRelationshipsQuery, Exact<{
|
|
921
|
+
data: SnackVideoRelationshipInput;
|
|
922
|
+
}>>;
|
|
869
923
|
export declare const SearchSnackVideosDocument: DocumentNode<SearchSnackVideosQuery, Exact<{
|
|
870
924
|
data: SearchInput;
|
|
871
925
|
}>>;
|
package/dist/package.json
CHANGED