@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.
- package/dist/index.cjs.js +2168 -258
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2165 -259
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +2168 -258
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +26 -1
- package/dist/types/models/Activity.d.ts +83 -0
- package/dist/types/models/ActivityTypeEnum.d.ts +18 -0
- package/dist/types/models/Deal.d.ts +83 -0
- package/dist/types/models/DealLostRequest.d.ts +10 -0
- package/dist/types/models/DealMoveStageRequest.d.ts +10 -0
- package/dist/types/models/DealStatusEnum.d.ts +10 -0
- package/dist/types/models/DealWonRequest.d.ts +6 -0
- package/dist/types/models/LeadSource.d.ts +30 -0
- package/dist/types/models/NotificationTemplateDetail.d.ts +24 -2
- package/dist/types/models/NotificationTemplateList.d.ts +5 -2
- package/dist/types/models/Organization.d.ts +1 -1
- package/dist/types/models/PaginatedActivityList.d.ts +7 -0
- package/dist/types/models/PaginatedDealList.d.ts +7 -0
- package/dist/types/models/PaginatedLeadSourceList.d.ts +7 -0
- package/dist/types/models/PaginatedPipelineList.d.ts +7 -0
- package/dist/types/models/PaginatedPipelineStageList.d.ts +7 -0
- package/dist/types/models/PatchedActivity.d.ts +83 -0
- package/dist/types/models/PatchedDeal.d.ts +83 -0
- package/dist/types/models/PatchedLeadSource.d.ts +30 -0
- package/dist/types/models/PatchedNotificationTemplateDetail.d.ts +24 -2
- package/dist/types/models/PatchedOrganization.d.ts +1 -1
- package/dist/types/models/PatchedPipeline.d.ts +34 -0
- package/dist/types/models/PatchedPipelineStage.d.ts +40 -0
- package/dist/types/models/Pipeline.d.ts +34 -0
- package/dist/types/models/PipelineStage.d.ts +40 -0
- package/dist/types/models/RecipientsRecipientModeEnum.d.ts +14 -0
- package/dist/types/models/{TypeD36Enum.d.ts → Type4b7Enum.d.ts} +7 -1
- package/dist/types/services/ActivitiesService.d.ts +126 -0
- package/dist/types/services/CrmService.d.ts +553 -1
- package/dist/types/services/DealsService.d.ts +160 -0
- package/dist/types/services/LeadSourcesService.d.ts +95 -0
- package/dist/types/services/PersonsService.d.ts +1 -1
- package/dist/types/services/PipelinesService.d.ts +183 -0
- package/package.json +1 -1
- package/sdk_schema.yml +4093 -141
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +26 -1
- package/src/models/Activity.ts +88 -0
- package/src/models/ActivityTypeEnum.ts +22 -0
- package/src/models/Deal.ts +88 -0
- package/src/models/DealLostRequest.ts +15 -0
- package/src/models/DealMoveStageRequest.ts +15 -0
- package/src/models/DealStatusEnum.ts +14 -0
- package/src/models/DealWonRequest.ts +11 -0
- package/src/models/LeadSource.ts +35 -0
- package/src/models/NotificationTemplateDetail.ts +24 -2
- package/src/models/NotificationTemplateList.ts +5 -2
- package/src/models/Organization.ts +1 -1
- package/src/models/PaginatedActivityList.ts +12 -0
- package/src/models/PaginatedDealList.ts +12 -0
- package/src/models/PaginatedLeadSourceList.ts +12 -0
- package/src/models/PaginatedPipelineList.ts +12 -0
- package/src/models/PaginatedPipelineStageList.ts +12 -0
- package/src/models/PatchedActivity.ts +88 -0
- package/src/models/PatchedDeal.ts +88 -0
- package/src/models/PatchedLeadSource.ts +35 -0
- package/src/models/PatchedNotificationTemplateDetail.ts +24 -2
- package/src/models/PatchedOrganization.ts +1 -1
- package/src/models/PatchedPipeline.ts +39 -0
- package/src/models/PatchedPipelineStage.ts +45 -0
- package/src/models/Pipeline.ts +39 -0
- package/src/models/PipelineStage.ts +45 -0
- package/src/models/RecipientsRecipientModeEnum.ts +18 -0
- package/src/models/{TypeD36Enum.ts → Type4b7Enum.ts} +7 -1
- package/src/services/ActivitiesService.ts +255 -0
- package/src/services/CrmService.ts +1161 -1
- package/src/services/DealsService.ts +337 -0
- package/src/services/LeadSourcesService.ts +198 -0
- package/src/services/PersonsService.ts +1 -1
- package/src/services/PipelinesService.ts +406 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { ActivityTypeEnum } from './ActivityTypeEnum';
|
|
6
|
+
export type PatchedActivity = {
|
|
7
|
+
/**
|
|
8
|
+
* Server-assigned id.
|
|
9
|
+
*/
|
|
10
|
+
readonly id?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Platform this Activity belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
|
|
13
|
+
*/
|
|
14
|
+
readonly platform?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Short summary (e.g. 'Discovery call', 'Stage changed').
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Interaction kind. One of `call`, `meeting`, `email`, `note`, `task`, `lunch`, `deadline`.
|
|
21
|
+
*
|
|
22
|
+
* * `call` - Call
|
|
23
|
+
* * `meeting` - Meeting
|
|
24
|
+
* * `email` - Email
|
|
25
|
+
* * `note` - Note
|
|
26
|
+
* * `task` - Task
|
|
27
|
+
* * `lunch` - Lunch
|
|
28
|
+
* * `deadline` - Deadline
|
|
29
|
+
*/
|
|
30
|
+
type?: ActivityTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Meeting location / call dial-in / venue.
|
|
33
|
+
*/
|
|
34
|
+
location?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Free-text notes.
|
|
37
|
+
*/
|
|
38
|
+
comment?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Scheduled start. Leave null for instant log entries.
|
|
41
|
+
*/
|
|
42
|
+
schedule_from?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Scheduled end.
|
|
45
|
+
*/
|
|
46
|
+
schedule_to?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Mark the Activity complete. Use `POST /activities/{id}/done/` to flip this and automatically stamp `done_at`.
|
|
49
|
+
*/
|
|
50
|
+
is_done?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Read-only. Set automatically the first time `is_done` flips True.
|
|
53
|
+
*/
|
|
54
|
+
readonly done_at?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Id of the Deal this Activity is logged against. Either `deal` or `person` is required.
|
|
57
|
+
*/
|
|
58
|
+
deal?: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* UUID of the Person this Activity is logged against. Either `deal` or `person` is required.
|
|
61
|
+
*/
|
|
62
|
+
person?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Id of the user who scheduled / logged this Activity. Defaults to the calling user on create.
|
|
65
|
+
*/
|
|
66
|
+
owner?: number | null;
|
|
67
|
+
/**
|
|
68
|
+
* When to remind the owner.
|
|
69
|
+
*/
|
|
70
|
+
reminder_at?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Marks that a reminder has been sent for this Activity; prevents the same reminder from firing twice.
|
|
73
|
+
*/
|
|
74
|
+
readonly reminder_sent?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Free-form JSON for Platform-defined attributes.
|
|
77
|
+
*/
|
|
78
|
+
metadata?: any;
|
|
79
|
+
/**
|
|
80
|
+
* Creation timestamp.
|
|
81
|
+
*/
|
|
82
|
+
readonly created_at?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Last-modified timestamp.
|
|
85
|
+
*/
|
|
86
|
+
readonly updated_at?: string;
|
|
87
|
+
};
|
|
88
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { DealStatusEnum } from './DealStatusEnum';
|
|
6
|
+
export type PatchedDeal = {
|
|
7
|
+
/**
|
|
8
|
+
* Server-assigned id.
|
|
9
|
+
*/
|
|
10
|
+
readonly id?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Platform this Deal belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
|
|
13
|
+
*/
|
|
14
|
+
readonly platform?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Short display name (e.g. 'Acme renewal — 2026').
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Free-text notes about scope, requirements, etc.
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Estimated deal value in `currency`.
|
|
25
|
+
*/
|
|
26
|
+
lead_value?: string;
|
|
27
|
+
/**
|
|
28
|
+
* ISO 4217 currency code.
|
|
29
|
+
*/
|
|
30
|
+
currency?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 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/`).
|
|
33
|
+
*
|
|
34
|
+
* * `open` - Open
|
|
35
|
+
* * `won` - Won
|
|
36
|
+
* * `lost` - Lost
|
|
37
|
+
*/
|
|
38
|
+
readonly status?: DealStatusEnum;
|
|
39
|
+
/**
|
|
40
|
+
* Set on a `lost` transition (e.g. 'Chose competitor').
|
|
41
|
+
*/
|
|
42
|
+
lost_reason?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Forecasted close date — used by revenue projections.
|
|
45
|
+
*/
|
|
46
|
+
expected_close_date?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Read-only. Set automatically when the Deal enters a won/lost stage and cleared when it re-opens.
|
|
49
|
+
*/
|
|
50
|
+
readonly closed_at?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* UUID of the primary contact for this Deal. The person must belong to your Platform.
|
|
53
|
+
*/
|
|
54
|
+
person?: string;
|
|
55
|
+
/**
|
|
56
|
+
* UUID of an organization the Deal is with. Optional; must belong to your Platform.
|
|
57
|
+
*/
|
|
58
|
+
organization?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Pipeline this Deal flows through. Must belong to your Platform.
|
|
61
|
+
*/
|
|
62
|
+
pipeline?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Current PipelineStage. On create, must belong to `pipeline`. Use `POST /deals/{id}/move-stage/` to change after creation.
|
|
65
|
+
*/
|
|
66
|
+
stage?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Where the Deal originated. Optional; must belong to your Platform.
|
|
69
|
+
*/
|
|
70
|
+
source?: number | null;
|
|
71
|
+
/**
|
|
72
|
+
* Id of the platform user responsible for this Deal (sales rep). Defaults to the calling user on create.
|
|
73
|
+
*/
|
|
74
|
+
owner?: number | null;
|
|
75
|
+
/**
|
|
76
|
+
* Free-form JSON for Platform-defined attributes.
|
|
77
|
+
*/
|
|
78
|
+
metadata?: any;
|
|
79
|
+
/**
|
|
80
|
+
* Creation timestamp.
|
|
81
|
+
*/
|
|
82
|
+
readonly created_at?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Last-modified timestamp.
|
|
85
|
+
*/
|
|
86
|
+
readonly updated_at?: string;
|
|
87
|
+
};
|
|
88
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type PatchedLeadSource = {
|
|
6
|
+
/**
|
|
7
|
+
* Server-assigned id. Stable across renames.
|
|
8
|
+
*/
|
|
9
|
+
readonly id?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Platform the LeadSource belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
|
|
12
|
+
*/
|
|
13
|
+
readonly platform?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Display name shown to sales reps when categorizing a Deal.
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Stable slug used in API payloads and reports. Unique per Platform; lowercase letters, digits, and hyphens.
|
|
20
|
+
*/
|
|
21
|
+
code?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Free-form JSON for Platform-defined attributes.
|
|
24
|
+
*/
|
|
25
|
+
metadata?: any;
|
|
26
|
+
/**
|
|
27
|
+
* Creation timestamp.
|
|
28
|
+
*/
|
|
29
|
+
readonly created_at?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last-modified timestamp.
|
|
32
|
+
*/
|
|
33
|
+
readonly updated_at?: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
@@ -9,8 +9,9 @@ import type { HumanSupportRecipientModeEnum } from './HumanSupportRecipientModeE
|
|
|
9
9
|
import type { NullEnum } from './NullEnum';
|
|
10
10
|
import type { PeriodicFrequencyEnum } from './PeriodicFrequencyEnum';
|
|
11
11
|
import type { PeriodicLearnerScopeEnum } from './PeriodicLearnerScopeEnum';
|
|
12
|
+
import type { RecipientsRecipientModeEnum } from './RecipientsRecipientModeEnum';
|
|
12
13
|
import type { Spa } from './Spa';
|
|
13
|
-
import type {
|
|
14
|
+
import type { Type4b7Enum } from './Type4b7Enum';
|
|
14
15
|
/**
|
|
15
16
|
* Serializer for detailed template view and editing
|
|
16
17
|
*/
|
|
@@ -31,6 +32,9 @@ export type PatchedNotificationTemplateDetail = {
|
|
|
31
32
|
* * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
|
|
32
33
|
* * `COURSE_SCHEDULE_CHANGE` - Course Schedule Change
|
|
33
34
|
* * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
|
|
35
|
+
* * `CRM_DEAL_STAGE_CHANGED` - Crm Deal Stage Changed
|
|
36
|
+
* * `CRM_PERSON_CREATED` - Crm Person Created
|
|
37
|
+
* * `CRM_PERSON_LINKED_TO_USER` - Crm Person Linked To User
|
|
34
38
|
* * `CUSTOM_NOTIFICATION` - Custom Notification
|
|
35
39
|
* * `DEFAULT_TEMPLATE` - Default Template
|
|
36
40
|
* * `HUMAN_SUPPORT_NOTIFICATION` - Human Support Notification
|
|
@@ -55,7 +59,7 @@ export type PatchedNotificationTemplateDetail = {
|
|
|
55
59
|
* * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
|
|
56
60
|
* * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
|
|
57
61
|
*/
|
|
58
|
-
readonly type?: (
|
|
62
|
+
readonly type?: (Type4b7Enum | NullEnum) | null;
|
|
59
63
|
/**
|
|
60
64
|
* Template display name
|
|
61
65
|
*/
|
|
@@ -207,6 +211,24 @@ export type PatchedNotificationTemplateDetail = {
|
|
|
207
211
|
* Custom targets: user: {type, id}; user_group: {type, id}; rbac_policy: {type, policy_name}
|
|
208
212
|
*/
|
|
209
213
|
human_support_custom_recipients?: Array<Record<string, any>>;
|
|
214
|
+
/**
|
|
215
|
+
* 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.
|
|
216
|
+
*/
|
|
217
|
+
readonly recipients_config?: string;
|
|
218
|
+
/**
|
|
219
|
+
* 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'.
|
|
220
|
+
*
|
|
221
|
+
* * `platform_admins_only` - platform_admins_only
|
|
222
|
+
* * `object_owner_only` - object_owner_only
|
|
223
|
+
* * `object_owner_only_strict` - object_owner_only_strict
|
|
224
|
+
* * `platform_admins_and_object_owner` - platform_admins_and_object_owner
|
|
225
|
+
* * `custom` - custom
|
|
226
|
+
*/
|
|
227
|
+
recipients_recipient_mode?: RecipientsRecipientModeEnum;
|
|
228
|
+
/**
|
|
229
|
+
* Custom recipient targets (used when recipient_mode='custom'): user: {type, id}; user_group: {type, id}; rbac_policy: {type, policy_name}.
|
|
230
|
+
*/
|
|
231
|
+
recipients_custom_recipients?: Array<Record<string, any>>;
|
|
210
232
|
/**
|
|
211
233
|
* New content notification config (ACTIVITY_NEW_CONTENT only)
|
|
212
234
|
*/
|
|
@@ -20,7 +20,7 @@ export type PatchedOrganization = {
|
|
|
20
20
|
*/
|
|
21
21
|
address?: any;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Id of the Platform user who owns / manages this Organization. Must be an active member of your Platform.
|
|
24
24
|
*/
|
|
25
25
|
owner?: number | null;
|
|
26
26
|
/**
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { PipelineStage } from './PipelineStage';
|
|
6
|
+
export type PatchedPipeline = {
|
|
7
|
+
/**
|
|
8
|
+
* Server-assigned id.
|
|
9
|
+
*/
|
|
10
|
+
readonly id?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Platform this Pipeline belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
|
|
13
|
+
*/
|
|
14
|
+
readonly platform?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Display name (e.g. 'B2B Sales', 'Renewals').
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Stable slug used in API payloads. Unique per Platform; lowercase letters, digits, and hyphens.
|
|
21
|
+
*/
|
|
22
|
+
code?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 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.
|
|
25
|
+
*/
|
|
26
|
+
is_default?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Days a Deal can sit in a stage before it's surfaced as stale.
|
|
29
|
+
*/
|
|
30
|
+
rotten_days?: number;
|
|
31
|
+
readonly stages?: Array<PipelineStage>;
|
|
32
|
+
/**
|
|
33
|
+
* Free-form JSON for Platform-defined attributes.
|
|
34
|
+
*/
|
|
35
|
+
metadata?: any;
|
|
36
|
+
readonly created_at?: string;
|
|
37
|
+
readonly updated_at?: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type PatchedPipelineStage = {
|
|
6
|
+
/**
|
|
7
|
+
* Server-assigned id.
|
|
8
|
+
*/
|
|
9
|
+
readonly id?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Pipeline this stage belongs to. Set automatically from the URL path; you cannot move a stage between Pipelines.
|
|
12
|
+
*/
|
|
13
|
+
readonly pipeline?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Stable identifier referenced by `Deal.stage` payloads. Unique within the Pipeline.
|
|
16
|
+
*/
|
|
17
|
+
code?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Display name shown on Kanban boards.
|
|
20
|
+
*/
|
|
21
|
+
name?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Win likelihood at this stage (0–100). Used for revenue forecasting.
|
|
24
|
+
*/
|
|
25
|
+
probability?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Left-to-right position on the Kanban board.
|
|
28
|
+
*/
|
|
29
|
+
sort_order?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Closed-won terminal stage. Moving a Deal here sets `Deal.status='won'`.
|
|
32
|
+
*/
|
|
33
|
+
is_won?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Closed-lost terminal stage. Moving a Deal here sets `Deal.status='lost'`.
|
|
36
|
+
*/
|
|
37
|
+
is_lost?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Free-form JSON for Platform-defined attributes.
|
|
40
|
+
*/
|
|
41
|
+
metadata?: any;
|
|
42
|
+
readonly created_at?: string;
|
|
43
|
+
readonly updated_at?: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { PipelineStage } from './PipelineStage';
|
|
6
|
+
export type Pipeline = {
|
|
7
|
+
/**
|
|
8
|
+
* Server-assigned id.
|
|
9
|
+
*/
|
|
10
|
+
readonly id: number;
|
|
11
|
+
/**
|
|
12
|
+
* Platform this Pipeline belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
|
|
13
|
+
*/
|
|
14
|
+
readonly platform: number;
|
|
15
|
+
/**
|
|
16
|
+
* Display name (e.g. 'B2B Sales', 'Renewals').
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Stable slug used in API payloads. Unique per Platform; lowercase letters, digits, and hyphens.
|
|
21
|
+
*/
|
|
22
|
+
code: string;
|
|
23
|
+
/**
|
|
24
|
+
* 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.
|
|
25
|
+
*/
|
|
26
|
+
is_default?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Days a Deal can sit in a stage before it's surfaced as stale.
|
|
29
|
+
*/
|
|
30
|
+
rotten_days?: number;
|
|
31
|
+
readonly stages: Array<PipelineStage>;
|
|
32
|
+
/**
|
|
33
|
+
* Free-form JSON for Platform-defined attributes.
|
|
34
|
+
*/
|
|
35
|
+
metadata?: any;
|
|
36
|
+
readonly created_at: string;
|
|
37
|
+
readonly updated_at: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type PipelineStage = {
|
|
6
|
+
/**
|
|
7
|
+
* Server-assigned id.
|
|
8
|
+
*/
|
|
9
|
+
readonly id: number;
|
|
10
|
+
/**
|
|
11
|
+
* Pipeline this stage belongs to. Set automatically from the URL path; you cannot move a stage between Pipelines.
|
|
12
|
+
*/
|
|
13
|
+
readonly pipeline: number;
|
|
14
|
+
/**
|
|
15
|
+
* Stable identifier referenced by `Deal.stage` payloads. Unique within the Pipeline.
|
|
16
|
+
*/
|
|
17
|
+
code: string;
|
|
18
|
+
/**
|
|
19
|
+
* Display name shown on Kanban boards.
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
* Win likelihood at this stage (0–100). Used for revenue forecasting.
|
|
24
|
+
*/
|
|
25
|
+
probability?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Left-to-right position on the Kanban board.
|
|
28
|
+
*/
|
|
29
|
+
sort_order?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Closed-won terminal stage. Moving a Deal here sets `Deal.status='won'`.
|
|
32
|
+
*/
|
|
33
|
+
is_won?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Closed-lost terminal stage. Moving a Deal here sets `Deal.status='lost'`.
|
|
36
|
+
*/
|
|
37
|
+
is_lost?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Free-form JSON for Platform-defined attributes.
|
|
40
|
+
*/
|
|
41
|
+
metadata?: any;
|
|
42
|
+
readonly created_at: string;
|
|
43
|
+
readonly updated_at: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `platform_admins_only` - platform_admins_only
|
|
7
|
+
* * `object_owner_only` - object_owner_only
|
|
8
|
+
* * `object_owner_only_strict` - object_owner_only_strict
|
|
9
|
+
* * `platform_admins_and_object_owner` - platform_admins_and_object_owner
|
|
10
|
+
* * `custom` - custom
|
|
11
|
+
*/
|
|
12
|
+
export enum RecipientsRecipientModeEnum {
|
|
13
|
+
PLATFORM_ADMINS_ONLY = 'platform_admins_only',
|
|
14
|
+
OBJECT_OWNER_ONLY = 'object_owner_only',
|
|
15
|
+
OBJECT_OWNER_ONLY_STRICT = 'object_owner_only_strict',
|
|
16
|
+
PLATFORM_ADMINS_AND_OBJECT_OWNER = 'platform_admins_and_object_owner',
|
|
17
|
+
CUSTOM = 'custom',
|
|
18
|
+
}
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
* * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
|
|
13
13
|
* * `COURSE_SCHEDULE_CHANGE` - Course Schedule Change
|
|
14
14
|
* * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
|
|
15
|
+
* * `CRM_DEAL_STAGE_CHANGED` - Crm Deal Stage Changed
|
|
16
|
+
* * `CRM_PERSON_CREATED` - Crm Person Created
|
|
17
|
+
* * `CRM_PERSON_LINKED_TO_USER` - Crm Person Linked To User
|
|
15
18
|
* * `CUSTOM_NOTIFICATION` - Custom Notification
|
|
16
19
|
* * `DEFAULT_TEMPLATE` - Default Template
|
|
17
20
|
* * `HUMAN_SUPPORT_NOTIFICATION` - Human Support Notification
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
* * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
|
|
37
40
|
* * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
|
|
38
41
|
*/
|
|
39
|
-
export enum
|
|
42
|
+
export enum Type4b7Enum {
|
|
40
43
|
ACTIVITY_COURSE_MILESTONE = 'ACTIVITY_COURSE_MILESTONE',
|
|
41
44
|
ACTIVITY_NEW_CONTENT = 'ACTIVITY_NEW_CONTENT',
|
|
42
45
|
ADMIN_NOTIF_COURSE_ENROLLMENT = 'ADMIN_NOTIF_COURSE_ENROLLMENT',
|
|
@@ -46,6 +49,9 @@ export enum TypeD36Enum {
|
|
|
46
49
|
COURSE_LICENSE_GROUP_ASSIGNMENT = 'COURSE_LICENSE_GROUP_ASSIGNMENT',
|
|
47
50
|
COURSE_SCHEDULE_CHANGE = 'COURSE_SCHEDULE_CHANGE',
|
|
48
51
|
COURSES_PROGRESS_SUMMARY = 'COURSES_PROGRESS_SUMMARY',
|
|
52
|
+
CRM_DEAL_STAGE_CHANGED = 'CRM_DEAL_STAGE_CHANGED',
|
|
53
|
+
CRM_PERSON_CREATED = 'CRM_PERSON_CREATED',
|
|
54
|
+
CRM_PERSON_LINKED_TO_USER = 'CRM_PERSON_LINKED_TO_USER',
|
|
49
55
|
CUSTOM_NOTIFICATION = 'CUSTOM_NOTIFICATION',
|
|
50
56
|
DEFAULT_TEMPLATE = 'DEFAULT_TEMPLATE',
|
|
51
57
|
HUMAN_SUPPORT_NOTIFICATION = 'HUMAN_SUPPORT_NOTIFICATION',
|