@superoffice/webapi 10.5.4 → 10.5.5

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 (198) hide show
  1. package/dist/cjs/AIAgent.d.ts +16 -0
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +34 -0
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/AppointmentAgent.d.ts +117 -0
  6. package/dist/cjs/AppointmentAgent.d.ts.map +1 -1
  7. package/dist/cjs/AppointmentAgent.js +242 -0
  8. package/dist/cjs/AppointmentAgent.js.map +1 -1
  9. package/dist/cjs/CRMScriptAgent.d.ts +31 -0
  10. package/dist/cjs/CRMScriptAgent.d.ts.map +1 -1
  11. package/dist/cjs/CRMScriptAgent.js +67 -0
  12. package/dist/cjs/CRMScriptAgent.js.map +1 -1
  13. package/dist/cjs/Carriers.d.ts +1289 -31
  14. package/dist/cjs/Carriers.d.ts.map +1 -1
  15. package/dist/cjs/Converters.d.ts +30 -0
  16. package/dist/cjs/Converters.d.ts.map +1 -1
  17. package/dist/cjs/Converters.js +635 -30
  18. package/dist/cjs/Converters.js.map +1 -1
  19. package/dist/cjs/CustomerServiceAgent.d.ts +30 -0
  20. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
  21. package/dist/cjs/CustomerServiceAgent.js +66 -0
  22. package/dist/cjs/CustomerServiceAgent.js.map +1 -1
  23. package/dist/cjs/DiagnosticsAgent.d.ts +105 -0
  24. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
  25. package/dist/cjs/DiagnosticsAgent.js +229 -0
  26. package/dist/cjs/DiagnosticsAgent.js.map +1 -1
  27. package/dist/cjs/DocumentAgent.d.ts +17 -0
  28. package/dist/cjs/DocumentAgent.d.ts.map +1 -1
  29. package/dist/cjs/DocumentAgent.js +36 -0
  30. package/dist/cjs/DocumentAgent.js.map +1 -1
  31. package/dist/cjs/DocumentMigrationAgent.d.ts +7 -0
  32. package/dist/cjs/DocumentMigrationAgent.d.ts.map +1 -1
  33. package/dist/cjs/DocumentMigrationAgent.js +24 -0
  34. package/dist/cjs/DocumentMigrationAgent.js.map +1 -1
  35. package/dist/cjs/EMailAgent.d.ts +33 -0
  36. package/dist/cjs/EMailAgent.d.ts.map +1 -1
  37. package/dist/cjs/EMailAgent.js +69 -0
  38. package/dist/cjs/EMailAgent.js.map +1 -1
  39. package/dist/cjs/Enums.d.ts +299 -5
  40. package/dist/cjs/Enums.d.ts.map +1 -1
  41. package/dist/cjs/Enums.js +309 -4
  42. package/dist/cjs/Enums.js.map +1 -1
  43. package/dist/cjs/LicenseAgent.d.ts +15 -0
  44. package/dist/cjs/LicenseAgent.d.ts.map +1 -1
  45. package/dist/cjs/LicenseAgent.js +33 -0
  46. package/dist/cjs/LicenseAgent.js.map +1 -1
  47. package/dist/cjs/ListAgent.d.ts +23 -22
  48. package/dist/cjs/ListAgent.d.ts.map +1 -1
  49. package/dist/cjs/ListAgent.js +36 -48
  50. package/dist/cjs/ListAgent.js.map +1 -1
  51. package/dist/cjs/MDOAgent.d.ts +1 -1
  52. package/dist/cjs/MarketingAgent.d.ts +31 -0
  53. package/dist/cjs/MarketingAgent.d.ts.map +1 -1
  54. package/dist/cjs/MarketingAgent.js +67 -0
  55. package/dist/cjs/MarketingAgent.js.map +1 -1
  56. package/dist/cjs/PersonAgent.d.ts +35 -0
  57. package/dist/cjs/PersonAgent.d.ts.map +1 -1
  58. package/dist/cjs/PersonAgent.js +71 -0
  59. package/dist/cjs/PersonAgent.js.map +1 -1
  60. package/dist/cjs/ProjectAgent.d.ts +16 -0
  61. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  62. package/dist/cjs/ProjectAgent.js +34 -0
  63. package/dist/cjs/ProjectAgent.js.map +1 -1
  64. package/dist/cjs/QuoteAgent.d.ts +16 -0
  65. package/dist/cjs/QuoteAgent.d.ts.map +1 -1
  66. package/dist/cjs/QuoteAgent.js +34 -0
  67. package/dist/cjs/QuoteAgent.js.map +1 -1
  68. package/dist/cjs/SaleAgent.d.ts +47 -0
  69. package/dist/cjs/SaleAgent.d.ts.map +1 -1
  70. package/dist/cjs/SaleAgent.js +101 -0
  71. package/dist/cjs/SaleAgent.js.map +1 -1
  72. package/dist/cjs/SelectionAgent.d.ts +15 -7
  73. package/dist/cjs/SelectionAgent.d.ts.map +1 -1
  74. package/dist/cjs/SelectionAgent.js +33 -21
  75. package/dist/cjs/SelectionAgent.js.map +1 -1
  76. package/dist/cjs/SentryAgent.d.ts +15 -0
  77. package/dist/cjs/SentryAgent.d.ts.map +1 -1
  78. package/dist/cjs/SentryAgent.js +33 -0
  79. package/dist/cjs/SentryAgent.js.map +1 -1
  80. package/dist/cjs/TicketAgent.d.ts +117 -2
  81. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  82. package/dist/cjs/TicketAgent.js +255 -0
  83. package/dist/cjs/TicketAgent.js.map +1 -1
  84. package/dist/cjs/WorkflowAgent.d.ts +80 -2
  85. package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
  86. package/dist/cjs/WorkflowAgent.js +188 -0
  87. package/dist/cjs/WorkflowAgent.js.map +1 -1
  88. package/dist/esm/AIAgent.d.ts +16 -0
  89. package/dist/esm/AIAgent.d.ts.map +1 -1
  90. package/dist/esm/AIAgent.js +34 -0
  91. package/dist/esm/AIAgent.js.map +1 -1
  92. package/dist/esm/AppointmentAgent.d.ts +117 -0
  93. package/dist/esm/AppointmentAgent.d.ts.map +1 -1
  94. package/dist/esm/AppointmentAgent.js +242 -0
  95. package/dist/esm/AppointmentAgent.js.map +1 -1
  96. package/dist/esm/CRMScriptAgent.d.ts +31 -0
  97. package/dist/esm/CRMScriptAgent.d.ts.map +1 -1
  98. package/dist/esm/CRMScriptAgent.js +67 -0
  99. package/dist/esm/CRMScriptAgent.js.map +1 -1
  100. package/dist/esm/Carriers.d.ts +1289 -31
  101. package/dist/esm/Carriers.d.ts.map +1 -1
  102. package/dist/esm/Converters.d.ts +30 -0
  103. package/dist/esm/Converters.d.ts.map +1 -1
  104. package/dist/esm/Converters.js +582 -8
  105. package/dist/esm/Converters.js.map +1 -1
  106. package/dist/esm/CustomerServiceAgent.d.ts +30 -0
  107. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
  108. package/dist/esm/CustomerServiceAgent.js +66 -0
  109. package/dist/esm/CustomerServiceAgent.js.map +1 -1
  110. package/dist/esm/DiagnosticsAgent.d.ts +105 -0
  111. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
  112. package/dist/esm/DiagnosticsAgent.js +229 -0
  113. package/dist/esm/DiagnosticsAgent.js.map +1 -1
  114. package/dist/esm/DocumentAgent.d.ts +17 -0
  115. package/dist/esm/DocumentAgent.d.ts.map +1 -1
  116. package/dist/esm/DocumentAgent.js +36 -0
  117. package/dist/esm/DocumentAgent.js.map +1 -1
  118. package/dist/esm/DocumentMigrationAgent.d.ts +7 -0
  119. package/dist/esm/DocumentMigrationAgent.d.ts.map +1 -1
  120. package/dist/esm/DocumentMigrationAgent.js +24 -0
  121. package/dist/esm/DocumentMigrationAgent.js.map +1 -1
  122. package/dist/esm/EMailAgent.d.ts +33 -0
  123. package/dist/esm/EMailAgent.d.ts.map +1 -1
  124. package/dist/esm/EMailAgent.js +69 -0
  125. package/dist/esm/EMailAgent.js.map +1 -1
  126. package/dist/esm/Enums.d.ts +299 -5
  127. package/dist/esm/Enums.d.ts.map +1 -1
  128. package/dist/esm/Enums.js +305 -0
  129. package/dist/esm/Enums.js.map +1 -1
  130. package/dist/esm/LicenseAgent.d.ts +15 -0
  131. package/dist/esm/LicenseAgent.d.ts.map +1 -1
  132. package/dist/esm/LicenseAgent.js +33 -0
  133. package/dist/esm/LicenseAgent.js.map +1 -1
  134. package/dist/esm/ListAgent.d.ts +23 -22
  135. package/dist/esm/ListAgent.d.ts.map +1 -1
  136. package/dist/esm/ListAgent.js +36 -48
  137. package/dist/esm/ListAgent.js.map +1 -1
  138. package/dist/esm/MDOAgent.d.ts +1 -1
  139. package/dist/esm/MarketingAgent.d.ts +31 -0
  140. package/dist/esm/MarketingAgent.d.ts.map +1 -1
  141. package/dist/esm/MarketingAgent.js +67 -0
  142. package/dist/esm/MarketingAgent.js.map +1 -1
  143. package/dist/esm/PersonAgent.d.ts +35 -0
  144. package/dist/esm/PersonAgent.d.ts.map +1 -1
  145. package/dist/esm/PersonAgent.js +71 -0
  146. package/dist/esm/PersonAgent.js.map +1 -1
  147. package/dist/esm/ProjectAgent.d.ts +16 -0
  148. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  149. package/dist/esm/ProjectAgent.js +34 -0
  150. package/dist/esm/ProjectAgent.js.map +1 -1
  151. package/dist/esm/QuoteAgent.d.ts +16 -0
  152. package/dist/esm/QuoteAgent.d.ts.map +1 -1
  153. package/dist/esm/QuoteAgent.js +34 -0
  154. package/dist/esm/QuoteAgent.js.map +1 -1
  155. package/dist/esm/SaleAgent.d.ts +47 -0
  156. package/dist/esm/SaleAgent.d.ts.map +1 -1
  157. package/dist/esm/SaleAgent.js +101 -0
  158. package/dist/esm/SaleAgent.js.map +1 -1
  159. package/dist/esm/SelectionAgent.d.ts +15 -7
  160. package/dist/esm/SelectionAgent.d.ts.map +1 -1
  161. package/dist/esm/SelectionAgent.js +33 -21
  162. package/dist/esm/SelectionAgent.js.map +1 -1
  163. package/dist/esm/SentryAgent.d.ts +15 -0
  164. package/dist/esm/SentryAgent.d.ts.map +1 -1
  165. package/dist/esm/SentryAgent.js +33 -0
  166. package/dist/esm/SentryAgent.js.map +1 -1
  167. package/dist/esm/TicketAgent.d.ts +117 -2
  168. package/dist/esm/TicketAgent.d.ts.map +1 -1
  169. package/dist/esm/TicketAgent.js +255 -0
  170. package/dist/esm/TicketAgent.js.map +1 -1
  171. package/dist/esm/WorkflowAgent.d.ts +80 -2
  172. package/dist/esm/WorkflowAgent.d.ts.map +1 -1
  173. package/dist/esm/WorkflowAgent.js +188 -0
  174. package/dist/esm/WorkflowAgent.js.map +1 -1
  175. package/package.json +5 -6
  176. package/src/AIAgent.ts +58 -0
  177. package/src/AppointmentAgent.ts +406 -0
  178. package/src/CRMScriptAgent.ts +114 -0
  179. package/src/Carriers.ts +1667 -34
  180. package/src/Converters.ts +677 -9
  181. package/src/CustomerServiceAgent.ts +112 -0
  182. package/src/DiagnosticsAgent.ts +380 -0
  183. package/src/DocumentAgent.ts +61 -0
  184. package/src/DocumentMigrationAgent.ts +30 -0
  185. package/src/EMailAgent.ts +118 -0
  186. package/src/Enums.ts +316 -0
  187. package/src/LicenseAgent.ts +56 -0
  188. package/src/ListAgent.ts +69 -65
  189. package/src/MDOAgent.ts +1 -1
  190. package/src/MarketingAgent.ts +114 -0
  191. package/src/PersonAgent.ts +122 -0
  192. package/src/ProjectAgent.ts +58 -0
  193. package/src/QuoteAgent.ts +58 -0
  194. package/src/SaleAgent.ts +172 -0
  195. package/src/SelectionAgent.ts +56 -23
  196. package/src/SentryAgent.ts +56 -0
  197. package/src/TicketAgent.ts +432 -2
  198. package/src/WorkflowAgent.ts +268 -2
