@osdk/client 0.8.0 → 0.10.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.
Files changed (79) hide show
  1. package/build/js/{chunk-V77HHGVZ.cjs → chunk-MVO52VHK.cjs} +82 -28
  2. package/build/js/chunk-MVO52VHK.cjs.map +1 -0
  3. package/build/js/{chunk-TJNTUGSE.mjs → chunk-XI2O777X.mjs} +83 -29
  4. package/build/js/chunk-XI2O777X.mjs.map +1 -0
  5. package/build/js/index.cjs +33 -15
  6. package/build/js/index.cjs.map +1 -1
  7. package/build/js/index.mjs +29 -11
  8. package/build/js/index.mjs.map +1 -1
  9. package/build/js/public/objects.cjs +3 -3
  10. package/build/js/public/objects.mjs +1 -1
  11. package/build/types/Client.d.ts +3 -3
  12. package/build/types/ObjectSetCreator.d.ts +3 -3
  13. package/build/types/OsdkObject.d.ts +1 -1
  14. package/build/types/OsdkObjectFrom.d.ts +18 -23
  15. package/build/types/actions/Actions.d.ts +17 -13
  16. package/build/types/actions/applyAction.d.ts +3 -10
  17. package/build/types/actions/createActionInvoker.d.ts +2 -1
  18. package/build/types/definitions/LinkDefinitions.d.ts +12 -13
  19. package/build/types/generatedNoCheck/Ontology.d.ts +13 -477
  20. package/build/types/generatedNoCheck/ontology/actions/actionTakesAttachment.d.ts +22 -10
  21. package/build/types/generatedNoCheck/ontology/actions/actionTakesObjectSet.d.ts +23 -13
  22. package/build/types/generatedNoCheck/ontology/actions/createOffice.d.ts +40 -28
  23. package/build/types/generatedNoCheck/ontology/actions/createOfficeAndEmployee.d.ts +46 -34
  24. package/build/types/generatedNoCheck/ontology/actions/index.d.ts +7 -7
  25. package/build/types/generatedNoCheck/ontology/actions/moveOffice.d.ts +40 -28
  26. package/build/types/generatedNoCheck/ontology/actions/promoteEmployee.d.ts +32 -20
  27. package/build/types/generatedNoCheck/ontology/actions/promoteEmployeeObject.d.ts +33 -23
  28. package/build/types/generatedNoCheck/ontology/objects/Employee.d.ts +20 -25
  29. package/build/types/generatedNoCheck/ontology/objects/ObjectWithTimestampPrimaryKey.d.ts +10 -7
  30. package/build/types/generatedNoCheck/ontology/objects/Office.d.ts +16 -15
  31. package/build/types/generatedNoCheck/ontology/objects/equipment.d.ts +10 -7
  32. package/build/types/generatedNoCheck/ontology/objects/objectTypeWithAllPropertyTypes.d.ts +38 -35
  33. package/build/types/index.d.ts +3 -1
  34. package/build/types/internal/conversions/legacyToModernSingleAggregationResult.d.ts +1 -1
  35. package/build/types/internal/conversions/modernToLegacyAggregationClause.d.ts +1 -2
  36. package/build/types/internal/conversions/modernToLegacyGroupByClause.d.ts +1 -2
  37. package/build/types/object/aggregateOrThrow.d.ts +3 -2
  38. package/build/types/object/fetchPageOrThrow.d.ts +10 -4
  39. package/build/types/object/getLinkedObjectByPkOrThrow.d.ts +3 -2
  40. package/build/types/object/getLinkedObjectOrThrow.d.ts +5 -2
  41. package/build/types/object/pageLinkedObjectsOrThrow.d.ts +4 -6
  42. package/build/types/objectSet/LinkTypesFrom.d.ts +2 -2
  43. package/build/types/objectSet/ObjectSet.d.ts +13 -11
  44. package/build/types/objectSet/ObjectSet.test.d.ts +1 -0
  45. package/build/types/objectSet/ObjectSetListener.d.ts +7 -7
  46. package/build/types/objectSet/ObjectSetListenerWebsocket.d.ts +2 -2
  47. package/build/types/objectSet/createObjectSet.d.ts +2 -2
  48. package/build/types/query/WhereClause.d.ts +12 -5
  49. package/build/types/query/aggregations/AggregatableKeys.d.ts +3 -3
  50. package/build/types/query/aggregations/AggregateOpts.d.ts +4 -4
  51. package/build/types/query/aggregations/AggregationResultsWithGroups.d.ts +5 -6
  52. package/build/types/query/aggregations/AggregationResultsWithoutGroups.d.ts +5 -5
  53. package/build/types/query/aggregations/AggregationsClause.d.ts +5 -5
  54. package/build/types/query/aggregations/AggregationsClause.test.d.ts +4 -2
  55. package/build/types/query/aggregations/AggregationsResults.d.ts +2 -2
  56. package/build/types/query/aggregations/GroupByClause.d.ts +4 -4
  57. package/build/types/query/aggregations/GroupByClause.test.d.ts +2 -1
  58. package/build/types/util/test/mockOntology.d.ts +50 -48
  59. package/changelog/0.10.0/pr-74.v2.yml +5 -0
  60. package/changelog/0.10.0/pr-78.v2.yml +5 -0
  61. package/changelog/0.10.0/pr-79.v2.yml +5 -0
  62. package/changelog/0.6.0/pr-9.v2.yml +5 -0
  63. package/changelog/0.7.0/pr-20.v2.yml +5 -0
  64. package/changelog/0.7.0/pr-24.v2.yml +5 -0
  65. package/changelog/0.7.0/pr-28.v2.yml +5 -0
  66. package/changelog/0.8.0/pr-30.v2.yml +5 -0
  67. package/changelog/0.9.0/pr-43.v2.yml +5 -0
  68. package/changelog/0.9.0/pr-45.v2.yml +5 -0
  69. package/changelog/0.9.0/pr-48.v2.yml +5 -0
  70. package/changelog/0.9.0/pr-59.v2.yml +5 -0
  71. package/changelog/0.9.0/pr-65.v2.yml +5 -0
  72. package/changelog/0.9.0/pr-72.v2.yml +5 -0
  73. package/changelog/0.9.0/pr-75.v2.yml +5 -0
  74. package/changelog/@unreleased/.gitkeep +0 -0
  75. package/package.json +11 -6
  76. package/build/js/chunk-TJNTUGSE.mjs.map +0 -1
  77. package/build/js/chunk-V77HHGVZ.cjs.map +0 -1
  78. package/build/types/object/followLinkOrThrow.d.ts +0 -5
  79. /package/{CHANGELOG.md → CHANGELOG_OLD.md} +0 -0
