@osdk/client 0.8.0 → 0.9.0
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/build/js/{chunk-TJNTUGSE.mjs → chunk-BQNFWSLL.mjs} +48 -22
- package/build/js/chunk-BQNFWSLL.mjs.map +1 -0
- package/build/js/{chunk-V77HHGVZ.cjs → chunk-KAL57TC5.cjs} +47 -21
- package/build/js/chunk-KAL57TC5.cjs.map +1 -0
- package/build/js/index.cjs +32 -14
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +28 -10
- package/build/js/index.mjs.map +1 -1
- package/build/js/public/objects.cjs +3 -3
- package/build/js/public/objects.mjs +1 -1
- package/build/types/Client.d.ts +3 -3
- package/build/types/ObjectSetCreator.d.ts +3 -3
- package/build/types/OsdkObjectFrom.d.ts +11 -17
- package/build/types/actions/Actions.d.ts +17 -13
- package/build/types/actions/applyAction.d.ts +3 -10
- package/build/types/actions/createActionInvoker.d.ts +2 -1
- package/build/types/definitions/LinkDefinitions.d.ts +12 -13
- package/build/types/generatedNoCheck/Ontology.d.ts +13 -477
- package/build/types/generatedNoCheck/ontology/actions/actionTakesAttachment.d.ts +22 -10
- package/build/types/generatedNoCheck/ontology/actions/actionTakesObjectSet.d.ts +23 -13
- package/build/types/generatedNoCheck/ontology/actions/createOffice.d.ts +40 -28
- package/build/types/generatedNoCheck/ontology/actions/createOfficeAndEmployee.d.ts +46 -34
- package/build/types/generatedNoCheck/ontology/actions/index.d.ts +7 -7
- package/build/types/generatedNoCheck/ontology/actions/moveOffice.d.ts +40 -28
- package/build/types/generatedNoCheck/ontology/actions/promoteEmployee.d.ts +32 -20
- package/build/types/generatedNoCheck/ontology/actions/promoteEmployeeObject.d.ts +33 -23
- package/build/types/generatedNoCheck/ontology/objects/Employee.d.ts +20 -25
- package/build/types/generatedNoCheck/ontology/objects/ObjectWithTimestampPrimaryKey.d.ts +10 -7
- package/build/types/generatedNoCheck/ontology/objects/Office.d.ts +16 -15
- package/build/types/generatedNoCheck/ontology/objects/equipment.d.ts +10 -7
- package/build/types/generatedNoCheck/ontology/objects/objectTypeWithAllPropertyTypes.d.ts +38 -35
- package/build/types/index.d.ts +3 -1
- package/build/types/internal/conversions/legacyToModernSingleAggregationResult.d.ts +1 -1
- package/build/types/internal/conversions/modernToLegacyAggregationClause.d.ts +1 -2
- package/build/types/internal/conversions/modernToLegacyGroupByClause.d.ts +1 -2
- package/build/types/object/aggregateOrThrow.d.ts +3 -2
- package/build/types/object/fetchPageOrThrow.d.ts +4 -4
- package/build/types/object/followLinkOrThrow.d.ts +1 -1
- package/build/types/object/getLinkedObjectByPkOrThrow.d.ts +1 -1
- package/build/types/object/getLinkedObjectOrThrow.d.ts +5 -2
- package/build/types/object/pageLinkedObjectsOrThrow.d.ts +4 -6
- package/build/types/objectSet/LinkTypesFrom.d.ts +2 -2
- package/build/types/objectSet/ObjectSet.d.ts +13 -11
- package/build/types/objectSet/ObjectSet.test.d.ts +1 -0
- package/build/types/objectSet/ObjectSetListener.d.ts +7 -7
- package/build/types/objectSet/ObjectSetListenerWebsocket.d.ts +2 -2
- package/build/types/objectSet/createObjectSet.d.ts +2 -2
- package/build/types/query/WhereClause.d.ts +12 -5
- package/build/types/query/aggregations/AggregatableKeys.d.ts +3 -3
- package/build/types/query/aggregations/AggregateOpts.d.ts +4 -4
- package/build/types/query/aggregations/AggregationResultsWithGroups.d.ts +4 -4
- package/build/types/query/aggregations/AggregationResultsWithoutGroups.d.ts +5 -5
- package/build/types/query/aggregations/AggregationsClause.d.ts +5 -5
- package/build/types/query/aggregations/AggregationsClause.test.d.ts +4 -2
- package/build/types/query/aggregations/AggregationsResults.d.ts +2 -2
- package/build/types/query/aggregations/GroupByClause.d.ts +4 -4
- package/build/types/query/aggregations/GroupByClause.test.d.ts +2 -1
- package/build/types/util/test/mockOntology.d.ts +50 -48
- package/changelog/0.6.0/pr-9.v2.yml +5 -0
- package/changelog/0.7.0/pr-20.v2.yml +5 -0
- package/changelog/0.7.0/pr-24.v2.yml +5 -0
- package/changelog/0.7.0/pr-28.v2.yml +5 -0
- package/changelog/0.8.0/pr-30.v2.yml +5 -0
- package/changelog/0.9.0/pr-43.v2.yml +5 -0
- package/changelog/0.9.0/pr-45.v2.yml +5 -0
- package/changelog/0.9.0/pr-48.v2.yml +5 -0
- package/changelog/0.9.0/pr-59.v2.yml +5 -0
- package/changelog/0.9.0/pr-65.v2.yml +5 -0
- package/changelog/0.9.0/pr-72.v2.yml +5 -0
- package/changelog/0.9.0/pr-75.v2.yml +5 -0
- package/changelog/@unreleased/.gitkeep +0 -0
- package/package.json +11 -6
- package/build/js/chunk-TJNTUGSE.mjs.map +0 -1
- package/build/js/chunk-V77HHGVZ.cjs.map +0 -1
- /package/{CHANGELOG.md → CHANGELOG_OLD.md} +0 -0
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InterfaceDefinition, InterfacePropertyKeysFrom2, ObjectOrInterfacePropertyKeysFrom2, ObjectTypeDefinition, WirePropertyTypes } from "@osdk/api";
|
|
2
2
|
import type { OsdkObjectPropertyType } from "./Definitions.js";
|
|
3
3
|
import type { OsdkObjectLinksObject } from "./definitions/LinkDefinitions.js";
|
|
4
|
-
export type OsdkObjectPrimaryKeyType<
|
|
5
|
-
|
|
6
|
-
[P in
|
|
4
|
+
export type OsdkObjectPrimaryKeyType<O extends ObjectTypeDefinition<any>> = WirePropertyTypes[O["primaryKeyType"]];
|
|
5
|
+
type OsdkCommonFrom<Q extends ObjectTypeDefinition<any> | InterfaceDefinition<any, any>, L extends ObjectOrInterfacePropertyKeysFrom2<Q> = ObjectOrInterfacePropertyKeysFrom2<Q>> = {
|
|
6
|
+
[P in L]: OsdkObjectPropertyType<Q["properties"][P]>;
|
|
7
7
|
} & {
|
|
8
|
-
__apiName:
|
|
9
|
-
__primaryKey: OsdkObjectPrimaryKeyType<
|
|
8
|
+
__apiName: Q["apiName"];
|
|
9
|
+
__primaryKey: Q extends ObjectTypeDefinition<any> ? OsdkObjectPrimaryKeyType<Q> : unknown;
|
|
10
10
|
/**
|
|
11
11
|
* Future versions will require explicitly asking for this field. For now we are marking
|
|
12
12
|
* as always optional to avoid breaking changes.
|
|
13
13
|
*/
|
|
14
14
|
__rid?: string;
|
|
15
|
-
$link: OsdkObjectLinksObject<T_ObjectTypeKey, T_Ontology>;
|
|
16
15
|
};
|
|
17
|
-
export type
|
|
18
|
-
|
|
19
|
-
} & {
|
|
20
|
-
__apiName: T_InterfaceKey;
|
|
21
|
-
__primaryKey: unknown;
|
|
22
|
-
/**
|
|
23
|
-
* Future versions will require explicitly asking for this field. For now we are marking
|
|
24
|
-
* as always optional to avoid breaking changes.
|
|
25
|
-
*/
|
|
26
|
-
__rid?: string;
|
|
16
|
+
export type OsdkObjectFrom<O extends ObjectTypeDefinition<any>, L extends ObjectOrInterfacePropertyKeysFrom2<O> = ObjectOrInterfacePropertyKeysFrom2<O>> = OsdkCommonFrom<O, L> & {
|
|
17
|
+
$link: OsdkObjectLinksObject<O>;
|
|
27
18
|
};
|
|
19
|
+
export type OsdkInterfaceFrom<Q extends InterfaceDefinition<any, any>, T_PropertyKeys extends InterfacePropertyKeysFrom2<Q> = InterfacePropertyKeysFrom2<Q>> = OsdkCommonFrom<Q, T_PropertyKeys>;
|
|
20
|
+
export type OsdkObjectOrInterfaceFrom<Q extends ObjectTypeDefinition<any> | InterfaceDefinition<any, any>, L extends ObjectOrInterfacePropertyKeysFrom2<Q> = ObjectOrInterfacePropertyKeysFrom2<Q>> = Q extends InterfaceDefinition<any, any> ? OsdkInterfaceFrom<Q, L> : Q extends ObjectTypeDefinition<any> ? OsdkObjectFrom<Q, L> : never;
|
|
21
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ObjectActionDataType, ObjectSetActionDataType, OntologyDefinition, WirePropertyTypes } from "@osdk/api";
|
|
1
|
+
import type { ActionParameterDefinition, ObjectActionDataType, ObjectSetActionDataType, OntologyDefinition, WirePropertyTypes } from "@osdk/api";
|
|
2
2
|
import type { ActionResults, ValidateActionResponseV2 } from "@osdk/gateway/types";
|
|
3
3
|
import type { ObjectSet } from "../index.js";
|
|
4
4
|
import type { Attachment } from "../object/Attachment.js";
|
|
@@ -6,24 +6,28 @@ import type { OsdkObjectFrom, OsdkObjectPrimaryKeyType } from "../OsdkObjectFrom
|
|
|
6
6
|
import type { NOOP } from "../util/NOOP.js";
|
|
7
7
|
import type { NullableProps } from "../util/NullableProps.js";
|
|
8
8
|
import type { PartialByNotStrict } from "../util/PartialBy.js";
|
|
9
|
-
import type { ActionReturnTypeForOptions
|
|
10
|
-
type
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import type { ActionReturnTypeForOptions } from "./applyAction.js";
|
|
10
|
+
export type ApplyActionOptions = {
|
|
11
|
+
returnEdits?: true;
|
|
12
|
+
validateOnly?: false;
|
|
13
|
+
} | {
|
|
14
|
+
validateOnly?: true;
|
|
15
|
+
returnEdits?: false;
|
|
16
|
+
};
|
|
15
17
|
interface OverrideWirePropertyTypes extends WirePropertyTypes {
|
|
16
18
|
attachment: Attachment;
|
|
17
19
|
}
|
|
18
|
-
type
|
|
19
|
-
type
|
|
20
|
-
type
|
|
21
|
-
[P in
|
|
20
|
+
type BaseType<APD extends ActionParameterDefinition<any, any>> = APD["type"] extends ObjectActionDataType<any, infer TTargetType> ? OsdkObjectFrom<TTargetType> | OsdkObjectPrimaryKeyType<TTargetType> : APD["type"] extends ObjectSetActionDataType<any, infer TTargetType> ? ObjectSet<TTargetType> : APD["type"] extends keyof OverrideWirePropertyTypes ? OverrideWirePropertyTypes[APD["type"]] : never;
|
|
21
|
+
type MaybeArrayType<APD extends ActionParameterDefinition<any, any>> = APD["multiplicity"] extends true ? Array<BaseType<APD>> : BaseType<APD>;
|
|
22
|
+
type NotOptionalParams<X extends ActionParametersDefinition> = {
|
|
23
|
+
[P in keyof X]: MaybeArrayType<X[P]>;
|
|
22
24
|
};
|
|
23
|
-
type OsdkActionParameters<
|
|
25
|
+
export type OsdkActionParameters<X extends ActionParametersDefinition> = NullableProps<X> extends never ? NotOptionalParams<X> : PartialByNotStrict<NotOptionalParams<X>, NullableProps<X>>;
|
|
24
26
|
export type Actions<O extends OntologyDefinition<any>> = {
|
|
25
|
-
[K in
|
|
27
|
+
[K in keyof O["actions"]]: NonNullable<O["actions"][K]["__OsdkActionType"]> extends never ? ActionSignature<O["actions"][K]["parameters"]> : NonNullable<O["actions"][K]["__OsdkActionType"]>;
|
|
26
28
|
};
|
|
29
|
+
type ActionParametersDefinition = Record<any, ActionParameterDefinition<any, any>>;
|
|
30
|
+
export type ActionSignature<X extends Record<any, ActionParameterDefinition<any, any>>> = <OP extends ApplyActionOptions>(args: NOOP<OsdkActionParameters<X>>, options?: OP) => Promise<ActionReturnTypeForOptions<OP>>;
|
|
27
31
|
export type ActionEditResponse = ActionResults;
|
|
28
32
|
export type ActionValidationResponse = ValidateActionResponseV2;
|
|
29
33
|
export {};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActionDefinition } from "@osdk/api";
|
|
2
2
|
import type { ClientContext } from "@osdk/shared.net";
|
|
3
|
-
import type { ActionEditResponse,
|
|
4
|
-
export type ApplyActionOptions = {
|
|
5
|
-
returnEdits?: true;
|
|
6
|
-
validateOnly?: false;
|
|
7
|
-
} | {
|
|
8
|
-
validateOnly?: true;
|
|
9
|
-
returnEdits?: false;
|
|
10
|
-
};
|
|
3
|
+
import type { ActionEditResponse, ActionValidationResponse, ApplyActionOptions, OsdkActionParameters } from "./Actions.js";
|
|
11
4
|
export type ActionReturnTypeForOptions<Op extends ApplyActionOptions> = Op extends {
|
|
12
5
|
validateOnly: true;
|
|
13
6
|
} ? ActionValidationResponse : Op extends {
|
|
14
7
|
returnEdits: true;
|
|
15
8
|
} ? ActionEditResponse : undefined;
|
|
16
|
-
export declare function applyAction<
|
|
9
|
+
export declare function applyAction<AD extends ActionDefinition<any, any>, Op extends ApplyActionOptions>(client: ClientContext<any>, action: AD, parameters?: OsdkActionParameters<AD["parameters"]>, options?: Op): Promise<ActionReturnTypeForOptions<Op>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OntologyDefinition } from "@osdk/api";
|
|
1
2
|
import type { ClientContext } from "@osdk/shared.net";
|
|
2
3
|
import type { Actions } from "./Actions.js";
|
|
3
|
-
export declare function createActionInvoker<T extends ClientContext<any
|
|
4
|
+
export declare function createActionInvoker<T extends ClientContext<OntologyDefinition<any>>>(client: T): Actions<any>;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ObjectTypeDefinition, ObjectTypeLinkDefinition, ObjectTypeLinkKeysFrom2 } from "@osdk/api";
|
|
2
2
|
import type { FetchPageOrThrowArgs, SelectArg } from "../object/fetchPageOrThrow.js";
|
|
3
|
+
import type { SelectArgToKeys } from "../object/pageLinkedObjectsOrThrow.js";
|
|
3
4
|
import type { OsdkObjectFrom, OsdkObjectPrimaryKeyType } from "../OsdkObjectFrom.js";
|
|
4
5
|
import type { PageResult } from "../PageResult.js";
|
|
5
6
|
/** The $link container to get from one object type to its linked objects */
|
|
6
|
-
export type OsdkObjectLinksObject<
|
|
7
|
-
[L in
|
|
7
|
+
export type OsdkObjectLinksObject<O extends ObjectTypeDefinition<any>> = ObjectTypeLinkKeysFrom2<O> extends never ? never : {
|
|
8
|
+
[L in ObjectTypeLinkKeysFrom2<O>]: OsdkObjectLinksEntry<O, L>;
|
|
8
9
|
};
|
|
9
|
-
export type OsdkObjectLinksEntry<
|
|
10
|
-
|
|
11
|
-
} ? {
|
|
10
|
+
export type OsdkObjectLinksEntry<O extends ObjectTypeDefinition<any>, L extends ObjectTypeLinkKeysFrom2<O>> = O["links"][L] extends ObjectTypeLinkDefinition<infer T, infer M> ? (M extends false ? SingletonLinkAccessor<T> : MultitonLinkAccessor<T>) : never;
|
|
11
|
+
export interface SingletonLinkAccessor<T extends ObjectTypeDefinition<any>> {
|
|
12
12
|
/** Load the linked object */
|
|
13
|
-
get: <A extends SelectArg<
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
get: <A extends SelectArg<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
13
|
+
get: <A extends SelectArg<T>>(options?: A) => Promise<OsdkObjectFrom<T, SelectArgToKeys<A>>>;
|
|
14
|
+
}
|
|
15
|
+
export interface MultitonLinkAccessor<T extends ObjectTypeDefinition<any>> {
|
|
16
|
+
get: <A extends SelectArg<T>>(pk: OsdkObjectPrimaryKeyType<T>, options?: A) => Promise<OsdkObjectFrom<T, SelectArgToKeys<A>>>;
|
|
17
|
+
fetchPageOrThrow: <A extends FetchPageOrThrowArgs<T>>(options?: A) => Promise<PageResult<OsdkObjectFrom<T, SelectArgToKeys<A>>>>;
|
|
18
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as Objects from './ontology/objects.js';
|
|
1
2
|
declare const _Ontology: {
|
|
2
3
|
metadata: {
|
|
3
4
|
ontologyRid: string;
|
|
@@ -5,485 +6,20 @@ declare const _Ontology: {
|
|
|
5
6
|
userAgent: string;
|
|
6
7
|
};
|
|
7
8
|
objects: {
|
|
8
|
-
Employee:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
peeps: {
|
|
14
|
-
multiplicity: true;
|
|
15
|
-
targetType: "Employee";
|
|
16
|
-
};
|
|
17
|
-
lead: {
|
|
18
|
-
multiplicity: false;
|
|
19
|
-
targetType: "Employee";
|
|
20
|
-
};
|
|
21
|
-
officeLink: {
|
|
22
|
-
multiplicity: false;
|
|
23
|
-
targetType: "Office";
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
properties: {
|
|
27
|
-
employeeId: {
|
|
28
|
-
multiplicity: false;
|
|
29
|
-
type: "integer";
|
|
30
|
-
nullable: false;
|
|
31
|
-
};
|
|
32
|
-
fullName: {
|
|
33
|
-
multiplicity: false;
|
|
34
|
-
type: "string";
|
|
35
|
-
nullable: true;
|
|
36
|
-
};
|
|
37
|
-
office: {
|
|
38
|
-
multiplicity: false;
|
|
39
|
-
description: string;
|
|
40
|
-
type: "string";
|
|
41
|
-
nullable: true;
|
|
42
|
-
};
|
|
43
|
-
startDate: {
|
|
44
|
-
multiplicity: false;
|
|
45
|
-
description: string;
|
|
46
|
-
type: "datetime";
|
|
47
|
-
nullable: true;
|
|
48
|
-
};
|
|
49
|
-
employeeStatus: {
|
|
50
|
-
multiplicity: false;
|
|
51
|
-
description: string;
|
|
52
|
-
type: "stringTimeseries";
|
|
53
|
-
nullable: true;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
Office: {
|
|
58
|
-
apiName: "Office";
|
|
59
|
-
description: string;
|
|
60
|
-
primaryKeyType: "string";
|
|
61
|
-
links: {
|
|
62
|
-
occupants: {
|
|
63
|
-
multiplicity: true;
|
|
64
|
-
targetType: "Employee";
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
properties: {
|
|
68
|
-
officeId: {
|
|
69
|
-
multiplicity: false;
|
|
70
|
-
type: "string";
|
|
71
|
-
nullable: false;
|
|
72
|
-
};
|
|
73
|
-
entrance: {
|
|
74
|
-
multiplicity: false;
|
|
75
|
-
type: "geopoint";
|
|
76
|
-
nullable: true;
|
|
77
|
-
};
|
|
78
|
-
occupiedArea: {
|
|
79
|
-
multiplicity: false;
|
|
80
|
-
description: string;
|
|
81
|
-
type: "geoshape";
|
|
82
|
-
nullable: true;
|
|
83
|
-
};
|
|
84
|
-
name: {
|
|
85
|
-
multiplicity: false;
|
|
86
|
-
description: string;
|
|
87
|
-
type: "string";
|
|
88
|
-
nullable: true;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
objectTypeWithAllPropertyTypes: {
|
|
93
|
-
apiName: "objectTypeWithAllPropertyTypes";
|
|
94
|
-
description: string;
|
|
95
|
-
primaryKeyType: "integer";
|
|
96
|
-
links: {};
|
|
97
|
-
properties: {
|
|
98
|
-
id: {
|
|
99
|
-
multiplicity: false;
|
|
100
|
-
type: "integer";
|
|
101
|
-
nullable: false;
|
|
102
|
-
};
|
|
103
|
-
string: {
|
|
104
|
-
multiplicity: false;
|
|
105
|
-
type: "string";
|
|
106
|
-
nullable: true;
|
|
107
|
-
};
|
|
108
|
-
boolean: {
|
|
109
|
-
multiplicity: false;
|
|
110
|
-
type: "boolean";
|
|
111
|
-
nullable: true;
|
|
112
|
-
};
|
|
113
|
-
date: {
|
|
114
|
-
multiplicity: false;
|
|
115
|
-
type: "datetime";
|
|
116
|
-
nullable: true;
|
|
117
|
-
};
|
|
118
|
-
dateTime: {
|
|
119
|
-
multiplicity: false;
|
|
120
|
-
type: "timestamp";
|
|
121
|
-
nullable: true;
|
|
122
|
-
};
|
|
123
|
-
decimal: {
|
|
124
|
-
multiplicity: false;
|
|
125
|
-
type: "decimal";
|
|
126
|
-
nullable: true;
|
|
127
|
-
};
|
|
128
|
-
integer: {
|
|
129
|
-
multiplicity: false;
|
|
130
|
-
type: "integer";
|
|
131
|
-
nullable: true;
|
|
132
|
-
};
|
|
133
|
-
long: {
|
|
134
|
-
multiplicity: false;
|
|
135
|
-
type: "long";
|
|
136
|
-
nullable: true;
|
|
137
|
-
};
|
|
138
|
-
short: {
|
|
139
|
-
multiplicity: false;
|
|
140
|
-
type: "short";
|
|
141
|
-
nullable: true;
|
|
142
|
-
};
|
|
143
|
-
float: {
|
|
144
|
-
multiplicity: false;
|
|
145
|
-
type: "float";
|
|
146
|
-
nullable: true;
|
|
147
|
-
};
|
|
148
|
-
double: {
|
|
149
|
-
multiplicity: false;
|
|
150
|
-
type: "double";
|
|
151
|
-
nullable: true;
|
|
152
|
-
};
|
|
153
|
-
byte: {
|
|
154
|
-
multiplicity: false;
|
|
155
|
-
type: "byte";
|
|
156
|
-
nullable: true;
|
|
157
|
-
};
|
|
158
|
-
attachment: {
|
|
159
|
-
multiplicity: false;
|
|
160
|
-
type: "attachment";
|
|
161
|
-
nullable: true;
|
|
162
|
-
};
|
|
163
|
-
attachment2: {
|
|
164
|
-
multiplicity: false;
|
|
165
|
-
type: "attachment";
|
|
166
|
-
nullable: true;
|
|
167
|
-
};
|
|
168
|
-
geoPoint: {
|
|
169
|
-
multiplicity: false;
|
|
170
|
-
type: "geopoint";
|
|
171
|
-
nullable: true;
|
|
172
|
-
};
|
|
173
|
-
geoShape: {
|
|
174
|
-
multiplicity: false;
|
|
175
|
-
type: "geoshape";
|
|
176
|
-
nullable: true;
|
|
177
|
-
};
|
|
178
|
-
stringArray: {
|
|
179
|
-
multiplicity: true;
|
|
180
|
-
type: "string";
|
|
181
|
-
nullable: true;
|
|
182
|
-
};
|
|
183
|
-
booleanArray: {
|
|
184
|
-
multiplicity: true;
|
|
185
|
-
type: "boolean";
|
|
186
|
-
nullable: true;
|
|
187
|
-
};
|
|
188
|
-
dateArray: {
|
|
189
|
-
multiplicity: true;
|
|
190
|
-
type: "datetime";
|
|
191
|
-
nullable: true;
|
|
192
|
-
};
|
|
193
|
-
dateTimeArray: {
|
|
194
|
-
multiplicity: true;
|
|
195
|
-
type: "timestamp";
|
|
196
|
-
nullable: true;
|
|
197
|
-
};
|
|
198
|
-
decimalArray: {
|
|
199
|
-
multiplicity: true;
|
|
200
|
-
type: "decimal";
|
|
201
|
-
nullable: true;
|
|
202
|
-
};
|
|
203
|
-
integerArray: {
|
|
204
|
-
multiplicity: true;
|
|
205
|
-
type: "integer";
|
|
206
|
-
nullable: true;
|
|
207
|
-
};
|
|
208
|
-
longArray: {
|
|
209
|
-
multiplicity: true;
|
|
210
|
-
type: "long";
|
|
211
|
-
nullable: true;
|
|
212
|
-
};
|
|
213
|
-
shortArray: {
|
|
214
|
-
multiplicity: true;
|
|
215
|
-
type: "short";
|
|
216
|
-
nullable: true;
|
|
217
|
-
};
|
|
218
|
-
floatArray: {
|
|
219
|
-
multiplicity: true;
|
|
220
|
-
type: "float";
|
|
221
|
-
nullable: true;
|
|
222
|
-
};
|
|
223
|
-
doubleArray: {
|
|
224
|
-
multiplicity: true;
|
|
225
|
-
type: "double";
|
|
226
|
-
nullable: true;
|
|
227
|
-
};
|
|
228
|
-
byteArray: {
|
|
229
|
-
multiplicity: true;
|
|
230
|
-
type: "byte";
|
|
231
|
-
nullable: true;
|
|
232
|
-
};
|
|
233
|
-
attachmentArray: {
|
|
234
|
-
multiplicity: true;
|
|
235
|
-
type: "attachment";
|
|
236
|
-
nullable: true;
|
|
237
|
-
};
|
|
238
|
-
geoPointArray: {
|
|
239
|
-
multiplicity: true;
|
|
240
|
-
type: "geopoint";
|
|
241
|
-
nullable: true;
|
|
242
|
-
};
|
|
243
|
-
geoShapeArray: {
|
|
244
|
-
multiplicity: true;
|
|
245
|
-
type: "geoshape";
|
|
246
|
-
nullable: true;
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
ObjectWithTimestampPrimaryKey: {
|
|
251
|
-
apiName: "ObjectWithTimestampPrimaryKey";
|
|
252
|
-
description: string;
|
|
253
|
-
primaryKeyType: "timestamp";
|
|
254
|
-
links: {};
|
|
255
|
-
properties: {
|
|
256
|
-
timestamp: {
|
|
257
|
-
multiplicity: false;
|
|
258
|
-
type: "timestamp";
|
|
259
|
-
nullable: false;
|
|
260
|
-
};
|
|
261
|
-
value: {
|
|
262
|
-
multiplicity: false;
|
|
263
|
-
type: "string";
|
|
264
|
-
nullable: true;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
equipment: {
|
|
269
|
-
apiName: "equipment";
|
|
270
|
-
primaryKeyType: "string";
|
|
271
|
-
links: {};
|
|
272
|
-
properties: {
|
|
273
|
-
equipmentId: {
|
|
274
|
-
multiplicity: false;
|
|
275
|
-
description: string;
|
|
276
|
-
type: "string";
|
|
277
|
-
nullable: false;
|
|
278
|
-
};
|
|
279
|
-
type: {
|
|
280
|
-
multiplicity: false;
|
|
281
|
-
type: "string";
|
|
282
|
-
nullable: true;
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
};
|
|
9
|
+
Employee: Objects.EmployeeDef;
|
|
10
|
+
Office: Objects.OfficeDef;
|
|
11
|
+
objectTypeWithAllPropertyTypes: Objects.objectTypeWithAllPropertyTypesDef;
|
|
12
|
+
ObjectWithTimestampPrimaryKey: Objects.ObjectWithTimestampPrimaryKeyDef;
|
|
13
|
+
equipment: Objects.equipmentDef;
|
|
286
14
|
};
|
|
287
15
|
actions: {
|
|
288
|
-
promoteEmployee:
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
};
|
|
296
|
-
newTitle: {
|
|
297
|
-
multiplicity: false;
|
|
298
|
-
type: "string";
|
|
299
|
-
nullable: false;
|
|
300
|
-
};
|
|
301
|
-
newCompensation: {
|
|
302
|
-
multiplicity: false;
|
|
303
|
-
type: "double";
|
|
304
|
-
nullable: false;
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
description: string;
|
|
308
|
-
modifiedEntities: {
|
|
309
|
-
Employee: {
|
|
310
|
-
created: false;
|
|
311
|
-
modified: true;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
promoteEmployeeObject: {
|
|
316
|
-
apiName: "promoteEmployeeObject";
|
|
317
|
-
parameters: {
|
|
318
|
-
employee: {
|
|
319
|
-
multiplicity: false;
|
|
320
|
-
type: {
|
|
321
|
-
type: "object";
|
|
322
|
-
object: "Employee";
|
|
323
|
-
};
|
|
324
|
-
nullable: false;
|
|
325
|
-
};
|
|
326
|
-
newTitle: {
|
|
327
|
-
multiplicity: false;
|
|
328
|
-
type: "string";
|
|
329
|
-
nullable: false;
|
|
330
|
-
};
|
|
331
|
-
newCompensation: {
|
|
332
|
-
multiplicity: false;
|
|
333
|
-
type: "double";
|
|
334
|
-
nullable: false;
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
|
-
description: string;
|
|
338
|
-
modifiedEntities: {
|
|
339
|
-
Employee: {
|
|
340
|
-
created: false;
|
|
341
|
-
modified: true;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
createOffice: {
|
|
346
|
-
apiName: "createOffice";
|
|
347
|
-
parameters: {
|
|
348
|
-
officeId: {
|
|
349
|
-
multiplicity: false;
|
|
350
|
-
type: "string";
|
|
351
|
-
nullable: false;
|
|
352
|
-
};
|
|
353
|
-
address: {
|
|
354
|
-
multiplicity: false;
|
|
355
|
-
type: "string";
|
|
356
|
-
nullable: true;
|
|
357
|
-
description: string;
|
|
358
|
-
};
|
|
359
|
-
capacity: {
|
|
360
|
-
multiplicity: false;
|
|
361
|
-
type: "integer";
|
|
362
|
-
nullable: true;
|
|
363
|
-
description: string;
|
|
364
|
-
};
|
|
365
|
-
officeNames: {
|
|
366
|
-
multiplicity: true;
|
|
367
|
-
type: "string";
|
|
368
|
-
nullable: true;
|
|
369
|
-
description: string;
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
description: string;
|
|
373
|
-
modifiedEntities: {
|
|
374
|
-
Office: {
|
|
375
|
-
created: true;
|
|
376
|
-
modified: false;
|
|
377
|
-
};
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
createOfficeAndEmployee: {
|
|
381
|
-
apiName: "createOfficeAndEmployee";
|
|
382
|
-
parameters: {
|
|
383
|
-
officeId: {
|
|
384
|
-
multiplicity: false;
|
|
385
|
-
type: "string";
|
|
386
|
-
nullable: false;
|
|
387
|
-
};
|
|
388
|
-
address: {
|
|
389
|
-
multiplicity: false;
|
|
390
|
-
type: "string";
|
|
391
|
-
nullable: true;
|
|
392
|
-
description: string;
|
|
393
|
-
};
|
|
394
|
-
capacity: {
|
|
395
|
-
multiplicity: false;
|
|
396
|
-
type: "integer";
|
|
397
|
-
nullable: true;
|
|
398
|
-
description: string;
|
|
399
|
-
};
|
|
400
|
-
officeNames: {
|
|
401
|
-
multiplicity: true;
|
|
402
|
-
type: "string";
|
|
403
|
-
nullable: true;
|
|
404
|
-
description: string;
|
|
405
|
-
};
|
|
406
|
-
employeeId: {
|
|
407
|
-
multiplicity: false;
|
|
408
|
-
type: "integer";
|
|
409
|
-
nullable: false;
|
|
410
|
-
description: string;
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
description: string;
|
|
414
|
-
modifiedEntities: {
|
|
415
|
-
Office: {
|
|
416
|
-
created: true;
|
|
417
|
-
modified: false;
|
|
418
|
-
};
|
|
419
|
-
Employee: {
|
|
420
|
-
created: true;
|
|
421
|
-
modified: false;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
moveOffice: {
|
|
426
|
-
apiName: "moveOffice";
|
|
427
|
-
parameters: {
|
|
428
|
-
officeId: {
|
|
429
|
-
multiplicity: false;
|
|
430
|
-
type: "string";
|
|
431
|
-
nullable: false;
|
|
432
|
-
};
|
|
433
|
-
newAddress: {
|
|
434
|
-
multiplicity: false;
|
|
435
|
-
type: "string";
|
|
436
|
-
nullable: true;
|
|
437
|
-
description: string;
|
|
438
|
-
};
|
|
439
|
-
newCapacity: {
|
|
440
|
-
multiplicity: false;
|
|
441
|
-
type: "integer";
|
|
442
|
-
nullable: true;
|
|
443
|
-
description: string;
|
|
444
|
-
};
|
|
445
|
-
officeNames: {
|
|
446
|
-
multiplicity: true;
|
|
447
|
-
type: "integer";
|
|
448
|
-
nullable: true;
|
|
449
|
-
description: string;
|
|
450
|
-
};
|
|
451
|
-
};
|
|
452
|
-
description: string;
|
|
453
|
-
modifiedEntities: {
|
|
454
|
-
Office: {
|
|
455
|
-
created: false;
|
|
456
|
-
modified: true;
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
};
|
|
460
|
-
actionTakesObjectSet: {
|
|
461
|
-
apiName: "actionTakesObjectSet";
|
|
462
|
-
parameters: {
|
|
463
|
-
employees: {
|
|
464
|
-
multiplicity: false;
|
|
465
|
-
type: {
|
|
466
|
-
type: "objectSet";
|
|
467
|
-
objectSet: "Employee";
|
|
468
|
-
};
|
|
469
|
-
nullable: false;
|
|
470
|
-
};
|
|
471
|
-
};
|
|
472
|
-
description: string;
|
|
473
|
-
modifiedEntities: {};
|
|
474
|
-
};
|
|
475
|
-
actionTakesAttachment: {
|
|
476
|
-
apiName: "actionTakesAttachment";
|
|
477
|
-
parameters: {
|
|
478
|
-
attachment: {
|
|
479
|
-
multiplicity: false;
|
|
480
|
-
type: "attachment";
|
|
481
|
-
nullable: false;
|
|
482
|
-
};
|
|
483
|
-
};
|
|
484
|
-
description: string;
|
|
485
|
-
modifiedEntities: {};
|
|
486
|
-
};
|
|
16
|
+
promoteEmployee: import("./ontology/actions/promoteEmployee.js").ActionDef$promoteEmployee;
|
|
17
|
+
promoteEmployeeObject: import("./ontology/actions/promoteEmployeeObject.js").ActionDef$promoteEmployeeObject;
|
|
18
|
+
createOffice: import("./ontology/actions/createOffice.js").ActionDef$createOffice;
|
|
19
|
+
createOfficeAndEmployee: import("./ontology/actions/createOfficeAndEmployee.js").ActionDef$createOfficeAndEmployee;
|
|
20
|
+
moveOffice: import("./ontology/actions/moveOffice.js").ActionDef$moveOffice;
|
|
21
|
+
actionTakesObjectSet: import("./ontology/actions/actionTakesObjectSet.js").ActionDef$actionTakesObjectSet;
|
|
22
|
+
actionTakesAttachment: import("./ontology/actions/actionTakesAttachment.js").ActionDef$actionTakesAttachment;
|
|
487
23
|
};
|
|
488
24
|
queries: {};
|
|
489
25
|
interfaces: {};
|