@superoffice/webapi 11.2.694 → 11.3.1349

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 (74) hide show
  1. package/dist/cjs/AIAgent.d.ts +32 -0
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +70 -0
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/Carriers.d.ts +399 -0
  6. package/dist/cjs/Carriers.d.ts.map +1 -1
  7. package/dist/cjs/Converters.d.ts +21 -0
  8. package/dist/cjs/Converters.d.ts.map +1 -1
  9. package/dist/cjs/Converters.js +337 -24
  10. package/dist/cjs/Converters.js.map +1 -1
  11. package/dist/cjs/Enums.d.ts +122 -7
  12. package/dist/cjs/Enums.d.ts.map +1 -1
  13. package/dist/cjs/Enums.js +125 -7
  14. package/dist/cjs/Enums.js.map +1 -1
  15. package/dist/cjs/ListAgent.d.ts +24 -0
  16. package/dist/cjs/ListAgent.d.ts.map +1 -1
  17. package/dist/cjs/ListAgent.js +66 -0
  18. package/dist/cjs/ListAgent.js.map +1 -1
  19. package/dist/cjs/PersonAgent.d.ts +15 -0
  20. package/dist/cjs/PersonAgent.d.ts.map +1 -1
  21. package/dist/cjs/PersonAgent.js +33 -0
  22. package/dist/cjs/PersonAgent.js.map +1 -1
  23. package/dist/cjs/PersonRestApi.d.ts.map +1 -1
  24. package/dist/cjs/PersonRestApi.js.map +1 -1
  25. package/dist/cjs/ProjectAgent.d.ts +16 -0
  26. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  27. package/dist/cjs/ProjectAgent.js +34 -0
  28. package/dist/cjs/ProjectAgent.js.map +1 -1
  29. package/dist/cjs/SelectionAgent.d.ts +76 -0
  30. package/dist/cjs/SelectionAgent.d.ts.map +1 -1
  31. package/dist/cjs/SelectionAgent.js +166 -0
  32. package/dist/cjs/SelectionAgent.js.map +1 -1
  33. package/dist/esm/AIAgent.d.ts +32 -0
  34. package/dist/esm/AIAgent.d.ts.map +1 -1
  35. package/dist/esm/AIAgent.js +70 -0
  36. package/dist/esm/AIAgent.js.map +1 -1
  37. package/dist/esm/Carriers.d.ts +399 -0
  38. package/dist/esm/Carriers.d.ts.map +1 -1
  39. package/dist/esm/Converters.d.ts +21 -0
  40. package/dist/esm/Converters.d.ts.map +1 -1
  41. package/dist/esm/Converters.js +291 -0
  42. package/dist/esm/Converters.js.map +1 -1
  43. package/dist/esm/Enums.d.ts +122 -7
  44. package/dist/esm/Enums.d.ts.map +1 -1
  45. package/dist/esm/Enums.js +122 -4
  46. package/dist/esm/Enums.js.map +1 -1
  47. package/dist/esm/ListAgent.d.ts +24 -0
  48. package/dist/esm/ListAgent.d.ts.map +1 -1
  49. package/dist/esm/ListAgent.js +66 -0
  50. package/dist/esm/ListAgent.js.map +1 -1
  51. package/dist/esm/PersonAgent.d.ts +15 -0
  52. package/dist/esm/PersonAgent.d.ts.map +1 -1
  53. package/dist/esm/PersonAgent.js +33 -0
  54. package/dist/esm/PersonAgent.js.map +1 -1
  55. package/dist/esm/PersonRestApi.d.ts.map +1 -1
  56. package/dist/esm/PersonRestApi.js.map +1 -1
  57. package/dist/esm/ProjectAgent.d.ts +16 -0
  58. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  59. package/dist/esm/ProjectAgent.js +34 -0
  60. package/dist/esm/ProjectAgent.js.map +1 -1
  61. package/dist/esm/SelectionAgent.d.ts +76 -0
  62. package/dist/esm/SelectionAgent.d.ts.map +1 -1
  63. package/dist/esm/SelectionAgent.js +166 -0
  64. package/dist/esm/SelectionAgent.js.map +1 -1
  65. package/package.json +3 -3
  66. package/src/AIAgent.ts +117 -0
  67. package/src/Carriers.ts +553 -0
  68. package/src/Converters.ts +345 -0
  69. package/src/Enums.ts +125 -4
  70. package/src/ListAgent.ts +71 -0
  71. package/src/PersonAgent.ts +56 -0
  72. package/src/PersonRestApi.ts +2 -0
  73. package/src/ProjectAgent.ts +58 -0
  74. package/src/SelectionAgent.ts +282 -0
