mailmeteor 0.1.0 → 0.1.1

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,21 @@ 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
+ ] }]);
1944
+ return (options?.client ?? this.client).get({
1945
+ responseStyle: 'data',
1946
+ url: '/automations',
1947
+ ...options,
1948
+ ...params
1949
+ });
1950
+ }
1936
1951
  create(parameters, options) {
1937
1952
  const params = buildClientParams([parameters], [{ args: [
1938
1953
  { in: 'body', key: 'owner' },
@@ -1951,6 +1966,15 @@ class Automations extends HeyApiClient {
1951
1966
  }
1952
1967
  });
1953
1968
  }
1969
+ count(parameters, options) {
1970
+ const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'owner' }, { in: 'query', key: 'status' }] }]);
1971
+ return (options?.client ?? this.client).get({
1972
+ responseStyle: 'data',
1973
+ url: '/automations/count',
1974
+ ...options,
1975
+ ...params
1976
+ });
1977
+ }
1954
1978
  del(automation_id, parameters, options) {
1955
1979
  const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
1956
1980
  return (options?.client ?? this.client).delete({
@@ -2071,6 +2095,7 @@ class Mailmeteor {
2071
2095
  this.integrations = new Integrations({ client: this.client });
2072
2096
  this.pipelineConversations = new PipelineConversations({ client: this.client });
2073
2097
  this.jobs = new Jobs({ client: this.client });
2098
+ this.automations = new Automations({ client: this.client });
2074
2099
  }
2075
2100
  setApiKey(key) {
2076
2101
  const currentConfig = this.client.getConfig();