mailmeteor 0.0.54 → 0.0.56

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.d.ts CHANGED
@@ -398,11 +398,11 @@ type UserIdResponse200 = {
398
398
  api_key: string;
399
399
  service?: string;
400
400
  } | {
401
- host: string;
402
- port: number;
403
- security: 'auto' | 'none' | 'ssl' | 'tls';
404
- username: string;
405
- password: string;
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
- host: string;
1273
- port: number;
1274
- security: 'auto' | 'none' | 'ssl' | 'tls';
1275
- username: string;
1276
- password: string;
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
- host: string;
1415
- port: number;
1416
- security: 'auto' | 'none' | 'ssl' | 'tls';
1417
- username: string;
1418
- password: string;
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
- host: string;
3335
- port: number;
3336
- security: 'auto' | 'none' | 'ssl' | 'tls';
3337
- username: string;
3338
- password: string;
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
- host: string;
4115
- port: number;
4116
- security: 'auto' | 'none' | 'ssl' | 'tls';
4117
- username: string;
4118
- password: string;
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
@@ -1604,7 +1604,6 @@ class PipelineConversations extends HeyApiClient {
1604
1604
  { in: 'query', key: 'include_metrics' }
1605
1605
  ] }]);
1606
1606
  return (options?.client ?? this.client).get({
1607
- querySerializer: { parameters: { followups: { object: { style: 'form' } } } },
1608
1607
  responseStyle: 'data',
1609
1608
  url: '/pipeline_conversations',
1610
1609
  ...options,
@@ -1623,7 +1622,6 @@ class PipelineConversations extends HeyApiClient {
1623
1622
  { in: 'query', key: 'group_by' }
1624
1623
  ] }]);
1625
1624
  return (options?.client ?? this.client).get({
1626
- querySerializer: { parameters: { followups: { object: { style: 'form' } } } },
1627
1625
  responseStyle: 'data',
1628
1626
  url: '/pipeline_conversations/count',
1629
1627
  ...options,
@@ -1831,26 +1829,36 @@ class Default extends HeyApiClient {
1831
1829
  }
1832
1830
  Default.__registry = new HeyApiRegistry11();
1833
1831
 
1834
- var types_gen = /*#__PURE__*/Object.freeze({
1835
- __proto__: null
1836
- });
1837
-
1838
1832
  function querySerializer(query) {
1839
1833
  const parts = [];
1840
- for (const [key, value] of Object.entries(query)) {
1841
- if (value === undefined || value === null)
1842
- continue;
1834
+ function serialize(key, value) {
1835
+ if (value === undefined || value === null) {
1836
+ return;
1837
+ }
1843
1838
  if (Array.isArray(value)) {
1844
1839
  for (const item of value) {
1845
- parts.push(`${encodeURIComponent(key)}[]=${encodeURIComponent(String(item))}`);
1840
+ serialize(`${key}[]`, item);
1841
+ }
1842
+ }
1843
+ else if (typeof value === 'object' && !(value instanceof Date)) {
1844
+ for (const [nestedKey, nestedValue] of Object.entries(value)) {
1845
+ serialize(`${key}[${nestedKey}]`, nestedValue);
1846
1846
  }
1847
1847
  }
1848
1848
  else {
1849
1849
  parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
1850
1850
  }
1851
1851
  }
1852
+ for (const [key, value] of Object.entries(query)) {
1853
+ serialize(key, value);
1854
+ }
1852
1855
  return parts.join('&');
1853
1856
  }
1857
+
1858
+ var types_gen = /*#__PURE__*/Object.freeze({
1859
+ __proto__: null
1860
+ });
1861
+
1854
1862
  function getAuthorizationHeader(apiKey) {
1855
1863
  if (apiKey.startsWith('sk_')) {
1856
1864
  return `Basic ${Buffer.from(String(apiKey) + ':').toString('base64')}`;