@epilot/automation-client 1.8.0 → 1.8.2

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.
package/dist/openapi.d.ts CHANGED
@@ -374,7 +374,7 @@ declare namespace Components {
374
374
  /**
375
375
  * Whether the automation is enabled or not
376
376
  */
377
- enabled?: string;
377
+ enabled?: boolean;
378
378
  triggers?: AnyTrigger[];
379
379
  trigger_conditions?: /**
380
380
  * example:
@@ -831,6 +831,56 @@ declare namespace Components {
831
831
  export interface SendEmailActionConfig {
832
832
  email_template_id?: string;
833
833
  language_code?: "de" | "en";
834
+ /**
835
+ * Include extra file attachments in sent email.
836
+ *
837
+ * Attachments in email template will be sent regardless of this configuration.
838
+ *
839
+ */
840
+ attachments?: {
841
+ /**
842
+ * Specify filters to match file entities related to main entity
843
+ */
844
+ source_filter?: {
845
+ /**
846
+ * Limit files to maximum number (default, all matched file relations)
847
+ * example:
848
+ * 1
849
+ */
850
+ limit?: number;
851
+ /**
852
+ * Match by filename. Regex syntax supported
853
+ * example:
854
+ * .*\.pdf
855
+ */
856
+ filename_regex?: string;
857
+ /**
858
+ * Filter by a specific relation attribute on the main entity
859
+ * example:
860
+ * _files
861
+ */
862
+ attribute?: string;
863
+ /**
864
+ * Filter by relation tag (label) on the main entity
865
+ * example:
866
+ * contract
867
+ */
868
+ relation_tag?: string;
869
+ /**
870
+ * Filter by a specific tag on the related file entity
871
+ */
872
+ tag?: string;
873
+ /**
874
+ * Filter by a specific document type (e.g. document)
875
+ */
876
+ document_type?: "document" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown";
877
+ /**
878
+ * Picks main entity as file (only works if source entity is a file)
879
+ */
880
+ self?: boolean;
881
+ };
882
+ }[];
883
+ required?: any;
834
884
  }
835
885
  export interface SetValueMapper {
836
886
  mode: /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/automation-client",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "API Client for epilot automation API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/openapi.d.ts CHANGED
@@ -374,7 +374,7 @@ declare namespace Components {
374
374
  /**
375
375
  * Whether the automation is enabled or not
376
376
  */
377
- enabled?: string;
377
+ enabled?: boolean;
378
378
  triggers?: AnyTrigger[];
379
379
  trigger_conditions?: /**
380
380
  * example:
@@ -831,6 +831,56 @@ declare namespace Components {
831
831
  export interface SendEmailActionConfig {
832
832
  email_template_id?: string;
833
833
  language_code?: "de" | "en";
834
+ /**
835
+ * Include extra file attachments in sent email.
836
+ *
837
+ * Attachments in email template will be sent regardless of this configuration.
838
+ *
839
+ */
840
+ attachments?: {
841
+ /**
842
+ * Specify filters to match file entities related to main entity
843
+ */
844
+ source_filter?: {
845
+ /**
846
+ * Limit files to maximum number (default, all matched file relations)
847
+ * example:
848
+ * 1
849
+ */
850
+ limit?: number;
851
+ /**
852
+ * Match by filename. Regex syntax supported
853
+ * example:
854
+ * .*\.pdf
855
+ */
856
+ filename_regex?: string;
857
+ /**
858
+ * Filter by a specific relation attribute on the main entity
859
+ * example:
860
+ * _files
861
+ */
862
+ attribute?: string;
863
+ /**
864
+ * Filter by relation tag (label) on the main entity
865
+ * example:
866
+ * contract
867
+ */
868
+ relation_tag?: string;
869
+ /**
870
+ * Filter by a specific tag on the related file entity
871
+ */
872
+ tag?: string;
873
+ /**
874
+ * Filter by a specific document type (e.g. document)
875
+ */
876
+ document_type?: "document" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown";
877
+ /**
878
+ * Picks main entity as file (only works if source entity is a file)
879
+ */
880
+ self?: boolean;
881
+ };
882
+ }[];
883
+ required?: any;
834
884
  }
835
885
  export interface SetValueMapper {
836
886
  mode: /**