@superoffice/webapi 12.1.1412 → 12.3.2570
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 +585 -23
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +17 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +35 -0
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +30 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +445 -32
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +7 -0
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/cjs/DiagnosticsAgent.js +24 -0
- package/dist/cjs/DiagnosticsAgent.js.map +1 -1
- package/dist/cjs/EMailAgent.d.ts +16 -0
- package/dist/cjs/EMailAgent.d.ts.map +1 -1
- package/dist/cjs/EMailAgent.js +48 -0
- package/dist/cjs/EMailAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +93 -1
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +99 -2
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +31 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +87 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/MarketingAgent.d.ts +94 -16
- package/dist/cjs/MarketingAgent.d.ts.map +1 -1
- package/dist/cjs/MarketingAgent.js +222 -34
- package/dist/cjs/MarketingAgent.js.map +1 -1
- package/dist/cjs/NewsFeedAgent.d.ts +141 -0
- package/dist/cjs/NewsFeedAgent.d.ts.map +1 -0
- package/dist/cjs/NewsFeedAgent.js +292 -0
- package/dist/cjs/NewsFeedAgent.js.map +1 -0
- package/dist/cjs/ViewStateAgent.d.ts +34 -0
- package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
- package/dist/cjs/ViewStateAgent.js +70 -0
- package/dist/cjs/ViewStateAgent.js.map +1 -1
- 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 +585 -23
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +17 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +35 -0
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +30 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +384 -1
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +7 -0
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/esm/DiagnosticsAgent.js +24 -0
- package/dist/esm/DiagnosticsAgent.js.map +1 -1
- package/dist/esm/EMailAgent.d.ts +16 -0
- package/dist/esm/EMailAgent.d.ts.map +1 -1
- package/dist/esm/EMailAgent.js +48 -0
- package/dist/esm/EMailAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +93 -1
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +97 -1
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +31 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +87 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/MarketingAgent.d.ts +94 -16
- package/dist/esm/MarketingAgent.d.ts.map +1 -1
- package/dist/esm/MarketingAgent.js +222 -34
- package/dist/esm/MarketingAgent.js.map +1 -1
- package/dist/esm/NewsFeedAgent.d.ts +141 -0
- package/dist/esm/NewsFeedAgent.d.ts.map +1 -0
- package/dist/esm/NewsFeedAgent.js +287 -0
- package/dist/esm/NewsFeedAgent.js.map +1 -0
- package/dist/esm/ViewStateAgent.d.ts +34 -0
- package/dist/esm/ViewStateAgent.d.ts.map +1 -1
- package/dist/esm/ViewStateAgent.js +70 -0
- package/dist/esm/ViewStateAgent.js.map +1 -1
- 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 +810 -27
- package/src/ConfigurationAgent.ts +60 -0
- package/src/Converters.ts +468 -1
- package/src/DiagnosticsAgent.ts +30 -0
- package/src/EMailAgent.ts +76 -0
- package/src/Enums.ts +101 -1
- package/src/ListAgent.ts +94 -0
- package/src/MarketingAgent.ts +324 -58
- package/src/NewsFeedAgent.ts +481 -0
- package/src/ViewStateAgent.ts +120 -0
- package/src/WebApi.ts +12 -0
package/src/EMailAgent.ts
CHANGED
|
@@ -145,6 +145,8 @@ export interface IEMailAgent {
|
|
|
145
145
|
deleteExtendedAsync(connectionInfoExtended: carriers.EMailConnectionInfoExtended, messageIds: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
146
146
|
relayMessageAsync(request: carriers.EMail_RelayMessageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
147
147
|
relayMessageAsync(connectionInfoExtended: carriers.EMailConnectionInfoExtended, rfc822: string, from: string, recipients: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
148
|
+
getEMailAsEmlStreamAsync(request: carriers.EMail_GetEMailAsEmlStreamRequest, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string >;
|
|
149
|
+
getEMailAsEmlStreamAsync(emailItemId: number, includeAttachments: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string >;
|
|
148
150
|
getEMailAsync(request: carriers.EMail_GetEMailRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
|
|
149
151
|
getEMailAsync(id: number, includeAttachments: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
|
|
150
152
|
getUnsanitizedEMailAsync(request: carriers.EMail_GetUnsanitizedEMailRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
|
|
@@ -3476,6 +3478,80 @@ export class EMailAgent extends base.WebApiBase implements IEMailAgent {
|
|
|
3476
3478
|
}
|
|
3477
3479
|
|
|
3478
3480
|
|
|
3481
|
+
private async _getEMailAsEmlStreamAsync(request: carriers.EMail_GetEMailAsEmlStreamRequest, options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string > {
|
|
3482
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options) || {};
|
|
3483
|
+
base.WebApiBase.SetPending(options);
|
|
3484
|
+
return new Promise< ArrayBuffer|string >(async (resolve, reject) => {
|
|
3485
|
+
try {
|
|
3486
|
+
if( ! options || options.returnBlobAs == base.ReturnBlobType.AsArrayBuffer ) {
|
|
3487
|
+
config.responseType = "arraybuffer";
|
|
3488
|
+
config.headers = config.headers || {};
|
|
3489
|
+
config.headers["Accept"] = "application/octet-stream";
|
|
3490
|
+
}
|
|
3491
|
+
config.baseURL = this._options.baseUrl;
|
|
3492
|
+
const response = await this._axios.post("GetEMailAsEmlStream", request , config);
|
|
3493
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
3494
|
+
let res : ArrayBuffer | string = null;
|
|
3495
|
+
if( options && options.returnBlobAs != base.ReturnBlobType.AsArrayBuffer )
|
|
3496
|
+
{
|
|
3497
|
+
res = response.data as string;
|
|
3498
|
+
if( options.returnBlobAs == base.ReturnBlobType.AsString )
|
|
3499
|
+
{
|
|
3500
|
+
res = FromBase64ToString(res);
|
|
3501
|
+
}
|
|
3502
|
+
}
|
|
3503
|
+
else
|
|
3504
|
+
{
|
|
3505
|
+
res = response.data as ArrayBuffer;
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
resolve(res);
|
|
3509
|
+
}
|
|
3510
|
+
catch( err ) {
|
|
3511
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
3512
|
+
reject(err);
|
|
3513
|
+
}
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
|
|
3518
|
+
|
|
3519
|
+
/**
|
|
3520
|
+
* Get an inbox e-mail (by its EmailItemId) serialized as an Outlook-openable RFC822 (.eml) stream. Works for both IMAP and Graph/Exchange-Online mailboxes because it serializes the loaded entity instead of re-fetching the raw message by server id.
|
|
3521
|
+
* @param request - EmailItemId, IncludeAttachments
|
|
3522
|
+
* @returns Get an inbox e-mail (by its EmailItemId) serialized as an Outlook-openable RFC822 (.eml) stream
|
|
3523
|
+
*/
|
|
3524
|
+
public async getEMailAsEmlStreamAsync(request: carriers.EMail_GetEMailAsEmlStreamRequest, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string >;
|
|
3525
|
+
|
|
3526
|
+
/**
|
|
3527
|
+
* Get an inbox e-mail (by its EmailItemId) serialized as an Outlook-openable RFC822 (.eml) stream. Works for both IMAP and Graph/Exchange-Online mailboxes because it serializes the loaded entity instead of re-fetching the raw message by server id.
|
|
3528
|
+
* @param emailItemId - The EmailItemId of the e-mail to retrieve as stream
|
|
3529
|
+
* @param includeAttachments - Should attachments be included in the stream
|
|
3530
|
+
* @returns Get an inbox e-mail (by its EmailItemId) serialized as an Outlook-openable RFC822 (.eml) stream
|
|
3531
|
+
*/
|
|
3532
|
+
public async getEMailAsEmlStreamAsync(emailItemId: number, includeAttachments: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string >;
|
|
3533
|
+
|
|
3534
|
+
public async getEMailAsEmlStreamAsync(emailItemId:number|carriers.EMail_GetEMailAsEmlStreamRequest, includeAttachments?:boolean|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string > {
|
|
3535
|
+
let _request : carriers.EMail_GetEMailAsEmlStreamRequest = null;
|
|
3536
|
+
let _options : base.WebApiRequestOptions = null;
|
|
3537
|
+
const first : any = emailItemId;
|
|
3538
|
+
if( typeof( first ) === "object" && first && ( typeof(first.emailItemId)!='undefined' || typeof(first.includeAttachments)!='undefined' ) )
|
|
3539
|
+
{
|
|
3540
|
+
_request = emailItemId as carriers.EMail_GetEMailAsEmlStreamRequest;
|
|
3541
|
+
_options = includeAttachments as base.WebApiRequestOptions;
|
|
3542
|
+
}
|
|
3543
|
+
else
|
|
3544
|
+
{
|
|
3545
|
+
_request = {
|
|
3546
|
+
emailItemId: emailItemId as number,
|
|
3547
|
+
includeAttachments: includeAttachments as boolean,
|
|
3548
|
+
};
|
|
3549
|
+
_options = webapi_options;
|
|
3550
|
+
}
|
|
3551
|
+
return this._getEMailAsEmlStreamAsync( _request, _options );
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3554
|
+
|
|
3479
3555
|
private async _getEMailAsync(request: carriers.EMail_GetEMailRequest, options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity > {
|
|
3480
3556
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
3481
3557
|
base.WebApiBase.SetPending(options);
|
package/src/Enums.ts
CHANGED
|
@@ -2371,7 +2371,7 @@
|
|
|
2371
2371
|
|
|
2372
2372
|
/**
|
|
2373
2373
|
*
|
|
2374
|
-
* This Enum is used by: email_item.priority
|
|
2374
|
+
* This Enum is used by: email_item.priority; NewsFeedItem.Priority
|
|
2375
2375
|
*/
|
|
2376
2376
|
export enum EMailPriority {
|
|
2377
2377
|
/**
|
|
@@ -5730,6 +5730,106 @@
|
|
|
5730
5730
|
}
|
|
5731
5731
|
|
|
5732
5732
|
|
|
5733
|
+
/**
|
|
5734
|
+
* News feed item status - indicates if the item is being handled by a CTA
|
|
5735
|
+
* This Enum is used by: NewsFeedItem.Status
|
|
5736
|
+
*/
|
|
5737
|
+
export enum NewsFeedItemStatus {
|
|
5738
|
+
/**
|
|
5739
|
+
* 0: Normal - nothing special has happened yet.
|
|
5740
|
+
*/
|
|
5741
|
+
Normal = "Normal",
|
|
5742
|
+
/**
|
|
5743
|
+
* 1: Processing has started - the item is being handled by a CTA
|
|
5744
|
+
*/
|
|
5745
|
+
Handling = "Handling",
|
|
5746
|
+
/**
|
|
5747
|
+
* 2: Handled - the item has been processed by a CTA
|
|
5748
|
+
*/
|
|
5749
|
+
Handled = "Handled",
|
|
5750
|
+
}
|
|
5751
|
+
|
|
5752
|
+
|
|
5753
|
+
/**
|
|
5754
|
+
* News feed CTA type
|
|
5755
|
+
* This Enum is used by: NewsFeedItemCta.CtaType
|
|
5756
|
+
*/
|
|
5757
|
+
export enum CtaType {
|
|
5758
|
+
/**
|
|
5759
|
+
* 0: Unknown - rendered as a link, maybe
|
|
5760
|
+
*/
|
|
5761
|
+
Unknown = "Unknown",
|
|
5762
|
+
/**
|
|
5763
|
+
* 1: Rendered as a solid color button
|
|
5764
|
+
*/
|
|
5765
|
+
Primary = "Primary",
|
|
5766
|
+
/**
|
|
5767
|
+
* 2: Rendered as an outline button
|
|
5768
|
+
*/
|
|
5769
|
+
Secondary = "Secondary",
|
|
5770
|
+
/**
|
|
5771
|
+
* 3: Rendered as a blue underlined link
|
|
5772
|
+
*/
|
|
5773
|
+
Link = "Link",
|
|
5774
|
+
}
|
|
5775
|
+
|
|
5776
|
+
|
|
5777
|
+
/**
|
|
5778
|
+
* News feed CTA flavor
|
|
5779
|
+
* This Enum is used by: NewsFeedItemCta.CtaFlavor
|
|
5780
|
+
*/
|
|
5781
|
+
export enum CtaFlavor {
|
|
5782
|
+
/**
|
|
5783
|
+
* 0: Plain - no special style
|
|
5784
|
+
*/
|
|
5785
|
+
Normal = "Normal",
|
|
5786
|
+
/**
|
|
5787
|
+
* 1: Blue info icon
|
|
5788
|
+
*/
|
|
5789
|
+
Info = "Info",
|
|
5790
|
+
/**
|
|
5791
|
+
* 2: Yellow warning icon
|
|
5792
|
+
*/
|
|
5793
|
+
Warning = "Warning",
|
|
5794
|
+
/**
|
|
5795
|
+
* 3: Red error icon
|
|
5796
|
+
*/
|
|
5797
|
+
Error = "Error",
|
|
5798
|
+
/**
|
|
5799
|
+
* 4: Green check icon
|
|
5800
|
+
*/
|
|
5801
|
+
Accept = "Accept",
|
|
5802
|
+
/**
|
|
5803
|
+
* 5: Red x icon
|
|
5804
|
+
*/
|
|
5805
|
+
Reject = "Reject",
|
|
5806
|
+
}
|
|
5807
|
+
|
|
5808
|
+
|
|
5809
|
+
/**
|
|
5810
|
+
* What kind of content a landing page tab shows
|
|
5811
|
+
* This Enum is used by: landing_page_tab.tab_type
|
|
5812
|
+
*/
|
|
5813
|
+
export enum LandingPageTabType {
|
|
5814
|
+
/**
|
|
5815
|
+
* 0: 0: Unknown / not set
|
|
5816
|
+
*/
|
|
5817
|
+
Unknown = "Unknown",
|
|
5818
|
+
/**
|
|
5819
|
+
* 1: 1: A saved selection
|
|
5820
|
+
*/
|
|
5821
|
+
Selection = "Selection",
|
|
5822
|
+
/**
|
|
5823
|
+
* 2: 2: A single entity record (e.g. a request/ticket)
|
|
5824
|
+
*/
|
|
5825
|
+
Entity = "Entity",
|
|
5826
|
+
/**
|
|
5827
|
+
* 3: 3: A hardcoded provider (e.g. LastTickets, FavouriteTickets)
|
|
5828
|
+
*/
|
|
5829
|
+
Provider = "Provider",
|
|
5830
|
+
}
|
|
5831
|
+
|
|
5832
|
+
|
|
5733
5833
|
/**
|
|
5734
5834
|
* CrmScript Event triggers - when CRMScript is run based on user or system actions.
|
|
5735
5835
|
*/
|
package/src/ListAgent.ts
CHANGED
|
@@ -49,6 +49,9 @@ export interface IListAgent {
|
|
|
49
49
|
saveListEntityAsync(entity: carriers.ListEntity) : Promise< carriers.ListEntity >;
|
|
50
50
|
deleteListEntityAsync(ListEntityId: number) : Promise<void>;
|
|
51
51
|
createDefaultListItemEntityAsync(): Promise< carriers.ListItemEntity >;
|
|
52
|
+
createDefaultPictureFolderEntityAsync(): Promise< carriers.PictureFolderEntity >;
|
|
53
|
+
savePictureFolderEntityAsync(entity: carriers.PictureFolderEntity) : Promise< carriers.PictureFolderEntity >;
|
|
54
|
+
deletePictureFolderEntityAsync(PictureFolderEntityId: number) : Promise<void>;
|
|
52
55
|
createDefaultProjectTypeEntityAsync(): Promise< carriers.ProjectTypeEntity >;
|
|
53
56
|
saveProjectTypeEntityAsync(entity: carriers.ProjectTypeEntity) : Promise< carriers.ProjectTypeEntity >;
|
|
54
57
|
createDefaultRelationDefinitionEntityAsync(): Promise< carriers.RelationDefinitionEntity >;
|
|
@@ -331,6 +334,7 @@ export interface IListAgent {
|
|
|
331
334
|
getPaymentTermsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PaymentTerm[] >;
|
|
332
335
|
getPaymentTypeAsync(paymentTypeId: number) : Promise< carriers.PaymentType >;
|
|
333
336
|
getPaymentTypesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PaymentType[] >;
|
|
337
|
+
getPictureFolderEntityAsync(pictureFolderEntityId: number) : Promise< carriers.PictureFolderEntity >;
|
|
334
338
|
getPositionAsync(positionId: number) : Promise< carriers.Position >;
|
|
335
339
|
getPositionListAsync(positionIds: number[]) : Promise< carriers.Position[] >;
|
|
336
340
|
getPositionsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Position[] >;
|
|
@@ -969,6 +973,73 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
969
973
|
});
|
|
970
974
|
}
|
|
971
975
|
|
|
976
|
+
/**
|
|
977
|
+
* Set default values into a new PictureFolderEntity.
|
|
978
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
979
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
980
|
+
* @returns A blank entity.
|
|
981
|
+
*/
|
|
982
|
+
public async createDefaultPictureFolderEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.PictureFolderEntity > {
|
|
983
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
984
|
+
base.WebApiBase.SetPending(options);
|
|
985
|
+
return new Promise< carriers.PictureFolderEntity >(async (resolve, reject) => {
|
|
986
|
+
try {
|
|
987
|
+
const response = await this._axios.post("CreateDefaultPictureFolderEntity", null, config);
|
|
988
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
989
|
+
const res : carriers.PictureFolderEntity = converters.Create_PictureFolderEntity_From( response.data );
|
|
990
|
+
resolve(res);
|
|
991
|
+
}
|
|
992
|
+
catch( err ) {
|
|
993
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
994
|
+
reject(err);
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Replace the existing PictureFolderEntity or creates a new PictureFolderEntity if the id parameter is empty
|
|
1000
|
+
* @param entity - The PictureFolderEntity to be saved.
|
|
1001
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1002
|
+
* @returns New or updated PictureFolderEntity
|
|
1003
|
+
*/
|
|
1004
|
+
public async savePictureFolderEntityAsync(entity: carriers.PictureFolderEntity, options?:base.WebApiRequestOptions) : Promise< carriers.PictureFolderEntity > {
|
|
1005
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1006
|
+
base.WebApiBase.SetPending(options);
|
|
1007
|
+
return new Promise< carriers.PictureFolderEntity >(async (resolve, reject) => {
|
|
1008
|
+
try {
|
|
1009
|
+
const response = await this._axios.post("SavePictureFolderEntity", entity, config);
|
|
1010
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1011
|
+
const res : carriers.PictureFolderEntity = converters.Create_PictureFolderEntity_From( response.data );
|
|
1012
|
+
resolve(res);
|
|
1013
|
+
}
|
|
1014
|
+
catch( err ) {
|
|
1015
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1016
|
+
reject(err);
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Deletes the PictureFolderEntity
|
|
1023
|
+
* @param PictureFolderEntityId - The id of the PictureFolderEntity to be deleted.
|
|
1024
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1025
|
+
*/
|
|
1026
|
+
public async deletePictureFolderEntityAsync(PictureFolderEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1027
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1028
|
+
base.WebApiBase.SetPending(options);
|
|
1029
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
1030
|
+
try {
|
|
1031
|
+
const response = await this._axios.post("DeletePictureFolderEntity?PictureFolderEntityId=" + PictureFolderEntityId, null, config );
|
|
1032
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1033
|
+
const res = response.data;
|
|
1034
|
+
resolve(res);
|
|
1035
|
+
}
|
|
1036
|
+
catch( err ) {
|
|
1037
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1038
|
+
reject(err);
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
|
|
972
1043
|
/**
|
|
973
1044
|
* Set default values into a new ProjectTypeEntity.
|
|
974
1045
|
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
@@ -8545,6 +8616,29 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
8545
8616
|
return this._getPaymentTypesAsync(webapi_options);
|
|
8546
8617
|
}
|
|
8547
8618
|
|
|
8619
|
+
/**
|
|
8620
|
+
* Gets a PictureFolderEntity object.
|
|
8621
|
+
* @param pictureFolderEntityId - The primary key.
|
|
8622
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
8623
|
+
* @returns A single PictureFolderEntity
|
|
8624
|
+
*/
|
|
8625
|
+
public async getPictureFolderEntityAsync(pictureFolderEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.PictureFolderEntity > {
|
|
8626
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
8627
|
+
base.WebApiBase.SetPending(options);
|
|
8628
|
+
return new Promise< carriers.PictureFolderEntity >(async (resolve, reject) => {
|
|
8629
|
+
try {
|
|
8630
|
+
const response = await this._axios.post("GetPictureFolderEntity?pictureFolderEntityId=" + pictureFolderEntityId, null, config);
|
|
8631
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
8632
|
+
const res = converters.Create_PictureFolderEntity_From( response.data );
|
|
8633
|
+
resolve(res);
|
|
8634
|
+
}
|
|
8635
|
+
catch( err ) {
|
|
8636
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
8637
|
+
reject(err);
|
|
8638
|
+
}
|
|
8639
|
+
});
|
|
8640
|
+
}
|
|
8641
|
+
|
|
8548
8642
|
/**
|
|
8549
8643
|
* Gets a Position object.
|
|
8550
8644
|
* @param positionId - The primary key.
|