Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VET-4764] Update to Node 18 #63

Merged
merged 5 commits into from
Jun 27, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
18
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ This is a collection of tools to share information between the front end applica

Prerequisites for install

- [Node.js](https://nodejs.org/) 14.15+.
- [Yarn](https://yarnpkg.com/en/) 1.0.0+.
- [Node.js](https://nodejs.org/) 18.
- [Yarn](https://yarnpkg.com/en/) 1.2.0+.

Simply run:

Expand Down
26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,32 @@
"name": "portal-sdk",
"version": "4.3.0",
"description": "Portal SDK for front end applications",
"private": true,
"main": "index.ts",
"private": true,
"repository": "git+https://github.com/stardog-union/portal-sdk.git",
"author": "Stardog Union <[email protected]>",
"homepage": "https://github.com/stardog-union/portal-sdk#readme",
"engines": {
"node": ">=18",
"yarn": ">=1.2.0"
},
"scripts": {
"build": "rm -rf ./dist/ && tsc --build ./tsconfig.build.json",
"generate": "graphql-codegen --config codegen.yml && yarn format",
"test": "jest",
"typecheck": "tsc --noEmit",
"format": "prettier --write ."
},
"repository": "git+https://github.com/stardog-union/portal-sdk.git",
"author": "Stardog Union <[email protected]>",
"homepage": "https://github.com/stardog-union/portal-sdk#readme",
"devDependencies": {
"@graphql-codegen/cli": "2.16.4",
"@graphql-codegen/introspection": "2.2.3",
"@graphql-codegen/typescript": "2.8.7",
"@graphql-codegen/typescript-graphql-files-modules": "2.2.1",
"@graphql-codegen/typescript-graphql-request": "^4.5.8",
"@graphql-codegen/typescript-operations": "2.5.12",
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/introspection": "^2.2.3",
"@graphql-codegen/typescript": "^2.8.8",
"@graphql-codegen/typescript-graphql-files-modules": "^2.2.1",
"@graphql-codegen/typescript-graphql-request": "^4.5.9",
"@graphql-codegen/typescript-operations": "^2.5.13",
"@types/cookiebot-sdk": "^2.43.4",
"@types/jest": "^29.2.5",
"@types/node": "^18.11.18",
"@types/node": "^18",
"graphql": "^16.8.1",
"graphql-request": "^5.1.0",
"graphql-tag": "^2.12.6",
Expand Down
84 changes: 76 additions & 8 deletions src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export type Connection = {
name: Scalars['String'];
shouldShowDesigner?: Maybe<Scalars['Boolean']>;
stripeSubscription?: Maybe<PurchaseSession>;
stripeSubscriptionOrder?: Maybe<ProvisionedOrder>;
token?: Maybe<Scalars['String']>;
type?: Maybe<Scalars['String']>;
useBrowserAuth?: Maybe<Scalars['Boolean']>;
Expand All @@ -124,6 +125,7 @@ export type Connection = {
};

export type CreateApiTokenInput = {
app_id?: InputMaybe<Scalars['ID']>;
expires_days: Scalars['PositiveInt'];
name: Scalars['String'];
};
Expand All @@ -133,6 +135,15 @@ export type CreateApiTokenResult = {
secret: Scalars['String'];
};

export type CreateVoiceboxAppInput = {
connection_id: Scalars['String'];
database?: InputMaybe<Scalars['String']>;
model?: InputMaybe<Scalars['String']>;
name: Scalars['String'];
named_graphs?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
reasoning?: InputMaybe<Scalars['Boolean']>;
};

export type CustomerSsoSettings = {
__typename?: 'CustomerSsoSettings';
azureProviders: Array<Maybe<AzureProvider>>;
Expand Down Expand Up @@ -234,10 +245,13 @@ export type Mutation = {
cancelCloud?: Maybe<GenericResponse>;
checkoutCart?: Maybe<BillingSession>;
createApiToken?: Maybe<CreateApiTokenResult>;
createVoiceboxApp?: Maybe<GenericResponse>;
deleteAccount?: Maybe<DeletionResponse>;
deleteApiToken?: Maybe<GenericResponse>;
deleteCloud?: Maybe<DeletionResponse>;
deleteConnection?: Maybe<DeletionResponse>;
deleteVoiceboxApp?: Maybe<GenericResponse>;
deleteVoiceboxConversation?: Maybe<GenericResponse>;
editApiToken?: Maybe<GenericResponse>;
editConnection?: Maybe<Connection>;
editVoiceboxConversation?: Maybe<GenericResponse>;
Expand All @@ -249,6 +263,7 @@ export type Mutation = {
updatePartnerConnection?: Maybe<GenericResponse>;
updateProfile?: Maybe<User>;
updateUserFeatures?: Maybe<User>;
updateVoiceboxApp?: Maybe<GenericResponse>;
upgradeCloud?: Maybe<BillingSession>;
verifyInvitation?: Maybe<GenericResponse>;
};
Expand Down Expand Up @@ -289,6 +304,11 @@ export type MutationCreateApiTokenArgs = {
input: CreateApiTokenInput;
};

/** Root Mutation Type */
export type MutationCreateVoiceboxAppArgs = {
input: CreateVoiceboxAppInput;
};

/** Root Mutation Type */
export type MutationDeleteApiTokenArgs = {
id: Scalars['ID'];
Expand All @@ -304,6 +324,16 @@ export type MutationDeleteConnectionArgs = {
name: Scalars['String'];
};

/** Root Mutation Type */
export type MutationDeleteVoiceboxAppArgs = {
id: Scalars['ID'];
};

/** Root Mutation Type */
export type MutationDeleteVoiceboxConversationArgs = {
conversation_id: Scalars['ID'];
};

/** Root Mutation Type */
export type MutationEditApiTokenArgs = {
input: EditApiTokenInput;
Expand Down Expand Up @@ -350,6 +380,11 @@ export type MutationUpdateUserFeaturesArgs = {
user_id: Scalars['ID'];
};

/** Root Mutation Type */
export type MutationUpdateVoiceboxAppArgs = {
input: UpdateVoiceboxAppInput;
};

/** Root Mutation Type */
export type MutationUpgradeCloudArgs = {
connectionId: Scalars['ID'];
Expand Down Expand Up @@ -410,6 +445,14 @@ export type ProfileInput = {
use_case: Scalars['String'];
};

export type ProvisionedOrder = {
__typename?: 'ProvisionedOrder';
payment_system?: Maybe<Scalars['String']>;
status?: Maybe<Scalars['String']>;
trial_days_remaining?: Maybe<Scalars['Int']>;
trial_days_total?: Maybe<Scalars['Int']>;
};

export type PurchaseSession = {
__typename?: 'PurchaseSession';
isExpired?: Maybe<Scalars['Boolean']>;
Expand All @@ -431,7 +474,7 @@ export type Query = {
getShareByShortHash?: Maybe<Share>;
getStardogCloud?: Maybe<StardogCloud>;
getStripePrices?: Maybe<Array<Maybe<StripePrice>>>;
getStripeSubscriptionStatus?: Maybe<StripeSubscriptionStatus>;
getStripeSubscriptionOrder?: Maybe<ProvisionedOrder>;
getUser?: Maybe<User>;
getUserArchivedClouds?: Maybe<Array<Maybe<ArchivedCloud>>>;
getUserClouds?: Maybe<Array<Maybe<StardogCloud>>>;
Expand All @@ -446,6 +489,8 @@ export type Query = {
listConnectionsByEndpoint?: Maybe<Array<Maybe<Connection>>>;
listInactiveClouds?: Maybe<Array<Maybe<StardogCloud>>>;
listStardogCloud?: Maybe<Array<Maybe<StardogCloud>>>;
/** Retrieve Voicebox Applications owned by the authenticated user. */
listVoiceboxApps?: Maybe<Array<Maybe<VoiceboxApp>>>;
/**
* Retrieve Voicebox conversations for the authenticated user, ordered by creation date, with the newest first.
* Use PagingInput to paginate. If PagingInput is omitted, all conversations are returned.
Expand All @@ -463,6 +508,11 @@ export type Query = {
voiceboxConversationCount?: Maybe<ItemCount>;
};

/** Root Query Type */
export type QueryApiTokenCountArgs = {
app_id?: InputMaybe<Scalars['ID']>;
};

/** Root Query Type */
export type QueryGenerateTokenArgs = {
endpoint: Scalars['String'];
Expand Down Expand Up @@ -494,8 +544,8 @@ export type QueryGetStardogCloudArgs = {
};

/** Root Query Type */
export type QueryGetStripeSubscriptionStatusArgs = {
cloudName: Scalars['String'];
export type QueryGetStripeSubscriptionOrderArgs = {
cloudId: Scalars['ID'];
};

/** Root Query Type */
Expand Down Expand Up @@ -531,6 +581,7 @@ export type QueryGetVoiceboxConversationArgs = {

/** Root Query Type */
export type QueryListApiTokensArgs = {
app_id?: InputMaybe<Scalars['ID']>;
paging?: InputMaybe<PagingInput>;
};

Expand Down Expand Up @@ -669,11 +720,6 @@ export type StripeProductMetadata = {
flavor?: Maybe<Scalars['String']>;
};

export type StripeSubscriptionStatus = {
__typename?: 'StripeSubscriptionStatus';
status: Scalars['String'];
};

export type SystemVoiceboxMessageContext = {
__typename?: 'SystemVoiceboxMessageContext';
actions?: Maybe<Array<Maybe<VoicboxSystemMessageAction>>>;
Expand All @@ -693,6 +739,15 @@ export type UpdatePartnerConnectionInput = {
stardog_connection_id: Scalars['String'];
};

export type UpdateVoiceboxAppInput = {
database?: InputMaybe<Scalars['String']>;
id: Scalars['ID'];
model?: InputMaybe<Scalars['String']>;
name?: InputMaybe<Scalars['String']>;
named_graphs?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
reasoning?: InputMaybe<Scalars['Boolean']>;
};

/**
* The user model, this represents a user from Auth0. Only fields defined here
* are exposed in the possible GraphQL responses.
Expand Down Expand Up @@ -768,10 +823,23 @@ export type VoicboxSystemMessageAction = {
value?: Maybe<Scalars['String']>;
};

export type VoiceboxApp = {
__typename?: 'VoiceboxApp';
connection_id: Scalars['String'];
database?: Maybe<Scalars['String']>;
id: Scalars['ID'];
model?: Maybe<Scalars['String']>;
name: Scalars['String'];
named_graphs?: Maybe<Array<Maybe<Scalars['String']>>>;
reasoning?: Maybe<Scalars['Boolean']>;
};

/** A user's conversation with Voicebox */
export type VoiceboxConversation = {
__typename?: 'VoiceboxConversation';
created?: Maybe<Scalars['Datetime']>;
/** The first message in the conversation that was sent by the user. */
first_user_message?: Maybe<VoiceboxMessage>;
id: Scalars['ID'];
/** The last message in the conversation that was sent by the user. */
last_user_message?: Maybe<VoiceboxMessage>;
Expand Down
Loading
Loading