@jsb188/app 1.1.10 → 1.1.11
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 +54 -45
- package/src/constants/agent.ts +58 -25
- package/src/constants/app.ts +18 -14
- package/src/constants/billing.ts +92 -92
- package/src/constants/emoji.ts +9144 -8936
- package/src/constants/other.ts +1 -5
- package/src/constants/user.ts +16 -25
- package/src/constants/wsActions.ts +35 -0
- package/src/i18n/account.ts +129 -107
- package/src/i18n/agent.ts +63 -43
- package/src/i18n/agentDoc.ts +110 -0
- package/src/i18n/app.ts +101 -91
- package/src/i18n/auth.ts +119 -102
- package/src/i18n/billing.ts +73 -78
- package/src/i18n/campaign.ts +217 -0
- package/src/i18n/country.ts +248 -248
- package/src/i18n/datetime.ts +26 -26
- package/src/i18n/error.ts +428 -182
- package/src/i18n/field_docs.ts +28 -0
- package/src/i18n/form.ts +464 -344
- package/src/i18n/index.ts +25 -18
- package/src/i18n/log.ts +53 -213
- package/src/i18n/memory.ts +39 -0
- package/src/i18n/message.ts +3 -4
- package/src/i18n/note.ts +17 -0
- package/src/i18n/org.ts +115 -109
- package/src/i18n/sheet.ts +376 -4
- package/src/i18n/workflow.ts +70 -23
- package/src/main.ts +66 -62
- package/src/platform.ts +25 -24
- package/src/types/ai.d.ts +33 -23
- package/src/types/app.d.ts +95 -37
- package/src/types/auth.d.ts +66 -40
- package/src/types/console.d.ts +3 -0
- package/src/types/form.d.ts +65 -61
- package/src/types/other.d.ts +6 -6
- package/src/types.d.ts +12 -14
- package/src/utils/account.ts +64 -58
- package/src/utils/api.ts +280 -77
- package/src/utils/authSession.ts +24 -0
- package/src/utils/billing.ts +110 -103
- package/src/utils/color.ts +202 -0
- package/src/utils/cron.ts +49 -18
- package/src/utils/datetime.ts +255 -103
- package/src/utils/emoji.ts +107 -84
- package/src/utils/expression.ts +867 -0
- package/src/utils/interval.ts +80 -0
- package/src/utils/logic.ts +209 -36
- package/src/utils/managedSession.ts +34 -0
- package/src/utils/managedSessionBff.test.ts +60 -0
- package/src/utils/managedSessionBff.ts +117 -0
- package/src/utils/number.ts +60 -32
- package/src/utils/object.ts +198 -30
- package/src/utils/promise.ts +27 -0
- package/src/utils/queryReset.ts +179 -0
- package/src/utils/recurringTask.ts +60 -0
- package/src/utils/schema.ts +293 -0
- package/src/utils/string.test.ts +220 -208
- package/src/utils/string.ts +471 -438
- package/src/utils/timeZone.ts +309 -851
- package/src/utils/url_client.ts +73 -69
- package/tsconfig.json +10 -10
- package/src/i18n/product.ts +0 -76
package/src/i18n/org.ts
CHANGED
|
@@ -2,26 +2,34 @@ export default {
|
|
|
2
2
|
en: {
|
|
3
3
|
organization: 'Organization',
|
|
4
4
|
organizations: 'Organizations',
|
|
5
|
+
grower: 'Grower',
|
|
6
|
+
growers: 'Growers',
|
|
5
7
|
my_organizations: 'My organizations',
|
|
6
8
|
name: 'Organization name',
|
|
7
9
|
name_of: 'Name of organization',
|
|
8
10
|
type_of: 'Type of organization',
|
|
9
11
|
claimed_business: 'Claimed business',
|
|
10
|
-
contact_associated_with:
|
|
11
|
-
|
|
12
|
+
contact_associated_with:
|
|
13
|
+
'This contact is associated with: %{organizationNames}',
|
|
14
|
+
contact_choose_associated_orgs:
|
|
15
|
+
'Choose the associated organizations for this contact.',
|
|
12
16
|
org_info: 'Organization information',
|
|
13
17
|
nothing_found: 'No organizations found.',
|
|
14
18
|
farms: 'Farms',
|
|
15
19
|
settings: 'Organization settings',
|
|
16
20
|
edit_operation: 'Edit operation',
|
|
17
21
|
edit_child_org_operation: 'Edit child organization operation',
|
|
18
|
-
edit_child_org_operation_msg:
|
|
19
|
-
|
|
22
|
+
edit_child_org_operation_msg:
|
|
23
|
+
'Choose the business operation for\n [hl]%{name}[/hl].',
|
|
24
|
+
edit_child_org_operation_finished_msg:
|
|
25
|
+
"[hl]%{name}[/hl]'s business operation is set to **%{operation}**.",
|
|
20
26
|
edit_child_org_info_msg: 'Update the information for\n [hl]%{name}[/hl].',
|
|
21
|
-
edit_child_org_info_finished_msg:
|
|
27
|
+
edit_child_org_info_finished_msg:
|
|
28
|
+
'Information has been updated for\n [hl]%{name}[/hl].',
|
|
22
29
|
edit_site_location_msg: 'Update the information for\n [hl]%{name}[/hl].',
|
|
23
|
-
edit_site_location_finished_msg:
|
|
24
|
-
|
|
30
|
+
edit_site_location_finished_msg:
|
|
31
|
+
'Information has been updated for\n [hl]%{name}[/hl].',
|
|
32
|
+
delete_child_org_msg: 'Are you sure you want to remove\n [hl]%{name}[/hl]?',
|
|
25
33
|
manage_team: 'Manage team',
|
|
26
34
|
site_locations: 'Site locations',
|
|
27
35
|
all_site_locations: 'All locations',
|
|
@@ -29,9 +37,11 @@ export default {
|
|
|
29
37
|
members_ct: '%{smart_count} member||||%{smart_count} members',
|
|
30
38
|
administration: 'Administration',
|
|
31
39
|
billing: 'Billing',
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
department_req_msg: 'Please select a department for this contact.',
|
|
41
|
+
contact_phone_or_email_req_msg:
|
|
42
|
+
'Please provide a phone number or email for this contact.',
|
|
43
|
+
address_notice_msg:
|
|
44
|
+
'This information will appear on the invoices you generate for your customers and to others in your network.',
|
|
35
45
|
no_recurring_schedule: 'This event does not have a recurring schedule.',
|
|
36
46
|
daily_event_msg: 'This event repeats every day.',
|
|
37
47
|
single_event_msg: 'This event only occurs once.',
|
|
@@ -48,182 +58,178 @@ export default {
|
|
|
48
58
|
past_markets: 'Past Markets',
|
|
49
59
|
load_lists: 'Load Lists',
|
|
50
60
|
contact_to_change: 'Please contact us to change this information.',
|
|
51
|
-
locked_contact_msg:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
locked_contact_msg:
|
|
62
|
+
'This contact information is saved by the owner of this organization.',
|
|
63
|
+
no_contact_information_msg:
|
|
64
|
+
"This organization doesn't have any contact information.",
|
|
65
|
+
no_site_locations: "This organization doesn't have any site locations.",
|
|
66
|
+
could_not_load_not_linked_org:
|
|
67
|
+
"This organization's data could not be loaded because it's no longer linked to your organization.",
|
|
68
|
+
vendor_documents_not_found_msg:
|
|
69
|
+
"This vendor hasn't submitted any compliance documents or certifications.",
|
|
56
70
|
switch_organizations: 'Switch organizations',
|
|
57
|
-
switch_msg:
|
|
71
|
+
switch_msg:
|
|
58
72
|
'Messages from your phone number <span class="em_text"><span class="rel z1">%{phoneNumber}</span></span> ' +
|
|
59
|
-
'will only be sent to your primary organization, <span class="em_text"><span class="rel z1">%{orgName}</span></span>.'
|
|
60
|
-
|
|
61
|
-
switch_msg_no_org_selected: (
|
|
73
|
+
'will only be sent to your primary organization, <span class="em_text"><span class="rel z1">%{orgName}</span></span>.',
|
|
74
|
+
switch_msg_no_org_selected:
|
|
62
75
|
'Messages from your phone number <span class="em_text"><span class="rel z1">%{phoneNumber}</span></span> ' +
|
|
63
|
-
'will only be sent to your primary organization.'
|
|
64
|
-
|
|
65
|
-
switch_msg_no_phone_selected: (
|
|
76
|
+
'will only be sent to your primary organization.',
|
|
77
|
+
switch_msg_no_phone_selected:
|
|
66
78
|
'Messages from your phone number ' +
|
|
67
|
-
'will only be sent to your primary organization, <span class="em_text"><span class="rel z1">%{orgName}</span></span>.'
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
switch_confirm_msg: (
|
|
79
|
+
'will only be sent to your primary organization, <span class="em_text"><span class="rel z1">%{orgName}</span></span>.',
|
|
80
|
+
switch_msg_none_selected:
|
|
81
|
+
'Messages from your phone number will only be sent to your primary organization.',
|
|
82
|
+
switch_instr:
|
|
83
|
+
'Select from the list below to change your primary organization.',
|
|
84
|
+
|
|
85
|
+
switch_confirm_msg:
|
|
75
86
|
// NOTE: Because ".em_text" only works when the entire word is in 1 line,
|
|
76
87
|
// we need to give as much space as possible to <span> block.
|
|
77
88
|
'Do you want to switch your primary organization to ' +
|
|
78
|
-
'<span class="em_text"><span class="rel z1">%{orgName}</span></span>?'
|
|
79
|
-
),
|
|
89
|
+
'<span class="em_text"><span class="rel z1">%{orgName}</span></span>?',
|
|
80
90
|
|
|
81
|
-
switch_finished_msg:
|
|
91
|
+
switch_finished_msg:
|
|
82
92
|
'Your primary organization has been switched to ' +
|
|
83
|
-
'<span class="em_text"><span class="rel z1">%{orgName}</span></span>.'
|
|
84
|
-
),
|
|
93
|
+
'<span class="em_text"><span class="rel z1">%{orgName}</span></span>.',
|
|
85
94
|
|
|
86
95
|
yes_switch: 'Yes, switch organization',
|
|
87
96
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
role: {
|
|
98
|
+
MEMBER: 'Member',
|
|
99
|
+
MANAGER: 'Manager',
|
|
100
|
+
ADMIN: 'Admin',
|
|
101
|
+
OWNER: 'Owner',
|
|
102
|
+
GUEST: 'Guest',
|
|
103
|
+
},
|
|
95
104
|
|
|
96
105
|
type: {
|
|
97
106
|
ARABLE: 'Arable farm',
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
UNKNOWN: 'Unknown',
|
|
116
|
-
},
|
|
107
|
+
FARMERS_MARKET: 'Farmers market',
|
|
108
|
+
GROWER_NETWORK: 'Grower network',
|
|
109
|
+
RESTAURANT: 'Restaurant',
|
|
110
|
+
VENDOR: 'Vendor',
|
|
111
|
+
WHOLESALE_FOOD: 'Wholesale (Food)',
|
|
112
|
+
UNKNOWN: 'Unknown',
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
type_short: {
|
|
116
|
+
ARABLE: 'Farm',
|
|
117
|
+
FARMERS_MARKET: 'Market',
|
|
118
|
+
GROWER_NETWORK: 'Grower network',
|
|
119
|
+
RESTAURANT: 'Restaurant',
|
|
120
|
+
VENDOR: 'Vendor',
|
|
121
|
+
WHOLESALE_FOOD: 'Wholesale',
|
|
122
|
+
UNKNOWN: 'Unknown',
|
|
123
|
+
},
|
|
117
124
|
|
|
118
125
|
type_inline: {
|
|
119
126
|
ARABLE: 'farm',
|
|
120
|
-
LIVESTOCK: 'ranch',
|
|
121
127
|
FARMERS_MARKET: 'farmers market',
|
|
122
128
|
GROWER_NETWORK: 'grower network',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
129
|
+
RESTAURANT: 'restaurant',
|
|
130
|
+
VENDOR: 'vendor',
|
|
131
|
+
WHOLESALE_FOOD: 'wholesale food business',
|
|
132
|
+
UNKNOWN: 'unknown organization',
|
|
127
133
|
},
|
|
128
134
|
|
|
129
135
|
type_active: {
|
|
130
136
|
ARABLE: 'Farming',
|
|
131
|
-
LIVESTOCK: 'Ranching',
|
|
132
137
|
FARMERS_MARKET: 'Market',
|
|
133
138
|
GROWER_NETWORK: 'Grower network',
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
RESTAURANT: 'Restaurant',
|
|
140
|
+
VENDOR: 'Vendor',
|
|
141
|
+
WHOLESALE_FOOD: 'Wholesale',
|
|
142
|
+
UNKNOWN: 'Unknown',
|
|
138
143
|
},
|
|
139
144
|
|
|
140
145
|
type_detailed: {
|
|
141
146
|
ARABLE: 'Arable farm (produce)',
|
|
142
|
-
LIVESTOCK: 'Livestock ranch (livestock)',
|
|
143
147
|
FARMERS_MARKET: 'Farmers market',
|
|
144
148
|
GROWER_NETWORK: 'Grower network',
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
RESTAURANT: 'Restaurant',
|
|
150
|
+
VENDOR: 'Vendor (customer or supplier)',
|
|
151
|
+
WHOLESALE_FOOD: 'Wholesale (Food)',
|
|
152
|
+
UNKNOWN: 'Unknown',
|
|
153
|
+
},
|
|
150
154
|
|
|
151
155
|
operation_desc: {
|
|
152
156
|
ARABLE: 'Crop production (%{commodities})',
|
|
153
|
-
LIVESTOCK: 'Livestock production (%{commodities})',
|
|
154
157
|
|
|
155
158
|
ARABLE_default: 'Crop production (produce)',
|
|
156
|
-
LIVESTOCK_default: 'Livestock production',
|
|
157
159
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
// ..
|
|
161
|
+
// Other operations will defaults to "Unknown"
|
|
160
162
|
},
|
|
161
163
|
|
|
162
164
|
cert_scope: {
|
|
163
165
|
ARABLE: 'Crop production',
|
|
164
|
-
LIVESTOCK: 'Livestock production',
|
|
165
166
|
// Defaults to "Unknown"
|
|
166
167
|
},
|
|
167
168
|
|
|
168
169
|
product: {
|
|
169
170
|
ARABLE: 'produce',
|
|
170
|
-
LIVESTOCK: 'livestock',
|
|
171
171
|
FARMERS_MARKET: 'product',
|
|
172
172
|
GROWER_NETWORK: 'product',
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
RESTAURANT: 'product',
|
|
174
|
+
VENDOR: 'product',
|
|
175
|
+
WHOLESALE_FOOD: 'product',
|
|
176
|
+
UNKNOWN: 'product',
|
|
177
177
|
},
|
|
178
178
|
|
|
179
179
|
children: {
|
|
180
180
|
GROWER_NETWORK: 'Farms/Ranches',
|
|
181
181
|
FARMERS_MARKET: 'Vendors',
|
|
182
|
-
|
|
182
|
+
default: 'Organizations',
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
children_list: {
|
|
186
|
+
GROWER_NETWORK: 'Farms/Ranches network',
|
|
187
|
+
FARMERS_MARKET: 'Vendors list',
|
|
188
|
+
default: 'Organizations list',
|
|
183
189
|
},
|
|
184
190
|
|
|
185
191
|
view: {
|
|
186
192
|
ARABLE: 'View farm',
|
|
187
|
-
LIVESTOCK: 'View
|
|
193
|
+
LIVESTOCK: 'View livestock',
|
|
188
194
|
FARMERS_MARKET: 'View farmers market',
|
|
189
195
|
GROWER_NETWORK: 'View organization',
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
RESTAURANT: 'View restaurant',
|
|
197
|
+
VENDOR: 'View vendor',
|
|
198
|
+
WHOLESALE_FOOD: 'View wholesale business',
|
|
199
|
+
UNKNOWN: 'View organization',
|
|
194
200
|
},
|
|
195
201
|
|
|
196
202
|
edit: {
|
|
197
203
|
ARABLE: 'Edit farm',
|
|
198
|
-
LIVESTOCK: 'Edit
|
|
204
|
+
LIVESTOCK: 'Edit livestock',
|
|
199
205
|
FARMERS_MARKET: 'Edit farmers market',
|
|
200
206
|
GROWER_NETWORK: 'Edit organization',
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
RESTAURANT: 'Edit restaurant',
|
|
208
|
+
VENDOR: 'Edit vendor',
|
|
209
|
+
WHOLESALE_FOOD: 'Edit wholesale business',
|
|
210
|
+
UNKNOWN: 'Edit organization',
|
|
205
211
|
},
|
|
206
212
|
|
|
207
213
|
delete: {
|
|
208
214
|
ARABLE: 'Delete farm',
|
|
209
|
-
LIVESTOCK: 'Delete
|
|
215
|
+
LIVESTOCK: 'Delete livestock',
|
|
210
216
|
FARMERS_MARKET: 'Delete farmers market',
|
|
211
217
|
GROWER_NETWORK: 'Delete organization',
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
RESTAURANT: 'Delete restaurant',
|
|
219
|
+
VENDOR: 'Delete vendor',
|
|
220
|
+
WHOLESALE_FOOD: 'Delete wholesale business',
|
|
221
|
+
UNKNOWN: 'Delete organization',
|
|
216
222
|
},
|
|
217
223
|
|
|
218
224
|
remove: {
|
|
219
225
|
ARABLE: 'Remove farm',
|
|
220
|
-
LIVESTOCK: 'Remove
|
|
226
|
+
LIVESTOCK: 'Remove livestock',
|
|
221
227
|
FARMERS_MARKET: 'Remove farmers market',
|
|
222
228
|
GROWER_NETWORK: 'Remove organization',
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
229
|
+
RESTAURANT: 'Remove restaurant',
|
|
230
|
+
VENDOR: 'Remove vendor',
|
|
231
|
+
WHOLESALE_FOOD: 'Remove wholesale business',
|
|
232
|
+
UNKNOWN: 'Remove organization',
|
|
227
233
|
},
|
|
228
234
|
|
|
229
235
|
contact_department: {
|
|
@@ -238,7 +244,7 @@ export default {
|
|
|
238
244
|
compliance: {
|
|
239
245
|
ORGANIC: 'Organic certification',
|
|
240
246
|
INSURANCE: 'Insurance policy',
|
|
241
|
-
PRODUCERS_CERTIFICATE:
|
|
247
|
+
PRODUCERS_CERTIFICATE: "Producer's certificate",
|
|
242
248
|
MILK_HANDLER_LICENSE: 'Milk Handler license',
|
|
243
249
|
EGG_HANDLER_LICENSE: 'Egg Handler license',
|
|
244
250
|
NURSERY_LICENSE: 'Nursery license',
|