@superoffice/webapi 11.1.447 → 11.2.694

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 +83 -0
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +173 -0
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/Carriers.d.ts +187 -1
  6. package/dist/cjs/Carriers.d.ts.map +1 -1
  7. package/dist/cjs/ContactAgent.d.ts +33 -2
  8. package/dist/cjs/ContactAgent.d.ts.map +1 -1
  9. package/dist/cjs/ContactAgent.js +67 -0
  10. package/dist/cjs/ContactAgent.js.map +1 -1
  11. package/dist/cjs/Converters.d.ts +12 -0
  12. package/dist/cjs/Converters.d.ts.map +1 -1
  13. package/dist/cjs/Converters.js +155 -15
  14. package/dist/cjs/Converters.js.map +1 -1
  15. package/dist/cjs/DiagnosticsAgent.d.ts +7 -0
  16. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
  17. package/dist/cjs/DiagnosticsAgent.js +24 -0
  18. package/dist/cjs/DiagnosticsAgent.js.map +1 -1
  19. package/dist/cjs/Enums.d.ts +34 -1
  20. package/dist/cjs/Enums.d.ts.map +1 -1
  21. package/dist/cjs/Enums.js +36 -2
  22. package/dist/cjs/Enums.js.map +1 -1
  23. package/dist/esm/AIAgent.d.ts +83 -0
  24. package/dist/esm/AIAgent.d.ts.map +1 -1
  25. package/dist/esm/AIAgent.js +173 -0
  26. package/dist/esm/AIAgent.js.map +1 -1
  27. package/dist/esm/Carriers.d.ts +187 -1
  28. package/dist/esm/Carriers.d.ts.map +1 -1
  29. package/dist/esm/ContactAgent.d.ts +33 -2
  30. package/dist/esm/ContactAgent.d.ts.map +1 -1
  31. package/dist/esm/ContactAgent.js +67 -0
  32. package/dist/esm/ContactAgent.js.map +1 -1
  33. package/dist/esm/Converters.d.ts +12 -0
  34. package/dist/esm/Converters.d.ts.map +1 -1
  35. package/dist/esm/Converters.js +128 -0
  36. package/dist/esm/Converters.js.map +1 -1
  37. package/dist/esm/DiagnosticsAgent.d.ts +7 -0
  38. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
  39. package/dist/esm/DiagnosticsAgent.js +24 -0
  40. package/dist/esm/DiagnosticsAgent.js.map +1 -1
  41. package/dist/esm/Enums.d.ts +34 -1
  42. package/dist/esm/Enums.d.ts.map +1 -1
  43. package/dist/esm/Enums.js +34 -0
  44. package/dist/esm/Enums.js.map +1 -1
  45. package/package.json +3 -3
  46. package/src/AIAgent.ts +296 -0
  47. package/src/Carriers.ts +263 -1
  48. package/src/ContactAgent.ts +116 -2
  49. package/src/Converters.ts +160 -0
  50. package/src/DiagnosticsAgent.ts +30 -0
  51. package/src/Enums.ts +35 -0
