@open-wa/wa-automate-types-only 4.47.5 → 4.48.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { PREPROCESSORS } from '../../structures/preProcessors';
3
2
  import { ConfigLogTransport } from '../../logging/logging';
4
3
  import { Base64 } from "./aliases";
5
4
  import { SimpleListener } from './events';
@@ -14,7 +13,10 @@ export declare enum QRFormat {
14
13
  export declare enum CLOUD_PROVIDERS {
15
14
  GCP = "GCP",
16
15
  WASABI = "WASABI",
17
- AWS = "AWS"
16
+ AWS = "AWS",
17
+ CONTABO = "CONTABO",
18
+ DO = "DO",
19
+ MINIO = "MINIO"
18
20
  }
19
21
  export declare enum DIRECTORY_STRATEGY {
20
22
  /**
@@ -633,12 +635,12 @@ export interface ConfigObject {
633
635
  */
634
636
  pQueueDefault?: any;
635
637
  /**
636
- * Set a preprocessor for messages. See [[PREPROCESSORS]] for more info.
638
+ * Set a preprocessor, or multiple chained preprocessors, for messages. See [MPConfigType](/) for more info.
637
639
  *
638
640
  * options: `SCRUB`, `BODY_ONLY`, `AUTO_DECRYPT`, `AUTO_DECRYPT_SAVE`, `UPLOAD_CLOUD`.
639
641
  * @default `undefined`
640
642
  */
641
- messagePreprocessor?: PREPROCESSORS;
643
+ messagePreprocessor?: any;
642
644
  /**
643
645
  * Set an array filter to be used with messagePreprocessor to limit which messages are preprocessed.
644
646
  *
@@ -703,6 +705,16 @@ export interface ConfigObject {
703
705
  * env: `OW_DIRECTORY`
704
706
  */
705
707
  directory?: DIRECTORY_STRATEGY | string;
708
+ /**
709
+ * Setting this to true will make the uploaded file public
710
+ */
711
+ public?: boolean;
712
+ /**
713
+ * Extra headers to add to the upload request
714
+ */
715
+ headers?: {
716
+ [k: string]: string;
717
+ };
706
718
  };
707
719
  /**
708
720
  * What to do when an error is detected on a client method.
@@ -1,6 +1,6 @@
1
1
  import { Client } from "../api/Client";
2
2
  import { Message } from "../api/model/message";
3
- declare type MessagePreProcessor = (message: Message, client?: Client) => Promise<Message>;
3
+ export declare type MessagePreProcessor = (message: Message, client?: Client) => Promise<Message>;
4
4
  /**
5
5
  * An object that contains all available [[PREPROCESSORS]].
6
6
  *
@@ -44,4 +44,7 @@ export declare enum PREPROCESSORS {
44
44
  */
45
45
  UPLOAD_CLOUD = "UPLOAD_CLOUD"
46
46
  }
47
- export {};
47
+ /**
48
+ * The actual type for [config.messagePreprocessor](/docs/api/interfaces/api_model_config.ConfigObject#messagepreprocessor)
49
+ */
50
+ export declare type MPConfigType = PREPROCESSORS | MessagePreProcessor | (PREPROCESSORS | MessagePreProcessor)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.47.5",
3
+ "version": "4.48.0",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",