@iblai/iblai-api 4.450.0-core → 4.452.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.
Files changed (83) hide show
  1. package/dist/index.cjs.js +763 -60
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +763 -61
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +763 -60
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +15 -0
  8. package/dist/types/models/Activity.d.ts +4 -0
  9. package/dist/types/models/Deal.d.ts +4 -0
  10. package/dist/types/models/LeadSource.d.ts +4 -0
  11. package/dist/types/models/Member.d.ts +16 -0
  12. package/dist/types/models/Organization.d.ts +4 -0
  13. package/dist/types/models/Overview.d.ts +4 -0
  14. package/dist/types/models/PaginatedMemberList.d.ts +7 -0
  15. package/dist/types/models/PaginatedWebFormList.d.ts +7 -0
  16. package/dist/types/models/PaginatedWebFormSubmissionList.d.ts +7 -0
  17. package/dist/types/models/PatchedActivity.d.ts +4 -0
  18. package/dist/types/models/PatchedDeal.d.ts +4 -0
  19. package/dist/types/models/PatchedLeadSource.d.ts +4 -0
  20. package/dist/types/models/PatchedOrganization.d.ts +4 -0
  21. package/dist/types/models/PatchedPerson.d.ts +4 -0
  22. package/dist/types/models/PatchedPipeline.d.ts +4 -0
  23. package/dist/types/models/PatchedSavedView.d.ts +4 -0
  24. package/dist/types/models/PatchedTag.d.ts +4 -0
  25. package/dist/types/models/PatchedWebForm.d.ts +41 -0
  26. package/dist/types/models/Person.d.ts +4 -0
  27. package/dist/types/models/Pipeline.d.ts +4 -0
  28. package/dist/types/models/SavedView.d.ts +4 -0
  29. package/dist/types/models/SearchDeal.d.ts +4 -0
  30. package/dist/types/models/SearchOrganization.d.ts +5 -1
  31. package/dist/types/models/SearchPerson.d.ts +4 -0
  32. package/dist/types/models/Tag.d.ts +4 -0
  33. package/dist/types/models/Type240Enum.d.ts +20 -0
  34. package/dist/types/models/WebForm.d.ts +41 -0
  35. package/dist/types/models/WebFormField.d.ts +20 -0
  36. package/dist/types/models/WebFormPublic.d.ts +25 -0
  37. package/dist/types/models/WebFormPublicField.d.ts +10 -0
  38. package/dist/types/models/WebFormRouting.d.ts +45 -0
  39. package/dist/types/models/WebFormSubmission.d.ts +15 -0
  40. package/dist/types/models/WebFormSubmitRequest.d.ts +15 -0
  41. package/dist/types/models/WebFormSubmitResponse.d.ts +4 -0
  42. package/dist/types/services/CrmService.d.ts +662 -83
  43. package/dist/types/services/V1CoursesService.d.ts +25 -0
  44. package/package.json +1 -1
  45. package/sdk_schema.yml +1895 -10
  46. package/src/core/OpenAPI.ts +1 -1
  47. package/src/index.ts +15 -0
  48. package/src/models/Activity.ts +4 -0
  49. package/src/models/Deal.ts +4 -0
  50. package/src/models/LeadSource.ts +4 -0
  51. package/src/models/Member.ts +21 -0
  52. package/src/models/Organization.ts +4 -0
  53. package/src/models/Overview.ts +4 -0
  54. package/src/models/PaginatedMemberList.ts +12 -0
  55. package/src/models/PaginatedWebFormList.ts +12 -0
  56. package/src/models/PaginatedWebFormSubmissionList.ts +12 -0
  57. package/src/models/PatchedActivity.ts +4 -0
  58. package/src/models/PatchedDeal.ts +4 -0
  59. package/src/models/PatchedLeadSource.ts +4 -0
  60. package/src/models/PatchedOrganization.ts +4 -0
  61. package/src/models/PatchedPerson.ts +4 -0
  62. package/src/models/PatchedPipeline.ts +4 -0
  63. package/src/models/PatchedSavedView.ts +4 -0
  64. package/src/models/PatchedTag.ts +4 -0
  65. package/src/models/PatchedWebForm.ts +46 -0
  66. package/src/models/Person.ts +4 -0
  67. package/src/models/Pipeline.ts +4 -0
  68. package/src/models/SavedView.ts +4 -0
  69. package/src/models/SearchDeal.ts +4 -0
  70. package/src/models/SearchOrganization.ts +5 -1
  71. package/src/models/SearchPerson.ts +4 -0
  72. package/src/models/Tag.ts +4 -0
  73. package/src/models/Type240Enum.ts +24 -0
  74. package/src/models/WebForm.ts +46 -0
  75. package/src/models/WebFormField.ts +25 -0
  76. package/src/models/WebFormPublic.ts +30 -0
  77. package/src/models/WebFormPublicField.ts +15 -0
  78. package/src/models/WebFormRouting.ts +50 -0
  79. package/src/models/WebFormSubmission.ts +20 -0
  80. package/src/models/WebFormSubmitRequest.ts +20 -0
  81. package/src/models/WebFormSubmitResponse.ts +9 -0
  82. package/src/services/CrmService.ts +1151 -38
  83. package/src/services/V1CoursesService.ts +52 -0
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '4.450.0-core',
24
+ VERSION: '4.452.0-core',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
package/src/index.ts CHANGED
@@ -236,6 +236,7 @@ export type { MarkAllReadRequest } from './models/MarkAllReadRequest';
236
236
  export type { MarkAllReadResponse } from './models/MarkAllReadResponse';
