@hapaul/api 0.1.46 → 0.1.48

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
@@ -1184,6 +1184,10 @@ interface components {
1184
1184
  index: number;
1185
1185
  };
1186
1186
  PostWithAttachments: components["schemas"]["Post"] & {
1187
+ /** Format: uuid */
1188
+ authorId: string;
1189
+ authorName: string;
1190
+ authorAvatar?: string | null;
1187
1191
  attachments: components["schemas"]["PostAttachmentInfo"][];
1188
1192
  };
1189
1193
  /** @enum {string} */
@@ -1314,13 +1318,6 @@ interface components {
1314
1318
  /** Format: int64 */
1315
1319
  total: number;
1316
1320
  };
1317
- ResponseJson_PaginatedData_PostWithAttachments: {
1318
- records: (components["schemas"]["Post"] & {
1319
- attachments: components["schemas"]["PostAttachmentInfo"][];
1320
- })[];
1321
- /** Format: int64 */
1322
- total: number;
1323
- };
1324
1321
  ResponseJson_PaginatedData_RoleDto: {
1325
1322
  records: {
1326
1323
  /** Format: uuid */
@@ -1413,6 +1410,13 @@ interface components {
1413
1410
  /** Format: date-time */
1414
1411
  updatedAt: string;
1415
1412
  }[];
1413
+ ResponseJson_Vec_PostWithAttachments: (components["schemas"]["Post"] & {
1414
+ /** Format: uuid */
1415
+ authorId: string;
1416
+ authorName: string;
1417
+ authorAvatar?: string | null;
1418
+ attachments: components["schemas"]["PostAttachmentInfo"][];
1419
+ })[];
1416
1420
  ResponseJson_Vec_SessionDto: {
1417
1421
  /** Format: uuid */
1418
1422
  id: string;
@@ -2691,7 +2695,7 @@ interface operations {
2691
2695
  [name: string]: unknown;
2692
2696
  };
2693
2697
  content: {
2694
- "application/json": components["schemas"]["ResponseJson_PaginatedData_PostWithAttachments"];
2698
+ "application/json": components["schemas"]["ResponseJson_Vec_PostWithAttachments"];
2695
2699
  };
2696
2700
  };
2697
2701
  };
package/dist/index.js CHANGED
@@ -129,13 +129,13 @@ function mergeHeaders(...allHeaders) {
129
129
  return finalHeaders;
130
130
  }
131
131
  function defaultQuerySerializer(query) {
132
- let str = "";
132
+ const chunks = [];
133
133
  Object.entries(query).forEach(([key, val]) => {
134
- if (Array.isArray(val)) str += `${key}=${val}`;
135
- else if (isObject(val)) str += `${key}=${JSON.stringify(val)}`;
136
- else str += `${key}=${val}`;
134
+ if (Array.isArray(val)) chunks.push(`${key}=${val}`);
135
+ else if (isObject(val)) chunks.push(`${key}=${JSON.stringify(val)}`);
136
+ else chunks.push(`${key}=${val}`);
137
137
  });
138
- return str;
138
+ return chunks.join("&");
139
139
  }
140
140
  async function defaultBodySerializer(body, headers) {
141
141
  if (body instanceof FormData) return body;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapaul/api",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [