@iblai/iblai-api 4.265.1-core → 4.265.2-core

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.
Files changed (77) hide show
  1. package/dist/index.cjs.js +2168 -258
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +2165 -259
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +2168 -258
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +26 -1
  8. package/dist/types/models/Activity.d.ts +83 -0
  9. package/dist/types/models/ActivityTypeEnum.d.ts +18 -0
  10. package/dist/types/models/Deal.d.ts +83 -0
  11. package/dist/types/models/DealLostRequest.d.ts +10 -0
  12. package/dist/types/models/DealMoveStageRequest.d.ts +10 -0
  13. package/dist/types/models/DealStatusEnum.d.ts +10 -0
  14. package/dist/types/models/DealWonRequest.d.ts +6 -0
  15. package/dist/types/models/LeadSource.d.ts +30 -0
  16. package/dist/types/models/NotificationTemplateDetail.d.ts +24 -2
  17. package/dist/types/models/NotificationTemplateList.d.ts +5 -2
  18. package/dist/types/models/Organization.d.ts +1 -1
  19. package/dist/types/models/PaginatedActivityList.d.ts +7 -0
  20. package/dist/types/models/PaginatedDealList.d.ts +7 -0
  21. package/dist/types/models/PaginatedLeadSourceList.d.ts +7 -0
  22. package/dist/types/models/PaginatedPipelineList.d.ts +7 -0
  23. package/dist/types/models/PaginatedPipelineStageList.d.ts +7 -0
  24. package/dist/types/models/PatchedActivity.d.ts +83 -0
  25. package/dist/types/models/PatchedDeal.d.ts +83 -0
  26. package/dist/types/models/PatchedLeadSource.d.ts +30 -0
  27. package/dist/types/models/PatchedNotificationTemplateDetail.d.ts +24 -2
  28. package/dist/types/models/PatchedOrganization.d.ts +1 -1
  29. package/dist/types/models/PatchedPipeline.d.ts +34 -0
  30. package/dist/types/models/PatchedPipelineStage.d.ts +40 -0
  31. package/dist/types/models/Pipeline.d.ts +34 -0
  32. package/dist/types/models/PipelineStage.d.ts +40 -0
  33. package/dist/types/models/RecipientsRecipientModeEnum.d.ts +14 -0
  34. package/dist/types/models/{TypeD36Enum.d.ts → Type4b7Enum.d.ts} +7 -1
  35. package/dist/types/services/ActivitiesService.d.ts +126 -0
  36. package/dist/types/services/CrmService.d.ts +553 -1
  37. package/dist/types/services/DealsService.d.ts +160 -0
  38. package/dist/types/services/LeadSourcesService.d.ts +95 -0
  39. package/dist/types/services/PersonsService.d.ts +1 -1
  40. package/dist/types/services/PipelinesService.d.ts +183 -0
  41. package/package.json +1 -1
  42. package/sdk_schema.yml +4093 -141
  43. package/src/core/OpenAPI.ts +1 -1
  44. package/src/index.ts +26 -1
  45. package/src/models/Activity.ts +88 -0
  46. package/src/models/ActivityTypeEnum.ts +22 -0
  47. package/src/models/Deal.ts +88 -0
  48. package/src/models/DealLostRequest.ts +15 -0
  49. package/src/models/DealMoveStageRequest.ts +15 -0
  50. package/src/models/DealStatusEnum.ts +14 -0
  51. package/src/models/DealWonRequest.ts +11 -0
  52. package/src/models/LeadSource.ts +35 -0
  53. package/src/models/NotificationTemplateDetail.ts +24 -2
  54. package/src/models/NotificationTemplateList.ts +5 -2
  55. package/src/models/Organization.ts +1 -1
  56. package/src/models/PaginatedActivityList.ts +12 -0
  57. package/src/models/PaginatedDealList.ts +12 -0
  58. package/src/models/PaginatedLeadSourceList.ts +12 -0
  59. package/src/models/PaginatedPipelineList.ts +12 -0
  60. package/src/models/PaginatedPipelineStageList.ts +12 -0
  61. package/src/models/PatchedActivity.ts +88 -0
  62. package/src/models/PatchedDeal.ts +88 -0
  63. package/src/models/PatchedLeadSource.ts +35 -0
  64. package/src/models/PatchedNotificationTemplateDetail.ts +24 -2
  65. package/src/models/PatchedOrganization.ts +1 -1
  66. package/src/models/PatchedPipeline.ts +39 -0
  67. package/src/models/PatchedPipelineStage.ts +45 -0
  68. package/src/models/Pipeline.ts +39 -0
  69. package/src/models/PipelineStage.ts +45 -0
  70. package/src/models/RecipientsRecipientModeEnum.ts +18 -0
  71. package/src/models/{TypeD36Enum.ts → Type4b7Enum.ts} +7 -1
  72. package/src/services/ActivitiesService.ts +255 -0
  73. package/src/services/CrmService.ts +1161 -1
  74. package/src/services/DealsService.ts +337 -0
  75. package/src/services/LeadSourcesService.ts +198 -0
  76. package/src/services/PersonsService.ts +1 -1
  77. package/src/services/PipelinesService.ts +406 -0
