Skip to content

Commit

Permalink
Release 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 3, 2023
1 parent ccee693 commit 6414131
Show file tree
Hide file tree
Showing 134 changed files with 2,824 additions and 55 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fern-api/squidex",
"version": "0.0.9",
"version": "0.0.10",
"private": false,
"repository": "https://github.com/fern-squidex/squidex-node",
"main": "./index.js",
Expand Down
14 changes: 14 additions & 0 deletions src/api/resources/rules/types/ActionTypeEnum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
*
*/
export type ActionTypeEnum = "Broadcast" | "User" | "Group";

export const ActionTypeEnum = {
Broadcast: "Broadcast",
User: "User",
Group: "Group",
} as const;
16 changes: 16 additions & 0 deletions src/api/resources/rules/types/AlgoliaRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface AlgoliaRuleActionDto {
/** The application ID. */
appId: string;
/** The API key to grant access to Squidex. */
apiKey: string;
/** The name of the index. */
indexName: string;
/** The optional custom document. */
document?: string;
/** The condition when to delete the entry. */
delete?: string;
}
8 changes: 8 additions & 0 deletions src/api/resources/rules/types/AssetChangedRuleTriggerDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface AssetChangedRuleTriggerDto {
/** Javascript condition when to trigger. */
condition?: string;
}
12 changes: 12 additions & 0 deletions src/api/resources/rules/types/AzureQueueRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface AzureQueueRuleActionDto {
/** The connection string to the storage account. */
connectionString: string;
/** The name of the queue. */
queue: string;
/** Leave it empty to use the full event as body. */
payload?: string;
}
10 changes: 10 additions & 0 deletions src/api/resources/rules/types/CommentRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface CommentRuleActionDto {
/** The comment text. */
text: string;
/** An optional client name. */
client?: string;
}
8 changes: 8 additions & 0 deletions src/api/resources/rules/types/CommentRuleTriggerDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface CommentRuleTriggerDto {
/** Javascript condition when to trigger. */
condition?: string;
}
12 changes: 12 additions & 0 deletions src/api/resources/rules/types/ContentChangedRuleTriggerDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import { Squidex } from "@fern-api/squidex";

