@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
package/src/Carriers.ts CHANGED
@@ -6739,6 +6739,11 @@ export interface ContactEntity extends Carrier {
6739
6739
  */
6740
6740
  domains?: string[];
6741
6741
 
6742
+ /**
6743
+ * Initial utm parameters when creating first person, readonly field
6744
+ */
6745
+ initialUtmParameters?: InitalUtmParameters;
6746
+
6742
6747
  /**
6743
6748
  * Dictionary of user defined field data.
6744
6749
  * 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"
@@ -7422,6 +7427,55 @@ export interface ConsentPerson extends Carrier {
7422
7427
 
7423
7428
 
7424
7429
 
7430
+ /**
7431
+ * Inital Utm parameters for a given person or contact.
7432
+ */
7433
+ export interface InitalUtmParameters extends Carrier {
7434
+
7435
+
7436
+ /**
7437
+ * The name of form for the first submission
7438
+ */
7439
+ formName?: string;
7440
+
7441
+ /**
7442
+ * First touch UTM source
7443
+ */
7444
+ source?: string;
7445
+
7446
+ /**
7447
+ * First touch UTM medium
7448
+ */
7449
+ medium?: string;
7450
+
7451
+ /**
7452
+ * First touch UTM campaign
7453
+ */
7454
+ campaign?: string;
7455
+
7456
+ /**
7457
+ * First touch UTM term
7458
+ */
7459
+ term?: string;
7460
+
7461
+ /**
7462
+ * First touch UTM content
7463
+ */
7464
+ content?: string;
7465
+
7466
+ /**
7467
+ * First touch UTM referrer domain
7468
+ */
7469
+ referrerDomain?: string;
7470
+
7471
+ }
7472
+
7473
+
7474
+
7475
+
7476
+
7477
+
7478
+
7425
7479
  /**
7426
7480
  *
7427
7481
  */
@@ -7981,6 +8035,11 @@ export interface PersonEntity extends Carrier {
7981
8035
  */
7982
8036
  createdByFormId?: number;
7983
8037
 
8038
+ /**
8039
+ * Initial utm parameters when creating this person, readonly fields
8040
+ */
8041
+ initialUtmParameters?: InitalUtmParameters;
8042
+
7984
8043
  /**
7985
8044
  * Dictionary of user defined field data.
7986
8045
  * 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"
@@ -8743,6 +8802,19 @@ export interface Person_SendEmailWithEventNameRequest {
8743
8802
 
8744
8803
  // Void response...
8745
8804
 
8805
+ /**
8806
+ * Get all UTM parameters for a given person.
8807
+ * Returns UtmParameters
8808
+ */
8809
+ export interface Person_GetUtmParametersRequest {
8810
+ /**
8811
+ * The person id to get UTM parameters for
8812
+ */
8813
+ personId: number;
8814
+ }
8815
+
8816
+ // response object: UtmParameters
8817
+
8746
8818
 
8747
8819
  /**
8748
8820
  * Scaled person image
@@ -9010,6 +9082,135 @@ export interface TemporaryKeyInfo extends Carrier {
9010
9082
 
9011
9083
 
9012
9084
 
9085
+ /**
9086
+ * Utm parameters for a given person.
9087
+ */
9088
+ export interface UtmParameters extends Carrier {
9089
+
9090
+
9091
+ /**
9092
+ * Primary key
9093
+ */
9094
+ utmParametersId?: number;
9095
+
9096
+ /**
9097
+ * Id of the created contact
9098
+ */
9099
+ createdContactId?: number;
9100
+
9101
+ /**
9102
+ * Id of the created person
9103
+ */
9104
+ createdPersonId?: number;
9105
+
9106
+ /**
9107
+ * Id of the form submission
9108
+ */
9109
+ formSubmissionId?: number;
9110
+
9111
+ /**
9112
+ * First touch UTM source
9113
+ */
9114
+ firstTouchSource?: string;
9115
+
9116
+ /**
9117
+ * First touch UTM medium
9118
+ */
9119
+ firstTouchMedium?: string;
9120
+
9121
+ /**
9122
+ * First touch UTM campaign
9123
+ */
9124
+ firstTouchCampaign?: string;
9125
+
9126
+ /**
9127
+ * First touch UTM term
9128
+ */
9129
+ firstTouchTerm?: string;
9130
+
9131
+ /**
9132
+ * First touch UTM content
9133
+ */
9134
+ firstTouchContent?: string;
9135
+
9136
+ /**
9137
+ * First touch UTM referrer domain
9138
+ */
9139
+ firstTouchReferrerDomain?: string;
9140
+
9141
+ /**
9142
+ * First touch date
9143
+ */
9144
+ firstTouchWhen?: Date;
9145
+
9146
+ /**
9147
+ * UTM source
9148
+ */
9149
+ source?: string;
9150
+
9151
+ /**
9152
+ * UTM medium
9153
+ */
9154
+ medium?: string;
9155
+
9156
+ /**
9157
+ * UTM campaign
9158
+ */
9159
+ campaign?: string;
9160
+
9161
+ /**
9162
+ * UTM term
9163
+ */
9164
+ term?: string;
9165
+
9166
+ /**
9167
+ * UTM content
9168
+ */
9169
+ content?: string;
9170
+
9171
+ /**
9172
+ * UTM referrer domain
9173
+ */
9174
+ referrerDomain?: string;
9175
+
9176
+ /**
9177
+ * Date of the visit or form submission
9178
+ */
9179
+ when?: Date;
9180
+
9181
+ /**
9182
+ * Registered when
9183
+ */
9184
+ registered?: Date;
9185
+
9186
+ /**
9187
+ * Registered by whom
9188
+ */
9189
+ registeredAssociateId?: number;
9190
+
9191
+ /**
9192
+ * Updated when
9193
+ */
9194
+ updated?: Date;
9195
+
9196
+ /**
9197
+ * Updated by whom
9198
+ */
9199
+ updatedAssociateId?: number;
9200
+
9201
+ /**
9202
+ * Number of updates made to this record
9203
+ */
9204
+ updatedCount?: number;
9205
+
9206
+ }
9207
+
9208
+
9209
+
9210
+
9211
+
9212
+
9213
+
9013
9214
 
9014
9215
 
9015
9216
 
@@ -10940,6 +11141,22 @@ export interface Project_ValidateProjectEntityRequest {
10940
11141
 
10941
11142
  // response object: StringDictionary
10942
11143
 
11144
+ /**
11145
+ * Set the completed flag on the project
11146
+ */
11147
+ export interface Project_SetCompletedRequest {
11148
+ /**
11149
+ *
11150
+ */
11151
+ projectId: number;
11152
+ /**
11153
+ * True if the project is completed, false if it is not
11154
+ */
11155
+ isCompleted: boolean;
11156
+ }
11157
+
11158
+ // Void response...
11159
+
10943
11160
 
10944
11161
  /**
10945
11162
  * A project that is also an event. Used by Audience
@@ -12152,6 +12369,11 @@ export interface Appointment extends Carrier {
12152
12369
  */
12153
12370
  ownedExternally?: enums.AppointmentExternalOwner;
12154
12371
 
12372
+ /**
12373
+ * Associate/owner of the mother appointment
12374
+ */
12375
+ motherAssociateId?: number;
12376
+
12155
12377
  /**
12156
12378
  * Blank when not a video meeting. Filled with Join Meeting URL when created.
12157
12379
  */
@@ -13509,6 +13731,16 @@ export interface AppointmentInfo extends Carrier {
13509
13731
  */
13510
13732
  isBooking?: boolean;
13511
13733
 
13734
+ /**
13735
+ * Set if an external system owns this appointment.
13736
+ */
13737
+ ownedExternally?: enums.AppointmentExternalOwner;
13738
+
13739
+ /**
13740
+ * Associate/owner of the mother appointment
13741
+ */
13742
+ motherAssociateId?: number;
13743
+
13512
13744
  }
13513
13745
 
13514
13746
 
@@ -19045,6 +19277,60 @@ export interface Category extends Carrier {
19045
19277
 
19046
19278
 
19047
19279
 
19280
+ /**
19281
+ *
19282
+ */
19283
+ export interface CategoryEntity extends Carrier {
19284
+
19285
+
19286
+ /**
19287
+ * Primary key
19288
+ */
19289
+ categoryId?: number;
19290
+
19291
+ /**
19292
+ * Name of the category
19293
+ */
19294
+ name?: string;
19295
+
19296
+ /**
19297
+ * Enum of the group this category belongs to, static list of 5 groups
19298
+ */
19299
+ categoryGroup?: enums.CategoryGroup;
19300
+
19301
+ /**
19302
+ * Tooltip of the category
19303
+ */
19304
+ tooltip?: string;
19305
+
19306
+ /**
19307
+ * Rank of the category
19308
+ */
19309
+ rank?: number;
19310
+
19311
+ /**
19312
+ * True if the category should enable lead stage
19313
+ */
19314
+ enableLeadStatus?: boolean;
19315
+
19316
+ /**
19317
+ * Optional link to family, for grouping things like multiple kinds of customer category under family 'customer'
19318
+ */
19319
+ categoryFamilyId?: number;
19320
+
19321
+ /**
19322
+ * true if the country is deleted
19323
+ */
19324
+ deleted?: boolean;
19325
+
19326
+ }
19327
+
19328
+
19329
+
19330
+
19331
+
19332
+
19333
+
19048
19334
  /**
19049
19335
  * Returns all categories a contact could belong to
19050
19336
  * Returns Category[]
@@ -26736,6 +27022,15 @@ export interface Associate extends Carrier {
26736
27022
  * User name
26737
27023
  */
26738
27024
  userName?: string;
27025
+ /**
27026
+ * Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc.
27027
+ */
27028
+ extraFields?: StringDictionary;
27029
+
27030
+ /**
27031
+ * Extra + udef fields added to the carrier.
27032
+ */
27033
+ customFields?: StringDictionary;
26739
27034
 
26740
27035
  }
26741
27036
 
@@ -27438,6 +27733,186 @@ export interface Previews_GetPreviewRequest {
27438
27733
  // response object: string
27439
27734
 
27440
27735
 
27736
+ /**
27737
+ * Board view settings.
27738
+ */
27739
+ export interface BoardViewSettingsBase {
27740
+
27741
+
27742
+ /**
27743
+ * Primary key
27744
+ */
27745
+ boardViewSettingsId?: number;
27746
+
27747
+ /**
27748
+ * The kind of board view entity these settings belong to
27749
+ */
27750
+ entityType?: enums.BoardViewEntityType;
27751
+
27752
+ /**
27753
+ * The associate this board view settings belongs to (0 for all)
27754
+ */
27755
+ associateId?: number;
27756
+
27757
+ /**
27758
+ * The selection this board view settings belongs to
27759
+ */
27760
+ selectionId?: number;
27761
+
27762
+ /**
27763
+ * Do not show groups with no members/elements if this is true
27764
+ */
27765
+ hideEmptyGroups?: boolean;
27766
+
27767
+ /**
27768
+ * Column name to group on
27769
+ */
27770
+ groupBy?: string;
27771
+
27772
+ /**
27773
+ * Column name to group on
27774
+ */
27775
+ subGroupBy?: string;
27776
+
27777
+ /**
27778
+ * Column name to sort on
27779
+ */
27780
+ sortBy?: string;
27781
+
27782
+ /**
27783
+ * True if the sort is descending
27784
+ */
27785
+ sortDesc?: boolean;
27786
+
27787
+ /**
27788
+ * Column name to sum on
27789
+ */
27790
+ sumBy?: string;
27791
+
27792
+ /**
27793
+ * Column name to color on
27794
+ */
27795
+ colorBy?: string;
27796
+
27797
+ /**
27798
+ * Column names to filter on, comma separated
27799
+ */
27800
+ filters?: string;
27801
+
27802
+ }
27803
+
27804
+
27805
+
27806
+
27807
+
27808
+
27809
+ /**
27810
+ * Creates a new carrier from the entity type given, with the right kind of properties, defaults set.
27811
+ * Returns BoardViewSettingsBase
27812
+ */
27813
+ export interface Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest {
27814
+ /**
27815
+ * Entity type to create settings for
27816
+ */
27817
+ entityType: enums.BoardViewEntityType;
27818
+ }
27819
+
27820
+ // response object: BoardViewSettingsBase
27821
+
27822
+ /**
27823
+ * Get BoardViewSettings by ID
27824
+ * Returns BoardViewSettingsBase
27825
+ */
27826
+ export interface Selection_GetBoardViewSettingsRequest {
27827
+ /**
27828
+ * Primary key of BoardViewSettings
27829
+ */
27830
+ boardViewSettingsId: number;
27831
+ }
27832
+
27833
+ // response object: BoardViewSettingsBase
27834
+
27835
+ /**
27836
+ * Get BoardViewSettings by selection id, associate id, and settings type
27837
+ * Returns BoardViewSettingsBase
27838
+ */
27839
+ export interface Selection_GetBoardViewSettingsForSelectionRequest {
27840
+ /**
27841
+ * Id of associate
27842
+ */
27843
+ associateId: number;
27844
+ /**
27845
+ * Id of selection
27846
+ */
27847
+ selectionId: number;
27848
+ }
27849
+
27850
+ // response object: BoardViewSettingsBase
27851
+
27852
+ /**
27853
+ * Save BoardViewSettings
27854
+ * Returns BoardViewSettingsBase
27855
+ */
27856
+ export interface Selection_SaveBoardViewSettingsRequest {
27857
+ /**
27858
+ * Typed BoardViewSettings carrier object
27859
+ */
27860
+ boardViewSettings: BoardViewSettingsBase;
27861
+ }
27862
+
27863
+ // response object: BoardViewSettingsBase
27864
+
27865
+ /**
27866
+ * Delete BoardViewSettings
27867
+ */
27868
+ export interface Selection_DeleteBoardViewSettingsRequest {
27869
+ /**
27870
+ * Primary key of BoardViewSettings
27871
+ */
27872
+ boardViewSettingsId: number;
27873
+ }
27874
+
27875
+ // Void response...
27876
+
27877
+
27878
+ /**
27879
+ * Settings for project selection board view.
27880
+ */
27881
+ export interface ProjectBoardViewSettings extends BoardViewSettingsBase {
27882
+
27883
+
27884
+ /**
27885
+ * True if we should hide completed projects
27886
+ */
27887
+ hideCompletedProjects?: boolean;
27888
+
27889
+ }
27890
+
27891
+
27892
+
27893
+
27894
+
27895
+
27896
+
27897
+ /**
27898
+ * Settings for sale selection board view.
27899
+ */
27900
+ export interface SaleBoardViewSettings extends BoardViewSettingsBase {
27901
+
27902
+
27903
+ /**
27904
+ * True if we should hide closed sales
27905
+ */
27906
+ hideClosedSales?: boolean;
27907
+
27908
+ }
27909
+
27910
+
27911
+
27912
+
27913
+
27914
+
27915
+
27441
27916
  /**
27442
27917
  *
27443
27918
  */
@@ -44369,6 +44844,11 @@ export interface Script extends Carrier {
44369
44844
  */
44370
44845
  path?: string;
44371
44846
 
44847
+ /**
44848
+ * The verbs that are blocked when calling a ejscript over HTTP
44849
+ */
44850
+ blockedVerbs?: enums.EjScriptVerb;
44851
+
44372
44852
  }
44373
44853
 
44374
44854
 
@@ -44515,6 +44995,11 @@ export interface CRMScriptEntity extends Carrier {
44515
44995
  */
44516
44996
  updatedAssociateId?: number;
44517
44997
 
44998
+ /**
44999
+ * The verbs that are blocked when calling a ejscript over HTTP
45000
+ */
45001
+ blockedVerbs?: enums.EjScriptVerb;
45002
+
44518
45003
  }
44519
45004
 
44520
45005
 
@@ -48750,6 +49235,74 @@ export interface AI_CreateTextForAppointmentRequest {
48750
49235
  // response object: string
48751
49236
 
48752
49237
 
49238
+ /**
49239
+ * Contains a ContactEntity and a PersonEntity filled with information from a business card.
49240
+ */
49241
+ export interface BizCard {
49242
+
49243
+
49244
+ /**
49245
+ * The contact information.
49246
+ */
49247
+ contact?: ContactEntity;
49248
+
49249
+ /**
49250
+ * The person information.
49251
+ */
49252
+ person?: PersonEntity;
49253
+
49254
+ /**
49255
+ * Base64 encoded company logo image, if available.
49256
+ */
49257
+ logoImage?: string;
49258
+
49259
+ /**
49260
+ * Base64 encoded person photo image, if available.
49261
+ */
49262
+ photoImage?: string;
49263
+
49264
+ }
49265
+
49266
+
49267
+
49268
+
49269
+
49270
+
49271
+ /**
49272
+ * Returns contact and person information from an image. Merges results with matching database records if merge = true
49273
+ * Returns BizCard
49274
+ */
49275
+ export interface AI_AnalyzeBizCardImageRequest {
49276
+ /**
49277
+ * Image data containg a business card
49278
+ */
49279
+ image: ArrayBuffer | string;
49280
+ /**
49281
+ * Merge results from analysis with matching database records? True: match company/person names and set ids on returned entities.
49282
+ */
49283
+ mergeWithDatabase: boolean;
49284
+ }
49285
+
49286
+ // response object: BizCard
49287
+
49288
+ /**
49289
+ * Extract contact and person information from text. Merge results with matching database records if merge = true
49290
+ * Returns BizCard
49291
+ */
49292
+ export interface AI_AnalyzeBizCardTextRequest {
49293
+ /**
49294
+ * Text that contains useful contact and person information.
49295
+ */
49296
+ text: string;
49297
+ /**
49298
+ * Merge results from analysis with matching database records? True: match company/person names and set ids on returned entities.
49299
+ */
49300
+ mergeWithDatabase: boolean;
49301
+ }
49302
+
49303
+ // response object: BizCard
49304
+
49305
+
48753
49306
  /**
48754
49307
  * Details about a categorization model in HugoAI
48755
49308
  */