@superoffice/webapi 12.3.2570 → 12.4.1514
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 +38 -3
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Converters.d.ts +3 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +38 -6
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/Enums.d.ts +12 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +12 -0
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/MarketingAgent.d.ts +15 -0
- package/dist/cjs/MarketingAgent.d.ts.map +1 -1
- package/dist/cjs/MarketingAgent.js +33 -0
- package/dist/cjs/MarketingAgent.js.map +1 -1
- package/dist/cjs/UserDefinedFieldInfoAgent.d.ts +2 -2
- package/dist/esm/Carriers.d.ts +38 -3
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Converters.d.ts +3 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +30 -1
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/Enums.d.ts +12 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +12 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/MarketingAgent.d.ts +15 -0
- package/dist/esm/MarketingAgent.d.ts.map +1 -1
- package/dist/esm/MarketingAgent.js +33 -0
- package/dist/esm/MarketingAgent.js.map +1 -1
- package/dist/esm/UserDefinedFieldInfoAgent.d.ts +2 -2
- package/package.json +3 -3
- package/src/Carriers.ts +51 -2759
- package/src/Converters.ts +59 -1219
- package/src/Enums.ts +12 -1
- package/src/MarketingAgent.ts +56 -0
- package/src/UserDefinedFieldInfoAgent.ts +2 -2
package/src/Enums.ts
CHANGED
|
@@ -3916,6 +3916,14 @@
|
|
|
3916
3916
|
* 32: A hint flag used to indicate that some fields may not be updateable, even though the user has update access to the row.
|
|
3917
3917
|
*/
|
|
3918
3918
|
RestrictedUpdate = 32,
|
|
3919
|
+
/**
|
|
3920
|
+
* 34: Update or RestrictedUpdate
|
|
3921
|
+
*/
|
|
3922
|
+
URU = 34,
|
|
3923
|
+
/**
|
|
3924
|
+
* 38: Update/RestrictedUpdate or Insert
|
|
3925
|
+
*/
|
|
3926
|
+
WRITE = 38,
|
|
3919
3927
|
/**
|
|
3920
3928
|
* 64: Unused value only present for serializatrion purposes
|
|
3921
3929
|
*/
|
|
@@ -6925,6 +6933,10 @@
|
|
|
6925
6933
|
* This Enum consists of flag values that can be combined.
|
|
6926
6934
|
*/
|
|
6927
6935
|
export enum EjScriptVerb {
|
|
6936
|
+
/**
|
|
6937
|
+
* 0: All verbs allowed
|
|
6938
|
+
*/
|
|
6939
|
+
BlockNone = 0,
|
|
6928
6940
|
/**
|
|
6929
6941
|
* 1: Block GET access
|
|
6930
6942
|
*/
|
|
@@ -7255,4 +7267,3 @@
|
|
|
7255
7267
|
*/
|
|
7256
7268
|
Large = "Large",
|
|
7257
7269
|
}
|
|
7258
|
-
|
package/src/MarketingAgent.ts
CHANGED
|
@@ -66,6 +66,8 @@ export interface IMarketingAgent {
|
|
|
66
66
|
renameMailingByMessageIdAsync(messageId: number, name: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
67
67
|
reloadAndSendMailingAsync(request: carriers.Marketing_ReloadAndSendMailingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
68
68
|
reloadAndSendMailingAsync(mailingId: number, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
69
|
+
stopMailingAsync(request: carriers.Marketing_StopMailingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
70
|
+
stopMailingAsync(mailingId: number, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
69
71
|
calculateMailingStatisticsAsync(request: carriers.Marketing_CalculateMailingStatisticsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
70
72
|
calculateMailingStatisticsAsync(shipmentId: number, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
71
73
|
getFormSubmissionsCountAsync(request: carriers.Marketing_GetFormSubmissionsCountRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
@@ -1092,6 +1094,60 @@ export class MarketingAgent extends base.WebApiBase implements IMarketingAgent {
|
|
|
1092
1094
|
}
|
|
1093
1095
|
|
|
1094
1096
|
|
|
1097
|
+
private async _stopMailingAsync(request: carriers.Marketing_StopMailingRequest, options?:base.WebApiRequestOptions) : Promise< boolean > {
|
|
1098
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1099
|
+
base.WebApiBase.SetPending(options);
|
|
1100
|
+
return new Promise< boolean >(async (resolve, reject) => {
|
|
1101
|
+
try {
|
|
1102
|
+
config.baseURL = this._options.baseUrl;
|
|
1103
|
+
const response = await this._axios.post("StopMailing", request , config);
|
|
1104
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1105
|
+
const res : boolean = response.data as boolean;
|
|
1106
|
+
resolve(res);
|
|
1107
|
+
}
|
|
1108
|
+
catch( err ) {
|
|
1109
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1110
|
+
reject(err);
|
|
1111
|
+
}
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Stop a mailing that is queued or currently sending, leaving it in status Canceled
|
|
1119
|
+
* @param request - MailingId
|
|
1120
|
+
* @returns Did the operation succeed?
|
|
1121
|
+
*/
|
|
1122
|
+
public async stopMailingAsync(request: carriers.Marketing_StopMailingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Stop a mailing that is queued or currently sending, leaving it in status Canceled
|
|
1126
|
+
* @param mailingId - Mailing id
|
|
1127
|
+
* @returns Did the operation succeed?
|
|
1128
|
+
*/
|
|
1129
|
+
public async stopMailingAsync(mailingId: number, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
1130
|
+
|
|
1131
|
+
public async stopMailingAsync(mailingId:number|carriers.Marketing_StopMailingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean > {
|
|
1132
|
+
let _request : carriers.Marketing_StopMailingRequest = null;
|
|
1133
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1134
|
+
const first : any = mailingId;
|
|
1135
|
+
if( typeof( first ) === "object" && first && ( typeof(first.mailingId)!='undefined' ) )
|
|
1136
|
+
{
|
|
1137
|
+
_request = mailingId as carriers.Marketing_StopMailingRequest;
|
|
1138
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1139
|
+
}
|
|
1140
|
+
else
|
|
1141
|
+
{
|
|
1142
|
+
_request = {
|
|
1143
|
+
mailingId: mailingId as number,
|
|
1144
|
+
};
|
|
1145
|
+
_options = webapi_options;
|
|
1146
|
+
}
|
|
1147
|
+
return this._stopMailingAsync( _request, _options );
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
|
|
1095
1151
|
private async _calculateMailingStatisticsAsync(request: carriers.Marketing_CalculateMailingStatisticsRequest, options?:base.WebApiRequestOptions) : Promise< number > {
|
|
1096
1152
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1097
1153
|
base.WebApiBase.SetPending(options);
|
|
@@ -1698,14 +1698,14 @@ export class UserDefinedFieldInfoAgent extends base.WebApiBase implements IUserD
|
|
|
1698
1698
|
|
|
1699
1699
|
|
|
1700
1700
|
/**
|
|
1701
|
-
*
|
|
1701
|
+
* No-op, retained for API compatibility. Publish and Revert manage the publish lock themselves; there is nothing to start ahead of time, and calling this is harmless but unnecessary.
|
|
1702
1702
|
* @param request - OwnerType
|
|
1703
1703
|
* @returns
|
|
1704
1704
|
*/
|
|
1705
1705
|
public async setPublishStartSystemEventAsync(request: carriers.UserDefinedFieldInfo_SetPublishStartSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1706
1706
|
|
|
1707
1707
|
/**
|
|
1708
|
-
*
|
|
1708
|
+
* No-op, retained for API compatibility. Publish and Revert manage the publish lock themselves; there is nothing to start ahead of time, and calling this is harmless but unnecessary.
|
|
1709
1709
|
* @param ownerType - The user-defined field owner-entity.
|
|
1710
1710
|
* @returns
|
|
1711
1711
|
*/
|