@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.
- package/dist/cjs/Carriers.d.ts +267 -1
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Converters.d.ts +15 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +192 -4
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/CustomObjectAgent.d.ts +137 -0
- package/dist/cjs/CustomObjectAgent.d.ts.map +1 -0
- package/dist/cjs/CustomObjectAgent.js +294 -0
- package/dist/cjs/CustomObjectAgent.js.map +1 -0
- package/dist/cjs/CustomerServiceAgent.d.ts +4 -3
- package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/cjs/CustomerServiceAgent.js +3 -2
- package/dist/cjs/CustomerServiceAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +21 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +23 -1
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +7 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +24 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/ProjectAgent.d.ts +3 -3
- package/dist/cjs/WebApi.d.ts +6 -0
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +10 -1
- package/dist/cjs/WebApi.js.map +1 -1
- package/dist/esm/Carriers.d.ts +267 -1
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Converters.d.ts +15 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +172 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/CustomObjectAgent.d.ts +137 -0
- package/dist/esm/CustomObjectAgent.d.ts.map +1 -0
- package/dist/esm/CustomObjectAgent.js +289 -0
- package/dist/esm/CustomObjectAgent.js.map +1 -0
- package/dist/esm/CustomerServiceAgent.d.ts +4 -3
- package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/esm/CustomerServiceAgent.js +3 -2
- package/dist/esm/CustomerServiceAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +21 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +22 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +7 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +24 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/ProjectAgent.d.ts +3 -3
- package/dist/esm/WebApi.d.ts +6 -0
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +9 -0
- package/dist/esm/WebApi.js.map +1 -1
- package/package.json +4 -4
- package/src/Carriers.ts +379 -1
- package/src/Converters.ts +212 -0
- package/src/CustomObjectAgent.ts +489 -0
- package/src/CustomerServiceAgent.ts +7 -5
- package/src/Enums.ts +23 -0
- package/src/ListAgent.ts +30 -0
- package/src/ProjectAgent.ts +3 -3
- package/src/WebApi.ts +12 -0
package/dist/cjs/Carriers.d.ts
CHANGED
|
@@ -8216,7 +8216,7 @@ export interface Project_SetProjectImageRequest {
|
|
|
8216
8216
|
*/
|
|
8217
8217
|
projectId: number;
|
|
8218
8218
|
/**
|
|
8219
|
-
* The
|
|
8219
|
+
* The project image.
|
|
8220
8220
|
*/
|
|
8221
8221
|
image: ArrayBuffer | string;
|
|
8222
8222
|
}
|
|
@@ -18536,6 +18536,12 @@ export interface List_ValidateTicketRelationDefinitionRequest {
|
|
|
18536
18536
|
*/
|
|
18537
18537
|
relationType: enums.TicketRelationType;
|
|
18538
18538
|
}
|
|
18539
|
+
/**
|
|
18540
|
+
* Returns all non-built-in ticket relation definitions, including their source and destination ticket type associations.
|
|
18541
|
+
* Returns TicketRelationDefinitionEntity[]
|
|
18542
|
+
*/
|
|
18543
|
+
export interface List_GetAllTicketRelationDefinitionEntitiesRequest {
|
|
18544
|
+
}
|
|
18539
18545
|
/**
|
|
18540
18546
|
* Validation result for a single source/destination ticket type combination in a relation definition.
|
|
18541
18547
|
*/
|
|
@@ -31803,6 +31809,10 @@ export interface PreviewFaqEntry extends Carrier {
|
|
|
31803
31809
|
* The answer for this entry.
|
|
31804
31810
|
*/
|
|
31805
31811
|
answer?: string;
|
|
31812
|
+
/**
|
|
31813
|
+
* The access level for this entry (enum).
|
|
31814
|
+
*/
|
|
31815
|
+
accessLevel?: enums.KbAccessLevel;
|
|
31806
31816
|
}
|
|
31807
31817
|
/**
|
|
31808
31818
|
* Get a faq entry from its faq entry id
|
|
@@ -32223,6 +32233,10 @@ export interface CustomerService_CreateTicketFromMailDataRequest {
|
|
|
32223
32233
|
* RFC822 formatted data to import as a ticket
|
|
32224
32234
|
*/
|
|
32225
32235
|
data: string;
|
|
32236
|
+
/**
|
|
32237
|
+
* 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.
|
|
32238
|
+
*/
|
|
32239
|
+
personId: number;
|
|
32226
32240
|
}
|
|
32227
32241
|
/**
|
|
32228
32242
|
* This method will add a message to an existing request in the sam way as importMail would do it from an email. It accepts RFC822 formatted data
|
|
@@ -37234,6 +37248,258 @@ export interface DatabaseTable_DeleteRequest {
|
|
|
37234
37248
|
*/
|
|
37235
37249
|
ids: number[];
|
|
37236
37250
|
}
|
|
37251
|
+
/**
|
|
37252
|
+
* A single row in a Custom Object table.
|
|
37253
|
+
*/
|
|
37254
|
+
export interface CustomObject extends Carrier {
|
|
37255
|
+
/**
|
|
37256
|
+
* Database table name of the Custom Object Definition this row belongs to, e.g. 'y_equipment'.
|
|
37257
|
+
*/
|
|
37258
|
+
definitionName?: string;
|
|
37259
|
+
/**
|
|
37260
|
+
* Primary key of the row.
|
|
37261
|
+
*/
|
|
37262
|
+
id?: number;
|
|
37263
|
+
/**
|
|
37264
|
+
* Column values for this row. Keys are database column names; values are formatted with CultureDataFormatter (e.g. '[I:42]' for integers).
|
|
37265
|
+
*/
|
|
37266
|
+
values?: StringDictionary;
|
|
37267
|
+
}
|
|
37268
|
+
/**
|
|
37269
|
+
* Returns a new Custom Object row pre-populated with the default values declared by the Custom Object Definition. The row is not yet persisted.
|
|
37270
|
+
* Returns CustomObject
|
|
37271
|
+
*/
|
|
37272
|
+
export interface CustomObject_CreateDefaultCustomObjectRequest {
|
|
37273
|
+
/**
|
|
37274
|
+
* Database table name of the Custom Object Definition, e.g. 'y_equipment'.
|
|
37275
|
+
*/
|
|
37276
|
+
definitionName: string;
|
|
37277
|
+
}
|
|
37278
|
+
/**
|
|
37279
|
+
* Returns a single Custom Object row by definition name and primary key.
|
|
37280
|
+
* Returns CustomObject
|
|
37281
|
+
*/
|
|
37282
|
+
export interface CustomObject_GetCustomObjectRequest {
|
|
37283
|
+
/**
|
|
37284
|
+
* Database table name of the Custom Object Definition, e.g. 'y_equipment'.
|
|
37285
|
+
*/
|
|
37286
|
+
definitionName: string;
|
|
37287
|
+
/**
|
|
37288
|
+
* Primary key of the row to fetch.
|
|
37289
|
+
*/
|
|
37290
|
+
id: number;
|
|
37291
|
+
}
|
|
37292
|
+
/**
|
|
37293
|
+
* Saves a Custom Object row. If the row has a primary key set it will be updated, otherwise a new row is inserted.
|
|
37294
|
+
* Returns CustomObject
|
|
37295
|
+
*/
|
|
37296
|
+
export interface CustomObject_SaveCustomObjectRequest {
|
|
37297
|
+
/**
|
|
37298
|
+
* Database table name of the Custom Object Definition, e.g. 'y_equipment'.
|
|
37299
|
+
*/
|
|
37300
|
+
definitionName: string;
|
|
37301
|
+
/**
|
|
37302
|
+
* The Custom Object row to save.
|
|
37303
|
+
*/
|
|
37304
|
+
row: CustomObject;
|
|
37305
|
+
}
|
|
37306
|
+
/**
|
|
37307
|
+
* Deletes a single Custom Object row by primary key.
|
|
37308
|
+
*/
|
|
37309
|
+
export interface CustomObject_DeleteCustomObjectRequest {
|
|
37310
|
+
/**
|
|
37311
|
+
* Database table name of the Custom Object Definition, e.g. 'y_equipment'.
|
|
37312
|
+
*/
|
|
37313
|
+
definitionName: string;
|
|
37314
|
+
/**
|
|
37315
|
+
* Primary key of the row to delete.
|
|
37316
|
+
*/
|
|
37317
|
+
id: number;
|
|
37318
|
+
}
|
|
37319
|
+
/**
|
|
37320
|
+
* Schema definition for a Custom Object: the underlying table and its fields.
|
|
37321
|
+
*/
|
|
37322
|
+
export interface CustomObjectDefinition extends Carrier {
|
|
37323
|
+
/**
|
|
37324
|
+
* Primary key in the extra-tables table.
|
|
37325
|
+
*/
|
|
37326
|
+
id?: number;
|
|
37327
|
+
/**
|
|
37328
|
+
* Database table name of the Custom Object, e.g. 'y_equipment'.
|
|
37329
|
+
*/
|
|
37330
|
+
name?: string;
|
|
37331
|
+
/**
|
|
37332
|
+
* User-visible title of the Custom Object.
|
|
37333
|
+
*/
|
|
37334
|
+
title?: string;
|
|
37335
|
+
/**
|
|
37336
|
+
* Name of the field used to represent a row in lists and previews.
|
|
37337
|
+
*/
|
|
37338
|
+
displayField?: string;
|
|
37339
|
+
/**
|
|
37340
|
+
* Description of the Custom Object.
|
|
37341
|
+
*/
|
|
37342
|
+
description?: string;
|
|
37343
|
+
/**
|
|
37344
|
+
* Icon binary-object id used in the UI.
|
|
37345
|
+
*/
|
|
37346
|
+
iconId?: number;
|
|
37347
|
+
/**
|
|
37348
|
+
* Bitmask of ExtraTableFlag values.
|
|
37349
|
+
*/
|
|
37350
|
+
flags?: number;
|
|
37351
|
+
/**
|
|
37352
|
+
* Field definitions for this Custom Object.
|
|
37353
|
+
*/
|
|
37354
|
+
fields?: CustomObjectField[];
|
|
37355
|
+
}
|
|
37356
|
+
/**
|
|
37357
|
+
* Returns the schema (table + field definitions) for a Custom Object Definition by its database table name.
|
|
37358
|
+
* Returns CustomObjectDefinition
|
|
37359
|
+
*/
|
|
37360
|
+
export interface CustomObject_GetCustomObjectDefinitionRequest {
|
|
37361
|
+
/**
|
|
37362
|
+
* Database table name of the Custom Object Definition, e.g. 'y_equipment'.
|
|
37363
|
+
*/
|
|
37364
|
+
definitionName: string;
|
|
37365
|
+
}
|
|
37366
|
+
/**
|
|
37367
|
+
* Returns true if a screen chooser is configured for the given Custom Object Definition and mode.
|
|
37368
|
+
* Returns boolean
|
|
37369
|
+
*/
|
|
37370
|
+
export interface CustomObject_HasScreenChooserRequest {
|
|
37371
|
+
/**
|
|
37372
|
+
* Database table name of the Custom Object Definition.
|
|
37373
|
+
*/
|
|
37374
|
+
definitionName: string;
|
|
37375
|
+
/**
|
|
37376
|
+
* True to check for a custom edit screen; false to check for a custom view screen.
|
|
37377
|
+
*/
|
|
37378
|
+
edit: boolean;
|
|
37379
|
+
}
|
|
37380
|
+
/**
|
|
37381
|
+
* Returns bootstrap metadata for all Custom Object tables.
|
|
37382
|
+
* Returns CustomObjectMetadata[]
|
|
37383
|
+
*/
|
|
37384
|
+
export interface CustomObject_GetCustomObjectsMetadataRequest {
|
|
37385
|
+
}
|
|
37386
|
+
/**
|
|
37387
|
+
* Returns SVG icon data for all Custom Object tables, keyed by table name.
|
|
37388
|
+
* Returns StringDictionary
|
|
37389
|
+
*/
|
|
37390
|
+
export interface CustomObject_GetCustomObjectsIconsRequest {
|
|
37391
|
+
}
|
|
37392
|
+
/**
|
|
37393
|
+
* Describes one field on a Custom Object Definition.
|
|
37394
|
+
*/
|
|
37395
|
+
export interface CustomObjectField {
|
|
37396
|
+
/**
|
|
37397
|
+
* Database column name of the field, e.g. 'x_equipment_type'.
|
|
37398
|
+
*/
|
|
37399
|
+
fieldName?: string;
|
|
37400
|
+
/**
|
|
37401
|
+
* Field type, formatted as the string value of ExtraFieldType (e.g. 'string', 'int', 'datetime').
|
|
37402
|
+
*/
|
|
37403
|
+
fieldType?: string;
|
|
37404
|
+
/**
|
|
37405
|
+
* User-visible name of the field.
|
|
37406
|
+
*/
|
|
37407
|
+
displayName?: string;
|
|
37408
|
+
/**
|
|
37409
|
+
* Description of the field.
|
|
37410
|
+
*/
|
|
37411
|
+
description?: string;
|
|
37412
|
+
/**
|
|
37413
|
+
* True if the field has a default value that should be used when creating new rows.
|
|
37414
|
+
*/
|
|
37415
|
+
useDefaultValue?: boolean;
|
|
37416
|
+
/**
|
|
37417
|
+
* Default value, formatted with CultureDataFormatter (e.g. '[I:1]' for an integer).
|
|
37418
|
+
*/
|
|
37419
|
+
defaultValue?: string;
|
|
37420
|
+
/**
|
|
37421
|
+
* Display order of the field within the Custom Object Definition.
|
|
37422
|
+
*/
|
|
37423
|
+
rank?: number;
|
|
37424
|
+
/**
|
|
37425
|
+
* True if the field is shown by default in list views (mirrors the ViewInList extra-field flag).
|
|
37426
|
+
*/
|
|
37427
|
+
isDefault?: boolean;
|
|
37428
|
+
}
|
|
37429
|
+
/**
|
|
37430
|
+
* Bootstrap metadata for a Custom Object table.
|
|
37431
|
+
*/
|
|
37432
|
+
export interface CustomObjectMetadata {
|
|
37433
|
+
/**
|
|
37434
|
+
* User-visible name of the Custom Object.
|
|
37435
|
+
*/
|
|
37436
|
+
name?: string;
|
|
37437
|
+
/**
|
|
37438
|
+
* Database table name, e.g. 'y_equipment'.
|
|
37439
|
+
*/
|
|
37440
|
+
tableName?: string;
|
|
37441
|
+
/**
|
|
37442
|
+
* Icon hint string for the UI.
|
|
37443
|
+
*/
|
|
37444
|
+
iconHint?: string;
|
|
37445
|
+
/**
|
|
37446
|
+
* True if the primary key field should be hidden in the UI.
|
|
37447
|
+
*/
|
|
37448
|
+
flagHideId?: boolean;
|
|
37449
|
+
/**
|
|
37450
|
+
* True if the Custom Object is hidden from the navigator.
|
|
37451
|
+
*/
|
|
37452
|
+
flagHidden?: boolean;
|
|
37453
|
+
/**
|
|
37454
|
+
* True if the Custom Object should appear in the Find dialog.
|
|
37455
|
+
*/
|
|
37456
|
+
flagShowInFind?: boolean;
|
|
37457
|
+
/**
|
|
37458
|
+
* True if the Custom Object should appear in the navigator.
|
|
37459
|
+
*/
|
|
37460
|
+
flagShowInNavigator?: boolean;
|
|
37461
|
+
/**
|
|
37462
|
+
* Relations to other entities.
|
|
37463
|
+
*/
|
|
37464
|
+
relations?: CustomObjectRelation[];
|
|
37465
|
+
/**
|
|
37466
|
+
* True if the Custom Object has web panel archives configured.
|
|
37467
|
+
*/
|
|
37468
|
+
hasWebPanels?: boolean;
|
|
37469
|
+
}
|
|
37470
|
+
/**
|
|
37471
|
+
* Describes a relation from a Custom Object to another entity.
|
|
37472
|
+
*/
|
|
37473
|
+
export interface CustomObjectRelation {
|
|
37474
|
+
/**
|
|
37475
|
+
* Database table name of the related entity.
|
|
37476
|
+
*/
|
|
37477
|
+
entityName?: string;
|
|
37478
|
+
/**
|
|
37479
|
+
* Type of the related entity, e.g. 'contact', 'CustomObject'.
|
|
37480
|
+
*/
|
|
37481
|
+
entityType?: string;
|
|
37482
|
+
/**
|
|
37483
|
+
* User-visible title of the related entity.
|
|
37484
|
+
*/
|
|
37485
|
+
entityTitle?: string;
|
|
37486
|
+
/**
|
|
37487
|
+
* Archive provider name for listing related rows.
|
|
37488
|
+
*/
|
|
37489
|
+
providerName?: string;
|
|
37490
|
+
/**
|
|
37491
|
+
* Database column name of the foreign key field.
|
|
37492
|
+
*/
|
|
37493
|
+
relationField?: string;
|
|
37494
|
+
/**
|
|
37495
|
+
* Database column name of the display field for the related entity.
|
|
37496
|
+
*/
|
|
37497
|
+
displayField?: string;
|
|
37498
|
+
/**
|
|
37499
|
+
* True if the functions (add/edit/delete) should be hidden for this relation.
|
|
37500
|
+
*/
|
|
37501
|
+
hideFunctions?: boolean;
|
|
37502
|
+
}
|
|
37237
37503
|
/**
|
|
37238
37504
|
* Chat Topic bot settings. Trigger script ids to run on bot events
|
|
37239
37505
|
*/
|