hostinger-api-sdk 1.30.8 → 1.31.0
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/README.md +2 -2
- package/api.ts +514 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +354 -1
- package/dist/api.js +343 -9
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +354 -1
- package/dist/esm/api.js +331 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ReachAutomationsApi.md +187 -0
- package/docs/ReachListAutomationsV1200Response.md +22 -0
- package/docs/ReachV1AutomationsAutomationEventsResource.md +27 -0
- package/docs/ReachV1AutomationsAutomationResource.md +34 -0
- package/docs/ReachV1AutomationsStepsAutomationStepResource.md +30 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.33.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -7614,6 +7614,25 @@ export interface MailV1WebhooksWebhookTestResultResource {
|
|
|
7614
7614
|
*/
|
|
7615
7615
|
'error': string | null;
|
|
7616
7616
|
}
|
|
7617
|
+
/**
|
|
7618
|
+
*
|
|
7619
|
+
* @export
|
|
7620
|
+
* @interface ReachListAutomationsV1200Response
|
|
7621
|
+
*/
|
|
7622
|
+
export interface ReachListAutomationsV1200Response {
|
|
7623
|
+
/**
|
|
7624
|
+
* Array of [`Reach.V1.Automations.AutomationResource`](#model/reachv1automationsautomationresource)
|
|
7625
|
+
* @type {Array<ReachV1AutomationsAutomationResource>}
|
|
7626
|
+
* @memberof ReachListAutomationsV1200Response
|
|
7627
|
+
*/
|
|
7628
|
+
'data': Array<ReachV1AutomationsAutomationResource>;
|
|
7629
|
+
/**
|
|
7630
|
+
*
|
|
7631
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
7632
|
+
* @memberof ReachListAutomationsV1200Response
|
|
7633
|
+
*/
|
|
7634
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
7635
|
+
}
|
|
7617
7636
|
/**
|
|
7618
7637
|
*
|
|
7619
7638
|
* @export
|
|
@@ -7690,6 +7709,174 @@ export interface ReachListProfileSegmentsV1200Response {
|
|
|
7690
7709
|
*/
|
|
7691
7710
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
7692
7711
|
}
|
|
7712
|
+
/**
|
|
7713
|
+
* Counts of contacts moving through the automation. These are not email engagement metrics. Automations expose no sent, open or click counters - use the campaign statistics endpoint for those.
|
|
7714
|
+
* @export
|
|
7715
|
+
* @interface ReachV1AutomationsAutomationEventsResource
|
|
7716
|
+
*/
|
|
7717
|
+
export interface ReachV1AutomationsAutomationEventsResource {
|
|
7718
|
+
/**
|
|
7719
|
+
* Contacts that ever entered the automation, including those that already left it.
|
|
7720
|
+
* @type {number}
|
|
7721
|
+
* @memberof ReachV1AutomationsAutomationEventsResource
|
|
7722
|
+
*/
|
|
7723
|
+
'started': number;
|
|
7724
|
+
/**
|
|
7725
|
+
* Contacts currently moving through the automation, including those waiting on a delay step.
|
|
7726
|
+
* @type {number}
|
|
7727
|
+
* @memberof ReachV1AutomationsAutomationEventsResource
|
|
7728
|
+
*/
|
|
7729
|
+
'in_progress': number;
|
|
7730
|
+
/**
|
|
7731
|
+
* Contacts that reached the end of the workflow.
|
|
7732
|
+
* @type {number}
|
|
7733
|
+
* @memberof ReachV1AutomationsAutomationEventsResource
|
|
7734
|
+
*/
|
|
7735
|
+
'completed': number;
|
|
7736
|
+
/**
|
|
7737
|
+
* Contacts whose journey through the automation errored and stopped.
|
|
7738
|
+
* @type {number}
|
|
7739
|
+
* @memberof ReachV1AutomationsAutomationEventsResource
|
|
7740
|
+
*/
|
|
7741
|
+
'failed': number;
|
|
7742
|
+
}
|
|
7743
|
+
/**
|
|
7744
|
+
*
|
|
7745
|
+
* @export
|
|
7746
|
+
* @interface ReachV1AutomationsAutomationResource
|
|
7747
|
+
*/
|
|
7748
|
+
export interface ReachV1AutomationsAutomationResource {
|
|
7749
|
+
/**
|
|
7750
|
+
*
|
|
7751
|
+
* @type {string}
|
|
7752
|
+
* @memberof ReachV1AutomationsAutomationResource
|
|
7753
|
+
*/
|
|
7754
|
+
'uuid': string;
|
|
7755
|
+
/**
|
|
7756
|
+
*
|
|
7757
|
+
* @type {string}
|
|
7758
|
+
* @memberof ReachV1AutomationsAutomationResource
|
|
7759
|
+
*/
|
|
7760
|
+
'name': string;
|
|
7761
|
+
/**
|
|
7762
|
+
* There is no `completed` status. Use `events.completed` to see how many contacts finished.
|
|
7763
|
+
* @type {string}
|
|
7764
|
+
* @memberof ReachV1AutomationsAutomationResource
|
|
7765
|
+
*/
|
|
7766
|
+
'status': ReachV1AutomationsAutomationResourceStatusEnum;
|
|
7767
|
+
/**
|
|
7768
|
+
* What kind of workflow this is. `custom` automations are the ones built from scratch.
|
|
7769
|
+
* @type {string}
|
|
7770
|
+
* @memberof ReachV1AutomationsAutomationResource
|
|
7771
|
+
*/
|
|
7772
|
+
'type': ReachV1AutomationsAutomationResourceTypeEnum;
|
|
7773
|
+
/**
|
|
7774
|
+
* Trigger configuration of the automation. The shape depends on the type.
|
|
7775
|
+
* @type {object}
|
|
7776
|
+
* @memberof ReachV1AutomationsAutomationResource
|
|
7777
|
+
*/
|
|
7778
|
+
'config': object | null;
|
|
7779
|
+
/**
|
|
7780
|
+
*
|
|
7781
|
+
* @type {ReachV1AutomationsAutomationEventsResource}
|
|
7782
|
+
* @memberof ReachV1AutomationsAutomationResource
|
|
7783
|
+
*/
|
|
7784
|
+
'events': ReachV1AutomationsAutomationEventsResource;
|
|
7785
|
+
/**
|
|
7786
|
+
*
|
|
7787
|
+
* @type {string}
|
|
7788
|
+
* @memberof ReachV1AutomationsAutomationResource
|
|
7789
|
+
*/
|
|
7790
|
+
'created_at': string | null;
|
|
7791
|
+
/**
|
|
7792
|
+
*
|
|
7793
|
+
* @type {string}
|
|
7794
|
+
* @memberof ReachV1AutomationsAutomationResource
|
|
7795
|
+
*/
|
|
7796
|
+
'updated_at': string | null;
|
|
7797
|
+
}
|
|
7798
|
+
export declare const ReachV1AutomationsAutomationResourceStatusEnum: {
|
|
7799
|
+
readonly Active: "active";
|
|
7800
|
+
readonly Paused: "paused";
|
|
7801
|
+
readonly Draft: "draft";
|
|
7802
|
+
};
|
|
7803
|
+
export type ReachV1AutomationsAutomationResourceStatusEnum = typeof ReachV1AutomationsAutomationResourceStatusEnum[keyof typeof ReachV1AutomationsAutomationResourceStatusEnum];
|
|
7804
|
+
export declare const ReachV1AutomationsAutomationResourceTypeEnum: {
|
|
7805
|
+
readonly Welcome: "welcome";
|
|
7806
|
+
readonly WelcomeSeries: "welcome_series";
|
|
7807
|
+
readonly PromotionalSeries: "promotional_series";
|
|
7808
|
+
readonly TrustBuildingSeries: "trust_building_series";
|
|
7809
|
+
readonly EcommerceAbandonedCart: "ecommerce_abandoned_cart";
|
|
7810
|
+
readonly EcommerceRecommendAfterPurchase: "ecommerce_recommend_after_purchase";
|
|
7811
|
+
readonly EcommercePostPurchase: "ecommerce_post_purchase";
|
|
7812
|
+
readonly EcommerceDiscountAfterPurchase: "ecommerce_discount_after_purchase";
|
|
7813
|
+
readonly ReEngagementNonOpeners: "re_engagement_non_openers";
|
|
7814
|
+
readonly ReEngagementNonClickers: "re_engagement_non_clickers";
|
|
7815
|
+
readonly FormSubmitted: "form_submitted";
|
|
7816
|
+
readonly Custom: "custom";
|
|
7817
|
+
};
|
|
7818
|
+
export type ReachV1AutomationsAutomationResourceTypeEnum = typeof ReachV1AutomationsAutomationResourceTypeEnum[keyof typeof ReachV1AutomationsAutomationResourceTypeEnum];
|
|
7819
|
+
/**
|
|
7820
|
+
*
|
|
7821
|
+
* @export
|
|
7822
|
+
* @interface ReachV1AutomationsStepsAutomationStepResource
|
|
7823
|
+
*/
|
|
7824
|
+
export interface ReachV1AutomationsStepsAutomationStepResource {
|
|
7825
|
+
/**
|
|
7826
|
+
*
|
|
7827
|
+
* @type {string}
|
|
7828
|
+
* @memberof ReachV1AutomationsStepsAutomationStepResource
|
|
7829
|
+
*/
|
|
7830
|
+
'uuid': string;
|
|
7831
|
+
/**
|
|
7832
|
+
* The step this one branches from. Null for the entry point of the workflow.
|
|
7833
|
+
* @type {string}
|
|
7834
|
+
* @memberof ReachV1AutomationsStepsAutomationStepResource
|
|
7835
|
+
*/
|
|
7836
|
+
'parent_uuid': string | null;
|
|
7837
|
+
/**
|
|
7838
|
+
* Position of this step among the steps sharing its parent.
|
|
7839
|
+
* @type {number}
|
|
7840
|
+
* @memberof ReachV1AutomationsStepsAutomationStepResource
|
|
7841
|
+
*/
|
|
7842
|
+
'step_order': number;
|
|
7843
|
+
/**
|
|
7844
|
+
* Role of the step in the workflow. A `conditional` step branches into several children.
|
|
7845
|
+
* @type {string}
|
|
7846
|
+
* @memberof ReachV1AutomationsStepsAutomationStepResource
|
|
7847
|
+
*/
|
|
7848
|
+
'type': ReachV1AutomationsStepsAutomationStepResourceTypeEnum;
|
|
7849
|
+
/**
|
|
7850
|
+
* The concrete trigger, action, decision or delay this step performs.
|
|
7851
|
+
* @type {string}
|
|
7852
|
+
* @memberof ReachV1AutomationsStepsAutomationStepResource
|
|
7853
|
+
*/
|
|
7854
|
+
'value': ReachV1AutomationsStepsAutomationStepResourceValueEnum;
|
|
7855
|
+
/**
|
|
7856
|
+
* Step configuration. The shape depends on the value, and is empty for steps that take none.
|
|
7857
|
+
* @type {object}
|
|
7858
|
+
* @memberof ReachV1AutomationsStepsAutomationStepResource
|
|
7859
|
+
*/
|
|
7860
|
+
'config': object | null;
|
|
7861
|
+
}
|
|
7862
|
+
export declare const ReachV1AutomationsStepsAutomationStepResourceTypeEnum: {
|
|
7863
|
+
readonly Trigger: "trigger";
|
|
7864
|
+
readonly Action: "action";
|
|
7865
|
+
readonly Conditional: "conditional";
|
|
7866
|
+
};
|
|
7867
|
+
export type ReachV1AutomationsStepsAutomationStepResourceTypeEnum = typeof ReachV1AutomationsStepsAutomationStepResourceTypeEnum[keyof typeof ReachV1AutomationsStepsAutomationStepResourceTypeEnum];
|
|
7868
|
+
export declare const ReachV1AutomationsStepsAutomationStepResourceValueEnum: {
|
|
7869
|
+
readonly NewContact: "new_contact";
|
|
7870
|
+
readonly NewSegmentContact: "new_segment_contact";
|
|
7871
|
+
readonly FormSubmitted: "form_submitted";
|
|
7872
|
+
readonly Webhook: "webhook";
|
|
7873
|
+
readonly SendWelcomeEmail: "send_welcome_email";
|
|
7874
|
+
readonly SendEmail: "send_email";
|
|
7875
|
+
readonly SendCampaign: "send_campaign";
|
|
7876
|
+
readonly Decision: "decision";
|
|
7877
|
+
readonly Delay: "delay";
|
|
7878
|
+
};
|
|
7879
|
+
export type ReachV1AutomationsStepsAutomationStepResourceValueEnum = typeof ReachV1AutomationsStepsAutomationStepResourceValueEnum[keyof typeof ReachV1AutomationsStepsAutomationStepResourceValueEnum];
|
|
7693
7880
|
/**
|
|
7694
7881
|
* Create many contacts in one call
|
|
7695
7882
|
* @export
|
|
@@ -19766,6 +19953,172 @@ export declare const ListWebhooksV1StatusEnum: {
|
|
|
19766
19953
|
readonly Paused: "paused";
|
|
19767
19954
|
};
|
|
19768
19955
|
export type ListWebhooksV1StatusEnum = typeof ListWebhooksV1StatusEnum[keyof typeof ListWebhooksV1StatusEnum];
|
|
19956
|
+
/**
|
|
19957
|
+
* ReachAutomationsApi - axios parameter creator
|
|
19958
|
+
* @export
|
|
19959
|
+
*/
|
|
19960
|
+
export declare const ReachAutomationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19961
|
+
/**
|
|
19962
|
+
* Get a single automation with the counts of contacts that entered it, are moving through it, finished it or failed on the way. This describes the automation itself. To see the workflow it runs, use the steps endpoint.
|
|
19963
|
+
* @summary Get automation details
|
|
19964
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
19965
|
+
* @param {string} automationUuid Automation uuid parameter
|
|
19966
|
+
* @param {*} [options] Override http request option.
|
|
19967
|
+
* @throws {RequiredError}
|
|
19968
|
+
*/
|
|
19969
|
+
getAutomationDetailsV1: (profileUuid: string, automationUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19970
|
+
/**
|
|
19971
|
+
* Get the workflow of an automation as a flat list of steps. The steps form a tree rather than a straight line: follow `parent_uuid` to reconstruct the branches, and use `step_order` to order the steps that share a parent. An automation with no steps yet returns an empty list.
|
|
19972
|
+
* @summary List automation steps
|
|
19973
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
19974
|
+
* @param {string} automationUuid Automation uuid parameter
|
|
19975
|
+
* @param {*} [options] Override http request option.
|
|
19976
|
+
* @throws {RequiredError}
|
|
19977
|
+
*/
|
|
19978
|
+
listAutomationStepsV1: (profileUuid: string, automationUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19979
|
+
/**
|
|
19980
|
+
* Get a paginated list of the automations in a profile. Every automation comes with the counts of contacts that entered it, are moving through it, finished it or failed on the way. Those counts describe the contact journey and are not email engagement metrics - for opens, clicks and unsubscribes use the campaign statistics endpoint instead.
|
|
19981
|
+
* @summary List automations
|
|
19982
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
19983
|
+
* @param {ListAutomationsV1StatusEnum} [status] Filter automations by status. There is no `completed` status. An automation that has finished for every contact still reports `active`.
|
|
19984
|
+
* @param {ListAutomationsV1SortDirectionEnum} [sortDirection] Order automations by creation date. Newest first unless set to `asc`.
|
|
19985
|
+
* @param {number} [page] Page number
|
|
19986
|
+
* @param {number} [perPage] Number of items per page
|
|
19987
|
+
* @param {*} [options] Override http request option.
|
|
19988
|
+
* @throws {RequiredError}
|
|
19989
|
+
*/
|
|
19990
|
+
listAutomationsV1: (profileUuid: string, status?: ListAutomationsV1StatusEnum, sortDirection?: ListAutomationsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19991
|
+
};
|
|
19992
|
+
/**
|
|
19993
|
+
* ReachAutomationsApi - functional programming interface
|
|
19994
|
+
* @export
|
|
19995
|
+
*/
|
|
19996
|
+
export declare const ReachAutomationsApiFp: (configuration?: Configuration) => {
|
|
19997
|
+
/**
|
|
19998
|
+
* Get a single automation with the counts of contacts that entered it, are moving through it, finished it or failed on the way. This describes the automation itself. To see the workflow it runs, use the steps endpoint.
|
|
19999
|
+
* @summary Get automation details
|
|
20000
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20001
|
+
* @param {string} automationUuid Automation uuid parameter
|
|
20002
|
+
* @param {*} [options] Override http request option.
|
|
20003
|
+
* @throws {RequiredError}
|
|
20004
|
+
*/
|
|
20005
|
+
getAutomationDetailsV1(profileUuid: string, automationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1AutomationsAutomationResource>>;
|
|
20006
|
+
/**
|
|
20007
|
+
* Get the workflow of an automation as a flat list of steps. The steps form a tree rather than a straight line: follow `parent_uuid` to reconstruct the branches, and use `step_order` to order the steps that share a parent. An automation with no steps yet returns an empty list.
|
|
20008
|
+
* @summary List automation steps
|
|
20009
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20010
|
+
* @param {string} automationUuid Automation uuid parameter
|
|
20011
|
+
* @param {*} [options] Override http request option.
|
|
20012
|
+
* @throws {RequiredError}
|
|
20013
|
+
*/
|
|
20014
|
+
listAutomationStepsV1(profileUuid: string, automationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1AutomationsStepsAutomationStepResource>>>;
|
|
20015
|
+
/**
|
|
20016
|
+
* Get a paginated list of the automations in a profile. Every automation comes with the counts of contacts that entered it, are moving through it, finished it or failed on the way. Those counts describe the contact journey and are not email engagement metrics - for opens, clicks and unsubscribes use the campaign statistics endpoint instead.
|
|
20017
|
+
* @summary List automations
|
|
20018
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20019
|
+
* @param {ListAutomationsV1StatusEnum} [status] Filter automations by status. There is no `completed` status. An automation that has finished for every contact still reports `active`.
|
|
20020
|
+
* @param {ListAutomationsV1SortDirectionEnum} [sortDirection] Order automations by creation date. Newest first unless set to `asc`.
|
|
20021
|
+
* @param {number} [page] Page number
|
|
20022
|
+
* @param {number} [perPage] Number of items per page
|
|
20023
|
+
* @param {*} [options] Override http request option.
|
|
20024
|
+
* @throws {RequiredError}
|
|
20025
|
+
*/
|
|
20026
|
+
listAutomationsV1(profileUuid: string, status?: ListAutomationsV1StatusEnum, sortDirection?: ListAutomationsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListAutomationsV1200Response>>;
|
|
20027
|
+
};
|
|
20028
|
+
/**
|
|
20029
|
+
* ReachAutomationsApi - factory interface
|
|
20030
|
+
* @export
|
|
20031
|
+
*/
|
|
20032
|
+
export declare const ReachAutomationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
20033
|
+
/**
|
|
20034
|
+
* Get a single automation with the counts of contacts that entered it, are moving through it, finished it or failed on the way. This describes the automation itself. To see the workflow it runs, use the steps endpoint.
|
|
20035
|
+
* @summary Get automation details
|
|
20036
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20037
|
+
* @param {string} automationUuid Automation uuid parameter
|
|
20038
|
+
* @param {*} [options] Override http request option.
|
|
20039
|
+
* @throws {RequiredError}
|
|
20040
|
+
*/
|
|
20041
|
+
getAutomationDetailsV1(profileUuid: string, automationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1AutomationsAutomationResource>;
|
|
20042
|
+
/**
|
|
20043
|
+
* Get the workflow of an automation as a flat list of steps. The steps form a tree rather than a straight line: follow `parent_uuid` to reconstruct the branches, and use `step_order` to order the steps that share a parent. An automation with no steps yet returns an empty list.
|
|
20044
|
+
* @summary List automation steps
|
|
20045
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20046
|
+
* @param {string} automationUuid Automation uuid parameter
|
|
20047
|
+
* @param {*} [options] Override http request option.
|
|
20048
|
+
* @throws {RequiredError}
|
|
20049
|
+
*/
|
|
20050
|
+
listAutomationStepsV1(profileUuid: string, automationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1AutomationsStepsAutomationStepResource>>;
|
|
20051
|
+
/**
|
|
20052
|
+
* Get a paginated list of the automations in a profile. Every automation comes with the counts of contacts that entered it, are moving through it, finished it or failed on the way. Those counts describe the contact journey and are not email engagement metrics - for opens, clicks and unsubscribes use the campaign statistics endpoint instead.
|
|
20053
|
+
* @summary List automations
|
|
20054
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20055
|
+
* @param {ListAutomationsV1StatusEnum} [status] Filter automations by status. There is no `completed` status. An automation that has finished for every contact still reports `active`.
|
|
20056
|
+
* @param {ListAutomationsV1SortDirectionEnum} [sortDirection] Order automations by creation date. Newest first unless set to `asc`.
|
|
20057
|
+
* @param {number} [page] Page number
|
|
20058
|
+
* @param {number} [perPage] Number of items per page
|
|
20059
|
+
* @param {*} [options] Override http request option.
|
|
20060
|
+
* @throws {RequiredError}
|
|
20061
|
+
*/
|
|
20062
|
+
listAutomationsV1(profileUuid: string, status?: ListAutomationsV1StatusEnum, sortDirection?: ListAutomationsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListAutomationsV1200Response>;
|
|
20063
|
+
};
|
|
20064
|
+
/**
|
|
20065
|
+
* ReachAutomationsApi - object-oriented interface
|
|
20066
|
+
* @export
|
|
20067
|
+
* @class ReachAutomationsApi
|
|
20068
|
+
* @extends {BaseAPI}
|
|
20069
|
+
*/
|
|
20070
|
+
export declare class ReachAutomationsApi extends BaseAPI {
|
|
20071
|
+
/**
|
|
20072
|
+
* Get a single automation with the counts of contacts that entered it, are moving through it, finished it or failed on the way. This describes the automation itself. To see the workflow it runs, use the steps endpoint.
|
|
20073
|
+
* @summary Get automation details
|
|
20074
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20075
|
+
* @param {string} automationUuid Automation uuid parameter
|
|
20076
|
+
* @param {*} [options] Override http request option.
|
|
20077
|
+
* @throws {RequiredError}
|
|
20078
|
+
* @memberof ReachAutomationsApi
|
|
20079
|
+
*/
|
|
20080
|
+
getAutomationDetailsV1(profileUuid: string, automationUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1AutomationsAutomationResource, any, {}, any>>;
|
|
20081
|
+
/**
|
|
20082
|
+
* Get the workflow of an automation as a flat list of steps. The steps form a tree rather than a straight line: follow `parent_uuid` to reconstruct the branches, and use `step_order` to order the steps that share a parent. An automation with no steps yet returns an empty list.
|
|
20083
|
+
* @summary List automation steps
|
|
20084
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20085
|
+
* @param {string} automationUuid Automation uuid parameter
|
|
20086
|
+
* @param {*} [options] Override http request option.
|
|
20087
|
+
* @throws {RequiredError}
|
|
20088
|
+
* @memberof ReachAutomationsApi
|
|
20089
|
+
*/
|
|
20090
|
+
listAutomationStepsV1(profileUuid: string, automationUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1AutomationsStepsAutomationStepResource[], any, {}, any>>;
|
|
20091
|
+
/**
|
|
20092
|
+
* Get a paginated list of the automations in a profile. Every automation comes with the counts of contacts that entered it, are moving through it, finished it or failed on the way. Those counts describe the contact journey and are not email engagement metrics - for opens, clicks and unsubscribes use the campaign statistics endpoint instead.
|
|
20093
|
+
* @summary List automations
|
|
20094
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20095
|
+
* @param {ListAutomationsV1StatusEnum} [status] Filter automations by status. There is no `completed` status. An automation that has finished for every contact still reports `active`.
|
|
20096
|
+
* @param {ListAutomationsV1SortDirectionEnum} [sortDirection] Order automations by creation date. Newest first unless set to `asc`.
|
|
20097
|
+
* @param {number} [page] Page number
|
|
20098
|
+
* @param {number} [perPage] Number of items per page
|
|
20099
|
+
* @param {*} [options] Override http request option.
|
|
20100
|
+
* @throws {RequiredError}
|
|
20101
|
+
* @memberof ReachAutomationsApi
|
|
20102
|
+
*/
|
|
20103
|
+
listAutomationsV1(profileUuid: string, status?: ListAutomationsV1StatusEnum, sortDirection?: ListAutomationsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListAutomationsV1200Response, any, {}, any>>;
|
|
20104
|
+
}
|
|
20105
|
+
/**
|
|
20106
|
+
* @export
|
|
20107
|
+
*/
|
|
20108
|
+
export declare const ListAutomationsV1StatusEnum: {
|
|
20109
|
+
readonly Active: "active";
|
|
20110
|
+
readonly Paused: "paused";
|
|
20111
|
+
readonly Draft: "draft";
|
|
20112
|
+
};
|
|
20113
|
+
export type ListAutomationsV1StatusEnum = typeof ListAutomationsV1StatusEnum[keyof typeof ListAutomationsV1StatusEnum];
|
|
20114
|
+
/**
|
|
20115
|
+
* @export
|
|
20116
|
+
*/
|
|
20117
|
+
export declare const ListAutomationsV1SortDirectionEnum: {
|
|
20118
|
+
readonly Asc: "asc";
|
|
20119
|
+
readonly Desc: "desc";
|
|
20120
|
+
};
|
|
20121
|
+
export type ListAutomationsV1SortDirectionEnum = typeof ListAutomationsV1SortDirectionEnum[keyof typeof ListAutomationsV1SortDirectionEnum];
|
|
19769
20122
|
/**
|
|
19770
20123
|
* ReachContactFieldsApi - axios parameter creator
|
|
19771
20124
|
* @export
|