@@ -40,6 +40,7 @@ export interface IDocumentMigrationAgent {
40
40
  migrateDocumentToNewDocPluginAsync(request: carriers.DocumentMigration_MigrateDocumentToNewDocPluginRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
41
41
  migrateDocumentToNewDocPluginAsync(documentId: number, documentPluginId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
42
42
  hasDocumentsToMigrateAsync(webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
43
+ getNumberOfConfidentialDocumentsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >;
43
44
  getForTemplatesAsync(request: carriers.DocumentMigration_GetForTemplatesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentTemplateMigrationList >;
44
45
  getForTemplatesAsync(targetDocumentPluginId: number, includeEmails: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentTemplateMigrationList >;
45
46
  migrateTemplateToNewDocPluginAsync(request: carriers.DocumentMigration_MigrateTemplateToNewDocPluginRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
@@ -378,6 +379,35 @@ export class DocumentMigrationAgent extends base.WebApiBase implements IDocument
378
379
  }
379
380
 
380
381
 
382
+ private async _getNumberOfConfidentialDocumentsAsync( options?:base.WebApiRequestOptions) : Promise< number > {
383
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
384
+ base.WebApiBase.SetPending(options);
385
+ return new Promise< number >(async (resolve, reject) => {
386
+ try {
387
+ config.baseURL = this._options.baseUrl;
388
+ const response = await this._axios.post("GetNumberOfConfidentialDocuments", undefined , config);
389
+ base.WebApiBase.SetCompleted(options);
390
+ const res : number = response.data as number;
391
+ resolve(res);
392
+ }
393
+ catch( err ) {
394
+ base.WebApiBase.HandleError(options, config, err);
395
+ reject(err);
396
+ }
397
+ });
398
+ }
399
+
400
+
401
+ /**
402
+ * Gets the total number of documents that is not visible to everyone
403
+ * @returns Number of confidential documents.
404
+ */
405
+ public async getNumberOfConfidentialDocumentsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >
406
+ {
407
+ return this._getNumberOfConfidentialDocumentsAsync(webapi_options);
408
+ }
409
+
410
+
381
411
  private async _getForTemplatesAsync(request: carriers.DocumentMigration_GetForTemplatesRequest, options?:base.WebApiRequestOptions) : Promise< carriers.DocumentTemplateMigrationList > {
382
412
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
383
413
  base.WebApiBase.SetPending(options);
package/src/EMailAgent.ts CHANGED
@@ -168,6 +168,10 @@ export interface IEMailAgent {
168
168
  sendAndSaveEmailToTmpDocumentAsync(email: carriers.EMailEntity, stripAttachments: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
169
169
  saveEmailToTmpDocumentAsync(request: carriers.EMail_SaveEmailToTmpDocumentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
170
170
  saveEmailToTmpDocumentAsync(email: carriers.EMailEntity, folderId: number, stripAttachments: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
171
+ createNewPhysicalDocumentFromEmailAttachmentAsync(request: carriers.EMail_CreateNewPhysicalDocumentFromEmailAttachmentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity >;
172
+ createNewPhysicalDocumentFromEmailAttachmentAsync(documentId: number, emailItemId: number, attachmentId: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity >;
173
+ createNewPhysicalDocumentFromEmailAsync(request: carriers.EMail_CreateNewPhysicalDocumentFromEmailRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity >;
174
+ createNewPhysicalDocumentFromEmailAsync(documentId: number, emailItemId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity >;
171
175
  saveDraftAsync(request: carriers.EMail_SaveDraftRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
172
176
  saveDraftAsync(entity: carriers.EMailEntity, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
173
177
  setRepliedAtAsync(request: carriers.EMail_SetRepliedAtRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
@@ -4057,6 +4061,120 @@ export class EMailAgent extends base.WebApiBase implements IEMailAgent {
4057
4061
  }
4058
4062
 
4059
4063
 
4064
+ private async _createNewPhysicalDocumentFromEmailAttachmentAsync(request: carriers.EMail_CreateNewPhysicalDocumentFromEmailAttachmentRequest, options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity > {
4065
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
4066
+ base.WebApiBase.SetPending(options);
4067
+ return new Promise< carriers.DocumentEntity >(async (resolve, reject) => {
4068
+ try {
4069
+ config.baseURL = this._options.baseUrl;
4070
+ const response = await this._axios.post("CreateNewPhysicalDocumentFromEmailAttachment", request , config);
4071
+ base.WebApiBase.SetCompleted(options);
4072
+ const res : carriers.DocumentEntity = converters.Create_DocumentEntity_From( response.data );
4073
+ resolve(res);
4074
+ }
4075
+ catch( err ) {
4076
+ base.WebApiBase.HandleError(options, config, err);
4077
+ reject(err);
4078
+ }
4079
+ });
4080
+ }
4081
+
4082
+
4083
+
4084
+ /**
4085
+ * Save the Email from the server as a document file connected to existing document
4086
+ * @param request - DocumentId, EmailItemId, AttachmentId
4087
+ * @returns The document
4088
+ */
4089
+ public async createNewPhysicalDocumentFromEmailAttachmentAsync(request: carriers.EMail_CreateNewPhysicalDocumentFromEmailAttachmentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity >;
4090
+
4091
+ /**
4092
+ * Save the Email from the server as a document file connected to existing document
4093
+ * @param documentId - The document ID int the DB
4094
+ * @param emailItemId - The emails ID int the DB
4095
+ * @param attachmentId - Id string of the attachment
4096
+ * @returns The document
4097
+ */
4098
+ public async createNewPhysicalDocumentFromEmailAttachmentAsync(documentId: number, emailItemId: number, attachmentId: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity >;
4099
+
4100
+ public async createNewPhysicalDocumentFromEmailAttachmentAsync(documentId:number|carriers.EMail_CreateNewPhysicalDocumentFromEmailAttachmentRequest, emailItemId?:number|base.WebApiRequestOptions, attachmentId?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity > {
4101
+ let _request : carriers.EMail_CreateNewPhysicalDocumentFromEmailAttachmentRequest = null;
4102
+ let _options : base.WebApiRequestOptions = null;
4103
+ const first : any = documentId;
4104
+ if( typeof( first ) === "object" && first && ( typeof(first.documentId)!='undefined' || typeof(first.emailItemId)!='undefined' || typeof(first.attachmentId)!='undefined' ) )
4105
+ {
4106
+ _request = documentId as carriers.EMail_CreateNewPhysicalDocumentFromEmailAttachmentRequest;
4107
+ _options = emailItemId as base.WebApiRequestOptions;
4108
+ }
4109
+ else
4110
+ {
4111
+ _request = {
4112
+ documentId: documentId as number,
4113
+ emailItemId: emailItemId as number,
4114
+ attachmentId: attachmentId as string,
4115
+ };
4116
+ _options = webapi_options;
4117
+ }
4118
+ return this._createNewPhysicalDocumentFromEmailAttachmentAsync( _request, _options );
4119
+ }
4120
+
4121
+
4122
+ private async _createNewPhysicalDocumentFromEmailAsync(request: carriers.EMail_CreateNewPhysicalDocumentFromEmailRequest, options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity > {
4123
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
4124
+ base.WebApiBase.SetPending(options);
4125
+ return new Promise< carriers.DocumentEntity >(async (resolve, reject) => {
4126
+ try {
4127
+ config.baseURL = this._options.baseUrl;
4128
+ const response = await this._axios.post("CreateNewPhysicalDocumentFromEmail", request , config);
4129
+ base.WebApiBase.SetCompleted(options);
4130
+ const res : carriers.DocumentEntity = converters.Create_DocumentEntity_From( response.data );
4131
+ resolve(res);
4132
+ }
4133
+ catch( err ) {
4134
+ base.WebApiBase.HandleError(options, config, err);
4135
+ reject(err);
4136
+ }
4137
+ });
4138
+ }
4139
+
4140
+
4141
+
4142
+ /**
4143
+ * Save the Email from the server as a document file connected to existing document
4144
+ * @param request - DocumentId, EmailItemId
4145
+ * @returns The document
4146
+ */
4147
+ public async createNewPhysicalDocumentFromEmailAsync(request: carriers.EMail_CreateNewPhysicalDocumentFromEmailRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity >;
4148
+
4149
+ /**
4150
+ * Save the Email from the server as a document file connected to existing document
4151
+ * @param documentId - The document ID int the DB
4152
+ * @param emailItemId - The emails ID in the DB
4153
+ * @returns The document
4154
+ */
4155
+ public async createNewPhysicalDocumentFromEmailAsync(documentId: number, emailItemId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity >;
4156
+
4157
+ public async createNewPhysicalDocumentFromEmailAsync(documentId:number|carriers.EMail_CreateNewPhysicalDocumentFromEmailRequest, emailItemId?:number|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DocumentEntity > {
4158
+ let _request : carriers.EMail_CreateNewPhysicalDocumentFromEmailRequest = null;
4159
+ let _options : base.WebApiRequestOptions = null;
4160
+ const first : any = documentId;
4161
+ if( typeof( first ) === "object" && first && ( typeof(first.documentId)!='undefined' || typeof(first.emailItemId)!='undefined' ) )
4162
+ {
4163
+ _request = documentId as carriers.EMail_CreateNewPhysicalDocumentFromEmailRequest;
4164
+ _options = emailItemId as base.WebApiRequestOptions;
4165
+ }
4166
+ else
4167
+ {
4168
+ _request = {
4169
+ documentId: documentId as number,
4170
+ emailItemId: emailItemId as number,
4171
+ };
4172
+ _options = webapi_options;
4173
+ }
4174
+ return this._createNewPhysicalDocumentFromEmailAsync( _request, _options );
4175
+ }
4176
+
4177
+
4060
4178
  private async _saveDraftAsync(request: carriers.EMail_SaveDraftRequest, options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity > {
4061
4179
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
4062
4180
  base.WebApiBase.SetPending(options);
package/src/Enums.ts CHANGED
@@ -43,6 +43,30 @@
43
43
  }
44
44
 
45
45
 
46
+ /**
47
+ * An external owner system for appointments (Outlook, Google...)
48
+ * This Enum is used by: appointment.owned_externally
49
+ */
50
+ export enum AppointmentExternalOwner {
51
+ /**
52
+ * 0: No external owner
53
+ */
54
+ None = "None",
55
+ /**
56
+ * 1: An external system owns the appointment
57
+ */
58
+ Other = "Other",
59
+ /**
60
+ * 2: Outlook owns the appointment
61
+ */
62
+ Outlook = "Outlook",
63
+ /**
64
+ * 3: Google owns the appointment
65
+ */
66
+ Google = "Google",
67
+ }
68
+
69
+
46
70
  /**
47
71
  * Value for field 'private' in table 'appointment'.
48
72
  * This Enum is used by: appointment.private
@@ -1201,6 +1225,10 @@
1201
1225
  * 11: Recipient address has bounced too many times
1202
1226
  */
1203
1227
  TooManyBounces = "TooManyBounces",
1228
+ /**
1229
+ * 12: Recipient address is a test mail
1230
+ */
1231
+ TestMail = "TestMail",
1204
1232
  }
1205
1233
 
1206
1234
 
@@ -1413,6 +1441,10 @@
1413
1441
  * 18: HTML data for dashboard tiles
1414
1442
  */
1415
1443
  DashboardHtmlTileData = "DashboardHtmlTileData",
1444
+ /**
1445
+ * 19: Extra table icon
1446
+ */
1447
+ ExtraTableIcon = "ExtraTableIcon",
1416
1448
  }
1417
1449
 
1418
1450
 
@@ -2608,6 +2640,10 @@
2608
2640
  * 13: OpenOffice/LibreOffice documents (contents of zipped files)
2609
2641
  */
2610
2642
  OpenDocumentXml = "OpenDocumentXml",
2643
+ /**
2644
+ * 14: Microsoft Word 2007 document type document, using custom Aspose.Words based engine.
2645
+ */
2646
+ MsWord2007 = "MsWord2007",
2611
2647
  }
2612
2648
 
2613
2649
 
@@ -3315,6 +3351,87 @@
3315
3351
  }
3316
3352
 
3317
3353
 
3354
+ /**
3355
+ * Workflow event type
3356
+ */
3357
+ export enum WorkflowContentType {
3358
+ /**
3359
+ * 0: None
3360
+ */
3361
+ None = "None",
3362
+ /**
3363
+ * 1: Message
3364
+ */
3365
+ Message = "Message",
3366
+ /**
3367
+ * 2: Form
3368
+ */
3369
+ Form = "Form",
3370
+ /**
3371
+ * 3: Link
3372
+ */
3373
+ Link = "Link",
3374
+ }
3375
+
3376
+
3377
+ /**
3378
+ * Workflow notify email type
3379
+ */
3380
+ export enum WorkflowNotifyEmailType {
3381
+ /**
3382
+ * 0: OurContact
3383
+ */
3384
+ OurContact = "OurContact",
3385
+ /**
3386
+ * 1: OurServiceContact
3387
+ */
3388
+ OurServiceContact = "OurServiceContact",
3389
+ /**
3390
+ * 2: SpecificEmailAddress
3391
+ */
3392
+ SpecificEmailAddress = "SpecificEmailAddress",
3393
+ }
3394
+
3395
+
3396
+ /**
3397
+ * Workflow notify sms type
3398
+ */
3399
+ export enum WorkflowNotifySMSType {
3400
+ /**
3401
+ * 0: OurContact
3402
+ */
3403
+ OurContact = "OurContact",
3404
+ /**
3405
+ * 1: OurServiceContact
3406
+ */
3407
+ OurServiceContact = "OurServiceContact",
3408
+ /**
3409
+ * 2: SpecificPhoneNumbers
3410
+ */
3411
+ SpecificPhoneNumbers = "SpecificPhoneNumbers",
3412
+ }
3413
+
3414
+
3415
+ /**
3416
+ * Workflow action type
3417
+ * This Enum is used by: workflow_wait_for_action.ActionType
3418
+ */
3419
+ export enum WorkflowWaitForActionType {
3420
+ /**
3421
+ * 0: None
3422
+ */
3423
+ None = "None",
3424
+ /**
3425
+ * 1: LinkClicked
3426
+ */
3427
+ LinkClicked = "LinkClicked",
3428
+ /**
3429
+ * 2: FormSubmitted
3430
+ */
3431
+ FormSubmitted = "FormSubmitted",
3432
+ }
3433
+
3434
+
3318
3435
  /**
3319
3436
  * Workflow Goal Type
3320
3437
  * This Enum is used by: workflow_goal.goal_type
@@ -4668,6 +4785,10 @@
4668
4785
  * 6: Customer center change password key
4669
4786
  */
4670
4787
  ChangePasswordCustomerCenter = "ChangePasswordCustomerCenter",
4788
+ /**
4789
+ * 7: Customer center register email verification
4790
+ */
4791
+ RegisterCustomerCenterEmailVerification = "RegisterCustomerCenterEmailVerification",
4671
4792
  }
4672
4793
 
4673
4794
 
@@ -5437,6 +5558,74 @@
5437
5558
  }
5438
5559
 
5439
5560
 
5561
+ /**
5562
+ * HTML sanitizer options
5563
+ * This Enum consists of flag values that can be combined.
5564
+ */
5565
+ export enum HtmlSanitizerOptions {
5566
+ /**
5567
+ * 0: Default - the default settings
5568
+ */
5569
+ Default = 0,
5570
+ /**
5571
+ * 1: RemoveComment - removes HTML comment tags and content between them
5572
+ */
5573
+ RemoveComment = 1,
5574
+ }
5575
+
5576
+
5577
+ /**
5578
+ * System Message Type
5579
+ * This Enum is used by: Message.type
5580
+ * This Enum consists of flag values that can be combined.
5581
+ */
5582
+ export enum SystemMessageType {
5583
+ /**
5584
+ * 0: System message type is unspecified.
5585
+ */
5586
+ Unspecified = 0,
5587
+ /**
5588
+ * 1: There is information that the user should be made aware of.
5589
+ */
5590
+ Info = 1,
5591
+ /**
5592
+ * 2: There is a problem that the user must be made aware of.
5593
+ */
5594
+ Warning = 2,
5595
+ /**
5596
+ * 3: There is a problem that the system will not be able to get around.
5597
+ */
5598
+ Error = 3,
5599
+ /**
5600
+ * 4: Undefined and generated value 4
5601
+ */
5602
+ UndefinedValue4 = 4,
5603
+ }
5604
+
5605
+
5606
+ /**
5607
+ * The different channels to send notifications over
5608
+ */
5609
+ export enum NotifyChannel {
5610
+ /**
5611
+ * 0: Unknown notification type
5612
+ */
5613
+ Unknown = "Unknown",
5614
+ /**
5615
+ * 1: Notifications sent as a popup message
5616
+ */
5617
+ PopUp = "PopUp",
5618
+ /**
5619
+ * 2: Notifications sent as an email
5620
+ */
5621
+ Email = "Email",
5622
+ /**
5623
+ * 3: Notifications sent as a sms
5624
+ */
5625
+ Sms = "Sms",
5626
+ }
5627
+
5628
+
5440
5629
  /**
5441
5630
  * CrmScript Event triggers - when CRMScript is run based on user or system actions.
5442
5631
  */
@@ -5789,6 +5978,14 @@
5789
5978
  * 1016: SalesBeforeSaveTicket
5790
5979
  */
5791
5980
  SalesBeforeSaveTicket = "SalesBeforeSaveTicket",
5981
+ /**
5982
+ * 1017: SalesLoadCustomObject
5983
+ */
5984
+ SalesLoadCustomObject = "SalesLoadCustomObject",
5985
+ /**
5986
+ * 1018: SalesBeforeSaveCustomObject
5987
+ */
5988
+ SalesBeforeSaveCustomObject = "SalesBeforeSaveCustomObject",
5792
5989
  /**
5793
5990
  * 1101: SalesAfterSaveAppointment
5794
5991
  */
@@ -5853,6 +6050,14 @@
5853
6050
  * 1116: SalesAfterSaveTicket
5854
6051
  */
5855
6052
  SalesAfterSaveTicket = "SalesAfterSaveTicket",
6053
+ /**
6054
+ * 1117: SalesAfterSaveCustomObject
6055
+ */
6056
+ SalesAfterSaveCustomObject = "SalesAfterSaveCustomObject",
6057
+ /**
6058
+ * 1019: SalesSplitTicket
6059
+ */
6060
+ SalesSplitTicket = "SalesSplitTicket",
5856
6061
  }
5857
6062
 
5858
6063
 
@@ -6128,6 +6333,37 @@
6128
6333
  }
6129
6334
 
6130
6335
 
6336
+ /**
6337
+ * The different types of escalate actions that can be set
6338
+ */
6339
+ export enum TicketPriorityEscalateAction {
6340
+ /**
6341
+ * 0: Triggers escalation on ticket read
6342
+ */
6343
+ ActionRead = "ActionRead",
6344
+ /**
6345
+ * 1: Triggers escalation on ticket owner change
6346
+ */
6347
+ ActionChangedOwner = "ActionChangedOwner",
6348
+ /**
6349
+ * 2: Triggers escalation on ticket update
6350
+ */
6351
+ ActionNewInfo = "ActionNewInfo",
6352
+ /**
6353
+ * 3: Triggers escalation on ticket close
6354
+ */
6355
+ ActionClosed = "ActionClosed",
6356
+ /**
6357
+ * 4: Triggers escalation on ticket priority change
6358
+ */
6359
+ ActionChangedPriority = "ActionChangedPriority",
6360
+ /**
6361
+ * 5: Triggers escalation on ticket creation
6362
+ */
6363
+ ActionNew = "ActionNew",
6364
+ }
6365
+
6366
+
6131
6367
  /**
6132
6368
  * Whether the owner has read the ticket or not (red, yellow, green)
6133
6369
  * This Enum is used by: ticket.read_status
@@ -6325,6 +6561,86 @@
6325
6561
  }
6326
6562
 
6327
6563
 
6564
+ /**
6565
+ * Value for field 'Type' in table 'notify'. Defines the notification type.
6566
+ * This Enum consists of flag values that can be combined.
6567
+ */
6568
+ export enum NotifyType {
6569
+ /**
6570
+ * 1: New ticket event
6571
+ */
6572
+ NewTicket = 1,
6573
+ /**
6574
+ * 2: New ticket message event
6575
+ */
6576
+ NewTicketMessage = 2,
6577
+ /**
6578
+ * 4: Ticket escalated event
6579
+ */
6580
+ TicketEscalated = 4,
6581
+ /**
6582
+ * 8: Ticket activated event
6583
+ */
6584
+ TicketActivated = 8,
6585
+ /**
6586
+ * 16: Chat alert event
6587
+ */
6588
+ ChatAlert = 16,
6589
+ /**
6590
+ * 32: Active tickets (only used as a filter (ejuser))
6591
+ */
6592
+ ActiveTickets = 32,
6593
+ /**
6594
+ * 64: Ticket take over event
6595
+ */
6596
+ TicketTakeOver = 64,
6597
+ /**
6598
+ * 128: Chat message alert event
6599
+ */
6600
+ ChatMessageAlert = 128,
6601
+ /**
6602
+ * 256: Chat session transfered event
6603
+ */
6604
+ ChatSessionTransfered = 256,
6605
+ /**
6606
+ * 512: Hot list (only used as a filter (ejuser))
6607
+ */
6608
+ Hotlist = 512,
6609
+ /**
6610
+ * 1024: Custom event
6611
+ */
6612
+ Custom = 1024,
6613
+ /**
6614
+ * 2047: Notify all
6615
+ */
6616
+ NotifyAll = 2047,
6617
+ /**
6618
+ * 2048: Undefined and generated value 2048
6619
+ */
6620
+ UndefinedValue2048 = 2048,
6621
+ }
6622
+
6623
+
6624
+ /**
6625
+ * Value for field 'Type' in table 'ej_script'. Indicates what type of script this is.
6626
+ * This Enum is used by: ejscript.type
6627
+ */
6628
+ export enum ScriptType {
6629
+ /**
6630
+ * 0: Unknown script type
6631
+ */
6632
+ Unknown = "Unknown",
6633
+ /**
6634
+ * 1: CRMScript
6635
+ */
6636
+ CRMScript = "CRMScript",
6637
+ /**
6638
+ * 2: JavaScript
6639
+ */
6640
+ JavaScript = "JavaScript",
6641
+ }
6642
+
6643
+
6328
6644
  /**
6329
6645
  * Chat Topic widget_theme: classic(0) or modern(1).
6330
6646
  * This Enum is used by: chat_topic.widget_theme
@@ -40,6 +40,8 @@ export interface ILicenseAgent {
40
40
  getLicenseStatusFromLicenseServerAsync(ownerName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.CheckLicenseStatusResult >;
41
41
  getLicenseFromDBAsync(request: carriers.License_GetLicenseFromDBRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ExtendedLicenseInfo >;
42
42
  getLicenseFromDBAsync(ownerName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ExtendedLicenseInfo >;
43
+ getUserAndInstallationLicenceStatusAsync(request: carriers.License_GetUserAndInstallationLicenceStatusRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UserAndInstallationLicenceStatus >;
44
+ getUserAndInstallationLicenceStatusAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UserAndInstallationLicenceStatus >;
43
45
  changeSerialNumberAsync(request: carriers.License_ChangeSerialNumberRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseResult >;
44
46
  changeSerialNumberAsync(newCompanyName: string, newSerialNumber: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseResult >;
45
47
  getUserLicensesAsync(request: carriers.License_GetUserLicensesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
@@ -447,6 +449,60 @@ export class LicenseAgent extends base.WebApiBase implements ILicenseAgent {
447
449
  }
448
450
 
449
451
 
452
+ private async _getUserAndInstallationLicenceStatusAsync(request: carriers.License_GetUserAndInstallationLicenceStatusRequest, options?:base.WebApiRequestOptions) : Promise< carriers.UserAndInstallationLicenceStatus > {
453
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
454
+ base.WebApiBase.SetPending(options);
455
+ return new Promise< carriers.UserAndInstallationLicenceStatus >(async (resolve, reject) => {
456
+ try {
457
+ config.baseURL = this._options.baseUrl;
458
+ const response = await this._axios.post("GetUserAndInstallationLicenceStatus", request , config);
459
+ base.WebApiBase.SetCompleted(options);
460
+ const res : carriers.UserAndInstallationLicenceStatus = converters.Create_UserAndInstallationLicenceStatus_From( response.data );
461
+ resolve(res);
462
+ }
463
+ catch( err ) {
464
+ base.WebApiBase.HandleError(options, config, err);
465
+ reject(err);
466
+ }
467
+ });
468
+ }
469
+
470
+
471
+
472
+ /**
473
+ * Get status values for user licenses and installation license that can be used for feedback to the user.
474
+ * @param request - AssociateId
475
+ * @returns An object that holds information for producing license status feedback to the user.
476
+ */
477
+ public async getUserAndInstallationLicenceStatusAsync(request: carriers.License_GetUserAndInstallationLicenceStatusRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UserAndInstallationLicenceStatus >;
478
+
479
+ /**
480
+ * Get status values for user licenses and installation license that can be used for feedback to the user.
481
+ * @param associateId - Associate id to use when loading information about user licenses and installation license status.
482
+ * @returns An object that holds information for producing license status feedback to the user.
483
+ */
484
+ public async getUserAndInstallationLicenceStatusAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UserAndInstallationLicenceStatus >;
485
+
486
+ public async getUserAndInstallationLicenceStatusAsync(associateId:number|carriers.License_GetUserAndInstallationLicenceStatusRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UserAndInstallationLicenceStatus > {
487
+ let _request : carriers.License_GetUserAndInstallationLicenceStatusRequest = null;
488
+ let _options : base.WebApiRequestOptions = null;
489
+ const first : any = associateId;
490
+ if( typeof( first ) === "object" && first && ( typeof(first.associateId)!='undefined' ) )
491
+ {
492
+ _request = associateId as carriers.License_GetUserAndInstallationLicenceStatusRequest;
493
+ _options = webapi_options as base.WebApiRequestOptions;
494
+ }
495
+ else
496
+ {
497
+ _request = {
498
+ associateId: associateId as number,
499
+ };
500
+ _options = webapi_options;
501
+ }
502
+ return this._getUserAndInstallationLicenceStatusAsync( _request, _options );
503
+ }
504
+
505
+
450
506
  private async _changeSerialNumberAsync(request: carriers.License_ChangeSerialNumberRequest, options?:base.WebApiRequestOptions) : Promise< carriers.LicenseResult > {
451
507
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
452
508
  base.WebApiBase.SetPending(options);