@rippling/rippling-sdk 0.2.0-alpha.85 → 0.2.0-alpha.86
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/core/platform/custom-objects/category.d.mts +125 -0
- package/core/platform/custom-objects/category.d.mts.map +1 -0
- package/core/platform/custom-objects/category.d.ts +125 -0
- package/core/platform/custom-objects/category.d.ts.map +1 -0
- package/core/platform/custom-objects/category.js +188 -0
- package/core/platform/custom-objects/category.js.map +1 -0
- package/core/platform/custom-objects/category.mjs +178 -0
- package/core/platform/custom-objects/category.mjs.map +1 -0
- package/core/platform/custom-objects/definition.d.mts +147 -0
- package/core/platform/custom-objects/definition.d.mts.map +1 -0
- package/core/platform/custom-objects/definition.d.ts +147 -0
- package/core/platform/custom-objects/definition.d.ts.map +1 -0
- package/core/platform/custom-objects/definition.js +200 -0
- package/core/platform/custom-objects/definition.js.map +1 -0
- package/core/platform/custom-objects/definition.mjs +190 -0
- package/core/platform/custom-objects/definition.mjs.map +1 -0
- package/core/platform/custom-objects/fields.d.mts +302 -0
- package/core/platform/custom-objects/fields.d.mts.map +1 -0
- package/core/platform/custom-objects/fields.d.ts +302 -0
- package/core/platform/custom-objects/fields.d.ts.map +1 -0
- package/core/platform/custom-objects/fields.js +369 -0
- package/core/platform/custom-objects/fields.js.map +1 -0
- package/core/platform/custom-objects/fields.mjs +347 -0
- package/core/platform/custom-objects/fields.mjs.map +1 -0
- package/core/platform/custom-objects/function-runtime.d.mts +42 -0
- package/core/platform/custom-objects/function-runtime.d.mts.map +1 -0
- package/core/platform/custom-objects/function-runtime.d.ts +42 -0
- package/core/platform/custom-objects/function-runtime.d.ts.map +1 -0
- package/core/platform/custom-objects/function-runtime.js +38 -0
- package/core/platform/custom-objects/function-runtime.js.map +1 -0
- package/core/platform/custom-objects/function-runtime.mjs +35 -0
- package/core/platform/custom-objects/function-runtime.mjs.map +1 -0
- package/core/platform/custom-objects/lifecycle.d.mts +83 -0
- package/core/platform/custom-objects/lifecycle.d.mts.map +1 -0
- package/core/platform/custom-objects/lifecycle.d.ts +83 -0
- package/core/platform/custom-objects/lifecycle.d.ts.map +1 -0
- package/core/platform/custom-objects/lifecycle.js +372 -0
- package/core/platform/custom-objects/lifecycle.js.map +1 -0
- package/core/platform/custom-objects/lifecycle.mjs +367 -0
- package/core/platform/custom-objects/lifecycle.mjs.map +1 -0
- package/core/platform/custom-objects/manager.d.mts +354 -0
- package/core/platform/custom-objects/manager.d.mts.map +1 -0
- package/core/platform/custom-objects/manager.d.ts +354 -0
- package/core/platform/custom-objects/manager.d.ts.map +1 -0
- package/core/platform/custom-objects/manager.js +646 -0
- package/core/platform/custom-objects/manager.js.map +1 -0
- package/core/platform/custom-objects/manager.mjs +637 -0
- package/core/platform/custom-objects/manager.mjs.map +1 -0
- package/core/platform/custom-objects/provisioning.d.mts +138 -0
- package/core/platform/custom-objects/provisioning.d.mts.map +1 -0
- package/core/platform/custom-objects/provisioning.d.ts +138 -0
- package/core/platform/custom-objects/provisioning.d.ts.map +1 -0
- package/core/platform/custom-objects/provisioning.js +455 -0
- package/core/platform/custom-objects/provisioning.js.map +1 -0
- package/core/platform/custom-objects/provisioning.mjs +447 -0
- package/core/platform/custom-objects/provisioning.mjs.map +1 -0
- package/core/platform/custom-objects/rql.d.mts +122 -0
- package/core/platform/custom-objects/rql.d.mts.map +1 -0
- package/core/platform/custom-objects/rql.d.ts +122 -0
- package/core/platform/custom-objects/rql.d.ts.map +1 -0
- package/core/platform/custom-objects/rql.js +225 -0
- package/core/platform/custom-objects/rql.js.map +1 -0
- package/core/platform/custom-objects/rql.mjs +222 -0
- package/core/platform/custom-objects/rql.mjs.map +1 -0
- package/core/platform/custom-objects/schema-manager.d.mts +203 -0
- package/core/platform/custom-objects/schema-manager.d.mts.map +1 -0
- package/core/platform/custom-objects/schema-manager.d.ts +203 -0
- package/core/platform/custom-objects/schema-manager.d.ts.map +1 -0
- package/core/platform/custom-objects/schema-manager.js +256 -0
- package/core/platform/custom-objects/schema-manager.js.map +1 -0
- package/core/platform/custom-objects/schema-manager.mjs +249 -0
- package/core/platform/custom-objects/schema-manager.mjs.map +1 -0
- package/core/platform/custom-objects/typed-rql.d.mts +157 -0
- package/core/platform/custom-objects/typed-rql.d.mts.map +1 -0
- package/core/platform/custom-objects/typed-rql.d.ts +157 -0
- package/core/platform/custom-objects/typed-rql.d.ts.map +1 -0
- package/core/platform/custom-objects/typed-rql.js +583 -0
- package/core/platform/custom-objects/typed-rql.js.map +1 -0
- package/core/platform/custom-objects/typed-rql.mjs +580 -0
- package/core/platform/custom-objects/typed-rql.mjs.map +1 -0
- package/core/platform/custom-objects/types.d.mts +549 -0
- package/core/platform/custom-objects/types.d.mts.map +1 -0
- package/core/platform/custom-objects/types.d.ts +549 -0
- package/core/platform/custom-objects/types.d.ts.map +1 -0
- package/core/platform/custom-objects/types.js +20 -0
- package/core/platform/custom-objects/types.js.map +1 -0
- package/core/platform/custom-objects/types.mjs +17 -0
- package/core/platform/custom-objects/types.mjs.map +1 -0
- package/core/platform/custom-objects/validation.d.mts +97 -0
- package/core/platform/custom-objects/validation.d.mts.map +1 -0
- package/core/platform/custom-objects/validation.d.ts +97 -0
- package/core/platform/custom-objects/validation.d.ts.map +1 -0
- package/core/platform/custom-objects/validation.js +477 -0
- package/core/platform/custom-objects/validation.js.map +1 -0
- package/core/platform/custom-objects/validation.mjs +465 -0
- package/core/platform/custom-objects/validation.mjs.map +1 -0
- package/core/platform/custom-objects.d.mts +67 -0
- package/core/platform/custom-objects.d.mts.map +1 -0
- package/core/platform/custom-objects.d.ts +67 -0
- package/core/platform/custom-objects.d.ts.map +1 -0
- package/core/platform/custom-objects.js +118 -0
- package/core/platform/custom-objects.js.map +1 -0
- package/core/platform/custom-objects.mjs +45 -0
- package/core/platform/custom-objects.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/custom-objects/custom-objects.d.mts +7 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +7 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +129 -54
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +129 -54
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/levels.d.mts +25 -4
- package/resources/levels.d.mts.map +1 -1
- package/resources/levels.d.ts +25 -4
- package/resources/levels.d.ts.map +1 -1
- package/src/core/platform/custom-objects/category.ts +294 -0
- package/src/core/platform/custom-objects/definition.ts +373 -0
- package/src/core/platform/custom-objects/fields.ts +653 -0
- package/src/core/platform/custom-objects/function-runtime.ts +76 -0
- package/src/core/platform/custom-objects/lifecycle.ts +557 -0
- package/src/core/platform/custom-objects/manager.ts +959 -0
- package/src/core/platform/custom-objects/provisioning.ts +672 -0
- package/src/core/platform/custom-objects/rql.ts +375 -0
- package/src/core/platform/custom-objects/schema-manager.ts +351 -0
- package/src/core/platform/custom-objects/typed-rql.ts +1273 -0
- package/src/core/platform/custom-objects/types.ts +753 -0
- package/src/core/platform/custom-objects/validation.ts +573 -0
- package/src/core/platform/custom-objects.ts +269 -0
- package/src/resources/custom-objects/custom-objects.ts +8 -0
- package/src/resources/custom-objects/fields.ts +192 -59
- package/src/resources/levels.ts +28 -4
- 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
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public custom-object authoring surface for the Rippling TypeScript SDK.
|
|
3
|
+
*
|
|
4
|
+
* Import this module when you want a TypeScript-first, structural definition
|
|
5
|
+
* layer for custom objects that can be reused across manifests, functions,
|
|
6
|
+
* validators, tests, and agent-authored code.
|
|
7
|
+
*
|
|
8
|
+
* The implementation lives under `core/platform/custom-objects/`, but this file
|
|
9
|
+
* is the stable public entrypoint that consumers should import from:
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { defineCustomObject, text } from '@rippling/rippling-sdk/core/platform/custom-objects';
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* Manifest-specific adapters for typed custom objects live under:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { registerManifestCustomObject } from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/** Section-definition helper and foundational schema types. */
|
|
23
|
+
export { section } from './custom-objects/types';
|
|
24
|
+
|
|
25
|
+
/** Type-level contracts derived from typed custom-object definitions. */
|
|
26
|
+
export type {
|
|
27
|
+
AnyCustomObjectDefinition,
|
|
28
|
+
AnyFieldDefinition,
|
|
29
|
+
CategoryApiName,
|
|
30
|
+
CreateInput,
|
|
31
|
+
CustomFieldApiName,
|
|
32
|
+
CustomObjectApiName,
|
|
33
|
+
CustomObjectDefinition,
|
|
34
|
+
CustomObjectIdentity,
|
|
35
|
+
CustomRecordFields,
|
|
36
|
+
FieldDefinitions,
|
|
37
|
+
FieldNames,
|
|
38
|
+
FieldValue,
|
|
39
|
+
FileReference,
|
|
40
|
+
FormulaFieldDefinition,
|
|
41
|
+
FormulaFieldKind,
|
|
42
|
+
FormulaValueByKind,
|
|
43
|
+
LogicalCategoryName,
|
|
44
|
+
LogicalCustomFieldName,
|
|
45
|
+
LogicalCustomObjectName,
|
|
46
|
+
LookupFieldDefinition,
|
|
47
|
+
LookupReference,
|
|
48
|
+
LookupTarget,
|
|
49
|
+
NameFieldDefinition,
|
|
50
|
+
NativeModelTarget,
|
|
51
|
+
OptionalWritableFieldNames,
|
|
52
|
+
ParentChildFieldDefinition,
|
|
53
|
+
ReadonlyFieldNames,
|
|
54
|
+
RecordShape,
|
|
55
|
+
RequiredWritableFieldNames,
|
|
56
|
+
ResolvedFieldDefinition,
|
|
57
|
+
SectionDefinition,
|
|
58
|
+
SectionDefinitions,
|
|
59
|
+
StandardCreateFields,
|
|
60
|
+
StandardRecordFields,
|
|
61
|
+
TargetApiName,
|
|
62
|
+
UpdateInput,
|
|
63
|
+
WritableFieldNames,
|
|
64
|
+
} from './custom-objects/types';
|
|
65
|
+
|
|
66
|
+
/** Field factories and reusable schema fragments. */
|
|
67
|
+
export {
|
|
68
|
+
boolean,
|
|
69
|
+
currency,
|
|
70
|
+
date,
|
|
71
|
+
datetime,
|
|
72
|
+
email,
|
|
73
|
+
file,
|
|
74
|
+
formula,
|
|
75
|
+
longText,
|
|
76
|
+
lookup,
|
|
77
|
+
nativeModel,
|
|
78
|
+
number,
|
|
79
|
+
parentChild,
|
|
80
|
+
percentage,
|
|
81
|
+
phone,
|
|
82
|
+
radio,
|
|
83
|
+
sections,
|
|
84
|
+
select,
|
|
85
|
+
text,
|
|
86
|
+
time,
|
|
87
|
+
url,
|
|
88
|
+
} from './custom-objects/fields';
|
|
89
|
+
|
|
90
|
+
/** Immutable definition helpers for creating and extending schemas. */
|
|
91
|
+
export {
|
|
92
|
+
defineCustomObject,
|
|
93
|
+
extendCustomObject,
|
|
94
|
+
fieldNames,
|
|
95
|
+
getFieldDefinition,
|
|
96
|
+
isWritableField,
|
|
97
|
+
toCustomCategoryApiName,
|
|
98
|
+
toCustomFieldApiName,
|
|
99
|
+
toCustomObjectApiName,
|
|
100
|
+
} from './custom-objects/definition';
|
|
101
|
+
|
|
102
|
+
/** Runtime validation result types for schema and record checks. */
|
|
103
|
+
export type { ValidationIssue, ValidationResult } from './custom-objects/validation';
|
|
104
|
+
|
|
105
|
+
/** Runtime validation and typed-record helpers. */
|
|
106
|
+
export {
|
|
107
|
+
asTypedRecord,
|
|
108
|
+
assertValidCreateInput,
|
|
109
|
+
assertValidUpdateInput,
|
|
110
|
+
getRecordValue,
|
|
111
|
+
validateCreateInput,
|
|
112
|
+
validateCustomObjectDefinition,
|
|
113
|
+
validateLogicalCategoryName,
|
|
114
|
+
validateLogicalCustomFieldName,
|
|
115
|
+
validateLogicalCustomObjectName,
|
|
116
|
+
validateUpdateInput,
|
|
117
|
+
} from './custom-objects/validation';
|
|
118
|
+
|
|
119
|
+
/** Typed RQL helper types for custom-object query and formula authoring. */
|
|
120
|
+
export type {
|
|
121
|
+
CustomObjectRqlHelpers,
|
|
122
|
+
RqlComparableValue,
|
|
123
|
+
RqlFieldName,
|
|
124
|
+
RqlFieldScope,
|
|
125
|
+
RqlFieldToken,
|
|
126
|
+
RqlFragment,
|
|
127
|
+
RqlInterpolation,
|
|
128
|
+
RqlValue,
|
|
129
|
+
StandardRqlFieldName,
|
|
130
|
+
} from './custom-objects/rql';
|
|
131
|
+
|
|
132
|
+
/** Typed parsed-string RQL field-name types for custom-object query authoring. */
|
|
133
|
+
export type { ParsedRqlFieldName, ParsedRqlStandardFieldName } from './custom-objects/typed-rql';
|
|
134
|
+
|
|
135
|
+
/** Typed RQL helper factories for custom-object query authoring. */
|
|
136
|
+
export { createRqlHelpers } from './custom-objects/rql';
|
|
137
|
+
|
|
138
|
+
/** Parsed-string RQL compiler that validates logical field names and value types. */
|
|
139
|
+
export { typedRql } from './custom-objects/typed-rql';
|
|
140
|
+
|
|
141
|
+
/** Typed category-definition and lifecycle types for custom-object metadata. */
|
|
142
|
+
export type {
|
|
143
|
+
CustomObjectCategoryDefinition,
|
|
144
|
+
CustomObjectCategoryLifecycleAction,
|
|
145
|
+
CustomObjectCategoryMutationOptions,
|
|
146
|
+
ProvisionedCustomObjectCategory,
|
|
147
|
+
ReconciledCustomObjectCategory,
|
|
148
|
+
} from './custom-objects/category';
|
|
149
|
+
|
|
150
|
+
/** Typed category-definition helpers for custom-object metadata. */
|
|
151
|
+
export {
|
|
152
|
+
buildObjectCategoryCreateParams,
|
|
153
|
+
buildObjectCategoryUpdateParams,
|
|
154
|
+
defineCustomObjectCategory,
|
|
155
|
+
deleteCustomObjectCategoryDefinition,
|
|
156
|
+
provisionCustomObjectCategoryDefinition,
|
|
157
|
+
provisionCustomObjectCategoryDefinitions,
|
|
158
|
+
reconcileCustomObjectCategoryDefinition,
|
|
159
|
+
reconcileCustomObjectCategoryDefinitions,
|
|
160
|
+
} from './custom-objects/category';
|
|
161
|
+
|
|
162
|
+
/** Provisioning result and option types for the REST custom-object helpers. */
|
|
163
|
+
export type {
|
|
164
|
+
ProvisionCustomObjectOptions,
|
|
165
|
+
ProvisionCustomObjectsOptions,
|
|
166
|
+
ProvisionableFieldParams,
|
|
167
|
+
ProvisionedCustomObject,
|
|
168
|
+
} from './custom-objects/provisioning';
|
|
169
|
+
|
|
170
|
+
/** Helpers that compile typed schemas into low-level REST custom-object payloads. */
|
|
171
|
+
export {
|
|
172
|
+
buildCustomObjectCreateParams,
|
|
173
|
+
buildCustomObjectNameFieldDetails,
|
|
174
|
+
buildCustomObjectUpdateParams,
|
|
175
|
+
buildProvisionableFieldParams,
|
|
176
|
+
provisionCustomObjectDefinition,
|
|
177
|
+
provisionCustomObjectDefinitions,
|
|
178
|
+
} from './custom-objects/provisioning';
|
|
179
|
+
|
|
180
|
+
/** Schema-lifecycle types for reconciling typed definitions with remote metadata. */
|
|
181
|
+
export type {
|
|
182
|
+
CustomObjectLifecycleAction,
|
|
183
|
+
ReconcileCustomObjectDefinitionOptions,
|
|
184
|
+
ReconcileCustomObjectDefinitionsOptions,
|
|
185
|
+
ReconciledCustomObject,
|
|
186
|
+
ReconciledCustomObjectField,
|
|
187
|
+
} from './custom-objects/lifecycle';
|
|
188
|
+
|
|
189
|
+
/** Schema-lifecycle helpers for reconciling typed definitions with remote metadata. */
|
|
190
|
+
export {
|
|
191
|
+
deleteCustomObjectDefinition,
|
|
192
|
+
reconcileCustomObjectDefinition,
|
|
193
|
+
reconcileCustomObjectDefinitions,
|
|
194
|
+
} from './custom-objects/lifecycle';
|
|
195
|
+
|
|
196
|
+
/** Typed schema-manager classes that bind definitions to a specific SDK client. */
|
|
197
|
+
export type {} from './custom-objects/schema-manager';
|
|
198
|
+
|
|
199
|
+
/** Typed schema-manager classes that bind definitions to a specific SDK client. */
|
|
200
|
+
export {
|
|
201
|
+
COSchemaManager,
|
|
202
|
+
CustomObjectSchemaManager,
|
|
203
|
+
TypedCustomObjectCategoryManager,
|
|
204
|
+
TypedCustomObjectSchemaManager,
|
|
205
|
+
} from './custom-objects/schema-manager';
|
|
206
|
+
|
|
207
|
+
/** Low-level typed field-metadata payloads used by the generated REST resources. */
|
|
208
|
+
export type {
|
|
209
|
+
ChoiceCustomObjectFieldDataType,
|
|
210
|
+
CurrencyCustomObjectFieldDataType,
|
|
211
|
+
CustomObjectFieldDataType,
|
|
212
|
+
CustomObjectFieldDerivedAggregationFilter,
|
|
213
|
+
CustomObjectFieldDerivedAggregatedField,
|
|
214
|
+
CustomObjectFieldFormulaAttrMetas,
|
|
215
|
+
CustomObjectFieldRqlDefinition,
|
|
216
|
+
CustomObjectFieldSection,
|
|
217
|
+
CustomObjectFieldSectionConfig,
|
|
218
|
+
CustomObjectFieldType,
|
|
219
|
+
CustomObjectNameFieldDetails,
|
|
220
|
+
DateCustomObjectFieldDataType,
|
|
221
|
+
DatetimeCustomObjectFieldDataType,
|
|
222
|
+
EmailCustomObjectFieldDataType,
|
|
223
|
+
FileCustomObjectFieldDataType,
|
|
224
|
+
LongTextCustomObjectFieldDataType,
|
|
225
|
+
NumberCustomObjectFieldDataType,
|
|
226
|
+
PercentageCustomObjectFieldDataType,
|
|
227
|
+
PhoneNumberCustomObjectFieldDataType,
|
|
228
|
+
ReferenceCustomObjectFieldDataType,
|
|
229
|
+
TextCustomObjectFieldDataType,
|
|
230
|
+
TimeCustomObjectFieldDataType,
|
|
231
|
+
URLCustomObjectFieldDataType,
|
|
232
|
+
} from '../../resources/custom-objects/fields';
|
|
233
|
+
|
|
234
|
+
/** Typed record-manager adapter, error, and pagination types. */
|
|
235
|
+
export type {
|
|
236
|
+
CustomObjectManagerOptions,
|
|
237
|
+
CustomObjectRecordAdapter,
|
|
238
|
+
CustomObjectRecordBulkCreateRequest,
|
|
239
|
+
CustomObjectRecordBulkDeleteRequest,
|
|
240
|
+
CustomObjectRecordBulkUpdateRequest,
|
|
241
|
+
CustomObjectRecordQueryResponse,
|
|
242
|
+
CustomObjectRecordsClient,
|
|
243
|
+
InMemoryCustomObjectRecordAdapterOptions,
|
|
244
|
+
TypedBatchWriteOptions,
|
|
245
|
+
TypedBulkUpdateInput,
|
|
246
|
+
TypedRecordPage,
|
|
247
|
+
TypedRecordPageOptions,
|
|
248
|
+
TypedRecordQueryOptions,
|
|
249
|
+
} from './custom-objects/manager';
|
|
250
|
+
|
|
251
|
+
/** Typed record-manager utilities for CRUD, batch operations, and records-resource/in-memory adapters. */
|
|
252
|
+
export {
|
|
253
|
+
COManager,
|
|
254
|
+
CustomObjectManager,
|
|
255
|
+
CustomObjectRecordValidationError,
|
|
256
|
+
InMemoryCustomObjectRecordAdapter,
|
|
257
|
+
TypedCustomObjectRecordManager,
|
|
258
|
+
createCustomObjectRecordAdapter,
|
|
259
|
+
} from './custom-objects/manager';
|
|
260
|
+
|
|
261
|
+
/** Shared function-runtime bootstrap types for custom-object-backed handlers. */
|
|
262
|
+
export type {
|
|
263
|
+
CreateCustomObjectFunctionRuntimeOptions,
|
|
264
|
+
CustomObjectFunctionRuntime,
|
|
265
|
+
CustomObjectFunctionRuntimeClient,
|
|
266
|
+
} from './custom-objects/function-runtime';
|
|
267
|
+
|
|
268
|
+
/** Small bootstrap helper that creates one SDK client plus typed record managers for a function invocation. */
|
|
269
|
+
export { createCustomObjectFunctionRuntime } from './custom-objects/function-runtime';
|
|
@@ -89,6 +89,7 @@ export class CustomObjects extends APIResource {
|
|
|
89
89
|
|
|
90
90
|
export type CustomObjectsPageCursorURL = PageCursorURL<CustomObject>;
|
|
91
91
|
|
|
92
|
+
/** Public custom-object DTO returned by the REST API. */
|
|
92
93
|
export interface CustomObject {
|
|
93
94
|
/**
|
|
94
95
|
* Identifier field
|
|
@@ -151,6 +152,7 @@ export interface CustomObject {
|
|
|
151
152
|
owner_id?: string;
|
|
152
153
|
}
|
|
153
154
|
|
|
155
|
+
/** Request payload accepted by `client.customObjects.create(...)`. */
|
|
154
156
|
export interface CustomObjectCreateParams {
|
|
155
157
|
/**
|
|
156
158
|
* The category that this custom object belongs to.
|
|
@@ -168,6 +170,7 @@ export interface CustomObjectCreateParams {
|
|
|
168
170
|
name?: string;
|
|
169
171
|
}
|
|
170
172
|
|
|
173
|
+
/** Request payload accepted by `client.customObjects.update(...)`. */
|
|
171
174
|
export interface CustomObjectUpdateParams {
|
|
172
175
|
/**
|
|
173
176
|
* The category that this custom object belongs to.
|
|
@@ -179,6 +182,11 @@ export interface CustomObjectUpdateParams {
|
|
|
179
182
|
*/
|
|
180
183
|
description?: string;
|
|
181
184
|
|
|
185
|
+
/**
|
|
186
|
+
* Whether to record the history of the custom object.
|
|
187
|
+
*/
|
|
188
|
+
enable_history?: boolean;
|
|
189
|
+
|
|
182
190
|
/**
|
|
183
191
|
* The name of the custom object.
|
|
184
192
|
*/
|
|
@@ -77,6 +77,175 @@ export class Fields extends APIResource {
|
|
|
77
77
|
|
|
78
78
|
export type CustomObjectFieldsPageCursorURL = PageCursorURL<CustomObjectField>;
|
|
79
79
|
|
|
80
|
+
/** Supported wire-level field-type identifiers for custom-object fields. */
|
|
81
|
+
export type CustomObjectFieldType =
|
|
82
|
+
| 'TEXT'
|
|
83
|
+
| 'LONG_TEXT'
|
|
84
|
+
| 'EMAIL'
|
|
85
|
+
| 'URL'
|
|
86
|
+
| 'PHONE_NUMBER'
|
|
87
|
+
| 'NUMBER'
|
|
88
|
+
| 'CURRENCY'
|
|
89
|
+
| 'PERCENTAGE'
|
|
90
|
+
| 'DATE'
|
|
91
|
+
| 'DATETIME'
|
|
92
|
+
| 'TIME'
|
|
93
|
+
| 'SELECT'
|
|
94
|
+
| 'RADIO'
|
|
95
|
+
| 'BOOLEAN'
|
|
96
|
+
| 'FILE'
|
|
97
|
+
| 'OG_REFERENCE_FIELD';
|
|
98
|
+
|
|
99
|
+
/** Structured `data_type` payload for text fields. */
|
|
100
|
+
export interface TextCustomObjectFieldDataType {
|
|
101
|
+
field_type: 'TEXT';
|
|
102
|
+
max_length?: number;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** Structured `data_type` payload for long-text fields. */
|
|
106
|
+
export interface LongTextCustomObjectFieldDataType {
|
|
107
|
+
field_type: 'LONG_TEXT';
|
|
108
|
+
max_length?: number;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** Structured `data_type` payload for email fields. */
|
|
112
|
+
export interface EmailCustomObjectFieldDataType {
|
|
113
|
+
field_type: 'EMAIL';
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** Structured `data_type` payload for URL fields. */
|
|
117
|
+
export interface URLCustomObjectFieldDataType {
|
|
118
|
+
field_type: 'URL';
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** Structured `data_type` payload for phone-number fields. */
|
|
122
|
+
export interface PhoneNumberCustomObjectFieldDataType {
|
|
123
|
+
field_type: 'PHONE_NUMBER';
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** Structured `data_type` payload for numeric fields. */
|
|
127
|
+
export interface NumberCustomObjectFieldDataType {
|
|
128
|
+
field_type: 'NUMBER';
|
|
129
|
+
num_of_decimal_places?: number;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** Structured `data_type` payload for currency fields. */
|
|
133
|
+
export interface CurrencyCustomObjectFieldDataType {
|
|
134
|
+
field_type: 'CURRENCY';
|
|
135
|
+
currency?: string;
|
|
136
|
+
num_of_decimal_places?: number;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** Structured `data_type` payload for percentage fields. */
|
|
140
|
+
export interface PercentageCustomObjectFieldDataType {
|
|
141
|
+
field_type: 'PERCENTAGE';
|
|
142
|
+
num_of_decimal_places?: number;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** Structured `data_type` payload for date fields. */
|
|
146
|
+
export interface DateCustomObjectFieldDataType {
|
|
147
|
+
field_type: 'DATE';
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** Structured `data_type` payload for date-time fields. */
|
|
151
|
+
export interface DatetimeCustomObjectFieldDataType {
|
|
152
|
+
field_type: 'DATETIME';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** Structured `data_type` payload for time-of-day fields. */
|
|
156
|
+
export interface TimeCustomObjectFieldDataType {
|
|
157
|
+
field_type: 'TIME';
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** Structured `data_type` payload for choice fields. */
|
|
161
|
+
export interface ChoiceCustomObjectFieldDataType {
|
|
162
|
+
field_type: 'SELECT' | 'RADIO';
|
|
163
|
+
options_list: string[];
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/** Structured `data_type` payload for boolean fields. */
|
|
167
|
+
export interface BooleanCustomObjectFieldDataType {
|
|
168
|
+
field_type: 'BOOLEAN';
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** Structured `data_type` payload for file fields. */
|
|
172
|
+
export interface FileCustomObjectFieldDataType {
|
|
173
|
+
field_type: 'FILE';
|
|
174
|
+
supported_types?: string[];
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** Structured `data_type` payload for relationship fields. */
|
|
178
|
+
export interface ReferenceCustomObjectFieldDataType {
|
|
179
|
+
field_type: 'OG_REFERENCE_FIELD';
|
|
180
|
+
og_model_rql_name: string;
|
|
181
|
+
edge_type?: 'LOOKUP' | 'PARENT_CHILD';
|
|
182
|
+
related_data_label?: string;
|
|
183
|
+
lookup_filter_rql_condition?: string;
|
|
184
|
+
parent_child_type?: 'PRIMARY' | 'SECONDARY';
|
|
185
|
+
enable_parent_owner_inheritance?: boolean;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** Typed `data_type` union for custom-object field create/update payloads. */
|
|
189
|
+
export type CustomObjectFieldDataType =
|
|
190
|
+
| TextCustomObjectFieldDataType
|
|
191
|
+
| LongTextCustomObjectFieldDataType
|
|
192
|
+
| EmailCustomObjectFieldDataType
|
|
193
|
+
| URLCustomObjectFieldDataType
|
|
194
|
+
| PhoneNumberCustomObjectFieldDataType
|
|
195
|
+
| NumberCustomObjectFieldDataType
|
|
196
|
+
| CurrencyCustomObjectFieldDataType
|
|
197
|
+
| PercentageCustomObjectFieldDataType
|
|
198
|
+
| DateCustomObjectFieldDataType
|
|
199
|
+
| DatetimeCustomObjectFieldDataType
|
|
200
|
+
| TimeCustomObjectFieldDataType
|
|
201
|
+
| ChoiceCustomObjectFieldDataType
|
|
202
|
+
| BooleanCustomObjectFieldDataType
|
|
203
|
+
| FileCustomObjectFieldDataType
|
|
204
|
+
| ReferenceCustomObjectFieldDataType;
|
|
205
|
+
|
|
206
|
+
/** Filter entry accepted by derived aggregated field metadata. */
|
|
207
|
+
export interface CustomObjectFieldDerivedAggregationFilter {
|
|
208
|
+
field_name: string;
|
|
209
|
+
filter_value: string;
|
|
210
|
+
operator: string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** Structured payload for derived aggregated field metadata. */
|
|
214
|
+
export interface CustomObjectFieldDerivedAggregatedField {
|
|
215
|
+
aggregation_function?: string;
|
|
216
|
+
child_model_name?: string;
|
|
217
|
+
currency_code?: string | null;
|
|
218
|
+
field_to_aggregate?: string;
|
|
219
|
+
filters?: CustomObjectFieldDerivedAggregationFilter[];
|
|
220
|
+
lookup_field_api_name?: string;
|
|
221
|
+
[key: string]: unknown;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** Formula attribute metadata accepted by field create/update APIs. */
|
|
225
|
+
export type CustomObjectFieldFormulaAttrMetas = Record<string, unknown>;
|
|
226
|
+
|
|
227
|
+
/** Computed-field RQL definition metadata accepted by field create/update APIs. */
|
|
228
|
+
export type CustomObjectFieldRqlDefinition = Record<string, unknown>;
|
|
229
|
+
|
|
230
|
+
/** Legacy object-shaped field-section payload surfaced by the generated schema. */
|
|
231
|
+
export interface CustomObjectFieldSectionConfig {
|
|
232
|
+
name?: string;
|
|
233
|
+
section_id?: string;
|
|
234
|
+
[key: string]: unknown;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** Field-section value accepted by the custom-object field APIs. */
|
|
238
|
+
export type CustomObjectFieldSection = string | CustomObjectFieldSectionConfig;
|
|
239
|
+
|
|
240
|
+
/** Name-field display / autonumber metadata accepted by field update APIs. */
|
|
241
|
+
export interface CustomObjectNameFieldDetails {
|
|
242
|
+
is_autonumber_field?: boolean;
|
|
243
|
+
autonumber_format?: string;
|
|
244
|
+
starting_number?: number;
|
|
245
|
+
[key: string]: unknown;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/** Public custom-object field DTO returned by the REST API. */
|
|
80
249
|
export interface CustomObjectField {
|
|
81
250
|
/**
|
|
82
251
|
* Identifier field
|
|
@@ -99,9 +268,9 @@ export interface CustomObjectField {
|
|
|
99
268
|
custom_object: string;
|
|
100
269
|
|
|
101
270
|
/**
|
|
102
|
-
* The
|
|
271
|
+
* The field type
|
|
103
272
|
*/
|
|
104
|
-
data_type: unknown
|
|
273
|
+
data_type: CustomObjectFieldDataType | Record<string, unknown>;
|
|
105
274
|
|
|
106
275
|
/**
|
|
107
276
|
* whether the history is enable for the field
|
|
@@ -144,32 +313,17 @@ export interface CustomObjectField {
|
|
|
144
313
|
managed_package_install_id?: string;
|
|
145
314
|
}
|
|
146
315
|
|
|
147
|
-
export namespace CustomObjectField {
|
|
148
|
-
/**
|
|
149
|
-
* The data type configuration for the field.
|
|
150
|
-
*/
|
|
151
|
-
export interface DataType {
|
|
152
|
-
/**
|
|
153
|
-
* Configured fractional scale for NUMBER, PERCENTAGE, and CURRENCY fields.
|
|
154
|
-
* Availability above the legacy per-type limit is capability-gated.
|
|
155
|
-
*/
|
|
156
|
-
num_of_decimal_places?: number;
|
|
157
|
-
|
|
158
|
-
[k: string]: unknown;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
316
|
/** Request payload accepted by `client.customObjects.fields.create(...)`. */
|
|
163
317
|
export interface FieldCreateParams {
|
|
164
318
|
/**
|
|
165
319
|
* The data type configuration for the field.
|
|
166
320
|
*/
|
|
167
|
-
data_type?: unknown
|
|
321
|
+
data_type?: CustomObjectFieldDataType | Record<string, unknown>;
|
|
168
322
|
|
|
169
323
|
/**
|
|
170
324
|
* Configuration for derived aggregated fields.
|
|
171
325
|
*/
|
|
172
|
-
derived_aggregated_field?:
|
|
326
|
+
derived_aggregated_field?: CustomObjectFieldDerivedAggregatedField;
|
|
173
327
|
|
|
174
328
|
/**
|
|
175
329
|
* The formula for derived fields.
|
|
@@ -189,7 +343,7 @@ export interface FieldCreateParams {
|
|
|
189
343
|
/**
|
|
190
344
|
* Metadata for formula attributes.
|
|
191
345
|
*/
|
|
192
|
-
formula_attr_metas?:
|
|
346
|
+
formula_attr_metas?: CustomObjectFieldFormulaAttrMetas;
|
|
193
347
|
|
|
194
348
|
/**
|
|
195
349
|
* Whether field values must be unique.
|
|
@@ -209,27 +363,12 @@ export interface FieldCreateParams {
|
|
|
209
363
|
/**
|
|
210
364
|
* The RQL definition for computed fields.
|
|
211
365
|
*/
|
|
212
|
-
rql_definition?:
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* The section configuration for the field.
|
|
216
|
-
*/
|
|
217
|
-
section?: unknown;
|
|
218
|
-
}
|
|
366
|
+
rql_definition?: CustomObjectFieldRqlDefinition;
|
|
219
367
|
|
|
220
|
-
export namespace FieldCreateParams {
|
|
221
368
|
/**
|
|
222
|
-
* The
|
|
369
|
+
* The section identifier or section configuration for the field.
|
|
223
370
|
*/
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Configured fractional scale for NUMBER, PERCENTAGE, and CURRENCY fields.
|
|
227
|
-
* Availability above the legacy per-type limit is capability-gated.
|
|
228
|
-
*/
|
|
229
|
-
num_of_decimal_places?: number;
|
|
230
|
-
|
|
231
|
-
[k: string]: unknown;
|
|
232
|
-
}
|
|
371
|
+
section?: CustomObjectFieldSection;
|
|
233
372
|
}
|
|
234
373
|
|
|
235
374
|
/** Request payload accepted by `client.customObjects.fields.update(...)`. */
|
|
@@ -237,7 +376,7 @@ export interface FieldUpdateParams {
|
|
|
237
376
|
/**
|
|
238
377
|
* The data type configuration for the field.
|
|
239
378
|
*/
|
|
240
|
-
data_type?: unknown
|
|
379
|
+
data_type?: CustomObjectFieldDataType | Record<string, unknown>;
|
|
241
380
|
|
|
242
381
|
/**
|
|
243
382
|
* The formula for derived fields.
|
|
@@ -257,7 +396,7 @@ export interface FieldUpdateParams {
|
|
|
257
396
|
/**
|
|
258
397
|
* Metadata for formula attributes.
|
|
259
398
|
*/
|
|
260
|
-
formula_attr_metas?:
|
|
399
|
+
formula_attr_metas?: CustomObjectFieldFormulaAttrMetas;
|
|
261
400
|
|
|
262
401
|
/**
|
|
263
402
|
* Whether field values must be unique.
|
|
@@ -272,7 +411,7 @@ export interface FieldUpdateParams {
|
|
|
272
411
|
/**
|
|
273
412
|
* Configuration for name field display.
|
|
274
413
|
*/
|
|
275
|
-
name_field_details?:
|
|
414
|
+
name_field_details?: CustomObjectNameFieldDetails;
|
|
276
415
|
|
|
277
416
|
/**
|
|
278
417
|
* Whether this field is required.
|
|
@@ -282,31 +421,25 @@ export interface FieldUpdateParams {
|
|
|
282
421
|
/**
|
|
283
422
|
* The RQL definition for computed fields.
|
|
284
423
|
*/
|
|
285
|
-
rql_definition?:
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* The section configuration for the field.
|
|
289
|
-
*/
|
|
290
|
-
section?: unknown;
|
|
291
|
-
}
|
|
424
|
+
rql_definition?: CustomObjectFieldRqlDefinition;
|
|
292
425
|
|
|
293
|
-
export namespace FieldUpdateParams {
|
|
294
426
|
/**
|
|
295
|
-
* The
|
|
427
|
+
* The section identifier or section configuration for the field.
|
|
296
428
|
*/
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Configured fractional scale for NUMBER, PERCENTAGE, and CURRENCY fields.
|
|
300
|
-
* Availability above the legacy per-type limit is capability-gated.
|
|
301
|
-
*/
|
|
302
|
-
num_of_decimal_places?: number;
|
|
303
|
-
|
|
304
|
-
[k: string]: unknown;
|
|
305
|
-
}
|
|
429
|
+
section?: CustomObjectFieldSection;
|
|
306
430
|
}
|
|
307
431
|
|
|
308
432
|
export declare namespace Fields {
|
|
309
433
|
export {
|
|
434
|
+
type CustomObjectFieldType as CustomObjectFieldType,
|
|
435
|
+
type CustomObjectFieldDataType as CustomObjectFieldDataType,
|
|
436
|
+
type CustomObjectFieldDerivedAggregationFilter as CustomObjectFieldDerivedAggregationFilter,
|
|
437
|
+
type CustomObjectFieldDerivedAggregatedField as CustomObjectFieldDerivedAggregatedField,
|
|
438
|
+
type CustomObjectFieldFormulaAttrMetas as CustomObjectFieldFormulaAttrMetas,
|
|
439
|
+
type CustomObjectFieldRqlDefinition as CustomObjectFieldRqlDefinition,
|
|
440
|
+
type CustomObjectFieldSectionConfig as CustomObjectFieldSectionConfig,
|
|
441
|
+
type CustomObjectFieldSection as CustomObjectFieldSection,
|
|
442
|
+
type CustomObjectNameFieldDetails as CustomObjectNameFieldDetails,
|
|
310
443
|
type CustomObjectField as CustomObjectField,
|
|
311
444
|
type CustomObjectFieldsPageCursorURL as CustomObjectFieldsPageCursorURL,
|
|
312
445
|
type FieldCreateParams as FieldCreateParams,
|
package/src/resources/levels.ts
CHANGED
|
@@ -139,8 +139,8 @@ export interface Level {
|
|
|
139
139
|
track?: TracksAPI.Track;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* The track associated with the level. Required during creation
|
|
143
|
-
*
|
|
142
|
+
* The track associated with the level. Required during creation. Include
|
|
143
|
+
* global_level when changing it.
|
|
144
144
|
*/
|
|
145
145
|
track_id?: string;
|
|
146
146
|
}
|
|
@@ -165,8 +165,8 @@ export interface LevelCreateParams {
|
|
|
165
165
|
name: string;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
|
-
* The track associated with the level. Required during creation
|
|
169
|
-
*
|
|
168
|
+
* The track associated with the level. Required during creation. Include
|
|
169
|
+
* global_level when changing it.
|
|
170
170
|
*/
|
|
171
171
|
track_id: string;
|
|
172
172
|
|
|
@@ -180,6 +180,15 @@ export interface LevelCreateParams {
|
|
|
180
180
|
*/
|
|
181
181
|
experience_requirements?: string;
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Global level is used to track the seniority of levels. The higher up a level is
|
|
185
|
+
* placed on the page, the more senior and higher-ranked the level. Global level is
|
|
186
|
+
* used in workflows, policies, and reports that use the level attribute (e.g., you
|
|
187
|
+
* can use Level Lookup to set up a workflow that notifies the nearest person in an
|
|
188
|
+
* worker's management chain at or above the specified level).
|
|
189
|
+
*/
|
|
190
|
+
global_level?: number;
|
|
191
|
+
|
|
183
192
|
/**
|
|
184
193
|
* The scope of responsibilities for the level.
|
|
185
194
|
*/
|
|
@@ -201,6 +210,15 @@ export interface LevelUpdateParams {
|
|
|
201
210
|
*/
|
|
202
211
|
experience_requirements?: string;
|
|
203
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Global level is used to track the seniority of levels. The higher up a level is
|
|
215
|
+
* placed on the page, the more senior and higher-ranked the level. Global level is
|
|
216
|
+
* used in workflows, policies, and reports that use the level attribute (e.g., you
|
|
217
|
+
* can use Level Lookup to set up a workflow that notifies the nearest person in an
|
|
218
|
+
* worker's management chain at or above the specified level).
|
|
219
|
+
*/
|
|
220
|
+
global_level?: number;
|
|
221
|
+
|
|
204
222
|
/**
|
|
205
223
|
* The name of the level. Must be unique within the company or organization.
|
|
206
224
|
*/
|
|
@@ -210,6 +228,12 @@ export interface LevelUpdateParams {
|
|
|
210
228
|
* The scope of responsibilities for the level.
|
|
211
229
|
*/
|
|
212
230
|
scope_of_responsibilities?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The track associated with the level. Required during creation. Include
|
|
234
|
+
* global_level when changing it.
|
|
235
|
+
*/
|
|
236
|
+
track_id?: string;
|
|
213
237
|
}
|
|
214
238
|
|
|
215
239
|
export declare namespace Levels {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.86'; // x-release-please-version
|