237
237
  export type { MediaResource } from './models/MediaResource';
238
238
  export { MediaTypeEnum } from './models/MediaTypeEnum';
239
+ export type { Member } from './models/Member';
239
240
  export type { MentorDetail } from './models/MentorDetail';
240
241
  export type { MentorInteractions } from './models/MentorInteractions';
241
242
  export type { MentorPolicy } from './models/MentorPolicy';
@@ -288,6 +289,7 @@ export type { PaginatedItemPaywallConfigList } from './models/PaginatedItemPaywa
288
289
  export type { PaginatedItemSubscriptionList } from './models/PaginatedItemSubscriptionList';
289
290
  export type { PaginatedItemSubscriptionListList } from './models/PaginatedItemSubscriptionListList';
290
291
  export type { PaginatedLeadSourceList } from './models/PaginatedLeadSourceList';
292
+ export type { PaginatedMemberList } from './models/PaginatedMemberList';
291
293
  export type { PaginatedOrganizationList } from './models/PaginatedOrganizationList';
292
294
  export type { PaginatedPathwayGroupSuggestion } from './models/PaginatedPathwayGroupSuggestion';
293
295
  export type { PaginatedPathwaySuggestion } from './models/PaginatedPathwaySuggestion';
@@ -318,6 +320,8 @@ export type { PaginatedUserLicenseGroupAssignment } from './models/PaginatedUser
318
320
  export type { PaginatedWatchedGroupListList } from './models/PaginatedWatchedGroupListList';
319
321
  export type { PaginatedWatchedUserReadList } from './models/PaginatedWatchedUserReadList';
320
322
  export type { PaginatedWatcherReadList } from './models/PaginatedWatcherReadList';
323
+ export type { PaginatedWebFormList } from './models/PaginatedWebFormList';
324
+ export type { PaginatedWebFormSubmissionList } from './models/PaginatedWebFormSubmissionList';
321
325
  export type { Pagination } from './models/Pagination';
322
326
  export type { PatchedActivity } from './models/PatchedActivity';
323
327
  export type { PatchedCourseExportEligibility } from './models/PatchedCourseExportEligibility';
@@ -356,6 +360,7 @@ export type { PatchedUserNotificationPreferences } from './models/PatchedUserNot
356
360
  export type { PatchedUserPlatformMetadataUpdate } from './models/PatchedUserPlatformMetadataUpdate';
357
361
  export type { PatchedWatchedGroupUpdate } from './models/PatchedWatchedGroupUpdate';
358
362
  export type { PatchedWatcherUpdate } from './models/PatchedWatcherUpdate';
363
+ export type { PatchedWebForm } from './models/PatchedWebForm';
359
364
  export type { Pathway } from './models/Pathway';
360
365
  export type { PathwayCompletion } from './models/PathwayCompletion';
361
366
  export type { PathwayCompletionResponse } from './models/PathwayCompletionResponse';
@@ -613,6 +618,7 @@ export type { TokenProxyOutputSerializerData } from './models/TokenProxyOutputSe
613
618
  export type { TokenProxyUser } from './models/TokenProxyUser';
614
619
  export type { TopContent } from './models/TopContent';
615
620
  export { TransactionTypeEnum } from './models/TransactionTypeEnum';
621
+ export { Type240Enum } from './models/Type240Enum';
616
622
  export { Type6d9Enum } from './models/Type6d9Enum';