@@ -4880,6 +4880,10 @@ export interface ContactEntity extends Carrier {
4880
4880
  * Web domains for this contact, ordered in array by rank
4881
4881
  */
4882
4882
  domains?: string[];
4883
+ /**
4884
+ * Initial utm parameters when creating first person, readonly field
4885
+ */
4886
+ initialUtmParameters?: InitalUtmParameters;
4883
4887
  /**
4884
4888
  * Dictionary of user defined field data.
4885
4889
  * The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234"
@@ -5390,6 +5394,39 @@ export interface ConsentPerson extends Carrier {
5390
5394
  */
5391
5395
  comment?: string;
5392
5396
  }
5397
+ /**
5398
+ * Inital Utm parameters for a given person or contact.
5399
+ */
5400
+ export interface InitalUtmParameters extends Carrier {
5401
+ /**
5402
+ * The name of form for the first submission
5403
+ */
5404
+ formName?: string;
5405
+ /**
5406
+ * First touch UTM source
5407
+ */
5408
+ source?: string;
5409
+ /**
5410
+ * First touch UTM medium
5411
+ */
5412
+ medium?: string;
5413
+ /**
5414
+ * First touch UTM campaign
5415
+ */
5416
+ campaign?: string;
5417
+ /**
5418
+ * First touch UTM term
5419
+ */
5420
+ term?: string;
5421
+ /**
5422
+ * First touch UTM content
5423
+ */
5424
+ content?: string;
5425
+ /**
5426
+ * First touch UTM referrer domain
5427
+ */
5428
+ referrerDomain?: string;
5429
+ }
5393
5430
  /**
5394
5431
  *
5395
5432
  */
@@ -5833,6 +5870,10 @@ export interface PersonEntity extends Carrier {
5833
5870
  * The form id of the form that created the person
5834
5871
  */
5835
5872
  createdByFormId?: number;
5873
+ /**
5874
+ * Initial utm parameters when creating this person, readonly fields
5875
+ */
5876
+ initialUtmParameters?: InitalUtmParameters;
5836
5877
  /**
5837
5878
  * Dictionary of user defined field data.
5838
5879
  * The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234"
@@ -6469,6 +6510,16 @@ export interface Person_SendEmailWithEventNameRequest {
6469
6510
  */
6470
6511
  eventName: string;
6471
6512
  }
6513
+ /**
6514
+ * Get all UTM parameters for a given person.
6515
+ * Returns UtmParameters
6516
+ */
6517
+ export interface Person_GetUtmParametersRequest {
6518
+ /**
6519
+ * The person id to get UTM parameters for
6520
+ */
6521
+ personId: number;
6522
+ }
6472
6523
  /**
6473
6524
  * Scaled person image
6474
6525
  */
@@ -6653,6 +6704,103 @@ export interface TemporaryKeyInfo extends Carrier {
6653
6704
  */
6654
6705
  payload?: string;
6655
6706
  }
