mailmeteor 0.0.60 → 0.0.62
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 +57 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +158 -1
- package/dist/index.mjs +57 -1
- 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 +29 -2
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +129 -0
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1042,6 +1042,22 @@ class HeyApiRegistry10 {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
1044
|
class HeyApiRegistry11 {
|
|
1045
|
+
constructor() {
|
|
1046
|
+
this.defaultKey = 'default';
|
|
1047
|
+
this.instances = new Map();
|
|
1048
|
+
}
|
|
1049
|
+
get(key) {
|
|
1050
|
+
const instance = this.instances.get(key ?? this.defaultKey);
|
|
1051
|
+
if (!instance) {
|
|
1052
|
+
throw new Error(`No SDK client found. Create one with "new Jobs2()" to fix this error.`);
|
|
1053
|
+
}
|
|
1054
|
+
return instance;
|
|
1055
|
+
}
|
|
1056
|
+
set(value, key) {
|
|
1057
|
+
this.instances.set(key ?? this.defaultKey, value);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
class HeyApiRegistry12 {
|
|
1045
1061
|
constructor() {
|
|
1046
1062
|
this.defaultKey = 'default';
|
|
1047
1063
|
this.instances = new Map();
|
|
@@ -1834,6 +1850,45 @@ class Integrations2 extends HeyApiClient {
|
|
|
1834
1850
|
}
|
|
1835
1851
|
}
|
|
1836
1852
|
Integrations2.__registry = new HeyApiRegistry10();
|
|
1853
|
+
class Jobs extends HeyApiClient {
|
|
1854
|
+
create(parameters, options) {
|
|
1855
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
1856
|
+
{ in: 'body', key: 'owner' },
|
|
1857
|
+
{ in: 'body', key: 'action' },
|
|
1858
|
+
{ in: 'body', key: 'data' }
|
|
1859
|
+
] }]);
|
|
1860
|
+
return (options?.client ?? this.client).post({
|
|
1861
|
+
responseStyle: 'data',
|
|
1862
|
+
url: '/jobs',
|
|
1863
|
+
...options,
|
|
1864
|
+
...params,
|
|
1865
|
+
headers: {
|
|
1866
|
+
'Content-Type': 'application/json',
|
|
1867
|
+
...options?.headers,
|
|
1868
|
+
...params.headers
|
|
1869
|
+
}
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
retrieve(job_id, parameters, options) {
|
|
1873
|
+
const params = buildClientParams([job_id, parameters], [{ in: 'path', key: 'job_id' }, { args: [{ in: 'query', key: 'owner' }] }]);
|
|
1874
|
+
return (options?.client ?? this.client).get({
|
|
1875
|
+
responseStyle: 'data',
|
|
1876
|
+
url: '/jobs/{job_id}',
|
|
1877
|
+
...options,
|
|
1878
|
+
...params
|
|
1879
|
+
});
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
class Jobs2 extends HeyApiClient {
|
|
1883
|
+
constructor(args) {
|
|
1884
|
+
super(args);
|
|
1885
|
+
Jobs2.__registry.set(this, args?.key);
|
|
1886
|
+
}
|
|
1887
|
+
get jobs() {
|
|
1888
|
+
return this._jobs ?? (this._jobs = new Jobs({ client: this.client }));
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
Jobs2.__registry = new HeyApiRegistry11();
|
|
1837
1892
|
class Default extends HeyApiClient {
|
|
1838
1893
|
constructor(args) {
|
|
1839
1894
|
super(args);
|
|
@@ -1847,7 +1902,7 @@ class Default extends HeyApiClient {
|
|
|
1847
1902
|
});
|
|
1848
1903
|
}
|
|
1849
1904
|
}
|
|
1850
|
-
Default.__registry = new
|
|
1905
|
+
Default.__registry = new HeyApiRegistry12();
|
|
1851
1906
|
|
|
1852
1907
|
function querySerializer(query) {
|
|
1853
1908
|
const parts = [];
|
|
@@ -1906,6 +1961,7 @@ class Mailmeteor {
|
|
|
1906
1961
|
this.contacts = new Contacts({ client: this.client });
|
|
1907
1962
|
this.integrations = new Integrations({ client: this.client });
|
|
1908
1963
|
this.pipelineConversations = new PipelineConversations({ client: this.client });
|
|
1964
|
+
this.jobs = new Jobs({ client: this.client });
|
|
1909
1965
|
}
|
|
1910
1966
|
setApiKey(key) {
|
|
1911
1967
|
const currentConfig = this.client.getConfig();
|