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.cjs CHANGED
@@ -1606,7 +1606,6 @@ class PipelineConversations extends HeyApiClient {
1606
1606
  { in: 'query', key: 'include_metrics' }
1607
1607
  ] }]);
1608
1608
  return (options?.client ?? this.client).get({
1609
- querySerializer: { parameters: { followups: { object: { style: 'form' } } } },
1610
1609
  responseStyle: 'data',
1611
1610
  url: '/pipeline_conversations',
1612
1611
  ...options,
@@ -1625,7 +1624,6 @@ class PipelineConversations extends HeyApiClient {
1625
1624
  { in: 'query', key: 'group_by' }
1626
1625
  ] }]);
1627
1626
  return (options?.client ?? this.client).get({
1628
- querySerializer: { parameters: { followups: { object: { style: 'form' } } } },
1629
1627
  responseStyle: 'data',
1630
1628
  url: '/pipeline_conversations/count',
1631
1629
  ...options,
@@ -1833,26 +1831,36 @@ class Default extends HeyApiClient {
1833
1831
  }
1834
1832
  Default.__registry = new HeyApiRegistry11();
1835
1833
 
1836
- var types_gen = /*#__PURE__*/Object.freeze({
1837
- __proto__: null
1838
- });
1839
-
1840
1834
  function querySerializer(query) {
1841
1835
  const parts = [];
1842
- for (const [key, value] of Object.entries(query)) {
1843
- if (value === undefined || value === null)
1844
- continue;
1836
+ function serialize(key, value) {
1837
+ if (value === undefined || value === null) {
1838
+ return;
1839
+ }
1845
1840
  if (Array.isArray(value)) {
1846
1841
  for (const item of value) {
1847
- parts.push(`${encodeURIComponent(key)}[]=${encodeURIComponent(String(item))}`);
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);
1848
1848
  }
1849
1849
  }
1850
1850
  else {
1851
1851
  parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
1852
1852
  }
1853
1853
  }
1854
+ for (const [key, value] of Object.entries(query)) {
1855
+ serialize(key, value);
1856
+ }
1854
1857
  return parts.join('&');
1855
1858
  }
1859
+
1860
+ var types_gen = /*#__PURE__*/Object.freeze({
1861
+ __proto__: null
1862
+ });
1863
+
1856
1864
  function getAuthorizationHeader(apiKey) {
1857
1865
  if (apiKey.startsWith('sk_')) {
1858
1866
  return `Basic ${Buffer.from(String(apiKey) + ':').toString('base64')}`;