gsintegrations 0.0.484 → 0.0.485

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.
@@ -116,6 +116,7 @@ export declare const ExperienceSchema: z.ZodObject<{
116
116
  eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
117
  terreiroId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
118
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
119
+ editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
119
120
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
120
121
  }, "strip", z.ZodTypeAny, {
121
122
  id: string;
@@ -149,6 +150,7 @@ export declare const ExperienceSchema: z.ZodObject<{
149
150
  shareCount?: number | undefined;
150
151
  viewerHasBookmarked?: boolean | undefined;
151
152
  publishedAt?: string | Date | null | undefined;
153
+ editedAt?: string | Date | null | undefined;
152
154
  }, {
153
155
  id: string;
154
156
  content: string;
@@ -181,6 +183,7 @@ export declare const ExperienceSchema: z.ZodObject<{
181
183
  shareCount?: number | undefined;
182
184
  viewerHasBookmarked?: boolean | undefined;
183
185
  publishedAt?: string | Date | null | undefined;
186
+ editedAt?: string | Date | null | undefined;
184
187
  }>;
185
188
  export type Experience = z.infer<typeof ExperienceSchema>;
186
189
  export declare const QuestionSchema: z.ZodObject<{
@@ -368,6 +371,7 @@ export declare const ExperienceCommentSchema: z.ZodObject<{
368
371
  likeCount: z.ZodOptional<z.ZodNumber>;
369
372
  viewerHasLiked: z.ZodOptional<z.ZodBoolean>;
370
373
  repliesHasMore: z.ZodOptional<z.ZodBoolean>;
374
+ editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
371
375
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
372
376
  }, "strip", z.ZodTypeAny, {
373
377
  id: string;
@@ -383,6 +387,7 @@ export declare const ExperienceCommentSchema: z.ZodObject<{
383
387
  traditionLabel?: string | null | undefined;
384
388
  verified?: boolean | undefined;
385
389
  } | undefined;
390
+ editedAt?: string | Date | null | undefined;
386
391
  parentId?: string | null | undefined;
387
392
  replyToCommentId?: string | null | undefined;
388
393
  replyCount?: number | undefined;
@@ -403,6 +408,7 @@ export declare const ExperienceCommentSchema: z.ZodObject<{
403
408
  traditionLabel?: string | null | undefined;
404
409
  verified?: boolean | undefined;
405
410
  } | undefined;
411
+ editedAt?: string | Date | null | undefined;
406
412
  parentId?: string | null | undefined;
407
413
  replyToCommentId?: string | null | undefined;
408
414
  replyCount?: number | undefined;
@@ -710,6 +716,7 @@ export declare const SocialFeedItemSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
710
716
  eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
711
717
  terreiroId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
718
  publishedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
719
+ editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>>;
713
720
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
714
721
  }, "strip", z.ZodTypeAny, {
715
722
  id: string;
@@ -743,6 +750,7 @@ export declare const SocialFeedItemSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
743
750
  shareCount?: number | undefined;
744
751
  viewerHasBookmarked?: boolean | undefined;
745
752
  publishedAt?: string | Date | null | undefined;
753
+ editedAt?: string | Date | null | undefined;
746
754
  }, {
747
755
  id: string;
748
756
  content: string;
@@ -775,6 +783,7 @@ export declare const SocialFeedItemSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
775
783
  shareCount?: number | undefined;
776
784
  viewerHasBookmarked?: boolean | undefined;
777
785
  publishedAt?: string | Date | null | undefined;
786
+ editedAt?: string | Date | null | undefined;
778
787
  }>;
779
788
  }, "strip", z.ZodTypeAny, {
780
789
  id: string;
@@ -811,6 +820,7 @@ export declare const SocialFeedItemSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
811
820
  shareCount?: number | undefined;
812
821
  viewerHasBookmarked?: boolean | undefined;
813
822
  publishedAt?: string | Date | null | undefined;
823
+ editedAt?: string | Date | null | undefined;
814
824
  };
815
825
  createdAt?: string | Date | undefined;
816
826
  }, {
@@ -848,6 +858,7 @@ export declare const SocialFeedItemSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
848
858
  shareCount?: number | undefined;
849
859
  viewerHasBookmarked?: boolean | undefined;
850
860
  publishedAt?: string | Date | null | undefined;
861
+ editedAt?: string | Date | null | undefined;
851
862
  };
852
863
  createdAt?: string | Date | undefined;
853
864
  }>, z.ZodObject<{
@@ -167,8 +167,7 @@ export declare const FinancialAccountPropsSchema: z.ZodObject<{
167
167
  mode: "view" | "create" | "edit";
168
168
  isCaixinha: boolean;
169
169
  onBack?: (() => void) | undefined;
170
- initialData?: {
171
- isActive: boolean;
170
+ onSave?: ((args_0: {
172
171
  bankName?: string | undefined;
173
172
  bankAccountOptionId?: string | undefined;
174
173
  agency?: string | undefined;
@@ -177,8 +176,10 @@ export declare const FinancialAccountPropsSchema: z.ZodObject<{
177
176
  pixKey?: string | undefined;
178
177
  initialBalance?: string | undefined;
179
178
  currentBalance?: string | undefined;
180
- } | undefined;
181
- onSave?: ((args_0: {
179
+ isActive?: boolean | undefined;
180
+ }) => void) | undefined;
181
+ initialData?: {
182
+ isActive: boolean;
182
183
  bankName?: string | undefined;
183
184
  bankAccountOptionId?: string | undefined;
184
185
  agency?: string | undefined;
@@ -187,8 +188,7 @@ export declare const FinancialAccountPropsSchema: z.ZodObject<{
187
188
  pixKey?: string | undefined;
188
189
  initialBalance?: string | undefined;
189
190
  currentBalance?: string | undefined;
190
- isActive?: boolean | undefined;
191
- }) => void) | undefined;
191
+ } | undefined;
192
192
  bankAccountOptions?: {
193
193
  id: string;
194
194
  name: string;
@@ -196,7 +196,8 @@ export declare const FinancialAccountPropsSchema: z.ZodObject<{
196
196
  }, {
197
197
  mode?: "view" | "create" | "edit" | undefined;
198
198
  onBack?: (() => void) | undefined;
199
- initialData?: {
199
+ onSave?: ((args_0: {
200
+ isActive: boolean;
200
201
  bankName?: string | undefined;
201
202
  bankAccountOptionId?: string | undefined;
202
203
  agency?: string | undefined;
@@ -205,10 +206,8 @@ export declare const FinancialAccountPropsSchema: z.ZodObject<{
205
206
  pixKey?: string | undefined;
206
207
  initialBalance?: string | undefined;
207
208
  currentBalance?: string | undefined;
208
- isActive?: boolean | undefined;
209
- } | undefined;
210
- onSave?: ((args_0: {
211
- isActive: boolean;
209
+ }) => void) | undefined;
210
+ initialData?: {
212
211
  bankName?: string | undefined;
213
212
  bankAccountOptionId?: string | undefined;
214
213
  agency?: string | undefined;
@@ -217,7 +216,8 @@ export declare const FinancialAccountPropsSchema: z.ZodObject<{
217
216
  pixKey?: string | undefined;
218
217
  initialBalance?: string | undefined;
219
218
  currentBalance?: string | undefined;
220
- }) => void) | undefined;
219
+ isActive?: boolean | undefined;
220
+ } | undefined;
221
221
  bankAccountOptions?: {
222
222
  id: string;
223
223
  name: string;
@@ -543,27 +543,6 @@ export declare const FinancialRegisterPagePropsSchema: z.ZodObject<{
543
543
  }[];
544
544
  canShareWithMembers: boolean;
545
545
  onCancel?: (() => void) | undefined;
546
- initialValues?: {
547
- id?: string | undefined;
548
- value?: number | undefined;
549
- description?: string | undefined;
550
- dueDate?: string | undefined;
551
- isRecurring?: boolean | undefined;
552
- paymentMethod?: "dinheiro" | "pix" | "cartao_debito" | "cartao_credito" | "transferencia" | "boleto" | "cheque" | undefined;
553
- settlementStatus?: "PROJECTED" | "CONSOLIDATED" | undefined;
554
- shareReason?: string | null | undefined;
555
- transactionType?: "entrada" | "saida" | undefined;
556
- categoryId?: string | undefined;
557
- subcategoryId?: string | undefined;
558
- hasDueDate?: boolean | undefined;
559
- accountId?: string | undefined;
560
- installments?: number | undefined;
561
- observation?: string | undefined;
562
- correctionReason?: string | null | undefined;
563
- isSharedWithMembers?: boolean | undefined;
564
- inventoryItemId?: string | undefined;
565
- purchasedQuantity?: number | undefined;
566
- } | undefined;
567
546
  onSave?: ((args_0: {
568
547
  value: number;
569
548
  description: string;
@@ -585,13 +564,6 @@ export declare const FinancialRegisterPagePropsSchema: z.ZodObject<{
585
564
  inventoryItemId?: string | undefined;
586
565
  purchasedQuantity?: number | undefined;
587
566
  }) => void) | undefined;
588
- }, {
589
- inventoryItems?: {
590
- id: string;
591
- name: string;
592
- unit?: string | undefined;
593
- }[] | undefined;
594
- onCancel?: (() => void) | undefined;
595
567
  initialValues?: {
596
568
  id?: string | undefined;
597
569
  value?: number | undefined;
@@ -613,6 +585,13 @@ export declare const FinancialRegisterPagePropsSchema: z.ZodObject<{
613
585
  inventoryItemId?: string | undefined;
614
586
  purchasedQuantity?: number | undefined;
615
587
  } | undefined;
588
+ }, {
589
+ inventoryItems?: {
590
+ id: string;
591
+ name: string;
592
+ unit?: string | undefined;
593
+ }[] | undefined;
594
+ onCancel?: (() => void) | undefined;
616
595
  onSave?: ((args_0: {
617
596
  value: number;
618
597
  description: string;
@@ -634,6 +613,27 @@ export declare const FinancialRegisterPagePropsSchema: z.ZodObject<{
634
613
  inventoryItemId?: string | undefined;
635
614
  purchasedQuantity?: number | undefined;
636
615
  }) => void) | undefined;
616
+ initialValues?: {
617
+ id?: string | undefined;
618
+ value?: number | undefined;
619
+ description?: string | undefined;
620
+ dueDate?: string | undefined;
621
+ isRecurring?: boolean | undefined;
622
+ paymentMethod?: "dinheiro" | "pix" | "cartao_debito" | "cartao_credito" | "transferencia" | "boleto" | "cheque" | undefined;
623
+ settlementStatus?: "PROJECTED" | "CONSOLIDATED" | undefined;
624
+ shareReason?: string | null | undefined;
625
+ transactionType?: "entrada" | "saida" | undefined;
626
+ categoryId?: string | undefined;
627
+ subcategoryId?: string | undefined;
628
+ hasDueDate?: boolean | undefined;
629
+ accountId?: string | undefined;
630
+ installments?: number | undefined;
631
+ observation?: string | undefined;
632
+ correctionReason?: string | null | undefined;
633
+ isSharedWithMembers?: boolean | undefined;
634
+ inventoryItemId?: string | undefined;
635
+ purchasedQuantity?: number | undefined;
636
+ } | undefined;
637
637
  categories?: {
638
638
  id: string;
639
639
  name: string;
@@ -28,6 +28,11 @@ export type ExperienceDetailPageProps = {
28
28
  onCopyLink?: () => void;
29
29
  onShareStarted?: (channel: "WHATSAPP" | "LINK") => void;
30
30
  onReport?: () => void;
31
+ onEditExperience?: (value: {
32
+ content: string;
33
+ title?: string | null;
34
+ }) => void | Promise<void>;
35
+ onDeleteExperience?: () => void | Promise<void>;
31
36
  onReportClose?: () => void;
32
37
  onReportSubmit?: (payload: {
33
38
  reason: SocialReportReason;
@@ -42,6 +47,8 @@ export type ExperienceDetailPageProps = {
42
47
  onLoadMoreReplies?: (rootCommentId: string) => void | Promise<void>;
43
48
  onSubmitComment?: (body: string, meta?: ExperienceCommentSubmitMeta) => void | Promise<void>;
44
49
  onToggleCommentLike?: (comment: ExperienceComment) => void;
50
+ onEditComment?: (comment: ExperienceComment, body: string) => void | Promise<void>;
51
+ onDeleteComment?: (comment: ExperienceComment) => void | Promise<void>;
45
52
  onRetryComments?: () => void;
46
53
  onCommentAuthorClick?: (userId: string, username?: string) => void;
47
54
  commentsOpen?: boolean;
@@ -7,6 +7,7 @@ export type JourneyProfilePageProps = {
7
7
  isLoading?: boolean;
8
8
  error?: string;
9
9
  isOwnProfile?: boolean;
10
+ viewerUserId?: string;
10
11
  connectionLoading?: boolean;
11
12
  blockOpen?: boolean;
12
13
  showVerificationBanner?: boolean;
@@ -22,6 +23,11 @@ export type JourneyProfilePageProps = {
22
23
  onDisconnect?: () => void;
23
24
  onMessage?: () => void;
24
25
  onOpenExperience?: (id: string) => void;
26
+ onEditExperience?: (id: string, value: {
27
+ content: string;
28
+ title?: string | null;
29
+ }) => void | Promise<void>;
30
+ onDeleteExperience?: (id: string) => void | Promise<void>;
25
31
  onCreateExperience?: () => void;
26
32
  onBlockOpen?: () => void;
27
33
  onBlockClose?: () => void;
@@ -52,6 +58,8 @@ export type JourneyProfilePageProps = {
52
58
  onLoadMoreReplies?: (rootCommentId: string) => void | Promise<void>;
53
59
  onSubmitComment?: (body: string, meta?: ExperienceCommentSubmitMeta) => void | Promise<void>;
54
60
  onToggleCommentLike?: (comment: ExperienceComment) => void;
61
+ onEditComment?: (comment: ExperienceComment, body: string) => void | Promise<void>;
62
+ onDeleteComment?: (comment: ExperienceComment) => void | Promise<void>;
55
63
  onCloseComments?: () => void;
56
64
  onRetryComments?: () => void;
57
65
  };
@@ -20,7 +20,13 @@ export type SocialDiscoverPageProps = {
20
20
  onSearch?: (value: string) => void;
21
21
  onClearSearch?: () => void;
22
22
  onTabChange?: (tab: SocialDiscoverTab) => void;
23
+ viewerUserId?: string;
23
24
  onOpenExperience?: (id: string) => void;
25
+ onEditExperience?: (id: string, value: {
26
+ content: string;
27
+ title?: string | null;
28
+ }) => void | Promise<void>;
29
+ onDeleteExperience?: (id: string) => void | Promise<void>;
24
30
  onOpenQuestion?: (id: string) => void;
25
31
  /** Experience-comments style: open answers without leaving Explorar. */
26
32
  onOpenQuestionAnswers?: (id: string) => void;
@@ -50,6 +50,11 @@ export type SocialHomePageProps = {
50
50
  onReactionToggle?: (id: string, type: ExperienceReactionType) => void;
51
51
  onShareExperience?: (id: string) => void;
52
52
  onReportExperience?: (id: string) => void;
53
+ onEditExperience?: (id: string, value: {
54
+ content: string;
55
+ title?: string | null;
56
+ }) => void | Promise<void>;
57
+ onDeleteExperience?: (id: string) => void | Promise<void>;
53
58
  onCommentExperience?: (id: string) => void;
54
59
  onBookmarkExperience?: (id: string) => void;
55
60
  onOpenQuestionAnswers?: (id: string) => void;
@@ -70,6 +75,8 @@ export type SocialHomePageProps = {
70
75
  onLoadMoreReplies?: (rootCommentId: string) => void | Promise<void>;
71
76
  onSubmitComment?: (body: string, meta?: ExperienceCommentSubmitMeta) => void | Promise<void>;
72
77
  onToggleCommentLike?: (comment: ExperienceComment) => void;
78
+ onEditComment?: (comment: ExperienceComment, body: string) => void | Promise<void>;
79
+ onDeleteComment?: (comment: ExperienceComment) => void | Promise<void>;
73
80
  onCloseComments?: () => void;
74
81
  onRetryComments?: () => void;
75
82
  answers?: QuestionAnswer[];
@@ -27,6 +27,11 @@ export type SocialSavedPageProps = {
27
27
  onAlsoExperienced?: (id: string) => void;
28
28
  onReactionToggle?: (id: string, type: ExperienceReactionType) => void;
29
29
  onShareExperience?: (id: string) => void;
30
+ onEditExperience?: (id: string, value: {
31
+ content: string;
32
+ title?: string | null;
33
+ }) => void | Promise<void>;
34
+ onDeleteExperience?: (id: string) => void | Promise<void>;
30
35
  onCommentExperience?: (id: string) => void;
31
36
  onBookmarkExperience?: (id: string) => void;
32
37
  onBookmarkQuestion?: (id: string) => void;
@@ -44,6 +49,8 @@ export type SocialSavedPageProps = {
44
49
  onLoadMoreReplies?: (rootCommentId: string) => void | Promise<void>;
45
50
  onSubmitComment?: (body: string, meta?: ExperienceCommentSubmitMeta) => void | Promise<void>;
46
51
  onToggleCommentLike?: (comment: ExperienceComment) => void;
52
+ onEditComment?: (comment: ExperienceComment, body: string) => void | Promise<void>;
53
+ onDeleteComment?: (comment: ExperienceComment) => void | Promise<void>;
47
54
  onCloseComments?: () => void;
48
55
  onRetryComments?: () => void;
49
56
  answers?: QuestionAnswer[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gsintegrations",
3
- "version": "0.0.484",
3
+ "version": "0.0.485",
4
4
  "description": "A React component library template with TypeScript, Storybook, and testing setup",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",