@rippling/rippling-sdk 0.2.0-alpha.111 → 0.2.0-alpha.112
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/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/record-detail-reference-options.d.mts +18 -19
- package/resources/record-detail-reference-options.d.mts.map +1 -1
- package/resources/record-detail-reference-options.d.ts +18 -19
- package/resources/record-detail-reference-options.d.ts.map +1 -1
- package/resources/record-detail-reference-options.js +13 -13
- package/resources/record-detail-reference-options.mjs +13 -13
- package/resources/record-detail-related-records.d.mts +263 -204
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +263 -204
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-detail-related-records.js +3 -3
- package/resources/record-detail-related-records.mjs +3 -3
- package/resources/record-details.d.mts +1616 -222
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +1616 -222
- package/resources/record-details.d.ts.map +1 -1
- package/resources/record-details.js +76 -6
- package/resources/record-details.js.map +1 -1
- package/resources/record-details.mjs +76 -6
- package/resources/record-details.mjs.map +1 -1
- package/resources/worker-changes.d.mts +65 -10
- package/resources/worker-changes.d.mts.map +1 -1
- package/resources/worker-changes.d.ts +65 -10
- package/resources/worker-changes.d.ts.map +1 -1
- package/resources/worker-changes.js +3 -0
- package/resources/worker-changes.js.map +1 -1
- package/resources/worker-changes.mjs +3 -0
- package/resources/worker-changes.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/record-detail-reference-options.ts +18 -19
- package/src/resources/record-detail-related-records.ts +268 -191
- package/src/resources/record-details.ts +1971 -209
- package/src/resources/worker-changes.ts +71 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -13,10 +13,11 @@ export declare class RecordDetails extends APIResource {
|
|
|
13
13
|
* canonical record PATCH endpoint. Includes discoverable direct fields outside the
|
|
14
14
|
* layout. Unreadable fields retain metadata with null, MASKED values; saved
|
|
15
15
|
* visibility conditions and field permissions determine the returned placements.
|
|
16
|
-
* Related-list
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Related-list sections describe the target object, relationship field, and
|
|
17
|
+
* configured columns without embedding row contents. Metadata-administration
|
|
18
|
+
* scopes are not required. Masked values contain no raw data. Values use the
|
|
19
|
+
* formats documented by data_type. References contain a scalar identifier and
|
|
20
|
+
* optional permitted display, not an expanded resource.
|
|
20
21
|
*
|
|
21
22
|
* @example HTTP
|
|
22
23
|
* Representative request and response shapes.
|
|
@@ -40,7 +41,6 @@ export declare class RecordDetails extends APIResource {
|
|
|
40
41
|
* },
|
|
41
42
|
* "layout": {
|
|
42
43
|
* "api_name": "string",
|
|
43
|
-
* "revision": "string",
|
|
44
44
|
* "header": {
|
|
45
45
|
* "title_field": "string",
|
|
46
46
|
* "description_field": "string",
|
|
@@ -56,11 +56,79 @@ export declare class RecordDetails extends APIResource {
|
|
|
56
56
|
* }
|
|
57
57
|
* ]
|
|
58
58
|
* },
|
|
59
|
-
* "fields": {}
|
|
59
|
+
* "fields": {},
|
|
60
|
+
* "actions": [
|
|
61
|
+
* {
|
|
62
|
+
* "id": "string",
|
|
63
|
+
* "api_name": "string",
|
|
64
|
+
* "name": "string",
|
|
65
|
+
* "function_api_name": "string",
|
|
66
|
+
* "visibility_preferences": [
|
|
67
|
+
* "LIST_VIEW"
|
|
68
|
+
* ]
|
|
69
|
+
* }
|
|
70
|
+
* ]
|
|
60
71
|
* }
|
|
61
72
|
* ```
|
|
62
73
|
*/
|
|
63
74
|
retrieve(recordID: string, query: RecordDetailRetrieveParams, options?: RequestOptions): APIPromise<RecordDetailRetrieveResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves one permissioned, singular, nonpaginated Create context without
|
|
77
|
+
* persisting a record.
|
|
78
|
+
*
|
|
79
|
+
* @example HTTP
|
|
80
|
+
* Representative request and response shapes.
|
|
81
|
+
* ```
|
|
82
|
+
* GET /record-details/?object_api_name=object_api_name&layout_api_name=default HTTP/1.1
|
|
83
|
+
* Host: rest.ripplingapis.com
|
|
84
|
+
* Accept: application/json
|
|
85
|
+
* Rippling-Api-Version: 2024-08-01
|
|
86
|
+
*
|
|
87
|
+
* HTTP/1.1 200 OK
|
|
88
|
+
* Content-Type: application/json
|
|
89
|
+
*
|
|
90
|
+
* {
|
|
91
|
+
* "object_api_name": "string",
|
|
92
|
+
* "layout": {
|
|
93
|
+
* "api_name": "string",
|
|
94
|
+
* "header": {
|
|
95
|
+
* "title_field": "string",
|
|
96
|
+
* "description_field": "string",
|
|
97
|
+
* "fields": [
|
|
98
|
+
* "string"
|
|
99
|
+
* ]
|
|
100
|
+
* },
|
|
101
|
+
* "tabs": [
|
|
102
|
+
* {
|
|
103
|
+
* "id": "string",
|
|
104
|
+
* "label": "string",
|
|
105
|
+
* "sections": []
|
|
106
|
+
* }
|
|
107
|
+
* ]
|
|
108
|
+
* },
|
|
109
|
+
* "fields": {},
|
|
110
|
+
* "blockers": [
|
|
111
|
+
* {
|
|
112
|
+
* "code": "REQUIRED_INPUT_UNAVAILABLE",
|
|
113
|
+
* "field_api_name": "string",
|
|
114
|
+
* "message": "string"
|
|
115
|
+
* }
|
|
116
|
+
* ],
|
|
117
|
+
* "actions": [
|
|
118
|
+
* {
|
|
119
|
+
* "id": "string",
|
|
120
|
+
* "api_name": "string",
|
|
121
|
+
* "name": "string",
|
|
122
|
+
* "function_api_name": "string",
|
|
123
|
+
* "visibility_preferences": [
|
|
124
|
+
* "LIST_VIEW"
|
|
125
|
+
* ]
|
|
126
|
+
* }
|
|
127
|
+
* ]
|
|
128
|
+
* }
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
retrieveCreate(query: RecordDetailRetrieveCreateParams, options?: RequestOptions): APIPromise<RecordDetailRetrieveCreateResponse>;
|
|
64
132
|
}
|
|
65
133
|
/**
|
|
66
134
|
* Record values, edit capabilities, and the effective page layout for one readable
|
|
@@ -72,14 +140,19 @@ export interface RecordDetailRetrieveResponse {
|
|
|
72
140
|
* query endpoint. Use it with object_api_name for canonical record GET and PATCH.
|
|
73
141
|
*/
|
|
74
142
|
id: string;
|
|
143
|
+
/**
|
|
144
|
+
* Complete authorized DETAIL_VIEW actions. Function execution and execution reads
|
|
145
|
+
* remain separately authorized.
|
|
146
|
+
*/
|
|
147
|
+
actions: Array<RecordDetailRetrieveResponse.Action>;
|
|
75
148
|
/**
|
|
76
149
|
* Permissions and lock state for this caller.
|
|
77
150
|
*/
|
|
78
151
|
capabilities: RecordDetailRetrieveResponse.Capabilities;
|
|
79
152
|
/**
|
|
80
153
|
* Discoverable direct fields plus read-only related fields used by the layout.
|
|
81
|
-
*
|
|
82
|
-
* value.
|
|
154
|
+
* Each value is the saved value loaded for this record. Unreadable fields retain
|
|
155
|
+
* metadata and layout placements with a null, MASKED value.
|
|
83
156
|
*/
|
|
84
157
|
fields: {
|
|
85
158
|
[key: string]: RecordDetailRetrieveResponse.DetailTextField | RecordDetailRetrieveResponse.DetailNumberField | RecordDetailRetrieveResponse.DetailBooleanField | RecordDetailRetrieveResponse.DetailDateField | RecordDetailRetrieveResponse.DetailDateTimeField | RecordDetailRetrieveResponse.DetailCurrencyField | RecordDetailRetrieveResponse.DetailChoiceField | RecordDetailRetrieveResponse.DetailMultiChoiceField | RecordDetailRetrieveResponse.DetailReferenceField | RecordDetailRetrieveResponse.DetailNativeReferenceField | RecordDetailRetrieveResponse.DetailPercentageField | RecordDetailRetrieveResponse.DetailTimeField | RecordDetailRetrieveResponse.DetailUnsupportedField;
|
|
@@ -100,6 +173,34 @@ export interface RecordDetailRetrieveResponse {
|
|
|
100
173
|
updated_at: string;
|
|
101
174
|
}
|
|
102
175
|
export declare namespace RecordDetailRetrieveResponse {
|
|
176
|
+
/**
|
|
177
|
+
* A configured action the caller can attempt through the existing Function
|
|
178
|
+
* execution API.
|
|
179
|
+
*/
|
|
180
|
+
interface Action {
|
|
181
|
+
/**
|
|
182
|
+
* Stable native ObjectAction identifier.
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
/**
|
|
186
|
+
* Action API name; null for legacy actions.
|
|
187
|
+
*/
|
|
188
|
+
api_name: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Associated Function API name for the unchanged Function execution endpoints.
|
|
191
|
+
* Discovery does not grant execution or execution-read permission.
|
|
192
|
+
*/
|
|
193
|
+
function_api_name: string;
|
|
194
|
+
/**
|
|
195
|
+
* Action display label.
|
|
196
|
+
*/
|
|
197
|
+
name: string;
|
|
198
|
+
/**
|
|
199
|
+
* Configured action placements: LIST_VIEW appears in an object grid; DETAIL_VIEW
|
|
200
|
+
* appears on a record page.
|
|
201
|
+
*/
|
|
202
|
+
visibility_preferences: Array<'LIST_VIEW' | 'DETAIL_VIEW'>;
|
|
203
|
+
}
|
|
103
204
|
/**
|
|
104
205
|
* Permissions and lock state for this caller.
|
|
105
206
|
*/
|
|
@@ -121,7 +222,8 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
121
222
|
locked: boolean;
|
|
122
223
|
}
|
|
123
224
|
/**
|
|
124
|
-
* A discoverable
|
|
225
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
226
|
+
* flow.
|
|
125
227
|
*/
|
|
126
228
|
interface DetailTextField {
|
|
127
229
|
/**
|
|
@@ -136,9 +238,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
136
238
|
*/
|
|
137
239
|
data_type: 'TEXT' | 'LONG_TEXT' | 'EMAIL' | 'URL' | 'PHONE_NUMBER';
|
|
138
240
|
/**
|
|
139
|
-
* Whether you can attempt to
|
|
140
|
-
*
|
|
141
|
-
* are validated when written.
|
|
241
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
242
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
243
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
142
244
|
*/
|
|
143
245
|
editable: boolean;
|
|
144
246
|
/**
|
|
@@ -159,9 +261,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
159
261
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
160
262
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
161
263
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
162
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
264
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
265
|
+
* by this requested flow).
|
|
163
266
|
*/
|
|
164
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
267
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
165
268
|
/**
|
|
166
269
|
* Whether a nonempty value is required by the field schema.
|
|
167
270
|
*/
|
|
@@ -172,26 +275,32 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
172
275
|
*/
|
|
173
276
|
value: string | null;
|
|
174
277
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
278
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
279
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
280
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
281
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
282
|
+
* UNSUPPORTED does not determine edit permission.
|
|
179
283
|
*/
|
|
180
284
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
181
285
|
/**
|
|
182
|
-
* Whether
|
|
183
|
-
* access
|
|
286
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
287
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
288
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
184
289
|
*/
|
|
185
290
|
viewable: boolean;
|
|
186
291
|
/**
|
|
187
|
-
*
|
|
188
|
-
|
|
189
|
-
|
|
292
|
+
* Maximum accepted characters, or null when unbounded.
|
|
293
|
+
*/
|
|
294
|
+
max_length?: number | null;
|
|
295
|
+
/**
|
|
296
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
297
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
190
298
|
*/
|
|
191
299
|
reference_object?: string | null;
|
|
192
300
|
}
|
|
193
301
|
/**
|
|
194
|
-
* A discoverable
|
|
302
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
303
|
+
* flow.
|
|
195
304
|
*/
|
|
196
305
|
interface DetailNumberField {
|
|
197
306
|
/**
|
|
@@ -205,9 +314,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
205
314
|
*/
|
|
206
315
|
data_type: 'NUMBER';
|
|
207
316
|
/**
|
|
208
|
-
* Whether you can attempt to
|
|
209
|
-
*
|
|
210
|
-
* are validated when written.
|
|
317
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
318
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
319
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
211
320
|
*/
|
|
212
321
|
editable: boolean;
|
|
213
322
|
/**
|
|
@@ -228,9 +337,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
228
337
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
229
338
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
230
339
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
231
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
340
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
341
|
+
* by this requested flow).
|
|
232
342
|
*/
|
|
233
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
343
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
234
344
|
/**
|
|
235
345
|
* Whether a nonempty value is required by the field schema.
|
|
236
346
|
*/
|
|
@@ -241,26 +351,32 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
241
351
|
*/
|
|
242
352
|
value: string | null;
|
|
243
353
|
/**
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
354
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
355
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
356
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
357
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
358
|
+
* UNSUPPORTED does not determine edit permission.
|
|
248
359
|
*/
|
|
249
360
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
250
361
|
/**
|
|
251
|
-
* Whether
|
|
252
|
-
* access
|
|
362
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
363
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
364
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
253
365
|
*/
|
|
254
366
|
viewable: boolean;
|
|
255
367
|
/**
|
|
256
|
-
*
|
|
257
|
-
|
|
258
|
-
|
|
368
|
+
* Configured decimal places, or null.
|
|
369
|
+
*/
|
|
370
|
+
num_of_decimal_places?: number | null;
|
|
371
|
+
/**
|
|
372
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
373
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
259
374
|
*/
|
|
260
375
|
reference_object?: string | null;
|
|
261
376
|
}
|
|
262
377
|
/**
|
|
263
|
-
* A discoverable
|
|
378
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
379
|
+
* flow.
|
|
264
380
|
*/
|
|
265
381
|
interface DetailBooleanField {
|
|
266
382
|
/**
|
|
@@ -274,9 +390,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
274
390
|
*/
|
|
275
391
|
data_type: 'BOOLEAN';
|
|
276
392
|
/**
|
|
277
|
-
* Whether you can attempt to
|
|
278
|
-
*
|
|
279
|
-
* are validated when written.
|
|
393
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
394
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
395
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
280
396
|
*/
|
|
281
397
|
editable: boolean;
|
|
282
398
|
/**
|
|
@@ -297,9 +413,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
297
413
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
298
414
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
299
415
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
300
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
416
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
417
|
+
* by this requested flow).
|
|
301
418
|
*/
|
|
302
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
419
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
303
420
|
/**
|
|
304
421
|
* Whether a nonempty value is required by the field schema.
|
|
305
422
|
*/
|
|
@@ -309,26 +426,28 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
309
426
|
*/
|
|
310
427
|
value: boolean | null;
|
|
311
428
|
/**
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
429
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
430
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
431
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
432
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
433
|
+
* UNSUPPORTED does not determine edit permission.
|
|
316
434
|
*/
|
|
317
435
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
318
436
|
/**
|
|
319
|
-
* Whether
|
|
320
|
-
* access
|
|
437
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
438
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
439
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
321
440
|
*/
|
|
322
441
|
viewable: boolean;
|
|
323
442
|
/**
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
* fields and unsupported reference targets.
|
|
443
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
444
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
327
445
|
*/
|
|
328
446
|
reference_object?: string | null;
|
|
329
447
|
}
|
|
330
448
|
/**
|
|
331
|
-
* A discoverable
|
|
449
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
450
|
+
* flow.
|
|
332
451
|
*/
|
|
333
452
|
interface DetailDateField {
|
|
334
453
|
/**
|
|
@@ -342,9 +461,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
342
461
|
*/
|
|
343
462
|
data_type: 'DATE';
|
|
344
463
|
/**
|
|
345
|
-
* Whether you can attempt to
|
|
346
|
-
*
|
|
347
|
-
* are validated when written.
|
|
464
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
465
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
466
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
348
467
|
*/
|
|
349
468
|
editable: boolean;
|
|
350
469
|
/**
|
|
@@ -365,9 +484,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
365
484
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
366
485
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
367
486
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
368
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
487
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
488
|
+
* by this requested flow).
|
|
369
489
|
*/
|
|
370
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
490
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
371
491
|
/**
|
|
372
492
|
* Whether a nonempty value is required by the field schema.
|
|
373
493
|
*/
|
|
@@ -378,26 +498,28 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
378
498
|
*/
|
|
379
499
|
value: string | null;
|
|
380
500
|
/**
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
501
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
502
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
503
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
504
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
505
|
+
* UNSUPPORTED does not determine edit permission.
|
|
385
506
|
*/
|
|
386
507
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
387
508
|
/**
|
|
388
|
-
* Whether
|
|
389
|
-
* access
|
|
509
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
510
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
511
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
390
512
|
*/
|
|
391
513
|
viewable: boolean;
|
|
392
514
|
/**
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
* fields and unsupported reference targets.
|
|
515
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
516
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
396
517
|
*/
|
|
397
518
|
reference_object?: string | null;
|
|
398
519
|
}
|
|
399
520
|
/**
|
|
400
|
-
* A discoverable
|
|
521
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
522
|
+
* flow.
|
|
401
523
|
*/
|
|
402
524
|
interface DetailDateTimeField {
|
|
403
525
|
/**
|
|
@@ -411,9 +533,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
411
533
|
*/
|
|
412
534
|
data_type: 'DATETIME';
|
|
413
535
|
/**
|
|
414
|
-
* Whether you can attempt to
|
|
415
|
-
*
|
|
416
|
-
* are validated when written.
|
|
536
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
537
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
538
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
417
539
|
*/
|
|
418
540
|
editable: boolean;
|
|
419
541
|
/**
|
|
@@ -434,9 +556,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
434
556
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
435
557
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
436
558
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
437
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
559
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
560
|
+
* by this requested flow).
|
|
438
561
|
*/
|
|
439
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
562
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
440
563
|
/**
|
|
441
564
|
* Whether a nonempty value is required by the field schema.
|
|
442
565
|
*/
|
|
@@ -448,26 +571,28 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
448
571
|
*/
|
|
449
572
|
value: string | null;
|
|
450
573
|
/**
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
*
|
|
574
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
575
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
576
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
577
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
578
|
+
* UNSUPPORTED does not determine edit permission.
|
|
455
579
|
*/
|
|
456
580
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
457
581
|
/**
|
|
458
|
-
* Whether
|
|
459
|
-
* access
|
|
582
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
583
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
584
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
460
585
|
*/
|
|
461
586
|
viewable: boolean;
|
|
462
587
|
/**
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
* fields and unsupported reference targets.
|
|
588
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
589
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
466
590
|
*/
|
|
467
591
|
reference_object?: string | null;
|
|
468
592
|
}
|
|
469
593
|
/**
|
|
470
|
-
* A discoverable
|
|
594
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
595
|
+
* flow.
|
|
471
596
|
*/
|
|
472
597
|
interface DetailCurrencyField {
|
|
473
598
|
/**
|
|
@@ -481,9 +606,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
481
606
|
*/
|
|
482
607
|
data_type: 'CURRENCY';
|
|
483
608
|
/**
|
|
484
|
-
* Whether you can attempt to
|
|
485
|
-
*
|
|
486
|
-
* are validated when written.
|
|
609
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
610
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
611
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
487
612
|
*/
|
|
488
613
|
editable: boolean;
|
|
489
614
|
/**
|
|
@@ -504,9 +629,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
504
629
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
505
630
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
506
631
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
507
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
632
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
633
|
+
* by this requested flow).
|
|
508
634
|
*/
|
|
509
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
635
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
510
636
|
/**
|
|
511
637
|
* Whether a nonempty value is required by the field schema.
|
|
512
638
|
*/
|
|
@@ -518,21 +644,30 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
518
644
|
*/
|
|
519
645
|
value: DetailCurrencyField.RecordDetailCurrency | null;
|
|
520
646
|
/**
|
|
521
|
-
*
|
|
522
|
-
*
|
|
523
|
-
*
|
|
524
|
-
*
|
|
647
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
648
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
649
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
650
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
651
|
+
* UNSUPPORTED does not determine edit permission.
|
|
525
652
|
*/
|
|
526
653
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
527
654
|
/**
|
|
528
|
-
* Whether
|
|
529
|
-
* access
|
|
655
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
656
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
657
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
530
658
|
*/
|
|
531
659
|
viewable: boolean;
|
|
532
660
|
/**
|
|
533
|
-
*
|
|
534
|
-
|
|
535
|
-
|
|
661
|
+
* Configured ISO 4217 currency code, or null when dynamic.
|
|
662
|
+
*/
|
|
663
|
+
currency?: string | null;
|
|
664
|
+
/**
|
|
665
|
+
* Configured decimal places, or null.
|
|
666
|
+
*/
|
|
667
|
+
num_of_decimal_places?: number | null;
|
|
668
|
+
/**
|
|
669
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
670
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
536
671
|
*/
|
|
537
672
|
reference_object?: string | null;
|
|
538
673
|
}
|
|
@@ -552,7 +687,8 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
552
687
|
}
|
|
553
688
|
}
|
|
554
689
|
/**
|
|
555
|
-
* A discoverable
|
|
690
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
691
|
+
* flow.
|
|
556
692
|
*/
|
|
557
693
|
interface DetailChoiceField {
|
|
558
694
|
/**
|
|
@@ -566,9 +702,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
566
702
|
*/
|
|
567
703
|
data_type: 'RADIO';
|
|
568
704
|
/**
|
|
569
|
-
* Whether you can attempt to
|
|
570
|
-
*
|
|
571
|
-
* are validated when written.
|
|
705
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
706
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
707
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
572
708
|
*/
|
|
573
709
|
editable: boolean;
|
|
574
710
|
/**
|
|
@@ -589,9 +725,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
589
725
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
590
726
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
591
727
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
592
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
728
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
729
|
+
* by this requested flow).
|
|
593
730
|
*/
|
|
594
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
731
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
595
732
|
/**
|
|
596
733
|
* Whether a nonempty value is required by the field schema.
|
|
597
734
|
*/
|
|
@@ -602,26 +739,28 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
602
739
|
*/
|
|
603
740
|
value: string | null;
|
|
604
741
|
/**
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
*
|
|
742
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
743
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
744
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
745
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
746
|
+
* UNSUPPORTED does not determine edit permission.
|
|
609
747
|
*/
|
|
610
748
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
611
749
|
/**
|
|
612
|
-
* Whether
|
|
613
|
-
* access
|
|
750
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
751
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
752
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
614
753
|
*/
|
|
615
754
|
viewable: boolean;
|
|
616
755
|
/**
|
|
617
|
-
*
|
|
618
|
-
*
|
|
619
|
-
* fields and unsupported reference targets.
|
|
756
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
757
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
620
758
|
*/
|
|
621
759
|
reference_object?: string | null;
|
|
622
760
|
}
|
|
623
761
|
/**
|
|
624
|
-
* A discoverable
|
|
762
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
763
|
+
* flow.
|
|
625
764
|
*/
|
|
626
765
|
interface DetailMultiChoiceField {
|
|
627
766
|
/**
|
|
@@ -635,9 +774,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
635
774
|
*/
|
|
636
775
|
data_type: 'SELECT';
|
|
637
776
|
/**
|
|
638
|
-
* Whether you can attempt to
|
|
639
|
-
*
|
|
640
|
-
* are validated when written.
|
|
777
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
778
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
779
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
641
780
|
*/
|
|
642
781
|
editable: boolean;
|
|
643
782
|
/**
|
|
@@ -658,9 +797,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
658
797
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
659
798
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
660
799
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
661
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
800
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
801
|
+
* by this requested flow).
|
|
662
802
|
*/
|
|
663
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
803
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
664
804
|
/**
|
|
665
805
|
* Whether a nonempty value is required by the field schema.
|
|
666
806
|
*/
|
|
@@ -671,26 +811,28 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
671
811
|
*/
|
|
672
812
|
value: Array<string> | null;
|
|
673
813
|
/**
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
*
|
|
677
|
-
*
|
|
814
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
815
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
816
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
817
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
818
|
+
* UNSUPPORTED does not determine edit permission.
|
|
678
819
|
*/
|
|
679
820
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
680
821
|
/**
|
|
681
|
-
* Whether
|
|
682
|
-
* access
|
|
822
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
823
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
824
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
683
825
|
*/
|
|
684
826
|
viewable: boolean;
|
|
685
827
|
/**
|
|
686
|
-
*
|
|
687
|
-
*
|
|
688
|
-
* fields and unsupported reference targets.
|
|
828
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
829
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
689
830
|
*/
|
|
690
831
|
reference_object?: string | null;
|
|
691
832
|
}
|
|
692
833
|
/**
|
|
693
|
-
* A discoverable
|
|
834
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
835
|
+
* flow.
|
|
694
836
|
*/
|
|
695
837
|
interface DetailReferenceField {
|
|
696
838
|
/**
|
|
@@ -705,9 +847,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
705
847
|
*/
|
|
706
848
|
data_type: 'OG_REFERENCE_FIELD';
|
|
707
849
|
/**
|
|
708
|
-
* Whether you can attempt to
|
|
709
|
-
*
|
|
710
|
-
* are validated when written.
|
|
850
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
851
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
852
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
711
853
|
*/
|
|
712
854
|
editable: boolean;
|
|
713
855
|
/**
|
|
@@ -728,29 +870,32 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
728
870
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
729
871
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
730
872
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
731
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
873
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
874
|
+
* by this requested flow).
|
|
732
875
|
*/
|
|
733
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
876
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
734
877
|
/**
|
|
735
878
|
* Whether a nonempty value is required by the field schema.
|
|
736
879
|
*/
|
|
737
880
|
required: boolean;
|
|
738
881
|
/**
|
|
739
882
|
* Selected record identifier in the reference_object target; null when empty or
|
|
740
|
-
* masked. Use the Workers GET endpoint for Employee or
|
|
741
|
-
*
|
|
883
|
+
* masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
|
|
884
|
+
* record GET endpoint for Custom Object targets.
|
|
742
885
|
*/
|
|
743
886
|
value: string | null;
|
|
744
887
|
/**
|
|
745
|
-
*
|
|
746
|
-
*
|
|
747
|
-
*
|
|
748
|
-
*
|
|
888
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
889
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
890
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
891
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
892
|
+
* UNSUPPORTED does not determine edit permission.
|
|
749
893
|
*/
|
|
750
894
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
751
895
|
/**
|
|
752
|
-
* Whether
|
|
753
|
-
* access
|
|
896
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
897
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
898
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
754
899
|
*/
|
|
755
900
|
viewable: boolean;
|
|
756
901
|
/**
|
|
@@ -759,9 +904,8 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
759
904
|
*/
|
|
760
905
|
display?: DetailReferenceField.ReferenceDisplay | null;
|
|
761
906
|
/**
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
* fields and unsupported reference targets.
|
|
907
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
908
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
765
909
|
*/
|
|
766
910
|
reference_object?: string | null;
|
|
767
911
|
}
|
|
@@ -785,7 +929,8 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
785
929
|
}
|
|
786
930
|
}
|
|
787
931
|
/**
|
|
788
|
-
* A discoverable
|
|
932
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
933
|
+
* flow.
|
|
789
934
|
*/
|
|
790
935
|
interface DetailNativeReferenceField {
|
|
791
936
|
/**
|
|
@@ -800,9 +945,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
800
945
|
*/
|
|
801
946
|
data_type: 'NATIVE_EDGE';
|
|
802
947
|
/**
|
|
803
|
-
* Whether you can attempt to
|
|
804
|
-
*
|
|
805
|
-
* are validated when written.
|
|
948
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
949
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
950
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
806
951
|
*/
|
|
807
952
|
editable: boolean;
|
|
808
953
|
/**
|
|
@@ -823,29 +968,32 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
823
968
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
824
969
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
825
970
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
826
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
971
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
972
|
+
* by this requested flow).
|
|
827
973
|
*/
|
|
828
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
974
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
829
975
|
/**
|
|
830
976
|
* Whether a nonempty value is required by the field schema.
|
|
831
977
|
*/
|
|
832
978
|
required: boolean;
|
|
833
979
|
/**
|
|
834
980
|
* Selected record identifier in the reference_object target; null when empty or
|
|
835
|
-
* masked. Use the Workers GET endpoint for Employee or
|
|
836
|
-
*
|
|
981
|
+
* masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
|
|
982
|
+
* record GET endpoint for Custom Object targets.
|
|
837
983
|
*/
|
|
838
984
|
value: string | null;
|
|
839
985
|
/**
|
|
840
|
-
*
|
|
841
|
-
*
|
|
842
|
-
*
|
|
843
|
-
*
|
|
986
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
987
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
988
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
989
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
990
|
+
* UNSUPPORTED does not determine edit permission.
|
|
844
991
|
*/
|
|
845
992
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
846
993
|
/**
|
|
847
|
-
* Whether
|
|
848
|
-
* access
|
|
994
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
995
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
996
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
849
997
|
*/
|
|
850
998
|
viewable: boolean;
|
|
851
999
|
/**
|
|
@@ -854,9 +1002,8 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
854
1002
|
*/
|
|
855
1003
|
display?: DetailNativeReferenceField.ReferenceDisplay | null;
|
|
856
1004
|
/**
|
|
857
|
-
*
|
|
858
|
-
*
|
|
859
|
-
* fields and unsupported reference targets.
|
|
1005
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1006
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
860
1007
|
*/
|
|
861
1008
|
reference_object?: string | null;
|
|
862
1009
|
}
|
|
@@ -880,7 +1027,8 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
880
1027
|
}
|
|
881
1028
|
}
|
|
882
1029
|
/**
|
|
883
|
-
* A discoverable
|
|
1030
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1031
|
+
* flow.
|
|
884
1032
|
*/
|
|
885
1033
|
interface DetailPercentageField {
|
|
886
1034
|
/**
|
|
@@ -894,9 +1042,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
894
1042
|
*/
|
|
895
1043
|
data_type: 'PERCENTAGE';
|
|
896
1044
|
/**
|
|
897
|
-
* Whether you can attempt to
|
|
898
|
-
*
|
|
899
|
-
* are validated when written.
|
|
1045
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1046
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1047
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
900
1048
|
*/
|
|
901
1049
|
editable: boolean;
|
|
902
1050
|
/**
|
|
@@ -917,9 +1065,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
917
1065
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
918
1066
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
919
1067
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
920
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
1068
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1069
|
+
* by this requested flow).
|
|
921
1070
|
*/
|
|
922
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
1071
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
923
1072
|
/**
|
|
924
1073
|
* Whether a nonempty value is required by the field schema.
|
|
925
1074
|
*/
|
|
@@ -930,26 +1079,32 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
930
1079
|
*/
|
|
931
1080
|
value: number | null;
|
|
932
1081
|
/**
|
|
933
|
-
*
|
|
934
|
-
*
|
|
935
|
-
*
|
|
936
|
-
*
|
|
1082
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1083
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1084
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1085
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1086
|
+
* UNSUPPORTED does not determine edit permission.
|
|
937
1087
|
*/
|
|
938
1088
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
939
1089
|
/**
|
|
940
|
-
* Whether
|
|
941
|
-
* access
|
|
1090
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1091
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1092
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
942
1093
|
*/
|
|
943
1094
|
viewable: boolean;
|
|
944
1095
|
/**
|
|
945
|
-
*
|
|
946
|
-
|
|
947
|
-
|
|
1096
|
+
* Configured decimal places, or null.
|
|
1097
|
+
*/
|
|
1098
|
+
num_of_decimal_places?: number | null;
|
|
1099
|
+
/**
|
|
1100
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1101
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
948
1102
|
*/
|
|
949
1103
|
reference_object?: string | null;
|
|
950
1104
|
}
|
|
951
1105
|
/**
|
|
952
|
-
* A discoverable
|
|
1106
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1107
|
+
* flow.
|
|
953
1108
|
*/
|
|
954
1109
|
interface DetailTimeField {
|
|
955
1110
|
/**
|
|
@@ -963,9 +1118,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
963
1118
|
*/
|
|
964
1119
|
data_type: 'TIME';
|
|
965
1120
|
/**
|
|
966
|
-
* Whether you can attempt to
|
|
967
|
-
*
|
|
968
|
-
* are validated when written.
|
|
1121
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1122
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1123
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
969
1124
|
*/
|
|
970
1125
|
editable: boolean;
|
|
971
1126
|
/**
|
|
@@ -986,9 +1141,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
986
1141
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
987
1142
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
988
1143
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
989
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
1144
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1145
|
+
* by this requested flow).
|
|
990
1146
|
*/
|
|
991
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
1147
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
992
1148
|
/**
|
|
993
1149
|
* Whether a nonempty value is required by the field schema.
|
|
994
1150
|
*/
|
|
@@ -998,26 +1154,28 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
998
1154
|
*/
|
|
999
1155
|
value: string | null;
|
|
1000
1156
|
/**
|
|
1001
|
-
*
|
|
1002
|
-
*
|
|
1003
|
-
*
|
|
1004
|
-
*
|
|
1157
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1158
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1159
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1160
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1161
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1005
1162
|
*/
|
|
1006
1163
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1007
1164
|
/**
|
|
1008
|
-
* Whether
|
|
1009
|
-
* access
|
|
1165
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1166
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1167
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1010
1168
|
*/
|
|
1011
1169
|
viewable: boolean;
|
|
1012
1170
|
/**
|
|
1013
|
-
*
|
|
1014
|
-
*
|
|
1015
|
-
* fields and unsupported reference targets.
|
|
1171
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1172
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1016
1173
|
*/
|
|
1017
1174
|
reference_object?: string | null;
|
|
1018
1175
|
}
|
|
1019
1176
|
/**
|
|
1020
|
-
* A discoverable
|
|
1177
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1178
|
+
* flow.
|
|
1021
1179
|
*/
|
|
1022
1180
|
interface DetailUnsupportedField {
|
|
1023
1181
|
/**
|
|
@@ -1032,9 +1190,9 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
1032
1190
|
*/
|
|
1033
1191
|
data_type: 'ADDRESS' | 'REFERENCE_ID' | 'COORDINATE' | 'TIMESTAMPED_CURRENCY' | 'JSONB' | 'FILE';
|
|
1034
1192
|
/**
|
|
1035
|
-
* Whether you can attempt to
|
|
1036
|
-
*
|
|
1037
|
-
* are validated when written.
|
|
1193
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1194
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1195
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
1038
1196
|
*/
|
|
1039
1197
|
editable: boolean;
|
|
1040
1198
|
/**
|
|
@@ -1055,9 +1213,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
1055
1213
|
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
1056
1214
|
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
1057
1215
|
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
1058
|
-
* REFERENCE_UNAVAILABLE (unavailable reference target)
|
|
1216
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1217
|
+
* by this requested flow).
|
|
1059
1218
|
*/
|
|
1060
|
-
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | null;
|
|
1219
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
1061
1220
|
/**
|
|
1062
1221
|
* Whether a nonempty value is required by the field schema.
|
|
1063
1222
|
*/
|
|
@@ -1068,21 +1227,22 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
1068
1227
|
*/
|
|
1069
1228
|
value: null;
|
|
1070
1229
|
/**
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1074
|
-
*
|
|
1230
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1231
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1232
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1233
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1234
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1075
1235
|
*/
|
|
1076
1236
|
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1077
1237
|
/**
|
|
1078
|
-
* Whether
|
|
1079
|
-
* access
|
|
1238
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1239
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1240
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1080
1241
|
*/
|
|
1081
1242
|
viewable: boolean;
|
|
1082
1243
|
/**
|
|
1083
|
-
*
|
|
1084
|
-
*
|
|
1085
|
-
* fields and unsupported reference targets.
|
|
1244
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1245
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1086
1246
|
*/
|
|
1087
1247
|
reference_object?: string | null;
|
|
1088
1248
|
}
|
|
@@ -1098,11 +1258,6 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
1098
1258
|
* Semantic record header.
|
|
1099
1259
|
*/
|
|
1100
1260
|
header: Layout.Header;
|
|
1101
|
-
/**
|
|
1102
|
-
* Opaque revision of the effective, permission-filtered layout. Compare to detect
|
|
1103
|
-
* layout changes; this is not the record write version.
|
|
1104
|
-
*/
|
|
1105
|
-
revision: string;
|
|
1106
1261
|
/**
|
|
1107
1262
|
* Ordered, visible tabs.
|
|
1108
1263
|
*/
|
|
@@ -1150,8 +1305,7 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
1150
1305
|
*/
|
|
1151
1306
|
interface Section {
|
|
1152
1307
|
/**
|
|
1153
|
-
* Section identifier scoped to the effective layout.
|
|
1154
|
-
* records_link to retrieve its records.
|
|
1308
|
+
* Section identifier scoped to the effective layout.
|
|
1155
1309
|
*/
|
|
1156
1310
|
id: string;
|
|
1157
1311
|
/**
|
|
@@ -1168,11 +1322,16 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
1168
1322
|
*/
|
|
1169
1323
|
label: string;
|
|
1170
1324
|
/**
|
|
1171
|
-
* FIELDS contains ordered field placements; RELATED_LIST describes
|
|
1172
|
-
*
|
|
1173
|
-
* render.
|
|
1325
|
+
* FIELDS contains ordered field placements; RELATED_LIST describes a deferred
|
|
1326
|
+
* related-record grid without embedding its rows; UNSUPPORTED identifies visible
|
|
1327
|
+
* content this API cannot render.
|
|
1174
1328
|
*/
|
|
1175
1329
|
type: 'FIELDS' | 'RELATED_LIST' | 'UNSUPPORTED';
|
|
1330
|
+
/**
|
|
1331
|
+
* Ordered readable columns configured for a RELATED_LIST; empty for other
|
|
1332
|
+
* sections.
|
|
1333
|
+
*/
|
|
1334
|
+
column_field_api_names?: Array<string>;
|
|
1176
1335
|
/**
|
|
1177
1336
|
* Related Custom Object API name; null for other sections.
|
|
1178
1337
|
*/
|
|
@@ -1185,10 +1344,10 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
1185
1344
|
*/
|
|
1186
1345
|
reason?: 'CONTENT_NOT_SUPPORTED' | 'RELATED_OBJECT_NOT_SUPPORTED' | null;
|
|
1187
1346
|
/**
|
|
1188
|
-
*
|
|
1189
|
-
*
|
|
1347
|
+
* Field on the related Custom Object that points to this record; null for other
|
|
1348
|
+
* sections.
|
|
1190
1349
|
*/
|
|
1191
|
-
|
|
1350
|
+
relationship_field_api_name?: string | null;
|
|
1192
1351
|
}
|
|
1193
1352
|
namespace Section {
|
|
1194
1353
|
/**
|
|
@@ -1208,7 +1367,1242 @@ export declare namespace RecordDetailRetrieveResponse {
|
|
|
1208
1367
|
}
|
|
1209
1368
|
}
|
|
1210
1369
|
}
|
|
1211
|
-
|
|
1370
|
+
/**
|
|
1371
|
+
* Permissioned create form context; no record has been persisted.
|
|
1372
|
+
*/
|
|
1373
|
+
export interface RecordDetailRetrieveCreateResponse {
|
|
1374
|
+
/**
|
|
1375
|
+
* Empty: no record exists in create context.
|
|
1376
|
+
*/
|
|
1377
|
+
actions: Array<RecordDetailRetrieveCreateResponse.Action>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Caller-safe reasons the form cannot be submitted. Hidden or unavailable field
|
|
1380
|
+
* names are not disclosed.
|
|
1381
|
+
*/
|
|
1382
|
+
blockers: Array<RecordDetailRetrieveCreateResponse.Blocker>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Supported create inputs. Each value is the authorized configured default or
|
|
1385
|
+
* owner fallback for this create flow, or an EMPTY value when no eligible default
|
|
1386
|
+
* exists. Reference identifiers and display are presentation values; convert them
|
|
1387
|
+
* to the canonical record POST input shape when writing.
|
|
1388
|
+
*/
|
|
1389
|
+
fields: {
|
|
1390
|
+
[key: string]: RecordDetailRetrieveCreateResponse.DetailTextField | RecordDetailRetrieveCreateResponse.DetailNumberField | RecordDetailRetrieveCreateResponse.DetailBooleanField | RecordDetailRetrieveCreateResponse.DetailDateField | RecordDetailRetrieveCreateResponse.DetailDateTimeField | RecordDetailRetrieveCreateResponse.DetailCurrencyField | RecordDetailRetrieveCreateResponse.DetailChoiceField | RecordDetailRetrieveCreateResponse.DetailMultiChoiceField | RecordDetailRetrieveCreateResponse.DetailReferenceField | RecordDetailRetrieveCreateResponse.DetailNativeReferenceField | RecordDetailRetrieveCreateResponse.DetailPercentageField | RecordDetailRetrieveCreateResponse.DetailTimeField | RecordDetailRetrieveCreateResponse.DetailUnsupportedField;
|
|
1391
|
+
};
|
|
1392
|
+
/**
|
|
1393
|
+
* Effective create layout after visibility and permission filtering.
|
|
1394
|
+
*/
|
|
1395
|
+
layout: RecordDetailRetrieveCreateResponse.Layout;
|
|
1396
|
+
/**
|
|
1397
|
+
* Custom Object API name for this create context.
|
|
1398
|
+
*/
|
|
1399
|
+
object_api_name: string;
|
|
1400
|
+
}
|
|
1401
|
+
export declare namespace RecordDetailRetrieveCreateResponse {
|
|
1402
|
+
/**
|
|
1403
|
+
* A configured action the caller can attempt through the existing Function
|
|
1404
|
+
* execution API.
|
|
1405
|
+
*/
|
|
1406
|
+
interface Action {
|
|
1407
|
+
/**
|
|
1408
|
+
* Stable native ObjectAction identifier.
|
|
1409
|
+
*/
|
|
1410
|
+
id: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Action API name; null for legacy actions.
|
|
1413
|
+
*/
|
|
1414
|
+
api_name: string | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* Associated Function API name for the unchanged Function execution endpoints.
|
|
1417
|
+
* Discovery does not grant execution or execution-read permission.
|
|
1418
|
+
*/
|
|
1419
|
+
function_api_name: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* Action display label.
|
|
1422
|
+
*/
|
|
1423
|
+
name: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* Configured action placements: LIST_VIEW appears in an object grid; DETAIL_VIEW
|
|
1426
|
+
* appears on a record page.
|
|
1427
|
+
*/
|
|
1428
|
+
visibility_preferences: Array<'LIST_VIEW' | 'DETAIL_VIEW'>;
|
|
1429
|
+
}
|
|
1430
|
+
interface Blocker {
|
|
1431
|
+
/**
|
|
1432
|
+
* REQUIRED_INPUT_UNAVAILABLE means a required input cannot be supplied through the
|
|
1433
|
+
* form; NO_SUPPORTED_INPUTS means the form has no supported inputs.
|
|
1434
|
+
*/
|
|
1435
|
+
code: 'REQUIRED_INPUT_UNAVAILABLE' | 'NO_SUPPORTED_INPUTS';
|
|
1436
|
+
/**
|
|
1437
|
+
* Caller-safe explanation of the blocker.
|
|
1438
|
+
*/
|
|
1439
|
+
message: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* Field API name when safe to disclose; null when omitted to avoid exposing an
|
|
1442
|
+
* unavailable or hidden field.
|
|
1443
|
+
*/
|
|
1444
|
+
field_api_name?: string | null;
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1448
|
+
* flow.
|
|
1449
|
+
*/
|
|
1450
|
+
interface DetailTextField {
|
|
1451
|
+
/**
|
|
1452
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
1453
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
1454
|
+
* read-only.
|
|
1455
|
+
*/
|
|
1456
|
+
api_name: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* TEXT and LONG_TEXT contain text; EMAIL, URL, and PHONE_NUMBER contain their
|
|
1459
|
+
* respective textual values.
|
|
1460
|
+
*/
|
|
1461
|
+
data_type: 'TEXT' | 'LONG_TEXT' | 'EMAIL' | 'URL' | 'PHONE_NUMBER';
|
|
1462
|
+
/**
|
|
1463
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1464
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1465
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
1466
|
+
*/
|
|
1467
|
+
editable: boolean;
|
|
1468
|
+
/**
|
|
1469
|
+
* Field display name.
|
|
1470
|
+
*/
|
|
1471
|
+
label: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
1474
|
+
* and scalar references.
|
|
1475
|
+
*/
|
|
1476
|
+
multiple: boolean;
|
|
1477
|
+
/**
|
|
1478
|
+
* Configured choice values; empty for non-choice fields.
|
|
1479
|
+
*/
|
|
1480
|
+
options: Array<string>;
|
|
1481
|
+
/**
|
|
1482
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
1483
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
1484
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
1485
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
1486
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1487
|
+
* by this requested flow).
|
|
1488
|
+
*/
|
|
1489
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
1490
|
+
/**
|
|
1491
|
+
* Whether a nonempty value is required by the field schema.
|
|
1492
|
+
*/
|
|
1493
|
+
required: boolean;
|
|
1494
|
+
/**
|
|
1495
|
+
* Readable text, including an empty string with value_state EMPTY; null when unset
|
|
1496
|
+
* or masked.
|
|
1497
|
+
*/
|
|
1498
|
+
value: string | null;
|
|
1499
|
+
/**
|
|
1500
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1501
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1502
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1503
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1504
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1505
|
+
*/
|
|
1506
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1507
|
+
/**
|
|
1508
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1509
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1510
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1511
|
+
*/
|
|
1512
|
+
viewable: boolean;
|
|
1513
|
+
/**
|
|
1514
|
+
* Maximum accepted characters, or null when unbounded.
|
|
1515
|
+
*/
|
|
1516
|
+
max_length?: number | null;
|
|
1517
|
+
/**
|
|
1518
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1519
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1520
|
+
*/
|
|
1521
|
+
reference_object?: string | null;
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1525
|
+
* flow.
|
|
1526
|
+
*/
|
|
1527
|
+
interface DetailNumberField {
|
|
1528
|
+
/**
|
|
1529
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
1530
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
1531
|
+
* read-only.
|
|
1532
|
+
*/
|
|
1533
|
+
api_name: string;
|
|
1534
|
+
/**
|
|
1535
|
+
* NUMBER contains a decimal quantity.
|
|
1536
|
+
*/
|
|
1537
|
+
data_type: 'NUMBER';
|
|
1538
|
+
/**
|
|
1539
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1540
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1541
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
1542
|
+
*/
|
|
1543
|
+
editable: boolean;
|
|
1544
|
+
/**
|
|
1545
|
+
* Field display name.
|
|
1546
|
+
*/
|
|
1547
|
+
label: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
1550
|
+
* and scalar references.
|
|
1551
|
+
*/
|
|
1552
|
+
multiple: boolean;
|
|
1553
|
+
/**
|
|
1554
|
+
* Configured choice values; empty for non-choice fields.
|
|
1555
|
+
*/
|
|
1556
|
+
options: Array<string>;
|
|
1557
|
+
/**
|
|
1558
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
1559
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
1560
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
1561
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
1562
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1563
|
+
* by this requested flow).
|
|
1564
|
+
*/
|
|
1565
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
1566
|
+
/**
|
|
1567
|
+
* Whether a nonempty value is required by the field schema.
|
|
1568
|
+
*/
|
|
1569
|
+
required: boolean;
|
|
1570
|
+
/**
|
|
1571
|
+
* Decimal quantity encoded as a string to preserve precision, for example 12.50.
|
|
1572
|
+
* Units follow the configured field's meaning. Null unless value_state is PRESENT.
|
|
1573
|
+
*/
|
|
1574
|
+
value: string | null;
|
|
1575
|
+
/**
|
|
1576
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1577
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1578
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1579
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1580
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1581
|
+
*/
|
|
1582
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1583
|
+
/**
|
|
1584
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1585
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1586
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1587
|
+
*/
|
|
1588
|
+
viewable: boolean;
|
|
1589
|
+
/**
|
|
1590
|
+
* Configured decimal places, or null.
|
|
1591
|
+
*/
|
|
1592
|
+
num_of_decimal_places?: number | null;
|
|
1593
|
+
/**
|
|
1594
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1595
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1596
|
+
*/
|
|
1597
|
+
reference_object?: string | null;
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1601
|
+
* flow.
|
|
1602
|
+
*/
|
|
1603
|
+
interface DetailBooleanField {
|
|
1604
|
+
/**
|
|
1605
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
1606
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
1607
|
+
* read-only.
|
|
1608
|
+
*/
|
|
1609
|
+
api_name: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* BOOLEAN contains true or false.
|
|
1612
|
+
*/
|
|
1613
|
+
data_type: 'BOOLEAN';
|
|
1614
|
+
/**
|
|
1615
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1616
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1617
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
1618
|
+
*/
|
|
1619
|
+
editable: boolean;
|
|
1620
|
+
/**
|
|
1621
|
+
* Field display name.
|
|
1622
|
+
*/
|
|
1623
|
+
label: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
1626
|
+
* and scalar references.
|
|
1627
|
+
*/
|
|
1628
|
+
multiple: boolean;
|
|
1629
|
+
/**
|
|
1630
|
+
* Configured choice values; empty for non-choice fields.
|
|
1631
|
+
*/
|
|
1632
|
+
options: Array<string>;
|
|
1633
|
+
/**
|
|
1634
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
1635
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
1636
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
1637
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
1638
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1639
|
+
* by this requested flow).
|
|
1640
|
+
*/
|
|
1641
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
1642
|
+
/**
|
|
1643
|
+
* Whether a nonempty value is required by the field schema.
|
|
1644
|
+
*/
|
|
1645
|
+
required: boolean;
|
|
1646
|
+
/**
|
|
1647
|
+
* Whether the configured condition is true; null unless value_state is PRESENT.
|
|
1648
|
+
*/
|
|
1649
|
+
value: boolean | null;
|
|
1650
|
+
/**
|
|
1651
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1652
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1653
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1654
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1655
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1656
|
+
*/
|
|
1657
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1658
|
+
/**
|
|
1659
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1660
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1661
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1662
|
+
*/
|
|
1663
|
+
viewable: boolean;
|
|
1664
|
+
/**
|
|
1665
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1666
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1667
|
+
*/
|
|
1668
|
+
reference_object?: string | null;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1672
|
+
* flow.
|
|
1673
|
+
*/
|
|
1674
|
+
interface DetailDateField {
|
|
1675
|
+
/**
|
|
1676
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
1677
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
1678
|
+
* read-only.
|
|
1679
|
+
*/
|
|
1680
|
+
api_name: string;
|
|
1681
|
+
/**
|
|
1682
|
+
* DATE contains a calendar date without a time or timezone.
|
|
1683
|
+
*/
|
|
1684
|
+
data_type: 'DATE';
|
|
1685
|
+
/**
|
|
1686
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1687
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1688
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
1689
|
+
*/
|
|
1690
|
+
editable: boolean;
|
|
1691
|
+
/**
|
|
1692
|
+
* Field display name.
|
|
1693
|
+
*/
|
|
1694
|
+
label: string;
|
|
1695
|
+
/**
|
|
1696
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
1697
|
+
* and scalar references.
|
|
1698
|
+
*/
|
|
1699
|
+
multiple: boolean;
|
|
1700
|
+
/**
|
|
1701
|
+
* Configured choice values; empty for non-choice fields.
|
|
1702
|
+
*/
|
|
1703
|
+
options: Array<string>;
|
|
1704
|
+
/**
|
|
1705
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
1706
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
1707
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
1708
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
1709
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1710
|
+
* by this requested flow).
|
|
1711
|
+
*/
|
|
1712
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
1713
|
+
/**
|
|
1714
|
+
* Whether a nonempty value is required by the field schema.
|
|
1715
|
+
*/
|
|
1716
|
+
required: boolean;
|
|
1717
|
+
/**
|
|
1718
|
+
* Calendar date in YYYY-MM-DD format, for example 2026-10-24; null unless
|
|
1719
|
+
* value_state is PRESENT.
|
|
1720
|
+
*/
|
|
1721
|
+
value: string | null;
|
|
1722
|
+
/**
|
|
1723
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1724
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1725
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1726
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1727
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1728
|
+
*/
|
|
1729
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1730
|
+
/**
|
|
1731
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1732
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1733
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1734
|
+
*/
|
|
1735
|
+
viewable: boolean;
|
|
1736
|
+
/**
|
|
1737
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1738
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1739
|
+
*/
|
|
1740
|
+
reference_object?: string | null;
|
|
1741
|
+
}
|
|
1742
|
+
/**
|
|
1743
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1744
|
+
* flow.
|
|
1745
|
+
*/
|
|
1746
|
+
interface DetailDateTimeField {
|
|
1747
|
+
/**
|
|
1748
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
1749
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
1750
|
+
* read-only.
|
|
1751
|
+
*/
|
|
1752
|
+
api_name: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* DATETIME contains an instant with a timezone.
|
|
1755
|
+
*/
|
|
1756
|
+
data_type: 'DATETIME';
|
|
1757
|
+
/**
|
|
1758
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1759
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1760
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
1761
|
+
*/
|
|
1762
|
+
editable: boolean;
|
|
1763
|
+
/**
|
|
1764
|
+
* Field display name.
|
|
1765
|
+
*/
|
|
1766
|
+
label: string;
|
|
1767
|
+
/**
|
|
1768
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
1769
|
+
* and scalar references.
|
|
1770
|
+
*/
|
|
1771
|
+
multiple: boolean;
|
|
1772
|
+
/**
|
|
1773
|
+
* Configured choice values; empty for non-choice fields.
|
|
1774
|
+
*/
|
|
1775
|
+
options: Array<string>;
|
|
1776
|
+
/**
|
|
1777
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
1778
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
1779
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
1780
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
1781
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1782
|
+
* by this requested flow).
|
|
1783
|
+
*/
|
|
1784
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
1785
|
+
/**
|
|
1786
|
+
* Whether a nonempty value is required by the field schema.
|
|
1787
|
+
*/
|
|
1788
|
+
required: boolean;
|
|
1789
|
+
/**
|
|
1790
|
+
* ISO 8601 timestamp with timezone and up to millisecond precision, matching
|
|
1791
|
+
* native record JSON responses; null unless value_state is PRESENT. System audit
|
|
1792
|
+
* timestamps are immutable.
|
|
1793
|
+
*/
|
|
1794
|
+
value: string | null;
|
|
1795
|
+
/**
|
|
1796
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1797
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1798
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1799
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1800
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1801
|
+
*/
|
|
1802
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1803
|
+
/**
|
|
1804
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1805
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1806
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1807
|
+
*/
|
|
1808
|
+
viewable: boolean;
|
|
1809
|
+
/**
|
|
1810
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1811
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1812
|
+
*/
|
|
1813
|
+
reference_object?: string | null;
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1817
|
+
* flow.
|
|
1818
|
+
*/
|
|
1819
|
+
interface DetailCurrencyField {
|
|
1820
|
+
/**
|
|
1821
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
1822
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
1823
|
+
* read-only.
|
|
1824
|
+
*/
|
|
1825
|
+
api_name: string;
|
|
1826
|
+
/**
|
|
1827
|
+
* CURRENCY contains a monetary amount and its currency.
|
|
1828
|
+
*/
|
|
1829
|
+
data_type: 'CURRENCY';
|
|
1830
|
+
/**
|
|
1831
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1832
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1833
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
1834
|
+
*/
|
|
1835
|
+
editable: boolean;
|
|
1836
|
+
/**
|
|
1837
|
+
* Field display name.
|
|
1838
|
+
*/
|
|
1839
|
+
label: string;
|
|
1840
|
+
/**
|
|
1841
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
1842
|
+
* and scalar references.
|
|
1843
|
+
*/
|
|
1844
|
+
multiple: boolean;
|
|
1845
|
+
/**
|
|
1846
|
+
* Configured choice values; empty for non-choice fields.
|
|
1847
|
+
*/
|
|
1848
|
+
options: Array<string>;
|
|
1849
|
+
/**
|
|
1850
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
1851
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
1852
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
1853
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
1854
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1855
|
+
* by this requested flow).
|
|
1856
|
+
*/
|
|
1857
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
1858
|
+
/**
|
|
1859
|
+
* Whether a nonempty value is required by the field schema.
|
|
1860
|
+
*/
|
|
1861
|
+
required: boolean;
|
|
1862
|
+
/**
|
|
1863
|
+
* Currency object with an ISO 4217 currency_type and decimal-string value, for
|
|
1864
|
+
* example {"currency_type": "USD", "value": "25.00"}. The amount is in currency
|
|
1865
|
+
* units, not cents. Null unless value_state is PRESENT.
|
|
1866
|
+
*/
|
|
1867
|
+
value: DetailCurrencyField.RecordDetailCurrency | null;
|
|
1868
|
+
/**
|
|
1869
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1870
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1871
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1872
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1873
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1874
|
+
*/
|
|
1875
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1876
|
+
/**
|
|
1877
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1878
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1879
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1880
|
+
*/
|
|
1881
|
+
viewable: boolean;
|
|
1882
|
+
/**
|
|
1883
|
+
* Configured ISO 4217 currency code, or null when dynamic.
|
|
1884
|
+
*/
|
|
1885
|
+
currency?: string | null;
|
|
1886
|
+
/**
|
|
1887
|
+
* Configured decimal places, or null.
|
|
1888
|
+
*/
|
|
1889
|
+
num_of_decimal_places?: number | null;
|
|
1890
|
+
/**
|
|
1891
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1892
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1893
|
+
*/
|
|
1894
|
+
reference_object?: string | null;
|
|
1895
|
+
}
|
|
1896
|
+
namespace DetailCurrencyField {
|
|
1897
|
+
/**
|
|
1898
|
+
* Platform Currency serialized with a decimal string amount to preserve precision.
|
|
1899
|
+
*/
|
|
1900
|
+
interface RecordDetailCurrency {
|
|
1901
|
+
/**
|
|
1902
|
+
* ISO 4217 currency code, for example USD or EUR.
|
|
1903
|
+
*/
|
|
1904
|
+
currency_type: string;
|
|
1905
|
+
/**
|
|
1906
|
+
* Decimal monetary amount in currency units, for example 25.00; not integer cents.
|
|
1907
|
+
*/
|
|
1908
|
+
value: string;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1913
|
+
* flow.
|
|
1914
|
+
*/
|
|
1915
|
+
interface DetailChoiceField {
|
|
1916
|
+
/**
|
|
1917
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
1918
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
1919
|
+
* read-only.
|
|
1920
|
+
*/
|
|
1921
|
+
api_name: string;
|
|
1922
|
+
/**
|
|
1923
|
+
* RADIO contains one configured choice.
|
|
1924
|
+
*/
|
|
1925
|
+
data_type: 'RADIO';
|
|
1926
|
+
/**
|
|
1927
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
1928
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
1929
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
1930
|
+
*/
|
|
1931
|
+
editable: boolean;
|
|
1932
|
+
/**
|
|
1933
|
+
* Field display name.
|
|
1934
|
+
*/
|
|
1935
|
+
label: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
1938
|
+
* and scalar references.
|
|
1939
|
+
*/
|
|
1940
|
+
multiple: boolean;
|
|
1941
|
+
/**
|
|
1942
|
+
* Configured choice values; empty for non-choice fields.
|
|
1943
|
+
*/
|
|
1944
|
+
options: Array<string>;
|
|
1945
|
+
/**
|
|
1946
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
1947
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
1948
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
1949
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
1950
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
1951
|
+
* by this requested flow).
|
|
1952
|
+
*/
|
|
1953
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
1954
|
+
/**
|
|
1955
|
+
* Whether a nonempty value is required by the field schema.
|
|
1956
|
+
*/
|
|
1957
|
+
required: boolean;
|
|
1958
|
+
/**
|
|
1959
|
+
* One value from options, or an empty string with value_state EMPTY; null when
|
|
1960
|
+
* unset or masked.
|
|
1961
|
+
*/
|
|
1962
|
+
value: string | null;
|
|
1963
|
+
/**
|
|
1964
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
1965
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
1966
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
1967
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
1968
|
+
* UNSUPPORTED does not determine edit permission.
|
|
1969
|
+
*/
|
|
1970
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
1971
|
+
/**
|
|
1972
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
1973
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
1974
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
1975
|
+
*/
|
|
1976
|
+
viewable: boolean;
|
|
1977
|
+
/**
|
|
1978
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
1979
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
1980
|
+
*/
|
|
1981
|
+
reference_object?: string | null;
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
1985
|
+
* flow.
|
|
1986
|
+
*/
|
|
1987
|
+
interface DetailMultiChoiceField {
|
|
1988
|
+
/**
|
|
1989
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
1990
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
1991
|
+
* read-only.
|
|
1992
|
+
*/
|
|
1993
|
+
api_name: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* SELECT contains zero or more configured choices.
|
|
1996
|
+
*/
|
|
1997
|
+
data_type: 'SELECT';
|
|
1998
|
+
/**
|
|
1999
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
2000
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
2001
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
2002
|
+
*/
|
|
2003
|
+
editable: boolean;
|
|
2004
|
+
/**
|
|
2005
|
+
* Field display name.
|
|
2006
|
+
*/
|
|
2007
|
+
label: string;
|
|
2008
|
+
/**
|
|
2009
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
2010
|
+
* and scalar references.
|
|
2011
|
+
*/
|
|
2012
|
+
multiple: boolean;
|
|
2013
|
+
/**
|
|
2014
|
+
* Configured choice values; empty for non-choice fields.
|
|
2015
|
+
*/
|
|
2016
|
+
options: Array<string>;
|
|
2017
|
+
/**
|
|
2018
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
2019
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
2020
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
2021
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
2022
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
2023
|
+
* by this requested flow).
|
|
2024
|
+
*/
|
|
2025
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
2026
|
+
/**
|
|
2027
|
+
* Whether a nonempty value is required by the field schema.
|
|
2028
|
+
*/
|
|
2029
|
+
required: boolean;
|
|
2030
|
+
/**
|
|
2031
|
+
* Selected values from options. An empty selection is [] with value_state EMPTY;
|
|
2032
|
+
* null when unset or masked.
|
|
2033
|
+
*/
|
|
2034
|
+
value: Array<string> | null;
|
|
2035
|
+
/**
|
|
2036
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
2037
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
2038
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
2039
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
2040
|
+
* UNSUPPORTED does not determine edit permission.
|
|
2041
|
+
*/
|
|
2042
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
2043
|
+
/**
|
|
2044
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
2045
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
2046
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
2047
|
+
*/
|
|
2048
|
+
viewable: boolean;
|
|
2049
|
+
/**
|
|
2050
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
2051
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
2052
|
+
*/
|
|
2053
|
+
reference_object?: string | null;
|
|
2054
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
2057
|
+
* flow.
|
|
2058
|
+
*/
|
|
2059
|
+
interface DetailReferenceField {
|
|
2060
|
+
/**
|
|
2061
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
2062
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
2063
|
+
* read-only.
|
|
2064
|
+
*/
|
|
2065
|
+
api_name: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* OG_REFERENCE_FIELD identifies a reference to the object named by
|
|
2068
|
+
* reference_object, including owner_role, created_by, and last_modified_by fields.
|
|
2069
|
+
*/
|
|
2070
|
+
data_type: 'OG_REFERENCE_FIELD';
|
|
2071
|
+
/**
|
|
2072
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
2073
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
2074
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
2075
|
+
*/
|
|
2076
|
+
editable: boolean;
|
|
2077
|
+
/**
|
|
2078
|
+
* Field display name.
|
|
2079
|
+
*/
|
|
2080
|
+
label: string;
|
|
2081
|
+
/**
|
|
2082
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
2083
|
+
* and scalar references.
|
|
2084
|
+
*/
|
|
2085
|
+
multiple: boolean;
|
|
2086
|
+
/**
|
|
2087
|
+
* Configured choice values; empty for non-choice fields.
|
|
2088
|
+
*/
|
|
2089
|
+
options: Array<string>;
|
|
2090
|
+
/**
|
|
2091
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
2092
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
2093
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
2094
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
2095
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
2096
|
+
* by this requested flow).
|
|
2097
|
+
*/
|
|
2098
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
2099
|
+
/**
|
|
2100
|
+
* Whether a nonempty value is required by the field schema.
|
|
2101
|
+
*/
|
|
2102
|
+
required: boolean;
|
|
2103
|
+
/**
|
|
2104
|
+
* Selected record identifier in the reference_object target; null when empty or
|
|
2105
|
+
* masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
|
|
2106
|
+
* record GET endpoint for Custom Object targets.
|
|
2107
|
+
*/
|
|
2108
|
+
value: string | null;
|
|
2109
|
+
/**
|
|
2110
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
2111
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
2112
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
2113
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
2114
|
+
* UNSUPPORTED does not determine edit permission.
|
|
2115
|
+
*/
|
|
2116
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
2117
|
+
/**
|
|
2118
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
2119
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
2120
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
2121
|
+
*/
|
|
2122
|
+
viewable: boolean;
|
|
2123
|
+
/**
|
|
2124
|
+
* Permitted presentation of the selection, or null when unavailable. Empty and
|
|
2125
|
+
* masked references have no presentation.
|
|
2126
|
+
*/
|
|
2127
|
+
display?: DetailReferenceField.ReferenceDisplay | null;
|
|
2128
|
+
/**
|
|
2129
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
2130
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
2131
|
+
*/
|
|
2132
|
+
reference_object?: string | null;
|
|
2133
|
+
}
|
|
2134
|
+
namespace DetailReferenceField {
|
|
2135
|
+
/**
|
|
2136
|
+
* Optional presentation of a readable reference, independent of its identifier.
|
|
2137
|
+
*/
|
|
2138
|
+
interface ReferenceDisplay {
|
|
2139
|
+
/**
|
|
2140
|
+
* Permitted display label; never synthesized from the identifier.
|
|
2141
|
+
*/
|
|
2142
|
+
label: string;
|
|
2143
|
+
/**
|
|
2144
|
+
* Permitted image URL, or null when unavailable.
|
|
2145
|
+
*/
|
|
2146
|
+
image_url?: string | null;
|
|
2147
|
+
/**
|
|
2148
|
+
* Permitted secondary text, or null when unavailable.
|
|
2149
|
+
*/
|
|
2150
|
+
secondary_label?: string | null;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
2155
|
+
* flow.
|
|
2156
|
+
*/
|
|
2157
|
+
interface DetailNativeReferenceField {
|
|
2158
|
+
/**
|
|
2159
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
2160
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
2161
|
+
* read-only.
|
|
2162
|
+
*/
|
|
2163
|
+
api_name: string;
|
|
2164
|
+
/**
|
|
2165
|
+
* NATIVE_EDGE identifies a relationship using the same selected identifier and
|
|
2166
|
+
* optional presentation contract.
|
|
2167
|
+
*/
|
|
2168
|
+
data_type: 'NATIVE_EDGE';
|
|
2169
|
+
/**
|
|
2170
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
2171
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
2172
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
2173
|
+
*/
|
|
2174
|
+
editable: boolean;
|
|
2175
|
+
/**
|
|
2176
|
+
* Field display name.
|
|
2177
|
+
*/
|
|
2178
|
+
label: string;
|
|
2179
|
+
/**
|
|
2180
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
2181
|
+
* and scalar references.
|
|
2182
|
+
*/
|
|
2183
|
+
multiple: boolean;
|
|
2184
|
+
/**
|
|
2185
|
+
* Configured choice values; empty for non-choice fields.
|
|
2186
|
+
*/
|
|
2187
|
+
options: Array<string>;
|
|
2188
|
+
/**
|
|
2189
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
2190
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
2191
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
2192
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
2193
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
2194
|
+
* by this requested flow).
|
|
2195
|
+
*/
|
|
2196
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
2197
|
+
/**
|
|
2198
|
+
* Whether a nonempty value is required by the field schema.
|
|
2199
|
+
*/
|
|
2200
|
+
required: boolean;
|
|
2201
|
+
/**
|
|
2202
|
+
* Selected record identifier in the reference_object target; null when empty or
|
|
2203
|
+
* masked. Use the Workers GET endpoint for Employee targets, or the Custom Object
|
|
2204
|
+
* record GET endpoint for Custom Object targets.
|
|
2205
|
+
*/
|
|
2206
|
+
value: string | null;
|
|
2207
|
+
/**
|
|
2208
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
2209
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
2210
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
2211
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
2212
|
+
* UNSUPPORTED does not determine edit permission.
|
|
2213
|
+
*/
|
|
2214
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
2215
|
+
/**
|
|
2216
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
2217
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
2218
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
2219
|
+
*/
|
|
2220
|
+
viewable: boolean;
|
|
2221
|
+
/**
|
|
2222
|
+
* Permitted presentation of the selection, or null when unavailable. Empty and
|
|
2223
|
+
* masked references have no presentation.
|
|
2224
|
+
*/
|
|
2225
|
+
display?: DetailNativeReferenceField.ReferenceDisplay | null;
|
|
2226
|
+
/**
|
|
2227
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
2228
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
2229
|
+
*/
|
|
2230
|
+
reference_object?: string | null;
|
|
2231
|
+
}
|
|
2232
|
+
namespace DetailNativeReferenceField {
|
|
2233
|
+
/**
|
|
2234
|
+
* Optional presentation of a readable reference, independent of its identifier.
|
|
2235
|
+
*/
|
|
2236
|
+
interface ReferenceDisplay {
|
|
2237
|
+
/**
|
|
2238
|
+
* Permitted display label; never synthesized from the identifier.
|
|
2239
|
+
*/
|
|
2240
|
+
label: string;
|
|
2241
|
+
/**
|
|
2242
|
+
* Permitted image URL, or null when unavailable.
|
|
2243
|
+
*/
|
|
2244
|
+
image_url?: string | null;
|
|
2245
|
+
/**
|
|
2246
|
+
* Permitted secondary text, or null when unavailable.
|
|
2247
|
+
*/
|
|
2248
|
+
secondary_label?: string | null;
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
2253
|
+
* flow.
|
|
2254
|
+
*/
|
|
2255
|
+
interface DetailPercentageField {
|
|
2256
|
+
/**
|
|
2257
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
2258
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
2259
|
+
* read-only.
|
|
2260
|
+
*/
|
|
2261
|
+
api_name: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* PERCENTAGE contains a decimal ratio, where 1 means 100%.
|
|
2264
|
+
*/
|
|
2265
|
+
data_type: 'PERCENTAGE';
|
|
2266
|
+
/**
|
|
2267
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
2268
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
2269
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
2270
|
+
*/
|
|
2271
|
+
editable: boolean;
|
|
2272
|
+
/**
|
|
2273
|
+
* Field display name.
|
|
2274
|
+
*/
|
|
2275
|
+
label: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
2278
|
+
* and scalar references.
|
|
2279
|
+
*/
|
|
2280
|
+
multiple: boolean;
|
|
2281
|
+
/**
|
|
2282
|
+
* Configured choice values; empty for non-choice fields.
|
|
2283
|
+
*/
|
|
2284
|
+
options: Array<string>;
|
|
2285
|
+
/**
|
|
2286
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
2287
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
2288
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
2289
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
2290
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
2291
|
+
* by this requested flow).
|
|
2292
|
+
*/
|
|
2293
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
2294
|
+
/**
|
|
2295
|
+
* Whether a nonempty value is required by the field schema.
|
|
2296
|
+
*/
|
|
2297
|
+
required: boolean;
|
|
2298
|
+
/**
|
|
2299
|
+
* JSON number containing a decimal ratio without a percent sign: 0, 0.3, 1 and 1.5
|
|
2300
|
+
* mean 0%, 30%, 100% and 150%. Null unless PRESENT.
|
|
2301
|
+
*/
|
|
2302
|
+
value: number | null;
|
|
2303
|
+
/**
|
|
2304
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
2305
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
2306
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
2307
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
2308
|
+
* UNSUPPORTED does not determine edit permission.
|
|
2309
|
+
*/
|
|
2310
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
2311
|
+
/**
|
|
2312
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
2313
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
2314
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
2315
|
+
*/
|
|
2316
|
+
viewable: boolean;
|
|
2317
|
+
/**
|
|
2318
|
+
* Configured decimal places, or null.
|
|
2319
|
+
*/
|
|
2320
|
+
num_of_decimal_places?: number | null;
|
|
2321
|
+
/**
|
|
2322
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
2323
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
2324
|
+
*/
|
|
2325
|
+
reference_object?: string | null;
|
|
2326
|
+
}
|
|
2327
|
+
/**
|
|
2328
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
2329
|
+
* flow.
|
|
2330
|
+
*/
|
|
2331
|
+
interface DetailTimeField {
|
|
2332
|
+
/**
|
|
2333
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
2334
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
2335
|
+
* read-only.
|
|
2336
|
+
*/
|
|
2337
|
+
api_name: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* TIME contains a time of day.
|
|
2340
|
+
*/
|
|
2341
|
+
data_type: 'TIME';
|
|
2342
|
+
/**
|
|
2343
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
2344
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
2345
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
2346
|
+
*/
|
|
2347
|
+
editable: boolean;
|
|
2348
|
+
/**
|
|
2349
|
+
* Field display name.
|
|
2350
|
+
*/
|
|
2351
|
+
label: string;
|
|
2352
|
+
/**
|
|
2353
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
2354
|
+
* and scalar references.
|
|
2355
|
+
*/
|
|
2356
|
+
multiple: boolean;
|
|
2357
|
+
/**
|
|
2358
|
+
* Configured choice values; empty for non-choice fields.
|
|
2359
|
+
*/
|
|
2360
|
+
options: Array<string>;
|
|
2361
|
+
/**
|
|
2362
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
2363
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
2364
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
2365
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
2366
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
2367
|
+
* by this requested flow).
|
|
2368
|
+
*/
|
|
2369
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
2370
|
+
/**
|
|
2371
|
+
* Whether a nonempty value is required by the field schema.
|
|
2372
|
+
*/
|
|
2373
|
+
required: boolean;
|
|
2374
|
+
/**
|
|
2375
|
+
* Time of day in HH:MM:SS format; null unless PRESENT.
|
|
2376
|
+
*/
|
|
2377
|
+
value: string | null;
|
|
2378
|
+
/**
|
|
2379
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
2380
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
2381
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
2382
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
2383
|
+
* UNSUPPORTED does not determine edit permission.
|
|
2384
|
+
*/
|
|
2385
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
2386
|
+
/**
|
|
2387
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
2388
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
2389
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
2390
|
+
*/
|
|
2391
|
+
viewable: boolean;
|
|
2392
|
+
/**
|
|
2393
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
2394
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
2395
|
+
*/
|
|
2396
|
+
reference_object?: string | null;
|
|
2397
|
+
}
|
|
2398
|
+
/**
|
|
2399
|
+
* A discoverable field and its initial value and capabilities for the requested
|
|
2400
|
+
* flow.
|
|
2401
|
+
*/
|
|
2402
|
+
interface DetailUnsupportedField {
|
|
2403
|
+
/**
|
|
2404
|
+
* Field key used by layout placements and canonical record PATCH changes. Direct
|
|
2405
|
+
* keys come from the Custom Object field definition; dotted related keys are
|
|
2406
|
+
* read-only.
|
|
2407
|
+
*/
|
|
2408
|
+
api_name: string;
|
|
2409
|
+
/**
|
|
2410
|
+
* Field types whose values this endpoint does not currently represent. Edit
|
|
2411
|
+
* permission is evaluated independently of value representation.
|
|
2412
|
+
*/
|
|
2413
|
+
data_type: 'ADDRESS' | 'REFERENCE_ID' | 'COORDINATE' | 'TIMESTAMPED_CURRENCY' | 'JSONB' | 'FILE';
|
|
2414
|
+
/**
|
|
2415
|
+
* Whether you can attempt to supply or change this field through the canonical
|
|
2416
|
+
* write API for the requested flow. This does not grant permission to browse
|
|
2417
|
+
* reference targets; submitted reference identifiers are validated when written.
|
|
2418
|
+
*/
|
|
2419
|
+
editable: boolean;
|
|
2420
|
+
/**
|
|
2421
|
+
* Field display name.
|
|
2422
|
+
*/
|
|
2423
|
+
label: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* Whether this field accepts multiple selections. True for SELECT; false for RADIO
|
|
2426
|
+
* and scalar references.
|
|
2427
|
+
*/
|
|
2428
|
+
multiple: boolean;
|
|
2429
|
+
/**
|
|
2430
|
+
* Configured choice values; empty for non-choice fields.
|
|
2431
|
+
*/
|
|
2432
|
+
options: Array<string>;
|
|
2433
|
+
/**
|
|
2434
|
+
* Why the field is read-only, or null when editable. Precedence: PERMISSION_DENIED
|
|
2435
|
+
* (no field read or update access), RECORD_LOCKED (writes locked), IMMUTABLE
|
|
2436
|
+
* (cannot change), MANAGED_WRITE_RESTRICTED (application-managed or generated
|
|
2437
|
+
* value), DERIVED (calculated value), MASKED (restricted value),
|
|
2438
|
+
* REFERENCE_UNAVAILABLE (unavailable reference target), UNSUPPORTED (not accepted
|
|
2439
|
+
* by this requested flow).
|
|
2440
|
+
*/
|
|
2441
|
+
read_only_reason: 'PERMISSION_DENIED' | 'RECORD_LOCKED' | 'IMMUTABLE' | 'MANAGED_WRITE_RESTRICTED' | 'DERIVED' | 'MASKED' | 'REFERENCE_UNAVAILABLE' | 'UNSUPPORTED' | null;
|
|
2442
|
+
/**
|
|
2443
|
+
* Whether a nonempty value is required by the field schema.
|
|
2444
|
+
*/
|
|
2445
|
+
required: boolean;
|
|
2446
|
+
/**
|
|
2447
|
+
* Always null. UNSUPPORTED withholds the value representation; MASKED takes
|
|
2448
|
+
* precedence for a restricted value. Neither state grants write permission.
|
|
2449
|
+
*/
|
|
2450
|
+
value: null;
|
|
2451
|
+
/**
|
|
2452
|
+
* State of the value supplied for this requested flow: PRESENT for a readable
|
|
2453
|
+
* nonempty value, including false and zero; EMPTY for null, an empty string, or an
|
|
2454
|
+
* empty array; MASKED when access to the field or a referenced value is
|
|
2455
|
+
* restricted; or UNSUPPORTED when the endpoint does not represent the value.
|
|
2456
|
+
* UNSUPPORTED does not determine edit permission.
|
|
2457
|
+
*/
|
|
2458
|
+
value_state: 'PRESENT' | 'EMPTY' | 'MASKED' | 'UNSUPPORTED';
|
|
2459
|
+
/**
|
|
2460
|
+
* Whether the field value supplied for this requested flow is readable. Create
|
|
2461
|
+
* responses describe only an authorized initial value and do not grant access to
|
|
2462
|
+
* any existing record. A referenced record may have separate access restrictions.
|
|
2463
|
+
*/
|
|
2464
|
+
viewable: boolean;
|
|
2465
|
+
/**
|
|
2466
|
+
* Target name for a supported reference: Employee or a Custom Object API name
|
|
2467
|
+
* ending in \_\_c. Null for other fields and unsupported reference targets.
|
|
2468
|
+
*/
|
|
2469
|
+
reference_object?: string | null;
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* Effective create layout after visibility and permission filtering.
|
|
2473
|
+
*/
|
|
2474
|
+
interface Layout {
|
|
2475
|
+
/**
|
|
2476
|
+
* Resolved saved layout API name.
|
|
2477
|
+
*/
|
|
2478
|
+
api_name: string;
|
|
2479
|
+
/**
|
|
2480
|
+
* Semantic record header.
|
|
2481
|
+
*/
|
|
2482
|
+
header: Layout.Header;
|
|
2483
|
+
/**
|
|
2484
|
+
* Ordered, visible tabs.
|
|
2485
|
+
*/
|
|
2486
|
+
tabs: Array<Layout.Tab>;
|
|
2487
|
+
}
|
|
2488
|
+
namespace Layout {
|
|
2489
|
+
/**
|
|
2490
|
+
* Semantic record header.
|
|
2491
|
+
*/
|
|
2492
|
+
interface Header {
|
|
2493
|
+
/**
|
|
2494
|
+
* Ordered summary field API names.
|
|
2495
|
+
*/
|
|
2496
|
+
fields: Array<string>;
|
|
2497
|
+
/**
|
|
2498
|
+
* Description field API name, or null when unavailable.
|
|
2499
|
+
*/
|
|
2500
|
+
description_field?: string | null;
|
|
2501
|
+
/**
|
|
2502
|
+
* Title field API name, or null when unavailable.
|
|
2503
|
+
*/
|
|
2504
|
+
title_field?: string | null;
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* Ordered, visible tab of sections in the effective record page layout.
|
|
2508
|
+
*/
|
|
2509
|
+
interface Tab {
|
|
2510
|
+
/**
|
|
2511
|
+
* Stable tab identifier.
|
|
2512
|
+
*/
|
|
2513
|
+
id: string;
|
|
2514
|
+
/**
|
|
2515
|
+
* Tab display name.
|
|
2516
|
+
*/
|
|
2517
|
+
label: string;
|
|
2518
|
+
/**
|
|
2519
|
+
* Ordered, visible sections.
|
|
2520
|
+
*/
|
|
2521
|
+
sections: Array<Tab.Section>;
|
|
2522
|
+
}
|
|
2523
|
+
namespace Tab {
|
|
2524
|
+
/**
|
|
2525
|
+
* Visible group of field placements, a deferred related list, or explicitly
|
|
2526
|
+
* unsupported content.
|
|
2527
|
+
*/
|
|
2528
|
+
interface Section {
|
|
2529
|
+
/**
|
|
2530
|
+
* Section identifier scoped to the effective layout.
|
|
2531
|
+
*/
|
|
2532
|
+
id: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* Suggested field columns; clients may adapt to available space.
|
|
2535
|
+
*/
|
|
2536
|
+
columns: number;
|
|
2537
|
+
/**
|
|
2538
|
+
* Ordered placements for a FIELDS section. Empty for RELATED_LIST and UNSUPPORTED
|
|
2539
|
+
* sections.
|
|
2540
|
+
*/
|
|
2541
|
+
fields: Array<Section.Field>;
|
|
2542
|
+
/**
|
|
2543
|
+
* Section display name.
|
|
2544
|
+
*/
|
|
2545
|
+
label: string;
|
|
2546
|
+
/**
|
|
2547
|
+
* FIELDS contains ordered field placements; RELATED_LIST describes a deferred
|
|
2548
|
+
* related-record grid without embedding its rows; UNSUPPORTED identifies visible
|
|
2549
|
+
* content this API cannot render.
|
|
2550
|
+
*/
|
|
2551
|
+
type: 'FIELDS' | 'RELATED_LIST' | 'UNSUPPORTED';
|
|
2552
|
+
/**
|
|
2553
|
+
* Ordered readable columns configured for a RELATED_LIST; empty for other
|
|
2554
|
+
* sections.
|
|
2555
|
+
*/
|
|
2556
|
+
column_field_api_names?: Array<string>;
|
|
2557
|
+
/**
|
|
2558
|
+
* Related Custom Object API name; null for other sections.
|
|
2559
|
+
*/
|
|
2560
|
+
object_api_name?: string | null;
|
|
2561
|
+
/**
|
|
2562
|
+
* CONTENT_NOT_SUPPORTED means this section requires a renderer outside this API;
|
|
2563
|
+
* RELATED_OBJECT_NOT_SUPPORTED means the related list targets a native object,
|
|
2564
|
+
* which this release cannot render. Null for supported field and Custom Object
|
|
2565
|
+
* related-list sections.
|
|
2566
|
+
*/
|
|
2567
|
+
reason?: 'CONTENT_NOT_SUPPORTED' | 'RELATED_OBJECT_NOT_SUPPORTED' | null;
|
|
2568
|
+
/**
|
|
2569
|
+
* Field on the related Custom Object that points to this record; null for other
|
|
2570
|
+
* sections.
|
|
2571
|
+
*/
|
|
2572
|
+
relationship_field_api_name?: string | null;
|
|
2573
|
+
}
|
|
2574
|
+
namespace Section {
|
|
2575
|
+
/**
|
|
2576
|
+
* Placement of a discoverable field in a saved layout; contains no field value.
|
|
2577
|
+
*/
|
|
2578
|
+
interface Field {
|
|
2579
|
+
/**
|
|
2580
|
+
* Field API name in the response fields map.
|
|
2581
|
+
*/
|
|
2582
|
+
field: string;
|
|
2583
|
+
/**
|
|
2584
|
+
* Whether this placement is read-only.
|
|
2585
|
+
*/
|
|
2586
|
+
read_only: boolean;
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
export interface RecordDetailRetrieveParams {
|
|
2593
|
+
/**
|
|
2594
|
+
* Custom Object API name, such as equipment\_\_c. Obtain it from the Custom Object
|
|
2595
|
+
* definition or the grid's configured object.
|
|
2596
|
+
*/
|
|
2597
|
+
object_api_name: string;
|
|
2598
|
+
/**
|
|
2599
|
+
* Select the saved Custom Object page layout by API name. Omit to use default.
|
|
2600
|
+
* Keep the resolved layout.api_name from the detail response when loading related
|
|
2601
|
+
* sections.
|
|
2602
|
+
*/
|
|
2603
|
+
layout_api_name?: string;
|
|
2604
|
+
}
|
|
2605
|
+
export interface RecordDetailRetrieveCreateParams {
|
|
1212
2606
|
/**
|
|
1213
2607
|
* Custom Object API name, such as equipment\_\_c. Obtain it from the Custom Object
|
|
1214
2608
|
* definition or the grid's configured object.
|
|
@@ -1222,6 +2616,6 @@ export interface RecordDetailRetrieveParams {
|
|
|
1222
2616
|
layout_api_name?: string;
|
|
1223
2617
|
}
|
|
1224
2618
|
export declare namespace RecordDetails {
|
|
1225
|
-
export { type RecordDetailRetrieveResponse as RecordDetailRetrieveResponse, type RecordDetailRetrieveParams as RecordDetailRetrieveParams, };
|
|
2619
|
+
export { type RecordDetailRetrieveResponse as RecordDetailRetrieveResponse, type RecordDetailRetrieveCreateResponse as RecordDetailRetrieveCreateResponse, type RecordDetailRetrieveParams as RecordDetailRetrieveParams, type RecordDetailRetrieveCreateParams as RecordDetailRetrieveCreateParams, };
|
|
1226
2620
|
}
|
|
1227
2621
|
//# sourceMappingURL=record-details.d.ts.map
|