@superoffice/webapi 12.0.342 → 12.1.1412

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 (63) hide show
  1. package/dist/cjs/Carriers.d.ts +267 -1
  2. package/dist/cjs/Carriers.d.ts.map +1 -1
  3. package/dist/cjs/Converters.d.ts +15 -0
  4. package/dist/cjs/Converters.d.ts.map +1 -1
  5. package/dist/cjs/Converters.js +192 -4
  6. package/dist/cjs/Converters.js.map +1 -1
  7. package/dist/cjs/CustomObjectAgent.d.ts +137 -0
  8. package/dist/cjs/CustomObjectAgent.d.ts.map +1 -0
  9. package/dist/cjs/CustomObjectAgent.js +294 -0
  10. package/dist/cjs/CustomObjectAgent.js.map +1 -0
  11. package/dist/cjs/CustomerServiceAgent.d.ts +4 -3
  12. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
  13. package/dist/cjs/CustomerServiceAgent.js +3 -2
  14. package/dist/cjs/CustomerServiceAgent.js.map +1 -1
  15. package/dist/cjs/Enums.d.ts +21 -0
  16. package/dist/cjs/Enums.d.ts.map +1 -1
  17. package/dist/cjs/Enums.js +23 -1
  18. package/dist/cjs/Enums.js.map +1 -1
  19. package/dist/cjs/ListAgent.d.ts +7 -0
  20. package/dist/cjs/ListAgent.d.ts.map +1 -1
  21. package/dist/cjs/ListAgent.js +24 -0
  22. package/dist/cjs/ListAgent.js.map +1 -1
  23. package/dist/cjs/ProjectAgent.d.ts +3 -3
  24. package/dist/cjs/WebApi.d.ts +6 -0
  25. package/dist/cjs/WebApi.d.ts.map +1 -1
  26. package/dist/cjs/WebApi.js +10 -1
  27. package/dist/cjs/WebApi.js.map +1 -1
  28. package/dist/esm/Carriers.d.ts +267 -1
  29. package/dist/esm/Carriers.d.ts.map +1 -1
  30. package/dist/esm/Converters.d.ts +15 -0
  31. package/dist/esm/Converters.d.ts.map +1 -1
  32. package/dist/esm/Converters.js +172 -0
  33. package/dist/esm/Converters.js.map +1 -1
  34. package/dist/esm/CustomObjectAgent.d.ts +137 -0
  35. package/dist/esm/CustomObjectAgent.d.ts.map +1 -0
  36. package/dist/esm/CustomObjectAgent.js +289 -0
  37. package/dist/esm/CustomObjectAgent.js.map +1 -0
  38. package/dist/esm/CustomerServiceAgent.d.ts +4 -3
  39. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
  40. package/dist/esm/CustomerServiceAgent.js +3 -2
  41. package/dist/esm/CustomerServiceAgent.js.map +1 -1
  42. package/dist/esm/Enums.d.ts +21 -0
  43. package/dist/esm/Enums.d.ts.map +1 -1
  44. package/dist/esm/Enums.js +22 -0
  45. package/dist/esm/Enums.js.map +1 -1
  46. package/dist/esm/ListAgent.d.ts +7 -0
  47. package/dist/esm/ListAgent.d.ts.map +1 -1
  48. package/dist/esm/ListAgent.js +24 -0
  49. package/dist/esm/ListAgent.js.map +1 -1
  50. package/dist/esm/ProjectAgent.d.ts +3 -3
  51. package/dist/esm/WebApi.d.ts +6 -0
  52. package/dist/esm/WebApi.d.ts.map +1 -1
  53. package/dist/esm/WebApi.js +9 -0
  54. package/dist/esm/WebApi.js.map +1 -1
  55. package/package.json +4 -4
  56. package/src/Carriers.ts +379 -1
  57. package/src/Converters.ts +212 -0
  58. package/src/CustomObjectAgent.ts +489 -0
  59. package/src/CustomerServiceAgent.ts +7 -5
  60. package/src/Enums.ts +23 -0
  61. package/src/ListAgent.ts +30 -0
  62. package/src/ProjectAgent.ts +3 -3
  63. package/src/WebApi.ts +12 -0