6707
+ /**
6708
+ * Utm parameters for a given person.
6709
+ */
6710
+ export interface UtmParameters extends Carrier {
6711
+ /**
6712
+ * Primary key
6713
+ */
6714
+ utmParametersId?: number;
6715
+ /**
6716
+ * Id of the created contact
6717
+ */
6718
+ createdContactId?: number;
6719
+ /**
6720
+ * Id of the created person
6721
+ */
6722
+ createdPersonId?: number;
6723
+ /**
6724
+ * Id of the form submission
6725
+ */
6726
+ formSubmissionId?: number;
6727
+ /**
6728
+ * First touch UTM source
6729
+ */
6730
+ firstTouchSource?: string;
6731
+ /**
6732
+ * First touch UTM medium
6733
+ */
6734
+ firstTouchMedium?: string;
6735
+ /**
6736
+ * First touch UTM campaign
6737
+ */
6738
+ firstTouchCampaign?: string;
6739
+ /**
6740
+ * First touch UTM term
6741
+ */
6742
+ firstTouchTerm?: string;
6743
+ /**
6744
+ * First touch UTM content
6745
+ */
6746
+ firstTouchContent?: string;
6747
+ /**
6748
+ * First touch UTM referrer domain
6749
+ */
6750
+ firstTouchReferrerDomain?: string;
6751
+ /**
6752
+ * First touch date
6753
+ */
6754
+ firstTouchWhen?: Date;
6755
+ /**
6756
+ * UTM source
6757
+ */
6758
+ source?: string;
6759
+ /**
6760
+ * UTM medium
6761
+ */
6762
+ medium?: string;
6763
+ /**
6764
+ * UTM campaign
6765
+ */
6766
+ campaign?: string;
6767
+ /**
6768
+ * UTM term
6769
+ */
6770
+ term?: string;
6771
+ /**
6772
+ * UTM content
6773
+ */
6774
+ content?: string;
6775
+ /**
6776
+ * UTM referrer domain
6777
+ */
6778
+ referrerDomain?: string;
6779
+ /**
6780
+ * Date of the visit or form submission
6781
+ */
6782
+ when?: Date;
6783
+ /**
6784
+ * Registered when
6785
+ */
6786
+ registered?: Date;
6787
+ /**
6788
+ * Registered by whom
6789
+ */
6790
+ registeredAssociateId?: number;
6791
+ /**
6792
+ * Updated when
6793
+ */
6794
+ updated?: Date;
6795
+ /**
6796
+ * Updated by whom
6797
+ */
6798
+ updatedAssociateId?: number;
6799
+ /**
6800
+ * Number of updates made to this record
6801
+ */
6802
+ updatedCount?: number;
6803
+ }
6656
6804
  /**
6657
6805
  *
6658
6806
  */
@@ -8108,6 +8256,19 @@ export interface Project_ValidateProjectEntityRequest {
8108
8256
  */
8109
8257
  projectEntity: ProjectEntity;
8110
8258
  }
8259
+ /**
8260
+ * Set the completed flag on the project
8261
+ */
8262
+ export interface Project_SetCompletedRequest {
8263
+ /**
8264
+ *
8265
+ */
8266
+ projectId: number;
8267
+ /**
8268
+ * True if the project is completed, false if it is not
8269
+ */
8270
+ isCompleted: boolean;
8271
+ }
8111
8272
  /**
8112
8273
  * A project that is also an event. Used by Audience
8113
8274
  */
@@ -9006,6 +9167,10 @@ export interface Appointment extends Carrier {
9006
9167
  * Set if an external system owns this appointment.
9007
9168
  */
9008
9169
  ownedExternally?: enums.AppointmentExternalOwner;
9170
+ /**
9171
+ * Associate/owner of the mother appointment
9172
+ */
9173
+ motherAssociateId?: number;
9009
9174
  /**
9010
9175
  * Blank when not a video meeting. Filled with Join Meeting URL when created.
9011
9176
  */
@@ -10103,6 +10268,14 @@ export interface AppointmentInfo extends Carrier {
10103
10268
  * True if the appointment is part of a booking
10104
10269
  */
10105
10270
  isBooking?: boolean;
10271
+ /**
10272
+ * Set if an external system owns this appointment.
10273
+ */
10274
+ ownedExternally?: enums.AppointmentExternalOwner;
10275
+ /**
10276
+ * Associate/owner of the mother appointment
10277
+ */
10278
+ motherAssociateId?: number;
10106
10279
  }
10107
10280
  /**
10108
10281
  * Method that returns a specified number of appointments within a time range. The appointments belong to the currently logged on user.
@@ -14515,6 +14688,43 @@ export interface Category extends Carrier {
14515
14688
  */
14516
14689
  tooltip?: string;
14517
14690
  }
