@superoffice/webapi 11.8.788 → 11.10.721

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 (51) hide show
  1. package/dist/cjs/AIAgent.d.ts +94 -0
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +218 -0
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/Carriers.d.ts +337 -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 +250 -24
  10. package/dist/cjs/Converters.js.map +1 -1
  11. package/dist/cjs/Enums.d.ts +113 -17
  12. package/dist/cjs/Enums.d.ts.map +1 -1
  13. package/dist/cjs/Enums.js +120 -21
  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/cjs/TicketAgent.d.ts +8 -0
  20. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  21. package/dist/cjs/TicketAgent.js +22 -0
  22. package/dist/cjs/TicketAgent.js.map +1 -1
  23. package/dist/esm/AIAgent.d.ts +94 -0
  24. package/dist/esm/AIAgent.d.ts.map +1 -1
  25. package/dist/esm/AIAgent.js +219 -1
  26. package/dist/esm/AIAgent.js.map +1 -1
  27. package/dist/esm/Carriers.d.ts +337 -18
  28. package/dist/esm/Carriers.d.ts.map +1 -1
  29. package/dist/esm/Converters.d.ts +15 -0
  30. package/dist/esm/Converters.d.ts.map +1 -1
  31. package/dist/esm/Converters.js +228 -18
  32. package/dist/esm/Converters.js.map +1 -1
  33. package/dist/esm/Enums.d.ts +113 -17
  34. package/dist/esm/Enums.d.ts.map +1 -1
  35. package/dist/esm/Enums.js +116 -17
  36. package/dist/esm/Enums.js.map +1 -1
  37. package/dist/esm/MarketingAgent.d.ts +68 -0
  38. package/dist/esm/MarketingAgent.d.ts.map +1 -1
  39. package/dist/esm/MarketingAgent.js +157 -0
  40. package/dist/esm/MarketingAgent.js.map +1 -1
  41. package/dist/esm/TicketAgent.d.ts +8 -0
  42. package/dist/esm/TicketAgent.d.ts.map +1 -1
  43. package/dist/esm/TicketAgent.js +22 -0
  44. package/dist/esm/TicketAgent.js.map +1 -1
  45. package/package.json +3 -3
  46. package/src/AIAgent.ts +364 -0
  47. package/src/Carriers.ts +460 -20
  48. package/src/Converters.ts +271 -22
  49. package/src/Enums.ts +120 -18
  50. package/src/MarketingAgent.ts +256 -0
  51. package/src/TicketAgent.ts +24 -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"
@@ -10780,6 +10785,16 @@ export interface Project extends Carrier {
10780
10785
  */
10781
10786
  activeErpLinks?: number;
10782
10787
 
10788
+ /**
10789
+ * Reserved field for Lyyti event when project is linked to an event.
10790
+ */
10791
+ eventId?: number;
10792
+
10793
+ /**
10794
+ * Reserved field for Lyyti event when project is linked to an event, is the event start date.
10795
+ */
10796
+ startDate?: Date;
10797
+
10783
10798
  }
10784
10799
 
10785
10800
 
@@ -10917,6 +10932,16 @@ export interface ProjectEntity extends Carrier {
10917
10932
  */
10918
10933
  activeErpLinks?: number;
10919
10934
 
10935
+ /**
10936
+ * Reserved field for Lyyti event when project is linked to an event.
10937
+ */
10938
+ eventId?: number;
10939
+
10940
+ /**
10941
+ * Reserved field for Lyyti event when project is linked to an event, is the event start date.
10942
+ */
10943
+ startDate?: Date;
10944
+
10920
10945
  /**
10921
10946
  * Dictionary of user defined field data.
10922
10947
  * 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"
@@ -11785,6 +11810,11 @@ export interface ProjectMember extends Carrier {
11785
11810
  */
11786
11811
  updated?: Date;
11787
11812
 
11813
+ /**
11814
+ * Reserved field for Lyyti event participants.
11815
+ */
11816
+ eventParticipantStatus?: enums.ProjectMemberEventParticipantStatus;
11817
+
11788
11818
  }
11789
11819
 
11790
11820
 