package/src/Carriers.ts CHANGED
@@ -11080,7 +11080,7 @@ export interface Project_SetProjectImageRequest {
11080
11080
  */
11081
11081
  projectId: number;
11082
11082
  /**
11083
- * The image that is stored on the project (System.Drawing.Image)
11083
+ * The project image.
11084
11084
  */
11085
11085
  image: ArrayBuffer | string;
11086
11086
  }
@@ -24620,6 +24620,15 @@ export interface List_ValidateTicketRelationDefinitionRequest {
24620
24620
 
24621
24621
  // response object: TicketRelationDefinitionResult[]
24622
24622
 
24623
+ /**
24624
+ * Returns all non-built-in ticket relation definitions, including their source and destination ticket type associations.
24625
+ * Returns TicketRelationDefinitionEntity[]
24626
+ */
24627
+ export interface List_GetAllTicketRelationDefinitionEntitiesRequest {
24628
+ }
24629
+
24630
+ // response object: TicketRelationDefinitionEntity[]
24631
+
24623
24632
 
24624
24633
  /**
24625
24634
  * Validation result for a single source/destination ticket type combination in a relation definition.
@@ -25249,6 +25258,7 @@ export interface List_GetWebPanelByProgIdRequest {
25249
25258
 
25250
25259
 
25251
25260
 
25261
+
25252
25262
 
25253
25263
 
25254
25264
  /**
@@ -42584,6 +42594,11 @@ export interface PreviewFaqEntry extends Carrier {
42584
42594
  */
42585
42595
  answer?: string;
42586
42596
 
42597
+ /**
42598
+ * The access level for this entry (enum).
42599
+ */
42600
+ accessLevel?: enums.KbAccessLevel;
42601
+
42587
42602
  }
42588
42603
 
42589
42604
 
@@ -43190,6 +43205,10 @@ export interface CustomerService_CreateTicketFromMailDataRequest {
43190
43205
  * RFC822 formatted data to import as a ticket
43191
43206
  */
43192
43207
  data: string;
43208
+ /**
43209
+ * Optional. If greater than 0, the new ticket is attached to this person as the primary customer and the email's From header is not used to resolve the customer; the supplied person must exist and not be retired or the call throws a validation error. If 0 (default), the customer is resolved from the email as before.
43210
+ */
43211
+ personId: number;
43193
43212
  }
43194
43213
 
43195
43214
  // response object: TicketInfo
