@iblai/iblai-api 4.415.0-core → 4.416.0-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 +648 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +649 -31
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +648 -30
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +27 -1
- package/dist/types/models/Activity.d.ts +6 -2
- package/dist/types/models/Deal.d.ts +14 -2
- package/dist/types/models/DealBoard.d.ts +7 -0
- package/dist/types/models/DealBoardStage.d.ts +19 -0
- package/dist/types/models/DirEnum.d.ts +8 -0
- package/dist/types/models/Favorite.d.ts +28 -0
- package/dist/types/models/HistoryEntry.d.ts +15 -0
- package/dist/types/models/HistoryEntryActionEnum.d.ts +12 -0
- package/dist/types/models/ObjectTypeEnum.d.ts +12 -0
- package/dist/types/models/Overview.d.ts +24 -0
- package/dist/types/models/OverviewActivities.d.ts +5 -0
- package/dist/types/models/OverviewCount.d.ts +3 -0
- package/dist/types/models/OverviewDeals.d.ts +22 -0
- package/dist/types/models/OverviewMonth.d.ts +10 -0
- package/dist/types/models/OverviewStage.d.ts +13 -0
- package/dist/types/models/PaginatedFavoriteList.d.ts +7 -0
- package/dist/types/models/PaginatedSavedViewList.d.ts +7 -0
- package/dist/types/models/PatchedActivity.d.ts +6 -2
- package/dist/types/models/PatchedDeal.d.ts +14 -2
- package/dist/types/models/PatchedPerson.d.ts +4 -0
- package/dist/types/models/PatchedPipeline.d.ts +1 -1
- package/dist/types/models/PatchedSavedView.d.ts +41 -0
- package/dist/types/models/Person.d.ts +4 -0
- package/dist/types/models/Pipeline.d.ts +1 -1
- package/dist/types/models/PipelineStageReorderRequest.d.ts +6 -0
- package/dist/types/models/SavedView.d.ts +41 -0
- package/dist/types/models/SavedViewTypeEnum.d.ts +8 -0
- package/dist/types/models/SearchDeal.d.ts +40 -0
- package/dist/types/models/SearchOrganization.d.ts +10 -0
- package/dist/types/models/SearchPerson.d.ts +33 -0
- package/dist/types/models/SearchResponse.d.ts +12 -0
- package/dist/types/models/{DealStatusEnum.d.ts → Status05cEnum.d.ts} +1 -1
- package/dist/types/models/_Column.d.ts +7 -0
- package/dist/types/models/_Filter.d.ts +8 -0
- package/dist/types/models/_Sort.d.ts +5 -0
- package/dist/types/services/CrmService.d.ts +523 -12
- package/package.json +1 -1
- package/sdk_schema.yml +1905 -27
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +27 -1
- package/src/models/Activity.ts +6 -2
- package/src/models/Deal.ts +14 -2
- package/src/models/DealBoard.ts +12 -0
- package/src/models/DealBoardStage.ts +24 -0
- package/src/models/DirEnum.ts +12 -0
- package/src/models/Favorite.ts +33 -0
- package/src/models/HistoryEntry.ts +20 -0
- package/src/models/HistoryEntryActionEnum.ts +16 -0
- package/src/models/ObjectTypeEnum.ts +16 -0
- package/src/models/Overview.ts +29 -0
- package/src/models/OverviewActivities.ts +10 -0
- package/src/models/OverviewCount.ts +8 -0
- package/src/models/OverviewDeals.ts +27 -0
- package/src/models/OverviewMonth.ts +15 -0
- package/src/models/OverviewStage.ts +18 -0
- package/src/models/PaginatedFavoriteList.ts +12 -0
- package/src/models/PaginatedSavedViewList.ts +12 -0
- package/src/models/PatchedActivity.ts +6 -2
- package/src/models/PatchedDeal.ts +14 -2
- package/src/models/PatchedPerson.ts +4 -0
- package/src/models/PatchedPipeline.ts +1 -1
- package/src/models/PatchedSavedView.ts +46 -0
- package/src/models/Person.ts +4 -0
- package/src/models/Pipeline.ts +1 -1
- package/src/models/PipelineStageReorderRequest.ts +11 -0
- package/src/models/SavedView.ts +46 -0
- package/src/models/SavedViewTypeEnum.ts +12 -0
- package/src/models/SearchDeal.ts +45 -0
- package/src/models/SearchOrganization.ts +15 -0
- package/src/models/SearchPerson.ts +38 -0
- package/src/models/SearchResponse.ts +17 -0
- package/src/models/{DealStatusEnum.ts → Status05cEnum.ts} +1 -1
- package/src/models/_Column.ts +12 -0
- package/src/models/_Filter.ts +13 -0
- package/src/models/_Sort.ts +10 -0
- package/src/services/CrmService.ts +924 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { _Column } from './_Column';
|
|
2
|
+
import type { _Filter } from './_Filter';
|
|
3
|
+
import type { _Sort } from './_Sort';
|
|
4
|
+
import type { ObjectTypeEnum } from './ObjectTypeEnum';
|
|
5
|
+
import type { SavedViewTypeEnum } from './SavedViewTypeEnum';
|
|
6
|
+
export type PatchedSavedView = {
|
|
7
|
+
readonly id?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Tenant this view belongs to.
|
|
10
|
+
*/
|
|
11
|
+
readonly platform?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The list this view belongs to.
|
|
14
|
+
*
|
|
15
|
+
* * `persons` - Persons
|
|
16
|
+
* * `organizations` - Organizations
|
|
17
|
+
* * `deals` - Deals
|
|
18
|
+
* * `activities` - Activities
|
|
19
|
+
*/
|
|
20
|
+
object_type?: ObjectTypeEnum;
|
|
21
|
+
/**
|
|
22
|
+
* Unique per user and list.
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* `kanban` is available for deals only.
|
|
27
|
+
*
|
|
28
|
+
* * `table` - Table
|
|
29
|
+
* * `kanban` - Kanban
|
|
30
|
+
*/
|
|
31
|
+
type?: SavedViewTypeEnum;
|
|
32
|
+
columns?: Array<_Column>;
|
|
33
|
+
filters?: Array<_Filter>;
|
|
34
|
+
sorts?: Array<_Sort>;
|
|
35
|
+
/**
|
|
36
|
+
* Kanban column field (e.g. `stage`).
|
|
37
|
+
*/
|
|
38
|
+
group_by?: string;
|
|
39
|
+
readonly created_at?: string;
|
|
40
|
+
readonly updated_at?: string;
|
|
41
|
+
};
|
|
@@ -39,6 +39,10 @@ export type Person = {
|
|
|
39
39
|
* UUID of an organization in your Platform. References to organizations in other Platforms are rejected.
|
|
40
40
|
*/
|
|
41
41
|
organization?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The organization's name, or null.
|
|
44
|
+
*/
|
|
45
|
+
readonly organization_name: string | null;
|
|
42
46
|
/**
|
|
43
47
|
* Id of the platform user who owns / manages this person (internal account manager). Optional.
|
|
44
48
|
*/
|
|
@@ -21,7 +21,7 @@ export type Pipeline = {
|
|
|
21
21
|
*/
|
|
22
22
|
is_default?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
* Days a
|
|
24
|
+
* Days without a change before an open Deal shows `is_stale`; 0 turns it off.
|
|
25
25
|
*/
|
|
26
26
|
rotten_days?: number;
|
|
27
27
|
readonly stages: Array<PipelineStage>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { _Column } from './_Column';
|
|
2
|
+
import type { _Filter } from './_Filter';
|
|
3
|
+
import type { _Sort } from './_Sort';
|
|
4
|
+
import type { ObjectTypeEnum } from './ObjectTypeEnum';
|
|
5
|
+
import type { SavedViewTypeEnum } from './SavedViewTypeEnum';
|
|
6
|
+
export type SavedView = {
|
|
7
|
+
readonly id: number;
|
|
8
|
+
/**
|
|
9
|
+
* Tenant this view belongs to.
|
|
10
|
+
*/
|
|
11
|
+
readonly platform: number;
|
|
12
|
+
/**
|
|
13
|
+
* The list this view belongs to.
|
|
14
|
+
*
|
|
15
|
+
* * `persons` - Persons
|
|
16
|
+
* * `organizations` - Organizations
|
|
17
|
+
* * `deals` - Deals
|
|
18
|
+
* * `activities` - Activities
|
|
19
|
+
*/
|
|
20
|
+
object_type: ObjectTypeEnum;
|
|
21
|
+
/**
|
|
22
|
+
* Unique per user and list.
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* `kanban` is available for deals only.
|
|
27
|
+
*
|
|
28
|
+
* * `table` - Table
|
|
29
|
+
* * `kanban` - Kanban
|
|
30
|
+
*/
|
|
31
|
+
type?: SavedViewTypeEnum;
|
|
32
|
+
columns?: Array<_Column>;
|
|
33
|
+
filters?: Array<_Filter>;
|
|
34
|
+
sorts?: Array<_Sort>;
|
|
35
|
+
/**
|
|
36
|
+
* Kanban column field (e.g. `stage`).
|
|
37
|
+
*/
|
|
38
|
+
group_by?: string;
|
|
39
|
+
readonly created_at: string;
|
|
40
|
+
readonly updated_at: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Status05cEnum } from './Status05cEnum';
|
|
2
|
+
export type SearchDeal = {
|
|
3
|
+
readonly id: number;
|
|
4
|
+
/**
|
|
5
|
+
* Short display name (e.g. 'Acme renewal — 2026').
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Service-managed (read-only in serializer). Derived from the destination stage's is_won/is_lost.
|
|
10
|
+
*
|
|
11
|
+
* * `open` - Open
|
|
12
|
+
* * `won` - Won
|
|
13
|
+
* * `lost` - Lost
|
|
14
|
+
*/
|
|
15
|
+
status?: Status05cEnum;
|
|
16
|
+
/**
|
|
17
|
+
* Estimated deal value in `currency`.
|
|
18
|
+
*/
|
|
19
|
+
lead_value?: string;
|
|
20
|
+
/**
|
|
21
|
+
* ISO 4217 currency code.
|
|
22
|
+
*/
|
|
23
|
+
currency?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Primary contact for this Deal. PROTECTed — can't delete a Person with open Deals.
|
|
26
|
+
*/
|
|
27
|
+
person: string;
|
|
28
|
+
/**
|
|
29
|
+
* Organization the Deal is with (nullable for solo-individual deals).
|
|
30
|
+
*/
|
|
31
|
+
organization?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Pipeline this Deal flows through.
|
|
34
|
+
*/
|
|
35
|
+
pipeline: number;
|
|
36
|
+
/**
|
|
37
|
+
* Current stage. Must belong to `pipeline`.
|
|
38
|
+
*/
|
|
39
|
+
stage: number;
|
|
40
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { LifecycleStageEnum } from './LifecycleStageEnum';
|
|
2
|
+
export type SearchPerson = {
|
|
3
|
+
/**
|
|
4
|
+
* Opaque UUID — used in API URLs and external references.
|
|
5
|
+
*/
|
|
6
|
+
readonly id: string;
|
|
7
|
+
/**
|
|
8
|
+
* Full display name.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Email used by the Person→User auto-link query (case-insensitive match).
|
|
13
|
+
*/
|
|
14
|
+
primary_email?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Free-text job title at their Organization.
|
|
17
|
+
*/
|
|
18
|
+
job_title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The Organization this Person belongs to (nullable).
|
|
21
|
+
*/
|
|
22
|
+
organization?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Funnel position. Transitions are unrestricted — any stage may move to any other.
|
|
25
|
+
*
|
|
26
|
+
* * `lead` - Lead
|
|
27
|
+
* * `qualified` - Qualified
|
|
28
|
+
* * `opportunity` - Opportunity
|
|
29
|
+
* * `customer` - Customer
|
|
30
|
+
* * `churned` - Churned
|
|
31
|
+
*/
|
|
32
|
+
lifecycle_stage?: LifecycleStageEnum;
|
|
33
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SearchDeal } from './SearchDeal';
|
|
2
|
+
import type { SearchOrganization } from './SearchOrganization';
|
|
3
|
+
import type { SearchPerson } from './SearchPerson';
|
|
4
|
+
/**
|
|
5
|
+
* One bucket per resource the caller may list; an unlisted bucket is absent.
|
|
6
|
+
*/
|
|
7
|
+
export type SearchResponse = {
|
|
8
|
+
'q': string;
|
|
9
|
+
persons?: Array<SearchPerson>;
|
|
10
|
+
organizations?: Array<SearchOrganization>;
|
|
11
|
+
deals?: Array<SearchDeal>;
|
|
12
|
+
};
|