@nizza/core 0.4.1 → 0.4.3
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 +5 -5
- package/dist/index.mjs +1184 -1193
- package/dist/lib/types/api-graphql-types.d.ts +62 -0
- package/dist/lib/types/nizza/chat.d.ts +2 -0
- package/dist/lib/types/nizza/index.d.ts +1 -0
- package/dist/lib/types/nizza/nizzaEvent.d.ts +17 -0
- package/dist/lib/utils/getClientTimeZone.d.ts +10 -0
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,25 @@ export type ActionSnackVideoSuccess = {
|
|
|
26
26
|
__typename?: 'ActionSnackVideoSuccess';
|
|
27
27
|
message: Scalars['String'];
|
|
28
28
|
};
|
|
29
|
+
export type BlockUserInput = {
|
|
30
|
+
account: Scalars['String'];
|
|
31
|
+
idEvent: Scalars['String'];
|
|
32
|
+
username: Scalars['String'];
|
|
33
|
+
};
|
|
34
|
+
export type BlockUserResult = BlockUserSuccess | ErrorGeneral;
|
|
35
|
+
export type BlockUserSuccess = {
|
|
36
|
+
__typename?: 'BlockUserSuccess';
|
|
37
|
+
message: Scalars['String'];
|
|
38
|
+
};
|
|
39
|
+
export type ChangeUsernameInput = {
|
|
40
|
+
account: Scalars['String'];
|
|
41
|
+
username: Scalars['String'];
|
|
42
|
+
};
|
|
43
|
+
export type ChangeUsernameResult = ChangeUsernameSuccess | ErrorGeneral;
|
|
44
|
+
export type ChangeUsernameSuccess = {
|
|
45
|
+
__typename?: 'ChangeUsernameSuccess';
|
|
46
|
+
message: Scalars['String'];
|
|
47
|
+
};
|
|
29
48
|
export type ChatMessage = {
|
|
30
49
|
__typename?: 'ChatMessage';
|
|
31
50
|
account: Scalars['String'];
|
|
@@ -38,6 +57,7 @@ export type ChatMessage = {
|
|
|
38
57
|
sendDate?: Maybe<Scalars['String']>;
|
|
39
58
|
sessionId?: Maybe<Scalars['String']>;
|
|
40
59
|
type?: Maybe<Scalars['String']>;
|
|
60
|
+
urlGif?: Maybe<Scalars['String']>;
|
|
41
61
|
username?: Maybe<Scalars['String']>;
|
|
42
62
|
};
|
|
43
63
|
export type ChatMessageArray = {
|
|
@@ -267,6 +287,8 @@ export declare enum Methods {
|
|
|
267
287
|
export type Mutation = {
|
|
268
288
|
__typename?: 'Mutation';
|
|
269
289
|
appendProductsSnackVideo: RelateEntitySnackVideo;
|
|
290
|
+
blockUser: BlockUserResult;
|
|
291
|
+
changeAccountUsername: ChangeUsernameResult;
|
|
270
292
|
createChatRoom: CreateChatRoomResult;
|
|
271
293
|
createCollection: CollectionResult;
|
|
272
294
|
createSnackVideos: CreateSnackVideoResult;
|
|
@@ -287,6 +309,12 @@ export type Mutation = {
|
|
|
287
309
|
export type MutationAppendProductsSnackVideoArgs = {
|
|
288
310
|
data: RelateToProductsSnackVideoInput;
|
|
289
311
|
};
|
|
312
|
+
export type MutationBlockUserArgs = {
|
|
313
|
+
data: BlockUserInput;
|
|
314
|
+
};
|
|
315
|
+
export type MutationChangeAccountUsernameArgs = {
|
|
316
|
+
data: ChangeUsernameInput;
|
|
317
|
+
};
|
|
290
318
|
export type MutationCreateChatRoomArgs = {
|
|
291
319
|
data: CreateChatRoomInput;
|
|
292
320
|
};
|
|
@@ -472,6 +500,7 @@ export type SaveChatInput = {
|
|
|
472
500
|
sendDate: Scalars['String'];
|
|
473
501
|
sessionId: Scalars['String'];
|
|
474
502
|
type: Scalars['String'];
|
|
503
|
+
urlGif?: InputMaybe<Scalars['String']>;
|
|
475
504
|
username: Scalars['String'];
|
|
476
505
|
};
|
|
477
506
|
export type SaveChatMessageResult = ErrorGeneral | SaveChatMessageSuccess;
|
|
@@ -642,6 +671,32 @@ export type UpdateCustomizationMutation = {
|
|
|
642
671
|
timestamp: string;
|
|
643
672
|
};
|
|
644
673
|
};
|
|
674
|
+
export type BlockUserMutationVariables = Exact<{
|
|
675
|
+
data: BlockUserInput;
|
|
676
|
+
}>;
|
|
677
|
+
export type BlockUserMutation = {
|
|
678
|
+
__typename?: 'Mutation';
|
|
679
|
+
blockUser: {
|
|
680
|
+
__typename: 'BlockUserSuccess';
|
|
681
|
+
message: string;
|
|
682
|
+
} | {
|
|
683
|
+
__typename: 'ErrorGeneral';
|
|
684
|
+
message: string;
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
export type ChangeAccountUsernameMutationVariables = Exact<{
|
|
688
|
+
data: ChangeUsernameInput;
|
|
689
|
+
}>;
|
|
690
|
+
export type ChangeAccountUsernameMutation = {
|
|
691
|
+
__typename?: 'Mutation';
|
|
692
|
+
changeAccountUsername: {
|
|
693
|
+
__typename: 'ChangeUsernameSuccess';
|
|
694
|
+
message: string;
|
|
695
|
+
} | {
|
|
696
|
+
__typename: 'ErrorGeneral';
|
|
697
|
+
message: string;
|
|
698
|
+
};
|
|
699
|
+
};
|
|
645
700
|
export type DeleteChatMessageMutationVariables = Exact<{
|
|
646
701
|
data: DeleteChatInput;
|
|
647
702
|
}>;
|
|
@@ -675,6 +730,7 @@ export type GetAllChatMessageQuery = {
|
|
|
675
730
|
type?: string | null;
|
|
676
731
|
username?: string | null;
|
|
677
732
|
isAdmin?: boolean | null;
|
|
733
|
+
urlGif?: string | null;
|
|
678
734
|
}> | null;
|
|
679
735
|
} | {
|
|
680
736
|
__typename: 'ErrorGeneral';
|
|
@@ -1125,6 +1181,12 @@ export declare const GetAllCustomizationDocument: DocumentNode<GetAllCustomizati
|
|
|
1125
1181
|
export declare const UpdateCustomizationDocument: DocumentNode<UpdateCustomizationMutation, Exact<{
|
|
1126
1182
|
data: CustomPlayerInput;
|
|
1127
1183
|
}>>;
|
|
1184
|
+
export declare const BlockUserDocument: DocumentNode<BlockUserMutation, Exact<{
|
|
1185
|
+
data: BlockUserInput;
|
|
1186
|
+
}>>;
|
|
1187
|
+
export declare const ChangeAccountUsernameDocument: DocumentNode<ChangeAccountUsernameMutation, Exact<{
|
|
1188
|
+
data: ChangeUsernameInput;
|
|
1189
|
+
}>>;
|
|
1128
1190
|
export declare const DeleteChatMessageDocument: DocumentNode<DeleteChatMessageMutation, Exact<{
|
|
1129
1191
|
data: DeleteChatInput;
|
|
1130
1192
|
}>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface NizzaTimeZone {
|
|
2
|
+
offset: string | null;
|
|
3
|
+
offsetValue: number | null;
|
|
4
|
+
value: string | null;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Placeholder for country information.
|
|
7
|
+
*/
|
|
8
|
+
country: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Placeholder for inclusion list.
|
|
11
|
+
*/
|
|
12
|
+
included: string[] | null;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Placeholder for label information.
|
|
15
|
+
*/
|
|
16
|
+
label: string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NizzaTimeZone } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get the browser's time zone.
|
|
4
|
+
*
|
|
5
|
+
* This function attempts to obtain the time zone and offset of the
|
|
6
|
+
* browser using the Intl.DateTimeFormat and Date APIs.
|
|
7
|
+
*
|
|
8
|
+
* @returns {NizzaTimeZone} An object containing the offset, offsetValue, the time zone value.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getClientTimeZone(): NizzaTimeZone;
|
package/dist/package.json
CHANGED