@@ -49935,6 +49954,365 @@ export interface DatabaseTable_DeleteRequest {
49935
49954
 
49936
49955
 
49937
49956
 
49957
+ /**
49958
+ * A single row in a Custom Object table.
49959
+ */
49960
+ export interface CustomObject extends Carrier {
49961
+
49962
+
49963
+ /**
49964
+ * Database table name of the Custom Object Definition this row belongs to, e.g. 'y_equipment'.
49965
+ */
49966
+ definitionName?: string;
49967
+
49968
+ /**
49969
+ * Primary key of the row.
49970
+ */
49971
+ id?: number;
49972
+
49973
+ /**
49974
+ * Column values for this row. Keys are database column names; values are formatted with CultureDataFormatter (e.g. '[I:42]' for integers).
49975
+ */
49976
+ values?: StringDictionary;
49977
+
49978
+ }
49979
+
49980
+
49981
+
49982
+
49983
+
49984
+
49985
+ /**
49986
+ * Returns a new Custom Object row pre-populated with the default values declared by the Custom Object Definition. The row is not yet persisted.
49987
+ * Returns CustomObject
49988
+ */
49989
+ export interface CustomObject_CreateDefaultCustomObjectRequest {
49990
+ /**
49991
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
49992
+ */
49993
+ definitionName: string;
49994
+ }
49995
+
49996
+ // response object: CustomObject
49997
+
49998
+ /**
49999
+ * Returns a single Custom Object row by definition name and primary key.
50000
+ * Returns CustomObject
50001
+ */
50002
+ export interface CustomObject_GetCustomObjectRequest {
50003
+ /**
50004
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50005
+ */
50006
+ definitionName: string;
50007
+ /**
50008
+ * Primary key of the row to fetch.
50009
+ */
50010
+ id: number;
50011
+ }
50012
+
50013
+ // response object: CustomObject
50014
+
50015
+ /**
50016
+ * Saves a Custom Object row. If the row has a primary key set it will be updated, otherwise a new row is inserted.
50017
+ * Returns CustomObject
50018
+ */
50019
+ export interface CustomObject_SaveCustomObjectRequest {
50020
+ /**
50021
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50022
+ */
50023
+ definitionName: string;
50024
+ /**
50025
+ * The Custom Object row to save.
50026
+ */
50027
+ row: CustomObject;
50028
+ }
50029
+
50030
+ // response object: CustomObject
50031
+
50032
+ /**
50033
+ * Deletes a single Custom Object row by primary key.
50034
+ */
50035
+ export interface CustomObject_DeleteCustomObjectRequest {
50036
+ /**
50037
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50038
+ */
50039
+ definitionName: string;
50040
+ /**
50041
+ * Primary key of the row to delete.
50042
+ */
50043
+ id: number;
50044
+ }
50045
+
50046
+ // Void response...
50047
+
50048
+
50049
+ /**
50050
+ * Schema definition for a Custom Object: the underlying table and its fields.
50051
+ */
50052
+ export interface CustomObjectDefinition extends Carrier {
50053
+
50054
+
50055
+ /**
50056
+ * Primary key in the extra-tables table.
50057
+ */
50058
+ id?: number;
50059
+
50060
+ /**
50061
+ * Database table name of the Custom Object, e.g. 'y_equipment'.
50062
+ */
50063
+ name?: string;
50064
+
50065
+ /**
50066
+ * User-visible title of the Custom Object.
50067
+ */
50068
+ title?: string;
50069
+
50070
+ /**
50071
+ * Name of the field used to represent a row in lists and previews.
50072
+ */
50073
+ displayField?: string;
50074
+
50075
+ /**
50076
+ * Description of the Custom Object.
50077
+ */
50078
+ description?: string;
50079
+
50080
+ /**
50081
+ * Icon binary-object id used in the UI.
50082
+ */
50083
+ iconId?: number;
50084
+
50085
+ /**
50086
+ * Bitmask of ExtraTableFlag values.
50087
+ */
50088
+ flags?: number;
50089
+
50090
+ /**
50091
+ * Field definitions for this Custom Object.
50092
+ */
50093
+ fields?: CustomObjectField[];
50094
+
50095
+ }
50096
+
50097
+
50098
+
50099
+
50100
+
50101
+
50102
+ /**
50103
+ * Returns the schema (table + field definitions) for a Custom Object Definition by its database table name.
50104
+ * Returns CustomObjectDefinition
50105
+ */
50106
+ export interface CustomObject_GetCustomObjectDefinitionRequest {
50107
+ /**
50108
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50109
+ */
50110
+ definitionName: string;
50111
+ }
50112
+
50113
+ // response object: CustomObjectDefinition
50114
+
50115
+ /**
50116
+ * Returns true if a screen chooser is configured for the given Custom Object Definition and mode.
50117
+ * Returns boolean
50118
+ */
50119
+ export interface CustomObject_HasScreenChooserRequest {
50120
+ /**
50121
+ * Database table name of the Custom Object Definition.
50122
+ */
50123
+ definitionName: string;
50124
+ /**
50125
+ * True to check for a custom edit screen; false to check for a custom view screen.
50126
+ */
50127
+ edit: boolean;
50128
+ }
50129
+
50130
+ // response object: boolean
50131
+
50132
+ /**
50133
+ * Returns bootstrap metadata for all Custom Object tables.
50134
+ * Returns CustomObjectMetadata[]
50135
+ */
50136
+ export interface CustomObject_GetCustomObjectsMetadataRequest {
50137
+ }
50138
+
50139
+ // response object: CustomObjectMetadata[]
50140
+
50141
+ /**
50142
+ * Returns SVG icon data for all Custom Object tables, keyed by table name.
50143
+ * Returns StringDictionary
50144
+ */
50145
+ export interface CustomObject_GetCustomObjectsIconsRequest {
50146
+ }
50147
+
50148
+ // response object: StringDictionary
50149
+
50150
+
50151
+ /**
50152
+ * Describes one field on a Custom Object Definition.
50153
+ */
50154
+ export interface CustomObjectField {
50155
+
50156
+
50157
+ /**
50158
+ * Database column name of the field, e.g. 'x_equipment_type'.
50159
+ */
50160
+ fieldName?: string;
50161
+
50162
+ /**
50163
+ * Field type, formatted as the string value of ExtraFieldType (e.g. 'string', 'int', 'datetime').
50164
+ */
50165
+ fieldType?: string;
50166
+
50167
+ /**
50168
+ * User-visible name of the field.
50169
+ */
50170
+ displayName?: string;
50171
+
50172
+ /**
50173
+ * Description of the field.
50174
+ */
50175
+ description?: string;
50176
+
50177
+ /**
50178
+ * True if the field has a default value that should be used when creating new rows.
50179
+ */
50180
+ useDefaultValue?: boolean;
50181
+
50182
+ /**
50183
+ * Default value, formatted with CultureDataFormatter (e.g. '[I:1]' for an integer).
50184
+ */
50185
+ defaultValue?: string;
50186
+
50187
+ /**
50188
+ * Display order of the field within the Custom Object Definition.
50189
+ */
50190
+ rank?: number;
50191
+
50192
+ /**
50193
+ * True if the field is shown by default in list views (mirrors the ViewInList extra-field flag).
50194
+ */
50195
+ isDefault?: boolean;
50196
+
50197
+ }
50198
+
50199
+
50200
+
50201
+
50202
+
50203
+
50204
+
50205
+ /**
50206
+ * Bootstrap metadata for a Custom Object table.
50207
+ */
50208
+ export interface CustomObjectMetadata {
50209
+
50210
+
50211
+ /**
50212
+ * User-visible name of the Custom Object.
50213
+ */
50214
+ name?: string;
50215
+
50216
+ /**
50217
+ * Database table name, e.g. 'y_equipment'.
50218
+ */
50219
+ tableName?: string;
50220
+
50221
+ /**
50222
+ * Icon hint string for the UI.
50223
+ */
50224
+ iconHint?: string;
50225
+
50226
+ /**
50227
+ * True if the primary key field should be hidden in the UI.
50228
+ */
50229
+ flagHideId?: boolean;
50230
+
50231
+ /**
50232
+ * True if the Custom Object is hidden from the navigator.
50233
+ */
50234
+ flagHidden?: boolean;
50235
+
50236
+ /**
50237
+ * True if the Custom Object should appear in the Find dialog.
50238
+ */
50239
+ flagShowInFind?: boolean;
50240
+
50241
+ /**
50242
+ * True if the Custom Object should appear in the navigator.
50243
+ */
50244
+ flagShowInNavigator?: boolean;
50245
+
50246
+ /**
50247
+ * Relations to other entities.
50248
+ */
50249
+ relations?: CustomObjectRelation[];
50250
+
50251
+ /**
50252
+ * True if the Custom Object has web panel archives configured.
50253
+ */
50254
+ hasWebPanels?: boolean;
50255
+
50256
+ }
50257
+
50258
+
50259
+
50260
+
50261
+
50262
+
50263
+
50264
+ /**
50265
+ * Describes a relation from a Custom Object to another entity.
50266
+ */
50267
+ export interface CustomObjectRelation {
50268
+
50269
+
50270
+ /**
50271
+ * Database table name of the related entity.
50272
+ */
50273
+ entityName?: string;
50274
+
50275
+ /**
50276
+ * Type of the related entity, e.g. 'contact', 'CustomObject'.
50277
+ */
50278
+ entityType?: string;
50279
+
50280
+ /**
50281
+ * User-visible title of the related entity.
50282
+ */
50283
+ entityTitle?: string;
50284
+
50285
+ /**
50286
+ * Archive provider name for listing related rows.
50287
+ */
50288
+ providerName?: string;
50289
+
50290
+ /**
50291
+ * Database column name of the foreign key field.
50292
+ */
50293
+ relationField?: string;
50294
+
50295
+ /**
50296
+ * Database column name of the display field for the related entity.
50297
+ */
50298
+ displayField?: string;
50299
+
50300
+ /**
50301
+ * True if the functions (add/edit/delete) should be hidden for this relation.
50302
+ */
50303
+ hideFunctions?: boolean;
50304
+
50305
+ }
50306
+
50307
+
50308
+
50309
+
50310
+
50311
+
50312
+
50313
+
50314
+
50315
+
49938
50316
  /**
49939
50317
  * Chat Topic bot settings. Trigger script ids to run on bot events
49940
50318
  */
package/src/Converters.ts CHANGED
@@ -8934,6 +8934,7 @@ export function Create_WebPanelEntityArrayArray_From(src:any) : carriers.WebPane
8934
8934
 
8935
8935
 
8936
8936
 
8937
+
8937
8938
 
8938
8939
 
8939
8940
  export function Create_BlobEntity_From(src:any) : carriers.BlobEntity {
@@ -15049,6 +15050,7 @@ export function Create_PreviewFaqEntry_From(src:any) : carriers.PreviewFaqEntry
15049
15050
  res.updated= Create_Date_From(src.Updated);
15050
15051
  res.question= src.Question as string;
15051
15052
  res.answer= src.Answer as string;
15053
+ res.accessLevel= enums.KbAccessLevel[src.AccessLevel];
15052
15054
  return res as carriers.PreviewFaqEntry;
15053
15055
  }
15054
15056
 
@@ -17960,6 +17962,199 @@ export function Create_MassOperationResultArrayArray_From(src:any) : carriers.Ma
17960
17962
 
17961
17963
 
17962
17964
 
17965
+ export function Create_CustomObject_From(src:any) : carriers.CustomObject {
17966
+ if( src === null || src === undefined )
17967
+ return null;
17968
+ let res : carriers.CustomObject = Create_Carrier_From(src) as carriers.CustomObject;
17969
+
17970
+ res.definitionName= src.DefinitionName as string;
17971
+ res.id= src.Id as number;
17972
+ res.values= Create_StringDictionary_From(src.Values);
17973
+ return res as carriers.CustomObject;
17974
+ }
17975
+
17976
+ export function Create_CustomObjectArray_From(src:any) : carriers.CustomObject[] {
17977
+ let res : carriers.CustomObject[] = [];
17978
+ if( Array.isArray(src) ) {
17979
+ for(let i in src) {
17980
+ res[i] = Create_CustomObject_From(src[i]);
17981
+ }
17982
+ }
17983
+ return res;
17984
+ }
17985
+
17986
+ export function Create_CustomObjectArrayArray_From(src:any) : carriers.CustomObject[][] {
17987
+ let res : carriers.CustomObject[][] = [];
17988
+ if( Array.isArray(src) ) {
17989
+ for(let i in src) {
17990
+ res[i] = Create_CustomObjectArray_From(src[i]);
17991
+ }
17992
+ }
17993
+ return res;
17994
+ }
17995
+
17996
+
17997
+
17998
+
17999
+ export function Create_CustomObjectDefinition_From(src:any) : carriers.CustomObjectDefinition {
18000
+ if( src === null || src === undefined )
18001
+ return null;
18002
+ let res : carriers.CustomObjectDefinition = Create_Carrier_From(src) as carriers.CustomObjectDefinition;
18003
+
18004
+ res.id= src.Id as number;
18005
+ res.name= src.Name as string;
18006
+ res.title= src.Title as string;
18007
+ res.displayField= src.DisplayField as string;
18008
+ res.description= src.Description as string;
18009
+ res.iconId= src.IconId as number;
18010
+ res.flags= src.Flags as number;
18011
+ res.fields= Create_CustomObjectFieldArray_From(src.Fields);
18012
+ return res as carriers.CustomObjectDefinition;
18013
+ }
18014
+
18015
+ export function Create_CustomObjectDefinitionArray_From(src:any) : carriers.CustomObjectDefinition[] {
18016
+ let res : carriers.CustomObjectDefinition[] = [];
18017
+ if( Array.isArray(src) ) {
18018
+ for(let i in src) {
18019
+ res[i] = Create_CustomObjectDefinition_From(src[i]);
18020
+ }
18021
+ }
18022
+ return res;
18023
+ }
18024
+
18025
+ export function Create_CustomObjectDefinitionArrayArray_From(src:any) : carriers.CustomObjectDefinition[][] {
18026
+ let res : carriers.CustomObjectDefinition[][] = [];
18027
+ if( Array.isArray(src) ) {
18028
+ for(let i in src) {
18029
+ res[i] = Create_CustomObjectDefinitionArray_From(src[i]);
18030
+ }
18031
+ }
18032
+ return res;
18033
+ }
18034
+
18035
+
18036
+
18037
+
18038
+ export function Create_CustomObjectField_From(src:any) : carriers.CustomObjectField {
18039
+ if( src === null || src === undefined )
18040
+ return null;
18041
+ let res : any = { };
18042
+
18043
+ res.fieldName= src.FieldName as string;
18044
+ res.fieldType= src.FieldType as string;
18045
+ res.displayName= src.DisplayName as string;
18046
+ res.description= src.Description as string;
18047
+ res.useDefaultValue= src.UseDefaultValue as boolean;
18048
+ res.defaultValue= src.DefaultValue as string;
18049
+ res.rank= src.Rank as number;
18050
+ res.isDefault= src.IsDefault as boolean;
18051
+ return res as carriers.CustomObjectField;
18052
+ }
18053
+
18054
+ export function Create_CustomObjectFieldArray_From(src:any) : carriers.CustomObjectField[] {
18055
+ let res : carriers.CustomObjectField[] = [];
18056
+ if( Array.isArray(src) ) {
18057
+ for(let i in src) {
18058
+ res[i] = Create_CustomObjectField_From(src[i]);
18059
+ }
18060
+ }
18061
+ return res;
18062
+ }
18063
+
18064
+ export function Create_CustomObjectFieldArrayArray_From(src:any) : carriers.CustomObjectField[][] {
18065
+ let res : carriers.CustomObjectField[][] = [];
18066
+ if( Array.isArray(src) ) {
18067
+ for(let i in src) {
18068
+ res[i] = Create_CustomObjectFieldArray_From(src[i]);
18069
+ }
18070
+ }
18071
+ return res;
18072
+ }
18073
+
18074
+
18075
+
18076
+
18077
+ export function Create_CustomObjectMetadata_From(src:any) : carriers.CustomObjectMetadata {
18078
+ if( src === null || src === undefined )
18079
+ return null;
18080
+ let res : any = { };
18081
+
18082
+ res.name= src.Name as string;
18083
+ res.tableName= src.TableName as string;
18084
+ res.iconHint= src.IconHint as string;
18085
+ res.flagHideId= src.FlagHideId as boolean;
18086
+ res.flagHidden= src.FlagHidden as boolean;
18087
+ res.flagShowInFind= src.FlagShowInFind as boolean;
18088
+ res.flagShowInNavigator= src.FlagShowInNavigator as boolean;
18089
+ res.relations= Create_CustomObjectRelationArray_From(src.Relations);
18090
+ res.hasWebPanels= src.HasWebPanels as boolean;
18091
+ return res as carriers.CustomObjectMetadata;
18092
+ }
18093
+
18094
+ export function Create_CustomObjectMetadataArray_From(src:any) : carriers.CustomObjectMetadata[] {
18095
+ let res : carriers.CustomObjectMetadata[] = [];
18096
+ if( Array.isArray(src) ) {
18097
+ for(let i in src) {
18098
+ res[i] = Create_CustomObjectMetadata_From(src[i]);
18099
+ }
18100
+ }
18101
+ return res;
18102
+ }
18103
+
18104
+ export function Create_CustomObjectMetadataArrayArray_From(src:any) : carriers.CustomObjectMetadata[][] {
18105
+ let res : carriers.CustomObjectMetadata[][] = [];
18106
+ if( Array.isArray(src) ) {
18107
+ for(let i in src) {
18108
+ res[i] = Create_CustomObjectMetadataArray_From(src[i]);
18109
+ }
18110
+ }
18111
+ return res;
18112
+ }
18113
+
18114
+
18115
+
18116
+
18117
+ export function Create_CustomObjectRelation_From(src:any) : carriers.CustomObjectRelation {
18118
+ if( src === null || src === undefined )
18119
+ return null;
18120
+ let res : any = { };
18121
+
18122
+ res.entityName= src.EntityName as string;
18123
+ res.entityType= src.EntityType as string;
18124
+ res.entityTitle= src.EntityTitle as string;
18125
+ res.providerName= src.ProviderName as string;
18126
+ res.relationField= src.RelationField as string;
18127
+ res.displayField= src.DisplayField as string;
18128
+ res.hideFunctions= src.HideFunctions as boolean;
18129
+ return res as carriers.CustomObjectRelation;
18130
+ }
18131
+
18132
+ export function Create_CustomObjectRelationArray_From(src:any) : carriers.CustomObjectRelation[] {
18133
+ let res : carriers.CustomObjectRelation[] = [];
18134
+ if( Array.isArray(src) ) {
18135
+ for(let i in src) {
18136
+ res[i] = Create_CustomObjectRelation_From(src[i]);
18137
+ }
18138
+ }
18139
+ return res;
18140
+ }
18141
+
18142
+ export function Create_CustomObjectRelationArrayArray_From(src:any) : carriers.CustomObjectRelation[][] {
18143
+ let res : carriers.CustomObjectRelation[][] = [];
18144
+ if( Array.isArray(src) ) {
18145
+ for(let i in src) {
18146
+ res[i] = Create_CustomObjectRelationArray_From(src[i]);
18147
+ }
18148
+ }
18149
+ return res;
18150
+ }
18151
+
18152
+
18153
+
18154
+
18155
+
18156
+
18157
+
17963
18158
  export function Create_ChatBotSettings_From(src:any) : carriers.ChatBotSettings {
17964
18159
  if( src === null || src === undefined )
17965
18160
  return null;
@@ -23742,6 +23937,23 @@ function Create_TicketAlertAction_From(src:any): enums.TicketAlertAction | enums
23742
23937
  }
23743
23938
 
23744
23939
 
23940
+ function Create_KbAccessLevel_From(src:any): enums.KbAccessLevel | enums.KbAccessLevel[] {
23941
+ if (!src) return null;
23942
+
23943
+ if (Array.isArray(src)) {
23944
+ let result: enums.KbAccessLevel[] = Array<enums.KbAccessLevel>();
23945
+ for (const i in (src as enums.KbAccessLevel[])) {
23946
+ let r = enums.KbAccessLevel[src[i]] as enums.KbAccessLevel;
23947
+ result.push(r);
23948
+ }
23949
+ return result;
23950
+ } else {
23951
+ let r = enums.KbAccessLevel[src] as enums.KbAccessLevel;
23952
+ return r;
23953
+ }
23954
+ }
23955
+
23956
+
23745
23957
  function Create_BadgeType_From(src:any): enums.BadgeType | enums.BadgeType[] {
23746
23958
  if (!src) return null;
23747
23959