@jsb188/app 1.1.6 → 1.1.8
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/package.json +31 -29
- package/{constants → src/constants}/app.ts +10 -4
- package/src/constants/storage.ts +4 -0
- package/{i18n → src/i18n}/account.ts +8 -0
- package/src/i18n/ai_agent.ts +88 -0
- package/{i18n → src/i18n}/app.ts +3 -0
- package/{i18n → src/i18n}/billing.ts +1 -1
- package/src/i18n/country.ts +249 -0
- package/{i18n → src/i18n}/error.ts +10 -4
- package/{i18n → src/i18n}/form.ts +36 -6
- package/src/i18n/index.ts +35 -0
- package/src/i18n/log.ts +484 -0
- package/src/i18n/message.ts +11 -0
- package/src/i18n/org.ts +165 -0
- package/src/i18n/product.ts +75 -0
- package/{main.ts → src/main.ts} +20 -29
- package/{types → src/types}/app.d.ts +2 -1
- package/{types → src/types}/auth.d.ts +1 -1
- package/{types → src/types}/other.d.ts +2 -19
- package/src/types/storage.d.ts +70 -0
- package/{utils/user.ts → src/utils/account.ts} +7 -64
- package/{utils → src/utils}/api.ts +5 -5
- package/{utils → src/utils}/billing.ts +1 -1
- package/{utils → src/utils}/datetime.ts +3 -3
- package/{utils → src/utils}/object.ts +11 -6
- package/{utils → src/utils}/string.ts +2 -2
- package/tsconfig.json +13 -0
- package/i18n/index.ts +0 -5
- package/utils/action.ts +0 -28
- /package/{constants → src/constants}/billing.ts +0 -0
- /package/{constants → src/constants}/emoji.ts +0 -0
- /package/{constants → src/constants}/other.ts +0 -0
- /package/{constants → src/constants}/user.ts +0 -0
- /package/{constants → src/constants}/wsActions.ts +0 -0
- /package/{i18n → src/i18n}/auth.ts +0 -0
- /package/{i18n → src/i18n}/datetime.ts +0 -0
- /package/{platform.ts → src/platform.ts} +0 -0
- /package/{types → src/types}/account.d.ts +0 -0
- /package/{types → src/types}/ai.d.ts +0 -0
- /package/{types → src/types}/form.d.ts +0 -0
- /package/{types.d.ts → src/types.d.ts} +0 -0
- /package/{utils → src/utils}/emoji.ts +0 -0
- /package/{utils → src/utils}/logic.ts +0 -0
- /package/{utils → src/utils}/number.ts +0 -0
- /package/{utils → src/utils}/timeZone.ts +0 -0
- /package/{utils → src/utils}/url_client.ts +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
animal_id: 'Animal ID',
|
|
4
|
+
dam_id: 'Dam ID',
|
|
5
|
+
breed: 'Breed',
|
|
6
|
+
|
|
7
|
+
upcoming_markets: 'Upcoming markets',
|
|
8
|
+
markets_empty_msg: 'Talk to your AI to create farmers market events.',
|
|
9
|
+
event_not_scheduled_msg: 'This event is not scheduled for this date.',
|
|
10
|
+
attendance_list_empty_msg: 'Attendance list is empty for this date.',
|
|
11
|
+
|
|
12
|
+
// Report
|
|
13
|
+
collected_total_ct_evidences: 'Collected a total of %{smart_count} evidence.||||Collected a total of %{smart_count} evidences.',
|
|
14
|
+
|
|
15
|
+
// Content names
|
|
16
|
+
view_document: 'View document',
|
|
17
|
+
view_event: 'View event',
|
|
18
|
+
view_market: 'View market',
|
|
19
|
+
|
|
20
|
+
edit_document: 'Edit document',
|
|
21
|
+
edit_event: 'Edit event',
|
|
22
|
+
edit_market: 'Edit market',
|
|
23
|
+
|
|
24
|
+
delete_document: 'Delete document',
|
|
25
|
+
delete_event: 'Delete event',
|
|
26
|
+
delete_market: 'Delete market',
|
|
27
|
+
|
|
28
|
+
// Enums
|
|
29
|
+
status: {
|
|
30
|
+
ALIVE: 'Alive',
|
|
31
|
+
SICK: 'Sick',
|
|
32
|
+
SOLD: 'Sold',
|
|
33
|
+
DECEASED: 'Deceased',
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
event_frequency_msg: {
|
|
37
|
+
ONCE: 'This event does not repeat.',
|
|
38
|
+
WEEKLY: 'This event repeats weekly.',
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
contentName_plural: {
|
|
42
|
+
market: 'Markets',
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
feature_title: {
|
|
46
|
+
// This object is the "title" field of "actions" database document.
|
|
47
|
+
// It's used as visualization purposes only, in front-end UI.
|
|
48
|
+
CAL_EVENTS_ATTENDANCE: 'Attendance record',
|
|
49
|
+
CAL_EVENTS_LOAD_LIST: 'Load list',
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
feature_instructions: {
|
|
53
|
+
// This object is the "instruction" field of "actions" database document.
|
|
54
|
+
// It's used as visualization purposes only, in front-end UI.
|
|
55
|
+
CAL_EVENTS_ATTENDANCE: "Read the log and record the vendor's attendance.",
|
|
56
|
+
CAL_EVENTS_LOAD_LIST: "Save the vendor's load list for the market day.",
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
feature_notification: {
|
|
60
|
+
// This object is the "top right corner" toaster notification messages in the front-end UI.
|
|
61
|
+
CAL_EVENTS_ATTENDANCE_success: 'Vendor attendance has been recorded.',
|
|
62
|
+
CAL_EVENTS_ATTENDANCE_failed: 'Failed to record vendor attendance.',
|
|
63
|
+
CAL_EVENTS_LOAD_LIST_success: 'Load list has been saved.',
|
|
64
|
+
CAL_EVENTS_LOAD_LIST_failed: 'Failed to save load list.',
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
// Reports
|
|
68
|
+
|
|
69
|
+
report: {
|
|
70
|
+
GLOBAL_GAP: 'GLOBALG.A.P.',
|
|
71
|
+
ORGANIC_CERTIFICATION: 'USDA National Organic Program (NOP)',
|
|
72
|
+
CLEANING: 'Cleaning logs',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
};
|
package/{main.ts → src/main.ts}
RENAMED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import i18n from './i18n/';
|
|
2
|
-
import app from './i18n/app';
|
|
3
|
-
import auth from './i18n/auth';
|
|
4
|
-
import billing from './i18n/billing';
|
|
5
|
-
import datetime from './i18n/datetime';
|
|
6
|
-
import error from './i18n/error';
|
|
7
|
-
import form from './i18n/form';
|
|
8
|
-
import account from './i18n/account';
|
|
1
|
+
import i18n, { i18nTranslations } from './i18n/index.ts';
|
|
9
2
|
|
|
10
3
|
// Get the correct type for ENV
|
|
11
4
|
let ENV: Map<string, string | boolean | number> = new Map();
|
|
@@ -14,31 +7,29 @@ let ENV: Map<string, string | boolean | number> = new Map();
|
|
|
14
7
|
* Extend i18n with app specific texts
|
|
15
8
|
*/
|
|
16
9
|
|
|
17
|
-
export function configI18n(texts
|
|
10
|
+
export function configI18n(texts?: Record<string, any>) {
|
|
18
11
|
|
|
19
12
|
// Locale support for later
|
|
20
13
|
const locale = 'en';
|
|
21
14
|
|
|
22
|
-
const extendedObj = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
} else {
|
|
41
|
-
extendedObj[key] = obj;
|
|
15
|
+
const extendedObj: Record<string, any> = {};
|
|
16
|
+
|
|
17
|
+
for (const key in i18nTranslations) {
|
|
18
|
+
extendedObj[key] = i18nTranslations[key][locale];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (texts) {
|
|
22
|
+
for (const key in texts) {
|
|
23
|
+
const obj = texts[key][locale];
|
|
24
|
+
|
|
25
|
+
if (extendedObj[key]) {
|
|
26
|
+
extendedObj[key] = {
|
|
27
|
+
...extendedObj[key],
|
|
28
|
+
...obj
|
|
29
|
+
};
|
|
30
|
+
} else {
|
|
31
|
+
extendedObj[key] = obj;
|
|
32
|
+
}
|
|
42
33
|
}
|
|
43
34
|
}
|
|
44
35
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COLORS } from '../constants/app';
|
|
1
|
+
import { COLORS } from '../constants/app.ts';
|
|
2
2
|
|
|
3
3
|
// Modal; App settings
|
|
4
4
|
|
|
@@ -63,6 +63,7 @@ export interface WSDataUpdateObj {
|
|
|
63
63
|
fragments?: null | ({
|
|
64
64
|
name: string;
|
|
65
65
|
dataId: string;
|
|
66
|
+
replaceId?: string; // Use this where client has a temporary ID that will be replaced by the server-side ID later
|
|
66
67
|
data: any;
|
|
67
68
|
} | null)[];
|
|
68
69
|
}
|
|
@@ -7,23 +7,6 @@ import { DAY_OF_WEEK, SCHEDULE_FREQUENCY } from '../constants/other.ts';
|
|
|
7
7
|
export type DayOfWeekEnum = typeof DAY_OF_WEEK[number];
|
|
8
8
|
export type ScheduleFrequencyEnum = typeof SCHEDULE_FREQUENCY[number];
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* Storage
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
export interface StorageData {
|
|
15
|
-
__table: 'storage';
|
|
16
|
-
id: number;
|
|
17
|
-
organizationId: number | null;
|
|
18
|
-
accountId: number | null;
|
|
19
|
-
uri: string;
|
|
20
|
-
size: number;
|
|
21
|
-
checked: boolean;
|
|
22
|
-
at: Date;
|
|
23
|
-
contentType: string;
|
|
24
|
-
values: string[] | null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
10
|
/**
|
|
28
11
|
* Address
|
|
29
12
|
*/
|
|
@@ -56,6 +39,6 @@ export interface ScheduleObj {
|
|
|
56
39
|
*/
|
|
57
40
|
|
|
58
41
|
export interface FileObj {
|
|
59
|
-
|
|
60
|
-
|
|
42
|
+
buffer: Uint8Array;
|
|
43
|
+
contentType: string;
|
|
61
44
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { STORAGE_INTENT_ENUMS } from '../constants/storage.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Enums
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export type StorageIntentEnum = typeof STORAGE_INTENT_ENUMS[number];
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Storage
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export interface StorageData {
|
|
14
|
+
__table: 'storage';
|
|
15
|
+
id: number;
|
|
16
|
+
organizationId: number | null;
|
|
17
|
+
accountId: number | null;
|
|
18
|
+
uri: string;
|
|
19
|
+
size: number;
|
|
20
|
+
checked: boolean;
|
|
21
|
+
at: Date;
|
|
22
|
+
contentType: string;
|
|
23
|
+
values: Record<string, any> | null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface StorageGQL {
|
|
27
|
+
__deleted?: boolean;
|
|
28
|
+
|
|
29
|
+
id: string;
|
|
30
|
+
organizationId: string | null;
|
|
31
|
+
accountId: string | null;
|
|
32
|
+
uri: string;
|
|
33
|
+
size: number;
|
|
34
|
+
checked: boolean;
|
|
35
|
+
at: Date;
|
|
36
|
+
contentType: string;
|
|
37
|
+
|
|
38
|
+
// client-side only
|
|
39
|
+
uploadStatus?: 'ERROR' | 'UPLOADING' | null;
|
|
40
|
+
|
|
41
|
+
// metadata
|
|
42
|
+
name: string | null;
|
|
43
|
+
description: string | null;
|
|
44
|
+
aiNote: string | null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type StorageUploadObj = Partial<{
|
|
48
|
+
uploaderAccountId: number;
|
|
49
|
+
values: Partial<{
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
aiNote: string;
|
|
53
|
+
}>;
|
|
54
|
+
uploadIntent: {
|
|
55
|
+
intent: StorageIntentEnum;
|
|
56
|
+
entries: [string, string][];
|
|
57
|
+
};
|
|
58
|
+
upsertQuery?: RelatedDocumentUpsertQuery;
|
|
59
|
+
realTimeUpdate?: string; // JSON.stringified object; "{{storageId}}" will be replaced with actual storage ID after upload
|
|
60
|
+
}>;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Post-upload related document query execution object
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
export interface RelatedDocumentUpsertQuery {
|
|
67
|
+
__table: string;
|
|
68
|
+
conflictKeys: string[];
|
|
69
|
+
data: Record<string, any>;
|
|
70
|
+
}
|
|
@@ -5,14 +5,6 @@
|
|
|
5
5
|
type LightModeValue = 'LIGHT' | 'DARK' | 'SYSTEM';
|
|
6
6
|
type PlusGroupEnum = 'NORMAL' | 'PERKS' | 'PLUS' | 'PRO';
|
|
7
7
|
|
|
8
|
-
interface UserSubOutput {
|
|
9
|
-
name: string | null;
|
|
10
|
-
group: PlusGroupEnum;
|
|
11
|
-
cancelled: boolean;
|
|
12
|
-
expired: boolean;
|
|
13
|
-
expireAt: Date | null;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
8
|
/**
|
|
17
9
|
* Get light mode value
|
|
18
10
|
*/
|
|
@@ -44,66 +36,17 @@ export function updateLightMode(mode_: string | undefined, newValue: LightModeVa
|
|
|
44
36
|
return mode.substring(0, index) + value + mode.substring(index + 1);
|
|
45
37
|
}
|
|
46
38
|
|
|
47
|
-
/**
|
|
48
|
-
* Resolve user's online status for chat
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
export function resolveOnlineStatus(user: any, viewerUserId: number) {
|
|
52
|
-
// console.log('..... RESOLVE ONLINE STATUS .....', user.id, viewerUserId, user.onlineStatus);
|
|
53
|
-
if (
|
|
54
|
-
// This check won't be valid if user is switching logins;
|
|
55
|
-
// So for those cases, use [user.self = true],
|
|
56
|
-
// to validate that this is a self online status
|
|
57
|
-
viewerUserId == user.id ||
|
|
58
|
-
user.self
|
|
59
|
-
) {
|
|
60
|
-
return user.onlineStatus;
|
|
61
|
-
} else if (!user.lastLoginAt) {
|
|
62
|
-
return 'APPEAR_OFFLINE';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const now = Date.now();
|
|
66
|
-
const wasOnline = (now - user.lastLoginAt) < 420000; // 7 minutes
|
|
67
|
-
|
|
68
|
-
if (wasOnline) {
|
|
69
|
-
return user.onlineStatus;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return 'APPEAR_OFFLINE';
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Get user subscription type
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
export const getPlusStatus = (plus: any) => {
|
|
80
|
-
if (!plus || plus.expireAt <= Date.now()) {
|
|
81
|
-
return 'NORMAL';
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
switch (plus.type) {
|
|
85
|
-
case 'kajiwoto_plus':
|
|
86
|
-
case 'kajiwoto_plus_yearly':
|
|
87
|
-
case 'big_planet_plus':
|
|
88
|
-
case 'big_planet_plus_yearly':
|
|
89
|
-
return 'PLUS';
|
|
90
|
-
case 'kajiwoto_pro':
|
|
91
|
-
case 'kajiwoto_pro_yearly':
|
|
92
|
-
case 'big_planet_pro':
|
|
93
|
-
case 'big_planet_pro_yearly':
|
|
94
|
-
return 'PRO';
|
|
95
|
-
case 'perks':
|
|
96
|
-
return 'PERKS';
|
|
97
|
-
default:
|
|
98
|
-
return 'NORMAL';
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
|
|
102
39
|
/**
|
|
103
40
|
* Get user's subscription & status
|
|
104
41
|
*/
|
|
105
42
|
|
|
106
|
-
export const getUserSubscription = (plus: any):
|
|
43
|
+
export const getUserSubscription = (plus: any): {
|
|
44
|
+
name: string | null;
|
|
45
|
+
group: PlusGroupEnum;
|
|
46
|
+
cancelled: boolean;
|
|
47
|
+
expired: boolean;
|
|
48
|
+
expireAt: Date | null;
|
|
49
|
+
} => {
|
|
107
50
|
if (!plus) {
|
|
108
51
|
return {
|
|
109
52
|
name: null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import i18n from '../i18n/';
|
|
2
|
-
import { getENVVariable } from '../main';
|
|
3
|
-
import type { ServerErrorObj } from '../types/app.d';
|
|
1
|
+
import i18n from '../i18n/index.ts';
|
|
2
|
+
import { getENVVariable } from '../main.ts';
|
|
3
|
+
import type { ServerErrorObj } from '../types/app.d.ts';
|
|
4
4
|
|
|
5
5
|
let AUTH_TOKEN: string | null = null;
|
|
6
6
|
|
|
@@ -74,13 +74,13 @@ export function normalizeServerError(error?: any): ServerErrorObj {
|
|
|
74
74
|
if (i18nErrCodeExists(errorCode)) {
|
|
75
75
|
message = i18n.t(`error.${errorCode}`, { value: errorValue, smart_count: Number(errorValue) });
|
|
76
76
|
} else {
|
|
77
|
-
message = i18n.t('error.
|
|
77
|
+
message = i18n.t('error.unknown_error_msg');
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
if (
|
|
82
82
|
getENVVariable('NODE_ENV') === 'development' &&
|
|
83
|
-
message === i18n.t('error.
|
|
83
|
+
message === i18n.t('error.unknown_error_msg')
|
|
84
84
|
) {
|
|
85
85
|
// Log for development so I can see what went wrong
|
|
86
86
|
console.warn(error);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
|
-
import i18n from '../i18n';
|
|
3
|
-
import { getObject } from './object';
|
|
4
|
-
import { isValidTimeZone, parseDateInTimezone } from './timeZone';
|
|
2
|
+
import i18n from '../i18n/index.ts';
|
|
3
|
+
import { getObject } from './object.ts';
|
|
4
|
+
import { isValidTimeZone, parseDateInTimezone } from './timeZone.ts';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Types
|
|
@@ -296,6 +296,7 @@ export function groupCollections(
|
|
|
296
296
|
innerCollectionNames: string[],
|
|
297
297
|
innerCollectionDefaultValues: Record<string, any> = {},
|
|
298
298
|
primaryKey: string | ((o: any) => string) = 'id',
|
|
299
|
+
innerCollectionPrimaryKeys?: Record<string, (obj: any) => string>,
|
|
299
300
|
isTest?: boolean,
|
|
300
301
|
): any[] {
|
|
301
302
|
let hasHash = false;
|
|
@@ -388,12 +389,16 @@ export function groupCollections(
|
|
|
388
389
|
if (!ref) {
|
|
389
390
|
setObject(acc[i], name, innerObj && Array.isArray(innerObj) ? [innerObj] : (innerObj || defaultValue));
|
|
390
391
|
} else if (
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
392
|
+
innerObj &&
|
|
393
|
+
!ref.find((o: any) => {
|
|
394
|
+
const innerPKFn = innerCollectionPrimaryKeys?.[name];
|
|
395
|
+
if (innerPKFn) {
|
|
396
|
+
return innerPKFn(o) === innerPKFn(innerObj);
|
|
397
|
+
}
|
|
398
|
+
return (o.id && o.id === innerObj.id) ||
|
|
399
|
+
(!o.id && Object.entries(o).flat().join('|') === Object.entries(innerObj).flat().join('|'));
|
|
400
|
+
})
|
|
401
|
+
) {
|
|
397
402
|
setObject(acc[i], name, Array.isArray(ref) ? ref.concat(innerObj) : innerObj);
|
|
398
403
|
}
|
|
399
404
|
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Bundler",
|
|
6
|
+
"allowImportingTsExtensions": true,
|
|
7
|
+
"noEmit": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"esModuleInterop": true
|
|
11
|
+
},
|
|
12
|
+
"include": ["src/**/*"]
|
|
13
|
+
}
|
package/i18n/index.ts
DELETED
package/utils/action.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ActionCategoryEnum } from '@jsb188/mday/types/action.d';
|
|
2
|
-
import type { LogActivityEnum } from '@jsb188/mday/types/log.d';
|
|
3
|
-
import type { OrganizationOperationEnum } from '../types/organization.d.ts';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Enums
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export const ACTION_STATUS_ENUMS = [
|
|
10
|
-
'SCHEDULED',
|
|
11
|
-
'STARTED',
|
|
12
|
-
'COMPLETED',
|
|
13
|
-
'ERRORED',
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Get aggregated action types to log activities
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
export function getAggregatedActivities(
|
|
21
|
-
operation: OrganizationOperationEnum,
|
|
22
|
-
actionCategory: ActionCategoryEnum,
|
|
23
|
-
): LogActivityEnum[] {
|
|
24
|
-
|
|
25
|
-
return [
|
|
26
|
-
'MARKET_CREDIT_RECEIPT',
|
|
27
|
-
];
|
|
28
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|