@@ -15286,6 +15316,16 @@ export interface ParticipantInfo {
15286
15316
  */
15287
15317
  description?: string;
15288
15318
 
15319
+ /**
15320
+ * The type of participant if the appointment is externally owned.
15321
+ */
15322
+ externallyOwnedType?: enums.ExternallyOwnedType;
15323
+
15324
+ /**
15325
+ * The status of the externally owned participant.
15326
+ */
15327
+ externallyOwnedStatus?: enums.ExternallyOwnedStatus;
15328
+
15289
15329
  }
15290
15330
 
15291
15331
 
@@ -19318,7 +19358,7 @@ export interface AmountClassEntity extends Carrier {
19318
19358
 
19319
19359
 
19320
19360
  /**
19321
- * Utm parameters for a given person.
19361
+ * Carrier for an automated category update setting.
19322
19362
  */
19323
19363
  export interface AutomatedCategoryUpdate extends Carrier {
19324
19364
 
@@ -19498,20 +19538,40 @@ export interface Category extends Carrier {
19498
19538
 
19499
19539
 
19500
19540
  /**
19501
- * The list item Id
19541
+ * The category identifier
19502
19542
  */
19503
- id: number;
19543
+ id?: number;
19504
19544
 
19505
19545
  /**
19506
- * The list item Value
19546
+ * The category name
19507
19547
  */
19508
19548
  value?: string;
19509
19549
 
19510
19550
  /**
19511
- * The list item Tooltip
19551
+ * The category description
19512
19552
  */
19513
19553
  tooltip?: string;
19514
19554
 
19555
+ /**
19556
+ * Enum of the group this category belongs to, static list of 5 groups
19557
+ */
19558
+ categoryGroup?: enums.CategoryGroup;
19559
+
19560
+ /**
19561
+ * True if the category should enable lead status
19562
+ */
19563
+ enableLeadStatus?: boolean;
19564
+
19565
+ /**
19566
+ * The rank of the category
19567
+ */
19568
+ rank?: number;
19569
+
19570
+ /**
19571
+ * True if the category is deleted
19572
+ */
19573
+ deleted?: boolean;
19574
+
19515
19575
  }
19516
19576
 
19517
19577
 
@@ -19552,7 +19612,7 @@ export interface CategoryEntity extends Carrier {
19552
19612
  rank?: number;
19553
19613
 
19554
19614
  /**
19555
- * True if the category should enable lead stage
19615
+ * True if the category should enable lead status
19556
19616
  */
19557
19617
  enableLeadStatus?: boolean;
19558
19618
 
@@ -19562,7 +19622,7 @@ export interface CategoryEntity extends Carrier {
19562
19622
  categoryFamilyId?: number;
19563
19623
 
19564
19624
  /**
19565
- * true if the country is deleted
19625
+ * true if the category is deleted
19566
19626
  */
19567
19627
  deleted?: boolean;
19568
19628
 
@@ -24898,6 +24958,11 @@ export interface WebPanelEntity extends Carrier {
24898
24958
  */
24899
24959
  neverReloadOnCurrentChange?: boolean;
24900
24960
 
24961
+ /**
24962
+ * The name of the custom object when VisibleIn is set to custom object
24963
+ */
24964
+ customObjectEntity?: string;
24965
+
24901
24966
  }
24902
24967
 
24903
24968
 
@@ -27464,16 +27529,6 @@ export interface Associate_LogOffWindowsUsersRequest {
27464
27529
  export interface AnalyticsData {
27465
27530
 
27466
27531
 
27467
- /**
27468
- * Amplitude API key for analytics integration
27469
- */
27470
- amplitudeApiKey?: string;
27471
-
27472
- /**
27473
- * Userflow authentication token
27474
- */
27475
- userflowToken?: string;
27476
-
27477
27532
  /**
27478
27533
  * User full name. Only included in Sod
27479
27534
  */
@@ -36578,6 +36633,7 @@ export interface Archive_GetRelatedData2Request {
36578
36633
 
36579
36634
 
36580
36635
 
36636
+
36581
36637
 
36582
36638
 
36583
36639
  /**
@@ -44909,6 +44965,115 @@ export interface OperationInfo extends Carrier {
44909
44965
 
44910
44966
 
44911
44967
 
44968
+ /**
44969
+ * Carrier for a font that is available for external use.
44970
+ */
44971
+ export interface AvailableFont extends Carrier {
44972
+
44973
+
44974
+ /**
44975
+ * Primary key
44976
+ */
44977
+ availableFontsId?: number;
44978
+
44979
+ /**
44980
+ * The display name of the font
44981
+ */
44982
+ displayName?: string;
44983
+
44984
+ /**
44985
+ * The font family name
44986
+ */
44987
+ fontFamily?: string;
44988
+
44989
+ /**
44990
+ * The path to the CSS for the font
44991
+ */
44992
+ cssPath?: string;
44993
+
44994
+ /**
44995
+ * The rank of the font in the list
44996
+ */
44997
+ rank?: number;
44998
+
44999
+ /**
45000
+ * True if font is deleted from available fonts
45001
+ */
45002
+ deleted?: boolean;
45003
+
45004
+ }
45005
+
45006
+
45007
+
45008
+
45009
+
45010
+
45011
+ /**
45012
+ * Create an return an empty font
45013
+ * Returns AvailableFont
45014
+ */
45015
+ export interface Marketing_CreateDefaultAvailableFontRequest {
45016
+ }
45017
+
45018
+ // response object: AvailableFont
45019
+
45020
+ /**
45021
+ * Saves the font and returns it with correct rank
45022
+ * Returns AvailableFont
45023
+ */
45024
+ export interface Marketing_SaveAvailableFontRequest {
45025
+ /**
45026
+ * The font to save
45027
+ */
45028
+ font: AvailableFont;
45029
+ }
45030
+
45031
+ // response object: AvailableFont
45032
+
45033
+ /**
45034
+ * Delete the font with the provided id
45035
+ * Returns boolean
45036
+ */
45037
+ export interface Marketing_DeleteAvailableFontRequest {
45038
+ /**
45039
+ * The id of the font to delete
45040
+ */
45041
+ availableFontId: number;
45042
+ }
45043
+
45044
+ // response object: boolean
45045
+
45046
+ /**
45047
+ * Get an available font by id
45048
+ * Returns AvailableFont
45049
+ */
45050
+ export interface Marketing_GetAvailableFontRequest {
45051
+ /**
45052
+ * The id of the font to retrieve
45053
+ */
45054
+ availableFontId: number;
45055
+ }
45056
+
45057
+ // response object: AvailableFont
45058
+
45059
+ /**
45060
+ * Set the rank on the font and reorder the rest of the fonts accordingly
45061
+ * Returns boolean
45062
+ */
45063
+ export interface Marketing_SetFontRankRequest {
45064
+ /**
45065
+ * The id of the available font to set the rank on
45066
+ */
45067
+ availableFontId: number;
45068
+ /**
45069
+ * The new rank to set on the font
45070
+ */
45071
+ rank: number;
45072
+ }
45073
+
45074
+ // response object: boolean
45075
+
45076
+
44912
45077
  /**
44913
45078
  * Definition and configuration of a Form
44914
45079
  */
@@ -50407,7 +50572,7 @@ export interface AI_ClearChatbotTurnsRequest {
50407
50572
 
50408
50573
 
50409
50574
  /**
50410
- * Entity for Copilot data source
50575
+ * Copilot data source - contains a list of settings for this source
50411
50576
  */
50412
50577
  export interface CopilotDataSourceEntity extends Carrier {
50413
50578
 
@@ -50438,7 +50603,7 @@ export interface CopilotDataSourceEntity extends Carrier {
50438
50603
  name?: string;
50439
50604
 
50440
50605
  /**
50441
- * Collection of data source settings
50606
+ * Collection of data source settings - each setting has key + value
50442
50607
  */
50443
50608
  settings?: CopilotDataSourceSetting[];
50444
50609
 
@@ -50451,7 +50616,7 @@ export interface CopilotDataSourceEntity extends Carrier {
50451
50616
 
50452
50617
 
50453
50618
  /**
50454
- * Setting for Copilot data source
50619
+ * Setting for a Copilot data source (key + value)
50455
50620
  */
50456
50621
  export interface CopilotDataSourceSetting extends Carrier {
50457
50622
 
@@ -50519,6 +50684,21 @@ export interface CopilotEntity extends Carrier {
50519
50684
  export interface FormDesignCarrier {
50520
50685
 
50521
50686
 
50687
+ /**
50688
+ * Generated CSS styles based on the analyzed design.
50689
+ */
50690
+ cssStyles?: string;
50691
+
50692
+ /**
50693
+ * Confidence score (0-1) of the design analysis.
50694
+ */
50695
+ confidence?: number;
50696
+
50697
+ /**
50698
+ * Comments on the analysis
50699
+ */
50700
+ notes?: string;
50701
+
50522
50702
  }
50523
50703
 
50524
50704
 
@@ -50552,6 +50732,40 @@ export interface AI_GetFormDesignFromUrlRequest {
50552
50732
 
50553
50733
  // response object: StringDictionary
50554
50734
 
50735
+ /**
50736
+ * Returns Form Designer CSS based on the look of a picture
50737
+ * Returns FormDesignCarrier
50738
+ */
50739
+ export interface AI_GetFormDesignCssFromImageRequest {
50740
+ /**
50741
+ * Image data to analyze for design
50742
+ */
50743
+ image: ArrayBuffer | string;
50744
+ /**
50745
+ * List of CSS classes to generate styles for.
50746
+ */
50747
+ cssClasses: string[];
50748
+ }
50749
+
50750
+ // response object: FormDesignCarrier
50751
+
50752
+ /**
50753
+ * Returns Form Designer properties based on the look of a web page
50754
+ * Returns FormDesignCarrier
50755
+ */
50756
+ export interface AI_GetFormDesignCssFromUrlRequest {
50757
+ /**
50758
+ * Url of the web page to extract style from.
50759
+ */
50760
+ url: string;
50761
+ /**
50762
+ * List of CSS classes to generate styles for.
50763
+ */
50764
+ cssClasses: string[];
50765
+ }
50766
+
50767
+ // response object: FormDesignCarrier
50768
+
50555
50769
 
50556
50770
  /**
50557
50771
  * Sentiment information: Score (-100 to 100) and Confidence (0 to 100)
@@ -50641,6 +50855,98 @@ export interface AI_TranslateEntityRequest {
50641
50855
  // response object: string
50642
50856
 
50643
50857
 
50858
+ /**
50859
+ * Natural language search results.
50860
+ */
50861
+ export interface NaturalLanguageSearch {
50862
+
50863
+
50864
+ /**
50865
+ * User's query.
50866
+ */
50867
+ query?: string;
50868
+
50869
+ /**
50870
+ * Markdown response from the AI.
50871
+ */
50872
+ responseMarkdown?: string;
50873
+
50874
+ /**
50875
+ * Type of entity we are searching. e.g. 'contact', 'project' etc.
50876
+ */
50877
+ entity?: string;
50878
+
50879
+ /**
50880
+ * Search criteria in ODATA format
50881
+ */
50882
+ oDataQuery?: string;
50883
+
50884
+ /**
50885
+ * Archive restrictions for the search query.
50886
+ */
50887
+ restrictions?: ArchiveRestrictionInfo[];
50888
+
50889
+ /**
50890
+ * AI internal context - opaque to callers.
50891
+ */
50892
+ internalContext?: string;
50893
+
50894
+ }
50895
+
50896
+
50897
+
50898
+
50899
+
50900
+
50901
+ /**
50902
+ * Return archive restrictions based on a natural language query.
50903
+ * Returns NaturalLanguageSearch
50904
+ */
50905
+ export interface AI_ParseQueryIntoRestrictionsRequest {
50906
+ /**
50907
+ * What the user asked for.
50908
+ */
50909
+ query: string;
50910
+ /**
50911
+ * Current context prompt. e.g. Current company name and id, what selection are we looking at?
50912
+ */
50913
+ currents: string;
50914
+ /**
50915
+ * Previous query, if applicable. NULL if no previous query.
50916
+ */
50917
+ previousQuery: NaturalLanguageSearch;
50918
+ }
50919
+
50920
+ // response object: NaturalLanguageSearch
50921
+
50922
+
50923
+ /**
50924
+ * Photo background remover results.
50925
+ */
50926
+ export interface CreatePhotoBackground {
50927
+
50928
+
50929
+ }
50930
+
50931
+
50932
+
50933
+
50934
+
50935
+
50936
+ /**
50937
+ * Returns an image with the background removed, leaving only the main subject
50938
+ * Returns Blob
50939
+ */
50940
+ export interface AI_RemovePhotoBackgroundRequest {
50941
+ /**
50942
+ * Image to be cleaned. JPG or PNG.
50943
+ */
50944
+ image: ArrayBuffer | string;
50945
+ }
50946
+
50947
+ // response object: Blob
50948
+
50949
+
50644
50950
  /**
50645
50951
  * Contains the answer to an AI search, with sources used.
50646
50952
  */
@@ -50809,6 +51115,140 @@ export interface AI_StartRagIndexingRequest {
50809
51115
  // response object: number
50810
51116
 
50811
51117
 
51118
+ /**
51119
+ * RAG namespace status. How is the indexing going?
51120
+ */
51121
+ export interface RagStatus {
51122
+
51123
+
51124
+ /**
51125
+ * UTC timestamp - when content indexeing started.
51126
+ */
51127
+ startedAt?: Date;
51128
+
51129
+ /**
51130
+ * UTC timestamp - when content indexing finished.
51131
+ */
51132
+ completedAt?: Date;
51133
+
51134
+ /**
51135
+ * Namespace the status belongs to.
51136
+ */
51137
+ namespaceName?: string;
51138
+
51139
+ /**
51140
+ * Unique identifier for current indexing job.
51141
+ */
51142
+ currentRunTag?: string;
51143
+
51144
+ /**
51145
+ * Is the indexing run finished?
51146
+ */
51147
+ isCompleted?: boolean;
51148
+
51149
+ /**
51150
+ * Was the indexing cancelled before completion?
51151
+ */
51152
+ isCancelled?: boolean;
51153
+
51154
+ /**
51155
+ * UTC timestamp - when last content was added/updated to index.
51156
+ */
51157
+ lastIndexed?: Date;
51158
+
51159
+ /**
51160
+ * How many documents/chunks are in the index - sum of all the other types
51161
+ */
51162
+ statusAll?: RagStatusChunks;
51163
+
51164
+ /**
51165
+ * How many documents/chunks of type Document are in the index
51166
+ */
51167
+ statusDocuments?: RagStatusChunks;
51168
+
51169
+ /**
51170
+ * How many documents/chunks of type FAQ are in the index
51171
+ */
51172
+ statusFAQ?: RagStatusChunks;
51173
+
51174
+ /**
51175
+ * How many documents/chunks of type None are in the index
51176
+ */
51177
+ statusNone?: RagStatusChunks;
51178
+
51179
+ /**
51180
+ * How many documents/chunks of type Product are in the index
51181
+ */
51182
+ statusProduct?: RagStatusChunks;
51183
+
51184
+ /**
51185
+ * How many documents/chunks of type Ticket are in the index
51186
+ */
51187
+ statusTicket?: RagStatusChunks;
51188
+
51189
+ /**
51190
+ * How many documents/chunks of type Webpage are in the index
51191
+ */
51192
+ statusWebpage?: RagStatusChunks;
51193
+
51194
+ }
51195
+
51196
+
51197
+
51198
+
51199
+
51200
+
51201
+ /**
51202
+ * Get the current status.
51203
+ * Returns RagStatus
51204
+ */
51205
+ export interface AI_GetIndexingStatusRequest {
51206
+ /**
51207
+ * Identifies the namespace to store content in.
51208
+ */
51209
+ namespaceName: string;
51210
+ }
51211
+
51212
+ // response object: RagStatus
51213
+
51214
+ /**
51215
+ * Cancel the current re-indexing job on a given namespace. Leaves data in inconsistent state, because removal of old data is skipped.
51216
+ * Returns RagStatus
51217
+ */
51218
+ export interface AI_CancelIndexingRequest {
51219
+ /**
51220
+ * Identifies the namespace to stop indexing in.
51221
+ */
51222
+ namespaceName: string;
51223
+ }
51224
+
51225
+ // response object: RagStatus
51226
+
51227
+
51228
+ /**
51229
+ * RAG namespace document index statistics
51230
+ */
51231
+ export interface RagStatusChunks {
51232
+
51233
+
51234
+ /**
51235
+ * How many chunks stored in the database
51236
+ */
51237
+ numberOfChunks?: number;
51238
+
51239
+ /**
51240
+ * How many documents stored in the database
51241
+ */
51242
+ numberOfDocuments?: number;
51243
+
51244
+ }
51245
+
51246
+
51247
+
51248
+
51249
+
51250
+
51251
+
50812
51252
  /**
50813
51253
  * Summary functions for various entities
50814
51254
  */