@osdk/maker 0.14.0-beta.5 → 0.14.0-beta.7
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 +18 -0
- package/README.md +86 -22
- package/build/browser/api/action/DefaultFormat.js +2 -0
- package/build/browser/api/action/DefaultFormat.js.map +1 -0
- package/build/browser/api/action/TableConfiguration.js +2 -0
- package/build/browser/api/action/TableConfiguration.js.map +1 -0
- package/build/browser/api/defineAction.js.map +1 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js +9 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineCreateObjectAction.js +7 -3
- package/build/browser/api/defineCreateObjectAction.js.map +1 -1
- package/build/browser/api/defineCreateOrModifyObjectAction.js +6 -3
- package/build/browser/api/defineCreateOrModifyObjectAction.js.map +1 -1
- package/build/browser/api/defineDeleteInterfaceObjectAction.js +53 -0
- package/build/browser/api/defineDeleteInterfaceObjectAction.js.map +1 -0
- package/build/browser/api/defineLink.js +5 -13
- package/build/browser/api/defineLink.js.map +1 -1
- package/build/browser/api/defineModifyInterfaceObjectAction.js +8 -0
- package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/browser/api/defineModifyObjectAction.js +4 -2
- package/build/browser/api/defineModifyObjectAction.js.map +1 -1
- package/build/browser/api/defineObject.js +94 -3
- package/build/browser/api/defineObject.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/ObjectTypeDatasourceDefinition.js.map +1 -1
- package/build/browser/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/browser/api/test/actions.test.js +3216 -2363
- package/build/browser/api/test/actions.test.js.map +1 -1
- package/build/browser/api/test/objects.test.js +1109 -12
- package/build/browser/api/test/objects.test.js.map +1 -1
- package/build/browser/cli/main.js +1 -1
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +3 -2
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertLink.js +109 -24
- package/build/browser/conversion/toMarketplace/convertLink.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertObject.js +81 -4
- package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/browser/index.js +1 -0
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +471 -201
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +154 -102
- package/build/esm/api/action/DefaultFormat.js +2 -0
- package/build/esm/api/action/DefaultFormat.js.map +1 -0
- package/build/esm/api/action/TableConfiguration.js +2 -0
- package/build/esm/api/action/TableConfiguration.js.map +1 -0
- package/build/esm/api/defineAction.js.map +1 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js +9 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineCreateObjectAction.js +7 -3
- package/build/esm/api/defineCreateObjectAction.js.map +1 -1
- package/build/esm/api/defineCreateOrModifyObjectAction.js +6 -3
- package/build/esm/api/defineCreateOrModifyObjectAction.js.map +1 -1
- package/build/esm/api/defineDeleteInterfaceObjectAction.js +53 -0
- package/build/esm/api/defineDeleteInterfaceObjectAction.js.map +1 -0
- package/build/esm/api/defineLink.js +5 -13
- package/build/esm/api/defineLink.js.map +1 -1
- package/build/esm/api/defineModifyInterfaceObjectAction.js +8 -0
- package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -1
- package/build/esm/api/defineModifyObjectAction.js +4 -2
- package/build/esm/api/defineModifyObjectAction.js.map +1 -1
- package/build/esm/api/defineObject.js +94 -3
- package/build/esm/api/defineObject.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/ObjectTypeDatasourceDefinition.js.map +1 -1
- package/build/esm/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/esm/api/test/actions.test.js +3216 -2363
- package/build/esm/api/test/actions.test.js.map +1 -1
- package/build/esm/api/test/objects.test.js +1109 -12
- package/build/esm/api/test/objects.test.js.map +1 -1
- package/build/esm/cli/main.js +1 -1
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +3 -2
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertLink.js +109 -24
- package/build/esm/conversion/toMarketplace/convertLink.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertObject.js +81 -4
- package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/types/api/action/DefaultFormat.d.ts +1 -0
- package/build/types/api/action/DefaultFormat.d.ts.map +1 -0
- package/build/types/api/action/TableConfiguration.d.ts +8 -0
- package/build/types/api/action/TableConfiguration.d.ts.map +1 -0
- package/build/types/api/defineAction.d.ts +8 -4
- package/build/types/api/defineAction.d.ts.map +1 -1
- package/build/types/api/defineCreateObjectAction.d.ts.map +1 -1
- package/build/types/api/defineDeleteInterfaceObjectAction.d.ts +3 -0
- package/build/types/api/defineDeleteInterfaceObjectAction.d.ts.map +1 -0
- package/build/types/api/defineLink.d.ts.map +1 -1
- package/build/types/api/defineObject.d.ts.map +1 -1
- package/build/types/api/links/LinkType.d.ts +7 -7
- package/build/types/api/object/ObjectType.d.ts +1 -1
- package/build/types/api/object/ObjectType.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts +41 -1
- package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDefinition.d.ts +1 -1
- package/build/types/api/object/ObjectTypeDefinition.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertLink.d.ts +6 -0
- package/build/types/conversion/toMarketplace/convertLink.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/package.json +5 -5
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, StructFieldType, OntologyIrValueTypeReferenceWithMetadata, Visibility, SharedPropertyTypeGothamMapping, OntologyIrMarketplaceInterfaceType, InterfaceTypeStatus, ValueTypeApiName, ValueTypeDisplayMetadata, ValueTypeStatus, ValueTypeVersion, BaseType, ValueTypeDataConstraint, ExampleValue, OntologyIrBaseFormatter, LinkTypeMetadata, OntologyIrLinkTypeStatus, OntologyIrObjectType, OntologyIr, DataConstraint, FailureMessage, OntologyIrType } from '@osdk/client.unstable';
|
|
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, OntologyIrMarketplaceInterfaceType, InterfaceTypeStatus, ValueTypeApiName, ValueTypeDisplayMetadata, ValueTypeStatus, ValueTypeVersion, BaseType, ValueTypeDataConstraint, ExampleValue, OntologyIrBaseFormatter, LinkTypeMetadata, OntologyIrLinkTypeStatus, DerivedPropertyLinkTypeSide, ObjectTypeFieldApiName, OntologyIrObjectType, OntologyIr, DataConstraint, FailureMessage, OntologyIrType } from '@osdk/client.unstable';
|
|
2
2
|
|
|
3
3
|
declare function main(args?: string[]): Promise<void>;
|
|
4
4
|
|
|
@@ -216,6 +216,16 @@ type ActionLevelValidationRule = {
|
|
|
216
216
|
displayMetadata?: ValidationRuleDisplayMetadata;
|
|
217
217
|
};
|
|
218
218
|
|
|
219
|
+
type DefaultFormat = "FORM" | "TABLE";
|
|
220
|
+
|
|
221
|
+
type TableConfiguration = {
|
|
222
|
+
columnWidthByParameterRid: Record<ParameterRid, number>;
|
|
223
|
+
enableFileImport: boolean;
|
|
224
|
+
fitHorizontally: boolean;
|
|
225
|
+
frozenColumnCount: number;
|
|
226
|
+
rowHeightInLines: number;
|
|
227
|
+
};
|
|
228
|
+
|
|
219
229
|
interface Nullability {
|
|
220
230
|
noEmptyCollections: boolean;
|
|
221
231
|
noNulls: boolean;
|
|
@@ -325,7 +335,101 @@ type InterfaceImplementation = {
|
|
|
325
335
|
}[];
|
|
326
336
|
};
|
|
327
337
|
|
|
328
|
-
type
|
|
338
|
+
type LinkType = (OntologyEntityBase & OneToManyLinkTypeDefinition & {
|
|
339
|
+
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
340
|
+
}) | (OntologyEntityBase & ManyToManyLinkTypeDefinition & {
|
|
341
|
+
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
342
|
+
}) | (OntologyEntityBase & IntermediaryLinkTypeDefinition & {
|
|
343
|
+
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
344
|
+
});
|
|
345
|
+
type LinkTypeDefinition = Omit<OntologyEntityBase & OneToManyLinkTypeUserDefinition & {
|
|
346
|
+
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
347
|
+
}, "__type"> | Omit<OntologyEntityBase & ManyToManyLinkTypeUserDefinition & {
|
|
348
|
+
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
349
|
+
}, "__type"> | Omit<OntologyEntityBase & IntermediaryLinkTypeUserDefinition & {
|
|
350
|
+
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
351
|
+
}, "__type">;
|
|
352
|
+
type ObjectTypePropertyApiName = string;
|
|
353
|
+
interface OneToManyLinkTypeDefinition {
|
|
354
|
+
apiName: string;
|
|
355
|
+
one: OneToManyObjectLinkReference;
|
|
356
|
+
toMany: OneToManyObjectLinkReference;
|
|
357
|
+
manyForeignKeyProperty: ObjectTypePropertyApiName;
|
|
358
|
+
cardinality: "OneToMany" | "OneToOne" | undefined;
|
|
359
|
+
editsEnabled?: boolean;
|
|
360
|
+
status?: OntologyIrLinkTypeStatus;
|
|
361
|
+
redacted?: boolean;
|
|
362
|
+
}
|
|
363
|
+
interface OneToManyObjectLinkReference {
|
|
364
|
+
object: ObjectTypeDefinition | string;
|
|
365
|
+
metadata: LinkTypeMetadata;
|
|
366
|
+
}
|
|
367
|
+
interface OneToManyLinkTypeUserDefinition {
|
|
368
|
+
apiName: string;
|
|
369
|
+
one: OneToManyObjectLinkReferenceUserDefinition;
|
|
370
|
+
toMany: OneToManyObjectLinkReferenceUserDefinition;
|
|
371
|
+
manyForeignKeyProperty: ObjectTypePropertyApiName;
|
|
372
|
+
cardinality?: "OneToMany" | "OneToOne" | undefined;
|
|
373
|
+
}
|
|
374
|
+
interface OneToManyObjectLinkReferenceUserDefinition {
|
|
375
|
+
object: ObjectTypeDefinition | string;
|
|
376
|
+
metadata: LinkTypeMetadataUserDefinition;
|
|
377
|
+
}
|
|
378
|
+
interface ManyToManyLinkTypeDefinition {
|
|
379
|
+
apiName: string;
|
|
380
|
+
many: ManyToManyObjectLinkReference;
|
|
381
|
+
toMany: ManyToManyObjectLinkReference;
|
|
382
|
+
editsEnabled?: boolean;
|
|
383
|
+
status?: OntologyIrLinkTypeStatus;
|
|
384
|
+
redacted?: boolean;
|
|
385
|
+
}
|
|
386
|
+
interface ManyToManyObjectLinkReference {
|
|
387
|
+
object: ObjectTypeDefinition | string;
|
|
388
|
+
metadata: LinkTypeMetadata;
|
|
389
|
+
}
|
|
390
|
+
interface ManyToManyLinkTypeUserDefinition {
|
|
391
|
+
apiName: string;
|
|
392
|
+
many: ManyToManyObjectLinkReferenceUserDefinition;
|
|
393
|
+
toMany: ManyToManyObjectLinkReferenceUserDefinition;
|
|
394
|
+
}
|
|
395
|
+
interface ManyToManyObjectLinkReferenceUserDefinition {
|
|
396
|
+
object: ObjectTypeDefinition | string;
|
|
397
|
+
metadata: LinkTypeMetadataUserDefinition;
|
|
398
|
+
}
|
|
399
|
+
interface IntermediaryLinkTypeDefinition {
|
|
400
|
+
apiName: string;
|
|
401
|
+
many: IntermediaryObjectLinkReference;
|
|
402
|
+
toMany: IntermediaryObjectLinkReference;
|
|
403
|
+
intermediaryObjectType: ObjectTypeDefinition;
|
|
404
|
+
editsEnabled?: boolean;
|
|
405
|
+
status?: OntologyIrLinkTypeStatus;
|
|
406
|
+
redacted?: boolean;
|
|
407
|
+
}
|
|
408
|
+
interface IntermediaryObjectLinkReference {
|
|
409
|
+
object: ObjectTypeDefinition | string;
|
|
410
|
+
metadata: LinkTypeMetadata;
|
|
411
|
+
linkToIntermediary: LinkType;
|
|
412
|
+
}
|
|
413
|
+
interface IntermediaryLinkTypeUserDefinition {
|
|
414
|
+
apiName: string;
|
|
415
|
+
many: IntermediaryObjectLinkReferenceUserDefinition;
|
|
416
|
+
toMany: IntermediaryObjectLinkReferenceUserDefinition;
|
|
417
|
+
intermediaryObjectType: ObjectTypeDefinition | string;
|
|
418
|
+
}
|
|
419
|
+
interface IntermediaryObjectLinkReferenceUserDefinition {
|
|
420
|
+
object: ObjectTypeDefinition | string;
|
|
421
|
+
metadata: LinkTypeMetadataUserDefinition;
|
|
422
|
+
linkToIntermediary: LinkType;
|
|
423
|
+
}
|
|
424
|
+
interface LinkTypeMetadataUserDefinition {
|
|
425
|
+
apiName: string;
|
|
426
|
+
displayName?: string;
|
|
427
|
+
pluralDisplayName?: string;
|
|
428
|
+
visibility?: Visibility;
|
|
429
|
+
groupDisplayName?: string;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
type ObjectTypeDatasourceDefinition = ObjectTypeDatasourceDefinition_stream | ObjectTypeDatasourceDefinition_dataset | ObjectTypeDatasourceDefinition_restrictedView | ObjectTypeDatasourceDefinition_derived;
|
|
329
433
|
interface ObjectTypeDatasourceDefinition_dataset {
|
|
330
434
|
type: "dataset";
|
|
331
435
|
}
|
|
@@ -336,6 +440,44 @@ interface ObjectTypeDatasourceDefinition_stream {
|
|
|
336
440
|
interface ObjectTypeDatasourceDefinition_restrictedView {
|
|
337
441
|
type: "restrictedView";
|
|
338
442
|
}
|
|
443
|
+
interface ObjectTypeDatasourceDefinition_derived {
|
|
444
|
+
type: "derived";
|
|
445
|
+
linkDefinition: Array<DerivedPropertiesLinkDefinition>;
|
|
446
|
+
propertyMapping: Record<ObjectTypeFieldApiName, ObjectTypeFieldApiName> | Record<ObjectTypeFieldApiName, DerivedPropertyAggregation>;
|
|
447
|
+
}
|
|
448
|
+
interface DerivedPropertiesLinkDefinition {
|
|
449
|
+
linkType: LinkType;
|
|
450
|
+
side?: DerivedPropertyLinkTypeSide;
|
|
451
|
+
}
|
|
452
|
+
type DerivedPropertyAggregation = {
|
|
453
|
+
type: "count";
|
|
454
|
+
} | {
|
|
455
|
+
type: "avg";
|
|
456
|
+
property: ObjectTypeFieldApiName;
|
|
457
|
+
} | {
|
|
458
|
+
type: "sum";
|
|
459
|
+
property: ObjectTypeFieldApiName;
|
|
460
|
+
} | {
|
|
461
|
+
type: "min";
|
|
462
|
+
property: ObjectTypeFieldApiName;
|
|
463
|
+
} | {
|
|
464
|
+
type: "max";
|
|
465
|
+
property: ObjectTypeFieldApiName;
|
|
466
|
+
} | {
|
|
467
|
+
type: "approximateCardinality";
|
|
468
|
+
property: ObjectTypeFieldApiName;
|
|
469
|
+
} | {
|
|
470
|
+
type: "exactCardinality";
|
|
471
|
+
property: ObjectTypeFieldApiName;
|
|
472
|
+
} | {
|
|
473
|
+
type: "collectList";
|
|
474
|
+
property: ObjectTypeFieldApiName;
|
|
475
|
+
limit: number;
|
|
476
|
+
} | {
|
|
477
|
+
type: "collectSet";
|
|
478
|
+
property: ObjectTypeFieldApiName;
|
|
479
|
+
limit: number;
|
|
480
|
+
};
|
|
339
481
|
|
|
340
482
|
type ObjectTypeDefinition = {
|
|
341
483
|
apiName: string;
|
|
@@ -355,7 +497,7 @@ type ObjectTypeDefinition = {
|
|
|
355
497
|
visibility?: Visibility;
|
|
356
498
|
editsEnabled?: boolean;
|
|
357
499
|
status?: ObjectTypeStatus;
|
|
358
|
-
|
|
500
|
+
datasources?: Array<ObjectTypeDatasourceDefinition>;
|
|
359
501
|
};
|
|
360
502
|
|
|
361
503
|
declare const MODIFY_OBJECT_PARAMETER: string;
|
|
@@ -373,9 +515,9 @@ type ActionTypeUserDefinition = {
|
|
|
373
515
|
actionLevelValidation?: ActionLevelValidationDefinition;
|
|
374
516
|
excludedProperties?: Array<ParameterId>;
|
|
375
517
|
sections?: Array<ActionSection>;
|
|
376
|
-
defaultFormat?:
|
|
518
|
+
defaultFormat?: DefaultFormat;
|
|
377
519
|
enableLayoutSwitch?: boolean;
|
|
378
|
-
|
|
520
|
+
tableConfiguration?: TableConfiguration;
|
|
379
521
|
parameterOrdering?: Array<string>;
|
|
380
522
|
submissionMetadata?: SubmissionMetadata;
|
|
381
523
|
primaryKeyOption?: "autoGenerated" | "userInput";
|
|
@@ -391,9 +533,11 @@ type InterfaceActionTypeUserDefinition = {
|
|
|
391
533
|
actionLevelValidation?: ActionLevelValidationDefinition;
|
|
392
534
|
excludedProperties?: Array<string>;
|
|
393
535
|
sections?: Array<ActionSection>;
|
|
536
|
+
defaultFormat?: DefaultFormat;
|
|
394
537
|
enableLayoutSwitch?: boolean;
|
|
395
|
-
|
|
538
|
+
tableConfiguration?: TableConfiguration;
|
|
396
539
|
parameterOrdering?: Array<string>;
|
|
540
|
+
submissionMetadata?: SubmissionMetadata;
|
|
397
541
|
};
|
|
398
542
|
declare function defineAction(actionDef: ActionTypeDefinition): ActionType;
|
|
399
543
|
|
|
@@ -403,6 +547,8 @@ declare function defineCreateObjectAction(def: ActionTypeUserDefinition): Action
|
|
|
403
547
|
|
|
404
548
|
declare function defineCreateOrModifyObjectAction(def: ActionTypeUserDefinition): ActionType;
|
|
405
549
|
|
|
550
|
+
declare function defineDeleteInterfaceObjectAction(def: InterfaceActionTypeUserDefinition): ActionType;
|
|
551
|
+
|
|
406
552
|
declare function defineDeleteObjectAction(def: ActionTypeUserDefinition): ActionType;
|
|
407
553
|
|
|
408
554
|
type SimplifiedInterfaceTypeStatus = {
|
|
@@ -455,100 +601,6 @@ type One = {
|
|
|
455
601
|
};
|
|
456
602
|
declare function defineInterfaceLinkConstraint(linkDef: One | Many): void;
|
|
457
603
|
|
|
458
|
-
type LinkType = (OntologyEntityBase & OneToManyLinkTypeDefinition & {
|
|
459
|
-
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
460
|
-
}) | (OntologyEntityBase & ManyToManyLinkTypeDefinition & {
|
|
461
|
-
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
462
|
-
}) | (OntologyEntityBase & IntermediaryLinkTypeDefinition & {
|
|
463
|
-
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
464
|
-
});
|
|
465
|
-
type LinkTypeDefinition = Omit<OntologyEntityBase & OneToManyLinkTypeUserDefinition & {
|
|
466
|
-
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
467
|
-
}, "__type"> | Omit<OntologyEntityBase & ManyToManyLinkTypeUserDefinition & {
|
|
468
|
-
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
469
|
-
}, "__type"> | Omit<OntologyEntityBase & IntermediaryLinkTypeUserDefinition & {
|
|
470
|
-
__type: OntologyEntityTypeEnum.LINK_TYPE;
|
|
471
|
-
}, "__type">;
|
|
472
|
-
type ObjectTypePropertyApiName = string;
|
|
473
|
-
interface OneToManyLinkTypeDefinition {
|
|
474
|
-
apiName: string;
|
|
475
|
-
one: OneToManyObjectLinkReference;
|
|
476
|
-
toMany: OneToManyObjectLinkReference;
|
|
477
|
-
manyForeignKeyProperty: ObjectTypePropertyApiName;
|
|
478
|
-
cardinality: "OneToMany" | "OneToOne" | undefined;
|
|
479
|
-
editsEnabled?: boolean;
|
|
480
|
-
status?: OntologyIrLinkTypeStatus;
|
|
481
|
-
redacted?: boolean;
|
|
482
|
-
}
|
|
483
|
-
interface OneToManyObjectLinkReference {
|
|
484
|
-
object: ObjectTypeDefinition;
|
|
485
|
-
metadata: LinkTypeMetadata;
|
|
486
|
-
}
|
|
487
|
-
interface OneToManyLinkTypeUserDefinition {
|
|
488
|
-
apiName: string;
|
|
489
|
-
one: OneToManyObjectLinkReferenceUserDefinition;
|
|
490
|
-
toMany: OneToManyObjectLinkReferenceUserDefinition;
|
|
491
|
-
manyForeignKeyProperty: ObjectTypePropertyApiName;
|
|
492
|
-
cardinality?: "OneToMany" | "OneToOne" | undefined;
|
|
493
|
-
}
|
|
494
|
-
interface OneToManyObjectLinkReferenceUserDefinition {
|
|
495
|
-
object: ObjectTypeDefinition;
|
|
496
|
-
metadata: LinkTypeMetadataUserDefinition;
|
|
497
|
-
}
|
|
498
|
-
interface ManyToManyLinkTypeDefinition {
|
|
499
|
-
apiName: string;
|
|
500
|
-
many: ManyToManyObjectLinkReference;
|
|
501
|
-
toMany: ManyToManyObjectLinkReference;
|
|
502
|
-
editsEnabled?: boolean;
|
|
503
|
-
status?: OntologyIrLinkTypeStatus;
|
|
504
|
-
redacted?: boolean;
|
|
505
|
-
}
|
|
506
|
-
interface ManyToManyObjectLinkReference {
|
|
507
|
-
object: ObjectTypeDefinition;
|
|
508
|
-
metadata: LinkTypeMetadata;
|
|
509
|
-
}
|
|
510
|
-
interface ManyToManyLinkTypeUserDefinition {
|
|
511
|
-
apiName: string;
|
|
512
|
-
many: ManyToManyObjectLinkReferenceUserDefinition;
|
|
513
|
-
toMany: ManyToManyObjectLinkReferenceUserDefinition;
|
|
514
|
-
}
|
|
515
|
-
interface ManyToManyObjectLinkReferenceUserDefinition {
|
|
516
|
-
object: ObjectTypeDefinition;
|
|
517
|
-
metadata: LinkTypeMetadataUserDefinition;
|
|
518
|
-
}
|
|
519
|
-
interface IntermediaryLinkTypeDefinition {
|
|
520
|
-
apiName: string;
|
|
521
|
-
many: IntermediaryObjectLinkReference;
|
|
522
|
-
toMany: IntermediaryObjectLinkReference;
|
|
523
|
-
intermediaryObjectType: ObjectTypeDefinition;
|
|
524
|
-
editsEnabled?: boolean;
|
|
525
|
-
status?: OntologyIrLinkTypeStatus;
|
|
526
|
-
redacted?: boolean;
|
|
527
|
-
}
|
|
528
|
-
interface IntermediaryObjectLinkReference {
|
|
529
|
-
object: ObjectTypeDefinition;
|
|
530
|
-
metadata: LinkTypeMetadata;
|
|
531
|
-
linkToIntermediary: LinkType;
|
|
532
|
-
}
|
|
533
|
-
interface IntermediaryLinkTypeUserDefinition {
|
|
534
|
-
apiName: string;
|
|
535
|
-
many: IntermediaryObjectLinkReferenceUserDefinition;
|
|
536
|
-
toMany: IntermediaryObjectLinkReferenceUserDefinition;
|
|
537
|
-
intermediaryObjectType: ObjectTypeDefinition;
|
|
538
|
-
}
|
|
539
|
-
interface IntermediaryObjectLinkReferenceUserDefinition {
|
|
540
|
-
object: ObjectTypeDefinition;
|
|
541
|
-
metadata: LinkTypeMetadataUserDefinition;
|
|
542
|
-
linkToIntermediary: LinkType;
|
|
543
|
-
}
|
|
544
|
-
interface LinkTypeMetadataUserDefinition {
|
|
545
|
-
apiName: string;
|
|
546
|
-
displayName?: string;
|
|
547
|
-
pluralDisplayName?: string;
|
|
548
|
-
visibility?: Visibility;
|
|
549
|
-
groupDisplayName?: string;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
604
|
declare function defineLink(linkDefinition: LinkTypeDefinition): LinkType;
|
|
553
605
|
|
|
554
606
|
declare function defineModifyInterfaceObjectAction(def: InterfaceActionTypeUserDefinition): ActionType;
|
|
@@ -560,7 +612,7 @@ declare function uppercaseFirstLetter(s: string | undefined | null): string;
|
|
|
560
612
|
declare function convertToPluralDisplayName(s: string | undefined | null): string;
|
|
561
613
|
|
|
562
614
|
type ObjectType = OntologyEntityBase & RequiredFields<Partial<ObjectTypeInner>, "apiName" | "primaryKeyPropertyApiName" | "displayName" | "pluralDisplayName" | "titlePropertyApiName"> & {
|
|
563
|
-
|
|
615
|
+
datasources?: Array<ObjectTypeDatasourceDefinition>;
|
|
564
616
|
__type: OntologyEntityTypeEnum.OBJECT_TYPE;
|
|
565
617
|
};
|
|
566
618
|
interface ObjectTypeInner extends Omit<OntologyIrObjectType, "titlePropertyTypeRid" | "propertyTypes" | "allImplementsInterfaces" | "implementsInterfaces2" | "displayMetadata" | "primaryKeys" | "status"> {
|
|
@@ -813,4 +865,4 @@ declare function wrapWithProxy<T extends OntologyEntityBase>(entity: T): T;
|
|
|
813
865
|
|
|
814
866
|
declare function propertyTypeTypeToOntologyIrType(type: PropertyTypeType): OntologyIrType;
|
|
815
867
|
|
|
816
|
-
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, 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, defineDeleteObjectAction, defineInterface, defineInterfaceLinkConstraint, defineLink, defineModifyInterfaceObjectAction, defineModifyObjectAction, defineObject, defineOntology, defineSharedPropertyType, defineValueType, dumpOntologyFullMetadata, importOntologyEntity, importSharedPropertyType, wrapWithProxy };
|
|
868
|
+
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, 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultFormat.js","names":[],"sources":["DefaultFormat.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\nexport type DefaultFormat = \"FORM\" | \"TABLE\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableConfiguration.js","names":[],"sources":["TableConfiguration.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 { ParameterRid } from \"@osdk/client.unstable\";\nexport type TableConfiguration = {\n columnWidthByParameterRid: Record<ParameterRid, number>;\n enableFileImport: boolean;\n fitHorizontally: boolean;\n frozenColumnCount: number;\n rowHeightInLines: number;\n};\n"],"mappings":"","ignoreList":[]}
|