14691
+ /**
14692
+ *
14693
+ */
14694
+ export interface CategoryEntity extends Carrier {
14695
+ /**
14696
+ * Primary key
14697
+ */
14698
+ categoryId?: number;
14699
+ /**
14700
+ * Name of the category
14701
+ */
14702
+ name?: string;
14703
+ /**
14704
+ * Enum of the group this category belongs to, static list of 5 groups
14705
+ */
14706
+ categoryGroup?: enums.CategoryGroup;
14707
+ /**
14708
+ * Tooltip of the category
14709
+ */
14710
+ tooltip?: string;
14711
+ /**
14712
+ * Rank of the category
14713
+ */
14714
+ rank?: number;
14715
+ /**
14716
+ * True if the category should enable lead stage
14717
+ */
14718
+ enableLeadStatus?: boolean;
14719
+ /**
14720
+ * Optional link to family, for grouping things like multiple kinds of customer category under family 'customer'
14721
+ */
14722
+ categoryFamilyId?: number;
14723
+ /**
14724
+ * true if the country is deleted
14725
+ */
14726
+ deleted?: boolean;
14727
+ }
14518
14728
  /**
14519
14729
  * Returns all categories a contact could belong to
14520
14730
  * Returns Category[]
@@ -20030,6 +20240,14 @@ export interface Associate extends Carrier {
20030
20240
  * User name
20031
20241
  */
20032
20242
  userName?: string;
20243
+ /**
20244
+ * Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc.
20245
+ */
20246
+ extraFields?: StringDictionary;
20247
+ /**
20248
+ * Extra + udef fields added to the carrier.
20249
+ */
20250
+ customFields?: StringDictionary;
20033
20251
  }
20034
20252
  /**
20035
20253
  * Returns the associate that belongs to this person if the person is an associate.
@@ -20499,6 +20717,130 @@ export interface Previews_GetPreviewRequest {
20499
20717
  */
20500
20718
  previewHint: string;
20501
20719
  }
20720
+ /**
20721
+ * Board view settings.
20722
+ */
20723
+ export interface BoardViewSettingsBase {
20724
+ /**
20725
+ * Primary key
20726
+ */
20727
+ boardViewSettingsId?: number;
20728
+ /**
20729
+ * The kind of board view entity these settings belong to
20730
+ */
20731
+ entityType?: enums.BoardViewEntityType;
20732
+ /**
20733
+ * The associate this board view settings belongs to (0 for all)
20734
+ */
20735
+ associateId?: number;
20736
+ /**
20737
+ * The selection this board view settings belongs to
20738
+ */
20739
+ selectionId?: number;
20740
+ /**
20741
+ * Do not show groups with no members/elements if this is true
20742
+ */
20743
+ hideEmptyGroups?: boolean;
20744
+ /**
20745
+ * Column name to group on
20746
+ */
20747
+ groupBy?: string;
20748
+ /**
20749
+ * Column name to group on
20750
+ */
20751
+ subGroupBy?: string;
20752
+ /**
20753
+ * Column name to sort on
20754
+ */
20755
+ sortBy?: string;
20756
+ /**
20757
+ * True if the sort is descending
20758
+ */
20759
+ sortDesc?: boolean;
20760
+ /**
20761
+ * Column name to sum on
20762
+ */
20763
+ sumBy?: string;
20764
+ /**
20765
+ * Column name to color on
20766
+ */
20767
+ colorBy?: string;
20768
+ /**
20769
+ * Column names to filter on, comma separated
20770
+ */
20771
+ filters?: string;
20772
+ }
20773
+ /**
20774
+ * Creates a new carrier from the entity type given, with the right kind of properties, defaults set.
20775
+ * Returns BoardViewSettingsBase
20776
+ */
20777
+ export interface Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest {
20778
+ /**
20779
+ * Entity type to create settings for
20780
+ */
20781
+ entityType: enums.BoardViewEntityType;
20782
+ }
20783
+ /**
20784
+ * Get BoardViewSettings by ID
20785
+ * Returns BoardViewSettingsBase
20786
+ */
20787
+ export interface Selection_GetBoardViewSettingsRequest {
20788
+ /**
20789
+ * Primary key of BoardViewSettings
20790
+ */
20791
+ boardViewSettingsId: number;
20792
+ }
20793
+ /**
20794
+ * Get BoardViewSettings by selection id, associate id, and settings type
20795
+ * Returns BoardViewSettingsBase
20796
+ */
20797
+ export interface Selection_GetBoardViewSettingsForSelectionRequest {
20798
+ /**
20799
+ * Id of associate
20800
+ */
20801
+ associateId: number;
20802
+ /**
20803
+ * Id of selection
20804
+ */
20805
+ selectionId: number;
20806
+ }
20807
+ /**
20808
+ * Save BoardViewSettings
20809
+ * Returns BoardViewSettingsBase
20810
+ */
20811
+ export interface Selection_SaveBoardViewSettingsRequest {
20812
+ /**
20813
+ * Typed BoardViewSettings carrier object
20814
+ */
20815
+ boardViewSettings: BoardViewSettingsBase;
20816
+ }
20817
+ /**
20818
+ * Delete BoardViewSettings
20819
+ */
20820
+ export interface Selection_DeleteBoardViewSettingsRequest {
20821
+ /**
20822
+ * Primary key of BoardViewSettings
20823
+ */
20824
+ boardViewSettingsId: number;
20825
+ }
20826
+ /**
20827
+ * Settings for project selection board view.
20828
+ */
20829
+ export interface ProjectBoardViewSettings extends BoardViewSettingsBase {
20830
+ /**
20831
+ * True if we should hide completed projects
20832
+ */
20833
+ hideCompletedProjects?: boolean;
20834
+ }
20835
+ /**
20836
+ * Settings for sale selection board view.
20837
+ */
20838
+ export interface SaleBoardViewSettings extends BoardViewSettingsBase {
20839
+ /**
20840
+ * True if we should hide closed sales
20841
+ */
20842
+ hideClosedSales?: boolean;
20843
+ }
20502
20844
  /**
20503
20845
  *
20504
20846
  */
