mailmeteor 0.0.54 → 0.0.55
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 +18 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +25 -25
- package/dist/index.mjs +18 -8
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated-sdk/sdk.gen.d.ts +5 -5
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +20 -20
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/query-serializer.d.ts +7 -0
- package/dist/types/query-serializer.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -398,11 +398,11 @@ type UserIdResponse200 = {
|
|
|
398
398
|
api_key: string;
|
|
399
399
|
service?: string;
|
|
400
400
|
} | {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
401
|
+
smtp_host: string;
|
|
402
|
+
smtp_port: number;
|
|
403
|
+
smtp_security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
404
|
+
smtp_username: string;
|
|
405
|
+
smtp_password: string;
|
|
406
406
|
email: string;
|
|
407
407
|
service: 'smtp';
|
|
408
408
|
creation_date?: number;
|
|
@@ -1269,11 +1269,11 @@ type AccountsBody = {
|
|
|
1269
1269
|
api_key: string;
|
|
1270
1270
|
service?: string;
|
|
1271
1271
|
} | {
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1272
|
+
smtp_host: string;
|
|
1273
|
+
smtp_port: number;
|
|
1274
|
+
smtp_security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
1275
|
+
smtp_username: string;
|
|
1276
|
+
smtp_password: string;
|
|
1277
1277
|
email: string;
|
|
1278
1278
|
service: 'smtp';
|
|
1279
1279
|
creation_date?: number;
|
|
@@ -1411,11 +1411,11 @@ type UsersRetrieveResponses = {
|
|
|
1411
1411
|
api_key: string;
|
|
1412
1412
|
service?: string;
|
|
1413
1413
|
} | {
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1414
|
+
smtp_host: string;
|
|
1415
|
+
smtp_port: number;
|
|
1416
|
+
smtp_security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
1417
|
+
smtp_username: string;
|
|
1418
|
+
smtp_password: string;
|
|
1419
1419
|
email: string;
|
|
1420
1420
|
service: 'smtp';
|
|
1421
1421
|
creation_date?: number;
|
|
@@ -3331,11 +3331,11 @@ type IntegrationsCreateAccountData = {
|
|
|
3331
3331
|
api_key: string;
|
|
3332
3332
|
service?: string;
|
|
3333
3333
|
} | {
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3334
|
+
smtp_host: string;
|
|
3335
|
+
smtp_port: number;
|
|
3336
|
+
smtp_security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
3337
|
+
smtp_username: string;
|
|
3338
|
+
smtp_password: string;
|
|
3339
3339
|
email: string;
|
|
3340
3340
|
service: 'smtp';
|
|
3341
3341
|
creation_date?: number;
|
|
@@ -4111,11 +4111,11 @@ declare class Integrations extends HeyApiClient {
|
|
|
4111
4111
|
api_key: string;
|
|
4112
4112
|
service?: string;
|
|
4113
4113
|
} | {
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4114
|
+
smtp_host: string;
|
|
4115
|
+
smtp_port: number;
|
|
4116
|
+
smtp_security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
4117
|
+
smtp_username: string;
|
|
4118
|
+
smtp_password: string;
|
|
4119
4119
|
email: string;
|
|
4120
4120
|
service: 'smtp';
|
|
4121
4121
|
creation_date?: number;
|
package/dist/index.mjs
CHANGED
|
@@ -1831,26 +1831,36 @@ class Default extends HeyApiClient {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
Default.__registry = new HeyApiRegistry11();
|
|
1833
1833
|
|
|
1834
|
-
var types_gen = /*#__PURE__*/Object.freeze({
|
|
1835
|
-
__proto__: null
|
|
1836
|
-
});
|
|
1837
|
-
|
|
1838
1834
|
function querySerializer(query) {
|
|
1839
1835
|
const parts = [];
|
|
1840
|
-
|
|
1841
|
-
if (value === undefined || value === null)
|
|
1842
|
-
|
|
1836
|
+
function serialize(key, value) {
|
|
1837
|
+
if (value === undefined || value === null) {
|
|
1838
|
+
return;
|
|
1839
|
+
}
|
|
1843
1840
|
if (Array.isArray(value)) {
|
|
1844
1841
|
for (const item of value) {
|
|
1845
|
-
|
|
1842
|
+
serialize(`${key}[]`, item);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
else if (typeof value === 'object' && !(value instanceof Date)) {
|
|
1846
|
+
for (const [nestedKey, nestedValue] of Object.entries(value)) {
|
|
1847
|
+
serialize(`${key}[${nestedKey}]`, nestedValue);
|
|
1846
1848
|
}
|
|
1847
1849
|
}
|
|
1848
1850
|
else {
|
|
1849
1851
|
parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
|
1850
1852
|
}
|
|
1851
1853
|
}
|
|
1854
|
+
for (const [key, value] of Object.entries(query)) {
|
|
1855
|
+
serialize(key, value);
|
|
1856
|
+
}
|
|
1852
1857
|
return parts.join('&');
|
|
1853
1858
|
}
|
|
1859
|
+
|
|
1860
|
+
var types_gen = /*#__PURE__*/Object.freeze({
|
|
1861
|
+
__proto__: null
|
|
1862
|
+
});
|
|
1863
|
+
|
|
1854
1864
|
function getAuthorizationHeader(apiKey) {
|
|
1855
1865
|
if (apiKey.startsWith('sk_')) {
|
|
1856
1866
|
return `Basic ${Buffer.from(String(apiKey) + ':').toString('base64')}`;
|