@outseta/react 0.4.30 → 0.4.31

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.js CHANGED
@@ -3710,6 +3710,11 @@ var DealWebhookEntityOwnerOAuthIntegrationStatus = {
3710
3710
  None: 0,
3711
3711
  Gmail: 1
3712
3712
  };
3713
+ var TaskWebhookEventDataStatus = {
3714
+ Pending: 1,
3715
+ InProgress: 2,
3716
+ Done: 3
3717
+ };
3713
3718
  var PlanWebhookEntityAccountRegistrationMode = {
3714
3719
  Individual: 1,
3715
3720
  Team: 2
@@ -3810,6 +3815,7 @@ export {
3810
3815
  SupportEmbed,
3811
3816
  TagColor,
3812
3817
  TaskStatus,
3818
+ TaskWebhookEventDataStatus,
3813
3819
  TeamRole,
3814
3820
  UpgradeCta,
3815
3821
  accountAddAccount,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outseta/react",
3
- "version": "0.4.30",
3
+ "version": "0.4.31",
4
4
  "description": "React hooks and components for the Outseta API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,7 +18,7 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@outseta/api-client": "0.3.36"
21
+ "@outseta/api-client": "0.3.37"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^18.0.0 || ^19.0.0"
@@ -8758,6 +8758,66 @@ export type DealDeletedWebhookPayload = DealWebhookEntity;
8758
8758
 
8759
8759
  export type DealDueDateWebhookPayload = DealWebhookEntity;
8760
8760
 
8761
+ /**
8762
+ * `1` - Pending, `2` - InProgress, `3` - Done
8763
+ */
8764
+ export type TaskWebhookEventDataStatus = typeof TaskWebhookEventDataStatus[keyof typeof TaskWebhookEventDataStatus];
8765
+
8766
+
8767
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
8768
+ export const TaskWebhookEventDataStatus = {
8769
+ Pending: 1,
8770
+ InProgress: 2,
8771
+ Done: 3,
8772
+ } as const;
8773
+
8774
+ export interface TaskWebhookEventData {
8775
+ /**
8776
+ * @maxLength 10
8777
+ * @nullable
8778
+ */
8779
+ Uid?: string | null;
8780
+ /** @nullable */
8781
+ _objectType?: string | null;
8782
+ /** @minLength 1 */
8783
+ Created: string;
8784
+ /** @minLength 1 */
8785
+ Updated: string;
8786
+ /**
8787
+ * @maxLength 250
8788
+ * @nullable
8789
+ */
8790
+ Title?: string | null;
8791
+ /** @nullable */
8792
+ DueDate?: string | null;
8793
+ /**
8794
+ * @maxLength 5000
8795
+ * @nullable
8796
+ */
8797
+ Notes?: string | null;
8798
+ /** `1` - Pending, `2` - InProgress, `3` - Done */
8799
+ Status?: TaskWebhookEventDataStatus;
8800
+ CreatedDateTime?: string;
8801
+ /** @nullable */
8802
+ CompletedDateTime?: string | null;
8803
+ }
8804
+
8805
+ export type TaskCreatedWebhookPayloadAllOf = DealWebhookEntity | PersonWebhookEntity | AccountWebhookEntity;
8806
+
8807
+ export type TaskCreatedWebhookPayloadAllOfTwo = {
8808
+ ActivityEventData?: TaskWebhookEventData;
8809
+ };
8810
+
8811
+ export type TaskCreatedWebhookPayload = TaskCreatedWebhookPayloadAllOf & TaskCreatedWebhookPayloadAllOfTwo;
8812
+
8813
+ export type TaskUpdatedWebhookPayloadAllOf = DealWebhookEntity | PersonWebhookEntity | AccountWebhookEntity;
8814
+
8815
+ export type TaskUpdatedWebhookPayloadAllOfTwo = {
8816
+ ActivityEventData?: TaskWebhookEventData;
8817
+ };
8818
+
8819
+ export type TaskUpdatedWebhookPayload = TaskUpdatedWebhookPayloadAllOf & TaskUpdatedWebhookPayloadAllOfTwo;
8820
+
8761
8821
  /**
8762
8822
  * @nullable
8763
8823
  */