awing-library 2.1.2-beta → 2.1.4-beta
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/lib/ACM-AXN/Page/CreateOrEdit/Utils.d.ts +1 -1
- package/lib/ACM-AXN/TransactionLog/Constant.d.ts +10 -0
- package/lib/ACM-AXN/TransactionLog/Constant.js +13 -0
- package/lib/ACM-AXN/TransactionLog/Container.d.ts +7 -0
- package/lib/ACM-AXN/TransactionLog/Container.js +189 -0
- package/lib/ACM-AXN/TransactionLog/Context.d.ts +8 -0
- package/lib/ACM-AXN/TransactionLog/Context.js +10 -0
- package/lib/ACM-AXN/TransactionLog/Detail.d.ts +7 -0
- package/lib/ACM-AXN/TransactionLog/Detail.js +204 -0
- package/lib/ACM-AXN/TransactionLog/Hooks.d.ts +7 -0
- package/lib/ACM-AXN/TransactionLog/Hooks.js +17 -0
- package/lib/ACM-AXN/TransactionLog/Types.d.ts +273 -0
- package/lib/ACM-AXN/TransactionLog/Types.js +413 -0
- package/lib/ACM-AXN/TransactionLog/Utils.d.ts +128 -0
- package/lib/ACM-AXN/TransactionLog/Utils.js +166 -0
- package/lib/ACM-AXN/TransactionLog/index.d.ts +8 -0
- package/lib/ACM-AXN/TransactionLog/index.js +36 -0
- package/lib/translate/en/translation.json +12 -0
- package/lib/translate/vi/translation.json +12 -0
- package/package.json +3 -2
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @author dauquan1108@gmail.com on 19/02/2024.
|
|
4
|
+
*
|
|
5
|
+
**/
|
|
6
|
+
import { AlertColor } from '@mui/material';
|
|
7
|
+
export interface AppHelper {
|
|
8
|
+
alert: (message: string, title?: string) => void;
|
|
9
|
+
snackbar: (severity?: AlertColor, message?: string, autoHideDuration?: number) => void;
|
|
10
|
+
confirm: (okFunction?: () => void, cancelFunction?: () => void, message?: string, title?: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface TransactionLogPropsContext {
|
|
13
|
+
/**
|
|
14
|
+
* props service: API cần thiết để vẽ giao diện.
|
|
15
|
+
**/
|
|
16
|
+
service: TransactionLogService;
|
|
17
|
+
appHelper: AppHelper;
|
|
18
|
+
}
|
|
19
|
+
export interface TransactionLogService {
|
|
20
|
+
usersGet: (cancelToken?: CancelToken) => Promise<User[]>;
|
|
21
|
+
transactionLogsPaging: (body: TransactionLogFilter | undefined, cancelToken?: CancelToken) => Promise<PagedList_1OfSagaTransaction>;
|
|
22
|
+
transactionLogsGet: (id: number, cancelToken?: CancelToken) => Promise<SagaTransaction>;
|
|
23
|
+
}
|
|
24
|
+
export declare class User implements IUser {
|
|
25
|
+
userId?: string;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
username?: string | undefined;
|
|
29
|
+
gender?: number | undefined;
|
|
30
|
+
image?: string | undefined;
|
|
31
|
+
constructor(data?: IUser);
|
|
32
|
+
init(_data?: any): void;
|
|
33
|
+
static fromJS(data: any): User;
|
|
34
|
+
toJSON(data?: any): any;
|
|
35
|
+
}
|
|
36
|
+
export interface IUser {
|
|
37
|
+
userId?: string;
|
|
38
|
+
name?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
username?: string | undefined;
|
|
41
|
+
gender?: number | undefined;
|
|
42
|
+
image?: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface Cancel {
|
|
45
|
+
message: string | undefined;
|
|
46
|
+
}
|
|
47
|
+
export interface CancelToken {
|
|
48
|
+
promise: Promise<Cancel>;
|
|
49
|
+
reason?: Cancel;
|
|
50
|
+
throwIfRequested(): void;
|
|
51
|
+
}
|
|
52
|
+
export interface IUser {
|
|
53
|
+
userId?: string;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
username?: string | undefined;
|
|
57
|
+
gender?: number | undefined;
|
|
58
|
+
image?: string | undefined;
|
|
59
|
+
}
|
|
60
|
+
export declare class TransactionLogFilter implements ITransactionLogFilter {
|
|
61
|
+
startDate?: string;
|
|
62
|
+
endDate?: string;
|
|
63
|
+
pageIndex?: number;
|
|
64
|
+
pageSize?: number;
|
|
65
|
+
objectIds?: string[] | undefined;
|
|
66
|
+
userIds?: string[] | undefined;
|
|
67
|
+
domainIds?: string[] | undefined;
|
|
68
|
+
transactionTypes?: SagaTransactionType[] | undefined;
|
|
69
|
+
transactionStatusCodes?: StatusCode[] | undefined;
|
|
70
|
+
constructor(data?: ITransactionLogFilter);
|
|
71
|
+
init(_data?: any): void;
|
|
72
|
+
static fromJS(data: any): TransactionLogFilter;
|
|
73
|
+
toJSON(data?: any): any;
|
|
74
|
+
}
|
|
75
|
+
export declare enum SagaTransactionType {
|
|
76
|
+
None = 0,
|
|
77
|
+
StartDay = 1,
|
|
78
|
+
CampaignCreate = 1000,
|
|
79
|
+
CampaignUpdate = 1001,
|
|
80
|
+
CampaignDelete = 1002,
|
|
81
|
+
CampaignBlocked = 1003,
|
|
82
|
+
PlaceCreate = 1100,
|
|
83
|
+
PlaceUpdate = 1101,
|
|
84
|
+
PlaceDelete = 1102,
|
|
85
|
+
PlaceJoinRequest = 1103,
|
|
86
|
+
PlaceJoinApprove = 1104,
|
|
87
|
+
PlaceJoinReject = 1105,
|
|
88
|
+
PlaceJoinDelete = 1106,
|
|
89
|
+
PlaceUnjoinRequest = 1107,
|
|
90
|
+
PlaceUnjoinApprove = 1108,
|
|
91
|
+
PlaceUnjoinReject = 1109,
|
|
92
|
+
PlaceUnjoinDelete = 1110,
|
|
93
|
+
PlaceCustomerInfoUpdate = 1111,
|
|
94
|
+
PlaceStatsNeedCalculate = 1112,
|
|
95
|
+
PlaceStatsUpdate = 1113,
|
|
96
|
+
PlaceClearCache = 1114,
|
|
97
|
+
PlaceCustomerInfoCreate = 1115,
|
|
98
|
+
PlaceCustomerInfoDelete = 1116,
|
|
99
|
+
PlaceGroupCreate = 1117,
|
|
100
|
+
PlaceGroupUpdate = 1118,
|
|
101
|
+
PlaceGroupDelete = 1119,
|
|
102
|
+
PlaceStatusUpdate = 1120,
|
|
103
|
+
DomainCreate = 1200,
|
|
104
|
+
DomainUpdate = 1201,
|
|
105
|
+
DomainDelete = 1202,
|
|
106
|
+
DomainJoinRequest = 1203,
|
|
107
|
+
DomainJoinApprove = 1204,
|
|
108
|
+
DomainJoinReject = 1205,
|
|
109
|
+
DomainJoinDelete = 1206,
|
|
110
|
+
DomainJoinUpdate = 1207,
|
|
111
|
+
DomainUnjoinRequest = 1208,
|
|
112
|
+
DomainUnjoinApprove = 1209,
|
|
113
|
+
DomainUnjoinReject = 1210,
|
|
114
|
+
DomainUnjoinDelete = 1211,
|
|
115
|
+
DomainClearCache = 1212,
|
|
116
|
+
PageCreate = 1300,
|
|
117
|
+
PageUpdate = 1301,
|
|
118
|
+
PageDelete = 1302,
|
|
119
|
+
PageArchive = 1303,
|
|
120
|
+
DirectoryCreate = 1400,
|
|
121
|
+
DirectoryUpdate = 1401,
|
|
122
|
+
DirectoryDelete = 1402,
|
|
123
|
+
DirectoryPermissionUpdate = 1501,
|
|
124
|
+
DirectoryPermissionDelete = 1502,
|
|
125
|
+
SystemDirectoryPermissionUpdate = 1551,
|
|
126
|
+
SystemDirectoryPermissionDelete = 1552,
|
|
127
|
+
StaticFileUpload = 1601,
|
|
128
|
+
StaticFileDelete = 1602,
|
|
129
|
+
StaticFileDownload = 1603,
|
|
130
|
+
FolderFileCreate = 1700,
|
|
131
|
+
ScheduleNeedCalculate = 1803,
|
|
132
|
+
ScheduleAllCalculate = 1804,
|
|
133
|
+
ScheduleCampaignCalculate = 1805,
|
|
134
|
+
ApCreate = 1900,
|
|
135
|
+
ApUpdate = 1901,
|
|
136
|
+
ApDelete = 1902,
|
|
137
|
+
ApControllerClearCache = 1903,
|
|
138
|
+
AuthenticationProfileCreate = 2000,
|
|
139
|
+
AuthenticationProfileUpdate = 2001,
|
|
140
|
+
AuthenticationProfileDelete = 2002,
|
|
141
|
+
CaptiveClearCache = 2100,
|
|
142
|
+
GroupCreate = 2200,
|
|
143
|
+
GroupUpdate = 2201,
|
|
144
|
+
GroupDelete = 2202,
|
|
145
|
+
UserCreate = 2300,
|
|
146
|
+
UserUpdate = 2301,
|
|
147
|
+
UserDelete = 2302,
|
|
148
|
+
UserChangePassword = 2303,
|
|
149
|
+
UserAddToDomain = 2304,
|
|
150
|
+
UserRemoveFromDomain = 2305,
|
|
151
|
+
TemplateCreate = 2400,
|
|
152
|
+
TemplateUpdate = 2401,
|
|
153
|
+
TemplateDelete = 2402,
|
|
154
|
+
RemarketingListCreate = 2500,
|
|
155
|
+
RemarketingListUpdate = 2501,
|
|
156
|
+
RemarketingListDelete = 2502,
|
|
157
|
+
UserLogin = 2600,
|
|
158
|
+
UserLogout = 2601,
|
|
159
|
+
WizardCreate = 2700,
|
|
160
|
+
WizardUpdate = 2701,
|
|
161
|
+
WizardDelete = 2702,
|
|
162
|
+
HolidayCreate = 2800,
|
|
163
|
+
HolidayUpdate = 2801,
|
|
164
|
+
HolidayDelete = 2802,
|
|
165
|
+
AttributeCreate = 2900,
|
|
166
|
+
AttributeUpdate = 2901,
|
|
167
|
+
AttributeDelete = 2902,
|
|
168
|
+
InventoryCreate = 3000,
|
|
169
|
+
InventoryUpdate = 3001,
|
|
170
|
+
InventoryDelete = 3002,
|
|
171
|
+
MenuPermissionCreate = 3100,
|
|
172
|
+
MenuPermissionUpdate = 3101,
|
|
173
|
+
MenuPermissionDelete = 3102,
|
|
174
|
+
AudienceSumupCalculate = 3200,
|
|
175
|
+
AttributeTypeCreate = 3300,
|
|
176
|
+
AttributeTypeUpdate = 3301,
|
|
177
|
+
AttributeTypeDelete = 3302,
|
|
178
|
+
TaskSchedulerCreate = 3400,
|
|
179
|
+
TaskSchedulerUpdate = 3401,
|
|
180
|
+
TaskSchedulerDelete = 3402
|
|
181
|
+
}
|
|
182
|
+
export interface ITransactionLogFilter {
|
|
183
|
+
startDate?: string;
|
|
184
|
+
endDate?: string;
|
|
185
|
+
pageIndex?: number;
|
|
186
|
+
pageSize?: number;
|
|
187
|
+
objectIds?: string[] | undefined;
|
|
188
|
+
userIds?: string[] | undefined;
|
|
189
|
+
domainIds?: string[] | undefined;
|
|
190
|
+
transactionTypes?: SagaTransactionType[] | undefined;
|
|
191
|
+
transactionStatusCodes?: StatusCode[] | undefined;
|
|
192
|
+
}
|
|
193
|
+
export declare enum StatusCode {
|
|
194
|
+
Start = 0,
|
|
195
|
+
Success = 1,
|
|
196
|
+
InProgress = 2,
|
|
197
|
+
Exception = 3,
|
|
198
|
+
Error = 4,
|
|
199
|
+
Unknown = 99
|
|
200
|
+
}
|
|
201
|
+
export declare class PagedList_1OfSagaTransaction implements IPagedList_1OfSagaTransaction {
|
|
202
|
+
items?: SagaTransaction[] | undefined;
|
|
203
|
+
pageCount?: number;
|
|
204
|
+
totalItemCount?: number;
|
|
205
|
+
pageNumber?: number;
|
|
206
|
+
pageSize?: number;
|
|
207
|
+
readonly hasPreviousPage?: boolean;
|
|
208
|
+
readonly hasNextPage?: boolean;
|
|
209
|
+
constructor(data?: IPagedList_1OfSagaTransaction);
|
|
210
|
+
init(_data?: any): void;
|
|
211
|
+
static fromJS(data: any): PagedList_1OfSagaTransaction;
|
|
212
|
+
toJSON(data?: any): any;
|
|
213
|
+
}
|
|
214
|
+
export interface IPagedList_1OfSagaTransaction {
|
|
215
|
+
items?: SagaTransaction[] | undefined;
|
|
216
|
+
pageCount?: number;
|
|
217
|
+
totalItemCount?: number;
|
|
218
|
+
pageNumber?: number;
|
|
219
|
+
pageSize?: number;
|
|
220
|
+
hasPreviousPage?: boolean;
|
|
221
|
+
hasNextPage?: boolean;
|
|
222
|
+
}
|
|
223
|
+
export declare class SagaTransaction implements ISagaTransaction {
|
|
224
|
+
id?: number;
|
|
225
|
+
transactionType?: SagaTransactionType;
|
|
226
|
+
userId?: string;
|
|
227
|
+
request?: string | undefined;
|
|
228
|
+
response?: string | undefined;
|
|
229
|
+
description?: string | undefined;
|
|
230
|
+
statusCode?: StatusCode;
|
|
231
|
+
startDate?: Timestamp;
|
|
232
|
+
endDate?: Timestamp;
|
|
233
|
+
applicationName?: ApplicationName;
|
|
234
|
+
domainId?: string;
|
|
235
|
+
objectId?: string;
|
|
236
|
+
constructor(data?: ISagaTransaction);
|
|
237
|
+
init(_data?: any): void;
|
|
238
|
+
static fromJS(data: any): SagaTransaction;
|
|
239
|
+
toJSON(data?: any): any;
|
|
240
|
+
}
|
|
241
|
+
export interface ISagaTransaction {
|
|
242
|
+
id?: number;
|
|
243
|
+
transactionType?: SagaTransactionType;
|
|
244
|
+
userId?: string;
|
|
245
|
+
request?: string | undefined;
|
|
246
|
+
response?: string | undefined;
|
|
247
|
+
description?: string | undefined;
|
|
248
|
+
statusCode?: StatusCode;
|
|
249
|
+
startDate?: Timestamp;
|
|
250
|
+
endDate?: Timestamp;
|
|
251
|
+
applicationName?: ApplicationName;
|
|
252
|
+
domainId?: string;
|
|
253
|
+
objectId?: string;
|
|
254
|
+
}
|
|
255
|
+
export declare class Timestamp implements ITimestamp {
|
|
256
|
+
seconds?: string;
|
|
257
|
+
nanos?: number;
|
|
258
|
+
constructor(data?: ITimestamp);
|
|
259
|
+
init(_data?: any): void;
|
|
260
|
+
static fromJS(data: any): Timestamp;
|
|
261
|
+
toJSON(data?: any): any;
|
|
262
|
+
}
|
|
263
|
+
export interface ITimestamp {
|
|
264
|
+
seconds?: string;
|
|
265
|
+
nanos?: number;
|
|
266
|
+
}
|
|
267
|
+
export declare enum ApplicationName {
|
|
268
|
+
Acm = 0,
|
|
269
|
+
Axn = 1,
|
|
270
|
+
Admin = 2,
|
|
271
|
+
AcmIdApp = 3,
|
|
272
|
+
TaskScheduler = 4
|
|
273
|
+
}
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @author dauquan1108@gmail.com on 19/02/2024.
|
|
5
|
+
*
|
|
6
|
+
**/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ApplicationName = exports.Timestamp = exports.SagaTransaction = exports.PagedList_1OfSagaTransaction = exports.StatusCode = exports.SagaTransactionType = exports.TransactionLogFilter = exports.User = void 0;
|
|
9
|
+
var User = /** @class */ (function () {
|
|
10
|
+
function User(data) {
|
|
11
|
+
if (data) {
|
|
12
|
+
for (var property in data) {
|
|
13
|
+
if (data.hasOwnProperty(property))
|
|
14
|
+
this[property] = data[property];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
User.prototype.init = function (_data) {
|
|
19
|
+
if (_data) {
|
|
20
|
+
this.userId = _data['userId'];
|
|
21
|
+
this.name = _data['name'];
|
|
22
|
+
this.description = _data['description'];
|
|
23
|
+
this.username = _data['username'];
|
|
24
|
+
this.gender = _data['gender'];
|
|
25
|
+
this.image = _data['image'];
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
User.fromJS = function (data) {
|
|
29
|
+
data = typeof data === 'object' ? data : {};
|
|
30
|
+
var result = new User();
|
|
31
|
+
result.init(data);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
User.prototype.toJSON = function (data) {
|
|
35
|
+
data = typeof data === 'object' ? data : {};
|
|
36
|
+
data['userId'] = this.userId;
|
|
37
|
+
data['name'] = this.name;
|
|
38
|
+
data['description'] = this.description;
|
|
39
|
+
data['username'] = this.username;
|
|
40
|
+
data['gender'] = this.gender;
|
|
41
|
+
data['image'] = this.image;
|
|
42
|
+
return data;
|
|
43
|
+
};
|
|
44
|
+
return User;
|
|
45
|
+
}());
|
|
46
|
+
exports.User = User;
|
|
47
|
+
var TransactionLogFilter = /** @class */ (function () {
|
|
48
|
+
function TransactionLogFilter(data) {
|
|
49
|
+
if (data) {
|
|
50
|
+
for (var property in data) {
|
|
51
|
+
if (data.hasOwnProperty(property))
|
|
52
|
+
this[property] = data[property];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
TransactionLogFilter.prototype.init = function (_data) {
|
|
57
|
+
if (_data) {
|
|
58
|
+
this.startDate = _data['startDate'];
|
|
59
|
+
this.endDate = _data['endDate'];
|
|
60
|
+
this.pageIndex = _data['pageIndex'];
|
|
61
|
+
this.pageSize = _data['pageSize'];
|
|
62
|
+
if (Array.isArray(_data['objectIds'])) {
|
|
63
|
+
this.objectIds = [];
|
|
64
|
+
for (var _i = 0, _a = _data['objectIds']; _i < _a.length; _i++) {
|
|
65
|
+
var item = _a[_i];
|
|
66
|
+
this.objectIds.push(item);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (Array.isArray(_data['userIds'])) {
|
|
70
|
+
this.userIds = [];
|
|
71
|
+
for (var _b = 0, _c = _data['userIds']; _b < _c.length; _b++) {
|
|
72
|
+
var item = _c[_b];
|
|
73
|
+
this.userIds.push(item);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (Array.isArray(_data['domainIds'])) {
|
|
77
|
+
this.domainIds = [];
|
|
78
|
+
for (var _d = 0, _e = _data['domainIds']; _d < _e.length; _d++) {
|
|
79
|
+
var item = _e[_d];
|
|
80
|
+
this.domainIds.push(item);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (Array.isArray(_data['transactionTypes'])) {
|
|
84
|
+
this.transactionTypes = [];
|
|
85
|
+
for (var _f = 0, _g = _data['transactionTypes']; _f < _g.length; _f++) {
|
|
86
|
+
var item = _g[_f];
|
|
87
|
+
this.transactionTypes.push(item);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (Array.isArray(_data['transactionStatusCodes'])) {
|
|
91
|
+
this.transactionStatusCodes = [];
|
|
92
|
+
for (var _h = 0, _j = _data['transactionStatusCodes']; _h < _j.length; _h++) {
|
|
93
|
+
var item = _j[_h];
|
|
94
|
+
this.transactionStatusCodes.push(item);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
TransactionLogFilter.fromJS = function (data) {
|
|
100
|
+
data = typeof data === 'object' ? data : {};
|
|
101
|
+
var result = new TransactionLogFilter();
|
|
102
|
+
result.init(data);
|
|
103
|
+
return result;
|
|
104
|
+
};
|
|
105
|
+
TransactionLogFilter.prototype.toJSON = function (data) {
|
|
106
|
+
data = typeof data === 'object' ? data : {};
|
|
107
|
+
data['startDate'] = this.startDate;
|
|
108
|
+
data['endDate'] = this.endDate;
|
|
109
|
+
data['pageIndex'] = this.pageIndex;
|
|
110
|
+
data['pageSize'] = this.pageSize;
|
|
111
|
+
if (Array.isArray(this.objectIds)) {
|
|
112
|
+
data['objectIds'] = [];
|
|
113
|
+
for (var _i = 0, _a = this.objectIds; _i < _a.length; _i++) {
|
|
114
|
+
var item = _a[_i];
|
|
115
|
+
data['objectIds'].push(item);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (Array.isArray(this.userIds)) {
|
|
119
|
+
data['userIds'] = [];
|
|
120
|
+
for (var _b = 0, _c = this.userIds; _b < _c.length; _b++) {
|
|
121
|
+
var item = _c[_b];
|
|
122
|
+
data['userIds'].push(item);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (Array.isArray(this.domainIds)) {
|
|
126
|
+
data['domainIds'] = [];
|
|
127
|
+
for (var _d = 0, _e = this.domainIds; _d < _e.length; _d++) {
|
|
128
|
+
var item = _e[_d];
|
|
129
|
+
data['domainIds'].push(item);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (Array.isArray(this.transactionTypes)) {
|
|
133
|
+
data['transactionTypes'] = [];
|
|
134
|
+
for (var _f = 0, _g = this.transactionTypes; _f < _g.length; _f++) {
|
|
135
|
+
var item = _g[_f];
|
|
136
|
+
data['transactionTypes'].push(item);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
if (Array.isArray(this.transactionStatusCodes)) {
|
|
140
|
+
data['transactionStatusCodes'] = [];
|
|
141
|
+
for (var _h = 0, _j = this.transactionStatusCodes; _h < _j.length; _h++) {
|
|
142
|
+
var item = _j[_h];
|
|
143
|
+
data['transactionStatusCodes'].push(item);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return data;
|
|
147
|
+
};
|
|
148
|
+
return TransactionLogFilter;
|
|
149
|
+
}());
|
|
150
|
+
exports.TransactionLogFilter = TransactionLogFilter;
|
|
151
|
+
var SagaTransactionType;
|
|
152
|
+
(function (SagaTransactionType) {
|
|
153
|
+
SagaTransactionType[SagaTransactionType["None"] = 0] = "None";
|
|
154
|
+
SagaTransactionType[SagaTransactionType["StartDay"] = 1] = "StartDay";
|
|
155
|
+
SagaTransactionType[SagaTransactionType["CampaignCreate"] = 1000] = "CampaignCreate";
|
|
156
|
+
SagaTransactionType[SagaTransactionType["CampaignUpdate"] = 1001] = "CampaignUpdate";
|
|
157
|
+
SagaTransactionType[SagaTransactionType["CampaignDelete"] = 1002] = "CampaignDelete";
|
|
158
|
+
SagaTransactionType[SagaTransactionType["CampaignBlocked"] = 1003] = "CampaignBlocked";
|
|
159
|
+
SagaTransactionType[SagaTransactionType["PlaceCreate"] = 1100] = "PlaceCreate";
|
|
160
|
+
SagaTransactionType[SagaTransactionType["PlaceUpdate"] = 1101] = "PlaceUpdate";
|
|
161
|
+
SagaTransactionType[SagaTransactionType["PlaceDelete"] = 1102] = "PlaceDelete";
|
|
162
|
+
SagaTransactionType[SagaTransactionType["PlaceJoinRequest"] = 1103] = "PlaceJoinRequest";
|
|
163
|
+
SagaTransactionType[SagaTransactionType["PlaceJoinApprove"] = 1104] = "PlaceJoinApprove";
|
|
164
|
+
SagaTransactionType[SagaTransactionType["PlaceJoinReject"] = 1105] = "PlaceJoinReject";
|
|
165
|
+
SagaTransactionType[SagaTransactionType["PlaceJoinDelete"] = 1106] = "PlaceJoinDelete";
|
|
166
|
+
SagaTransactionType[SagaTransactionType["PlaceUnjoinRequest"] = 1107] = "PlaceUnjoinRequest";
|
|
167
|
+
SagaTransactionType[SagaTransactionType["PlaceUnjoinApprove"] = 1108] = "PlaceUnjoinApprove";
|
|
168
|
+
SagaTransactionType[SagaTransactionType["PlaceUnjoinReject"] = 1109] = "PlaceUnjoinReject";
|
|
169
|
+
SagaTransactionType[SagaTransactionType["PlaceUnjoinDelete"] = 1110] = "PlaceUnjoinDelete";
|
|
170
|
+
SagaTransactionType[SagaTransactionType["PlaceCustomerInfoUpdate"] = 1111] = "PlaceCustomerInfoUpdate";
|
|
171
|
+
SagaTransactionType[SagaTransactionType["PlaceStatsNeedCalculate"] = 1112] = "PlaceStatsNeedCalculate";
|
|
172
|
+
SagaTransactionType[SagaTransactionType["PlaceStatsUpdate"] = 1113] = "PlaceStatsUpdate";
|
|
173
|
+
SagaTransactionType[SagaTransactionType["PlaceClearCache"] = 1114] = "PlaceClearCache";
|
|
174
|
+
SagaTransactionType[SagaTransactionType["PlaceCustomerInfoCreate"] = 1115] = "PlaceCustomerInfoCreate";
|
|
175
|
+
SagaTransactionType[SagaTransactionType["PlaceCustomerInfoDelete"] = 1116] = "PlaceCustomerInfoDelete";
|
|
176
|
+
SagaTransactionType[SagaTransactionType["PlaceGroupCreate"] = 1117] = "PlaceGroupCreate";
|
|
177
|
+
SagaTransactionType[SagaTransactionType["PlaceGroupUpdate"] = 1118] = "PlaceGroupUpdate";
|
|
178
|
+
SagaTransactionType[SagaTransactionType["PlaceGroupDelete"] = 1119] = "PlaceGroupDelete";
|
|
179
|
+
SagaTransactionType[SagaTransactionType["PlaceStatusUpdate"] = 1120] = "PlaceStatusUpdate";
|
|
180
|
+
SagaTransactionType[SagaTransactionType["DomainCreate"] = 1200] = "DomainCreate";
|
|
181
|
+
SagaTransactionType[SagaTransactionType["DomainUpdate"] = 1201] = "DomainUpdate";
|
|
182
|
+
SagaTransactionType[SagaTransactionType["DomainDelete"] = 1202] = "DomainDelete";
|
|
183
|
+
SagaTransactionType[SagaTransactionType["DomainJoinRequest"] = 1203] = "DomainJoinRequest";
|
|
184
|
+
SagaTransactionType[SagaTransactionType["DomainJoinApprove"] = 1204] = "DomainJoinApprove";
|
|
185
|
+
SagaTransactionType[SagaTransactionType["DomainJoinReject"] = 1205] = "DomainJoinReject";
|
|
186
|
+
SagaTransactionType[SagaTransactionType["DomainJoinDelete"] = 1206] = "DomainJoinDelete";
|
|
187
|
+
SagaTransactionType[SagaTransactionType["DomainJoinUpdate"] = 1207] = "DomainJoinUpdate";
|
|
188
|
+
SagaTransactionType[SagaTransactionType["DomainUnjoinRequest"] = 1208] = "DomainUnjoinRequest";
|
|
189
|
+
SagaTransactionType[SagaTransactionType["DomainUnjoinApprove"] = 1209] = "DomainUnjoinApprove";
|
|
190
|
+
SagaTransactionType[SagaTransactionType["DomainUnjoinReject"] = 1210] = "DomainUnjoinReject";
|
|
191
|
+
SagaTransactionType[SagaTransactionType["DomainUnjoinDelete"] = 1211] = "DomainUnjoinDelete";
|
|
192
|
+
SagaTransactionType[SagaTransactionType["DomainClearCache"] = 1212] = "DomainClearCache";
|
|
193
|
+
SagaTransactionType[SagaTransactionType["PageCreate"] = 1300] = "PageCreate";
|
|
194
|
+
SagaTransactionType[SagaTransactionType["PageUpdate"] = 1301] = "PageUpdate";
|
|
195
|
+
SagaTransactionType[SagaTransactionType["PageDelete"] = 1302] = "PageDelete";
|
|
196
|
+
SagaTransactionType[SagaTransactionType["PageArchive"] = 1303] = "PageArchive";
|
|
197
|
+
SagaTransactionType[SagaTransactionType["DirectoryCreate"] = 1400] = "DirectoryCreate";
|
|
198
|
+
SagaTransactionType[SagaTransactionType["DirectoryUpdate"] = 1401] = "DirectoryUpdate";
|
|
199
|
+
SagaTransactionType[SagaTransactionType["DirectoryDelete"] = 1402] = "DirectoryDelete";
|
|
200
|
+
SagaTransactionType[SagaTransactionType["DirectoryPermissionUpdate"] = 1501] = "DirectoryPermissionUpdate";
|
|
201
|
+
SagaTransactionType[SagaTransactionType["DirectoryPermissionDelete"] = 1502] = "DirectoryPermissionDelete";
|
|
202
|
+
SagaTransactionType[SagaTransactionType["SystemDirectoryPermissionUpdate"] = 1551] = "SystemDirectoryPermissionUpdate";
|
|
203
|
+
SagaTransactionType[SagaTransactionType["SystemDirectoryPermissionDelete"] = 1552] = "SystemDirectoryPermissionDelete";
|
|
204
|
+
SagaTransactionType[SagaTransactionType["StaticFileUpload"] = 1601] = "StaticFileUpload";
|
|
205
|
+
SagaTransactionType[SagaTransactionType["StaticFileDelete"] = 1602] = "StaticFileDelete";
|
|
206
|
+
SagaTransactionType[SagaTransactionType["StaticFileDownload"] = 1603] = "StaticFileDownload";
|
|
207
|
+
SagaTransactionType[SagaTransactionType["FolderFileCreate"] = 1700] = "FolderFileCreate";
|
|
208
|
+
SagaTransactionType[SagaTransactionType["ScheduleNeedCalculate"] = 1803] = "ScheduleNeedCalculate";
|
|
209
|
+
SagaTransactionType[SagaTransactionType["ScheduleAllCalculate"] = 1804] = "ScheduleAllCalculate";
|
|
210
|
+
SagaTransactionType[SagaTransactionType["ScheduleCampaignCalculate"] = 1805] = "ScheduleCampaignCalculate";
|
|
211
|
+
SagaTransactionType[SagaTransactionType["ApCreate"] = 1900] = "ApCreate";
|
|
212
|
+
SagaTransactionType[SagaTransactionType["ApUpdate"] = 1901] = "ApUpdate";
|
|
213
|
+
SagaTransactionType[SagaTransactionType["ApDelete"] = 1902] = "ApDelete";
|
|
214
|
+
SagaTransactionType[SagaTransactionType["ApControllerClearCache"] = 1903] = "ApControllerClearCache";
|
|
215
|
+
SagaTransactionType[SagaTransactionType["AuthenticationProfileCreate"] = 2000] = "AuthenticationProfileCreate";
|
|
216
|
+
SagaTransactionType[SagaTransactionType["AuthenticationProfileUpdate"] = 2001] = "AuthenticationProfileUpdate";
|
|
217
|
+
SagaTransactionType[SagaTransactionType["AuthenticationProfileDelete"] = 2002] = "AuthenticationProfileDelete";
|
|
218
|
+
SagaTransactionType[SagaTransactionType["CaptiveClearCache"] = 2100] = "CaptiveClearCache";
|
|
219
|
+
SagaTransactionType[SagaTransactionType["GroupCreate"] = 2200] = "GroupCreate";
|
|
220
|
+
SagaTransactionType[SagaTransactionType["GroupUpdate"] = 2201] = "GroupUpdate";
|
|
221
|
+
SagaTransactionType[SagaTransactionType["GroupDelete"] = 2202] = "GroupDelete";
|
|
222
|
+
SagaTransactionType[SagaTransactionType["UserCreate"] = 2300] = "UserCreate";
|
|
223
|
+
SagaTransactionType[SagaTransactionType["UserUpdate"] = 2301] = "UserUpdate";
|
|
224
|
+
SagaTransactionType[SagaTransactionType["UserDelete"] = 2302] = "UserDelete";
|
|
225
|
+
SagaTransactionType[SagaTransactionType["UserChangePassword"] = 2303] = "UserChangePassword";
|
|
226
|
+
SagaTransactionType[SagaTransactionType["UserAddToDomain"] = 2304] = "UserAddToDomain";
|
|
227
|
+
SagaTransactionType[SagaTransactionType["UserRemoveFromDomain"] = 2305] = "UserRemoveFromDomain";
|
|
228
|
+
SagaTransactionType[SagaTransactionType["TemplateCreate"] = 2400] = "TemplateCreate";
|
|
229
|
+
SagaTransactionType[SagaTransactionType["TemplateUpdate"] = 2401] = "TemplateUpdate";
|
|
230
|
+
SagaTransactionType[SagaTransactionType["TemplateDelete"] = 2402] = "TemplateDelete";
|
|
231
|
+
SagaTransactionType[SagaTransactionType["RemarketingListCreate"] = 2500] = "RemarketingListCreate";
|
|
232
|
+
SagaTransactionType[SagaTransactionType["RemarketingListUpdate"] = 2501] = "RemarketingListUpdate";
|
|
233
|
+
SagaTransactionType[SagaTransactionType["RemarketingListDelete"] = 2502] = "RemarketingListDelete";
|
|
234
|
+
SagaTransactionType[SagaTransactionType["UserLogin"] = 2600] = "UserLogin";
|
|
235
|
+
SagaTransactionType[SagaTransactionType["UserLogout"] = 2601] = "UserLogout";
|
|
236
|
+
SagaTransactionType[SagaTransactionType["WizardCreate"] = 2700] = "WizardCreate";
|
|
237
|
+
SagaTransactionType[SagaTransactionType["WizardUpdate"] = 2701] = "WizardUpdate";
|
|
238
|
+
SagaTransactionType[SagaTransactionType["WizardDelete"] = 2702] = "WizardDelete";
|
|
239
|
+
SagaTransactionType[SagaTransactionType["HolidayCreate"] = 2800] = "HolidayCreate";
|
|
240
|
+
SagaTransactionType[SagaTransactionType["HolidayUpdate"] = 2801] = "HolidayUpdate";
|
|
241
|
+
SagaTransactionType[SagaTransactionType["HolidayDelete"] = 2802] = "HolidayDelete";
|
|
242
|
+
SagaTransactionType[SagaTransactionType["AttributeCreate"] = 2900] = "AttributeCreate";
|
|
243
|
+
SagaTransactionType[SagaTransactionType["AttributeUpdate"] = 2901] = "AttributeUpdate";
|
|
244
|
+
SagaTransactionType[SagaTransactionType["AttributeDelete"] = 2902] = "AttributeDelete";
|
|
245
|
+
SagaTransactionType[SagaTransactionType["InventoryCreate"] = 3000] = "InventoryCreate";
|
|
246
|
+
SagaTransactionType[SagaTransactionType["InventoryUpdate"] = 3001] = "InventoryUpdate";
|
|
247
|
+
SagaTransactionType[SagaTransactionType["InventoryDelete"] = 3002] = "InventoryDelete";
|
|
248
|
+
SagaTransactionType[SagaTransactionType["MenuPermissionCreate"] = 3100] = "MenuPermissionCreate";
|
|
249
|
+
SagaTransactionType[SagaTransactionType["MenuPermissionUpdate"] = 3101] = "MenuPermissionUpdate";
|
|
250
|
+
SagaTransactionType[SagaTransactionType["MenuPermissionDelete"] = 3102] = "MenuPermissionDelete";
|
|
251
|
+
SagaTransactionType[SagaTransactionType["AudienceSumupCalculate"] = 3200] = "AudienceSumupCalculate";
|
|
252
|
+
SagaTransactionType[SagaTransactionType["AttributeTypeCreate"] = 3300] = "AttributeTypeCreate";
|
|
253
|
+
SagaTransactionType[SagaTransactionType["AttributeTypeUpdate"] = 3301] = "AttributeTypeUpdate";
|
|
254
|
+
SagaTransactionType[SagaTransactionType["AttributeTypeDelete"] = 3302] = "AttributeTypeDelete";
|
|
255
|
+
SagaTransactionType[SagaTransactionType["TaskSchedulerCreate"] = 3400] = "TaskSchedulerCreate";
|
|
256
|
+
SagaTransactionType[SagaTransactionType["TaskSchedulerUpdate"] = 3401] = "TaskSchedulerUpdate";
|
|
257
|
+
SagaTransactionType[SagaTransactionType["TaskSchedulerDelete"] = 3402] = "TaskSchedulerDelete";
|
|
258
|
+
})(SagaTransactionType || (exports.SagaTransactionType = SagaTransactionType = {}));
|
|
259
|
+
var StatusCode;
|
|
260
|
+
(function (StatusCode) {
|
|
261
|
+
StatusCode[StatusCode["Start"] = 0] = "Start";
|
|
262
|
+
StatusCode[StatusCode["Success"] = 1] = "Success";
|
|
263
|
+
StatusCode[StatusCode["InProgress"] = 2] = "InProgress";
|
|
264
|
+
StatusCode[StatusCode["Exception"] = 3] = "Exception";
|
|
265
|
+
StatusCode[StatusCode["Error"] = 4] = "Error";
|
|
266
|
+
StatusCode[StatusCode["Unknown"] = 99] = "Unknown";
|
|
267
|
+
})(StatusCode || (exports.StatusCode = StatusCode = {}));
|
|
268
|
+
var PagedList_1OfSagaTransaction = /** @class */ (function () {
|
|
269
|
+
function PagedList_1OfSagaTransaction(data) {
|
|
270
|
+
if (data) {
|
|
271
|
+
for (var property in data) {
|
|
272
|
+
if (data.hasOwnProperty(property))
|
|
273
|
+
this[property] = data[property];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
PagedList_1OfSagaTransaction.prototype.init = function (_data) {
|
|
278
|
+
if (_data) {
|
|
279
|
+
if (Array.isArray(_data['items'])) {
|
|
280
|
+
this.items = [];
|
|
281
|
+
for (var _i = 0, _a = _data['items']; _i < _a.length; _i++) {
|
|
282
|
+
var item = _a[_i];
|
|
283
|
+
this.items.push(SagaTransaction.fromJS(item));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
this.pageCount = _data['pageCount'];
|
|
287
|
+
this.totalItemCount = _data['totalItemCount'];
|
|
288
|
+
this.pageNumber = _data['pageNumber'];
|
|
289
|
+
this.pageSize = _data['pageSize'];
|
|
290
|
+
this.hasPreviousPage = _data['hasPreviousPage'];
|
|
291
|
+
this.hasNextPage = _data['hasNextPage'];
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
PagedList_1OfSagaTransaction.fromJS = function (data) {
|
|
295
|
+
data = typeof data === 'object' ? data : {};
|
|
296
|
+
var result = new PagedList_1OfSagaTransaction();
|
|
297
|
+
result.init(data);
|
|
298
|
+
return result;
|
|
299
|
+
};
|
|
300
|
+
PagedList_1OfSagaTransaction.prototype.toJSON = function (data) {
|
|
301
|
+
data = typeof data === 'object' ? data : {};
|
|
302
|
+
if (Array.isArray(this.items)) {
|
|
303
|
+
data['items'] = [];
|
|
304
|
+
for (var _i = 0, _a = this.items; _i < _a.length; _i++) {
|
|
305
|
+
var item = _a[_i];
|
|
306
|
+
data['items'].push(item.toJSON());
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
data['pageCount'] = this.pageCount;
|
|
310
|
+
data['totalItemCount'] = this.totalItemCount;
|
|
311
|
+
data['pageNumber'] = this.pageNumber;
|
|
312
|
+
data['pageSize'] = this.pageSize;
|
|
313
|
+
data['hasPreviousPage'] = this.hasPreviousPage;
|
|
314
|
+
data['hasNextPage'] = this.hasNextPage;
|
|
315
|
+
return data;
|
|
316
|
+
};
|
|
317
|
+
return PagedList_1OfSagaTransaction;
|
|
318
|
+
}());
|
|
319
|
+
exports.PagedList_1OfSagaTransaction = PagedList_1OfSagaTransaction;
|
|
320
|
+
var SagaTransaction = /** @class */ (function () {
|
|
321
|
+
function SagaTransaction(data) {
|
|
322
|
+
if (data) {
|
|
323
|
+
for (var property in data) {
|
|
324
|
+
if (data.hasOwnProperty(property))
|
|
325
|
+
this[property] = data[property];
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
SagaTransaction.prototype.init = function (_data) {
|
|
330
|
+
if (_data) {
|
|
331
|
+
this.id = _data['id'];
|
|
332
|
+
this.transactionType = _data['transactionType'];
|
|
333
|
+
this.userId = _data['userId'];
|
|
334
|
+
this.request = _data['request'];
|
|
335
|
+
this.response = _data['response'];
|
|
336
|
+
this.description = _data['description'];
|
|
337
|
+
this.statusCode = _data['statusCode'];
|
|
338
|
+
this.startDate = _data['startDate']
|
|
339
|
+
? Timestamp.fromJS(_data['startDate'])
|
|
340
|
+
: undefined;
|
|
341
|
+
this.endDate = _data['endDate']
|
|
342
|
+
? Timestamp.fromJS(_data['endDate'])
|
|
343
|
+
: undefined;
|
|
344
|
+
this.applicationName = _data['applicationName'];
|
|
345
|
+
this.domainId = _data['domainId'];
|
|
346
|
+
this.objectId = _data['objectId'];
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
SagaTransaction.fromJS = function (data) {
|
|
350
|
+
data = typeof data === 'object' ? data : {};
|
|
351
|
+
var result = new SagaTransaction();
|
|
352
|
+
result.init(data);
|
|
353
|
+
return result;
|
|
354
|
+
};
|
|
355
|
+
SagaTransaction.prototype.toJSON = function (data) {
|
|
356
|
+
data = typeof data === 'object' ? data : {};
|
|
357
|
+
data['id'] = this.id;
|
|
358
|
+
data['transactionType'] = this.transactionType;
|
|
359
|
+
data['userId'] = this.userId;
|
|
360
|
+
data['request'] = this.request;
|
|
361
|
+
data['response'] = this.response;
|
|
362
|
+
data['description'] = this.description;
|
|
363
|
+
data['statusCode'] = this.statusCode;
|
|
364
|
+
data['startDate'] = this.startDate
|
|
365
|
+
? this.startDate.toJSON()
|
|
366
|
+
: undefined;
|
|
367
|
+
data['endDate'] = this.endDate ? this.endDate.toJSON() : undefined;
|
|
368
|
+
data['applicationName'] = this.applicationName;
|
|
369
|
+
data['domainId'] = this.domainId;
|
|
370
|
+
data['objectId'] = this.objectId;
|
|
371
|
+
return data;
|
|
372
|
+
};
|
|
373
|
+
return SagaTransaction;
|
|
374
|
+
}());
|
|
375
|
+
exports.SagaTransaction = SagaTransaction;
|
|
376
|
+
var Timestamp = /** @class */ (function () {
|
|
377
|
+
function Timestamp(data) {
|
|
378
|
+
if (data) {
|
|
379
|
+
for (var property in data) {
|
|
380
|
+
if (data.hasOwnProperty(property))
|
|
381
|
+
this[property] = data[property];
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
Timestamp.prototype.init = function (_data) {
|
|
386
|
+
if (_data) {
|
|
387
|
+
this.seconds = _data['seconds'];
|
|
388
|
+
this.nanos = _data['nanos'];
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
Timestamp.fromJS = function (data) {
|
|
392
|
+
data = typeof data === 'object' ? data : {};
|
|
393
|
+
var result = new Timestamp();
|
|
394
|
+
result.init(data);
|
|
395
|
+
return result;
|
|
396
|
+
};
|
|
397
|
+
Timestamp.prototype.toJSON = function (data) {
|
|
398
|
+
data = typeof data === 'object' ? data : {};
|
|
399
|
+
data['seconds'] = this.seconds;
|
|
400
|
+
data['nanos'] = this.nanos;
|
|
401
|
+
return data;
|
|
402
|
+
};
|
|
403
|
+
return Timestamp;
|
|
404
|
+
}());
|
|
405
|
+
exports.Timestamp = Timestamp;
|
|
406
|
+
var ApplicationName;
|
|
407
|
+
(function (ApplicationName) {
|
|
408
|
+
ApplicationName[ApplicationName["Acm"] = 0] = "Acm";
|
|
409
|
+
ApplicationName[ApplicationName["Axn"] = 1] = "Axn";
|
|
410
|
+
ApplicationName[ApplicationName["Admin"] = 2] = "Admin";
|
|
411
|
+
ApplicationName[ApplicationName["AcmIdApp"] = 3] = "AcmIdApp";
|
|
412
|
+
ApplicationName[ApplicationName["TaskScheduler"] = 4] = "TaskScheduler";
|
|
413
|
+
})(ApplicationName || (exports.ApplicationName = ApplicationName = {}));
|