mailmeteor 0.0.66 → 0.1.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 +100 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +240 -7
- package/dist/index.mjs +100 -5
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated-sdk/index.d.ts +2 -2
- package/dist/types/generated-sdk/index.d.ts.map +1 -1
- package/dist/types/generated-sdk/sdk.gen.d.ts +43 -3
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +208 -5
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1058,6 +1058,22 @@ class HeyApiRegistry11 {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
class HeyApiRegistry12 {
|
|
1061
|
+
constructor() {
|
|
1062
|
+
this.defaultKey = 'default';
|
|
1063
|
+
this.instances = new Map();
|
|
1064
|
+
}
|
|
1065
|
+
get(key) {
|
|
1066
|
+
const instance = this.instances.get(key ?? this.defaultKey);
|
|
1067
|
+
if (!instance) {
|
|
1068
|
+
throw new Error(`No SDK client found. Create one with "new Automations2()" to fix this error.`);
|
|
1069
|
+
}
|
|
1070
|
+
return instance;
|
|
1071
|
+
}
|
|
1072
|
+
set(value, key) {
|
|
1073
|
+
this.instances.set(key ?? this.defaultKey, value);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
class HeyApiRegistry13 {
|
|
1061
1077
|
constructor() {
|
|
1062
1078
|
this.defaultKey = 'default';
|
|
1063
1079
|
this.instances = new Map();
|
|
@@ -1695,7 +1711,7 @@ class PipelineConversations extends HeyApiClient {
|
|
|
1695
1711
|
});
|
|
1696
1712
|
}
|
|
1697
1713
|
listMessages(pipeline_conversation_id, parameters, options) {
|
|
1698
|
-
const params = buildClientParams([pipeline_conversation_id, parameters], [{ in: 'path', key: 'pipeline_conversation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
|
|
1714
|
+
const params = buildClientParams([pipeline_conversation_id, parameters], [{ in: 'path', key: 'pipeline_conversation_id' }, { args: [{ in: 'query', key: 'owner' }, { in: 'query', key: 'format' }] }]);
|
|
1699
1715
|
return (options?.client ?? this.client).get({
|
|
1700
1716
|
responseStyle: 'data',
|
|
1701
1717
|
url: '/pipeline_conversations/{pipeline_conversation_id}/messages',
|
|
@@ -1844,13 +1860,26 @@ class Integrations extends HeyApiClient {
|
|
|
1844
1860
|
...params
|
|
1845
1861
|
});
|
|
1846
1862
|
}
|
|
1847
|
-
disconnectAccount(integration_id, account_id, options) {
|
|
1848
|
-
const params = buildClientParams([
|
|
1863
|
+
disconnectAccount(integration_id, account_id, parameters, options) {
|
|
1864
|
+
const params = buildClientParams([
|
|
1865
|
+
integration_id,
|
|
1866
|
+
account_id,
|
|
1867
|
+
parameters
|
|
1868
|
+
], [
|
|
1869
|
+
{ in: 'path', key: 'integration_id' },
|
|
1870
|
+
{ in: 'path', key: 'account_id' },
|
|
1871
|
+
{ args: [{ in: 'body', key: 'reason' }] }
|
|
1872
|
+
]);
|
|
1849
1873
|
return (options?.client ?? this.client).post({
|
|
1850
1874
|
responseStyle: 'data',
|
|
1851
1875
|
url: '/integrations/{integration_id}/accounts/{account_id}/disconnect',
|
|
1852
1876
|
...options,
|
|
1853
|
-
...params
|
|
1877
|
+
...params,
|
|
1878
|
+
headers: {
|
|
1879
|
+
'Content-Type': 'application/json',
|
|
1880
|
+
...options?.headers,
|
|
1881
|
+
...params.headers
|
|
1882
|
+
}
|
|
1854
1883
|
});
|
|
1855
1884
|
}
|
|
1856
1885
|
}
|
|
@@ -1903,6 +1932,72 @@ class Jobs2 extends HeyApiClient {
|
|
|
1903
1932
|
}
|
|
1904
1933
|
}
|
|
1905
1934
|
Jobs2.__registry = new HeyApiRegistry11();
|
|
1935
|
+
class Automations extends HeyApiClient {
|
|
1936
|
+
create(parameters, options) {
|
|
1937
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
1938
|
+
{ in: 'body', key: 'owner' },
|
|
1939
|
+
{ in: 'body', key: 'name' },
|
|
1940
|
+
{ in: 'body', key: 'draft_definition' }
|
|
1941
|
+
] }]);
|
|
1942
|
+
return (options?.client ?? this.client).post({
|
|
1943
|
+
responseStyle: 'data',
|
|
1944
|
+
url: '/automations',
|
|
1945
|
+
...options,
|
|
1946
|
+
...params,
|
|
1947
|
+
headers: {
|
|
1948
|
+
'Content-Type': 'application/json',
|
|
1949
|
+
...options?.headers,
|
|
1950
|
+
...params.headers
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
del(automation_id, parameters, options) {
|
|
1955
|
+
const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
|
|
1956
|
+
return (options?.client ?? this.client).delete({
|
|
1957
|
+
responseStyle: 'data',
|
|
1958
|
+
url: '/automations/{automation_id}',
|
|
1959
|
+
...options,
|
|
1960
|
+
...params
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
retrieve(automation_id, parameters, options) {
|
|
1964
|
+
const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
|
|
1965
|
+
return (options?.client ?? this.client).get({
|
|
1966
|
+
responseStyle: 'data',
|
|
1967
|
+
url: '/automations/{automation_id}',
|
|
1968
|
+
...options,
|
|
1969
|
+
...params
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
update(automation_id, parameters, options) {
|
|
1973
|
+
const params = buildClientParams([automation_id, parameters], [{ in: 'path', key: 'automation_id' }, { args: [
|
|
1974
|
+
{ in: 'body', key: 'owner' },
|
|
1975
|
+
{ in: 'body', key: 'name' },
|
|
1976
|
+
{ in: 'body', key: 'draft_definition' }
|
|
1977
|
+
] }]);
|
|
1978
|
+
return (options?.client ?? this.client).patch({
|
|
1979
|
+
responseStyle: 'data',
|
|
1980
|
+
url: '/automations/{automation_id}',
|
|
1981
|
+
...options,
|
|
1982
|
+
...params,
|
|
1983
|
+
headers: {
|
|
1984
|
+
'Content-Type': 'application/json',
|
|
1985
|
+
...options?.headers,
|
|
1986
|
+
...params.headers
|
|
1987
|
+
}
|
|
1988
|
+
});
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
class Automations2 extends HeyApiClient {
|
|
1992
|
+
constructor(args) {
|
|
1993
|
+
super(args);
|
|
1994
|
+
Automations2.__registry.set(this, args?.key);
|
|
1995
|
+
}
|
|
1996
|
+
get automations() {
|
|
1997
|
+
return this._automations ?? (this._automations = new Automations({ client: this.client }));
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
Automations2.__registry = new HeyApiRegistry12();
|
|
1906
2001
|
class Default extends HeyApiClient {
|
|
1907
2002
|
constructor(args) {
|
|
1908
2003
|
super(args);
|
|
@@ -1916,7 +2011,7 @@ class Default extends HeyApiClient {
|
|
|
1916
2011
|
});
|
|
1917
2012
|
}
|
|
1918
2013
|
}
|
|
1919
|
-
Default.__registry = new
|
|
2014
|
+
Default.__registry = new HeyApiRegistry13();
|
|
1920
2015
|
|
|
1921
2016
|
function querySerializer(query) {
|
|
1922
2017
|
const parts = [];
|