@superoffice/webapi 11.8.788 → 11.9.1204

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 (42) hide show
  1. package/dist/cjs/AIAgent.d.ts +62 -0
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +149 -0
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/Carriers.d.ts +281 -18
  6. package/dist/cjs/Carriers.d.ts.map +1 -1
  7. package/dist/cjs/Converters.d.ts +15 -0
  8. package/dist/cjs/Converters.d.ts.map +1 -1
  9. package/dist/cjs/Converters.js +211 -8
  10. package/dist/cjs/Converters.js.map +1 -1
  11. package/dist/cjs/Enums.d.ts +61 -3
  12. package/dist/cjs/Enums.d.ts.map +1 -1
  13. package/dist/cjs/Enums.js +66 -6
  14. package/dist/cjs/Enums.js.map +1 -1
  15. package/dist/cjs/MarketingAgent.d.ts +68 -0
  16. package/dist/cjs/MarketingAgent.d.ts.map +1 -1
  17. package/dist/cjs/MarketingAgent.js +157 -0
  18. package/dist/cjs/MarketingAgent.js.map +1 -1
  19. package/dist/esm/AIAgent.d.ts +62 -0
  20. package/dist/esm/AIAgent.d.ts.map +1 -1
  21. package/dist/esm/AIAgent.js +150 -1
  22. package/dist/esm/AIAgent.js.map +1 -1
  23. package/dist/esm/Carriers.d.ts +281 -18
  24. package/dist/esm/Carriers.d.ts.map +1 -1
  25. package/dist/esm/Converters.d.ts +15 -0
  26. package/dist/esm/Converters.d.ts.map +1 -1
  27. package/dist/esm/Converters.js +189 -2
  28. package/dist/esm/Converters.js.map +1 -1
  29. package/dist/esm/Enums.d.ts +61 -3
  30. package/dist/esm/Enums.d.ts.map +1 -1
  31. package/dist/esm/Enums.js +62 -2
  32. package/dist/esm/Enums.js.map +1 -1
  33. package/dist/esm/MarketingAgent.d.ts +68 -0
  34. package/dist/esm/MarketingAgent.d.ts.map +1 -1
  35. package/dist/esm/MarketingAgent.js +157 -0
  36. package/dist/esm/MarketingAgent.js.map +1 -1
  37. package/package.json +3 -3
  38. package/src/AIAgent.ts +247 -0
  39. package/src/Carriers.ts +391 -20
  40. package/src/Converters.ts +230 -5
  41. package/src/Enums.ts +64 -2
  42. package/src/MarketingAgent.ts +256 -0
package/src/Carriers.ts CHANGED
@@ -7996,6 +7996,11 @@ export interface PersonEntity extends Carrier {
7996
7996
  */
7997
7997
  leadstatusId?: number;
7998
7998
 
7999
+ /**
8000
+ * Name of leadstatus
8001
+ */
8002
+ leadstatus?: string;
8003
+
7999
8004
  /**
8000
8005
  * Dictionary of user defined field data.
8001
8006
  * 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"
@@ -15286,6 +15291,16 @@ export interface ParticipantInfo {
15286
15291
  */
15287
15292
  description?: string;
15288
15293
 
15294
+ /**
15295
+ * The type of participant if the appointment is externally owned.
15296
+ */
15297
+ externallyOwnedType?: enums.ExternallyOwnedType;
15298
+
15299
+ /**
15300
+ * The status of the externally owned participant.
15301
+ */
15302
+ externallyOwnedStatus?: enums.ExternallyOwnedStatus;
15303
+
15289
15304
  }
15290
15305
 
15291
15306
 