export interface ContentChangedRuleTriggerDto {
/** The schema settings. */
schemas?: Squidex.ContentChangedRuleTriggerSchemaDto[];
/** Determines whether the trigger should handle all content changes events. */
handleAll?: boolean;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface ContentChangedRuleTriggerSchemaDto {
/** The ID of the schema. */
schemaId?: string;
/** Javascript condition when to trigger. */
condition?: string;
}
14 changes: 14 additions & 0 deletions src/api/resources/rules/types/CreateContentRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface CreateContentRuleActionDto {
/** The content data. */
data: string;
/** The name of the schema. */
schema: string;
/** An optional client name. */
client?: string;
/** Publish the content. */
publish?: boolean;
}
20 changes: 20 additions & 0 deletions src/api/resources/rules/types/DiscourseRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface DiscourseRuleActionDto {
/** The url to the discourse server. */
url: string;
/** The api key to authenticate to your discourse server. */
apiKey: string;
/** The api username to authenticate to your discourse server. */
apiUsername: string;
/** The text as markdown. */
text: string;
/** The optional title when creating new topics. */
title?: string;
/** The optional topic id. */
topic?: number;
/** The optional category id. */
category?: number;
}
18 changes: 18 additions & 0 deletions src/api/resources/rules/types/ElasticSearchRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface ElasticSearchRuleActionDto {
/** The url to the instance or cluster. */
host: string;
/** The name of the index. */
indexName: string;
/** The optional username. */
username?: string;
/** The optional password. */
password?: string;
/** The optional custom document. */
document?: string;
/** The condition when to delete the document. */
delete?: string;
}
22 changes: 22 additions & 0 deletions src/api/resources/rules/types/EmailRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface EmailRuleActionDto {
/** The IP address or host to the SMTP server. */
serverHost: string;
/** The port to the SMTP server. */
serverPort: number;
/** The username for the SMTP server. */
serverUsername: string;
/** The password for the SMTP server. */
serverPassword: string;
/** The email sending address. */
messageFrom: string;
/** The email message will be sent to. */
messageTo: string;
/** The subject line for this email message. */
messageSubject: string;
/** The message body. */
messageBody: string;
}
10 changes: 10 additions & 0 deletions src/api/resources/rules/types/FastlyRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface FastlyRuleActionDto {
/** The API key to grant access to Squidex. */
apiKey: string;
/** The ID of the fastly service. */
serviceId: string;
}
5 changes: 5 additions & 0 deletions src/api/resources/rules/types/ManualRuleTriggerDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface ManualRuleTriggerDto {}
20 changes: 20 additions & 0 deletions src/api/resources/rules/types/MediumRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface MediumRuleActionDto {
/** The self issued access token. */
accessToken: string;
/** The title, used for the url. */
title: string;
/** The content, either html or markdown. */
content: string;
/** The original home of this content, if it was originally published elsewhere. */
canonicalUrl?: string;
/** The optional comma separated list of tags. */
tags?: string;
/** Optional publication id. */
publicationId?: string;
/** Indicates whether the content is markdown or html. */
isHtml?: boolean;
}
14 changes: 14 additions & 0 deletions src/api/resources/rules/types/NotificationRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface NotificationRuleActionDto {
/** The user id or email. */
user: string;
/** The text to send. */
text: string;
/** The optional url to attach to the notification. */
url?: string;
/** An optional client name. */
client?: string;
}
18 changes: 18 additions & 0 deletions src/api/resources/rules/types/OpenSearchRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface OpenSearchRuleActionDto {
/** The url to the instance or cluster. */
host: string;
/** The name of the index. */
indexName: string;
/** The optional username. */
username?: string;
/** The optional password. */
password?: string;
/** The optional custom document. */
document?: string;
/** The condition when to delete the document. */
delete?: string;
}
10 changes: 10 additions & 0 deletions src/api/resources/rules/types/PrerenderRuleActionDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface PrerenderRuleActionDto {
/** The prerender token from your account. */
token: string;
/** The url to recache. */
url: string;
}
101 changes: 99 additions & 2 deletions src/api/resources/rules/types/RuleActionDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,103 @@
* This file was auto-generated by Fern from our API Definition.
*/

export interface RuleActionDto {
actionType: string;
import { Squidex } from "@fern-api/squidex";

export type RuleActionDto =
| Squidex.RuleActionDto.Algolia
| Squidex.RuleActionDto.AzureQueue
| Squidex.RuleActionDto.Comment
| Squidex.RuleActionDto.CreateContent
| Squidex.RuleActionDto.Discourse
| Squidex.RuleActionDto.ElasticSearch
| Squidex.RuleActionDto.Email
| Squidex.RuleActionDto.Fastly
| Squidex.RuleActionDto.Medium
| Squidex.RuleActionDto.Notification
| Squidex.RuleActionDto.OpenSearch
| Squidex.RuleActionDto.Prerender
| Squidex.RuleActionDto.Script
| Squidex.RuleActionDto.SignalR
| Squidex.RuleActionDto.Slack
| Squidex.RuleActionDto.SquidexEmail
| Squidex.RuleActionDto.Tweet
| Squidex.RuleActionDto.Typesense
| Squidex.RuleActionDto.Webhook;

export declare namespace RuleActionDto {
interface Algolia extends Squidex.AlgoliaRuleActionDto {
actionType: "Algolia";
}

interface AzureQueue extends Squidex.AzureQueueRuleActionDto {
actionType: "AzureQueue";
}

interface Comment extends Squidex.CommentRuleActionDto {
actionType: "Comment";
}

interface CreateContent extends Squidex.CreateContentRuleActionDto {
actionType: "CreateContent";
}

interface Discourse extends Squidex.DiscourseRuleActionDto {
actionType: "Discourse";
}

interface ElasticSearch extends Squidex.ElasticSearchRuleActionDto {
actionType: "ElasticSearch";
}

interface Email extends Squidex.EmailRuleActionDto {
actionType: "Email";
}

interface Fastly extends Squidex.FastlyRuleActionDto {
actionType: "Fastly";
}

interface Medium extends Squidex.MediumRuleActionDto {
actionType: "Medium";
}

interface Notification extends Squidex.NotificationRuleActionDto {
actionType: "Notification";
}

interface OpenSearch extends Squidex.OpenSearchRuleActionDto {
actionType: "OpenSearch";
}

interface Prerender extends Squidex.PrerenderRuleActionDto {
actionType: "Prerender";
}

interface Script extends Squidex.ScriptRuleActionDto {
actionType: "Script";
}

interface SignalR extends Squidex.SignalRRuleActionDto {
actionType: "SignalR";
}

interface Slack extends Squidex.SlackRuleActionDto {
actionType: "Slack";
}

interface SquidexEmail extends Squidex.SquidexEmailRuleActionDto {
actionType: "SquidexEmail";
}

interface Tweet extends Squidex.TweetRuleActionDto {
actionType: "Tweet";
}

interface Typesense extends Squidex.TypesenseRuleActionDto {
actionType: "Typesense";
}

interface Webhook extends Squidex.WebhookRuleActionDto {
actionType: "Webhook";
}
}
Loading

0 comments on commit 6414131

Please sign in to comment.