@@ -1,12 +1,24 @@
1
- export declare const actionTakesAttachment: {
2
- apiName: "actionTakesAttachment";
3
- parameters: {
4
- attachment: {
5
- multiplicity: false;
6
- type: "attachment";
7
- nullable: false;
8
- };
1
+ import type { ActionDefinition } from '@osdk/api';
2
+ import type { ActionReturnTypeForOptions, ApplyActionOptions, NOOP, OsdkActionParameters } from '@osdk/client';
3
+ export type ActionDef$actionTakesAttachment$Params = {
4
+ attachment: {
5
+ type: 'attachment';
6
+ multiplicity: false;
7
+ nullable: false;
9
8
  };
10
- description: string;
11
- modifiedEntities: {};
12
9
  };
10
+ export type actionTakesAttachment$Params = NOOP<OsdkActionParameters<ActionDef$actionTakesAttachment$Params>>;
11
+ export interface actionTakesAttachment {
12
+ /**
13
+ * An action which takes an attachmen t
14
+ */
15
+ <OP extends ApplyActionOptions>(args: actionTakesAttachment$Params, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
16
+ }
17
+ export interface ActionDef$actionTakesAttachment extends ActionDefinition<'actionTakesAttachment', never, actionTakesAttachment> {
18
+ type: 'action';
19
+ apiName: 'actionTakesAttachment';
20
+ description: 'An action which takes an attachmen t';
21
+ modifiedEntities: {};
22
+ parameters: ActionDef$actionTakesAttachment$Params;
23
+ }
24
+ export declare const actionTakesAttachment: ActionDef$actionTakesAttachment;
@@ -1,15 +1,25 @@
1
- export declare const actionTakesObjectSet: {
2
- apiName: "actionTakesObjectSet";
3
- parameters: {
4
- employees: {
5
- multiplicity: false;
6
- type: {
7
- type: "objectSet";
8
- objectSet: "Employee";
9
- };
10
- nullable: false;
11
- };
1
+ import type { ActionDefinition, ObjectSetActionDataType } from '@osdk/api';
2
+ import type { ActionReturnTypeForOptions, ApplyActionOptions, NOOP, OsdkActionParameters } from '@osdk/client';
3
+ import type { EmployeeDef } from '../objects.js';
4
+ export type ActionDef$actionTakesObjectSet$Params = {
5
+ employees: {
6
+ type: ObjectSetActionDataType<'Employee', EmployeeDef>;
7
+ multiplicity: false;
8
+ nullable: false;
12
9
  };
13
- description: string;
14
- modifiedEntities: {};
15
10
  };
11
+ export type actionTakesObjectSet$Params = NOOP<OsdkActionParameters<ActionDef$actionTakesObjectSet$Params>>;
12
+ export interface actionTakesObjectSet {
13
+ /**
14
+ * An action which takes an Object Set
15
+ */
16
+ <OP extends ApplyActionOptions>(args: actionTakesObjectSet$Params, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
17
+ }
18
+ export interface ActionDef$actionTakesObjectSet extends ActionDefinition<'actionTakesObjectSet', 'Employee', actionTakesObjectSet> {
19
+ type: 'action';
20
+ apiName: 'actionTakesObjectSet';
21
+ description: 'An action which takes an Object Set';
22
+ modifiedEntities: {};
23
+ parameters: ActionDef$actionTakesObjectSet$Params;
24
+ }
25
+ export declare const actionTakesObjectSet: ActionDef$actionTakesObjectSet;
@@ -1,35 +1,47 @@
1
- export declare const createOffice: {
2
- apiName: "createOffice";
3
- parameters: {
4
- officeId: {
5
- multiplicity: false;
6
- type: "string";
7
- nullable: false;
8
- };
9
- address: {
10
- multiplicity: false;
11
- type: "string";
12
- nullable: true;
13
- description: string;
14
- };
15
- capacity: {
16
- multiplicity: false;
17
- type: "integer";
18
- nullable: true;
19
- description: string;
20
- };
21
- officeNames: {
22
- multiplicity: true;
23
- type: "string";
24
- nullable: true;
25
- description: string;
26
- };
1
+ import type { ActionDefinition } from '@osdk/api';
2
+ import type { ActionReturnTypeForOptions, ApplyActionOptions, NOOP, OsdkActionParameters } from '@osdk/client';
3
+ export type ActionDef$createOffice$Params = {
4
+ officeId: {
5
+ type: 'string';
6
+ multiplicity: false;
7
+ nullable: false;
8
+ };
9
+ address: {
10
+ type: 'string';
11
+ multiplicity: false;
12
+ nullable: true;
13
+ description: "The office's physical address (not necessarily shipping address)";
27
14
  };
28
- description: string;
15
+ capacity: {
16
+ type: 'integer';
17
+ multiplicity: false;
18
+ nullable: true;
19
+ description: 'The maximum seated-at-desk capacity of the office (maximum fire-safe capacity may be higher)';
20
+ };
21
+ officeNames: {
22
+ type: 'string';
23
+ multiplicity: true;
24
+ nullable: true;
25
+ description: 'A list of all office names';
26
+ };
27
+ };
28
+ export type createOffice$Params = NOOP<OsdkActionParameters<ActionDef$createOffice$Params>>;
29
+ export interface createOffice {
30
+ /**
31
+ * Create an office's
32
+ */
33
+ <OP extends ApplyActionOptions>(args: createOffice$Params, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
34
+ }
35
+ export interface ActionDef$createOffice extends ActionDefinition<'createOffice', 'Office', createOffice> {
36
+ type: 'action';
37
+ apiName: 'createOffice';
38
+ description: "Create an office's";
29
39
  modifiedEntities: {
30
40
  Office: {
31
41
  created: true;
32
42
  modified: false;
33
43
  };
34
44
  };
35
- };
45
+ parameters: ActionDef$createOffice$Params;
46
+ }
47
+ export declare const createOffice: ActionDef$createOffice;
@@ -1,37 +1,47 @@
1
- export declare const createOfficeAndEmployee: {
2
- apiName: "createOfficeAndEmployee";
3
- parameters: {
4
- officeId: {
5
- multiplicity: false;
6
- type: "string";
7
- nullable: false;
8
- };
9
- address: {
10
- multiplicity: false;
11
- type: "string";
12
- nullable: true;
13
- description: string;
14
- };
15
- capacity: {
16
- multiplicity: false;
17
- type: "integer";
18
- nullable: true;
19
- description: string;
20
- };
21
- officeNames: {
22
- multiplicity: true;
23
- type: "string";
24
- nullable: true;
25
- description: string;
26
- };
27
- employeeId: {
28
- multiplicity: false;
29
- type: "integer";
30
- nullable: false;
31
- description: string;
32
- };
1
+ import type { ActionDefinition } from '@osdk/api';
2
+ import type { ActionReturnTypeForOptions, ApplyActionOptions, NOOP, OsdkActionParameters } from '@osdk/client';
3
+ export type ActionDef$createOfficeAndEmployee$Params = {
4
+ officeId: {
5
+ type: 'string';
6
+ multiplicity: false;
7
+ nullable: false;
8
+ };
9
+ address: {
10
+ type: 'string';
11
+ multiplicity: false;
12
+ nullable: true;
13
+ description: "The office's physical address (not necessarily shipping address)";
33
14
  };
34
- description: string;
15
+ capacity: {
16
+ type: 'integer';
17
+ multiplicity: false;
18
+ nullable: true;
19
+ description: 'The maximum seated-at-desk capacity of the office (maximum fire-safe capacity may be higher)';
20
+ };
21
+ officeNames: {
22
+ type: 'string';
23
+ multiplicity: true;
24
+ nullable: true;
25
+ description: 'A list of all office names';
26
+ };
27
+ employeeId: {
28
+ type: 'integer';
29
+ multiplicity: false;
30
+ nullable: false;
31
+ description: 'New employee Id';
32
+ };
33
+ };
34
+ export type createOfficeAndEmployee$Params = NOOP<OsdkActionParameters<ActionDef$createOfficeAndEmployee$Params>>;
35
+ export interface createOfficeAndEmployee {
36
+ /**
37
+ * Create an office and employee
38
+ */
39
+ <OP extends ApplyActionOptions>(args: createOfficeAndEmployee$Params, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
40
+ }
41
+ export interface ActionDef$createOfficeAndEmployee extends ActionDefinition<'createOfficeAndEmployee', 'Office' | 'Employee', createOfficeAndEmployee> {
42
+ type: 'action';
43
+ apiName: 'createOfficeAndEmployee';
44
+ description: 'Create an office and employee';
35
45
  modifiedEntities: {
36
46
  Office: {
37
47
  created: true;
@@ -42,4 +52,6 @@ export declare const createOfficeAndEmployee: {
42
52
  modified: false;
43
53
  };
44
54
  };
45
- };
55
+ parameters: ActionDef$createOfficeAndEmployee$Params;
56
+ }
57
+ export declare const createOfficeAndEmployee: ActionDef$createOfficeAndEmployee;
@@ -1,7 +1,7 @@
1
- export * from './actionTakesAttachment.js';
2
- export * from './actionTakesObjectSet.js';
3
- export * from './createOffice.js';
4
- export * from './createOfficeAndEmployee.js';
5
- export * from './moveOffice.js';
6
- export * from './promoteEmployee.js';
7
- export * from './promoteEmployeeObject.js';
1
+ export { actionTakesAttachment } from './actionTakesAttachment.js';
2
+ export { actionTakesObjectSet } from './actionTakesObjectSet.js';
3
+ export { createOffice } from './createOffice.js';
4
+ export { createOfficeAndEmployee } from './createOfficeAndEmployee.js';
5
+ export { moveOffice } from './moveOffice.js';
6
+ export { promoteEmployee } from './promoteEmployee.js';
7
+ export { promoteEmployeeObject } from './promoteEmployeeObject.js';
@@ -1,35 +1,47 @@
1
- export declare const moveOffice: {
2
- apiName: "moveOffice";
3
- parameters: {
4
- officeId: {
5
- multiplicity: false;
6
- type: "string";
7
- nullable: false;
8
- };
9
- newAddress: {
10
- multiplicity: false;
11
- type: "string";
12
- nullable: true;
13
- description: string;
14
- };
15
- newCapacity: {
16
- multiplicity: false;
17
- type: "integer";
18
- nullable: true;
19
- description: string;
20
- };
21
- officeNames: {
22
- multiplicity: true;
23
- type: "integer";
24
- nullable: true;
25
- description: string;
26
- };
1
+ import type { ActionDefinition } from '@osdk/api';
2
+ import type { ActionReturnTypeForOptions, ApplyActionOptions, NOOP, OsdkActionParameters } from '@osdk/client';
3
+ export type ActionDef$moveOffice$Params = {
4
+ officeId: {
5
+ type: 'string';
6
+ multiplicity: false;
7
+ nullable: false;
8
+ };
9
+ newAddress: {
10
+ type: 'string';
11
+ multiplicity: false;
12
+ nullable: true;
13
+ description: "The office's new physical address (not necessarily shipping address)";
27
14
  };
28
- description: string;
15
+ newCapacity: {
16
+ type: 'integer';
17
+ multiplicity: false;
18
+ nullable: true;
19
+ description: 'The maximum seated-at-desk capacity of the new office (maximum fire-safe capacity may be higher)';
20
+ };
21
+ officeNames: {
22
+ type: 'integer';
23
+ multiplicity: true;
24
+ nullable: true;
25
+ description: 'A list of all office names';
26
+ };
27
+ };
28
+ export type moveOffice$Params = NOOP<OsdkActionParameters<ActionDef$moveOffice$Params>>;
29
+ export interface moveOffice {
30
+ /**
31
+ * Update an office's physical location
32
+ */
33
+ <OP extends ApplyActionOptions>(args: moveOffice$Params, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
34
+ }
35
+ export interface ActionDef$moveOffice extends ActionDefinition<'moveOffice', 'Office', moveOffice> {
36
+ type: 'action';
37
+ apiName: 'moveOffice';
38
+ description: "Update an office's physical location";
29
39
  modifiedEntities: {
30
40
  Office: {
31
41
  created: false;
32
42
  modified: true;
33
43
  };
34
44
  };
35
- };
45
+ parameters: ActionDef$moveOffice$Params;
46
+ }
47
+ export declare const moveOffice: ActionDef$moveOffice;
@@ -1,27 +1,39 @@
1
- export declare const promoteEmployee: {
2
- apiName: "promoteEmployee";
3
- parameters: {
4
- employeeId: {
5
- multiplicity: false;
6
- type: "integer";
7
- nullable: false;
8
- };
9
- newTitle: {
10
- multiplicity: false;
11
- type: "string";
12
- nullable: false;
13
- };
14
- newCompensation: {
15
- multiplicity: false;
16
- type: "double";
17
- nullable: false;
18
- };
1
+ import type { ActionDefinition } from '@osdk/api';
2
+ import type { ActionReturnTypeForOptions, ApplyActionOptions, NOOP, OsdkActionParameters } from '@osdk/client';
3
+ export type ActionDef$promoteEmployee$Params = {
4
+ employeeId: {
5
+ type: 'integer';
6
+ multiplicity: false;
7
+ nullable: false;
8
+ };
9
+ newTitle: {
10
+ type: 'string';
11
+ multiplicity: false;
12
+ nullable: false;
19
13
  };
20
- description: string;
14
+ newCompensation: {
15
+ type: 'double';
16
+ multiplicity: false;
17
+ nullable: false;
18
+ };
19
+ };
20
+ export type promoteEmployee$Params = NOOP<OsdkActionParameters<ActionDef$promoteEmployee$Params>>;
21
+ export interface promoteEmployee {
22
+ /**
23
+ * Update an employee's title and compensation
24
+ */
25
+ <OP extends ApplyActionOptions>(args: promoteEmployee$Params, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
26
+ }
27
+ export interface ActionDef$promoteEmployee extends ActionDefinition<'promoteEmployee', 'Employee', promoteEmployee> {
28
+ type: 'action';
29
+ apiName: 'promoteEmployee';
30
+ description: "Update an employee's title and compensation";
21
31
  modifiedEntities: {
22
32
  Employee: {
23
33
  created: false;
24
34
  modified: true;
25
35
  };
26
36
  };
27
- };
37
+ parameters: ActionDef$promoteEmployee$Params;
38
+ }
39
+ export declare const promoteEmployee: ActionDef$promoteEmployee;
@@ -1,30 +1,40 @@
1
- export declare const promoteEmployeeObject: {
2
- apiName: "promoteEmployeeObject";
3
- parameters: {
4
- employee: {
5
- multiplicity: false;
6
- type: {
7
- type: "object";
8
- object: "Employee";
9
- };
10
- nullable: false;
11
- };
12
- newTitle: {
13
- multiplicity: false;
14
- type: "string";
15
- nullable: false;
16
- };
17
- newCompensation: {
18
- multiplicity: false;
19
- type: "double";
20
- nullable: false;
21
- };
1
+ import type { ActionDefinition, ObjectActionDataType } from '@osdk/api';
2
+ import type { ActionReturnTypeForOptions, ApplyActionOptions, NOOP, OsdkActionParameters } from '@osdk/client';
3
+ import type { EmployeeDef } from '../objects.js';
4
+ export type ActionDef$promoteEmployeeObject$Params = {
5
+ employee: {
6
+ type: ObjectActionDataType<'Employee', EmployeeDef>;
7
+ multiplicity: false;
8
+ nullable: false;
9
+ };
10
+ newTitle: {
11
+ type: 'string';
12
+ multiplicity: false;
13
+ nullable: false;
22
14
  };
23
- description: string;
15
+ newCompensation: {
16
+ type: 'double';
17
+ multiplicity: false;
18
+ nullable: false;
19
+ };
20
+ };
21
+ export type promoteEmployeeObject$Params = NOOP<OsdkActionParameters<ActionDef$promoteEmployeeObject$Params>>;
22
+ export interface promoteEmployeeObject {
23
+ /**
24
+ * Update an employee's title and compensation
25
+ */
26
+ <OP extends ApplyActionOptions>(args: promoteEmployeeObject$Params, options?: OP): Promise<ActionReturnTypeForOptions<OP>>;
27
+ }
28
+ export interface ActionDef$promoteEmployeeObject extends ActionDefinition<'promoteEmployeeObject', 'Employee', promoteEmployeeObject> {
29
+ type: 'action';
30
+ apiName: 'promoteEmployeeObject';
31
+ description: "Update an employee's title and compensation";
24
32
  modifiedEntities: {
25
33
  Employee: {
26
34
  created: false;
27
35
  modified: true;
28
36
  };
29
37
  };
30
- };
38
+ parameters: ActionDef$promoteEmployeeObject$Params;
39
+ }
40
+ export declare const promoteEmployeeObject: ActionDef$promoteEmployeeObject;
@@ -1,49 +1,44 @@
1
- export declare const Employee: {
2
- apiName: "Employee";
3
- description: string;
4
- primaryKeyType: "integer";
1
+ import type { ObjectTypeDefinition, ObjectTypeLinkDefinition } from '@osdk/api';
2
+ import type { OfficeDef } from './Office.js';
3
+ export interface EmployeeDef extends ObjectTypeDefinition<'Employee'> {
4
+ type: 'object';
5
+ apiName: 'Employee';
6
+ description: 'A full-time or part-time \n\n employee of our firm';
7
+ primaryKeyType: 'integer';
5
8
  links: {
6
- peeps: {
7
- multiplicity: true;
8
- targetType: "Employee";
9
- };
10
- lead: {
11
- multiplicity: false;
12
- targetType: "Employee";
13
- };
14
- officeLink: {
15
- multiplicity: false;
16
- targetType: "Office";
17
- };
9
+ peeps: ObjectTypeLinkDefinition<EmployeeDef, true>;
10
+ lead: ObjectTypeLinkDefinition<EmployeeDef, false>;
11
+ officeLink: ObjectTypeLinkDefinition<OfficeDef, false>;
18
12
  };
19
13
  properties: {
20
14
  employeeId: {
21
15
  multiplicity: false;
22
- type: "integer";
16
+ type: 'integer';
23
17
  nullable: false;
24
18
  };
25
19
  fullName: {
26
20
  multiplicity: false;
27
- type: "string";
21
+ type: 'string';
28
22
  nullable: true;
29
23
  };
30
24
  office: {
31
25
  multiplicity: false;
32
- description: string;
33
- type: "string";
26
+ description: 'The unique "ID" of the employee\'s \\"primary\\" assigned office.\n This is some more text.';
27
+ type: 'string';
34
28
  nullable: true;
35
29
  };
36
30
  startDate: {
37
31
  multiplicity: false;
38
- description: string;
39
- type: "datetime";
32
+ description: 'The date the employee was hired (most recently, if they were re-hired)';
33
+ type: 'datetime';
40
34
  nullable: true;
41
35
  };
42
36
  employeeStatus: {
43
37
  multiplicity: false;
44
- description: string;
45
- type: "stringTimeseries";
38
+ description: 'TimeSeries of the status of the employee';
39
+ type: 'stringTimeseries';
46
40
  nullable: true;
47
41
  };
48
42
  };
49
- };
43
+ }
44
+ export declare const Employee: EmployeeDef;
@@ -1,18 +1,21 @@
1
- export declare const ObjectWithTimestampPrimaryKey: {
2
- apiName: "ObjectWithTimestampPrimaryKey";
3
- description: string;
4
- primaryKeyType: "timestamp";
1
+ import type { ObjectTypeDefinition } from '@osdk/api';
2
+ export interface ObjectWithTimestampPrimaryKeyDef extends ObjectTypeDefinition<'ObjectWithTimestampPrimaryKey'> {
3
+ type: 'object';
4
+ apiName: 'ObjectWithTimestampPrimaryKey';
5
+ description: 'Object Type With Timestamp Primary Key';
6
+ primaryKeyType: 'timestamp';
5
7
  links: {};
6
8
  properties: {
7
9
  timestamp: {
8
10
  multiplicity: false;
9
- type: "timestamp";
11
+ type: 'timestamp';
10
12
  nullable: false;
11
13
  };
12
14
  value: {
13
15
  multiplicity: false;
14
- type: "string";
16
+ type: 'string';
15
17
  nullable: true;
16
18
  };
17
19
  };
18
- };
20
+ }
21
+ export declare const ObjectWithTimestampPrimaryKey: ObjectWithTimestampPrimaryKeyDef;
@@ -1,35 +1,36 @@
1
- export declare const Office: {
2
- apiName: "Office";
3
- description: string;
4
- primaryKeyType: "string";
1
+ import type { ObjectTypeDefinition, ObjectTypeLinkDefinition } from '@osdk/api';
2
+ import type { EmployeeDef } from './Employee.js';
3
+ export interface OfficeDef extends ObjectTypeDefinition<'Office'> {
4
+ type: 'object';
5
+ apiName: 'Office';
6
+ description: 'A office in our Company';
7
+ primaryKeyType: 'string';
5
8
  links: {
6
- occupants: {
7
- multiplicity: true;
8
- targetType: "Employee";
9
- };
9
+ occupants: ObjectTypeLinkDefinition<EmployeeDef, true>;
10
10
  };
11
11
  properties: {
12
12
  officeId: {
13
13
  multiplicity: false;
14
- type: "string";
14
+ type: 'string';
15
15
  nullable: false;
16
16
  };
17
17
  entrance: {
18
18
  multiplicity: false;
19
- type: "geopoint";
19
+ type: 'geopoint';
20
20
  nullable: true;
21
21
  };
22
22
  occupiedArea: {
23
23
  multiplicity: false;
24
- description: string;
25
- type: "geoshape";
24
+ description: 'The occupied area of the Office';
25
+ type: 'geoshape';
26
26
  nullable: true;
27
27
  };
28
28
  name: {
29
29
  multiplicity: false;
30
- description: string;
31
- type: "string";
30
+ description: 'The Name of the Office';
31
+ type: 'string';
32
32
  nullable: true;
33
33
  };
34
34
  };
35
- };
35
+ }
36
+ export declare const Office: OfficeDef;
@@ -1,18 +1,21 @@
1
- export declare const equipment: {
2
- apiName: "equipment";
3
- primaryKeyType: "string";
1
+ import type { ObjectTypeDefinition } from '@osdk/api';
2
+ export interface equipmentDef extends ObjectTypeDefinition<'equipment'> {
3
+ type: 'object';
4
+ apiName: 'equipment';
5
+ primaryKeyType: 'string';
4
6
  links: {};
5
7
  properties: {
6
8
  equipmentId: {
7
9
  multiplicity: false;
8
- description: string;
9
- type: "string";
10
+ description: 'The id of an equipment';
11
+ type: 'string';
10
12
  nullable: false;
11
13
  };
12
14
  type: {
13
15
  multiplicity: false;
14
- type: "string";
16
+ type: 'string';
15
17
  nullable: true;
16
18
  };
17
19
  };
18
- };
20
+ }
21
+ export declare const equipment: equipmentDef;