@@ -33036,6 +33378,10 @@ export interface Script extends Carrier {
33036
33378
  * Path to script in the hierarchy.
33037
33379
  */
33038
33380
  path?: string;
33381
+ /**
33382
+ * The verbs that are blocked when calling a ejscript over HTTP
33383
+ */
33384
+ blockedVerbs?: enums.EjScriptVerb;
33039
33385
  }
33040
33386
  /**
33041
33387
  * Get information about a script from a unique identifier
@@ -33146,6 +33492,10 @@ export interface CRMScriptEntity extends Carrier {
33146
33492
  * Last updated by whom
33147
33493
  */
33148
33494
  updatedAssociateId?: number;
33495
+ /**
33496
+ * The verbs that are blocked when calling a ejscript over HTTP
33497
+ */
33498
+ blockedVerbs?: enums.EjScriptVerb;
33149
33499
  }
33150
33500
  /**
33151
33501
  * Save the script directly without compiling TypeScript
@@ -36358,6 +36708,55 @@ export interface AI_CreateTextForAppointmentRequest {
36358
36708
  */
36359
36709
  isoLangCode: string;
36360
36710
  }
36711
+ /**
36712
+ * Contains a ContactEntity and a PersonEntity filled with information from a business card.
36713
+ */
36714
+ export interface BizCard {
36715
+ /**
36716
+ * The contact information.
36717
+ */
36718
+ contact?: ContactEntity;
36719
+ /**
36720
+ * The person information.
36721
+ */
36722
+ person?: PersonEntity;
36723
+ /**
36724
+ * Base64 encoded company logo image, if available.
36725
+ */
36726
+ logoImage?: string;
36727
+ /**
36728
+ * Base64 encoded person photo image, if available.
36729
+ */
36730
+ photoImage?: string;
36731
+ }
36732
+ /**
36733
+ * Returns contact and person information from an image. Merges results with matching database records if merge = true
36734
+ * Returns BizCard
36735
+ */
36736
+ export interface AI_AnalyzeBizCardImageRequest {
36737
+ /**
36738
+ * Image data containg a business card
36739
+ */
36740
+ image: ArrayBuffer | string;
36741
+ /**
36742
+ * Merge results from analysis with matching database records? True: match company/person names and set ids on returned entities.
36743
+ */
36744
+ mergeWithDatabase: boolean;
36745
+ }
36746
+ /**
36747
+ * Extract contact and person information from text. Merge results with matching database records if merge = true
36748
+ * Returns BizCard
36749
+ */
36750
+ export interface AI_AnalyzeBizCardTextRequest {
36751
+ /**
36752
+ * Text that contains useful contact and person information.
36753
+ */
36754
+ text: string;
36755
+ /**
36756
+ * Merge results from analysis with matching database records? True: match company/person names and set ids on returned entities.
36757
+ */
36758
+ mergeWithDatabase: boolean;
36759
+ }
36361
36760
  /**
36362
36761
  * Details about a categorization model in HugoAI
36363
36762
  */