mailmeteor 0.1.0 → 0.2.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/dist/index.cjs CHANGED
@@ -1933,6 +1933,22 @@ class Jobs2 extends HeyApiClient {
1933
1933
  }
1934
1934
  Jobs2.__registry = new HeyApiRegistry11();
1935
1935
  class Automations extends HeyApiClient {
1936
+ list(parameters, options) {
1937
+ const params = buildClientParams([parameters], [{ args: [
1938
+ { in: 'query', key: 'owner' },
1939
+ { in: 'query', key: 'status' },
1940
+ { in: 'query', key: 'limit' },
1941
+ { in: 'query', key: 'starting_after' },
1942
+ { in: 'query', key: 'ending_before' },
1943
+ { in: 'query', key: 'include' }
1944
+ ] }]);
1945
+ return (options?.client ?? this.client).get({
1946
+ responseStyle: 'data',
1947
+ url: '/automations',
1948
+ ...options,
1949
+ ...params
1950
+ });
1951
+ }
1936
1952
  create(parameters, options) {
1937
1953
  const params = buildClientParams([parameters], [{ args: [
1938
1954
  { in: 'body', key: 'owner' },
@@ -1951,6 +1967,15 @@ class Automations extends HeyApiClient {
1951
1967
  }
1952
1968
  });
1953
1969
  }
1970
+ count(parameters, options) {
1971
+ const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'owner' }, { in: 'query', key: 'status' }] }]);
1972
+ return (options?.client ?? this.client).get({
1973
+ responseStyle: 'data',
1974
+ url: '/automations/count',
1975
+ ...options,
1976
+ ...params
1977
+ });
1978
+ }
1954
1979
  del(automation_id, parameters, options) {
1955
1980
  const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
1956
1981
  return (options?.client ?? this.client).delete({
@@ -1961,7 +1986,7 @@ class Automations extends HeyApiClient {
1961
1986
  });
1962
1987
  }
1963
1988
  retrieve(automation_id, parameters, options) {
1964
- const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
1989
+ const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [{ in: 'query', key: 'owner' }, { in: 'query', key: 'include' }] }]);
1965
1990
  return (options?.client ?? this.client).get({
1966
1991
  responseStyle: 'data',
1967
1992
  url: '/automations/{automation_id}',
@@ -2071,6 +2096,7 @@ class Mailmeteor {
2071
2096
  this.integrations = new Integrations({ client: this.client });
2072
2097
  this.pipelineConversations = new PipelineConversations({ client: this.client });
2073
2098
  this.jobs = new Jobs({ client: this.client });
2099
+ this.automations = new Automations({ client: this.client });
2074
2100
  }
2075
2101
  setApiKey(key) {
2076
2102
  const currentConfig = this.client.getConfig();