@@ -0,0 +1,83 @@
1
+ import type { ActivityTypeEnum } from './ActivityTypeEnum';
2
+ export type PatchedActivity = {
3
+ /**
4
+ * Server-assigned id.
5
+ */
6
+ readonly id?: number;
7
+ /**
8
+ * Platform this Activity belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
9
+ */
10
+ readonly platform?: number;
11
+ /**
12
+ * Short summary (e.g. 'Discovery call', 'Stage changed').
13
+ */
14
+ title?: string;
15
+ /**
16
+ * Interaction kind. One of `call`, `meeting`, `email`, `note`, `task`, `lunch`, `deadline`.
17
+ *
18
+ * * `call` - Call
19
+ * * `meeting` - Meeting
20
+ * * `email` - Email
21
+ * * `note` - Note
22
+ * * `task` - Task
23
+ * * `lunch` - Lunch
24
+ * * `deadline` - Deadline
25
+ */
26
+ type?: ActivityTypeEnum;
27
+ /**
28
+ * Meeting location / call dial-in / venue.
29
+ */
30
+ location?: string;
31
+ /**
32
+ * Free-text notes.
33
+ */
34
+ comment?: string;
35
+ /**
36
+ * Scheduled start. Leave null for instant log entries.
37
+ */
38
+ schedule_from?: string | null;
39
+ /**
40
+ * Scheduled end.
41
+ */
42
+ schedule_to?: string | null;
43
+ /**
44
+ * Mark the Activity complete. Use `POST /activities/{id}/done/` to flip this and automatically stamp `done_at`.
45
+ */
46
+ is_done?: boolean;
47
+ /**
48
+ * Read-only. Set automatically the first time `is_done` flips True.
49
+ */
50
+ readonly done_at?: string | null;
51
+ /**
52
+ * Id of the Deal this Activity is logged against. Either `deal` or `person` is required.
53
+ */
54
+ deal?: number | null;
55
+ /**
56
+ * UUID of the Person this Activity is logged against. Either `deal` or `person` is required.
57
+ */
58
+ person?: string | null;
59
+ /**
60
+ * Id of the user who scheduled / logged this Activity. Defaults to the calling user on create.
61
+ */
62
+ owner?: number | null;
63
+ /**
64
+ * When to remind the owner.
65
+ */
66
+ reminder_at?: string | null;
67
+ /**
68
+ * Marks that a reminder has been sent for this Activity; prevents the same reminder from firing twice.
69
+ */
70
+ readonly reminder_sent?: boolean;
71
+ /**
72
+ * Free-form JSON for Platform-defined attributes.
73
+ */
74
+ metadata?: any;
75
+ /**
76
+ * Creation timestamp.
77
+ */
78
+ readonly created_at?: string;
79
+ /**
80
+ * Last-modified timestamp.
81
+ */
82
+ readonly updated_at?: string;
83
+ };
@@ -0,0 +1,83 @@
1
+ import type { DealStatusEnum } from './DealStatusEnum';
2
+ export type PatchedDeal = {
3
+ /**
4
+ * Server-assigned id.
5
+ */
6
+ readonly id?: number;
7
+ /**
8
+ * Platform this Deal belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
9
+ */
10
+ readonly platform?: number;
11
+ /**
12
+ * Short display name (e.g. 'Acme renewal — 2026').
13
+ */
14
+ title?: string;
15
+ /**
16
+ * Free-text notes about scope, requirements, etc.
17
+ */
18
+ description?: string;
19
+ /**
20
+ * Estimated deal value in `currency`.
21
+ */
22
+ lead_value?: string;
23
+ /**
24
+ * ISO 4217 currency code.
25
+ */
26
+ currency?: string;
27
+ /**
28
+ * Read-only. Set by the move-stage/won/lost actions and derived from the destination stage's `is_won`/`is_lost`. Direct writes are rejected with `400`; use `POST /deals/{id}/move-stage/` (or `won/` / `lost/`).
29
+ *
30
+ * * `open` - Open
31
+ * * `won` - Won
32
+ * * `lost` - Lost
33
+ */
34
+ readonly status?: DealStatusEnum;
35
+ /**
36
+ * Set on a `lost` transition (e.g. 'Chose competitor').
37
+ */
38
+ lost_reason?: string;
39
+ /**
40
+ * Forecasted close date — used by revenue projections.
41
+ */
42
+ expected_close_date?: string | null;
43
+ /**
44
+ * Read-only. Set automatically when the Deal enters a won/lost stage and cleared when it re-opens.
45
+ */
46
+ readonly closed_at?: string | null;
47
+ /**
48
+ * UUID of the primary contact for this Deal. The person must belong to your Platform.
49
+ */
50
+ person?: string;
51
+ /**
52
+ * UUID of an organization the Deal is with. Optional; must belong to your Platform.
53
+ */
54
+ organization?: string | null;
55
+ /**
56
+ * Pipeline this Deal flows through. Must belong to your Platform.
57
+ */
58
+ pipeline?: number;
59
+ /**
60
+ * Current PipelineStage. On create, must belong to `pipeline`. Use `POST /deals/{id}/move-stage/` to change after creation.
61
+ */
62
+ stage?: number;
63
+ /**
64
+ * Where the Deal originated. Optional; must belong to your Platform.
65
+ */
66
+ source?: number | null;
67
+ /**
68
+ * Id of the platform user responsible for this Deal (sales rep). Defaults to the calling user on create.
69
+ */
70
+ owner?: number | null;
71
+ /**
72
+ * Free-form JSON for Platform-defined attributes.
73
+ */
74
+ metadata?: any;
75
+ /**
76
+ * Creation timestamp.
77
+ */
78
+ readonly created_at?: string;
79
+ /**
80
+ * Last-modified timestamp.
81
+ */
82
+ readonly updated_at?: string;
83
+ };
@@ -0,0 +1,30 @@
1
+ export type PatchedLeadSource = {
2
+ /**
3
+ * Server-assigned id. Stable across renames.
4
+ */
5
+ readonly id?: number;
6
+ /**
7
+ * Platform the LeadSource belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
8
+ */
9
+ readonly platform?: number;
10
+ /**
11
+ * Display name shown to sales reps when categorizing a Deal.
12
+ */
13
+ name?: string;
14
+ /**
15
+ * Stable slug used in API payloads and reports. Unique per Platform; lowercase letters, digits, and hyphens.
16
+ */
17
+ code?: string;
18
+ /**
19
+ * Free-form JSON for Platform-defined attributes.
20
+ */
21
+ metadata?: any;
22
+ /**
23
+ * Creation timestamp.
24
+ */
25
+ readonly created_at?: string;
26
+ /**
27
+ * Last-modified timestamp.
28
+ */
29
+ readonly updated_at?: string;
30
+ };
@@ -5,8 +5,9 @@ import type { HumanSupportRecipientModeEnum } from './HumanSupportRecipientModeE
5
5
  import type { NullEnum } from './NullEnum';
