Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions sdk/constructive-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
<img height="120" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
</p>

<p align="center" width="100%">
<a href="https://github.com/constructive-io/constructive/actions/workflows/run-tests.yaml">
<img height="20" src="https://github.com/constructive-io/constructive/actions/workflows/run-tests.yaml/badge.svg" />
</a>
<a href="https://github.com/constructive-io/constructive/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
<a href="https://www.npmjs.com/package/@constructive-sdk/cli"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/constructive?filename=sdk%2Fconstructive-cli%2Fpackage.json"/></a>
</p>

<!-- @constructive-io/graphql-codegen - DO NOT EDIT -->

## APIs
Expand Down
36 changes: 7 additions & 29 deletions sdk/constructive-cli/src/admin/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ CRUD operations for AppPermission records.
| `bitnum` | Int |
| `bitstr` | BitString |
| `description` | String |
| `descriptionTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `descriptionTrgmSimilarity`, `searchScore`
**Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description`

### `org-permission`
Expand All @@ -203,10 +200,7 @@ CRUD operations for OrgPermission records.
| `bitnum` | Int |
| `bitstr` | BitString |
| `description` | String |
| `descriptionTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `descriptionTrgmSimilarity`, `searchScore`
**Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description`

### `app-level-requirement`
Expand All @@ -233,10 +227,8 @@ CRUD operations for AppLevelRequirement records.
| `priority` | Int |
| `createdAt` | Datetime |
| `updatedAt` | Datetime |
| `descriptionTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `name`, `level`, `descriptionTrgmSimilarity`, `searchScore`
**Required create fields:** `name`, `level`
**Optional create fields (backend defaults):** `description`, `requiredCount`, `priority`

### `org-member`
Expand Down Expand Up @@ -484,11 +476,9 @@ CRUD operations for OrgChartEdgeGrant records.
| `positionTitle` | String |
| `positionLevel` | Int |
| `createdAt` | Datetime |
| `positionTitleTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `entityId`, `childId`, `grantorId`, `positionTitleTrgmSimilarity`, `searchScore`
**Optional create fields (backend defaults):** `parentId`, `isGrant`, `positionTitle`, `positionLevel`
**Required create fields:** `entityId`, `childId`
**Optional create fields (backend defaults):** `parentId`, `grantorId`, `isGrant`, `positionTitle`, `positionLevel`

### `membership-type`

Expand All @@ -510,11 +500,8 @@ CRUD operations for MembershipType records.
| `name` | String |
| `description` | String |
| `prefix` | String |
| `descriptionTrgmSimilarity` | Float |
| `prefixTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `name`, `description`, `prefix`, `descriptionTrgmSimilarity`, `prefixTrgmSimilarity`, `searchScore`
**Required create fields:** `name`, `description`, `prefix`

### `app-limit`

Expand Down Expand Up @@ -776,10 +763,8 @@ CRUD operations for OrgChartEdge records.
| `parentId` | UUID |
| `positionTitle` | String |
| `positionLevel` | Int |
| `positionTitleTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `entityId`, `childId`, `positionTitleTrgmSimilarity`, `searchScore`
**Required create fields:** `entityId`, `childId`
**Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel`

### `org-membership-default`
Expand Down Expand Up @@ -911,10 +896,7 @@ CRUD operations for Invite records.
| `expiresAt` | Datetime |
| `createdAt` | Datetime |
| `updatedAt` | Datetime |
| `inviteTokenTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `inviteTokenTrgmSimilarity`, `searchScore`
**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt`

### `app-level`
Expand All @@ -940,10 +922,8 @@ CRUD operations for AppLevel records.
| `ownerId` | UUID |
| `createdAt` | Datetime |
| `updatedAt` | Datetime |
| `descriptionTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `name`, `descriptionTrgmSimilarity`, `searchScore`
**Required create fields:** `name`
**Optional create fields (backend defaults):** `description`, `image`, `ownerId`

### `org-invite`
Expand Down Expand Up @@ -976,10 +956,8 @@ CRUD operations for OrgInvite records.
| `createdAt` | Datetime |
| `updatedAt` | Datetime |
| `entityId` | UUID |
| `inviteTokenTrgmSimilarity` | Float |
| `searchScore` | Float |