617
623
  export type { UploadedImage } from './models/UploadedImage';
618
624
  export type { UserApp } from './models/UserApp';
@@ -689,6 +695,14 @@ export type { WatcherEntry } from './models/WatcherEntry';
689
695
  export type { WatcherRead } from './models/WatcherRead';
690
696
  export type { WatcherUpdate } from './models/WatcherUpdate';
691
697
  export type { WatcherWrite } from './models/WatcherWrite';
698
+ export type { WebForm } from './models/WebForm';
699
+ export type { WebFormField } from './models/WebFormField';
700
+ export type { WebFormPublic } from './models/WebFormPublic';
701
+ export type { WebFormPublicField } from './models/WebFormPublicField';
702
+ export type { WebFormRouting } from './models/WebFormRouting';
703
+ export type { WebFormSubmission } from './models/WebFormSubmission';
704
+ export type { WebFormSubmitRequest } from './models/WebFormSubmitRequest';
705
+ export type { WebFormSubmitResponse } from './models/WebFormSubmitResponse';
692
706
  export type { WhitelistedDomain } from './models/WhitelistedDomain';
693
707
 
694
708
  export { AiAnalyticsService } from './services/AiAnalyticsService';
@@ -710,6 +724,7 @@ export { ReportsService } from './services/ReportsService';
710
724
  export { ScimService } from './services/ScimService';
711
725
  export { SearchService } from './services/SearchService';
712
726
  export { SkillsService } from './services/SkillsService';
727
+ export { V1CoursesService } from './services/V1CoursesService';
713
728
  export { V1LmsService } from './services/V1LmsService';
714
729
  export { V1RbacService } from './services/V1RbacService';
715
730
  export { V1StudioService } from './services/V1StudioService';