6
6
  import type { PeriodicFrequencyEnum } from './PeriodicFrequencyEnum';
7
7
  import type { PeriodicLearnerScopeEnum } from './PeriodicLearnerScopeEnum';
8
+ import type { RecipientsRecipientModeEnum } from './RecipientsRecipientModeEnum';
8
9
  import type { Spa } from './Spa';
9
- import type { TypeD36Enum } from './TypeD36Enum';
10
+ import type { Type4b7Enum } from './Type4b7Enum';
10
11
  /**
11
12
  * Serializer for detailed template view and editing
12
13
  */
@@ -27,6 +28,9 @@ export type PatchedNotificationTemplateDetail = {
27
28
  * * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
28
29
  * * `COURSE_SCHEDULE_CHANGE` - Course Schedule Change
29
30
  * * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
31
+ * * `CRM_DEAL_STAGE_CHANGED` - Crm Deal Stage Changed
32
+ * * `CRM_PERSON_CREATED` - Crm Person Created
33
+ * * `CRM_PERSON_LINKED_TO_USER` - Crm Person Linked To User
30
34
  * * `CUSTOM_NOTIFICATION` - Custom Notification
31
35
  * * `DEFAULT_TEMPLATE` - Default Template
32
36
  * * `HUMAN_SUPPORT_NOTIFICATION` - Human Support Notification
@@ -51,7 +55,7 @@ export type PatchedNotificationTemplateDetail = {
51
55
  * * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
52
56
  * * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
53
57
  */
54
- readonly type?: (TypeD36Enum | NullEnum) | null;
58
+ readonly type?: (Type4b7Enum | NullEnum) | null;
55
59
  /**
56
60
  * Template display name
57
61
  */
@@ -203,6 +207,24 @@ export type PatchedNotificationTemplateDetail = {
203
207
  * Custom targets: user: {type, id}; user_group: {type, id}; rbac_policy: {type, policy_name}
204
208
  */
205
209
  human_support_custom_recipients?: Array<Record<string, any>>;
210
+ /**
211
+ * Recipients config (recipient mode + optional custom targets) for notification types that opt into the generic recipients model (e.g. CRM_*). Null for types that do not.
212
+ */
213
+ readonly recipients_config?: string;
214
+ /**
215
+ * Who receives this notification: 'platform_admins_only', 'object_owner_only' (falls back to admins), 'object_owner_only_strict' (no fallback), 'platform_admins_and_object_owner' (default), or 'custom'.
216
+ *
217
+ * * `platform_admins_only` - platform_admins_only
218
+ * * `object_owner_only` - object_owner_only
219
+ * * `object_owner_only_strict` - object_owner_only_strict
220
+ * * `platform_admins_and_object_owner` - platform_admins_and_object_owner
221
+ * * `custom` - custom
222
+ */
223
+ recipients_recipient_mode?: RecipientsRecipientModeEnum;
224
+ /**
225
+ * Custom recipient targets (used when recipient_mode='custom'): user: {type, id}; user_group: {type, id}; rbac_policy: {type, policy_name}.
226
+ */
227
+ recipients_custom_recipients?: Array<Record<string, any>>;
206
228
  /**
207
229
  * New content notification config (ACTIVITY_NEW_CONTENT only)
208
230
  */
@@ -16,7 +16,7 @@ export type PatchedOrganization = {
16
16
  */
17
17
  address?: any;
18
18
  /**
19
- * platform `core.User` id of the internal owner / account manager. Optional.
19
+ * Id of the Platform user who owns / manages this Organization. Must be an active member of your Platform.
20
20
  */
21
21
  owner?: number | null;
22
22
  /**
@@ -0,0 +1,34 @@
1
+ import type { PipelineStage } from './PipelineStage';
2
+ export type PatchedPipeline = {
3
+ /**
4
+ * Server-assigned id.
5
+ */
6
+ readonly id?: number;
7
+ /**
8
+ * Platform this Pipeline belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
9
+ */
10
+ readonly platform?: number;
11
+ /**
12
+ * Display name (e.g. 'B2B Sales', 'Renewals').
13
+ */
14
+ name?: string;
15
+ /**
16
+ * Stable slug used in API payloads. Unique per Platform; lowercase letters, digits, and hyphens.
17
+ */
18
+ code?: string;
19
+ /**
20
+ * Mark this as the default Pipeline new Deals land in when none is specified. At most one default per Platform — promoting a new default requires un-flagging the old one in the same call set.
21
+ */
22
+ is_default?: boolean;
23
+ /**
24
+ * Days a Deal can sit in a stage before it's surfaced as stale.
25
+ */
26
+ rotten_days?: number;
27
+ readonly stages?: Array<PipelineStage>;
28
+ /**
29
+ * Free-form JSON for Platform-defined attributes.
30
+ */
31
+ metadata?: any;
32
+ readonly created_at?: string;
33
+ readonly updated_at?: string;
34
+ };
@@ -0,0 +1,40 @@
1
+ export type PatchedPipelineStage = {
2
+ /**
3
+ * Server-assigned id.
4
+ */
5
+ readonly id?: number;
6
+ /**
7
+ * Pipeline this stage belongs to. Set automatically from the URL path; you cannot move a stage between Pipelines.
8
+ */
9
+ readonly pipeline?: number;
10
+ /**
11
+ * Stable identifier referenced by `Deal.stage` payloads. Unique within the Pipeline.
12
+ */
13
+ code?: string;
14
+ /**
15
+ * Display name shown on Kanban boards.
16
+ */
17
+ name?: string;
18
+ /**
19
+ * Win likelihood at this stage (0–100). Used for revenue forecasting.
20
+ */
21
+ probability?: number;
22
+ /**
23
+ * Left-to-right position on the Kanban board.
24
+ */
25
+ sort_order?: number;
26
+ /**
27
+ * Closed-won terminal stage. Moving a Deal here sets `Deal.status='won'`.
28
+ */
29
+ is_won?: boolean;
30
+ /**
31
+ * Closed-lost terminal stage. Moving a Deal here sets `Deal.status='lost'`.
32
+ */
33
+ is_lost?: boolean;
34
+ /**
35
+ * Free-form JSON for Platform-defined attributes.
36
+ */
37
+ metadata?: any;
38
+ readonly created_at?: string;
39
+ readonly updated_at?: string;
40
+ };
@@ -0,0 +1,34 @@
1
+ import type { PipelineStage } from './PipelineStage';
2
+ export type Pipeline = {
3
+ /**
4
+ * Server-assigned id.
5
+ */
6
+ readonly id: number;
7
+ /**
8
+ * Platform this Pipeline belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
9
+ */
10
+ readonly platform: number;
11
+ /**
12
+ * Display name (e.g. 'B2B Sales', 'Renewals').
13
+ */
14
+ name: string;
15
+ /**
16
+ * Stable slug used in API payloads. Unique per Platform; lowercase letters, digits, and hyphens.
17
+ */
18
+ code: string;
19
+ /**
20
+ * Mark this as the default Pipeline new Deals land in when none is specified. At most one default per Platform — promoting a new default requires un-flagging the old one in the same call set.
21
+ */
22
+ is_default?: boolean;
23
+ /**
24
+ * Days a Deal can sit in a stage before it's surfaced as stale.
25
+ */
26
+ rotten_days?: number;
27
+ readonly stages: Array<PipelineStage>;
28
+ /**
29
+ * Free-form JSON for Platform-defined attributes.
30
+ */
31
+ metadata?: any;
32
+ readonly created_at: string;
33
+ readonly updated_at: string;
34
+ };
@@ -0,0 +1,40 @@
1
+ export type PipelineStage = {
2
+ /**
3
+ * Server-assigned id.
4
+ */
5
+ readonly id: number;
6
+ /**
7
+ * Pipeline this stage belongs to. Set automatically from the URL path; you cannot move a stage between Pipelines.
8
+ */
9
+ readonly pipeline: number;
10
+ /**
11
+ * Stable identifier referenced by `Deal.stage` payloads. Unique within the Pipeline.
12
+ */
13
+ code: string;
14
+ /**
15
+ * Display name shown on Kanban boards.
16
+ */
17
+ name: string;
18
+ /**
19
+ * Win likelihood at this stage (0–100). Used for revenue forecasting.
20
+ */
21
+ probability?: number;
22
+ /**
23
+ * Left-to-right position on the Kanban board.
24
+ */
25
+ sort_order?: number;
26
+ /**
27
+ * Closed-won terminal stage. Moving a Deal here sets `Deal.status='won'`.
28
+ */
29
+ is_won?: boolean;
30
+ /**
31
+ * Closed-lost terminal stage. Moving a Deal here sets `Deal.status='lost'`.
32
+ */
33
+ is_lost?: boolean;
34
+ /**
35
+ * Free-form JSON for Platform-defined attributes.
36
+ */
37
+ metadata?: any;
38
+ readonly created_at: string;
39
+ readonly updated_at: string;
40
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * * `platform_admins_only` - platform_admins_only
3
+ * * `object_owner_only` - object_owner_only
4
+ * * `object_owner_only_strict` - object_owner_only_strict
5
+ * * `platform_admins_and_object_owner` - platform_admins_and_object_owner
6
+ * * `custom` - custom
7
+ */
8
+ export declare enum RecipientsRecipientModeEnum {
9
+ PLATFORM_ADMINS_ONLY = "platform_admins_only",
10
+ OBJECT_OWNER_ONLY = "object_owner_only",
11
+ OBJECT_OWNER_ONLY_STRICT = "object_owner_only_strict",
12
+ PLATFORM_ADMINS_AND_OBJECT_OWNER = "platform_admins_and_object_owner",
13
+ CUSTOM = "custom"
14
+ }
@@ -8,6 +8,9 @@
8
8
  * * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
9
9
  * * `COURSE_SCHEDULE_CHANGE` - Course Schedule Change
10
10
  * * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
11
+ * * `CRM_DEAL_STAGE_CHANGED` - Crm Deal Stage Changed
12
+ * * `CRM_PERSON_CREATED` - Crm Person Created
13
+ * * `CRM_PERSON_LINKED_TO_USER` - Crm Person Linked To User
11
14
  * * `CUSTOM_NOTIFICATION` - Custom Notification
12
15
  * * `DEFAULT_TEMPLATE` - Default Template
13
16
  * * `HUMAN_SUPPORT_NOTIFICATION` - Human Support Notification
@@ -32,7 +35,7 @@
32
35
  * * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
33
36
  * * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
34
37
  */
35
- export declare enum TypeD36Enum {
38
+ export declare enum Type4b7Enum {
36
39
  ACTIVITY_COURSE_MILESTONE = "ACTIVITY_COURSE_MILESTONE",
37
40
  ACTIVITY_NEW_CONTENT = "ACTIVITY_NEW_CONTENT",
38
41
  ADMIN_NOTIF_COURSE_ENROLLMENT = "ADMIN_NOTIF_COURSE_ENROLLMENT",
@@ -42,6 +45,9 @@ export declare enum TypeD36Enum {
42
45
  COURSE_LICENSE_GROUP_ASSIGNMENT = "COURSE_LICENSE_GROUP_ASSIGNMENT",
43
46
  COURSE_SCHEDULE_CHANGE = "COURSE_SCHEDULE_CHANGE",
44
47
  COURSES_PROGRESS_SUMMARY = "COURSES_PROGRESS_SUMMARY",
48
+ CRM_DEAL_STAGE_CHANGED = "CRM_DEAL_STAGE_CHANGED",
49
+ CRM_PERSON_CREATED = "CRM_PERSON_CREATED",
50
+ CRM_PERSON_LINKED_TO_USER = "CRM_PERSON_LINKED_TO_USER",
45
51
  CUSTOM_NOTIFICATION = "CUSTOM_NOTIFICATION",
46
52
  DEFAULT_TEMPLATE = "DEFAULT_TEMPLATE",
47
53
  HUMAN_SUPPORT_NOTIFICATION = "HUMAN_SUPPORT_NOTIFICATION",
@@ -0,0 +1,126 @@
1
+ import type { Activity } from '../models/Activity';
2
+ import type { PaginatedActivityList } from '../models/PaginatedActivityList';
3
+ import type { PatchedActivity } from '../models/PatchedActivity';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ export declare class ActivitiesService {
6
+ /**
7
+ * List activities
8
+ * Returns a paginated list of Activities in your Platform. Supports filtering by `type`, `is_done`, `owner`, `deal`, `person`, schedule-from ranges, and `metadata__has_key`.
9
+ *
10
+ * **Required permission:** `Ibl.CRM/Activities/list`.
11
+ * @returns PaginatedActivityList
12
+ * @throws ApiError
13
+ */
14
+ static activitiesList({ deal, isDone, metadataHasKey, owner, page, pageSize, person, scheduleFromGte, scheduleFromLte, type, }: {
15
+ deal?: number;
16
+ isDone?: boolean;
17
+ metadataHasKey?: string;
18
+ owner?: number;
19
+ /**
20
+ * A page number within the paginated result set.
21
+ */
22
+ page?: number;
23
+ /**
24
+ * Number of results to return per page.
25
+ */
26
+ pageSize?: number;
27
+ person?: string;
28
+ scheduleFromGte?: string;
29
+ scheduleFromLte?: string;
30
+ /**
31
+ * Interaction kind.
32
+ *
33
+ * * `call` - Call
34
+ * * `meeting` - Meeting
35
+ * * `email` - Email
36
+ * * `note` - Note
37
+ * * `task` - Task
38
+ * * `lunch` - Lunch
39
+ * * `deadline` - Deadline
40
+ */
41
+ type?: 'call' | 'deadline' | 'email' | 'lunch' | 'meeting' | 'note' | 'task';
42
+ }): CancelablePromise<PaginatedActivityList>;
43
+ /**
44
+ * Create an activity
45
+ * Creates an Activity. Either `deal` or `person` must be supplied; both must belong to your Platform.
46
+ *
47
+ * **Required permission:** `Ibl.CRM/Activities/write`.
48
+ * @returns Activity
49
+ * @throws ApiError
50
+ */
51
+ static activitiesCreate({ requestBody, }: {
52
+ requestBody: Activity;
53
+ }): CancelablePromise<Activity>;
54
+ /**
55
+ * Retrieve an activity
56
+ * Returns a single Activity by id.
57
+ *
58
+ * **Required permission:** `Ibl.CRM/Activities/read`.
59
+ * @returns Activity
60
+ * @throws ApiError
61
+ */
62
+ static activitiesRetrieve({ id, }: {
63
+ /**
64
+ * A unique integer value identifying this activity.
65
+ */
66
+ id: number;
67
+ }): CancelablePromise<Activity>;
68
+ /**
69
+ * Replace an activity
70
+ * Replaces all editable fields on the Activity.
71
+ *
72
+ * **Required permission:** `Ibl.CRM/Activities/write`.
73
+ * @returns Activity
74
+ * @throws ApiError
75
+ */
76
+ static activitiesUpdate({ id, requestBody, }: {
77
+ /**
78
+ * A unique integer value identifying this activity.
79
+ */
80
+ id: number;
81
+ requestBody: Activity;
82
+ }): CancelablePromise<Activity>;
83
+ /**
84
+ * Update an activity
85
+ * Updates only the supplied fields on the Activity.
86
+ *
87
+ * **Required permission:** `Ibl.CRM/Activities/write`.
88
+ * @returns Activity
89
+ * @throws ApiError
90
+ */
91
+ static activitiesPartialUpdate({ id, requestBody, }: {
92
+ /**
93
+ * A unique integer value identifying this activity.
94
+ */
95
+ id: number;
96
+ requestBody?: PatchedActivity;
97
+ }): CancelablePromise<Activity>;
98
+ /**
99
+ * Delete an activity
100
+ * Deletes the Activity.
101
+ *
102
+ * **Required permission:** `Ibl.CRM/Activities/delete`.
103
+ * @returns void
104
+ * @throws ApiError
105
+ */
106
+ static activitiesDestroy({ id, }: {
107
+ /**
108
+ * A unique integer value identifying this activity.
109
+ */
110
+ id: number;
111
+ }): CancelablePromise<void>;
112
+ /**
113
+ * Mark an activity as done
114
+ * Flips `is_done=True` and stamps `done_at` if it isn't already set. Idempotent — calling on an already-done Activity preserves the original `done_at`.
115
+ *
116
+ * **Required permission:** `Ibl.CRM/Activities/write`.
117
+ * @returns Activity
118
+ * @throws ApiError
119
+ */
120
+ static activitiesDoneCreate({ id, }: {
121
+ /**
122
+ * A unique integer value identifying this activity.
123
+ */
124
+ id: number;
125
+ }): CancelablePromise<Activity>;
126
+ }