**Required create fields:** `entityId`, `inviteTokenTrgmSimilarity`, `searchScore`
**Required create fields:** `entityId`
**Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt`

## Custom Operations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const fieldSchema: FieldSchema = {
priority: 'int',
createdAt: 'string',
updatedAt: 'string',
descriptionTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\napp-level-requirement <command>\n\nCommands:\n list List all appLevelRequirement records\n get Get a appLevelRequirement by ID\n create Create a new appLevelRequirement\n update Update an existing appLevelRequirement\n delete Delete a appLevelRequirement\n\n --help, -h Show this help message\n';
Expand Down
2 changes: 0 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/app-level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ const fieldSchema: FieldSchema = {
ownerId: 'uuid',
createdAt: 'string',
updatedAt: 'string',
descriptionTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\napp-level <command>\n\nCommands:\n list List all appLevel records\n get Get a appLevel by ID\n create Create a new appLevel\n update Update an existing appLevel\n delete Delete a appLevel\n\n --help, -h Show this help message\n';
Expand Down
2 changes: 0 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/app-permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = {
bitnum: 'int',
bitstr: 'string',
description: 'string',
descriptionTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\napp-permission <command>\n\nCommands:\n list List all appPermission records\n get Get a appPermission by ID\n create Create a new appPermission\n update Update an existing appPermission\n delete Delete a appPermission\n\n --help, -h Show this help message\n';
Expand Down
2 changes: 0 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const fieldSchema: FieldSchema = {
expiresAt: 'string',
createdAt: 'string',
updatedAt: 'string',
inviteTokenTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\ninvite <command>\n\nCommands:\n list List all invite records\n get Get a invite by ID\n create Create a new invite\n update Update an existing invite\n delete Delete a invite\n\n --help, -h Show this help message\n';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const fieldSchema: FieldSchema = {
name: 'string',
description: 'string',
prefix: 'string',
descriptionTrgmSimilarity: 'float',
prefixTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\nmembership-type <command>\n\nCommands:\n list List all membershipType records\n get Get a membershipType by ID\n create Create a new membershipType\n update Update an existing membershipType\n delete Delete a membershipType\n\n --help, -h Show this help message\n';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const fieldSchema: FieldSchema = {
positionTitle: 'string',
positionLevel: 'int',
createdAt: 'string',
positionTitleTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\norg-chart-edge-grant <command>\n\nCommands:\n list List all orgChartEdgeGrant records\n get Get a orgChartEdgeGrant by ID\n create Create a new orgChartEdgeGrant\n update Update an existing orgChartEdgeGrant\n delete Delete a orgChartEdgeGrant\n\n --help, -h Show this help message\n';
Expand Down Expand Up @@ -156,7 +154,8 @@ async function handleCreate(argv: Partial<Record<string, unknown>>, prompter: In
type: 'text',
name: 'grantorId',
message: 'grantorId',
required: true,
required: false,
skipPrompt: true,
},
{
type: 'boolean',
Expand Down Expand Up @@ -252,6 +251,7 @@ async function handleUpdate(argv: Partial<Record<string, unknown>>, prompter: In
name: 'grantorId',
message: 'grantorId',
required: false,
skipPrompt: true,
},
{
type: 'boolean',
Expand Down
2 changes: 0 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/org-chart-edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const fieldSchema: FieldSchema = {
parentId: 'uuid',
positionTitle: 'string',
positionLevel: 'int',
positionTitleTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\norg-chart-edge <command>\n\nCommands:\n list List all orgChartEdge records\n get Get a orgChartEdge by ID\n create Create a new orgChartEdge\n update Update an existing orgChartEdge\n delete Delete a orgChartEdge\n\n --help, -h Show this help message\n';
Expand Down
2 changes: 0 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/org-invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const fieldSchema: FieldSchema = {
createdAt: 'string',
updatedAt: 'string',
entityId: 'uuid',
inviteTokenTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\norg-invite <command>\n\nCommands:\n list List all orgInvite records\n get Get a orgInvite by ID\n create Create a new orgInvite\n update Update an existing orgInvite\n delete Delete a orgInvite\n\n --help, -h Show this help message\n';
Expand Down
2 changes: 0 additions & 2 deletions sdk/constructive-cli/src/admin/cli/commands/org-permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = {
bitnum: 'int',
bitstr: 'string',
description: 'string',
descriptionTrgmSimilarity: 'float',
searchScore: 'float',
};
const usage =
'\norg-permission <command>\n\nCommands:\n list List all orgPermission records\n get Get a orgPermission by ID\n create Create a new orgPermission\n update Update an existing orgPermission\n delete Delete a orgPermission\n\n --help, -h Show this help message\n';
Expand Down
Loading
Loading