aab-prompts 1.0.0__py3-none-any.whl
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.
- aab_prompts-1.0.0.dist-info/METADATA +18 -0
- aab_prompts-1.0.0.dist-info/RECORD +20 -0
- aab_prompts-1.0.0.dist-info/WHEEL +5 -0
- aab_prompts-1.0.0.dist-info/top_level.txt +2 -0
- aab_service.py +340 -0
- prompts/__init__.py +0 -0
- prompts/breadcrumbs.py +108 -0
- prompts/constants.py +1467 -0
- prompts/expressions.py +453 -0
- prompts/menu_navigations.py +222 -0
- prompts/objects_fields.py +303 -0
- prompts/page_planner.py +138 -0
- prompts/pages.py +202 -0
- prompts/planner.py +548 -0
- prompts/router.py +247 -0
- prompts/solutions_applications.py +163 -0
- prompts/view_filter_planner.py +55 -0
- prompts/view_links_planner.py +35 -0
- prompts/view_planner.py +89 -0
- prompts/views.py +263 -0
prompts/constants.py
ADDED
|
@@ -0,0 +1,1467 @@
|
|
|
1
|
+
from enum import StrEnum
|
|
2
|
+
|
|
3
|
+
CORE_EXPRESSIONS = {
|
|
4
|
+
"ABS": {
|
|
5
|
+
"name": "ABS()",
|
|
6
|
+
"description": "Arithmetic absolute value. If the value is a string, it will be converted to a number.",
|
|
7
|
+
"examples": [
|
|
8
|
+
{"syntax": 'ABS("-3.14")', "returns": 3.14},
|
|
9
|
+
{"syntax": "ABS(-2.718)", "returns": 2.718},
|
|
10
|
+
],
|
|
11
|
+
"returns": "Number",
|
|
12
|
+
},
|
|
13
|
+
"ACCOUNTID": {
|
|
14
|
+
"name": "ACCOUNTID()",
|
|
15
|
+
"description": "The current account ID",
|
|
16
|
+
"examples": [{"syntax": "ACCOUNTID()", "returns": "UUID"}],
|
|
17
|
+
"returns": "UUID",
|
|
18
|
+
},
|
|
19
|
+
"ADDRESS_TO_LATLNG": {
|
|
20
|
+
"name": "ADDRESS_TO_LATLNG()",
|
|
21
|
+
"description": "Converts an address to latitude and longitude. A point is a tuple with 2 values: latitude and longitude.",
|
|
22
|
+
"examples": [
|
|
23
|
+
{
|
|
24
|
+
"syntax": 'ADDRESS_TO_LATLNG("1600 Amphitheatre Parkway, Mountain View, CA 94043")',
|
|
25
|
+
"returns": "(37.4223878,-122.0841877)",
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"returns": "Point",
|
|
29
|
+
},
|
|
30
|
+
"AND": {
|
|
31
|
+
"name": "AND()",
|
|
32
|
+
"description": "Returns a YesNo expression",
|
|
33
|
+
"examples": [
|
|
34
|
+
{"syntax": "AND(TRUE, TRUE)", "returns": "Yes"},
|
|
35
|
+
{"syntax": "AND(TRUE, FALSE)", "returns": "No"},
|
|
36
|
+
{"syntax": "AND(FALSE, TRUE)", "returns": "No"},
|
|
37
|
+
{"syntax": "AND(FALSE, FALSE)", "returns": "No"},
|
|
38
|
+
],
|
|
39
|
+
"returns": "YesNo",
|
|
40
|
+
},
|
|
41
|
+
"ANY": {
|
|
42
|
+
"name": "ANY()",
|
|
43
|
+
"description": "Returns a random choice from a list",
|
|
44
|
+
"examples": [
|
|
45
|
+
{
|
|
46
|
+
"syntax": 'ANY(["a", "b", "c"])',
|
|
47
|
+
"returns": "a random value - a, b, or c",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"syntax": "ANY([1, 2, 3])",
|
|
51
|
+
"returns": "a random value - 1, 2, or 3",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
"returns": "Any",
|
|
55
|
+
},
|
|
56
|
+
"AVERAGE": {
|
|
57
|
+
"name": "AVERAGE()",
|
|
58
|
+
"description": "Returns mean of a list",
|
|
59
|
+
"examples": [
|
|
60
|
+
{"syntax": "AVERAGE([1, 2, 3])", "returns": 2},
|
|
61
|
+
{"syntax": "AVERAGE([3.14, 2.71, 1.41])", "returns": 2.42},
|
|
62
|
+
],
|
|
63
|
+
"returns": "Number",
|
|
64
|
+
"aliases": ["MEAN", "AVG"],
|
|
65
|
+
},
|
|
66
|
+
"BASE_URL": {
|
|
67
|
+
"name": "BASE_URL()",
|
|
68
|
+
"description": "Returns the base URL of the app",
|
|
69
|
+
"examples": [
|
|
70
|
+
{"syntax": "BASE_URL()", "returns": "https://www.appsheet.com/"}
|
|
71
|
+
],
|
|
72
|
+
"returns": "Text",
|
|
73
|
+
},
|
|
74
|
+
"BOOLEAN": {
|
|
75
|
+
"name": "BOOLEAN() or BOOL()",
|
|
76
|
+
"description": "Converts a value to a boolean",
|
|
77
|
+
"examples": [
|
|
78
|
+
{"syntax": 'BOOLEAN("true")', "returns": "Yes"},
|
|
79
|
+
{"syntax": 'BOOLEAN("false")', "returns": "No"},
|
|
80
|
+
{"syntax": "BOOLEAN(1)", "returns": "Yes"},
|
|
81
|
+
{"syntax": "BOOLEAN(0)", "returns": "No"},
|
|
82
|
+
],
|
|
83
|
+
"returns": "YesNo",
|
|
84
|
+
"aliases": ["BOOL"],
|
|
85
|
+
},
|
|
86
|
+
"CEILING": {
|
|
87
|
+
"name": "CEILING()",
|
|
88
|
+
"description": "Returns the smallest integer greater than or equal to a number",
|
|
89
|
+
"examples": [
|
|
90
|
+
{"syntax": "CEILING(3.14)", "returns": 4},
|
|
91
|
+
{"syntax": "CEILING(-3.14)", "returns": -3},
|
|
92
|
+
],
|
|
93
|
+
"returns": "Number",
|
|
94
|
+
},
|
|
95
|
+
"CONCAT": {
|
|
96
|
+
"name": "CONCAT()",
|
|
97
|
+
"description": "Concatenates two or more text strings",
|
|
98
|
+
"examples": [
|
|
99
|
+
{
|
|
100
|
+
"syntax": 'CONCAT("Hello", " ", "World")',
|
|
101
|
+
"returns": "Hello World",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"syntax": 'CONCAT("Hello", " ", "World", "!")',
|
|
105
|
+
"returns": "Hello World!",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
"returns": "Text",
|
|
109
|
+
},
|
|
110
|
+
"CONCAT_WS": {
|
|
111
|
+
"name": "CONCAT_WS()",
|
|
112
|
+
"description": "Concatenates two or more text strings with a separator",
|
|
113
|
+
"examples": [
|
|
114
|
+
{
|
|
115
|
+
"syntax": 'CONCAT_WS(" ", "Hello", "World")',
|
|
116
|
+
"returns": "Hello World",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"syntax": 'CONCAT_WS(" ", "Hello", "World", "!")',
|
|
120
|
+
"returns": "Hello World !",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
"returns": "Text",
|
|
124
|
+
},
|
|
125
|
+
"CONCATENATE": {
|
|
126
|
+
"name": "CONCATENATE()",
|
|
127
|
+
"description": "Concatenates two or more text strings",
|
|
128
|
+
"examples": [
|
|
129
|
+
{
|
|
130
|
+
"syntax": 'CONCATENATE("Hello", " ", "World")',
|
|
131
|
+
"returns": "Hello World",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"syntax": 'CONCATENATE("Hello", " ", "World", "!")',
|
|
135
|
+
"returns": "Hello World!",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
"returns": "Text",
|
|
139
|
+
},
|
|
140
|
+
"CONTAINS": {
|
|
141
|
+
"name": "CONTAINS()",
|
|
142
|
+
"description": "Returns a YesNo expression",
|
|
143
|
+
"examples": [
|
|
144
|
+
{"syntax": 'CONTAINS("Hello World", "World")', "returns": "Yes"},
|
|
145
|
+
{"syntax": 'CONTAINS("Hello World", "World!")', "returns": "No"},
|
|
146
|
+
],
|
|
147
|
+
"returns": "YesNo",
|
|
148
|
+
},
|
|
149
|
+
"CONTEXT": {
|
|
150
|
+
"name": "CONTEXT()",
|
|
151
|
+
"description": "Returns current context",
|
|
152
|
+
"examples": [
|
|
153
|
+
{"syntax": "CONTEXT('application')", "returns": "my-app"},
|
|
154
|
+
{"syntax": "CONTEXT('solution')", "returns": "my-solution"},
|
|
155
|
+
{"syntax": "CONTEXT('page')", "returns": "my-page"},
|
|
156
|
+
{"syntax": "CONTEXT('view')", "returns": "my-view"},
|
|
157
|
+
{"syntax": "CONTEXT('view-type')", "returns": "list-view"},
|
|
158
|
+
{"syntax": "CONTEXT('object')", "returns": "my-object"},
|
|
159
|
+
{"syntax": "CONTEXT('Bot')", "returns": "False"},
|
|
160
|
+
{
|
|
161
|
+
"syntax": "CONTEXT('Browser')",
|
|
162
|
+
"returns": "Chrome/Safari/Firefox",
|
|
163
|
+
},
|
|
164
|
+
{"syntax": "CONTEXT('DeviceType')", "returns": "Mobile/Web"},
|
|
165
|
+
{
|
|
166
|
+
"syntax": "CONTEXT('Device')",
|
|
167
|
+
"returns": "Uid of the device from cookie",
|
|
168
|
+
},
|
|
169
|
+
{"syntax": "CONTEXT('OS')", "returns": "iOS/Linux/Windows"},
|
|
170
|
+
],
|
|
171
|
+
"returns": "Text",
|
|
172
|
+
},
|
|
173
|
+
"COUNT": {
|
|
174
|
+
"name": "COUNT()",
|
|
175
|
+
"description": "Returns the number of items in an iterable. If the argument is a table name, it will return the number of rows.",
|
|
176
|
+
"examples": [
|
|
177
|
+
{"syntax": "COUNT([1, 2, 3])", "returns": 3},
|
|
178
|
+
{"syntax": "COUNT([3.14, 2.71, 1.41])", "returns": 3},
|
|
179
|
+
{"syntax": 'COUNT_DB("table_name")', "returns": "Number"},
|
|
180
|
+
],
|
|
181
|
+
"returns": "Number",
|
|
182
|
+
},
|
|
183
|
+
"CURRENTAPP": {
|
|
184
|
+
"name": "CURRENTAPP()",
|
|
185
|
+
"description": "The ID of the active application",
|
|
186
|
+
"examples": [{"syntax": "CURRENTAPP()", "returns": "UUID"}],
|
|
187
|
+
"returns": "UUID",
|
|
188
|
+
},
|
|
189
|
+
"DATE": {
|
|
190
|
+
"name": "DATE()",
|
|
191
|
+
"description": "Returns a date from a string",
|
|
192
|
+
"examples": [
|
|
193
|
+
{"syntax": 'DATE("2020-01-01")', "returns": "2020-01-01"},
|
|
194
|
+
{"syntax": 'DATE("2020-01-01 00:00:00")', "returns": "2020-01-01"},
|
|
195
|
+
],
|
|
196
|
+
"returns": "Date",
|
|
197
|
+
},
|
|
198
|
+
"DATEADD": {
|
|
199
|
+
"name": "DATEADD()",
|
|
200
|
+
"description": "Adds a number of days",
|
|
201
|
+
"examples": [
|
|
202
|
+
{"syntax": 'DATEADD("2020-01-01", 1)', "returns": "2020-01-02"},
|
|
203
|
+
{"syntax": 'DATEADD("2020-01-01", -1)', "returns": "2019-12-31"},
|
|
204
|
+
],
|
|
205
|
+
"returns": "Date",
|
|
206
|
+
},
|
|
207
|
+
"DATEDIFF": {
|
|
208
|
+
"name": "DATEDIFF()",
|
|
209
|
+
"description": 'Returns the number of days between two dates. DATEDIFF("2020-01-01", "2020-12-31") returns 365',
|
|
210
|
+
"examples": [
|
|
211
|
+
{"syntax": 'DATEDIFF("2020-01-01", "2020-12-31")', "returns": 365},
|
|
212
|
+
{"syntax": 'DATEDIFF("2020-12-31", "2020-01-01")', "returns": -365},
|
|
213
|
+
{"syntax": "DATEDIFF(DATE('[[end_date]]'), DATE('[[start_date]]'))", "returns": "Number that represents the difference in days between the end date and start date"},
|
|
214
|
+
],
|
|
215
|
+
"returns": "Number",
|
|
216
|
+
},
|
|
217
|
+
"DAY": {
|
|
218
|
+
"name": "DAY()",
|
|
219
|
+
"description": "Returns the day of the month",
|
|
220
|
+
"examples": [
|
|
221
|
+
{"syntax": 'DAY("2020-01-01")', "returns": 1},
|
|
222
|
+
{"syntax": 'DAY("2020-12-31")', "returns": 31},
|
|
223
|
+
],
|
|
224
|
+
"returns": "Number",
|
|
225
|
+
},
|
|
226
|
+
"DLP_SSN": {
|
|
227
|
+
"name": "DLP_SSN()",
|
|
228
|
+
"description": "Returns a de-identified SSN",
|
|
229
|
+
"examples": [
|
|
230
|
+
{"syntax": 'DLP_SSN("123-45-6789")', "returns": "123-XX-XXXX"}
|
|
231
|
+
],
|
|
232
|
+
"returns": "Text",
|
|
233
|
+
},
|
|
234
|
+
"ENCODEURL": {
|
|
235
|
+
"name": "ENCODEURL()",
|
|
236
|
+
"description": "Returns a URL encoded string",
|
|
237
|
+
"examples": [
|
|
238
|
+
{
|
|
239
|
+
"syntax": 'ENCODEURL("https://www.google.com/search?q=hello world")',
|
|
240
|
+
"returns": "https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dhello+world",
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"returns": "Text",
|
|
244
|
+
},
|
|
245
|
+
"ENDSWITH": {
|
|
246
|
+
"name": "ENDSWITH()",
|
|
247
|
+
"description": "Returns a YesNo expression",
|
|
248
|
+
"examples": [
|
|
249
|
+
{"syntax": 'ENDSWITH("Hello World", "World")', "returns": "Yes"},
|
|
250
|
+
{"syntax": 'ENDSWITH("Hello World", "World!")', "returns": "No"},
|
|
251
|
+
],
|
|
252
|
+
"returns": "YesNo",
|
|
253
|
+
},
|
|
254
|
+
"EOMONTH": {
|
|
255
|
+
"name": "EOMONTH()",
|
|
256
|
+
"description": "Returns the last day of the month",
|
|
257
|
+
"examples": [
|
|
258
|
+
{"syntax": 'EOMONTH("2020-01-01")', "returns": "2020-01-31"},
|
|
259
|
+
{"syntax": 'EOMONTH("2020-12-31")', "returns": "2020-12-31"},
|
|
260
|
+
],
|
|
261
|
+
"returns": "Date",
|
|
262
|
+
},
|
|
263
|
+
"EOWEEK": {
|
|
264
|
+
"name": "EOWEEK()",
|
|
265
|
+
"description": "Returns the last day of the week",
|
|
266
|
+
"examples": [
|
|
267
|
+
{"syntax": 'EOWEEK("2020-01-01")', "returns": "2020-01-05"},
|
|
268
|
+
{"syntax": 'EOWEEK("2020-12-31")', "returns": "2021-01-02"},
|
|
269
|
+
],
|
|
270
|
+
"returns": "Date",
|
|
271
|
+
},
|
|
272
|
+
"EXISTS": {
|
|
273
|
+
"name": "EXISTS()",
|
|
274
|
+
"description": "Returns a YesNo expression",
|
|
275
|
+
"examples": [
|
|
276
|
+
{"syntax": 'EXISTS("users", "id", 1)', "returns": "Yes"},
|
|
277
|
+
{"syntax": 'EXISTS("users", "id", 999)', "returns": "No"},
|
|
278
|
+
],
|
|
279
|
+
"returns": "YesNo",
|
|
280
|
+
},
|
|
281
|
+
"EXTRACTDATES": {
|
|
282
|
+
"name": "EXTRACTDATES()",
|
|
283
|
+
"description": "Returns a list of dates from a string",
|
|
284
|
+
"examples": [
|
|
285
|
+
{
|
|
286
|
+
"syntax": 'EXTRACTDATES("2020-01-01, 2020-01-03")',
|
|
287
|
+
"returns": ["2020-01-01", "2020-01-03"],
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"returns": "List",
|
|
291
|
+
},
|
|
292
|
+
"EXTRACTEMAILS": {
|
|
293
|
+
"name": "EXTRACTEMAILS()",
|
|
294
|
+
"description": "Returns a list of emails from a string",
|
|
295
|
+
"examples": [
|
|
296
|
+
{
|
|
297
|
+
"syntax": 'EXTRACTEMAILS("admin@example.com hello@example.com")',
|
|
298
|
+
"returns": ["admin.example.com", "hello@example.com"],
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"returns": "List",
|
|
302
|
+
},
|
|
303
|
+
"EXTRACTNUMBERS": {
|
|
304
|
+
"name": "EXTRACTNUMBERS()",
|
|
305
|
+
"description": "Returns a list of numbers from a string",
|
|
306
|
+
"examples": [
|
|
307
|
+
{"syntax": 'EXTRACTNUMBERS("1 2 3")', "returns": [1, 2, 3]}
|
|
308
|
+
],
|
|
309
|
+
"returns": "List",
|
|
310
|
+
},
|
|
311
|
+
"EXTRACTPHONES": {
|
|
312
|
+
"name": "EXTRACTPHONES()",
|
|
313
|
+
"description": "Returns a list of phone numbers from a string",
|
|
314
|
+
"examples": [
|
|
315
|
+
{
|
|
316
|
+
"syntax": 'EXTRACTPHONES("123-456-7890")',
|
|
317
|
+
"returns": ["123-456-7890"],
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"returns": "List",
|
|
321
|
+
},
|
|
322
|
+
"EXTRACTURLS": {
|
|
323
|
+
"name": "EXTRACTURLS()",
|
|
324
|
+
"description": "Returns a list of URLs from a string",
|
|
325
|
+
"examples": [
|
|
326
|
+
{
|
|
327
|
+
"syntax": 'EXTRACTURLS("https://www.google.com")',
|
|
328
|
+
"returns": ["https://www.google.com"],
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"syntax": 'EXTRACTURLS("https://www.google.com https://www.example.com")',
|
|
332
|
+
"returns": [
|
|
333
|
+
"https://www.google.com",
|
|
334
|
+
"https://www.example.com",
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
],
|
|
338
|
+
"returns": "List",
|
|
339
|
+
},
|
|
340
|
+
"FIND": {
|
|
341
|
+
"name": "FIND()",
|
|
342
|
+
"description": "Returns the position of a substring. Returns -1 if not found.",
|
|
343
|
+
"examples": [
|
|
344
|
+
{"syntax": 'FIND("needle", "needle in haystack")', "returns": 0},
|
|
345
|
+
{"syntax": 'FIND("rock", "in haystack")', "returns": -1},
|
|
346
|
+
],
|
|
347
|
+
"returns": "Number",
|
|
348
|
+
},
|
|
349
|
+
"FLOAT": {
|
|
350
|
+
"name": "FLOAT()",
|
|
351
|
+
"description": "Converts a value to float",
|
|
352
|
+
"examples": [
|
|
353
|
+
{"syntax": 'FLOAT("3.14")', "returns": 3.14},
|
|
354
|
+
{"syntax": "FLOAT(3)", "returns": 3.0},
|
|
355
|
+
],
|
|
356
|
+
"returns": "Number",
|
|
357
|
+
},
|
|
358
|
+
"FLOOR": {
|
|
359
|
+
"name": "FLOOR()",
|
|
360
|
+
"description": "Returns the largest integer less than or equal to a number",
|
|
361
|
+
"examples": [
|
|
362
|
+
{"syntax": "FLOOR(1.1)", "returns": 1},
|
|
363
|
+
{"syntax": "FLOOR(1.9)", "returns": 1},
|
|
364
|
+
],
|
|
365
|
+
"returns": "Number",
|
|
366
|
+
},
|
|
367
|
+
"FORMAT_DATETIME": {
|
|
368
|
+
"name": "FORMAT_DATETIME() ",
|
|
369
|
+
"description": "FORMAT_DATETIME(value, format,default_timezone[optional],ignore_timezone[optional]) Returns Datetime based on the input input",
|
|
370
|
+
"examples": [
|
|
371
|
+
{
|
|
372
|
+
"syntax": 'FORMAT_DATETIME(Sat, 15 Jun 2024 00:00:00 GMT,"%Y-%m-%d %H:%M:%S")',
|
|
373
|
+
"returns": "2024-05-20 05:07:51",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"syntax": 'FORMAT_DATETIME(2024-06-13 12:28:47,"%Y-%m-%d")',
|
|
377
|
+
"returns": "2024-06-15",
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"syntax": 'FORMAT_DATETIME(2024-06-13 12:28:47,"%d-%m-%Y %H:%M:%S")',
|
|
381
|
+
"returns": "20-05-2024 05:07:51",
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
"returns": "Text",
|
|
385
|
+
},
|
|
386
|
+
"FORMAT_NUMBER": {
|
|
387
|
+
"name": "FORMAT_NUMBER()",
|
|
388
|
+
"description": "Returns a formatted number",
|
|
389
|
+
"examples": [
|
|
390
|
+
{
|
|
391
|
+
"syntax": 'FORMAT_NUMBER("32", "{:08.0f}")',
|
|
392
|
+
"returns": "00000032",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"syntax": 'FORMAT_NUMBER(1234567.89, "{:10.2f}")',
|
|
396
|
+
"returns": "1,234,567.89",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"syntax": 'FORMAT_NUMBER(1234567.89, "{:10.2e}")',
|
|
400
|
+
"returns": "1.23e+06",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"syntax": 'FORMAT_NUMBER(1234567.89, "{:10.2g}")',
|
|
404
|
+
"returns": "1.2e+06",
|
|
405
|
+
},
|
|
406
|
+
{"syntax": '=FORMAT_NUMBER(.99, "{:7.2%}")', "returns": " 99.00%"},
|
|
407
|
+
],
|
|
408
|
+
"returns": "Text",
|
|
409
|
+
},
|
|
410
|
+
"FORMAT_TIME": {
|
|
411
|
+
"name": "FORMAT_TIME()",
|
|
412
|
+
"description": "FORMAT_TIME(Value,Military Time, Ignore Seconds, Default timezone('optional)) Returns Time based on the input ",
|
|
413
|
+
"examples": [
|
|
414
|
+
{
|
|
415
|
+
"syntax": "FORMAT_TIME('05:44:18',True,True,'America/Denver')",
|
|
416
|
+
"returns": "05:44",
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"syntax": 'FORMAT_TIME("05:44:18 AM",False,True,"Pacific/Saipan")", "returns": "03:44 PM"}',
|
|
420
|
+
"returns": "1. AppSheet 2. Bubble",
|
|
421
|
+
},
|
|
422
|
+
],
|
|
423
|
+
"returns": "Text",
|
|
424
|
+
},
|
|
425
|
+
"GENERATE_CHILD_RECORDS": {
|
|
426
|
+
"name": "GENERATE_CHILD_RECORDS()",
|
|
427
|
+
"description": "GENERATE_CHILD_RECORDS(table, record ID, prompt, number of records, enhance prompt) Generates child records based on the input prompt and table. The number of records and optimise prompt is optional.",
|
|
428
|
+
"examples": [
|
|
429
|
+
{
|
|
430
|
+
"syntax": 'GENERATE_CHILD_RECORDS("superheros", "72570e47-2dc6-477d-97e7-c7b410ddc487" ,"Add details for 3 superheroes from Marvel", 3, True)',
|
|
431
|
+
"returns": "List of record IDs",
|
|
432
|
+
}
|
|
433
|
+
],
|
|
434
|
+
"returns": "List",
|
|
435
|
+
},
|
|
436
|
+
"GENERATE_IMAGE": {
|
|
437
|
+
"name": "GENERATE_IMAGE()",
|
|
438
|
+
"description": "Returns a generated Image based on the input prompt",
|
|
439
|
+
"examples": [
|
|
440
|
+
{
|
|
441
|
+
"syntax": 'GENERATE_IMAGE("Cute Dog playing football ","512x512",1)',
|
|
442
|
+
"returns": "Image",
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"returns": "Image",
|
|
446
|
+
},
|
|
447
|
+
"GENERATE_RECORDS": {
|
|
448
|
+
"name": "GENERATE_RECORDS()",
|
|
449
|
+
"description": "GENERATE_RECORDS(table, prompt, number of records, enhance prompt) Generates records based on the input prompt and table. The number of records and optimise prompt is optional.",
|
|
450
|
+
"examples": [
|
|
451
|
+
{
|
|
452
|
+
"syntax": 'GENERATE_RECORDS("superheros", "Add details for 3 superheroes from Marvel", 3, True)',
|
|
453
|
+
"returns": "List of record IDs",
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"returns": "List",
|
|
457
|
+
},
|
|
458
|
+
"GENERATE_SIGNED_URL": {
|
|
459
|
+
"name": "GENERATE_SIGNED_URL()",
|
|
460
|
+
"description": "GENERATE_SIGNED_URL(url, [expiration=3600]) Returns a signed URL from GCS.",
|
|
461
|
+
"examples": [
|
|
462
|
+
{
|
|
463
|
+
"syntax": 'GENERATE_SIGNED_URL("bucket-name/example.png")',
|
|
464
|
+
"returns": "signed URL",
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"returns": "Text",
|
|
468
|
+
},
|
|
469
|
+
"GENERATE_TEXT": {
|
|
470
|
+
"name": "GENERATE_TEXT()",
|
|
471
|
+
"description": "GENERATE_TEXT(prompt, context, datasource) Returns a generated text based on the input prompt. Pass a datastore path to be used for grounding.",
|
|
472
|
+
"examples": [
|
|
473
|
+
{
|
|
474
|
+
"syntax": 'GENERATE_TEXT("Give me a name for a blog website")',
|
|
475
|
+
"returns": "Blogger's Home",
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"syntax": 'GENERATE_TEXT("Give two names for a tech product, list them in numbers")',
|
|
479
|
+
"returns": "1. AppSheet 2. Bubble",
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
"returns": "Text",
|
|
483
|
+
},
|
|
484
|
+
"GENERATE_TEXT_WITH_IMAGE": {
|
|
485
|
+
"name": "GENERATE_TEXT_WITH_IMAGE()",
|
|
486
|
+
"description": "Returns a generated text with an image prompt and text prompt. Pass a datastore path to be used for grounding.",
|
|
487
|
+
"examples": [
|
|
488
|
+
{
|
|
489
|
+
"syntax": 'GENERATE_TEXT_WITH_IMAGE("image.jpg","Describe the image")',
|
|
490
|
+
"returns": "Text",
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"returns": "Text",
|
|
494
|
+
},
|
|
495
|
+
"GET": {
|
|
496
|
+
"name": "GET()",
|
|
497
|
+
"description": "Returns a value from a dictionary or a list",
|
|
498
|
+
"examples": [{"syntax": "GET([1,7,8],0)", "returns": "1"}],
|
|
499
|
+
"returns": "Any",
|
|
500
|
+
},
|
|
501
|
+
"HAS_PERMISSION": {
|
|
502
|
+
"name": "HAS_PERMISSION()",
|
|
503
|
+
"description": "Returns a YesNo expression",
|
|
504
|
+
"examples": [
|
|
505
|
+
{"syntax": 'HAS_PERMISSION("send_mail")', "returns": "Yes"},
|
|
506
|
+
{"syntax": 'HAS_PERMISSION("cases.create")', "returns": "No"},
|
|
507
|
+
{
|
|
508
|
+
"syntax": 'HAS_PERMISSION("cases.case_number.read")',
|
|
509
|
+
"returns": "No",
|
|
510
|
+
},
|
|
511
|
+
],
|
|
512
|
+
"returns": "YesNo",
|
|
513
|
+
},
|
|
514
|
+
"HOUR": {
|
|
515
|
+
"name": "HOUR()",
|
|
516
|
+
"description": "Returns the hour",
|
|
517
|
+
"examples": [
|
|
518
|
+
{"syntax": 'HOUR("2020-01-01 12:00:00")', "returns": 12},
|
|
519
|
+
{"syntax": 'HOUR("2020-01-01 00:00:00")', "returns": 0},
|
|
520
|
+
],
|
|
521
|
+
"returns": "Number",
|
|
522
|
+
},
|
|
523
|
+
"IF": {
|
|
524
|
+
"name": "IF()",
|
|
525
|
+
"description": "Returns one value if a condition is true, and another value if it is false",
|
|
526
|
+
"examples": [
|
|
527
|
+
{"syntax": 'IF(True, "Yes", "No")', "returns": "Yes"},
|
|
528
|
+
{"syntax": 'IF(False, "Yes", "No")', "returns": "No"},
|
|
529
|
+
],
|
|
530
|
+
"returns": "Any",
|
|
531
|
+
},
|
|
532
|
+
"IFS": {
|
|
533
|
+
"name": "IFS()",
|
|
534
|
+
"description": "Returns one value if a condition is true, and another value if it is false for multiple conditions",
|
|
535
|
+
"examples": [
|
|
536
|
+
{"syntax": 'IFS(True, "Yes", False, "No")', "returns": "Yes"},
|
|
537
|
+
{"syntax": 'IFS(FALSE, "Yes", TRUE, "No")', "returns": "No"},
|
|
538
|
+
],
|
|
539
|
+
"returns": "Any",
|
|
540
|
+
},
|
|
541
|
+
"IMAGE": {
|
|
542
|
+
"name": "IMAGE()",
|
|
543
|
+
"description": "IMAGE(url). Returns a signed URL from GCS.",
|
|
544
|
+
"examples": [
|
|
545
|
+
{
|
|
546
|
+
"syntax": 'IMAGE("bucket-name/example.png")',
|
|
547
|
+
"returns": "signed URL",
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
"returns": "Text",
|
|
551
|
+
},
|
|
552
|
+
"IN": {
|
|
553
|
+
"name": "IN()",
|
|
554
|
+
"description": "Returns a YesNo expression",
|
|
555
|
+
"examples": [
|
|
556
|
+
{"syntax": 'IN("a", ["a", "b", "c"])', "returns": "Yes"},
|
|
557
|
+
{"syntax": 'IN("d", ["a", "b", "c"])', "returns": "No"},
|
|
558
|
+
],
|
|
559
|
+
"returns": "YesNo",
|
|
560
|
+
},
|
|
561
|
+
"INDEX": {
|
|
562
|
+
"name": "INDEX()",
|
|
563
|
+
"description": "Returns the value at a specific position in a list. Indexes start at 1.",
|
|
564
|
+
"examples": [
|
|
565
|
+
{"syntax": 'INDEX(["a", "b", "c"], 1)', "returns": "a"},
|
|
566
|
+
{"syntax": 'INDEX(["a", "b", "c"], 2)', "returns": "b"},
|
|
567
|
+
{"syntax": 'INDEX(["a", "b", "c"], 3)', "returns": "c"},
|
|
568
|
+
{"syntax": 'INDEX(["a", "b", "c"], 4)', "returns": ""},
|
|
569
|
+
],
|
|
570
|
+
"returns": "Number",
|
|
571
|
+
},
|
|
572
|
+
"INT": {
|
|
573
|
+
"name": "INT()",
|
|
574
|
+
"description": "Converts a value to an integer",
|
|
575
|
+
"examples": [
|
|
576
|
+
{"syntax": 'INT("3")', "returns": 3},
|
|
577
|
+
{"syntax": "INT(2.718)", "returns": 2},
|
|
578
|
+
],
|
|
579
|
+
"returns": "Number",
|
|
580
|
+
},
|
|
581
|
+
"ISBLANK": {
|
|
582
|
+
"name": "ISBLANK()",
|
|
583
|
+
"description": "Returns a YesNo expression",
|
|
584
|
+
"examples": [
|
|
585
|
+
{"syntax": 'ISBLANK("")', "returns": "Yes"},
|
|
586
|
+
{"syntax": 'ISBLANK("a")', "returns": "No"},
|
|
587
|
+
],
|
|
588
|
+
"returns": "YesNo",
|
|
589
|
+
},
|
|
590
|
+
"ISDATE": {
|
|
591
|
+
"name": "ISDATE()",
|
|
592
|
+
"description": "Returns a YesNo expression",
|
|
593
|
+
"examples": [
|
|
594
|
+
{"syntax": 'ISDATE("2020-01-01")', "returns": "Yes"},
|
|
595
|
+
{"syntax": 'ISDATE("a")', "returns": "No"},
|
|
596
|
+
],
|
|
597
|
+
"returns": "YesNo",
|
|
598
|
+
},
|
|
599
|
+
"ISNOTBLANK": {
|
|
600
|
+
"name": "ISNOTBLANK()",
|
|
601
|
+
"description": "Returns a YesNo expression",
|
|
602
|
+
"examples": [
|
|
603
|
+
{"syntax": 'ISNOTBLANK("")', "returns": "No"},
|
|
604
|
+
{"syntax": 'ISNOTBLANK("a")', "returns": "Yes"},
|
|
605
|
+
],
|
|
606
|
+
"returns": "YesNo",
|
|
607
|
+
},
|
|
608
|
+
"ISNULL": {
|
|
609
|
+
"name": "ISNULL()",
|
|
610
|
+
"description": "Returns a YesNo expression, if the value is null or None",
|
|
611
|
+
"examples": [
|
|
612
|
+
{"syntax": "ISNULL(1)", "returns": "No"},
|
|
613
|
+
{"syntax": "ISNULL(0)", "returns": "No"},
|
|
614
|
+
{"syntax": "ISNULL(None)", "returns": "Yes"},
|
|
615
|
+
],
|
|
616
|
+
"returns": "YesNo",
|
|
617
|
+
},
|
|
618
|
+
"ISNUMBER": {
|
|
619
|
+
"name": "ISNUMBER()",
|
|
620
|
+
"description": "Returns a YesNo expression",
|
|
621
|
+
"examples": [
|
|
622
|
+
{"syntax": "ISNUMBER(1)", "returns": "Yes"},
|
|
623
|
+
{"syntax": 'ISNUMBER("a")', "returns": "No"},
|
|
624
|
+
],
|
|
625
|
+
"returns": "YesNo",
|
|
626
|
+
},
|
|
627
|
+
"KG_SEARCH": {
|
|
628
|
+
"name": "KG_SEARCH()",
|
|
629
|
+
"description": "KG_SEARCH(query, [limit=10]). Returns a list of entities from Google's Knowledge Graph.",
|
|
630
|
+
"examples": [
|
|
631
|
+
{
|
|
632
|
+
"syntax": 'KG_SEARCH("Barack Obama")',
|
|
633
|
+
"returns": '[{"name": "Barack Obama", "type": "Person", "description": "44th U.S. President", "url": "https://en.wikipedia.org/wiki/Barack_Obama"}]',
|
|
634
|
+
}
|
|
635
|
+
],
|
|
636
|
+
"returns": "JSON",
|
|
637
|
+
},
|
|
638
|
+
"LATLNG_TO_ADDRESS": {
|
|
639
|
+
"name": "LATLNG_TO_ADDRESS()",
|
|
640
|
+
"description": "LATLNG_TO_ADDRESS(latitude, longitude). Returns an address from a latitude and longitude.",
|
|
641
|
+
"examples": [
|
|
642
|
+
{
|
|
643
|
+
"syntax": "LATLNG_TO_ADDRESS(40.714224, -73.961452)",
|
|
644
|
+
"returns": "277 Bedford Ave, Brooklyn, NY 11211, USA",
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
"returns": "Text",
|
|
648
|
+
},
|
|
649
|
+
"LEFT": {
|
|
650
|
+
"name": "LEFT()",
|
|
651
|
+
"description": "Returns the leftmost characters in a text string",
|
|
652
|
+
"examples": [
|
|
653
|
+
{"syntax": 'LEFT("abc", 1)', "returns": "a"},
|
|
654
|
+
{"syntax": 'LEFT("abc", 2)', "returns": "ab"},
|
|
655
|
+
{"syntax": 'LEFT("abc", 3)', "returns": "abc"},
|
|
656
|
+
{"syntax": 'LEFT("abc", 4)', "returns": "abc"},
|
|
657
|
+
],
|
|
658
|
+
"returns": "Text",
|
|
659
|
+
},
|
|
660
|
+
"LEN": {
|
|
661
|
+
"name": "LEN()",
|
|
662
|
+
"acts_on": "field",
|
|
663
|
+
"description": "The string length",
|
|
664
|
+
"examples": [
|
|
665
|
+
{"syntax": 'LEN("abc")', "returns": 3},
|
|
666
|
+
{"syntax": 'LEN("a")', "returns": 1},
|
|
667
|
+
{"syntax": 'LEN("")', "returns": 0},
|
|
668
|
+
],
|
|
669
|
+
"returns": "Number",
|
|
670
|
+
},
|
|
671
|
+
"LIST": {
|
|
672
|
+
"name": "LIST()",
|
|
673
|
+
"description": "Returns a list of values",
|
|
674
|
+
"examples": [
|
|
675
|
+
{"syntax": 'LIST("a", "b", "c")', "returns": ["a", "b", "c"]},
|
|
676
|
+
{"syntax": "LIST(1, 2, 3)", "returns": [1, 2, 3]},
|
|
677
|
+
],
|
|
678
|
+
"returns": "List",
|
|
679
|
+
},
|
|
680
|
+
"LOOKUP": {
|
|
681
|
+
"name": "LOOKUP()",
|
|
682
|
+
"description": "LOOKUP(value, object, field, return-column). Returns a single value from a table if found.",
|
|
683
|
+
"examples": [
|
|
684
|
+
{
|
|
685
|
+
"syntax": 'LOOKUP("admin@example.com", "users", "email", "name")',
|
|
686
|
+
"returns": "List",
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"returns": "Any",
|
|
690
|
+
},
|
|
691
|
+
"LOWER": {
|
|
692
|
+
"name": "LOWER()",
|
|
693
|
+
"description": "Lowercase a string",
|
|
694
|
+
"examples": [
|
|
695
|
+
{"syntax": 'LOWER("ABC")', "returns": "abc"},
|
|
696
|
+
{"syntax": 'LOWER("aBc")', "returns": "abc"},
|
|
697
|
+
],
|
|
698
|
+
"returns": "Text",
|
|
699
|
+
},
|
|
700
|
+
"MARKDOWN_TO_HTML": {
|
|
701
|
+
"name": "MARKDOWN_TO_HTML()",
|
|
702
|
+
"description": "Converts Markdown to HTML",
|
|
703
|
+
"examples": [
|
|
704
|
+
{
|
|
705
|
+
"syntax": 'MARKDOWN_TO_HTML("# Hello")',
|
|
706
|
+
"returns": "<h1>Hello</h1>",
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"syntax": 'MARKDOWN_TO_HTML("## Hello")',
|
|
710
|
+
"returns": "<h2>Hello</h2>",
|
|
711
|
+
},
|
|
712
|
+
],
|
|
713
|
+
"returns": "Text",
|
|
714
|
+
},
|
|
715
|
+
"MAX": {
|
|
716
|
+
"name": "MAX()",
|
|
717
|
+
"description": "Returns the largest value in a list of numbers",
|
|
718
|
+
"examples": [
|
|
719
|
+
{"syntax": "MAX([1, 2, 3])", "returns": 3},
|
|
720
|
+
{"syntax": "MAX([3, 2, 1])", "returns": 3},
|
|
721
|
+
{"syntax": "MAX([3.14, 2.71])", "returns": 3.14},
|
|
722
|
+
],
|
|
723
|
+
"returns": "Number",
|
|
724
|
+
},
|
|
725
|
+
"MAXROW": {
|
|
726
|
+
"name": "MAXROW()",
|
|
727
|
+
"description": "Returns the largest row number in a table",
|
|
728
|
+
"examples": [{"syntax": 'MAXROW("table", "field")', "returns": 3}],
|
|
729
|
+
"returns": "Number",
|
|
730
|
+
},
|
|
731
|
+
"MID": {
|
|
732
|
+
"name": "MID(arg, start, length)",
|
|
733
|
+
"description": "Returns a specific number of characters from a text string starting at the position you specify.",
|
|
734
|
+
"examples": [
|
|
735
|
+
{"syntax": 'MID("abc", 1, 1)', "returns": "a"},
|
|
736
|
+
{"syntax": 'MID("abc", 1, 2)', "returns": "ab"},
|
|
737
|
+
{"syntax": 'MID("abc", 1, 3)', "returns": "abc"},
|
|
738
|
+
{"syntax": 'MID("abc", 1, 4)', "returns": "abc"},
|
|
739
|
+
],
|
|
740
|
+
"returns": "Text",
|
|
741
|
+
},
|
|
742
|
+
"MIN": {
|
|
743
|
+
"name": "MIN()",
|
|
744
|
+
"description": "Returns the smallest value in a list of numbers",
|
|
745
|
+
"examples": [
|
|
746
|
+
{"syntax": "MIN([1, 2, 3])", "returns": 1},
|
|
747
|
+
{"syntax": "MIN([3, 2, 1])", "returns": 1},
|
|
748
|
+
{"syntax": "MIN([3.14, 2.71])", "returns": 2.71},
|
|
749
|
+
],
|
|
750
|
+
"returns": "Number",
|
|
751
|
+
},
|
|
752
|
+
"MINROW": {
|
|
753
|
+
"name": "MINROW()",
|
|
754
|
+
"description": "Returns the smallest row number in a table",
|
|
755
|
+
"examples": [{"syntax": 'MINROW("table", "field")', "returns": 1}],
|
|
756
|
+
"returns": "Number",
|
|
757
|
+
},
|
|
758
|
+
"MINUTE": {
|
|
759
|
+
"name": "MINUTE()",
|
|
760
|
+
"description": "Returns the minute",
|
|
761
|
+
"examples": [
|
|
762
|
+
{"syntax": 'MINUTE("2020-01-01 12:34:56")', "returns": 34}
|
|
763
|
+
],
|
|
764
|
+
"returns": "Number",
|
|
765
|
+
},
|
|
766
|
+
"MONTH": {
|
|
767
|
+
"name": "MONTH()",
|
|
768
|
+
"description": "Returns the month",
|
|
769
|
+
"examples": [{"syntax": 'MONTH("2020-01-01 12:34:56")', "returns": 1}],
|
|
770
|
+
"returns": "Number",
|
|
771
|
+
},
|
|
772
|
+
"NLP_SENTIMENT": {
|
|
773
|
+
"name": "NLP_SENTIMENT()",
|
|
774
|
+
"description": "NLP_SENTIMENT(text). Returns a sentiment score from -1 to 1.",
|
|
775
|
+
"examples": [
|
|
776
|
+
{"syntax": 'NLP_SENTIMENT("I love this product")', "returns": 0.9},
|
|
777
|
+
{"syntax": 'NLP_SENTIMENT("I hate this product")', "returns": -0.9},
|
|
778
|
+
],
|
|
779
|
+
"returns": "Number",
|
|
780
|
+
},
|
|
781
|
+
"NOT": {
|
|
782
|
+
"name": "NOT()",
|
|
783
|
+
"description": "Returns a YesNo expression",
|
|
784
|
+
"examples": [
|
|
785
|
+
{"syntax": "NOT(True)", "returns": "No"},
|
|
786
|
+
{"syntax": "NOT(No)", "returns": "Yes"},
|
|
787
|
+
],
|
|
788
|
+
"returns": "YesNo",
|
|
789
|
+
},
|
|
790
|
+
"NOW": {
|
|
791
|
+
"name": "NOW(timezone='UTC')",
|
|
792
|
+
"description": "The datetime in %Y-%m-%d %H:%M:%S format. The timezone is optional with a default of UTC. Complete list of timezones can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
|
|
793
|
+
"examples": [
|
|
794
|
+
{"syntax": "NOW()", "returns": "2020-12-31 12:34:56"},
|
|
795
|
+
{
|
|
796
|
+
"syntax": 'NOW("America/Denver")',
|
|
797
|
+
"returns": "2020-12-31 07:34:56",
|
|
798
|
+
},
|
|
799
|
+
],
|
|
800
|
+
"returns": "DateTime",
|
|
801
|
+
},
|
|
802
|
+
"OR": {
|
|
803
|
+
"name": "OR()",
|
|
804
|
+
"description": "Returns a YesNo expression",
|
|
805
|
+
"examples": [
|
|
806
|
+
{"syntax": "OR(True, False)", "returns": "Yes"},
|
|
807
|
+
{"syntax": "OR(Yes, No)", "returns": "Yes"},
|
|
808
|
+
{"syntax": "OR(No, No)", "returns": "No"},
|
|
809
|
+
],
|
|
810
|
+
"returns": "YesNo",
|
|
811
|
+
},
|
|
812
|
+
"POWER": {
|
|
813
|
+
"name": "POWER()",
|
|
814
|
+
"description": "Returns the result of a number raised to a power",
|
|
815
|
+
"examples": [
|
|
816
|
+
{"syntax": "POWER(2, 3)", "returns": 8},
|
|
817
|
+
{"syntax": "POWER(3, 2)", "returns": 9},
|
|
818
|
+
{"syntax": "POWER(3.14, 2)", "returns": 9.8596},
|
|
819
|
+
],
|
|
820
|
+
"returns": "Number",
|
|
821
|
+
},
|
|
822
|
+
"PREDICT": {
|
|
823
|
+
"name": "PREDICT()",
|
|
824
|
+
"description": "PREDICT(model, input). Returns a prediction from a model.",
|
|
825
|
+
"examples": [
|
|
826
|
+
{
|
|
827
|
+
"syntax": 'PREDICT("my-model", {"sepal_length": 5.1, "sepal_width": 3.5, "petal_length": 1.4, "petal_width": 0.2})',
|
|
828
|
+
"returns": "setosa",
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
"returns": "Text",
|
|
832
|
+
},
|
|
833
|
+
"RANDBETWEEN": {
|
|
834
|
+
"name": "RANDBETWEEN()",
|
|
835
|
+
"description": "Returns a random number between the two numbers",
|
|
836
|
+
"examples": [{"syntax": "RANDBETWEEN(1, 10)", "returns": 5}],
|
|
837
|
+
"returns": "Number",
|
|
838
|
+
},
|
|
839
|
+
"RE_FIND": {
|
|
840
|
+
"name": "RE_FIND()",
|
|
841
|
+
"description": "Returns the first match of a regular expression",
|
|
842
|
+
"examples": [
|
|
843
|
+
{"syntax": 'RE_FIND("([0-9]+)", "abc123def456")', "returns": "123"},
|
|
844
|
+
{"syntax": 'RE_FIND("([a-z]+)", "abc123def456")', "returns": "abc"},
|
|
845
|
+
],
|
|
846
|
+
"returns": "Text",
|
|
847
|
+
},
|
|
848
|
+
"RE_FINDALL": {
|
|
849
|
+
"name": "RE_FINDALL()",
|
|
850
|
+
"description": "Returns a list of all matches of a regular expression",
|
|
851
|
+
"examples": [
|
|
852
|
+
{
|
|
853
|
+
"syntax": 'RE_FINDALL("([0-9]+)", "abc123def456")',
|
|
854
|
+
"returns": ["123", "456"],
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"syntax": 'RE_FINDALL("([a-z]+)", "abc123def456")',
|
|
858
|
+
"returns": ["abc", "def"],
|
|
859
|
+
},
|
|
860
|
+
],
|
|
861
|
+
"returns": "List",
|
|
862
|
+
},
|
|
863
|
+
"RE_MATCH": {
|
|
864
|
+
"name": "RE_MATCH()",
|
|
865
|
+
"description": "Returns the first match of a regular expression at the beginning of a string",
|
|
866
|
+
"examples": [
|
|
867
|
+
{"syntax": 'RE_MATCH("([0-9]+)", "123def456")', "returns": "123"},
|
|
868
|
+
{
|
|
869
|
+
"syntax": 'RE_MATCH("([a-z]+)", "abc123def456")',
|
|
870
|
+
"returns": "abc",
|
|
871
|
+
},
|
|
872
|
+
],
|
|
873
|
+
"returns": "Text",
|
|
874
|
+
},
|
|
875
|
+
"RE_SEARCH": {
|
|
876
|
+
"name": "RE_SEARCH()",
|
|
877
|
+
"description": "Returns the first match of a regular expression anywhere in a string",
|
|
878
|
+
"examples": [
|
|
879
|
+
{
|
|
880
|
+
"syntax": 'RE_SEARCH("([0-9]+)", "abc123def456")',
|
|
881
|
+
"returns": "123",
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"syntax": 'RE_SEARCH("([a-z]+)", "abc123def456")',
|
|
885
|
+
"returns": "abc",
|
|
886
|
+
},
|
|
887
|
+
],
|
|
888
|
+
"returns": "Text",
|
|
889
|
+
},
|
|
890
|
+
"RE_SUB": {
|
|
891
|
+
"name": "RE_SUB()",
|
|
892
|
+
"description": "Returns a string with all matches of a regular expression replaced",
|
|
893
|
+
"examples": [
|
|
894
|
+
{
|
|
895
|
+
"syntax": 'RE_SUB("([0-9]+)", "X", "abc123def456")',
|
|
896
|
+
"returns": "abcXdefX",
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"syntax": 'RE_SUB("([a-z]+)", "X", "abc123def456")',
|
|
900
|
+
"returns": "X123X456",
|
|
901
|
+
},
|
|
902
|
+
],
|
|
903
|
+
"returns": "Text",
|
|
904
|
+
},
|
|
905
|
+
"REF_LABEL": {
|
|
906
|
+
"name": "REF_LABEL()",
|
|
907
|
+
"description": "Get Ref Label of record",
|
|
908
|
+
"examples": [
|
|
909
|
+
{
|
|
910
|
+
"syntax": 'REF_LABEL("permits", "1745c746-aaa5-4ecf-96e7-49392458d42c")',
|
|
911
|
+
"returns": "ON-0017",
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
"returns": "Text",
|
|
915
|
+
},
|
|
916
|
+
"REF_ROWS": {
|
|
917
|
+
"name": "REF_ROWS()",
|
|
918
|
+
"description": "Define related table and column",
|
|
919
|
+
"examples": [
|
|
920
|
+
{
|
|
921
|
+
"syntax": 'REF_ROWS("users", "claim_id")',
|
|
922
|
+
"returns": ["users", "claim_id"],
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
"returns": "Tuple",
|
|
926
|
+
},
|
|
927
|
+
"REMOVE_HTML_TAGS": {
|
|
928
|
+
"name": "REMOVE_HTML_TAGS()",
|
|
929
|
+
"description": "Removes HTML tags from a string",
|
|
930
|
+
"examples": [
|
|
931
|
+
{
|
|
932
|
+
"syntax": 'REMOVE_HTML_TAGS("<h1>Hello</h1>")',
|
|
933
|
+
"returns": "Hello",
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"syntax": 'REMOVE_HTML_TAGS("<p><b>Hello</b></p>")',
|
|
937
|
+
"returns": "Hello",
|
|
938
|
+
},
|
|
939
|
+
],
|
|
940
|
+
"returns": "Text",
|
|
941
|
+
},
|
|
942
|
+
"RIGHT": {
|
|
943
|
+
"name": "RIGHT()",
|
|
944
|
+
"description": "Returns the rightmost characters from a string",
|
|
945
|
+
"examples": [
|
|
946
|
+
{"syntax": 'RIGHT("abc", 1)', "returns": "c"},
|
|
947
|
+
{"syntax": 'RIGHT("abc", 2)', "returns": "bc"},
|
|
948
|
+
{"syntax": 'RIGHT("abc", 3)', "returns": "abc"},
|
|
949
|
+
],
|
|
950
|
+
"returns": "Text",
|
|
951
|
+
},
|
|
952
|
+
"ROUND": {
|
|
953
|
+
"name": "ROUND()",
|
|
954
|
+
"description": "Returns a number rounded to a specified number of decimal places",
|
|
955
|
+
"examples": [
|
|
956
|
+
{"syntax": "ROUND(3.14159, 2)", "returns": 3.14},
|
|
957
|
+
{"syntax": "ROUND(3.14159, 3)", "returns": 3.142},
|
|
958
|
+
{"syntax": "ROUND(3.14159, 4)", "returns": 3.1416},
|
|
959
|
+
],
|
|
960
|
+
"returns": "Number",
|
|
961
|
+
},
|
|
962
|
+
"SECOND": {
|
|
963
|
+
"name": "SECOND()",
|
|
964
|
+
"description": "Returns the second",
|
|
965
|
+
"examples": [
|
|
966
|
+
{"syntax": 'SECOND("2020-01-01 12:34:56")', "returns": 56}
|
|
967
|
+
],
|
|
968
|
+
"returns": "Number",
|
|
969
|
+
},
|
|
970
|
+
"SELECT": {
|
|
971
|
+
"name": "SELECT()",
|
|
972
|
+
"description": """Returns a list of objects from DB table. Optional second parameter to specify fields. Optional third and foruth parameter to specify filter column and filter value. Optional fifth parameter to specify whether to flatten the list."
|
|
973
|
+
filters:- Optional parameter to apply multiple filters. It should be a list of tuples. Each tuple should have 2 elements. First element should be the column name and second element should be the value. For example, filters=[("column1", 10), ("column2", 20)] will return rows where column1 = 10 and column2 = 20.
|
|
974
|
+
order_by:- Optional parameter to specify the column name to sort the results. It should be a string. For example, order_by="column1" will sort the results by column1. If you want to sort in descending order, you can add a "-" in front of the column name. For example, order_by="-column1" will sort the results by column1 in descending order.
|
|
975
|
+
""",
|
|
976
|
+
"examples": [
|
|
977
|
+
{
|
|
978
|
+
"syntax": 'SELECT("table", "field")',
|
|
979
|
+
"returns": "[{...}, {...}, ...]",
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"syntax": 'SELECT("table", "field,field2")',
|
|
983
|
+
"returns": "[{...}, {...}, ...]",
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"syntax": 'SELECT("table", "field", "filter_column", "filter_value")',
|
|
987
|
+
"returns": "[{...}, {...}, ...]",
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"syntax": 'SELECT("table", "field", "filter_column", "filter_value", True)',
|
|
991
|
+
"returns": "[field, field, ...]",
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"syntax": 'SELECT("table", "*", filters=[("column1", 10), ("column2", 20)])',
|
|
995
|
+
"returns": "[(record1), (record2), ...]",
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"syntax": 'SELECT("table", "*", order_by="column1")',
|
|
999
|
+
"returns": "List of records",
|
|
1000
|
+
},
|
|
1001
|
+
],
|
|
1002
|
+
"returns": "List",
|
|
1003
|
+
},
|
|
1004
|
+
"SENDER_EMAIL": {
|
|
1005
|
+
"name": "SENDER_EMAIL()",
|
|
1006
|
+
"description": "The email sender",
|
|
1007
|
+
"examples": [
|
|
1008
|
+
{"syntax": "SENDER_EMAIL()", "returns": "Default Email Sender"}
|
|
1009
|
+
],
|
|
1010
|
+
"returns": "Email",
|
|
1011
|
+
},
|
|
1012
|
+
"SENDER_EMAIL_NAME": {
|
|
1013
|
+
"name": "SENDER_EMAIL_NAME()",
|
|
1014
|
+
"description": "The email sender name",
|
|
1015
|
+
"examples": [
|
|
1016
|
+
{
|
|
1017
|
+
"syntax": "SENDER_EMAIL_NAME()",
|
|
1018
|
+
"returns": "Default Email Sender Name",
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
1021
|
+
"returns": "Text",
|
|
1022
|
+
},
|
|
1023
|
+
"SORT": {
|
|
1024
|
+
"name": "SORT()",
|
|
1025
|
+
"description": "Returns a list of values sorted in ascending order. Optional second boolean parameter to sort in descending order.",
|
|
1026
|
+
"examples": [
|
|
1027
|
+
{"syntax": "SORT([3, 2, 1])", "returns": [1, 2, 3]},
|
|
1028
|
+
{"syntax": "SORT([1, 2, 3], True)", "returns": [3, 2, 1]},
|
|
1029
|
+
],
|
|
1030
|
+
"returns": "List",
|
|
1031
|
+
},
|
|
1032
|
+
"SPEECH_TO_TEXT": {
|
|
1033
|
+
"name": "SPEECH_TO_TEXT()",
|
|
1034
|
+
"description": "SPEECH_TO_TEXT(object). Returns a text string from a GCS object.",
|
|
1035
|
+
"examples": [
|
|
1036
|
+
{
|
|
1037
|
+
"syntax": 'SPEECH_TO_TEXT("example.mp3")',
|
|
1038
|
+
"returns": "Hello World",
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"returns": "Text",
|
|
1042
|
+
},
|
|
1043
|
+
"SPLIT": {
|
|
1044
|
+
"name": "SPLIT()",
|
|
1045
|
+
"description": "Returns a list of substrings from a text string, separated by a delimiter",
|
|
1046
|
+
"examples": [
|
|
1047
|
+
{
|
|
1048
|
+
"syntax": 'SPLIT("Hello World", " ")',
|
|
1049
|
+
"returns": ["Hello", "World"],
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
"returns": "List",
|
|
1053
|
+
},
|
|
1054
|
+
"SQRT": {
|
|
1055
|
+
"name": "SQRT()",
|
|
1056
|
+
"description": "Returns the square root of a number",
|
|
1057
|
+
"examples": [
|
|
1058
|
+
{"syntax": "SQRT(4)", "returns": 2},
|
|
1059
|
+
{"syntax": "SQRT(9)", "returns": 3},
|
|
1060
|
+
{"syntax": "SQRT(9.0)", "returns": 3.0},
|
|
1061
|
+
],
|
|
1062
|
+
"returns": "Number",
|
|
1063
|
+
},
|
|
1064
|
+
"STARTSWITH": {
|
|
1065
|
+
"name": "STARTSWITH()",
|
|
1066
|
+
"description": "Returns a YesNo expression",
|
|
1067
|
+
"examples": [
|
|
1068
|
+
{"syntax": 'STARTSWITH("Hello World", "Hello")', "returns": "Yes"},
|
|
1069
|
+
{"syntax": 'STARTSWITH("Hello World", "World")', "returns": "No"},
|
|
1070
|
+
],
|
|
1071
|
+
"returns": "YesNo",
|
|
1072
|
+
},
|
|
1073
|
+
"STATIC_MAP": {
|
|
1074
|
+
"name": "STATIC_MAP()",
|
|
1075
|
+
"description": "STATIC_MAP(latitude, longitude, zoom, width, height, map_type). Returns a static map image from Google Maps. <a href='https://developers.google.com/maps/documentation/maps-static/start'>Maps Documentation</a>. This returns a GCS blob URI. You can use the GENERATE_SIGNED_URL() function to display the image. map_type can be one of the following: roadmap, satellite, terrain, hybrid.",
|
|
1076
|
+
"examples": [
|
|
1077
|
+
{
|
|
1078
|
+
"syntax": "STATIC_MAP(40.714224, -73.961452, 12, 400, 400)",
|
|
1079
|
+
"returns": "signed URL",
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"syntax": 'STATIC_MAP(ADDRESS_TO_LATLNG("1616 Federal Blvd, Denver, CO 80204, USA"), None, 12, 400, 400)',
|
|
1083
|
+
"returns": "File",
|
|
1084
|
+
},
|
|
1085
|
+
],
|
|
1086
|
+
"returns": "File",
|
|
1087
|
+
},
|
|
1088
|
+
"STREET_VIEW": {
|
|
1089
|
+
"name": "STREET_VIEW()",
|
|
1090
|
+
"description": "STREET_VIEW(latitude, longitude, heading, pitch, fov, width, height). Returns a street view image from Google Maps. <a href='https://developers.google.com/maps/documentation/streetview/overview'>Street View Documentation</a>. This returns a GCS blob URI. You can use the GENERATE_SIGNED_URL() function to display the image.",
|
|
1091
|
+
"examples": [
|
|
1092
|
+
{
|
|
1093
|
+
"syntax": "STREET_VIEW(40.714224, -73.961452, 90, 0, 90, 400, 400)",
|
|
1094
|
+
"returns": "signed URL",
|
|
1095
|
+
}
|
|
1096
|
+
],
|
|
1097
|
+
"returns": "File",
|
|
1098
|
+
},
|
|
1099
|
+
"SUBSTITUTE": {
|
|
1100
|
+
"name": "SUBSTITUTE()",
|
|
1101
|
+
"description": "Returns a text string with all occurrences of a substring replaced with another substring",
|
|
1102
|
+
"examples": [
|
|
1103
|
+
{
|
|
1104
|
+
"syntax": 'SUBSTITUTE("Hello World", "World", "Universe")',
|
|
1105
|
+
"returns": "Hello Universe",
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
"returns": "Text",
|
|
1109
|
+
},
|
|
1110
|
+
"SUM": {
|
|
1111
|
+
"name": "SUM()",
|
|
1112
|
+
"description": "Returns the sum of a list of numbers",
|
|
1113
|
+
"examples": [
|
|
1114
|
+
{"syntax": "SUM([1, 2, 3])", "returns": 6},
|
|
1115
|
+
{"syntax": "SUM([1.1, 2.2, 3.3])", "returns": 6.6},
|
|
1116
|
+
],
|
|
1117
|
+
"returns": "Number",
|
|
1118
|
+
},
|
|
1119
|
+
"SUMMARIZE_DOCUMENT": {
|
|
1120
|
+
"name": "SUMMARIZE_DOCUMENT(url)",
|
|
1121
|
+
"description": "SUMMARIZE_DOCUMENT(url) Returns a summarized text of the input document. Supports PDF files.",
|
|
1122
|
+
"examples": [
|
|
1123
|
+
{
|
|
1124
|
+
"syntax": "SUMMARIZE_DOCUMENT(url = pdf_url)",
|
|
1125
|
+
"returns": "Summarized text of the pdf",
|
|
1126
|
+
}
|
|
1127
|
+
],
|
|
1128
|
+
"returns": "Text",
|
|
1129
|
+
},
|
|
1130
|
+
"TEXT": {
|
|
1131
|
+
"name": "TEXT()",
|
|
1132
|
+
"description": "Returns a text string representation of a value",
|
|
1133
|
+
"examples": [
|
|
1134
|
+
{"syntax": "TEXT(123)", "returns": "123"},
|
|
1135
|
+
{"syntax": "TEXT(123.45)", "returns": "123.45"},
|
|
1136
|
+
],
|
|
1137
|
+
"returns": "Text",
|
|
1138
|
+
},
|
|
1139
|
+
"TEXT_TO_SPEECH": {
|
|
1140
|
+
"name": "TEXT_TO_SPEECH()",
|
|
1141
|
+
"description": "TEXT_TO_SPEECH(text). Returns a GCS blob URI from a text string. You can use the GENERATE_SIGNED_URL() function to play the audio.",
|
|
1142
|
+
"examples": [
|
|
1143
|
+
{
|
|
1144
|
+
"syntax": 'TEXT_TO_SPEECH("Hello World")',
|
|
1145
|
+
"returns": "signed URL",
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"syntax": 'TEXT_TO_SPEECH("Hello World", "FEMALE")',
|
|
1149
|
+
"returns": "signed URL",
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"syntax": 'TEXT_TO_SPEECH("Hello World", "MALE")',
|
|
1153
|
+
"returns": "signed URL",
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"syntax": 'TEXT_TO_SPEECH("Hello World", "NEUTRAL")',
|
|
1157
|
+
"returns": "signed URL",
|
|
1158
|
+
},
|
|
1159
|
+
],
|
|
1160
|
+
"returns": "File",
|
|
1161
|
+
},
|
|
1162
|
+
"TIME": {
|
|
1163
|
+
"name": "TIME()",
|
|
1164
|
+
"description": "Returns the time portion of a datetime",
|
|
1165
|
+
"examples": [
|
|
1166
|
+
{"syntax": 'TIME("2020-01-01 12:34:56")', "returns": "12:34:56"},
|
|
1167
|
+
{"syntax": "TIME(NOW())", "returns": "12:34:56"},
|
|
1168
|
+
],
|
|
1169
|
+
"returns": "Time",
|
|
1170
|
+
},
|
|
1171
|
+
"TIMENOW": {
|
|
1172
|
+
"name": "TIMENOW(timezone='UTC')",
|
|
1173
|
+
"description": "The time in %H:%M:%S format. Similar to TIME(NOW()). The timezone is optional with a default of UTC. Complete list of timezones can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
|
|
1174
|
+
"examples": [
|
|
1175
|
+
{"syntax": "TIMENOW()", "returns": "12:34:56"},
|
|
1176
|
+
{"syntax": 'TIMENOW("America/Denver")', "returns": "07:34:56"},
|
|
1177
|
+
],
|
|
1178
|
+
"returns": "Time",
|
|
1179
|
+
},
|
|
1180
|
+
"TITLE": {
|
|
1181
|
+
"name": "TITLE()",
|
|
1182
|
+
"description": "Returns a text string in title case",
|
|
1183
|
+
"examples": [
|
|
1184
|
+
{"syntax": 'TITLE("hello world")', "returns": "Hello World"}
|
|
1185
|
+
],
|
|
1186
|
+
"returns": "Text",
|
|
1187
|
+
},
|
|
1188
|
+
"TODAY": {
|
|
1189
|
+
"name": "TODAY(timezone='UTC')",
|
|
1190
|
+
"description": "The date in %Y-%m-%d format. The timezone is optional with a default of UTC. Complete list of timezones can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
|
|
1191
|
+
"examples": [
|
|
1192
|
+
{"syntax": "TODAY()", "returns": "2020-01-01"},
|
|
1193
|
+
{"syntax": 'TODAY("America/Denver")', "returns": "2019-12-31"},
|
|
1194
|
+
],
|
|
1195
|
+
"returns": "Date",
|
|
1196
|
+
},
|
|
1197
|
+
"TOP": {
|
|
1198
|
+
"name": "TOP()",
|
|
1199
|
+
"description": "Returns the first n items in a list",
|
|
1200
|
+
"examples": [
|
|
1201
|
+
{"syntax": "TOP([1, 2, 3], 2)", "returns": [1, 2]},
|
|
1202
|
+
{"syntax": "TOP([1, 2, 3], 4)", "returns": [1, 2, 3]},
|
|
1203
|
+
],
|
|
1204
|
+
"returns": "List",
|
|
1205
|
+
},
|
|
1206
|
+
"TOTALHOURS": {
|
|
1207
|
+
"name": "TOTALHOURS()",
|
|
1208
|
+
"description": "Returns the total number of hours in a time",
|
|
1209
|
+
"examples": [
|
|
1210
|
+
{"syntax": 'TOTALHOURS("12:34:56")', "returns": 12.582222222222222}
|
|
1211
|
+
],
|
|
1212
|
+
"returns": "Number",
|
|
1213
|
+
},
|
|
1214
|
+
"TOTALMINUTES": {
|
|
1215
|
+
"name": "TOTALMINUTES()",
|
|
1216
|
+
"description": "Returns the total number of minutes in a time",
|
|
1217
|
+
"examples": [
|
|
1218
|
+
{"syntax": 'TOTALMINUTES("12:34:56")', "returns": 754.9333333333333}
|
|
1219
|
+
],
|
|
1220
|
+
"returns": "Number",
|
|
1221
|
+
},
|
|
1222
|
+
"TOTALSECONDS": {
|
|
1223
|
+
"name": "TOTALSECONDS()",
|
|
1224
|
+
"description": "Returns the total number of seconds in a time",
|
|
1225
|
+
"examples": [
|
|
1226
|
+
{"syntax": 'TOTALSECONDS("12:34:56")', "returns": 45296.0}
|
|
1227
|
+
],
|
|
1228
|
+
"returns": "Number",
|
|
1229
|
+
},
|
|
1230
|
+
"TRANSLATE_DOCUMENT": {
|
|
1231
|
+
"name": "TRANSLATE_DOCUMENT()",
|
|
1232
|
+
"description": 'TRANSLATE_DOCUMENT("URI", "source_language", "target_language"). Returns a translated document from a GCS URI.',
|
|
1233
|
+
"examples": [
|
|
1234
|
+
{
|
|
1235
|
+
"syntax": 'TRANSLATE_DOCUMENT("gs://bucket-name/file-name", "en", "es")',
|
|
1236
|
+
"returns": "GCS URI",
|
|
1237
|
+
}
|
|
1238
|
+
],
|
|
1239
|
+
"returns": "Text",
|
|
1240
|
+
},
|
|
1241
|
+
"TRANSLATE_DOCUMENT_BATCH": {
|
|
1242
|
+
"name": "TRANSLATE_DOCUMENT_BATCH()",
|
|
1243
|
+
"description": 'TRANSLATE_DOCUMENT_BATCH("URI", "source_language", "target_language"). Returns a translated document from a GCS URI.',
|
|
1244
|
+
"examples": [
|
|
1245
|
+
{
|
|
1246
|
+
"syntax": 'TRANSLATE_DOCUMENT_BATCH("gs://bucket-name/file-name", "en", "es")',
|
|
1247
|
+
"returns": "GCS URI",
|
|
1248
|
+
}
|
|
1249
|
+
],
|
|
1250
|
+
"returns": "Text",
|
|
1251
|
+
},
|
|
1252
|
+
"TRANSLATE_TEXT": {
|
|
1253
|
+
"name": "TRANSLATE_TEXT()",
|
|
1254
|
+
"description": "TRANSLATE_TEXT(text, [source_language='auto', target_language='en']). Returns a translated string. Similar to the <a href='https://support.google.com/docs/answer/3093331?hl=en'>GOOGLETRANSLATE()</a> function in Google Sheets. ",
|
|
1255
|
+
"examples": [
|
|
1256
|
+
{"syntax": 'TRANSLATE_TEXT("Hola Amigo")', "returns": "Hi friend"},
|
|
1257
|
+
{
|
|
1258
|
+
"syntax": 'TRANSLATE_TEXT("Hola Amigo", "es", "en")',
|
|
1259
|
+
"returns": "Hi friend",
|
|
1260
|
+
},
|
|
1261
|
+
],
|
|
1262
|
+
"returns": "Text",
|
|
1263
|
+
"aliases": ["GOOGLETRANSLATE"],
|
|
1264
|
+
},
|
|
1265
|
+
"TRIM": {
|
|
1266
|
+
"name": "TRIM()",
|
|
1267
|
+
"description": "Returns a text string with whitespace removed from the start and end",
|
|
1268
|
+
"examples": [
|
|
1269
|
+
{"syntax": 'TRIM(" Hello World ")', "returns": "Hello World"},
|
|
1270
|
+
{"syntax": 'TRIM("Hello World")', "returns": "Hello World"},
|
|
1271
|
+
],
|
|
1272
|
+
"returns": "Text",
|
|
1273
|
+
},
|
|
1274
|
+
"UNIQUE": {
|
|
1275
|
+
"name": "UNIQUE()",
|
|
1276
|
+
"description": "Returns a list of unique values from a list",
|
|
1277
|
+
"examples": [
|
|
1278
|
+
{"syntax": "UNIQUE([1, 2, 3, 1, 2, 3])", "returns": [1, 2, 3]}
|
|
1279
|
+
],
|
|
1280
|
+
"returns": "List",
|
|
1281
|
+
},
|
|
1282
|
+
"UPPER": {
|
|
1283
|
+
"name": "UPPER()",
|
|
1284
|
+
"description": "Uppercase a string",
|
|
1285
|
+
"examples": [
|
|
1286
|
+
{"syntax": 'UPPER("Hello World")', "returns": "HELLO WORLD"}
|
|
1287
|
+
],
|
|
1288
|
+
"returns": "Text",
|
|
1289
|
+
},
|
|
1290
|
+
"URL_TO_PDF": {
|
|
1291
|
+
"name": "URL_TO_PDF()",
|
|
1292
|
+
"description": "URL_TO_PDF(url). Returns a PDF file from a URL.",
|
|
1293
|
+
"examples": [
|
|
1294
|
+
{"syntax": 'URL_TO_PDF("https://example.com")', "returns": "URI"},
|
|
1295
|
+
{
|
|
1296
|
+
"syntax": 'URL_TO_PDF("https://example.com","vendors")',
|
|
1297
|
+
"returns": "URI",
|
|
1298
|
+
},
|
|
1299
|
+
],
|
|
1300
|
+
"returns": "File",
|
|
1301
|
+
},
|
|
1302
|
+
"USEREMAIL": {
|
|
1303
|
+
"name": "USEREMAIL()",
|
|
1304
|
+
"description": "Returns the current user's email",
|
|
1305
|
+
"examples": [{"syntax": "USEREMAIL()", "returns": "email"}],
|
|
1306
|
+
"returns": "Email",
|
|
1307
|
+
},
|
|
1308
|
+
"USERID": {
|
|
1309
|
+
"name": "USERID()",
|
|
1310
|
+
"description": "Returns the current user's ID",
|
|
1311
|
+
"examples": [{"syntax": "USERID()", "returns": "UUID"}],
|
|
1312
|
+
"returns": "UUID",
|
|
1313
|
+
},
|
|
1314
|
+
"USERLOCALE": {
|
|
1315
|
+
"name": "USERLOCALE()",
|
|
1316
|
+
"description": "The active locale e.g. en, de, es, zh",
|
|
1317
|
+
"examples": [
|
|
1318
|
+
{"syntax": "USERLOCALE()", "returns": "en, de, es, fr, or zh"}
|
|
1319
|
+
],
|
|
1320
|
+
"returns": "Text",
|
|
1321
|
+
},
|
|
1322
|
+
"USERNAME": {
|
|
1323
|
+
"name": "USERNAME()",
|
|
1324
|
+
"description": "Returns the current user's fullname",
|
|
1325
|
+
"examples": [{"syntax": "USERNAME()", "returns": "Full Name"}],
|
|
1326
|
+
"returns": "Text",
|
|
1327
|
+
},
|
|
1328
|
+
"USERROLE": {
|
|
1329
|
+
"name": "USERROLE()",
|
|
1330
|
+
"description": "Returns the current user's role ID",
|
|
1331
|
+
"examples": [{"syntax": "USERROLE()", "returns": "UUID"}],
|
|
1332
|
+
"returns": "UUID",
|
|
1333
|
+
},
|
|
1334
|
+
"UTCNOW": {
|
|
1335
|
+
"name": "UTCNOW()",
|
|
1336
|
+
"description": "The datetime for UTC timezone in %Y-%m-%d %H:%M:%S format",
|
|
1337
|
+
"examples": [{"syntax": "UTCNOW()", "returns": "2020-01-01 12:34:56"}],
|
|
1338
|
+
"returns": "DateTime",
|
|
1339
|
+
},
|
|
1340
|
+
"WEEKDAY": {
|
|
1341
|
+
"name": "WEEKDAY()",
|
|
1342
|
+
"description": "Returns the day of the week for a date",
|
|
1343
|
+
"examples": [{"syntax": 'WEEKDAY("2020-01-01")', "returns": 1}],
|
|
1344
|
+
"returns": "Number",
|
|
1345
|
+
},
|
|
1346
|
+
"YEAR": {
|
|
1347
|
+
"name": "YEAR()",
|
|
1348
|
+
"description": "Returns the year",
|
|
1349
|
+
"examples": [{"syntax": 'YEAR("2020-01-01")', "returns": 2020}],
|
|
1350
|
+
"returns": "Number",
|
|
1351
|
+
},
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
class ReservedObject(StrEnum):
|
|
1356
|
+
"""Enumeration for reserved object types."""
|
|
1357
|
+
|
|
1358
|
+
# system object types
|
|
1359
|
+
Actions = "actions"
|
|
1360
|
+
Applications = "applications"
|
|
1361
|
+
Breadcrumbs = "breadcrumbs"
|
|
1362
|
+
Conditions = "conditions"
|
|
1363
|
+
CustomPermissions = "custom_permissions"
|
|
1364
|
+
Dashboards = "dashboards"
|
|
1365
|
+
DataAccessRoles = "data_access_roles"
|
|
1366
|
+
DataMigrations = "data_migrations"
|
|
1367
|
+
DataSources = "data_sources"
|
|
1368
|
+
DeletedItems = "deleted_items"
|
|
1369
|
+
DuplicateRules = "duplicate_rules"
|
|
1370
|
+
Feeds = "feeds"
|
|
1371
|
+
Fields = "fields"
|
|
1372
|
+
FormatRules = "format_rules"
|
|
1373
|
+
Integrations = "integrations"
|
|
1374
|
+
Links = "links"
|
|
1375
|
+
Menus = "menus"
|
|
1376
|
+
Navigations = "navigations"
|
|
1377
|
+
Objects = "objects"
|
|
1378
|
+
PackageComponents = "package_components"
|
|
1379
|
+
Packages = "packages"
|
|
1380
|
+
Pages = "pages"
|
|
1381
|
+
Posts = "posts"
|
|
1382
|
+
PermissionSetApplications = "permission_set_applications"
|
|
1383
|
+
PermissionSetCustomPermissions = "permission_set_custom_permissions"
|
|
1384
|
+
PermissionSetFields = "permission_set_fields"
|
|
1385
|
+
PermissionSetTables = "permission_set_tables"
|
|
1386
|
+
PermissionSets = "permission_sets"
|
|
1387
|
+
Predictions = "predictions"
|
|
1388
|
+
QueueMembers = "queue_members"
|
|
1389
|
+
QueueObjectSkills = "queue_object_skills"
|
|
1390
|
+
QueueObjects = "queue_objects"
|
|
1391
|
+
Queues = "queues"
|
|
1392
|
+
RolePermissionSets = "role_permission_sets"
|
|
1393
|
+
Roles = "roles"
|
|
1394
|
+
SharingRules = "sharing_rules"
|
|
1395
|
+
SnapappFunctions = "snapapp_functions"
|
|
1396
|
+
Solutions = "solutions"
|
|
1397
|
+
Templates = "templates"
|
|
1398
|
+
Users = "users"
|
|
1399
|
+
ViewLinks = "view_links"
|
|
1400
|
+
Views = "views"
|
|
1401
|
+
WebhookActions = "webhook_actions"
|
|
1402
|
+
WorkflowConditions = "workflow_conditions"
|
|
1403
|
+
Workflows = "workflows"
|
|
1404
|
+
Triggers = "triggers"
|
|
1405
|
+
Files = "files"
|
|
1406
|
+
Folders = "folders"
|
|
1407
|
+
VirtualAgents = "virtual_agents"
|
|
1408
|
+
Groundings = "groundings"
|
|
1409
|
+
Tools = "tools"
|
|
1410
|
+
Conversations = "conversations"
|
|
1411
|
+
ConversationMembers = "conversation_members"
|
|
1412
|
+
ConversationMessages = "conversation_messages"
|
|
1413
|
+
Blueprints = "blueprints"
|
|
1414
|
+
BlueprintBundles = "blueprint_bundles"
|
|
1415
|
+
|
|
1416
|
+
# standard object types
|
|
1417
|
+
Accounts = "accounts"
|
|
1418
|
+
Activities = "activities"
|
|
1419
|
+
Alerts = "alerts"
|
|
1420
|
+
Attachments = "attachments"
|
|
1421
|
+
AuditTrails = "audit_trails"
|
|
1422
|
+
Contacts = "contacts"
|
|
1423
|
+
ChecklistItems = "checklist_items"
|
|
1424
|
+
DocAI_1040 = "docai_1040"
|
|
1425
|
+
DocAI_1040c = "docai_1040c"
|
|
1426
|
+
DocAI_1040se = "docai_1040se"
|
|
1427
|
+
DocAI_1099 = "docai_1099"
|
|
1428
|
+
DocAI_Bank_Statement = "docai_bank_statement"
|
|
1429
|
+
DocAI_Business_Plan = "docai_business_plan"
|
|
1430
|
+
DocAI_Change_of_Station = "docai_change_of_station"
|
|
1431
|
+
DocAI_Corps = "docai_corps"
|
|
1432
|
+
DocAI_Credit_Statement = "docai_credit_statement"
|
|
1433
|
+
DocAI_Diploma = "docai_diploma"
|
|
1434
|
+
DocAI_Divorce_Decree = "docai_divorce_decree"
|
|
1435
|
+
DocAI_EIN = "docai_ein"
|
|
1436
|
+
DocAI_ENL = "docai_enl"
|
|
1437
|
+
DocAI_Foreign_Passport = "docai_foreign_passport"
|
|
1438
|
+
DocAI_Form_Parser = "docai_form_parser"
|
|
1439
|
+
DocAI_Generic_ID = "docai_generic_id"
|
|
1440
|
+
DocAI_Lease_Agreement = "docai_lease_agreement"
|
|
1441
|
+
DocAI_Letter = "docai_letter"
|
|
1442
|
+
DocAI_Marriage_Certificate = "docai_marriage_certificate"
|
|
1443
|
+
DocAI_Mortgage_Statement = "docai_mortgage_statement"
|
|
1444
|
+
DocAI_NYCID = "docai_nycid"
|
|
1445
|
+
DocAI_Offer_Letter = "docai_offer_letter"
|
|
1446
|
+
DocAI_Paystub = "docai_paystub"
|
|
1447
|
+
DocAI_Property_Tax_Statement = "docai_property_tax_statement"
|
|
1448
|
+
DocAI_REC_ID = "docai_rec_id"
|
|
1449
|
+
DocAI_US_Driver_License = "docai_us_driver_license"
|
|
1450
|
+
DocAI_US_Passport = "docai_us_passport"
|
|
1451
|
+
DocAI_Utility_Doc = "docai_utility_doc"
|
|
1452
|
+
DocAI_W2 = "docai_w2"
|
|
1453
|
+
Favorites = "favorites"
|
|
1454
|
+
Households = "households"
|
|
1455
|
+
Jobs = "jobs"
|
|
1456
|
+
Notes = "notes"
|
|
1457
|
+
Tags = "tags"
|
|
1458
|
+
Vendors = "vendors"
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
RESTRICTED_OBJECTS_LIST = [e.value for e in ReservedObject]
|
|
1462
|
+
|
|
1463
|
+
DEFAULT_SOLUTION_ID="00000000-0000-0000-0000-000000000000"
|
|
1464
|
+
DEFAULT_APPLICATION_ID="00000000-0000-0000-0000-000000000000"
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
|