@osdk/maker 0.15.0-beta.6 → 0.15.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +26 -22
- package/build/browser/api/action/ActionParameter.js.map +1 -1
- package/build/browser/api/action/ActionParameterConfiguration.js.map +1 -1
- package/build/browser/api/defineAction.js +65 -22
- package/build/browser/api/defineAction.js.map +1 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js +28 -8
- package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineInterface.js +40 -34
- package/build/browser/api/defineInterface.js.map +1 -1
- package/build/browser/api/defineModifyInterfaceObjectAction.js +31 -8
- package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineObject.js +13 -9
- package/build/browser/api/defineObject.js.map +1 -1
- package/build/browser/api/defineOntology.js +6 -0
- package/build/browser/api/defineOntology.js.map +1 -1
- package/build/browser/api/defineSpt.js.map +1 -1
- package/build/browser/api/defineValueType.js +17 -4
- package/build/browser/api/defineValueType.js.map +1 -1
- package/build/browser/api/interface/InterfacePropertyType.js +22 -1
- package/build/browser/api/interface/InterfacePropertyType.js.map +1 -1
- package/build/browser/api/interface/InterfaceType.js.map +1 -1
- package/build/browser/api/interface/getFlattenedInterfaceProperties.js +9 -3
- package/build/browser/api/interface/getFlattenedInterfaceProperties.js.map +1 -1
- package/build/browser/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js +5 -0
- package/build/browser/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js.map +1 -1
- package/build/browser/api/links/LinkType.js.map +1 -1
- package/build/browser/api/object/ObjectType.js.map +1 -1
- package/build/browser/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/browser/api/object/ObjectTypeStatus.js.map +1 -1
- package/build/browser/api/properties/PropertyTypeType.js +1 -1
- package/build/browser/api/properties/PropertyTypeType.js.map +1 -1
- package/build/browser/api/properties/SharedPropertyType.js.map +1 -1
- package/build/browser/api/test/actions.test.js +6105 -5850
- package/build/browser/api/test/actions.test.js.map +1 -1
- package/build/browser/api/test/interfaces.test.js +757 -492
- package/build/browser/api/test/interfaces.test.js.map +1 -1
- package/build/browser/api/test/links.test.js +1334 -1325
- package/build/browser/api/test/links.test.js.map +1 -1
- package/build/browser/api/test/misc.test.js +262 -11
- package/build/browser/api/test/misc.test.js.map +1 -1
- package/build/browser/api/test/objects.test.js +1019 -960
- package/build/browser/api/test/objects.test.js.map +1 -1
- package/build/browser/api/test/spt.test.js +250 -103
- package/build/browser/api/test/spt.test.js.map +1 -1
- package/build/browser/api/test/valueTypes.test.js +69 -0
- package/build/browser/api/test/valueTypes.test.js.map +1 -1
- package/build/browser/cli/main.js +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertInterface.js +2 -2
- package/build/browser/conversion/toMarketplace/convertInterface.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js +66 -0
- package/build/browser/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/convertLink.js +30 -4
- package/build/browser/conversion/toMarketplace/convertLink.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertMappingValue.js +35 -0
- package/build/browser/conversion/toMarketplace/convertMappingValue.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertObject.js +4 -2
- package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js +2 -1
- package/build/browser/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertSpt.js +4 -2
- package/build/browser/conversion/toMarketplace/convertSpt.js.map +1 -1
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +143 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -0
- package/build/browser/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +444 -117
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +53 -17
- package/build/esm/api/action/ActionParameter.js.map +1 -1
- package/build/esm/api/action/ActionParameterConfiguration.js.map +1 -1
- package/build/esm/api/defineAction.js +65 -22
- package/build/esm/api/defineAction.js.map +1 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js +28 -8
- package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineInterface.js +40 -34
- package/build/esm/api/defineInterface.js.map +1 -1
- package/build/esm/api/defineModifyInterfaceObjectAction.js +31 -8
- package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineObject.js +13 -9
- package/build/esm/api/defineObject.js.map +1 -1
- package/build/esm/api/defineOntology.js +6 -0
- package/build/esm/api/defineOntology.js.map +1 -1
- package/build/esm/api/defineSpt.js.map +1 -1
- package/build/esm/api/defineValueType.js +17 -4
- package/build/esm/api/defineValueType.js.map +1 -1
- package/build/esm/api/interface/InterfacePropertyType.js +22 -1
- package/build/esm/api/interface/InterfacePropertyType.js.map +1 -1
- package/build/esm/api/interface/InterfaceType.js.map +1 -1
- package/build/esm/api/interface/getFlattenedInterfaceProperties.js +9 -3
- package/build/esm/api/interface/getFlattenedInterfaceProperties.js.map +1 -1
- package/build/esm/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js +5 -0
- package/build/esm/api/interface/mapSimplifiedStatusToInterfaceTypeStatus.js.map +1 -1
- package/build/esm/api/links/LinkType.js.map +1 -1
- package/build/esm/api/object/ObjectType.js.map +1 -1
- package/build/esm/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/esm/api/object/ObjectTypeStatus.js.map +1 -1
- package/build/esm/api/properties/PropertyTypeType.js +1 -1
- package/build/esm/api/properties/PropertyTypeType.js.map +1 -1
- package/build/esm/api/properties/SharedPropertyType.js.map +1 -1
- package/build/esm/api/test/actions.test.js +6105 -5850
- package/build/esm/api/test/actions.test.js.map +1 -1
- package/build/esm/api/test/interfaces.test.js +757 -492
- package/build/esm/api/test/interfaces.test.js.map +1 -1
- package/build/esm/api/test/links.test.js +1334 -1325
- package/build/esm/api/test/links.test.js.map +1 -1
- package/build/esm/api/test/misc.test.js +262 -11
- package/build/esm/api/test/misc.test.js.map +1 -1
- package/build/esm/api/test/objects.test.js +1019 -960
- package/build/esm/api/test/objects.test.js.map +1 -1
- package/build/esm/api/test/spt.test.js +250 -103
- package/build/esm/api/test/spt.test.js.map +1 -1
- package/build/esm/api/test/valueTypes.test.js +69 -0
- package/build/esm/api/test/valueTypes.test.js.map +1 -1
- package/build/esm/cli/main.js +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertInterface.js +2 -2
- package/build/esm/conversion/toMarketplace/convertInterface.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js +66 -0
- package/build/esm/conversion/toMarketplace/convertInterfacePropertyType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/convertLink.js +30 -4
- package/build/esm/conversion/toMarketplace/convertLink.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertMappingValue.js +35 -0
- package/build/esm/conversion/toMarketplace/convertMappingValue.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertObject.js +4 -2
- package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js +2 -1
- package/build/esm/conversion/toMarketplace/convertObjectPropertyType.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertSpt.js +4 -2
- package/build/esm/conversion/toMarketplace/convertSpt.js.map +1 -1
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js +143 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.js.map +1 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js +4 -0
- package/build/esm/conversion/toMarketplace/propertyTypeTypeToOntologyIrType.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/types/api/action/ActionParameter.d.ts +2 -1
- package/build/types/api/action/ActionParameter.d.ts.map +1 -1
- package/build/types/api/action/ActionParameterConfiguration.d.ts +2 -1
- package/build/types/api/action/ActionParameterConfiguration.d.ts.map +1 -1
- package/build/types/api/defineAction.d.ts +4 -3
- package/build/types/api/defineAction.d.ts.map +1 -1
- package/build/types/api/defineCreateInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineInterface.d.ts +7 -5
- package/build/types/api/defineInterface.d.ts.map +1 -1
- package/build/types/api/defineModifyInterfaceObjectAction.d.ts.map +1 -1
- package/build/types/api/defineObject.d.ts.map +1 -1
- package/build/types/api/defineOntology.d.ts.map +1 -1
- package/build/types/api/defineSpt.d.ts +3 -0
- package/build/types/api/defineSpt.d.ts.map +1 -1
- package/build/types/api/defineValueType.d.ts +9 -0
- package/build/types/api/defineValueType.d.ts.map +1 -1
- package/build/types/api/interface/InterfacePropertyType.d.ts +12 -2
- package/build/types/api/interface/InterfacePropertyType.d.ts.map +1 -1
- package/build/types/api/interface/InterfaceType.d.ts +3 -2
- package/build/types/api/interface/InterfaceType.d.ts.map +1 -1
- package/build/types/api/interface/getFlattenedInterfaceProperties.d.ts +1 -1
- package/build/types/api/interface/getFlattenedInterfaceProperties.d.ts.map +1 -1
- package/build/types/api/links/LinkType.d.ts +16 -4
- package/build/types/api/links/LinkType.d.ts.map +1 -1
- package/build/types/api/object/ObjectType.d.ts +1 -0
- package/build/types/api/object/ObjectType.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDefinition.d.ts +1 -0
- package/build/types/api/object/ObjectTypeDefinition.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeStatus.d.ts +1 -1
- package/build/types/api/object/ObjectTypeStatus.d.ts.map +1 -1
- package/build/types/api/properties/PropertyTypeType.d.ts +1 -0
- package/build/types/api/properties/PropertyTypeType.d.ts.map +1 -1
- package/build/types/api/properties/SharedPropertyType.d.ts +1 -0
- package/build/types/api/properties/SharedPropertyType.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertInterface.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts +3 -0
- package/build/types/conversion/toMarketplace/convertInterfacePropertyType.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertLink.d.ts +3 -2
- package/build/types/conversion/toMarketplace/convertLink.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertMappingValue.d.ts +2 -1
- package/build/types/conversion/toMarketplace/convertMappingValue.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertSpt.d.ts +1 -1
- package/build/types/conversion/toMarketplace/convertSpt.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts +3 -0
- package/build/types/conversion/toMarketplace/propertyTypeTypeToOntologyIrInterfaceType.d.ts.map +1 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/package.json +3 -3
package/build/cjs/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OntologyIrLabelledValue, OntologyIrConditionValue, OntologyIrParameterDateRangeValue, InterfaceTypeApiName, OntologyIrCondition, OntologyIrParameterPrefill, OntologyIrBaseParameterType_decimal, OntologyIrBaseParameterType_decimalList, OntologyIrBaseParameterType_timestamp, OntologyIrBaseParameterType_timestampList, OntologyIrBaseParameterType_objectReference, OntologyIrBaseParameterType_objectReferenceList, OntologyIrBaseParameterType_objectSetRid, OntologyIrBaseParameterType_objectTypeReference, OntologyIrBaseParameterType_interfaceReference, OntologyIrBaseParameterType_interfaceReferenceList, OntologyIrBaseParameterType_struct, OntologyIrBaseParameterType_structList, ParameterId, ActionTypeStatus_deprecated, ButtonDisplayMetadata, ActionTypeApiName, OntologyIrLogicRule, SectionId, OntologyIrActionTypeEntities, OntologyIrFormContent, OntologyIrValidationRule, DisplayMetadataConfigurationDefaultLayout, DisplayMetadataConfigurationDisplayAndFormat, OntologyIrLogicRuleValue_parameterId, OntologyIrLogicRuleValue_staticValue, OntologyIrLogicRuleValue_objectParameterPropertyValue, OntologyIrLogicRuleValue_interfaceParameterPropertyValue, OntologyIrLogicRuleValue_synchronousWebhookOutput, ValidationRuleDisplayMetadata, ParameterRid, StructFieldType, OntologyIrValueTypeReferenceWithMetadata, Visibility, SharedPropertyTypeGothamMapping, OntologyIrBaseFormatter, OntologyIrMarketplaceInterfaceType, InterfaceTypeStatus, ValueTypeApiName, ValueTypeDisplayMetadata, ValueTypeStatus, ValueTypeVersion, BaseType, ValueTypeDataConstraint, ExampleValue, LinkTypeMetadata,
|
|
1
|
+
import { OntologyIrLabelledValue, OntologyIrConditionValue, OntologyIrParameterDateRangeValue, InterfaceTypeApiName, OntologyIrCondition, OntologyIrParameterPrefill, OntologyIrBaseParameterType_decimal, OntologyIrBaseParameterType_decimalList, OntologyIrBaseParameterType_timestamp, OntologyIrBaseParameterType_timestampList, OntologyIrBaseParameterType_objectReference, OntologyIrBaseParameterType_objectReferenceList, OntologyIrBaseParameterType_objectSetRid, OntologyIrBaseParameterType_objectTypeReference, OntologyIrBaseParameterType_interfaceReference, OntologyIrBaseParameterType_interfaceReferenceList, OntologyIrBaseParameterType_struct, OntologyIrBaseParameterType_structList, ParameterRenderHint, ParameterId, ActionTypeStatus_deprecated, ButtonDisplayMetadata, ActionTypeApiName, OntologyIrLogicRule, SectionId, OntologyIrActionTypeEntities, OntologyIrFormContent, OntologyIrValidationRule, DisplayMetadataConfigurationDefaultLayout, DisplayMetadataConfigurationDisplayAndFormat, OntologyIrLogicRuleValue_parameterId, OntologyIrLogicRuleValue_staticValue, OntologyIrLogicRuleValue_objectParameterPropertyValue, OntologyIrLogicRuleValue_interfaceParameterPropertyValue, OntologyIrLogicRuleValue_synchronousWebhookOutput, ValidationRuleDisplayMetadata, ParameterRid, StructFieldType, OntologyIrValueTypeReferenceWithMetadata, Visibility, SharedPropertyTypeGothamMapping, OntologyIrBaseFormatter, OntologyIrMarketplaceInterfaceType, InterfaceTypeStatus, ValueTypeApiName, ValueTypeDisplayMetadata, ValueTypeStatus, ValueTypeVersion, BaseType, ValueTypeDataConstraint, ExampleValue, LinkTypeMetadata, LinkTypeId, DerivedPropertyLinkTypeSide, ObjectTypeFieldApiName, OntologyIrObjectType, OntologyIr, DataConstraint, FailureMessage, ValueTypeRid, OntologyIrType } from '@osdk/client.unstable';
|
|
2
2
|
|
|
3
3
|
declare function main(args?: string[]): Promise<void>;
|
|
4
4
|
|
|
@@ -120,6 +120,7 @@ interface ActionParameterConfiguration {
|
|
|
120
120
|
defaultVisibility?: "editable" | "disabled" | "hidden";
|
|
121
121
|
conditionalOverrides?: Array<ActionParameterConditionalOverride>;
|
|
122
122
|
defaultValue?: OntologyIrParameterPrefill;
|
|
123
|
+
renderHint?: ParameterRenderHint;
|
|
123
124
|
displayName?: string;
|
|
124
125
|
description?: string;
|
|
125
126
|
customParameterType?: ActionParameterType;
|
|
@@ -139,6 +140,7 @@ interface ActionParameter {
|
|
|
139
140
|
description?: string;
|
|
140
141
|
typeClasses?: Array<TypeClass>;
|
|
141
142
|
defaultValue?: OntologyIrParameterPrefill;
|
|
143
|
+
renderHint?: ParameterRenderHint;
|
|
142
144
|
}
|
|
143
145
|
type ActionParameterValidation = Omit<ActionParameterConfiguration, "displayName" | "defaultValue">;
|
|
144
146
|
|
|
@@ -240,11 +242,6 @@ type TableConfiguration = {
|
|
|
240
242
|
rowHeightInLines: number;
|
|
241
243
|
};
|
|
242
244
|
|
|
243
|
-
interface Nullability {
|
|
244
|
-
noEmptyCollections: boolean;
|
|
245
|
-
noNulls: boolean;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
245
|
type PropertyTypeType = PropertyTypeTypePrimitive | PropertyTypeTypeExotic;
|
|
249
246
|
type PropertyTypeTypePrimitive = "boolean" | "byte" | "date" | "decimal" | "double" | "float" | "integer" | "long" | "short" | "string" | "timestamp";
|
|
250
247
|
type PropertyTypeTypeExotic = "geopoint" | "geoshape" | "mediaReference" | "geotimeSeries" | PropertyTypeTypeMarking | PropertyTypeTypeStruct | PropertyTypeTypeString | PropertyTypeTypeDecimal;
|
|
@@ -276,11 +273,18 @@ type PropertyTypeTypesWithoutStruct = Exclude<PropertyTypeType, PropertyTypeType
|
|
|
276
273
|
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
277
274
|
interface StructPropertyType extends Optional<Omit<StructFieldType, "fieldType" | "structFieldRid" | "apiName">, "typeClasses" | "aliases"> {
|
|
278
275
|
fieldType: PropertyTypeTypesWithoutStruct;
|
|
276
|
+
requireImplementation?: boolean;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
interface Nullability {
|
|
280
|
+
noEmptyCollections: boolean;
|
|
281
|
+
noNulls: boolean;
|
|
279
282
|
}
|
|
280
283
|
|
|
281
284
|
interface SharedPropertyType extends OntologyEntityBase, PropertyType {
|
|
282
285
|
apiName: string;
|
|
283
286
|
nonNameSpacedApiName: string;
|
|
287
|
+
aliases?: Array<string>;
|
|
284
288
|
gothamMapping?: SharedPropertyTypeGothamMapping;
|
|
285
289
|
baseFormatter?: OntologyIrBaseFormatter;
|
|
286
290
|
__type: OntologyEntityTypeEnum.SHARED_PROPERTY_TYPE;
|
|
@@ -296,13 +300,20 @@ interface PropertyType {
|
|
|
296
300
|
nullability?: Nullability;
|
|
297
301
|
}
|
|
298
302
|
|
|
299
|
-
|
|
303
|
+
type InterfacePropertyType = InterfaceSharedPropertyType | InterfaceDefinedProperty;
|
|
304
|
+
interface InterfaceDefinedProperty extends PropertyType {
|
|
305
|
+
required?: boolean;
|
|
306
|
+
primaryKeyConstraint?: "MUST_BE_PK" | "CANNOT_BE_PK" | "NO_RESTRICTION";
|
|
307
|
+
baseFormatter?: OntologyIrBaseFormatter;
|
|
308
|
+
}
|
|
309
|
+
interface InterfaceSharedPropertyType {
|
|
300
310
|
sharedPropertyType: SharedPropertyType;
|
|
301
311
|
required: boolean;
|
|
302
312
|
}
|
|
303
313
|
|
|
304
314
|
interface InterfaceType extends OntologyEntityBase, Omit<OntologyIrMarketplaceInterfaceType, "properties" | "propertiesV2" | "propertiesV3" | "extendsInterfaces"> {
|
|
305
|
-
propertiesV2: Record<string,
|
|
315
|
+
propertiesV2: Record<string, InterfaceSharedPropertyType>;
|
|
316
|
+
propertiesV3: Record<string, InterfacePropertyType>;
|
|
306
317
|
extendsInterfaces: Array<InterfaceType>;
|
|
307
318
|
status: InterfaceTypeStatus;
|
|
308
319
|
__type: OntologyEntityTypeEnum.INTERFACE_TYPE;
|
|
@@ -320,7 +331,7 @@ type ValueTypeDefinitionVersion = OntologyEntityBase & {
|
|
|
320
331
|
__type: OntologyEntityTypeEnum.VALUE_TYPE;
|
|
321
332
|
};
|
|
322
333
|
|
|
323
|
-
type ObjectTypeStatus = "active" | "experimental" | {
|
|
334
|
+
type ObjectTypeStatus = "active" | "experimental" | "example" | {
|
|
324
335
|
type: "deprecated";
|
|
325
336
|
message: string;
|
|
326
337
|
deadline: string;
|
|
@@ -379,7 +390,7 @@ interface OneToManyLinkTypeDefinition {
|
|
|
379
390
|
manyForeignKeyProperty: ObjectTypePropertyApiName;
|
|
380
391
|
cardinality: "OneToMany" | "OneToOne" | undefined;
|
|
381
392
|
editsEnabled?: boolean;
|
|
382
|
-
status?:
|
|
393
|
+
status?: UserLinkTypeStatus;
|
|
383
394
|
redacted?: boolean;
|
|
384
395
|
}
|
|
385
396
|
interface OneToManyObjectLinkReference {
|
|
@@ -391,6 +402,8 @@ interface OneToManyLinkTypeUserDefinition {
|
|
|
391
402
|
one: OneToManyObjectLinkReferenceUserDefinition;
|
|
392
403
|
toMany: OneToManyObjectLinkReferenceUserDefinition;
|
|
393
404
|
manyForeignKeyProperty: ObjectTypePropertyApiName;
|
|
405
|
+
editsEnabled?: boolean;
|
|
406
|
+
status?: UserLinkTypeStatus;
|
|
394
407
|
cardinality?: "OneToMany" | "OneToOne" | undefined;
|
|
395
408
|
}
|
|
396
409
|
interface OneToManyObjectLinkReferenceUserDefinition {
|
|
@@ -402,7 +415,7 @@ interface ManyToManyLinkTypeDefinition {
|
|
|
402
415
|
many: ManyToManyObjectLinkReference;
|
|
403
416
|
toMany: ManyToManyObjectLinkReference;
|
|
404
417
|
editsEnabled?: boolean;
|
|
405
|
-
status?:
|
|
418
|
+
status?: UserLinkTypeStatus;
|
|
406
419
|
redacted?: boolean;
|
|
407
420
|
}
|
|
408
421
|
interface ManyToManyObjectLinkReference {
|
|
@@ -413,6 +426,8 @@ interface ManyToManyLinkTypeUserDefinition {
|
|
|
413
426
|
apiName: string;
|
|
414
427
|
many: ManyToManyObjectLinkReferenceUserDefinition;
|
|
415
428
|
toMany: ManyToManyObjectLinkReferenceUserDefinition;
|
|
429
|
+
editsEnabled?: boolean;
|
|
430
|
+
status?: UserLinkTypeStatus;
|
|
416
431
|
}
|
|
417
432
|
interface ManyToManyObjectLinkReferenceUserDefinition {
|
|
418
433
|
object: ObjectTypeDefinition | string;
|
|
@@ -424,7 +439,7 @@ interface IntermediaryLinkTypeDefinition {
|
|
|
424
439
|
toMany: IntermediaryObjectLinkReference;
|
|
425
440
|
intermediaryObjectType: ObjectTypeDefinition;
|
|
426
441
|
editsEnabled?: boolean;
|
|
427
|
-
status?:
|
|
442
|
+
status?: UserLinkTypeStatus;
|
|
428
443
|
redacted?: boolean;
|
|
429
444
|
}
|
|
430
445
|
interface IntermediaryObjectLinkReference {
|
|
@@ -437,6 +452,8 @@ interface IntermediaryLinkTypeUserDefinition {
|
|
|
437
452
|
many: IntermediaryObjectLinkReferenceUserDefinition;
|
|
438
453
|
toMany: IntermediaryObjectLinkReferenceUserDefinition;
|
|
439
454
|
intermediaryObjectType: ObjectTypeDefinition | string;
|
|
455
|
+
editsEnabled?: boolean;
|
|
456
|
+
status?: UserLinkTypeStatus;
|
|
440
457
|
}
|
|
441
458
|
interface IntermediaryObjectLinkReferenceUserDefinition {
|
|
442
459
|
object: ObjectTypeDefinition | string;
|
|
@@ -450,6 +467,12 @@ interface LinkTypeMetadataUserDefinition {
|
|
|
450
467
|
visibility?: Visibility;
|
|
451
468
|
groupDisplayName?: string;
|
|
452
469
|
}
|
|
470
|
+
type UserLinkTypeStatus = "active" | "experimental" | "example" | {
|
|
471
|
+
type: "deprecated";
|
|
472
|
+
message: string;
|
|
473
|
+
deadline: string;
|
|
474
|
+
replacedBy?: LinkTypeId;
|
|
475
|
+
};
|
|
453
476
|
|
|
454
477
|
type ObjectTypeDatasourceDefinition = ObjectTypeDatasourceDefinition_stream | ObjectTypeDatasourceDefinition_dataset | ObjectTypeDatasourceDefinition_restrictedView | ObjectTypeDatasourceDefinition_derived;
|
|
455
478
|
interface ObjectTypeDatasourceDefinition_dataset {
|
|
@@ -520,6 +543,7 @@ type ObjectTypeDefinition = {
|
|
|
520
543
|
editsEnabled?: boolean;
|
|
521
544
|
status?: ObjectTypeStatus;
|
|
522
545
|
datasources?: Array<ObjectTypeDatasourceDefinition>;
|
|
546
|
+
aliases?: Array<string>;
|
|
523
547
|
};
|
|
524
548
|
|
|
525
549
|
declare const MODIFY_OBJECT_PARAMETER: string;
|
|
@@ -592,11 +616,13 @@ type SimplifiedInterfaceTypeStatus = {
|
|
|
592
616
|
type: "active";
|
|
593
617
|
} | {
|
|
594
618
|
type: "experimental";
|
|
619
|
+
} | {
|
|
620
|
+
type: "example";
|
|
595
621
|
};
|
|
596
|
-
type PropertyBase = SharedPropertyType |
|
|
597
|
-
type
|
|
622
|
+
type PropertyBase = SharedPropertyType | InterfaceDefinedProperty;
|
|
623
|
+
type SptWithOptional = {
|
|
598
624
|
required: boolean;
|
|
599
|
-
|
|
625
|
+
sharedPropertyType: SharedPropertyType;
|
|
600
626
|
};
|
|
601
627
|
type InterfaceTypeDefinition = {
|
|
602
628
|
apiName: string;
|
|
@@ -607,7 +633,7 @@ type InterfaceTypeDefinition = {
|
|
|
607
633
|
color: string;
|
|
608
634
|
};
|
|
609
635
|
status?: SimplifiedInterfaceTypeStatus;
|
|
610
|
-
properties?: Record<string, PropertyBase |
|
|
636
|
+
properties?: Record<string, PropertyBase | SptWithOptional>;
|
|
611
637
|
extends?: InterfaceType | InterfaceType[];
|
|
612
638
|
searchable?: boolean;
|
|
613
639
|
};
|
|
@@ -663,6 +689,7 @@ interface ObjectTypeInner extends Omit<OntologyIrObjectType, "titlePropertyTypeR
|
|
|
663
689
|
visibility: Visibility;
|
|
664
690
|
editsEnabled: boolean;
|
|
665
691
|
status?: ObjectTypeStatus;
|
|
692
|
+
aliases?: Array<string>;
|
|
666
693
|
}
|
|
667
694
|
|
|
668
695
|
declare function defineOntology(ns: string, body: () => void | Promise<void>, outputDir: string | undefined, dependencyFile?: string, codeSnippetFiles?: boolean, snippetPackageName?: string, snippetFileOutputDir?: string, randomnessKey?: string): Promise<OntologyIr>;
|
|
@@ -677,7 +704,9 @@ interface SharedPropertyTypeDefinition {
|
|
|
677
704
|
displayName?: string;
|
|
678
705
|
valueType?: OntologyIrValueTypeReferenceWithMetadata;
|
|
679
706
|
visibility?: Visibility;
|
|
707
|
+
nullability?: Nullability;
|
|
680
708
|
typeClasses?: SharedPropertyType["typeClasses"];
|
|
709
|
+
aliases?: Array<string>;
|
|
681
710
|
gothamMapping?: SharedPropertyTypeGothamMapping;
|
|
682
711
|
baseFormatter?: OntologyIrBaseFormatter;
|
|
683
712
|
}
|
|
@@ -874,6 +903,13 @@ type ValueTypeDefinition = {
|
|
|
874
903
|
description?: string;
|
|
875
904
|
type: NewValueTypeDefinition;
|
|
876
905
|
version: string;
|
|
906
|
+
status?: UserValueTypeStatus;
|
|
907
|
+
};
|
|
908
|
+
type UserValueTypeStatus = "active" | {
|
|
909
|
+
type: "deprecated";
|
|
910
|
+
message: string;
|
|
911
|
+
deadline: string;
|
|
912
|
+
replacedBy?: ValueTypeRid;
|
|
877
913
|
};
|
|
878
914
|
declare function defineValueType(valueTypeDef: ValueTypeDefinition): ValueTypeDefinitionVersion;
|
|
879
915
|
|
|
@@ -899,4 +935,4 @@ declare function wrapWithProxy<T extends OntologyEntityBase>(entity: T): T;
|
|
|
899
935
|
|
|
900
936
|
declare function propertyTypeTypeToOntologyIrType(type: PropertyTypeType): OntologyIrType;
|
|
901
937
|
|
|
902
|
-
export { type ActionParameterAllowedValues, type ActionParameterConditionalOverride, type ActionParameterConfiguration, type ActionParameterValidation, type ActionSection, type ActionType, CREATE_INTERFACE_OBJECT_PARAMETER, CREATE_OR_MODIFY_OBJECT_PARAMETER, type ConditionDefinition, type CurrentTimeMappingValue, type CurrentUserMappingValue, type CustomMapping, DELETE_OBJECT_PARAMETER, type InterfaceType, type LinkType, MODIFY_INTERFACE_OBJECT_PARAMETER, MODIFY_OBJECT_PARAMETER, type MappingValue, type ObjectPropertyType, type ObjectType, OntologyEntityTypeEnum, type PropertyTypeType, type SectionConditionalOverride, type SharedPropertyType, type SubmissionMetadata, type UuidMappingValue, type ValueTypeDefinitionVersion, addDependency, addNamespaceIfNone, uppercaseFirstLetter as convertToDisplayName, convertToPluralDisplayName, propertyTypeTypeToOntologyIrType as convertType, main as default, defineAction, defineCreateInterfaceObjectAction, defineCreateObjectAction, defineCreateOrModifyObjectAction, defineDeleteInterfaceObjectAction, defineDeleteObjectAction, defineInterface, defineInterfaceLinkConstraint, defineLink, defineModifyInterfaceObjectAction, defineModifyObjectAction, defineObject, defineOntology, defineSharedPropertyType, defineValueType, dumpOntologyFullMetadata, importOntologyEntity, importSharedPropertyType, wrapWithProxy };
|
|
938
|
+
export { type ActionParameterAllowedValues, type ActionParameterConditionalOverride, type ActionParameterConfiguration, type ActionParameterValidation, type ActionSection, type ActionType, CREATE_INTERFACE_OBJECT_PARAMETER, CREATE_OR_MODIFY_OBJECT_PARAMETER, type ConditionDefinition, type CurrentTimeMappingValue, type CurrentUserMappingValue, type CustomMapping, DELETE_OBJECT_PARAMETER, type InterfaceDefinedProperty, type InterfaceType, type LinkType, MODIFY_INTERFACE_OBJECT_PARAMETER, MODIFY_OBJECT_PARAMETER, type MappingValue, type ObjectPropertyType, type ObjectType, OntologyEntityTypeEnum, type PropertyTypeType, type SectionConditionalOverride, type SharedPropertyType, type SubmissionMetadata, type UuidMappingValue, type ValueTypeDefinitionVersion, addDependency, addNamespaceIfNone, uppercaseFirstLetter as convertToDisplayName, convertToPluralDisplayName, propertyTypeTypeToOntologyIrType as convertType, main as default, defineAction, defineCreateInterfaceObjectAction, defineCreateObjectAction, defineCreateOrModifyObjectAction, defineDeleteInterfaceObjectAction, defineDeleteObjectAction, defineInterface, defineInterfaceLinkConstraint, defineLink, defineModifyInterfaceObjectAction, defineModifyObjectAction, defineObject, defineOntology, defineSharedPropertyType, defineValueType, dumpOntologyFullMetadata, importOntologyEntity, importSharedPropertyType, wrapWithProxy };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionParameter.js","names":[],"sources":["ActionParameter.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n OntologyIrParameterPrefill,\n ParameterId,\n} from \"@osdk/client.unstable\";\nimport type { TypeClass } from \"../common/TypeClass.js\";\nimport type { ActionParameterConfiguration } from \"./ActionParameterConfiguration.js\";\nimport type { ActionParameterType } from \"./ActionParameterType.js\";\n\nexport interface ActionParameter {\n id: ParameterId;\n displayName: string;\n type: ActionParameterType;\n validation: ActionParameterValidation;\n description?: string;\n typeClasses?: Array<TypeClass>;\n defaultValue?: OntologyIrParameterPrefill;\n}\nexport type ActionParameterValidation = Omit<\n ActionParameterConfiguration,\n \"displayName\" | \"defaultValue\"\n>;\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ActionParameter.js","names":[],"sources":["ActionParameter.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n OntologyIrParameterPrefill,\n ParameterId,\n ParameterRenderHint,\n} from \"@osdk/client.unstable\";\nimport type { TypeClass } from \"../common/TypeClass.js\";\nimport type { ActionParameterConfiguration } from \"./ActionParameterConfiguration.js\";\nimport type { ActionParameterType } from \"./ActionParameterType.js\";\n\nexport interface ActionParameter {\n id: ParameterId;\n displayName: string;\n type: ActionParameterType;\n validation: ActionParameterValidation;\n description?: string;\n typeClasses?: Array<TypeClass>;\n defaultValue?: OntologyIrParameterPrefill;\n renderHint?: ParameterRenderHint;\n}\nexport type ActionParameterValidation = Omit<\n ActionParameterConfiguration,\n \"displayName\" | \"defaultValue\"\n>;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionParameterConfiguration.js","names":[],"sources":["ActionParameterConfiguration.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {
|
|
1
|
+
{"version":3,"file":"ActionParameterConfiguration.js","names":[],"sources":["ActionParameterConfiguration.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n OntologyIrParameterPrefill,\n ParameterRenderHint,\n} from \"@osdk/client.unstable\";\nimport type { ActionParameterAllowedValues } from \"./ActionParameterAllowedValues.js\";\nimport type { ActionParameterConditionalOverride } from \"./ActionParameterConditionalOverride.js\";\nimport type { ActionParameterType } from \"./ActionParameterType.js\";\n\nexport interface ActionParameterConfiguration {\n allowedValues?: ActionParameterAllowedValues;\n required?: ActionParameterRequirementConstraint;\n defaultVisibility?: \"editable\" | \"disabled\" | \"hidden\";\n conditionalOverrides?: Array<ActionParameterConditionalOverride>;\n defaultValue?: OntologyIrParameterPrefill;\n renderHint?: ParameterRenderHint;\n displayName?: string;\n description?: string;\n // should only be used on non-property parameters\n customParameterType?: ActionParameterType;\n}\n\nexport type ActionParameterRequirementConstraint =\n | boolean\n | { listLength: { min?: number; max?: number } };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -19,8 +19,9 @@ import { convertConditionDefinition } from "../conversion/toMarketplace/convertC
|
|
|
19
19
|
import { isActionParameterTypePrimitive } from "./action/ActionParameterType.js";
|
|
20
20
|
import { OntologyEntityTypeEnum } from "./common/OntologyEntityTypeEnum.js";
|
|
21
21
|
import { uppercaseFirstLetter } from "./defineObject.js";
|
|
22
|
-
import { addNamespaceIfNone, importedTypes, namespace, ontologyDefinition, updateOntology } from "./defineOntology.js";
|
|
22
|
+
import { addNamespaceIfNone, importedTypes, namespace, ontologyDefinition, updateOntology, withoutNamespace } from "./defineOntology.js";
|
|
23
23
|
import { getFlattenedInterfaceProperties } from "./interface/getFlattenedInterfaceProperties.js";
|
|
24
|
+
import { getInterfacePropertyTypeType, isInterfaceSharedPropertyType } from "./interface/InterfacePropertyType.js";
|
|
24
25
|
import { isStruct } from "./properties/PropertyTypeType.js";
|
|
25
26
|
export const MODIFY_OBJECT_PARAMETER = "objectToModifyParameter";
|
|
26
27
|
export const CREATE_OR_MODIFY_OBJECT_PARAMETER = "objectToCreateOrModifyParameter";
|
|
@@ -89,29 +90,39 @@ export function defineAction(actionDef) {
|
|
|
89
90
|
return fullAction;
|
|
90
91
|
}
|
|
91
92
|
export function isPropertyParameter(def, name, type) {
|
|
92
|
-
|
|
93
|
+
if ("interfaceType" in def) {
|
|
94
|
+
return Object.keys(getFlattenedInterfaceProperties(def.interfaceType)).includes(name) && !Object.keys(def.nonParameterMappings ?? {}).includes(name) && !isStruct(type) && !def.excludedProperties?.includes(name);
|
|
95
|
+
}
|
|
96
|
+
return Object.keys(def.objectType.properties ?? {}).includes(name) && !Object.keys(def.nonParameterMappings ?? {}).includes(name) && !isStruct(type) && !def.excludedProperties?.includes(name);
|
|
93
97
|
}
|
|
94
98
|
export function createParameters(def, propertyMap, parameterSet, requiredMap) {
|
|
95
99
|
const targetParams = getTargetParameters(def, parameterSet);
|
|
96
|
-
return [...targetParams, ...Array.from(parameterSet).map(id =>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
} :
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
100
|
+
return [...targetParams, ...Array.from(parameterSet).map(id => {
|
|
101
|
+
let propertyMetadata = undefined;
|
|
102
|
+
if (id in propertyMap) {
|
|
103
|
+
propertyMetadata = "sharedPropertyType" in propertyMap[id] ? propertyMap[id].sharedPropertyType : propertyMap[id];
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
id,
|
|
107
|
+
displayName: def.parameterConfiguration?.[id]?.displayName ?? propertyMetadata?.displayName ?? uppercaseFirstLetter(id),
|
|
108
|
+
type: def.parameterConfiguration?.[id]?.customParameterType ?? extractActionParameterType(propertyMetadata),
|
|
109
|
+
validation: def.parameterConfiguration?.[id] !== undefined ? {
|
|
110
|
+
...def.parameterConfiguration?.[id],
|
|
111
|
+
allowedValues: def.parameterConfiguration?.[id].allowedValues ?? (def.parameterConfiguration?.[id].customParameterType ? extractAllowedValuesFromActionParameterType(def.parameterConfiguration?.[id].customParameterType) : extractAllowedValuesFromPropertyType(propertyMetadata.type)),
|
|
112
|
+
required: def.parameterConfiguration?.[id].required ?? propertyMetadata?.nullability?.noNulls ?? false
|
|
113
|
+
} : {
|
|
114
|
+
required: propertyMetadata.array ?? false ? {
|
|
115
|
+
listLength: propertyMetadata.nullability?.noEmptyCollections ? {
|
|
116
|
+
min: 1
|
|
117
|
+
} : {}
|
|
118
|
+
} : requiredMap?.[id] ?? propertyMetadata?.nullability?.noNulls ?? false,
|
|
119
|
+
allowedValues: extractAllowedValuesFromPropertyType(propertyMetadata?.type)
|
|
120
|
+
},
|
|
121
|
+
defaultValue: def.parameterConfiguration?.[id]?.defaultValue,
|
|
122
|
+
description: def.parameterConfiguration?.[id]?.description,
|
|
123
|
+
renderHint: def.parameterConfiguration?.[id]?.renderHint
|
|
124
|
+
};
|
|
125
|
+
})];
|
|
115
126
|
}
|
|
116
127
|
function getTargetParameters(def, parameterSet) {
|
|
117
128
|
const targetParams = [];
|
|
@@ -675,7 +686,7 @@ export function validateActionParameters(def, properties, name) {
|
|
|
675
686
|
!(properties.includes(id) || properties.includes(addNamespaceIfNone(id)) || def.parameterConfiguration?.[id].customParameterType !== undefined || isTargetParameter(id)) ? process.env.NODE_ENV !== "production" ? invariant(false, `Parameter ${id} does not exist as a property on ${name} and its type is not explicitly defined`) : invariant(false) : void 0;
|
|
676
687
|
});
|
|
677
688
|
[...Object.keys(def.nonParameterMappings ?? {}), ...(def.excludedProperties ?? [])].forEach(id => {
|
|
678
|
-
!(properties.includes(id) || properties.includes(addNamespaceIfNone(id))) ? process.env.NODE_ENV !== "production" ? invariant(false, `Property ${id} does not exist as a property on ${name}`) : invariant(false) : void 0;
|
|
689
|
+
!(properties.includes(id) || properties.includes(addNamespaceIfNone(id)) || properties.includes(withoutNamespace(id))) ? process.env.NODE_ENV !== "production" ? invariant(false, `Property ${id} does not exist as a property on ${name}`) : invariant(false) : void 0;
|
|
679
690
|
});
|
|
680
691
|
}
|
|
681
692
|
|
|
@@ -713,4 +724,36 @@ export function getInterfaceParameterName(def, parameter) {
|
|
|
713
724
|
export function getNonNamespacedParameterName(def, parameter) {
|
|
714
725
|
return def.conflictingParameterOverrides?.[parameter] ?? (parameter.split(".").pop() || parameter);
|
|
715
726
|
}
|
|
727
|
+
export function createInterfacePropertyLogicRuleValue(id, def, actionDef) {
|
|
728
|
+
const type = getInterfacePropertyTypeType(def);
|
|
729
|
+
const array = isInterfaceSharedPropertyType(def) ? def.sharedPropertyType.array : def.array;
|
|
730
|
+
const parameterId = actionDef.useNonNamespacedParameters ? getNonNamespacedParameterName(actionDef, id) : id;
|
|
731
|
+
if (isStruct(type)) {
|
|
732
|
+
return {
|
|
733
|
+
type: "structLogicRuleValue",
|
|
734
|
+
structLogicRuleValue: Object.fromEntries(Object.entries(type.structDefinition).map(([apiName, fieldValue]) => {
|
|
735
|
+
return [apiName, array ? {
|
|
736
|
+
type: "structListParameterFieldValue",
|
|
737
|
+
structListParameterFieldValue: {
|
|
738
|
+
parameterId: parameterId,
|
|
739
|
+
structFieldApiName: apiName
|
|
740
|
+
}
|
|
741
|
+
} : {
|
|
742
|
+
type: "structParameterFieldValue",
|
|
743
|
+
structParameterFieldValue: {
|
|
744
|
+
parameterId: parameterId,
|
|
745
|
+
structFieldApiName: apiName
|
|
746
|
+
}
|
|
747
|
+
}];
|
|
748
|
+
}))
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
return {
|
|
752
|
+
type: "logicRuleValue",
|
|
753
|
+
logicRuleValue: {
|
|
754
|
+
type: "parameterId",
|
|
755
|
+
parameterId: parameterId
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
}
|
|
716
759
|
//# sourceMappingURL=defineAction.js.map
|