@@ -12,6 +12,10 @@ export type Activity = {
12
12
  * Platform this Activity belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
13
13
  */
14
14
  readonly platform: number;
15
+ /**
16
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
17
+ */
18
+ readonly app: string;
15
19
  /**
16
20
  * Short summary (e.g. 'Discovery call', 'Stage changed').
17
21
  */
@@ -19,6 +19,10 @@ export type Deal = {
19
19
  * Platform this Deal belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
20
20
  */
21
21
  readonly platform: number;
22
+ /**
23
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
24
+ */
25
+ readonly app: string;
22
26
  /**
23
27
  * Short display name (e.g. 'Acme renewal — 2026').
24
28
  */
@@ -11,6 +11,10 @@ export type LeadSource = {
11
11
  * Platform the LeadSource belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
12
12
  */
13
13
  readonly platform: number;
14
+ /**
15
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
16
+ */
17
+ readonly app: string;
14
18
  /**
15
19
  * Display name shown to sales reps when categorizing a Deal.
16
20
  */
@@ -0,0 +1,21 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * A platform member as an owner picker shows them.
7
+ */
8
+ export type Member = {
9
+ /**
10
+ * The user's id — what `owner` takes.
11
+ */
12
+ readonly id: number;
13
+ readonly username: string | null;
14
+ readonly name: string;
15
+ /**
16
+ * Null unless you may list the Platform's users.
17
+ */
18
+ readonly email: string | null;
19
+ readonly is_admin: boolean;
20
+ };
21
+
@@ -18,6 +18,10 @@ export type Organization = {
18
18
  * Platform the Organization belongs to. Set server-side from the auth token.
19
19
  */
20
20
  readonly platform: number;
21
+ /**
22
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
23
+ */
24
+ readonly app: string;
21
25
  /**
22
26
  * Display name. Unique per platform (case-sensitive).
23
27
  */
@@ -9,6 +9,10 @@ import type { OverviewDeals } from './OverviewDeals';
9
9
  * Sections the caller may list; `period_*` only when a window resolved.
10
10
  */
11
11
  export type Overview = {
12
+ /**
13
+ * The app these figures cover: blank for the CRM, e.g. `recruit`.
14
+ */
15
+ app: string;
12
16
  persons?: OverviewCount;
13
17
  organizations?: OverviewCount;
14
18
  deals?: OverviewDeals;
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { Member } from './Member';
6
+ export type PaginatedMemberList = {
7
+ count: number;
8
+ next?: string | null;
9
+ previous?: string | null;
10
+ results: Array<Member>;
11
+ };
12
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WebForm } from './WebForm';
6
+ export type PaginatedWebFormList = {
7
+ count: number;
8
+ next?: string | null;
9
+ previous?: string | null;
10
+ results: Array<WebForm>;
11
+ };
12
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WebFormSubmission } from './WebFormSubmission';
6
+ export type PaginatedWebFormSubmissionList = {
7
+ count: number;
8
+ next?: string | null;
9
+ previous?: string | null;
10
+ results: Array<WebFormSubmission>;
11
+ };
12
+
@@ -12,6 +12,10 @@ export type PatchedActivity = {
12
12
  * Platform this Activity belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
13
13
  */
14
14
  readonly platform?: number;
15
+ /**
16
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
17
+ */
18
+ readonly app?: string;
15
19
  /**
16
20
  * Short summary (e.g. 'Discovery call', 'Stage changed').
17
21
  */
@@ -19,6 +19,10 @@ export type PatchedDeal = {
19
19
  * Platform this Deal belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
20
20
  */
21
21
  readonly platform?: number;
22
+ /**
23
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
24
+ */
25
+ readonly app?: string;
22
26
  /**
23
27
  * Short display name (e.g. 'Acme renewal — 2026').
24
28
  */
@@ -11,6 +11,10 @@ export type PatchedLeadSource = {
11
11
  * Platform the LeadSource belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
12
12
  */
13
13
  readonly platform?: number;
14
+ /**
15
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
16
+ */
17
+ readonly app?: string;
14
18
  /**
15
19
  * Display name shown to sales reps when categorizing a Deal.
16
20
  */
@@ -18,6 +18,10 @@ export type PatchedOrganization = {
18
18
  * Platform the Organization belongs to. Set server-side from the auth token.
19
19
  */
20
20
  readonly platform?: number;
21
+ /**
22
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
23
+ */
24
+ readonly app?: string;
21
25
  /**
22
26
  * Display name. Unique per platform (case-sensitive).
23
27
  */
@@ -19,6 +19,10 @@ export type PatchedPerson = {
19
19
  * Platform the person belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
20
20
  */
21
21
  readonly platform?: number;
22
+ /**
23
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
24
+ */
25
+ readonly app?: string;
22
26
  /**
23
27
  * Display name (e.g. 'Alice Chen').
24
28
  */
@@ -12,6 +12,10 @@ export type PatchedPipeline = {
12
12
  * Platform this Pipeline belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
13
13
  */
14
14
  readonly platform?: number;
15
+ /**
16
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
17
+ */
18
+ readonly app?: string;
15
19
  /**
16
20
  * Display name (e.g. 'B2B Sales', 'Renewals').
17
21
  */
@@ -13,6 +13,10 @@ export type PatchedSavedView = {
13
13
  * Tenant this view belongs to.
14
14
  */
15
15
  readonly platform?: number;
16
+ /**
17
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
18
+ */
19
+ readonly app?: string;
16
20
  /**
17
21
  * The list this view belongs to.
18
22
  *
@@ -11,6 +11,10 @@ export type PatchedTag = {
11
11
  * Platform this Tag belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
12
12
  */
13
13
  readonly platform?: number;
14
+ /**
15
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
16
+ */
17
+ readonly app?: string;
14
18
  /**
15
19
  * Display label shown on tag chips. Must be unique within your Platform (case-sensitive). Up to 64 characters.
16
20
  */
@@ -0,0 +1,46 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WebFormField } from './WebFormField';
6
+ import type { WebFormRouting } from './WebFormRouting';
7
+ export type PatchedWebForm = {
8
+ readonly id?: number;
9
+ /**
10
+ * Set from your credentials.
11
+ */
12
+ readonly platform?: number;
13
+ /**
14
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
15
+ */
16
+ readonly app?: string;
17
+ /**
18
+ * URL segment, unique per Platform and app.
19
+ */
20
+ slug?: string;
21
+ /**
22
+ * Shown to visitors; names the lead source and the note.
23
+ */
24
+ name?: string;
25
+ /**
26
+ * Only published forms are served and take submissions. Publishing needs fields mapped to `person.primary_email` and to `person.name` or `person.first_name`.
27
+ */
28
+ is_published?: boolean;
29
+ /**
30
+ * Ordered form fields.
31
+ */
32
+ fields?: Array<WebFormField>;
33
+ /**
34
+ * Where a submission lands; omitted keys take defaults.
35
+ */
36
+ routing?: WebFormRouting;
37
+ /**
38
+ * The app's page copy (an object, ≤ 64 KB), served on the public read.
39
+ */
40
+ metadata?: any;
41
+ success_title?: string;
42
+ success_message?: string;
43
+ readonly created_at?: string;
44
+ readonly updated_at?: string;
45
+ };
46
+
@@ -19,6 +19,10 @@ export type Person = {
19
19
  * Platform the person belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
20
20
  */
21
21
  readonly platform: number;
22
+ /**
23
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
24
+ */
25
+ readonly app: string;
22
26
  /**
23
27
  * Display name (e.g. 'Alice Chen').
24
28
  */
@@ -12,6 +12,10 @@ export type Pipeline = {
12
12
  * Platform this Pipeline belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
13
13
  */
14
14
  readonly platform: number;
15
+ /**
16
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
17
+ */
18
+ readonly app: string;
15
19
  /**
16
20
  * Display name (e.g. 'B2B Sales', 'Renewals').
17
21
  */
@@ -13,6 +13,10 @@ export type SavedView = {
13
13
  * Tenant this view belongs to.
14
14
  */
15
15
  readonly platform: number;
16
+ /**
17
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
18
+ */
19
+ readonly app: string;
16
20
  /**
17
21
  * The list this view belongs to.
18
22
  *
@@ -5,6 +5,10 @@
5
5
  import type { Status05cEnum } from './Status05cEnum';
6
6
  export type SearchDeal = {
7
7
  readonly id: number;
8
+ /**
9
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
10
+ */
11
+ readonly app: string;
8
12
  /**
9
13
  * Short display name (e.g. 'Acme renewal — 2026').
10
14
  */
@@ -8,7 +8,11 @@ export type SearchOrganization = {
8
8
  */
9
9
  readonly id: string;
10
10
  /**
11
- * Display name. Unique within the platform.
11
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
12
+ */
13
+ readonly app: string;
14
+ /**
15
+ * Display name. Unique within the platform's app.
12
16
  */
13
17
  name: string;
14
18
  };
@@ -8,6 +8,10 @@ export type SearchPerson = {
8
8
  * Opaque UUID — used in API URLs and external references.
9
9
  */
10
10
  readonly id: string;
11
+ /**
12
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
13
+ */
14
+ readonly app: string;
11
15
  /**
12
16
  * Full display name.
13
17
  */
package/src/models/Tag.ts CHANGED
@@ -11,6 +11,10 @@ export type Tag = {
11
11
  * Platform this Tag belongs to. Set automatically from your credentials; you cannot pass another Platform's id.
12
12
  */
13
13
  readonly platform: number;
14
+ /**
15
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
16
+ */
17
+ readonly app: string;
14
18
  /**
15
19
  * Display label shown on tag chips. Must be unique within your Platform (case-sensitive). Up to 64 characters.
16
20
  */
@@ -0,0 +1,24 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * * `text` - text
7
+ * * `email` - email
8
+ * * `tel` - tel
9
+ * * `number` - number
10
+ * * `date` - date
11
+ * * `select` - select
12
+ * * `textarea` - textarea
13
+ * * `checkbox` - checkbox
14
+ */
15
+ export enum Type240Enum {
16
+ TEXT = 'text',
17
+ EMAIL = 'email',
18
+ TEL = 'tel',
19
+ NUMBER = 'number',
20
+ DATE = 'date',
21
+ SELECT = 'select',
22
+ TEXTAREA = 'textarea',
23
+ CHECKBOX = 'checkbox',
24
+ }
@@ -0,0 +1,46 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WebFormField } from './WebFormField';
6
+ import type { WebFormRouting } from './WebFormRouting';
7
+ export type WebForm = {
8
+ readonly id: number;
9
+ /**
10
+ * Set from your credentials.
11
+ */
12
+ readonly platform: number;
13
+ /**
14
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
15
+ */
16
+ readonly app: string;
17
+ /**
18
+ * URL segment, unique per Platform and app.
19
+ */
20
+ slug: string;
21
+ /**
22
+ * Shown to visitors; names the lead source and the note.
23
+ */
24
+ name: string;
25
+ /**
26
+ * Only published forms are served and take submissions. Publishing needs fields mapped to `person.primary_email` and to `person.name` or `person.first_name`.
27
+ */
28
+ is_published?: boolean;
29
+ /**
30
+ * Ordered form fields.
31
+ */
32
+ fields?: Array<WebFormField>;
33
+ /**
34
+ * Where a submission lands; omitted keys take defaults.
35
+ */
36
+ routing?: WebFormRouting;
37
+ /**
38
+ * The app's page copy (an object, ≤ 64 KB), served on the public read.
39
+ */
40
+ metadata?: any;
41
+ success_title?: string;
42
+ success_message?: string;
43
+ readonly created_at: string;
44
+ readonly updated_at: string;
45
+ };
46
+
@@ -0,0 +1,25 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { Type240Enum } from './Type240Enum';
6
+ export type WebFormField = {
7
+ /**
8
+ * Answer key, unique in the form (`^[a-z][a-z0-9_]{0,63}$`).
9
+ */
10
+ key: string;
11
+ label: string;
12
+ type: Type240Enum;
13
+ required?: boolean;
14
+ placeholder?: string;
15
+ help?: string;
16
+ /**
17
+ * A `select`'s choices; empty for every other type.
18
+ */
19
+ options?: Array<string>;
20
+ /**
21
+ * Where the answer is written: `person.{name,first_name,last_name,primary_email,phone,job_title}`, `organization.name`, `deal.description`, `person.metadata.<key>`, `deal.metadata.<key>`. Empty keeps it on the submission and the note only.
22
+ */
23
+ maps_to?: Array<string>;
24
+ };
25
+
@@ -0,0 +1,30 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WebFormPublicField } from './WebFormPublicField';
6
+ /**
7
+ * What a visitor's page needs, by allow-list: never routing or targets.
8
+ */
9
+ export type WebFormPublic = {
10
+ /**
11
+ * The app this record belongs to: blank for the CRM, e.g. `recruit`.
12
+ */
13
+ readonly app: string;
14
+ /**
15
+ * URL segment. Unique per platform and app.
16
+ */
17
+ readonly slug: string;
18
+ /**
19
+ * Shown to visitors; names the lead source and note.
20
+ */
21
+ readonly name: string;
22
+ /**
23
+ * The app's page copy. Opaque to the CRM and served publicly.
24
+ */
25
+ readonly metadata: any;
26
+ readonly fields: Array<WebFormPublicField>;
27
+ readonly success_title: string;
28
+ readonly success_message: string;
29
+ };
30
+
@@ -0,0 +1,15 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { Type240Enum } from './Type240Enum';
6
+ export type WebFormPublicField = {
7
+ key: string;
8
+ label: string;
9
+ type: Type240Enum;
10
+ required: boolean;
11
+ placeholder: string;
12
+ help: string;
13
+ options: Array<string>;
14
+ };
15
+
@@ -0,0 +1,50 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { LifecycleStageEnum } from './LifecycleStageEnum';
6
+ export type WebFormRouting = {
7
+ /**
8
+ * Open a deal for every submission.
9
+ */
10
+ create_deal?: boolean;
11
+ /**
12
+ * The deal's pipeline; blank or gone means the default pipeline.
13
+ */
14
+ pipeline_code?: string;
15
+ /**
16
+ * An open stage of that pipeline; blank or gone means its first open stage.
17
+ */
18
+ stage_code?: string;
19
+ /**
20
+ * The deal's lead source; a new code is created with the form, named after it.
21
+ */
22
+ lead_source_code?: string;
23
+ /**
24
+ * Tag names for the person and the deal, created on first use.
25
+ */
26
+ tags?: Array<string>;
27
+ /**
28
+ * Platform user who owns new persons, the deal and the note.
29
+ */
30
+ owner?: number | null;
31
+ /**
32
+ * For persons the form creates; an existing person keeps theirs.
33
+ *
34
+ * * `lead` - Lead
35
+ * * `qualified` - Qualified
36
+ * * `opportunity` - Opportunity
37
+ * * `customer` - Customer
38
+ * * `churned` - Churned
39
+ */
40
+ lifecycle_stage?: LifecycleStageEnum;
41
+ /**
42
+ * `{name}` (the person), `{form}` (the form's name) and `{<key>}` for any deal metadata key.
43
+ */
44
+ deal_title?: string;
45
+ /**
46
+ * Default deal metadata; mapped answers override it.
47
+ */
48
+ deal_metadata?: Record<string, string>;
49
+ };
50
+
@@ -0,0 +1,20 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type WebFormSubmission = {
6
+ readonly id: string;
7
+ /**
8
+ * The person it landed in (may since be deleted).
9
+ */
10
+ readonly person: string | null;
11
+ /**
12
+ * The deal it opened, or null.
13
+ */
14
+ readonly deal: number | null;
15
+ readonly answers: any;
16
+ readonly utm: any;
17
+ readonly page_url: string;
18
+ readonly created_at: string;
19
+ };
20
+