Skip to content

Commit

Permalink
Semantic merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ericanderson committed Jul 15, 2024
1 parent 0813f14 commit a0b81cb
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { QueryDefinition } from '@osdk/api';

export const getTodoCount = {
apiName: 'getTodoCount',
type: 'query',
version: '0.1.2',
parameters: {},
output: { nullable: false, type: 'integer' },
} satisfies QueryDefinition<'getTodoCount', never>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './getTodoCount.js';
export * from './queryTakesAllParameterTypes.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
import { QueryDefinition } from '@osdk/api';
import { Todo } from '../objects.js';
export const queryTakesAllParameterTypes = {
apiName: 'queryTakesAllParameterTypes',
description: 'description of the query that takes all parameter types',
displayName: 'qTAPT',
type: 'query',
version: 'version',
parameters: {
double: { description: 'a double parameter', nullable: false, type: 'double' },
float: { nullable: false, type: 'float' },
integer: { nullable: false, type: 'integer' },
long: { nullable: false, type: 'long' },
attachment: { nullable: false, type: 'attachment' },
boolean: { nullable: false, type: 'boolean' },
date: { nullable: false, type: 'date' },
string: { nullable: false, type: 'string' },
timestamp: { nullable: false, type: 'timestamp' },
object: {
nullable: false,
object: 'Todo',
type: 'object',

__OsdkTargetType: Todo,
},
objectSet: {
nullable: false,
objectSet: 'Todo',
type: 'objectSet',

__OsdkTargetType: Todo,
},
array: { description: 'an array of strings', multiplicity: true, nullable: false, type: 'string' },
set: {
description: 'a set of strings',
nullable: false,
set: {
type: 'string',
nullable: false,
},
type: 'set',
},
unionNonNullable: {
description: 'a union of strings and integers',
nullable: false,
type: 'union',
union: [
{
type: 'string',
nullable: false,
},
{
type: 'integer',
nullable: false,
},
],
},
unionNullable: {
description: 'a union of strings and integers but its optional',
nullable: true,
type: 'union',
union: [
{
type: 'string',
nullable: false,
},
{
type: 'integer',
nullable: false,
},
],
},
struct: {
description: 'a struct with some fields',
nullable: false,
struct: {
name: {
type: 'string',
nullable: false,
},
id: {
type: 'integer',
nullable: false,
},
},
type: 'struct',
},
twoDimensionalAggregation: {
nullable: false,
twoDimensionalAggregation: {
keyType: 'string',
valueType: 'double',
},
type: 'twoDimensionalAggregation',
},
threeDimensionalAggregation: {
nullable: false,
threeDimensionalAggregation: {
keyType: 'range',
keySubtype: 'date',
valueType: {
keyType: 'range',
keySubtype: 'timestamp',
valueType: 'date',
},
},
type: 'threeDimensionalAggregation',
},
},
output: { nullable: false, type: 'string' },
} satisfies QueryDefinition<'queryTakesAllParameterTypes', 'Todo'>;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};

0 comments on commit a0b81cb

Please sign in to comment.