package/src/Carriers.ts CHANGED
@@ -7101,6 +7101,23 @@ export interface Contact_ValidateContactEntityRequest {
7101
7101
 
7102
7102
  // response object: StringDictionary
7103
7103
 
7104
+ /**
7105
+ * Enrich a contact with data from the AI Enrichment service. This will update the contact with address, phone number, and email.
7106
+ * Returns ContactEntity
7107
+ */
7108
+ export interface Contact_EnrichContactEntityRequest {
7109
+ /**
7110
+ * The contact entity to enrich.
7111
+ */
7112
+ contactEntity: ContactEntity;
7113
+ /**
7114
+ * Id from the EnrichContact provider
7115
+ */
7116
+ enrichId: string;
7117
+ }
7118
+
7119
+ // response object: ContactEntity
7120
+
7104
7121
 
7105
7122
  /**
7106
7123
  * Getting the contacts where the user currently logged in is set as contact owner.
@@ -7255,6 +7272,19 @@ export interface Contact_GetPreviewContactRequest {
7255
7272
 
7256
7273
  // response object: PreviewContact
7257
7274
 
7275
+ /**
7276
+ * Get a contact from its ID
7277
+ * Returns PreviewContact
7278
+ */
7279
+ export interface Contact_GetPreviewEnrichContactRequest {
7280
+ /**
7281
+ * Enrich Contact ID from the EnrichContact MDO list provider
7282
+ */
7283
+ enrichId: string;
7284
+ }
7285
+
7286
+ // response object: PreviewContact
7287
+
7258
7288
 
7259
7289
 
7260
7290
 
@@ -27187,6 +27217,29 @@ export interface Diagnostics_RemoveExpiredSystemMessagesRequest {
27187
27217
  // Void response...
27188
27218
 
27189
27219
 
27220
+ /**
27221
+ * Operations related to table management
27222
+ */
27223
+ export interface TableManager extends Carrier {
27224
+
27225
+
27226
+ }
27227
+
27228
+
27229
+
27230
+
27231
+
27232
+
27233
+ /**
27234
+ * Increment save and return NextTableNumber, to be used when creating new extra table
27235
+ * Returns number
27236
+ */
27237
+ export interface Diagnostics_GetNextTableNumberRequest {
27238
+ }
27239
+
27240
+ // response object: number
27241
+
27242
+
27190
27243
  /**
27191
27244
  * Operations related to installation, upgrade and maintenance
27192
27245
  */
@@ -48829,7 +48882,7 @@ export interface ChatbotTurn {
48829
48882
 
48830
48883
 
48831
48884
  /**
48832
- * UTC timestamp for turn - when response was generated
48885
+ * UTC timestamp for turn - when response was generated.
48833
48886
  */
48834
48887
  timestamp?: Date;
48835
48888
 
@@ -49033,6 +49086,174 @@ export interface AI_TranslateEntityRequest {
49033
49086
  // response object: string
49034
49087
 
49035
49088
 
49089
+ /**
49090
+ * Contains the answer to an AI search, with sources used.
49091
+ */
49092
+ export interface RagAnswer {
49093
+
49094
+
49095
+ /**
49096
+ * Response to the question
49097
+ */
49098
+ answer?: string;
49099
+
49100
+ /**
49101
+ * Array of sources used to ground the answer. Each source has a chunk of text, relevancy score, title.
49102
+ */
49103
+ source?: RagResult[];
49104
+
49105
+ /**
49106
+ * Unique identifier for this answer. Used for correlating feedback to answers
49107
+ */
49108
+ trackingId?: string;
49109
+
49110
+ }
49111
+
49112
+
49113
+
49114
+
49115
+
49116
+
49117
+ /**
49118
+ * Returns an answer.
49119
+ * Returns RagAnswer
49120
+ */
49121
+ export interface AI_AnswerRequest {
49122
+ /**
49123
+ * Defines the search domain used for generating answer. e.g. 'ServiceCopilot'
49124
+ */
49125
+ namespaceName: string;
49126
+ /**
49127
+ * Question. The search query to answer.
49128
+ */
49129
+ query: string;
49130
+ /**
49131
+ * Filter results based on content type. Default: None = no filtering
49132
+ */
49133
+ type: enums.RagType;
49134
+ /**
49135
+ * Max Number of results to use in generating answer.
49136
+ */
49137
+ top: number;
49138
+ }
49139
+
49140
+ // response object: RagAnswer
49141
+
49142
+ /**
49143
+ * Send feedback on answer - feedback is logged and used to improve the answer algorithm.
49144
+ */
49145
+ export interface AI_AnswerFeedbackRequest {
49146
+ /**
49147
+ * The id of the answer that you are giving feedback to.
49148
+ */
49149
+ trackingId: string;
49150
+ /**
49151
+ * True = Like, False = Dislike.
49152
+ */
49153
+ isThumbsUp: boolean;
49154
+ }
49155
+
49156
+ // Void response...
49157
+
49158
+ /**
49159
+ * Signal that answer was inserted into response- feedback is logged and used to improve the answer algorithm.
49160
+ */
49161
+ export interface AI_AnswerAcceptedRequest {
49162
+ /**
49163
+ * The id of the answer that you are giving feedback to.
49164
+ */
49165
+ trackingId: string;
49166
+ }
49167
+
49168
+ // Void response...
49169
+
49170
+
49171
+ /**
49172
+ * Contains the result of an AI search, with relevance score, document refernce, relevant text chunk.
49173
+ */
49174
+ export interface RagResult {
49175
+
49176
+
49177
+ /**
49178
+ * Markdown text that matched query.
49179
+ */
49180
+ chunk?: string;
49181
+
49182
+ /**
49183
+ * Title or filename of matched document, extracted from the Metadata
49184
+ */
49185
+ title?: string;
49186
+
49187
+ /**
49188
+ * Matched document's unique id. Typically a URI.
49189
+ */
49190
+ id?: string;
49191
+
49192
+ /**
49193
+ * Content type (web/faq/ticket/...)
49194
+ */
49195
+ type?: enums.RagType;
49196
+
49197
+ /**
49198
+ * Relevancy score (0-1). How close this chunk of the document matched the query.
49199
+ */
49200
+ score?: number;
49201
+
49202
+ /**
49203
+ * Dictionary of metadata for this result. Keys depend on the source of the document. e.g. 'Title', 'Filename', 'Url', etc.
49204
+ */
49205
+ metadata?: StringObjectDictionary;
49206
+
49207
+ }
49208
+
49209
+
49210
+
49211
+
49212
+
49213
+
49214
+ /**
49215
+ * Returns semantic search results from vector database.
49216
+ * Returns RagResult[]
49217
+ */
49218
+ export interface AI_SearchRequest {
49219
+ /**
49220
+ * Defines the search domain. e.g. 'ServiceCopilot'.
49221
+ */
49222
+ namespaceName: string;
49223
+ /**
49224
+ * Search query.
49225
+ */
49226
+ query: string;
49227
+ /**
49228
+ * Filter results based on a specific content type. Default: None = no filtering
49229
+ */
49230
+ type: enums.RagType;
49231
+ /**
49232
+ * Max Number of results to return.
49233
+ */
49234
+ top: number;
49235
+ }
49236
+
49237
+ // response object: RagResult[]
49238
+
49239
+ /**
49240
+ * Kicks off a batch task to update the RAG index
49241
+ * Returns number
49242
+ */
49243
+ export interface AI_StartRagIndexingRequest {
49244
+ /**
49245
+ * Defines the search domain. e.g. 'ServiceCopilot'.
49246
+ */
49247
+ namespaceName: string;
49248
+ /**
49249
+ * (Optional) Identifies the data source to update. Blank = all sources
49250
+ */
49251
+ sourceId: string;
49252
+ }
49253
+
49254
+ // response object: number
49255
+
49256
+
49036
49257
  /**
49037
49258
  * Summary functions for various entities
49038
49259
  */
@@ -49187,6 +49408,8 @@ export interface AI_GetSummarizeSalePromptRequest {
49187
49408
 
49188
49409
 
49189
49410
 
49411
+
49412
+
49190
49413
  /**
49191
49414
  * Class used to map relationship between AssociateId and the user's email.
49192
49415
  */
@@ -50306,6 +50529,45 @@ export interface WorkflowStepCreateSale extends WorkflowStepBase {
50306
50529
 
50307
50530
 
50308
50531
 
50532
+ /**
50533
+ * Step in workflow.
50534
+ */
50535
+ export interface WorkflowStepDistributeToOwner extends WorkflowStepBase {
50536
+
50537
+
50538
+ /**
50539
+ * If set to true, participants will only get owner if no owner
50540
+ */
50541
+ onlyToUnassigned?: boolean;
50542
+
50543
+ /**
50544
+ * Selected associates to be owner of participants
50545
+ */
50546
+ associates?: number[];
50547
+
50548
+ /**
50549
+ * Selected usergroups to be
50550
+ */
50551
+ userGroups?: number[];
50552
+
50553
+ /**
50554
+ * The ordered queue of next new owners
50555
+ */
50556
+ distributeQueue?: number[];
50557
+
50558
+ /**
50559
+ * If no other available, assign to this associate
50560
+ */
50561
+ defaultAssociate?: number;
50562
+
50563
+ }
50564
+
50565
+
50566
+
50567
+
50568
+
50569
+
50570
+
50309
50571
  /**
50310
50572
  * Step in workflow.
50311
50573
  */
@@ -77,12 +77,16 @@ export interface IContactAgent {
77
77
  getContactSummaryAsync(contactId: number, limit: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ContactSummary >;
78
78
  validateContactEntityAsync(request: carriers.Contact_ValidateContactEntityRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
79
79
  validateContactEntityAsync(contactEntity: carriers.ContactEntity, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
80
+ enrichContactEntityAsync(request: carriers.Contact_EnrichContactEntityRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ContactEntity >;
81
+ enrichContactEntityAsync(contactEntity: carriers.ContactEntity, enrichId: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ContactEntity >;
80
82
  getContactListAsync(contactIds: number[]) : Promise< carriers.Contact[] >;
81
83
  getMyContactsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Contact[] >;
82
84
  getMyRecentContactsAsync(request: carriers.Contact_GetMyRecentContactsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Contact[] >;
83
85
  getMyRecentContactsAsync(sourceType: enums.ContactSourceType, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Contact[] >;
84
86
  getPreviewContactAsync(request: carriers.Contact_GetPreviewContactRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact >;
85
87
  getPreviewContactAsync(contactId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact >;
88
+ getPreviewEnrichContactAsync(request: carriers.Contact_GetPreviewEnrichContactRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact >;
89
+ getPreviewEnrichContactAsync(enrichId: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact >;
86
90
  } // interface IContactAgent
87
91
 
88
92
 
@@ -1477,6 +1481,62 @@ export class ContactAgent extends base.WebApiBase implements IContactAgent {
1477
1481
  return this._validateContactEntityAsync( _request, _options );
1478
1482
  }
1479
1483
 
1484
+
1485
+ private async _enrichContactEntityAsync(request: carriers.Contact_EnrichContactEntityRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ContactEntity > {
1486
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1487
+ base.WebApiBase.SetPending(options);
1488
+ return new Promise< carriers.ContactEntity >(async (resolve, reject) => {
1489
+ try {
1490
+ config.baseURL = this._options.baseUrl;
1491
+ const response = await this._axios.post("EnrichContactEntity", request , config);
1492
+ base.WebApiBase.SetCompleted(options);
1493
+ const res : carriers.ContactEntity = converters.Create_ContactEntity_From( response.data );
1494
+ resolve(res);
1495
+ }
1496
+ catch( err ) {
1497
+ base.WebApiBase.HandleError(options, config, err);
1498
+ reject(err);
1499
+ }
1500
+ });
1501
+ }
1502
+
1503
+
1504
+
1505
+ /**
1506
+ * Enrich a contact with data from the AI Enrichment service. This will update the contact with address, phone number, and email.
1507
+ * @param request - ContactEntity, EnrichId
1508
+ * @returns Enriched contact entity with address, phone number, and email updated.
1509
+ */
1510
+ public async enrichContactEntityAsync(request: carriers.Contact_EnrichContactEntityRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ContactEntity >;
1511
+
1512
+ /**
1513
+ * Enrich a contact with data from the AI Enrichment service. This will update the contact with address, phone number, and email.
1514
+ * @param contactEntity - The contact entity to enrich.
1515
+ * @param enrichId - Id from the EnrichContact provider
1516
+ * @returns Enriched contact entity with address, phone number, and email updated.
1517
+ */
1518
+ public async enrichContactEntityAsync(contactEntity: carriers.ContactEntity, enrichId: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ContactEntity >;
1519
+
1520
+ public async enrichContactEntityAsync(contactEntity:carriers.ContactEntity|carriers.Contact_EnrichContactEntityRequest, enrichId?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ContactEntity > {
1521
+ let _request : carriers.Contact_EnrichContactEntityRequest = null;
1522
+ let _options : base.WebApiRequestOptions = null;
1523
+ const first : any = contactEntity;
1524
+ if( typeof( first ) === "object" && first && ( typeof(first.contactEntity)!='undefined' || typeof(first.enrichId)!='undefined' ) )
1525
+ {
1526
+ _request = contactEntity as carriers.Contact_EnrichContactEntityRequest;
1527
+ _options = enrichId as base.WebApiRequestOptions;
1528
+ }
1529
+ else
1530
+ {
1531
+ _request = {
1532
+ contactEntity: contactEntity as carriers.ContactEntity,
1533
+ enrichId: enrichId as string,
1534
+ };
1535
+ _options = webapi_options;
1536
+ }
1537
+ return this._enrichContactEntityAsync( _request, _options );
1538
+ }
1539
+
1480
1540
  /**
1481
1541
  * Gets an array of Contact objects.
1482
1542
  * @param contactIds - The primary keys.
@@ -1607,14 +1667,14 @@ export class ContactAgent extends base.WebApiBase implements IContactAgent {
1607
1667
  /**
1608
1668
  * Get a contact from its ID
1609
1669
  * @param request - ContactId
1610
- * @returns Contact minimal contact suitable for preview
1670
+ * @returns Minimal contact suitable for preview
1611
1671
  */
1612
1672
  public async getPreviewContactAsync(request: carriers.Contact_GetPreviewContactRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact >;
1613
1673
 
1614
1674
  /**
1615
1675
  * Get a contact from its ID
1616
1676
  * @param contactId - Contact ID
1617
- * @returns Contact minimal contact suitable for preview
1677
+ * @returns Minimal contact suitable for preview
1618
1678
  */
1619
1679
  public async getPreviewContactAsync(contactId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact >;
1620
1680
 
@@ -1637,6 +1697,60 @@ export class ContactAgent extends base.WebApiBase implements IContactAgent {
1637
1697
  return this._getPreviewContactAsync( _request, _options );
1638
1698
  }
1639
1699
 
1700
+
1701
+ private async _getPreviewEnrichContactAsync(request: carriers.Contact_GetPreviewEnrichContactRequest, options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact > {
1702
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1703
+ base.WebApiBase.SetPending(options);
1704
+ return new Promise< carriers.PreviewContact >(async (resolve, reject) => {
1705
+ try {
1706
+ config.baseURL = this._options.baseUrl;
1707
+ const response = await this._axios.post("GetPreviewEnrichContact", request , config);
1708
+ base.WebApiBase.SetCompleted(options);
1709
+ const res : carriers.PreviewContact = converters.Create_PreviewContact_From( response.data );
1710
+ resolve(res);
1711
+ }
1712
+ catch( err ) {
1713
+ base.WebApiBase.HandleError(options, config, err);
1714
+ reject(err);
1715
+ }
1716
+ });
1717
+ }
1718
+
1719
+
1720
+
1721
+ /**
1722
+ * Get a contact from its ID
1723
+ * @param request - EnrichId
1724
+ * @returns Minimal contact suitable for preview
1725
+ */
1726
+ public async getPreviewEnrichContactAsync(request: carriers.Contact_GetPreviewEnrichContactRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact >;
1727
+
1728
+ /**
1729
+ * Get a contact from its ID
1730
+ * @param enrichId - Enrich Contact ID from the EnrichContact MDO list provider
1731
+ * @returns Minimal contact suitable for preview
1732
+ */
1733
+ public async getPreviewEnrichContactAsync(enrichId: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact >;
1734
+
1735
+ public async getPreviewEnrichContactAsync(enrichId:string|carriers.Contact_GetPreviewEnrichContactRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PreviewContact > {
1736
+ let _request : carriers.Contact_GetPreviewEnrichContactRequest = null;
1737
+ let _options : base.WebApiRequestOptions = null;
1738
+ const first : any = enrichId;
1739
+ if( typeof( first ) === "object" && first && ( typeof(first.enrichId)!='undefined' ) )
1740
+ {
1741
+ _request = enrichId as carriers.Contact_GetPreviewEnrichContactRequest;
1742
+ _options = webapi_options as base.WebApiRequestOptions;
1743
+ }
1744
+ else
1745
+ {
1746
+ _request = {
1747
+ enrichId: enrichId as string,
1748
+ };
1749
+ _options = webapi_options;
1750
+ }
1751
+ return this._getPreviewEnrichContactAsync( _request, _options );
1752
+ }
1753
+
1640
1754
  } // class v1ContactAgentController
1641
1755
 
1642
1756
 
package/src/Converters.ts CHANGED
@@ -9471,6 +9471,37 @@ export function Create_SystemMessageArrayArray_From(src:any) : carriers.SystemMe
9471
9471
 
9472
9472
 
9473
9473
 
9474
+ export function Create_TableManager_From(src:any) : carriers.TableManager {
9475
+ if( src === null || src === undefined )
9476
+ return null;
9477
+ let res : carriers.TableManager = Create_Carrier_From(src) as carriers.TableManager;
9478
+
9479
+ return res as carriers.TableManager;
9480
+ }
9481
+
9482
+ export function Create_TableManagerArray_From(src:any) : carriers.TableManager[] {
9483
+ let res : carriers.TableManager[] = [];
9484
+ if( Array.isArray(src) ) {
9485
+ for(let i in src) {
9486
+ res[i] = Create_TableManager_From(src[i]);
9487
+ }
9488
+ }
9489
+ return res;
9490
+ }
9491
+
9492
+ export function Create_TableManagerArrayArray_From(src:any) : carriers.TableManager[][] {
9493
+ let res : carriers.TableManager[][] = [];
9494
+ if( Array.isArray(src) ) {
9495
+ for(let i in src) {
9496
+ res[i] = Create_TableManagerArray_From(src[i]);
9497
+ }
9498
+ }
9499
+ return res;
9500
+ }
9501
+
9502
+
9503
+
9504
+
9474
9505
  export function Create_Installation_From(src:any) : carriers.Installation {
9475
9506
  if( src === null || src === undefined )
9476
9507
  return null;
@@ -17600,6 +17631,77 @@ export function Create_SentimentArrayArray_From(src:any) : carriers.Sentiment[][
17600
17631
 
17601
17632
 
17602
17633
 
17634
+ export function Create_RagAnswer_From(src:any) : carriers.RagAnswer {
17635
+ if( src === null || src === undefined )
17636
+ return null;
17637
+ let res : any = { };
17638
+
17639
+ res.answer= src.Answer as string;
17640
+ res.source= Create_RagResultArray_From(src.Source);
17641
+ res.trackingId= src.TrackingId as string;
17642
+ return res as carriers.RagAnswer;
17643
+ }
17644
+
17645
+ export function Create_RagAnswerArray_From(src:any) : carriers.RagAnswer[] {
17646
+ let res : carriers.RagAnswer[] = [];
17647
+ if( Array.isArray(src) ) {
17648
+ for(let i in src) {
17649
+ res[i] = Create_RagAnswer_From(src[i]);
17650
+ }
17651
+ }
17652
+ return res;
17653
+ }
17654
+
17655
+ export function Create_RagAnswerArrayArray_From(src:any) : carriers.RagAnswer[][] {
17656
+ let res : carriers.RagAnswer[][] = [];
17657
+ if( Array.isArray(src) ) {
17658
+ for(let i in src) {
17659
+ res[i] = Create_RagAnswerArray_From(src[i]);
17660
+ }
17661
+ }
17662
+ return res;
17663
+ }
17664
+
17665
+
17666
+
17667
+
17668
+ export function Create_RagResult_From(src:any) : carriers.RagResult {
17669
+ if( src === null || src === undefined )
17670
+ return null;
17671
+ let res : any = { };
17672
+
17673
+ res.chunk= src.Chunk as string;
17674
+ res.title= src.Title as string;
17675
+ res.id= src.Id as string;
17676
+ res.type= enums.RagType[src.Type];
17677
+ res.score= src.Score as number;
17678
+ res.metadata= Create_StringObjectDictionary_From(src.Metadata);
17679
+ return res as carriers.RagResult;
17680
+ }
17681
+
17682
+ export function Create_RagResultArray_From(src:any) : carriers.RagResult[] {
17683
+ let res : carriers.RagResult[] = [];
17684
+ if( Array.isArray(src) ) {
17685
+ for(let i in src) {
17686
+ res[i] = Create_RagResult_From(src[i]);
17687
+ }
17688
+ }
17689
+ return res;
17690
+ }
17691
+
17692
+ export function Create_RagResultArrayArray_From(src:any) : carriers.RagResult[][] {
17693
+ let res : carriers.RagResult[][] = [];
17694
+ if( Array.isArray(src) ) {
17695
+ for(let i in src) {
17696
+ res[i] = Create_RagResultArray_From(src[i]);
17697
+ }
17698
+ }
17699
+ return res;
17700
+ }
17701
+
17702
+
17703
+
17704
+
17603
17705
  export function Create_Summarizer_From(src:any) : carriers.Summarizer {
17604
17706
  if( src === null || src === undefined )
17605
17707
  return null;
@@ -17633,6 +17735,8 @@ export function Create_SummarizerArrayArray_From(src:any) : carriers.Summarizer[
17633
17735
 
17634
17736
 
17635
17737
 
17738
+
17739
+
17636
17740
  export function Create_DocumentMigrationAssociate_From(src:any) : carriers.DocumentMigrationAssociate {
17637
17741
  if( src === null || src === undefined )
17638
17742
  return null;
@@ -18068,6 +18172,9 @@ export function Create_WorkflowStepBase_From(src:any) : carriers.WorkflowStepBas
18068
18172
  if( src.StepType == "CreateSale" )
18069
18173
  res = Create_WorkflowStepCreateSale_From(src);
18070
18174
 
18175
+ if( src.StepType == "DistributeToOwner" )
18176
+ res = Create_WorkflowStepDistributeToOwner_From(src);
18177
+
18071
18178
  if( src.StepType == "NotifyByEmail" )
18072
18179
  res = Create_WorkflowStepNotifyByEmail_From(src);
18073
18180
 
@@ -18286,6 +18393,42 @@ export function Create_WorkflowStepCreateSaleArrayArray_From(src:any) : carriers
18286
18393
 
18287
18394
 
18288
18395
 
18396
+ export function Create_WorkflowStepDistributeToOwner_From(src:any) : carriers.WorkflowStepDistributeToOwner {
18397
+ if( src === null || src === undefined )
18398
+ return null;
18399
+ let res : carriers.WorkflowStepDistributeToOwner = src as carriers.WorkflowStepDistributeToOwner;
18400
+
18401
+ res.onlyToUnassigned= src.OnlyToUnassigned as boolean;
18402
+ res.associates= src.Associates as number[];
18403
+ res.userGroups= src.UserGroups as number[];
18404
+ res.distributeQueue= src.DistributeQueue as number[];
18405
+ res.defaultAssociate= src.DefaultAssociate as number;
18406
+ return res as carriers.WorkflowStepDistributeToOwner;
18407
+ }
18408
+
18409
+ export function Create_WorkflowStepDistributeToOwnerArray_From(src:any) : carriers.WorkflowStepDistributeToOwner[] {
18410
+ let res : carriers.WorkflowStepDistributeToOwner[] = [];
18411
+ if( Array.isArray(src) ) {
18412
+ for(let i in src) {
18413
+ res[i] = Create_WorkflowStepDistributeToOwner_From(src[i]);
18414
+ }
18415
+ }
18416
+ return res;
18417
+ }
18418
+
18419
+ export function Create_WorkflowStepDistributeToOwnerArrayArray_From(src:any) : carriers.WorkflowStepDistributeToOwner[][] {
18420
+ let res : carriers.WorkflowStepDistributeToOwner[][] = [];
18421
+ if( Array.isArray(src) ) {
18422
+ for(let i in src) {
18423
+ res[i] = Create_WorkflowStepDistributeToOwnerArray_From(src[i]);
18424
+ }
18425
+ }
18426
+ return res;
18427
+ }
18428
+
18429
+
18430
+
18431
+
18289
18432
  export function Create_WorkflowStepNotifyByEmail_From(src:any) : carriers.WorkflowStepNotifyByEmail {
18290
18433
  if( src === null || src === undefined )
18291
18434
  return null;
@@ -21622,6 +21765,23 @@ function Create_AiTextStyle_From(src:any): enums.AiTextStyle | enums.AiTextStyle
21622
21765
  }
21623
21766
 
21624
21767
 
21768
+ function Create_RagType_From(src:any): enums.RagType | enums.RagType[] {
21769
+ if (!src) return null;
21770
+
21771
+ if (Array.isArray(src)) {
21772
+ let result: enums.RagType[] = Array<enums.RagType>();
21773
+ for (const i in (src as enums.RagType[])) {
21774
+ let r = enums.RagType[src[i]] as enums.RagType;
21775
+ result.push(r);
21776
+ }
21777
+ return result;
21778
+ } else {
21779
+ let r = enums.RagType[src] as enums.RagType;
21780
+ return r;
21781
+ }
21782
+ }
21783
+
21784
+
21625
21785
  function Create_HtmlSanitizerOptions_From(src:any): enums.HtmlSanitizerOptions | enums.HtmlSanitizerOptions[] {
21626
21786
  if (!src) return null;
21627
21787