@@ -19318,7 +19333,7 @@ export interface AmountClassEntity extends Carrier {
19318
19333
 
19319
19334
 
19320
19335
  /**
19321
- * Utm parameters for a given person.
19336
+ * Carrier for an automated category update setting.
19322
19337
  */
19323
19338
  export interface AutomatedCategoryUpdate extends Carrier {
19324
19339
 
@@ -19498,20 +19513,40 @@ export interface Category extends Carrier {
19498
19513
 
19499
19514
 
19500
19515
  /**
19501
- * The list item Id
19516
+ * The category identifier
19502
19517
  */
19503
- id: number;
19518
+ id?: number;
19504
19519
 
19505
19520
  /**
19506
- * The list item Value
19521
+ * The category name
19507
19522
  */
19508
19523
  value?: string;
19509
19524
 
19510
19525
  /**
19511
- * The list item Tooltip
19526
+ * The category description
19512
19527
  */
19513
19528
  tooltip?: string;
19514
19529
 
19530
+ /**
19531
+ * Enum of the group this category belongs to, static list of 5 groups
19532
+ */
19533
+ categoryGroup?: enums.CategoryGroup;
19534
+
19535
+ /**
19536
+ * True if the category should enable lead status
19537
+ */
19538
+ enableLeadStatus?: boolean;
19539
+
19540
+ /**
19541
+ * The rank of the category
19542
+ */
19543
+ rank?: number;
19544
+
19545
+ /**
19546
+ * True if the category is deleted
19547
+ */
19548
+ deleted?: boolean;
19549
+
19515
19550
  }
19516
19551
 
19517
19552
 
@@ -19552,7 +19587,7 @@ export interface CategoryEntity extends Carrier {
19552
19587
  rank?: number;
19553
19588
 
19554
19589
  /**
19555
- * True if the category should enable lead stage
19590
+ * True if the category should enable lead status
19556
19591
  */
19557
19592
  enableLeadStatus?: boolean;
19558
19593
 
@@ -19562,7 +19597,7 @@ export interface CategoryEntity extends Carrier {
19562
19597
  categoryFamilyId?: number;
19563
19598
 
19564
19599
  /**
19565
- * true if the country is deleted
19600
+ * true if the category is deleted
19566
19601
  */
19567
19602
  deleted?: boolean;
19568
19603
 
@@ -24898,6 +24933,11 @@ export interface WebPanelEntity extends Carrier {
24898
24933
  */
24899
24934
  neverReloadOnCurrentChange?: boolean;
24900
24935
 
24936
+ /**
24937
+ * The name of the custom object when VisibleIn is set to custom object
24938
+ */
24939
+ customObjectEntity?: string;
24940
+
24901
24941
  }
24902
24942
 
24903
24943
 
@@ -27464,16 +27504,6 @@ export interface Associate_LogOffWindowsUsersRequest {
27464
27504
  export interface AnalyticsData {
27465
27505
 
27466
27506
 
27467
- /**
27468
- * Amplitude API key for analytics integration
27469
- */
27470
- amplitudeApiKey?: string;
27471
-
27472
- /**
27473
- * Userflow authentication token
27474
- */
27475
- userflowToken?: string;
27476
-
27477
27507
  /**
27478
27508
  * User full name. Only included in Sod
27479
27509
  */
@@ -36578,6 +36608,7 @@ export interface Archive_GetRelatedData2Request {
36578
36608
 
36579
36609
 
36580
36610
 
36611
+
36581
36612
 
36582
36613
 
36583
36614
  /**
@@ -44909,6 +44940,115 @@ export interface OperationInfo extends Carrier {
44909
44940
 
44910
44941
 
44911
44942
 
44943
+ /**
44944
+ * Carrier for a font that is available for external use.
44945
+ */
44946
+ export interface AvailableFont extends Carrier {
44947
+
44948
+
44949
+ /**
44950
+ * Primary key
44951
+ */
44952
+ availableFontsId?: number;
44953
+
44954
+ /**
44955
+ * The display name of the font
44956
+ */
44957
+ displayName?: string;
44958
+
44959
+ /**
44960
+ * The font family name
44961
+ */
44962
+ fontFamily?: string;
44963
+
44964
+ /**
44965
+ * The path to the CSS for the font
44966
+ */
44967
+ cssPath?: string;
44968
+
44969
+ /**
44970
+ * The rank of the font in the list
44971
+ */
44972
+ rank?: number;
44973
+
44974
+ /**
44975
+ * True if font is deleted from available fonts
44976
+ */
44977
+ deleted?: boolean;
44978
+
44979
+ }
44980
+
44981
+
44982
+
44983
+
44984
+
44985
+
44986
+ /**
44987
+ * Create an return an empty font
44988
+ * Returns AvailableFont
44989
+ */
44990
+ export interface Marketing_CreateDefaultAvailableFontRequest {
44991
+ }
44992
+
44993
+ // response object: AvailableFont
44994
+
44995
+ /**
44996
+ * Saves the font and returns it with correct rank
44997
+ * Returns AvailableFont
44998
+ */
44999
+ export interface Marketing_SaveAvailableFontRequest {
45000
+ /**
45001
+ * The font to save
45002
+ */
45003
+ font: AvailableFont;
45004
+ }
45005
+
45006
+ // response object: AvailableFont
45007
+
45008
+ /**
45009
+ * Delete the font with the provided id
45010
+ * Returns boolean
45011
+ */
45012
+ export interface Marketing_DeleteAvailableFontRequest {
45013
+ /**
45014
+ * The id of the font to delete
45015
+ */
45016
+ availableFontId: number;
45017
+ }
45018
+
45019
+ // response object: boolean
45020
+
45021
+ /**
45022
+ * Get an available font by id
45023
+ * Returns AvailableFont
45024
+ */
45025
+ export interface Marketing_GetAvailableFontRequest {
45026
+ /**
45027
+ * The id of the font to retrieve
45028
+ */
45029
+ availableFontId: number;
45030
+ }
45031
+
45032
+ // response object: AvailableFont
45033
+
45034
+ /**
45035
+ * Set the rank on the font and reorder the rest of the fonts accordingly
45036
+ * Returns boolean
45037
+ */
45038
+ export interface Marketing_SetFontRankRequest {
45039
+ /**
45040
+ * The id of the available font to set the rank on
45041
+ */
45042
+ availableFontId: number;
45043
+ /**
45044
+ * The new rank to set on the font
45045
+ */
45046
+ rank: number;
45047
+ }
45048
+
45049
+ // response object: boolean
45050
+
45051
+
44912
45052
  /**
44913
45053
  * Definition and configuration of a Form
44914
45054
  */
@@ -50407,7 +50547,7 @@ export interface AI_ClearChatbotTurnsRequest {
50407
50547
 
50408
50548
 
50409
50549
  /**
50410
- * Entity for Copilot data source
50550
+ * Copilot data source - contains a list of settings for this source
50411
50551
  */
50412
50552
  export interface CopilotDataSourceEntity extends Carrier {
50413
50553
 
@@ -50438,7 +50578,7 @@ export interface CopilotDataSourceEntity extends Carrier {
50438
50578
  name?: string;
50439
50579
 
50440
50580
  /**
50441
- * Collection of data source settings
50581
+ * Collection of data source settings - each setting has key + value
50442
50582
  */
50443
50583
  settings?: CopilotDataSourceSetting[];
50444
50584
 
@@ -50451,7 +50591,7 @@ export interface CopilotDataSourceEntity extends Carrier {
50451
50591
 
50452
50592
 
50453
50593
  /**
50454
- * Setting for Copilot data source
50594
+ * Setting for a Copilot data source (key + value)
50455
50595
  */
50456
50596
  export interface CopilotDataSourceSetting extends Carrier {
50457
50597
 
@@ -50641,6 +50781,98 @@ export interface AI_TranslateEntityRequest {
50641
50781
  // response object: string
50642
50782
 
50643
50783
 
50784
+ /**
50785
+ * Natural language search results.
50786
+ */
50787
+ export interface NaturalLanguageSearch {
50788
+
50789
+
50790
+ /**
50791
+ * User's query.
50792
+ */
50793
+ query?: string;
50794
+
50795
+ /**
50796
+ * Markdown response from the AI.
50797
+ */
50798
+ responseMarkdown?: string;
50799
+
50800
+ /**
50801
+ * Type of entity we are searching. e.g. 'contact', 'project' etc.
50802
+ */
50803
+ entity?: string;
50804
+
50805
+ /**
50806
+ * Search criteria in ODATA format
50807
+ */
50808
+ oDataQuery?: string;
50809
+
50810
+ /**
50811
+ * Archive restrictions for the search query.
50812
+ */
50813
+ restrictions?: ArchiveRestrictionInfo[];
50814
+
50815
+ /**
50816
+ * AI internal context - opaque to callers.
50817
+ */
50818
+ internalContext?: string;
50819
+
50820
+ }
50821
+
50822
+
50823
+
50824
+
50825
+
50826
+
50827
+ /**
50828
+ * Return archive restrictions based on a natural language query.
50829
+ * Returns NaturalLanguageSearch
50830
+ */
50831
+ export interface AI_ParseQueryIntoRestrictionsRequest {
50832
+ /**
50833
+ * What the user asked for.
50834
+ */
50835
+ query: string;
50836
+ /**
50837
+ * Current context prompt. e.g. Current company name and id, what selection are we looking at?
50838
+ */
50839
+ currents: string;
50840
+ /**
50841
+ * Previous query, if applicable. NULL if no previous query.
50842
+ */
50843
+ previousQuery: NaturalLanguageSearch;
50844
+ }
50845
+
50846
+ // response object: NaturalLanguageSearch
50847
+
50848
+
50849
+ /**
50850
+ * Photo background remover results.
50851
+ */
50852
+ export interface CreatePhotoBackground {
50853
+
50854
+
50855
+ }
50856
+
50857
+
50858
+
50859
+
50860
+
50861
+
50862
+ /**
50863
+ * Returns an image with the background removed, leaving only the main subject
50864
+ * Returns Blob
50865
+ */
50866
+ export interface AI_RemovePhotoBackgroundRequest {
50867
+ /**
50868
+ * Image to be cleaned. JPG or PNG.
50869
+ */
50870
+ image: ArrayBuffer | string;
50871
+ }
50872
+
50873
+ // response object: Blob
50874
+
50875
+
50644
50876
  /**
50645
50877
  * Contains the answer to an AI search, with sources used.
50646
50878
  */
@@ -50809,6 +51041,145 @@ export interface AI_StartRagIndexingRequest {
50809
51041
  // response object: number
50810
51042
 
50811
51043
 
51044
+ /**
51045
+ * RAG namespace status. How is the indexing going?
51046
+ */
51047
+ export interface RagStatus {
51048
+
51049
+
51050
+ /**
51051
+ * UTC timestamp - when content indexeing started.
51052
+ */
51053
+ startedAt?: Date;
51054
+
51055
+ /**
51056
+ * UTC timestamp - when content indexing finished.
51057
+ */
51058
+ completedAt?: Date;
51059
+
51060
+ /**
51061
+ * Namespace the status belongs to.
51062
+ */
51063
+ namespaceName?: string;
51064
+
51065
+ /**
51066
+ * Unique identifier for current indexing job.
51067
+ */
51068
+ currentRunTag?: string;
51069
+
51070
+ /**
51071
+ * Is the indexing run finished?
51072
+ */
51073
+ isCompleted?: boolean;
51074
+
51075
+ /**
51076
+ * Was the indexing cancelled before completion?
51077
+ */
51078
+ isCancelled?: boolean;
51079
+
51080
+ /**
51081
+ * UTC timestamp - when last content was added/updated to index.
51082
+ */
51083
+ lastIndexed?: Date;
51084
+
51085
+ /**
51086
+ * How many documents/chunks are in the index - sum of all the other types
51087
+ */
51088
+ statusAll?: RagStatusChunks;
51089
+
51090
+ /**
51091
+ * How many documents/chunks of type Document are in the index
51092
+ */
51093
+ statusDocuments?: RagStatusChunks;
51094
+
51095
+ /**
51096
+ * How many documents/chunks of type FAQ are in the index
51097
+ */
51098
+ statusFAQ?: RagStatusChunks;
51099
+
51100
+ /**
51101
+ * How many documents/chunks of type None are in the index
51102
+ */
51103
+ statusNone?: RagStatusChunks;
51104
+
51105
+ /**
51106
+ * How many documents/chunks of type Product are in the index
51107
+ */
51108
+ statusProduct?: RagStatusChunks;
51109
+
51110
+ /**
51111
+ * How many documents/chunks of type Ticket are in the index
51112
+ */
51113
+ statusTicket?: RagStatusChunks;
51114
+
51115
+ /**
51116
+ * How many documents/chunks of type Webpage are in the index
51117
+ */
51118
+ statusWebpage?: RagStatusChunks;
51119
+
51120
+ /**
51121
+ * How many documents/chunks of type Website are in the index
51122
+ */
51123
+ statusWebsite?: RagStatusChunks;
51124
+
51125
+ }
51126
+
51127
+
51128
+
51129
+
51130
+
51131
+
51132
+ /**
51133
+ * Get the current status.
51134
+ * Returns RagStatus
51135
+ */
51136
+ export interface AI_GetIndexingStatusRequest {
51137
+ /**
51138
+ * Identifies the namespace to store content in.
51139
+ */
51140
+ namespaceName: string;
51141
+ }
51142
+
51143
+ // response object: RagStatus
51144
+
51145
+ /**
51146
+ * Cancel the current re-indexing job on a given namespace. Leaves data in inconsistent state, because removal of old data is skipped.
51147
+ * Returns RagStatus
51148
+ */
51149
+ export interface AI_CancelIndexingRequest {
51150
+ /**
51151
+ * Identifies the namespace to stop indexing in.
51152
+ */
51153
+ namespaceName: string;
51154
+ }
51155
+
51156
+ // response object: RagStatus
51157
+
51158
+
51159
+ /**
51160
+ * RAG namespace document index statistics
51161
+ */
51162
+ export interface RagStatusChunks {
51163
+
51164
+
51165
+ /**
51166
+ * How many chunks stored in the database
51167
+ */
51168
+ numberOfChunks?: number;
51169
+
51170
+ /**
51171
+ * How many documents stored in the database
51172
+ */
51173
+ numberOfDocuments?: number;
51174
+
51175
+ }
51176
+
51177
+
51178
+
51179
+
51180
+
51181
+
51182
+
50812
51183
  /**
50813
51184
  * Summary functions for various entities
50814
51185
  */