@powerlines/plugin-prisma 0.4.13 → 0.4.14

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.
Files changed (130) hide show
  1. package/dist/api/client/client.gen.mjs +1 -2
  2. package/dist/api/client/utils.gen.mjs +1 -2
  3. package/dist/api/client.gen.mjs +1 -2
  4. package/dist/api/core/auth.gen.mjs +1 -2
  5. package/dist/api/core/bodySerializer.gen.mjs +1 -2
  6. package/dist/api/core/params.gen.mjs +1 -2
  7. package/dist/api/core/pathSerializer.gen.mjs +1 -2
  8. package/dist/api/core/queryKeySerializer.gen.mjs +1 -2
  9. package/dist/api/core/serverSentEvents.gen.mjs +1 -2
  10. package/dist/api/core/utils.gen.mjs +1 -2
  11. package/dist/api/sdk.gen.mjs +1 -2
  12. package/dist/helpers/get-schema.mjs +1 -2
  13. package/dist/helpers/prisma-postgres.mjs +1 -2
  14. package/dist/helpers/schema-creator.mjs +1 -2
  15. package/dist/index.cjs +2 -2
  16. package/dist/index.mjs +3 -4
  17. package/dist/node_modules/.pnpm/{@stryke_string-format@0.17.1 → @stryke_string-format@0.17.2}/node_modules/@stryke/string-format/dist/constant-case.cjs +1 -1
  18. package/dist/node_modules/.pnpm/{@stryke_string-format@0.17.1 → @stryke_string-format@0.17.2}/node_modules/@stryke/string-format/dist/constant-case.mjs +2 -3
  19. package/dist/node_modules/.pnpm/{@stryke_string-format@0.17.1 → @stryke_string-format@0.17.2}/node_modules/@stryke/string-format/dist/get-words.cjs +1 -1
  20. package/dist/node_modules/.pnpm/{@stryke_string-format@0.17.1 → @stryke_string-format@0.17.2}/node_modules/@stryke/string-format/dist/get-words.mjs +2 -3
  21. package/dist/node_modules/.pnpm/{@stryke_string-format@0.17.1 → @stryke_string-format@0.17.2}/node_modules/@stryke/string-format/dist/kebab-case.cjs +1 -1
  22. package/dist/node_modules/.pnpm/{@stryke_string-format@0.17.1 → @stryke_string-format@0.17.2}/node_modules/@stryke/string-format/dist/kebab-case.mjs +2 -3
  23. package/dist/node_modules/.pnpm/{@stryke_string-format@0.17.1 → @stryke_string-format@0.17.2}/node_modules/@stryke/string-format/dist/snake-case.cjs +1 -1
  24. package/dist/node_modules/.pnpm/{@stryke_string-format@0.17.1 → @stryke_string-format@0.17.2}/node_modules/@stryke/string-format/dist/snake-case.mjs +2 -3
  25. package/package.json +11 -11
  26. package/dist/api/client/client.gen.d.cts +0 -7
  27. package/dist/api/client/client.gen.d.cts.map +0 -1
  28. package/dist/api/client/client.gen.d.mts +0 -7
  29. package/dist/api/client/client.gen.d.mts.map +0 -1
  30. package/dist/api/client/client.gen.mjs.map +0 -1
  31. package/dist/api/client/index.d.cts +0 -8
  32. package/dist/api/client/index.d.mts +0 -8
  33. package/dist/api/client/types.gen.d.cts +0 -131
  34. package/dist/api/client/types.gen.d.cts.map +0 -1
  35. package/dist/api/client/types.gen.d.mts +0 -131
  36. package/dist/api/client/types.gen.d.mts.map +0 -1
  37. package/dist/api/client/utils.gen.d.cts +0 -44
  38. package/dist/api/client/utils.gen.d.cts.map +0 -1
  39. package/dist/api/client/utils.gen.d.mts +0 -44
  40. package/dist/api/client/utils.gen.d.mts.map +0 -1
  41. package/dist/api/client/utils.gen.mjs.map +0 -1
  42. package/dist/api/client.gen.d.cts +0 -19
  43. package/dist/api/client.gen.d.cts.map +0 -1
  44. package/dist/api/client.gen.d.mts +0 -19
  45. package/dist/api/client.gen.d.mts.map +0 -1
  46. package/dist/api/client.gen.mjs.map +0 -1
  47. package/dist/api/core/auth.gen.d.cts +0 -24
  48. package/dist/api/core/auth.gen.d.cts.map +0 -1
  49. package/dist/api/core/auth.gen.d.mts +0 -24
  50. package/dist/api/core/auth.gen.d.mts.map +0 -1
  51. package/dist/api/core/auth.gen.mjs.map +0 -1
  52. package/dist/api/core/bodySerializer.gen.d.cts +0 -32
  53. package/dist/api/core/bodySerializer.gen.d.cts.map +0 -1
  54. package/dist/api/core/bodySerializer.gen.d.mts +0 -32
  55. package/dist/api/core/bodySerializer.gen.d.mts.map +0 -1
  56. package/dist/api/core/bodySerializer.gen.mjs.map +0 -1
  57. package/dist/api/core/params.gen.d.cts +0 -49
  58. package/dist/api/core/params.gen.d.cts.map +0 -1
  59. package/dist/api/core/params.gen.d.mts +0 -49
  60. package/dist/api/core/params.gen.d.mts.map +0 -1
  61. package/dist/api/core/params.gen.mjs.map +0 -1
  62. package/dist/api/core/pathSerializer.gen.d.cts +0 -56
  63. package/dist/api/core/pathSerializer.gen.d.cts.map +0 -1
  64. package/dist/api/core/pathSerializer.gen.d.mts +0 -56
  65. package/dist/api/core/pathSerializer.gen.d.mts.map +0 -1
  66. package/dist/api/core/pathSerializer.gen.mjs.map +0 -1
  67. package/dist/api/core/queryKeySerializer.gen.d.cts +0 -23
  68. package/dist/api/core/queryKeySerializer.gen.d.cts.map +0 -1
  69. package/dist/api/core/queryKeySerializer.gen.d.mts +0 -23
  70. package/dist/api/core/queryKeySerializer.gen.d.mts.map +0 -1
  71. package/dist/api/core/queryKeySerializer.gen.mjs.map +0 -1
  72. package/dist/api/core/serverSentEvents.gen.d.cts +0 -91
  73. package/dist/api/core/serverSentEvents.gen.d.cts.map +0 -1
  74. package/dist/api/core/serverSentEvents.gen.d.mts +0 -91
  75. package/dist/api/core/serverSentEvents.gen.d.mts.map +0 -1
  76. package/dist/api/core/serverSentEvents.gen.mjs.map +0 -1
  77. package/dist/api/core/types.gen.d.cts +0 -80
  78. package/dist/api/core/types.gen.d.cts.map +0 -1
  79. package/dist/api/core/types.gen.d.mts +0 -80
  80. package/dist/api/core/types.gen.d.mts.map +0 -1
  81. package/dist/api/core/utils.gen.d.cts +0 -34
  82. package/dist/api/core/utils.gen.d.cts.map +0 -1
  83. package/dist/api/core/utils.gen.d.mts +0 -34
  84. package/dist/api/core/utils.gen.d.mts.map +0 -1
  85. package/dist/api/core/utils.gen.mjs.map +0 -1
  86. package/dist/api/sdk.gen.d.cts +0 -226
  87. package/dist/api/sdk.gen.d.cts.map +0 -1
  88. package/dist/api/sdk.gen.d.mts +0 -226
  89. package/dist/api/sdk.gen.d.mts.map +0 -1
  90. package/dist/api/sdk.gen.mjs.map +0 -1
  91. package/dist/api/types.gen.d.cts +0 -2369
  92. package/dist/api/types.gen.d.cts.map +0 -1
  93. package/dist/api/types.gen.d.mts +0 -2369
  94. package/dist/api/types.gen.d.mts.map +0 -1
  95. package/dist/helpers/get-schema.d.cts +0 -14
  96. package/dist/helpers/get-schema.d.cts.map +0 -1
  97. package/dist/helpers/get-schema.d.mts +0 -14
  98. package/dist/helpers/get-schema.d.mts.map +0 -1
  99. package/dist/helpers/get-schema.mjs.map +0 -1
  100. package/dist/helpers/index.d.cts +0 -4
  101. package/dist/helpers/index.d.mts +0 -4
  102. package/dist/helpers/prisma-postgres.d.cts +0 -15
  103. package/dist/helpers/prisma-postgres.d.cts.map +0 -1
  104. package/dist/helpers/prisma-postgres.d.mts +0 -15
  105. package/dist/helpers/prisma-postgres.d.mts.map +0 -1
  106. package/dist/helpers/prisma-postgres.mjs.map +0 -1
  107. package/dist/helpers/schema-creator.d.cts +0 -21
  108. package/dist/helpers/schema-creator.d.cts.map +0 -1
  109. package/dist/helpers/schema-creator.d.mts +0 -21
  110. package/dist/helpers/schema-creator.d.mts.map +0 -1
  111. package/dist/helpers/schema-creator.mjs.map +0 -1
  112. package/dist/index.d.cts +0 -21
  113. package/dist/index.d.cts.map +0 -1
  114. package/dist/index.d.mts +0 -21
  115. package/dist/index.d.mts.map +0 -1
  116. package/dist/index.mjs.map +0 -1
  117. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.1/node_modules/@stryke/string-format/dist/constant-case.mjs.map +0 -1
  118. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.1/node_modules/@stryke/string-format/dist/get-words.mjs.map +0 -1
  119. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.1/node_modules/@stryke/string-format/dist/kebab-case.mjs.map +0 -1
  120. package/dist/node_modules/.pnpm/@stryke_string-format@0.17.1/node_modules/@stryke/string-format/dist/snake-case.mjs.map +0 -1
  121. package/dist/types/index.d.cts +0 -3
  122. package/dist/types/index.d.mts +0 -3
  123. package/dist/types/plugin.d.cts +0 -93
  124. package/dist/types/plugin.d.cts.map +0 -1
  125. package/dist/types/plugin.d.mts +0 -93
  126. package/dist/types/plugin.d.mts.map +0 -1
  127. package/dist/types/prisma.d.cts +0 -85
  128. package/dist/types/prisma.d.cts.map +0 -1
  129. package/dist/types/prisma.d.mts +0 -85
  130. package/dist/types/prisma.d.mts.map +0 -1
@@ -1,56 +0,0 @@
1
- //#region src/api/core/pathSerializer.gen.d.ts
2
- interface SerializeOptions<T> extends SerializePrimitiveOptions, SerializerOptions<T> {}
3
- interface SerializePrimitiveOptions {
4
- allowReserved?: boolean;
5
- name: string;
6
- }
7
- interface SerializerOptions<T> {
8
- /**
9
- * @default true
10
- */
11
- explode: boolean;
12
- style: T;
13
- }
14
- type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
15
- type ArraySeparatorStyle = ArrayStyle | MatrixStyle;
16
- type MatrixStyle = 'label' | 'matrix' | 'simple';
17
- type ObjectStyle = 'form' | 'deepObject';
18
- type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
19
- interface SerializePrimitiveParam extends SerializePrimitiveOptions {
20
- value: string;
21
- }
22
- declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "&" | "." | ";" | ",";
23
- declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "," | "|" | "%20";
24
- declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "&" | "." | ";" | ",";
25
- declare const serializeArrayParam: ({
26
- allowReserved,
27
- explode,
28
- name,
29
- style,
30
- value
31
- }: SerializeOptions<ArraySeparatorStyle> & {
32
- value: unknown[];
33
- }) => string;
34
- declare const serializePrimitiveParam: ({
35
- allowReserved,
36
- name,
37
- value
38
- }: SerializePrimitiveParam) => string;
39
- declare const serializeObjectParam: ({
40
- allowReserved,
41
- explode,
42
- name,
43
- style,
44
- value,
45
- valueOnly
46
- }: SerializeOptions<ObjectSeparatorStyle> & {
47
- value: Record<string, unknown> | Date;
48
- valueOnly?: boolean;
49
- }) => string;
50
- declare type __ΩSerializerOptions = any[];
51
- declare type __ΩArrayStyle = any[];
52
- declare type __ΩArraySeparatorStyle = any[];
53
- declare type __ΩObjectStyle = any[];
54
- //#endregion
55
- export { ArraySeparatorStyle, ArrayStyle, ObjectStyle, SerializerOptions, __ΩArraySeparatorStyle, __ΩArrayStyle, __ΩObjectStyle, __ΩSerializerOptions, separatorArrayExplode, separatorArrayNoExplode, separatorObjectExplode, serializeArrayParam, serializeObjectParam, serializePrimitiveParam };
56
- //# sourceMappingURL=pathSerializer.gen.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pathSerializer.gen.d.cts","names":[],"sources":["../../../src/api/core/pathSerializer.gen.ts"],"sourcesContent":[],"mappings":";UAEU,4BACA,2BACN,kBAAkB;UAEZ,yBAAA,CAFY;EADZ,aAAA,CAAA,EAAA,OAAA;EACN,IAAA,EAAA,MAAA;;AAEM,UAKO,iBALkB,CAAA,CAAA,CAAA,CAAA;EAKlB;AAQjB;AACA;EACK,OAAA,EAAA,OAAW;EACJ,KAAA,EANH,CAMG;AAAoC;AAGtC,KANE,UAAA,GAMF,MAAwB,GAAA,gBAAQ,GAAA,eAAA;AAI7B,KATD,mBAAA,GAAsB,UASW,GATE,WASF;AAa7C,KArBK,WAAA,GAqBQ,OAAA,GAAA,QAWZ,GAAA,QAX8C;AAalC,KAjCD,WAAA,GAiCC,MAWZ,GAAA,YAX6C;AAa9C,KA7CK,oBAAA,GAAuB,WAuF3B,GAvFyC,WAuFzC;UArFS,uBAAA,SAAgC,yBA2CN,CAAA;EAAA,KAAA,EAAA,MAAA;;AAAA,cAvCvB,qBAuCuB,EAAA,CAAA,KAAA,EAvCS,mBAuCT,EAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA;AAAA,cA1BvB,uBA0BuB,EAAA,CAAA,KAAA,EA1BW,mBA0BX,EAAA,GAAA,GAAA,GAAA,GAAA,GAAA,KAAA;AAMhB,cAnBP,sBAmBO,EAAA,CAAA,KAAA,EAnB0B,oBAmB1B,EAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA;AAAjB,cANU,mBAMV,EAAA,CAAA;EAAA,aAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA;AAsCH,CAtCG,EAAA,gBAAA,CAAiB,mBAAjB,CAAA,GAAA;EAAgB,KAAA,EAAA,OAAA,EAAA;AAsCnB,CAAA,EAAA,GAAa,MAAA;AAA2B,cAA3B,uBAA2B,EAAA,CAAA;EAAA,aAAA;EAAA,IAAA;EAAA;AAAA,CAAA,EAIrC,uBAJqC,EAAA,GAAA,MAAA;AAAA,cAkB3B,oBAlB2B,EAAA,CAAA;EAAA,aAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA,KAAA;EAAA;CAAA,EAyBrC,gBAzBqC,CAyBpB,oBAzBoB,CAAA,GAAA;EAAA,KAAA,EA0B/B,MA1B+B,CAAA,MAAA,EAAA,OAAA,CAAA,GA0BL,IA1BK;EAIrC,SAAA,CAAA,EAAA,OAAA;CAAuB,EAAA,GAAA,MAAA;AAcW,oCAAA,GAAA,EAAA;AAAA,6BAAA,GAAA,EAAA;AAAA,sCAAA,GAAA,EAAA;AAAA,8BAAA,GAAA,EAAA"}
@@ -1,56 +0,0 @@
1
- //#region src/api/core/pathSerializer.gen.d.ts
2
- interface SerializeOptions<T> extends SerializePrimitiveOptions, SerializerOptions<T> {}
3
- interface SerializePrimitiveOptions {
4
- allowReserved?: boolean;
5
- name: string;
6
- }
7
- interface SerializerOptions<T> {
8
- /**
9
- * @default true
10
- */
11
- explode: boolean;
12
- style: T;
13
- }
14
- type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
15
- type ArraySeparatorStyle = ArrayStyle | MatrixStyle;
16
- type MatrixStyle = 'label' | 'matrix' | 'simple';
17
- type ObjectStyle = 'form' | 'deepObject';
18
- type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
19
- interface SerializePrimitiveParam extends SerializePrimitiveOptions {
20
- value: string;
21
- }
22
- declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "&" | "." | ";" | ",";
23
- declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "," | "|" | "%20";
24
- declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "&" | "." | ";" | ",";
25
- declare const serializeArrayParam: ({
26
- allowReserved,
27
- explode,
28
- name,
29
- style,
30
- value
31
- }: SerializeOptions<ArraySeparatorStyle> & {
32
- value: unknown[];
33
- }) => string;
34
- declare const serializePrimitiveParam: ({
35
- allowReserved,
36
- name,
37
- value
38
- }: SerializePrimitiveParam) => string;
39
- declare const serializeObjectParam: ({
40
- allowReserved,
41
- explode,
42
- name,
43
- style,
44
- value,
45
- valueOnly
46
- }: SerializeOptions<ObjectSeparatorStyle> & {
47
- value: Record<string, unknown> | Date;
48
- valueOnly?: boolean;
49
- }) => string;
50
- declare type __ΩSerializerOptions = any[];
51
- declare type __ΩArrayStyle = any[];
52
- declare type __ΩArraySeparatorStyle = any[];
53
- declare type __ΩObjectStyle = any[];
54
- //#endregion
55
- export { ArraySeparatorStyle, ArrayStyle, ObjectStyle, SerializerOptions, __ΩArraySeparatorStyle, __ΩArrayStyle, __ΩObjectStyle, __ΩSerializerOptions, separatorArrayExplode, separatorArrayNoExplode, separatorObjectExplode, serializeArrayParam, serializeObjectParam, serializePrimitiveParam };
56
- //# sourceMappingURL=pathSerializer.gen.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pathSerializer.gen.d.mts","names":[],"sources":["../../../src/api/core/pathSerializer.gen.ts"],"sourcesContent":[],"mappings":";UAEU,4BACA,2BACN,kBAAkB;UAEZ,yBAAA,CAFY;EADZ,aAAA,CAAA,EAAA,OAAA;EACN,IAAA,EAAA,MAAA;;AAEM,UAKO,iBALkB,CAAA,CAAA,CAAA,CAAA;EAKlB;AAQjB;AACA;EACK,OAAA,EAAA,OAAW;EACJ,KAAA,EANH,CAMG;AAAoC;AAGtC,KANE,UAAA,GAMF,MAAwB,GAAA,gBAAQ,GAAA,eAAA;AAI7B,KATD,mBAAA,GAAsB,UASW,GATE,WASF;AAa7C,KArBK,WAAA,GAqBQ,OAAA,GAAA,QAWZ,GAAA,QAX8C;AAalC,KAjCD,WAAA,GAiCC,MAWZ,GAAA,YAX6C;AAa9C,KA7CK,oBAAA,GAAuB,WAuF3B,GAvFyC,WAuFzC;UArFS,uBAAA,SAAgC,yBA2CN,CAAA;EAAA,KAAA,EAAA,MAAA;;AAAA,cAvCvB,qBAuCuB,EAAA,CAAA,KAAA,EAvCS,mBAuCT,EAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA;AAAA,cA1BvB,uBA0BuB,EAAA,CAAA,KAAA,EA1BW,mBA0BX,EAAA,GAAA,GAAA,GAAA,GAAA,GAAA,KAAA;AAMhB,cAnBP,sBAmBO,EAAA,CAAA,KAAA,EAnB0B,oBAmB1B,EAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA,GAAA;AAAjB,cANU,mBAMV,EAAA,CAAA;EAAA,aAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA;AAsCH,CAtCG,EAAA,gBAAA,CAAiB,mBAAjB,CAAA,GAAA;EAAgB,KAAA,EAAA,OAAA,EAAA;AAsCnB,CAAA,EAAA,GAAa,MAAA;AAA2B,cAA3B,uBAA2B,EAAA,CAAA;EAAA,aAAA;EAAA,IAAA;EAAA;AAAA,CAAA,EAIrC,uBAJqC,EAAA,GAAA,MAAA;AAAA,cAkB3B,oBAlB2B,EAAA,CAAA;EAAA,aAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA,KAAA;EAAA;CAAA,EAyBrC,gBAzBqC,CAyBpB,oBAzBoB,CAAA,GAAA;EAAA,KAAA,EA0B/B,MA1B+B,CAAA,MAAA,EAAA,OAAA,CAAA,GA0BL,IA1BK;EAIrC,SAAA,CAAA,EAAA,OAAA;CAAuB,EAAA,GAAA,MAAA;AAcW,oCAAA,GAAA,EAAA;AAAA,6BAAA,GAAA,EAAA;AAAA,sCAAA,GAAA,EAAA;AAAA,8BAAA,GAAA,EAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pathSerializer.gen.mjs","names":["joinedValues","values: string[]"],"sources":["../../../src/api/core/pathSerializer.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\ninterface SerializeOptions<T>\n extends SerializePrimitiveOptions,\n SerializerOptions<T> {}\n\ninterface SerializePrimitiveOptions {\n allowReserved?: boolean;\n name: string;\n}\n\nexport interface SerializerOptions<T> {\n /**\n * @default true\n */\n explode: boolean;\n style: T;\n}\n\nexport type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';\nexport type ArraySeparatorStyle = ArrayStyle | MatrixStyle;\ntype MatrixStyle = 'label' | 'matrix' | 'simple';\nexport type ObjectStyle = 'form' | 'deepObject';\ntype ObjectSeparatorStyle = ObjectStyle | MatrixStyle;\n\ninterface SerializePrimitiveParam extends SerializePrimitiveOptions {\n value: string;\n}\n\nexport const separatorArrayExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case 'label':\n return '.';\n case 'matrix':\n return ';';\n case 'simple':\n return ',';\n default:\n return '&';\n }\n};\n\nexport const separatorArrayNoExplode = (style: ArraySeparatorStyle) => {\n switch (style) {\n case 'form':\n return ',';\n case 'pipeDelimited':\n return '|';\n case 'spaceDelimited':\n return '%20';\n default:\n return ',';\n }\n};\n\nexport const separatorObjectExplode = (style: ObjectSeparatorStyle) => {\n switch (style) {\n case 'label':\n return '.';\n case 'matrix':\n return ';';\n case 'simple':\n return ',';\n default:\n return '&';\n }\n};\n\nexport const serializeArrayParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n}: SerializeOptions<ArraySeparatorStyle> & {\n value: unknown[];\n}) => {\n if (!explode) {\n const joinedValues = (\n allowReserved ? value : value.map((v) => encodeURIComponent(v as string))\n ).join(separatorArrayNoExplode(style));\n switch (style) {\n case 'label':\n return `.${joinedValues}`;\n case 'matrix':\n return `;${name}=${joinedValues}`;\n case 'simple':\n return joinedValues;\n default:\n return `${name}=${joinedValues}`;\n }\n }\n\n const separator = separatorArrayExplode(style);\n const joinedValues = value\n .map((v) => {\n if (style === 'label' || style === 'simple') {\n return allowReserved ? v : encodeURIComponent(v as string);\n }\n\n return serializePrimitiveParam({\n allowReserved,\n name,\n value: v as string,\n });\n })\n .join(separator);\n return style === 'label' || style === 'matrix'\n ? separator + joinedValues\n : joinedValues;\n};\n\nexport const serializePrimitiveParam = ({\n allowReserved,\n name,\n value,\n}: SerializePrimitiveParam) => {\n if (value === undefined || value === null) {\n return '';\n }\n\n if (typeof value === 'object') {\n throw new Error(\n 'Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.',\n );\n }\n\n return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;\n};\n\nexport const serializeObjectParam = ({\n allowReserved,\n explode,\n name,\n style,\n value,\n valueOnly,\n}: SerializeOptions<ObjectSeparatorStyle> & {\n value: Record<string, unknown> | Date;\n valueOnly?: boolean;\n}) => {\n if (value instanceof Date) {\n return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;\n }\n\n if (style !== 'deepObject' && !explode) {\n let values: string[] = [];\n Object.entries(value).forEach(([key, v]) => {\n values = [\n ...values,\n key,\n allowReserved ? (v as string) : encodeURIComponent(v as string),\n ];\n });\n const joinedValues = values.join(',');\n switch (style) {\n case 'form':\n return `${name}=${joinedValues}`;\n case 'label':\n return `.${joinedValues}`;\n case 'matrix':\n return `;${name}=${joinedValues}`;\n default:\n return joinedValues;\n }\n }\n\n const separator = separatorObjectExplode(style);\n const joinedValues = Object.entries(value)\n .map(([key, v]) =>\n serializePrimitiveParam({\n allowReserved,\n name: style === 'deepObject' ? `${name}[${key}]` : key,\n value: v as string,\n }),\n )\n .join(separator);\n return style === 'label' || style === 'matrix'\n ? separator + joinedValues\n : joinedValues;\n};\n"],"mappings":";AA6BA,MAAa,yBAAyB,UAA+B;AACnE,SAAQ,OAAR;EACE,KAAK,QACH,QAAO;EACT,KAAK,SACH,QAAO;EACT,KAAK,SACH,QAAO;EACT,QACE,QAAO;;;AAIb,MAAa,2BAA2B,UAA+B;AACrE,SAAQ,OAAR;EACE,KAAK,OACH,QAAO;EACT,KAAK,gBACH,QAAO;EACT,KAAK,iBACH,QAAO;EACT,QACE,QAAO;;;AAIb,MAAa,0BAA0B,UAAgC;AACrE,SAAQ,OAAR;EACE,KAAK,QACH,QAAO;EACT,KAAK,SACH,QAAO;EACT,KAAK,SACH,QAAO;EACT,QACE,QAAO;;;AAIb,MAAa,uBAAuB,EAClC,eACA,SACA,MACA,OACA,YAGI;AACJ,KAAI,CAAC,SAAS;EACZ,MAAMA,kBACJ,gBAAgB,QAAQ,MAAM,KAAK,MAAM,mBAAmB,EAAY,CAAC,EACzE,KAAK,wBAAwB,MAAM,CAAC;AACtC,UAAQ,OAAR;GACE,KAAK,QACH,QAAO,IAAIA;GACb,KAAK,SACH,QAAO,IAAI,KAAK,GAAGA;GACrB,KAAK,SACH,QAAOA;GACT,QACE,QAAO,GAAG,KAAK,GAAGA;;;CAIxB,MAAM,YAAY,sBAAsB,MAAM;CAC9C,MAAM,eAAe,MAClB,KAAK,MAAM;AACV,MAAI,UAAU,WAAW,UAAU,SACjC,QAAO,gBAAgB,IAAI,mBAAmB,EAAY;AAG5D,SAAO,wBAAwB;GAC7B;GACA;GACA,OAAO;GACR,CAAC;GACF,CACD,KAAK,UAAU;AAClB,QAAO,UAAU,WAAW,UAAU,WAClC,YAAY,eACZ;;AAGN,MAAa,2BAA2B,EACtC,eACA,MACA,YAC6B;AAC7B,KAAI,UAAU,UAAa,UAAU,KACnC,QAAO;AAGT,KAAI,OAAO,UAAU,SACnB,OAAM,IAAI,MACR,uGACD;AAGH,QAAO,GAAG,KAAK,GAAG,gBAAgB,QAAQ,mBAAmB,MAAM;;AAGrE,MAAa,wBAAwB,EACnC,eACA,SACA,MACA,OACA,OACA,gBAII;AACJ,KAAI,iBAAiB,KACnB,QAAO,YAAY,MAAM,aAAa,GAAG,GAAG,KAAK,GAAG,MAAM,aAAa;AAGzE,KAAI,UAAU,gBAAgB,CAAC,SAAS;EACtC,IAAIC,SAAmB,EAAE;AACzB,SAAO,QAAQ,MAAM,CAAC,SAAS,CAAC,KAAK,OAAO;AAC1C,YAAS;IACP,GAAG;IACH;IACA,gBAAiB,IAAe,mBAAmB,EAAY;IAChE;IACD;EACF,MAAMD,iBAAe,OAAO,KAAK,IAAI;AACrC,UAAQ,OAAR;GACE,KAAK,OACH,QAAO,GAAG,KAAK,GAAGA;GACpB,KAAK,QACH,QAAO,IAAIA;GACb,KAAK,SACH,QAAO,IAAI,KAAK,GAAGA;GACrB,QACE,QAAOA;;;CAIb,MAAM,YAAY,uBAAuB,MAAM;CAC/C,MAAM,eAAe,OAAO,QAAQ,MAAM,CACvC,KAAK,CAAC,KAAK,OACV,wBAAwB;EACtB;EACA,MAAM,UAAU,eAAe,GAAG,KAAK,GAAG,IAAI,KAAK;EACnD,OAAO;EACR,CAAC,CACH,CACA,KAAK,UAAU;AAClB,QAAO,UAAU,WAAW,UAAU,WAClC,YAAY,eACZ"}
@@ -1,23 +0,0 @@
1
- //#region src/api/core/queryKeySerializer.gen.d.ts
2
- /**
3
- * JSON-friendly union that mirrors what Pinia Colada can hash.
4
- */
5
- type JsonValue = null | string | number | boolean | JsonValue[] | {
6
- [key: string]: JsonValue;
7
- };
8
- /**
9
- * Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
10
- */
11
- declare const queryKeyJsonReplacer: (_key: string, value: unknown) => {} | null | undefined;
12
- /**
13
- * Safely stringifies a value and parses it back into a JsonValue.
14
- */
15
- declare const stringifyToJsonValue: (input: unknown) => JsonValue | undefined;
16
- /**
17
- * Normalizes any accepted value into a JSON-friendly shape for query keys.
18
- */
19
- declare const serializeQueryKeyValue: (value: unknown) => JsonValue | undefined;
20
- declare type __ΩJsonValue = any[];
21
- //#endregion
22
- export { JsonValue, __ΩJsonValue, queryKeyJsonReplacer, serializeQueryKeyValue, stringifyToJsonValue };
23
- //# sourceMappingURL=queryKeySerializer.gen.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryKeySerializer.gen.d.cts","names":[],"sources":["../../../src/api/core/queryKeySerializer.gen.ts"],"sourcesContent":[],"mappings":";;AAKA;AAWA;AAoBa,KA/BD,SAAA,GA+BC,IAUZ,GAAA,MAAA,GAVqD,MAAA,GAAA,OAAS,GA1B3D,SA0B2D,EAAA,GAAA;EAoDlD,CAAA,GAAA,EAAA,MAAA,CAAA,EA7EQ,SA6ER;;;;;cAxEA;;;;cAoBA,0CAAyC;;;;cAoDzC,4CAEV"}
@@ -1,23 +0,0 @@
1
- //#region src/api/core/queryKeySerializer.gen.d.ts
2
- /**
3
- * JSON-friendly union that mirrors what Pinia Colada can hash.
4
- */
5
- type JsonValue = null | string | number | boolean | JsonValue[] | {
6
- [key: string]: JsonValue;
7
- };
8
- /**
9
- * Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
10
- */
11
- declare const queryKeyJsonReplacer: (_key: string, value: unknown) => {} | null | undefined;
12
- /**
13
- * Safely stringifies a value and parses it back into a JsonValue.
14
- */
15
- declare const stringifyToJsonValue: (input: unknown) => JsonValue | undefined;
16
- /**
17
- * Normalizes any accepted value into a JSON-friendly shape for query keys.
18
- */
19
- declare const serializeQueryKeyValue: (value: unknown) => JsonValue | undefined;
20
- declare type __ΩJsonValue = any[];
21
- //#endregion
22
- export { JsonValue, __ΩJsonValue, queryKeyJsonReplacer, serializeQueryKeyValue, stringifyToJsonValue };
23
- //# sourceMappingURL=queryKeySerializer.gen.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryKeySerializer.gen.d.mts","names":[],"sources":["../../../src/api/core/queryKeySerializer.gen.ts"],"sourcesContent":[],"mappings":";;AAKA;AAWA;AAoBa,KA/BD,SAAA,GA+BC,IAUZ,GAAA,MAAA,GAVqD,MAAA,GAAA,OAAS,GA1B3D,SA0B2D,EAAA,GAAA;EAoDlD,CAAA,GAAA,EAAA,MAAA,CAAA,EA7EQ,SA6ER;;;;;cAxEA;;;;cAoBA,0CAAyC;;;;cAoDzC,4CAEV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryKeySerializer.gen.mjs","names":["result: Record<string, JsonValue>"],"sources":["../../../src/api/core/queryKeySerializer.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * JSON-friendly union that mirrors what Pinia Colada can hash.\n */\nexport type JsonValue =\n | null\n | string\n | number\n | boolean\n | JsonValue[]\n | { [key: string]: JsonValue };\n\n/**\n * Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.\n */\nexport const queryKeyJsonReplacer = (_key: string, value: unknown) => {\n if (\n value === undefined ||\n typeof value === 'function' ||\n typeof value === 'symbol'\n ) {\n return undefined;\n }\n if (typeof value === 'bigint') {\n return value.toString();\n }\n if (value instanceof Date) {\n return value.toISOString();\n }\n return value;\n};\n\n/**\n * Safely stringifies a value and parses it back into a JsonValue.\n */\nexport const stringifyToJsonValue = (input: unknown): JsonValue | undefined => {\n try {\n const json = JSON.stringify(input, queryKeyJsonReplacer);\n if (json === undefined) {\n return undefined;\n }\n return JSON.parse(json) as JsonValue;\n } catch {\n return undefined;\n }\n};\n\n/**\n * Detects plain objects (including objects with a null prototype).\n */\nconst isPlainObject = (value: unknown): value is Record<string, unknown> => {\n if (value === null || typeof value !== 'object') {\n return false;\n }\n const prototype = Object.getPrototypeOf(value as object);\n return prototype === Object.prototype || prototype === null;\n};\n\n/**\n * Turns URLSearchParams into a sorted JSON object for deterministic keys.\n */\nconst serializeSearchParams = (params: URLSearchParams): JsonValue => {\n const entries = Array.from(params.entries()).sort(([a], [b]) =>\n a.localeCompare(b),\n );\n const result: Record<string, JsonValue> = {};\n\n for (const [key, value] of entries) {\n const existing = result[key];\n if (existing === undefined) {\n result[key] = value;\n continue;\n }\n\n if (Array.isArray(existing)) {\n (existing as string[]).push(value);\n } else {\n result[key] = [existing, value];\n }\n }\n\n return result;\n};\n\n/**\n * Normalizes any accepted value into a JSON-friendly shape for query keys.\n */\nexport const serializeQueryKeyValue = (\n value: unknown,\n): JsonValue | undefined => {\n if (value === null) {\n return null;\n }\n\n if (\n typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean'\n ) {\n return value;\n }\n\n if (\n value === undefined ||\n typeof value === 'function' ||\n typeof value === 'symbol'\n ) {\n return undefined;\n }\n\n if (typeof value === 'bigint') {\n return value.toString();\n }\n\n if (value instanceof Date) {\n return value.toISOString();\n }\n\n if (Array.isArray(value)) {\n return stringifyToJsonValue(value);\n }\n\n if (\n typeof URLSearchParams !== 'undefined' &&\n value instanceof URLSearchParams\n ) {\n return serializeSearchParams(value);\n }\n\n if (isPlainObject(value)) {\n return stringifyToJsonValue(value);\n }\n\n return undefined;\n};\n"],"mappings":";;;;AAgBA,MAAa,wBAAwB,MAAc,UAAmB;AACpE,KACE,UAAU,UACV,OAAO,UAAU,cACjB,OAAO,UAAU,SAEjB;AAEF,KAAI,OAAO,UAAU,SACnB,QAAO,MAAM,UAAU;AAEzB,KAAI,iBAAiB,KACnB,QAAO,MAAM,aAAa;AAE5B,QAAO;;;;;AAMT,MAAa,wBAAwB,UAA0C;AAC7E,KAAI;EACF,MAAM,OAAO,KAAK,UAAU,OAAO,qBAAqB;AACxD,MAAI,SAAS,OACX;AAEF,SAAO,KAAK,MAAM,KAAK;SACjB;AACN;;;;;;AAOJ,MAAM,iBAAiB,UAAqD;AAC1E,KAAI,UAAU,QAAQ,OAAO,UAAU,SACrC,QAAO;CAET,MAAM,YAAY,OAAO,eAAe,MAAgB;AACxD,QAAO,cAAc,OAAO,aAAa,cAAc;;;;;AAMzD,MAAM,yBAAyB,WAAuC;CACpE,MAAM,UAAU,MAAM,KAAK,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OACvD,EAAE,cAAc,EAAE,CACnB;CACD,MAAMA,SAAoC,EAAE;AAE5C,MAAK,MAAM,CAAC,KAAK,UAAU,SAAS;EAClC,MAAM,WAAW,OAAO;AACxB,MAAI,aAAa,QAAW;AAC1B,UAAO,OAAO;AACd;;AAGF,MAAI,MAAM,QAAQ,SAAS,CACzB,CAAC,SAAsB,KAAK,MAAM;MAElC,QAAO,OAAO,CAAC,UAAU,MAAM;;AAInC,QAAO;;;;;AAMT,MAAa,0BACX,UAC0B;AAC1B,KAAI,UAAU,KACZ,QAAO;AAGT,KACE,OAAO,UAAU,YACjB,OAAO,UAAU,YACjB,OAAO,UAAU,UAEjB,QAAO;AAGT,KACE,UAAU,UACV,OAAO,UAAU,cACjB,OAAO,UAAU,SAEjB;AAGF,KAAI,OAAO,UAAU,SACnB,QAAO,MAAM,UAAU;AAGzB,KAAI,iBAAiB,KACnB,QAAO,MAAM,aAAa;AAG5B,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO,qBAAqB,MAAM;AAGpC,KACE,OAAO,oBAAoB,eAC3B,iBAAiB,gBAEjB,QAAO,sBAAsB,MAAM;AAGrC,KAAI,cAAc,MAAM,CACtB,QAAO,qBAAqB,MAAM"}
@@ -1,91 +0,0 @@
1
- import { Config } from "./types.gen.cjs";
2
-
3
- //#region src/api/core/serverSentEvents.gen.d.ts
4
- type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {
5
- /**
6
- * Fetch API implementation. You can use this option to provide a custom
7
- * fetch instance.
8
- *
9
- * @default globalThis.fetch
10
- */
11
- fetch?: typeof fetch;
12
- /**
13
- * Implementing clients can call request interceptors inside this hook.
14
- */
15
- onRequest?: (url: string, init: RequestInit) => Promise<Request>;
16
- /**
17
- * Callback invoked when a network or parsing error occurs during streaming.
18
- *
19
- * This option applies only if the endpoint returns a stream of events.
20
- *
21
- * @param error The error that occurred.
22
- */
23
- onSseError?: (error: unknown) => void;
24
- /**
25
- * Callback invoked when an event is streamed from the server.
26
- *
27
- * This option applies only if the endpoint returns a stream of events.
28
- *
29
- * @param event Event streamed from the server.
30
- * @returns Nothing (void).
31
- */
32
- onSseEvent?: (event: StreamEvent<TData>) => void;
33
- serializedBody?: RequestInit['body'];
34
- /**
35
- * Default retry delay in milliseconds.
36
- *
37
- * This option applies only if the endpoint returns a stream of events.
38
- *
39
- * @default 3000
40
- */
41
- sseDefaultRetryDelay?: number;
42
- /**
43
- * Maximum number of retry attempts before giving up.
44
- */
45
- sseMaxRetryAttempts?: number;
46
- /**
47
- * Maximum retry delay in milliseconds.
48
- *
49
- * Applies only when exponential backoff is used.
50
- *
51
- * This option applies only if the endpoint returns a stream of events.
52
- *
53
- * @default 30000
54
- */
55
- sseMaxRetryDelay?: number;
56
- /**
57
- * Optional sleep function for retry backoff.
58
- *
59
- * Defaults to using `setTimeout`.
60
- */
61
- sseSleepFn?: (ms: number) => Promise<void>;
62
- url: string;
63
- };
64
- interface StreamEvent<TData = unknown> {
65
- data: TData;
66
- event?: string;
67
- id?: string;
68
- retry?: number;
69
- }
70
- type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
71
- stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
72
- };
73
- declare const createSseClient: <TData = unknown>({
74
- onRequest,
75
- onSseError,
76
- onSseEvent,
77
- responseTransformer,
78
- responseValidator,
79
- sseDefaultRetryDelay,
80
- sseMaxRetryAttempts,
81
- sseMaxRetryDelay,
82
- sseSleepFn,
83
- url,
84
- ...options
85
- }: ServerSentEventsOptions) => ServerSentEventsResult<TData>;
86
- declare type __ΩServerSentEventsOptions = any[];
87
- declare type __ΩStreamEvent = any[];
88
- declare type __ΩServerSentEventsResult = any[];
89
- //#endregion
90
- export { ServerSentEventsOptions, ServerSentEventsResult, StreamEvent, __ΩServerSentEventsOptions, __ΩServerSentEventsResult, __ΩStreamEvent, createSseClient };
91
- //# sourceMappingURL=serverSentEvents.gen.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serverSentEvents.gen.d.cts","names":[],"sources":["../../../src/api/core/serverSentEvents.gen.ts"],"sourcesContent":[],"mappings":";;;KAIY,2CAA2C,KACrD,yBAGA,KAAK;;AAJP;;;;;EAWmB,KAAA,CAAA,EAAA,OAAA,KAAA;EAIiB;;;EAiBC,SAAA,CAAA,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,IAAA,EAjBD,WAiBC,EAAA,GAjBe,OAiBf,CAjBuB,OAiBvB,CAAA;EAAZ;;;;AAiCzB;AAOA;;EAMkB,UAAA,CAAA,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAA0B;;;;;;;AAM5C;EAAiD,UAAA,CAAA,EAAA,CAAA,KAAA,EApDxB,WAoDwB,CApDZ,KAoDY,CAAA,EAAA,GAAA,IAAA;EAAA,cAAA,CAAA,EAnD5B,WAmD4B,CAAA,MAAA,CAAA;EAAA;;;;;;;EAAA,oBAAA,CAAA,EAAA,MAAA;EAY9C;;;EAAgD,mBAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;+BAnClB;;;UAIhB;QACT;;;;;KAMI;UAKF,eACN,cAAc,0BAA0B,YAAY,SAAS,OAC7D,SACA;;cAIS;;;;;;;;;;;;GAYV,4BAA0B,uBAAuB"}
@@ -1,91 +0,0 @@
1
- import { Config } from "./types.gen.mjs";
2
-
3
- //#region src/api/core/serverSentEvents.gen.d.ts
4
- type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {
5
- /**
6
- * Fetch API implementation. You can use this option to provide a custom
7
- * fetch instance.
8
- *
9
- * @default globalThis.fetch
10
- */
11
- fetch?: typeof fetch;
12
- /**
13
- * Implementing clients can call request interceptors inside this hook.
14
- */
15
- onRequest?: (url: string, init: RequestInit) => Promise<Request>;
16
- /**
17
- * Callback invoked when a network or parsing error occurs during streaming.
18
- *
19
- * This option applies only if the endpoint returns a stream of events.
20
- *
21
- * @param error The error that occurred.
22
- */
23
- onSseError?: (error: unknown) => void;
24
- /**
25
- * Callback invoked when an event is streamed from the server.
26
- *
27
- * This option applies only if the endpoint returns a stream of events.
28
- *
29
- * @param event Event streamed from the server.
30
- * @returns Nothing (void).
31
- */
32
- onSseEvent?: (event: StreamEvent<TData>) => void;
33
- serializedBody?: RequestInit['body'];
34
- /**
35
- * Default retry delay in milliseconds.
36
- *
37
- * This option applies only if the endpoint returns a stream of events.
38
- *
39
- * @default 3000
40
- */
41
- sseDefaultRetryDelay?: number;
42
- /**
43
- * Maximum number of retry attempts before giving up.
44
- */
45
- sseMaxRetryAttempts?: number;
46
- /**
47
- * Maximum retry delay in milliseconds.
48
- *
49
- * Applies only when exponential backoff is used.
50
- *
51
- * This option applies only if the endpoint returns a stream of events.
52
- *
53
- * @default 30000
54
- */
55
- sseMaxRetryDelay?: number;
56
- /**
57
- * Optional sleep function for retry backoff.
58
- *
59
- * Defaults to using `setTimeout`.
60
- */
61
- sseSleepFn?: (ms: number) => Promise<void>;
62
- url: string;
63
- };
64
- interface StreamEvent<TData = unknown> {
65
- data: TData;
66
- event?: string;
67
- id?: string;
68
- retry?: number;
69
- }
70
- type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
71
- stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
72
- };
73
- declare const createSseClient: <TData = unknown>({
74
- onRequest,
75
- onSseError,
76
- onSseEvent,
77
- responseTransformer,
78
- responseValidator,
79
- sseDefaultRetryDelay,
80
- sseMaxRetryAttempts,
81
- sseMaxRetryDelay,
82
- sseSleepFn,
83
- url,
84
- ...options
85
- }: ServerSentEventsOptions) => ServerSentEventsResult<TData>;
86
- declare type __ΩServerSentEventsOptions = any[];
87
- declare type __ΩStreamEvent = any[];
88
- declare type __ΩServerSentEventsResult = any[];
89
- //#endregion
90
- export { ServerSentEventsOptions, ServerSentEventsResult, StreamEvent, __ΩServerSentEventsOptions, __ΩServerSentEventsResult, __ΩStreamEvent, createSseClient };
91
- //# sourceMappingURL=serverSentEvents.gen.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serverSentEvents.gen.d.mts","names":[],"sources":["../../../src/api/core/serverSentEvents.gen.ts"],"sourcesContent":[],"mappings":";;;KAIY,2CAA2C,KACrD,yBAGA,KAAK;;AAJP;;;;;EAWmB,KAAA,CAAA,EAAA,OAAA,KAAA;EAIiB;;;EAiBC,SAAA,CAAA,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,IAAA,EAjBD,WAiBC,EAAA,GAjBe,OAiBf,CAjBuB,OAiBvB,CAAA;EAAZ;;;;AAiCzB;AAOA;;EAMkB,UAAA,CAAA,EAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,IAAA;EAA0B;;;;;;;AAM5C;EAAiD,UAAA,CAAA,EAAA,CAAA,KAAA,EApDxB,WAoDwB,CApDZ,KAoDY,CAAA,EAAA,GAAA,IAAA;EAAA,cAAA,CAAA,EAnD5B,WAmD4B,CAAA,MAAA,CAAA;EAAA;;;;;;;EAAA,oBAAA,CAAA,EAAA,MAAA;EAY9C;;;EAAgD,mBAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;+BAnClB;;;UAIhB;QACT;;;;;KAMI;UAKF,eACN,cAAc,0BAA0B,YAAY,SAAS,OAC7D,SACA;;cAIS;;;;;;;;;;;;GAYV,4BAA0B,uBAAuB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"serverSentEvents.gen.mjs","names":["lastEventId: string | undefined","retryDelay: number","requestInit: RequestInit","dataLines: Array<string>","eventName: string | undefined","data: unknown"],"sources":["../../../src/api/core/serverSentEvents.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Config } from './types.gen';\n\nexport type ServerSentEventsOptions<TData = unknown> = Omit<\n RequestInit,\n 'method'\n> &\n Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {\n /**\n * Fetch API implementation. You can use this option to provide a custom\n * fetch instance.\n *\n * @default globalThis.fetch\n */\n fetch?: typeof fetch;\n /**\n * Implementing clients can call request interceptors inside this hook.\n */\n onRequest?: (url: string, init: RequestInit) => Promise<Request>;\n /**\n * Callback invoked when a network or parsing error occurs during streaming.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param error The error that occurred.\n */\n onSseError?: (error: unknown) => void;\n /**\n * Callback invoked when an event is streamed from the server.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @param event Event streamed from the server.\n * @returns Nothing (void).\n */\n onSseEvent?: (event: StreamEvent<TData>) => void;\n serializedBody?: RequestInit['body'];\n /**\n * Default retry delay in milliseconds.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 3000\n */\n sseDefaultRetryDelay?: number;\n /**\n * Maximum number of retry attempts before giving up.\n */\n sseMaxRetryAttempts?: number;\n /**\n * Maximum retry delay in milliseconds.\n *\n * Applies only when exponential backoff is used.\n *\n * This option applies only if the endpoint returns a stream of events.\n *\n * @default 30000\n */\n sseMaxRetryDelay?: number;\n /**\n * Optional sleep function for retry backoff.\n *\n * Defaults to using `setTimeout`.\n */\n sseSleepFn?: (ms: number) => Promise<void>;\n url: string;\n };\n\nexport interface StreamEvent<TData = unknown> {\n data: TData;\n event?: string;\n id?: string;\n retry?: number;\n}\n\nexport type ServerSentEventsResult<\n TData = unknown,\n TReturn = void,\n TNext = unknown,\n> = {\n stream: AsyncGenerator<\n TData extends Record<string, unknown> ? TData[keyof TData] : TData,\n TReturn,\n TNext\n >;\n};\n\nexport const createSseClient = <TData = unknown>({\n onRequest,\n onSseError,\n onSseEvent,\n responseTransformer,\n responseValidator,\n sseDefaultRetryDelay,\n sseMaxRetryAttempts,\n sseMaxRetryDelay,\n sseSleepFn,\n url,\n ...options\n}: ServerSentEventsOptions): ServerSentEventsResult<TData> => {\n let lastEventId: string | undefined;\n\n const sleep =\n sseSleepFn ??\n ((ms: number) => new Promise((resolve) => setTimeout(resolve, ms)));\n\n const createStream = async function* () {\n let retryDelay: number = sseDefaultRetryDelay ?? 3000;\n let attempt = 0;\n const signal = options.signal ?? new AbortController().signal;\n\n while (true) {\n if (signal.aborted) break;\n\n attempt++;\n\n const headers =\n options.headers instanceof Headers\n ? options.headers\n : new Headers(options.headers as Record<string, string> | undefined);\n\n if (lastEventId !== undefined) {\n headers.set('Last-Event-ID', lastEventId);\n }\n\n try {\n const requestInit: RequestInit = {\n redirect: 'follow',\n ...options,\n body: options.serializedBody,\n headers,\n signal,\n };\n let request = new Request(url, requestInit);\n if (onRequest) {\n request = await onRequest(url, requestInit);\n }\n // fetch must be assigned here, otherwise it would throw the error:\n // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation\n const _fetch = options.fetch ?? globalThis.fetch;\n const response = await _fetch(request);\n\n if (!response.ok)\n throw new Error(\n `SSE failed: ${response.status} ${response.statusText}`,\n );\n\n if (!response.body) throw new Error('No body in SSE response');\n\n const reader = response.body\n .pipeThrough(new TextDecoderStream())\n .getReader();\n\n let buffer = '';\n\n const abortHandler = () => {\n try {\n reader.cancel();\n } catch {\n // noop\n }\n };\n\n signal.addEventListener('abort', abortHandler);\n\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n buffer += value;\n // Normalize line endings: CRLF -> LF, then CR -> LF\n buffer = buffer.replace(/\\r\\n/g, '\\n').replace(/\\r/g, '\\n');\n\n const chunks = buffer.split('\\n\\n');\n buffer = chunks.pop() ?? '';\n\n for (const chunk of chunks) {\n const lines = chunk.split('\\n');\n const dataLines: Array<string> = [];\n let eventName: string | undefined;\n\n for (const line of lines) {\n if (line.startsWith('data:')) {\n dataLines.push(line.replace(/^data:\\s*/, ''));\n } else if (line.startsWith('event:')) {\n eventName = line.replace(/^event:\\s*/, '');\n } else if (line.startsWith('id:')) {\n lastEventId = line.replace(/^id:\\s*/, '');\n } else if (line.startsWith('retry:')) {\n const parsed = Number.parseInt(\n line.replace(/^retry:\\s*/, ''),\n 10,\n );\n if (!Number.isNaN(parsed)) {\n retryDelay = parsed;\n }\n }\n }\n\n let data: unknown;\n let parsedJson = false;\n\n if (dataLines.length) {\n const rawData = dataLines.join('\\n');\n try {\n data = JSON.parse(rawData);\n parsedJson = true;\n } catch {\n data = rawData;\n }\n }\n\n if (parsedJson) {\n if (responseValidator) {\n await responseValidator(data);\n }\n\n if (responseTransformer) {\n data = await responseTransformer(data);\n }\n }\n\n onSseEvent?.({\n data,\n event: eventName,\n id: lastEventId,\n retry: retryDelay,\n });\n\n if (dataLines.length) {\n yield data as any;\n }\n }\n }\n } finally {\n signal.removeEventListener('abort', abortHandler);\n reader.releaseLock();\n }\n\n break; // exit loop on normal completion\n } catch (error) {\n // connection failed or aborted; retry after delay\n onSseError?.(error);\n\n if (\n sseMaxRetryAttempts !== undefined &&\n attempt >= sseMaxRetryAttempts\n ) {\n break; // stop after firing error\n }\n\n // exponential backoff: double retry each attempt, cap at 30s\n const backoff = Math.min(\n retryDelay * 2 ** (attempt - 1),\n sseMaxRetryDelay ?? 30000,\n );\n await sleep(backoff);\n }\n }\n };\n\n const stream = createStream();\n\n return { stream };\n};\n"],"mappings":";AAwFA,MAAa,mBAAoC,EAC/C,WACA,YACA,YACA,qBACA,mBACA,sBACA,qBACA,kBACA,YACA,KACA,GAAG,cACyD;CAC5D,IAAIA;CAEJ,MAAM,QACJ,gBACE,OAAe,IAAI,SAAS,YAAY,WAAW,SAAS,GAAG,CAAC;CAEpE,MAAM,eAAe,mBAAmB;EACtC,IAAIC,aAAqB,wBAAwB;EACjD,IAAI,UAAU;EACd,MAAM,SAAS,QAAQ,UAAU,IAAI,iBAAiB,CAAC;AAEvD,SAAO,MAAM;AACX,OAAI,OAAO,QAAS;AAEpB;GAEA,MAAM,UACJ,QAAQ,mBAAmB,UACvB,QAAQ,UACR,IAAI,QAAQ,QAAQ,QAA8C;AAExE,OAAI,gBAAgB,OAClB,SAAQ,IAAI,iBAAiB,YAAY;AAG3C,OAAI;IACF,MAAMC,cAA2B;KAC/B,UAAU;KACV,GAAG;KACH,MAAM,QAAQ;KACd;KACA;KACD;IACD,IAAI,UAAU,IAAI,QAAQ,KAAK,YAAY;AAC3C,QAAI,UACF,WAAU,MAAM,UAAU,KAAK,YAAY;IAK7C,MAAM,WAAW,OADF,QAAQ,SAAS,WAAW,OACb,QAAQ;AAEtC,QAAI,CAAC,SAAS,GACZ,OAAM,IAAI,MACR,eAAe,SAAS,OAAO,GAAG,SAAS,aAC5C;AAEH,QAAI,CAAC,SAAS,KAAM,OAAM,IAAI,MAAM,0BAA0B;IAE9D,MAAM,SAAS,SAAS,KACrB,YAAY,IAAI,mBAAmB,CAAC,CACpC,WAAW;IAEd,IAAI,SAAS;IAEb,MAAM,qBAAqB;AACzB,SAAI;AACF,aAAO,QAAQ;aACT;;AAKV,WAAO,iBAAiB,SAAS,aAAa;AAE9C,QAAI;AACF,YAAO,MAAM;MACX,MAAM,EAAE,MAAM,UAAU,MAAM,OAAO,MAAM;AAC3C,UAAI,KAAM;AACV,gBAAU;AAEV,eAAS,OAAO,QAAQ,SAAS,KAAK,CAAC,QAAQ,OAAO,KAAK;MAE3D,MAAM,SAAS,OAAO,MAAM,OAAO;AACnC,eAAS,OAAO,KAAK,IAAI;AAEzB,WAAK,MAAM,SAAS,QAAQ;OAC1B,MAAM,QAAQ,MAAM,MAAM,KAAK;OAC/B,MAAMC,YAA2B,EAAE;OACnC,IAAIC;AAEJ,YAAK,MAAM,QAAQ,MACjB,KAAI,KAAK,WAAW,QAAQ,CAC1B,WAAU,KAAK,KAAK,QAAQ,aAAa,GAAG,CAAC;gBACpC,KAAK,WAAW,SAAS,CAClC,aAAY,KAAK,QAAQ,cAAc,GAAG;gBACjC,KAAK,WAAW,MAAM,CAC/B,eAAc,KAAK,QAAQ,WAAW,GAAG;gBAChC,KAAK,WAAW,SAAS,EAAE;QACpC,MAAM,SAAS,OAAO,SACpB,KAAK,QAAQ,cAAc,GAAG,EAC9B,GACD;AACD,YAAI,CAAC,OAAO,MAAM,OAAO,CACvB,cAAa;;OAKnB,IAAIC;OACJ,IAAI,aAAa;AAEjB,WAAI,UAAU,QAAQ;QACpB,MAAM,UAAU,UAAU,KAAK,KAAK;AACpC,YAAI;AACF,gBAAO,KAAK,MAAM,QAAQ;AAC1B,sBAAa;gBACP;AACN,gBAAO;;;AAIX,WAAI,YAAY;AACd,YAAI,kBACF,OAAM,kBAAkB,KAAK;AAG/B,YAAI,oBACF,QAAO,MAAM,oBAAoB,KAAK;;AAI1C,oBAAa;QACX;QACA,OAAO;QACP,IAAI;QACJ,OAAO;QACR,CAAC;AAEF,WAAI,UAAU,OACZ,OAAM;;;cAIJ;AACR,YAAO,oBAAoB,SAAS,aAAa;AACjD,YAAO,aAAa;;AAGtB;YACO,OAAO;AAEd,iBAAa,MAAM;AAEnB,QACE,wBAAwB,UACxB,WAAW,oBAEX;AAQF,UAAM,MAJU,KAAK,IACnB,aAAa,MAAM,UAAU,IAC7B,oBAAoB,IACrB,CACmB;;;;AAO1B,QAAO,EAAE,QAFM,cAAc,EAEZ"}
@@ -1,80 +0,0 @@
1
- import { Auth, AuthToken } from "./auth.gen.cjs";
2
- import { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen.cjs";
3
-
4
- //#region src/api/core/types.gen.d.ts
5
- type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
6
- type Client<RequestFn = never, Config$1 = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
7
- /**
8
- * Returns the final request URL.
9
- */
10
- buildUrl: BuildUrlFn;
11
- getConfig: () => Config$1;
12
- request: RequestFn;
13
- setConfig: (config: Config$1) => Config$1;
14
- } & { [K in HttpMethod]: MethodFn } & ([SseFn] extends [never] ? {
15
- sse?: never;
16
- } : {
17
- sse: { [K in HttpMethod]: SseFn };
18
- });
19
- interface Config {
20
- /**
21
- * Auth token or a function returning auth token. The resolved value will be
22
- * added to the request payload as defined by its `security` array.
23
- */
24
- auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
25
- /**
26
- * A function for serializing request body parameter. By default,
27
- * {@link JSON.stringify()} will be used.
28
- */
29
- bodySerializer?: BodySerializer | null;
30
- /**
31
- * An object containing any HTTP headers that you want to pre-populate your
32
- * `Headers` object with.
33
- *
34
- * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
35
- */
36
- headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
37
- /**
38
- * The request method.
39
- *
40
- * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
41
- */
42
- method?: Uppercase<HttpMethod>;
43
- /**
44
- * A function for serializing request query parameters. By default, arrays
45
- * will be exploded in form style, objects will be exploded in deepObject
46
- * style, and reserved characters are percent-encoded.
47
- *
48
- * This method will have no effect if the native `paramsSerializer()` Axios
49
- * API function is used.
50
- *
51
- * {@link https://swagger.io/docs/specification/serialization/#query View examples}
52
- */
53
- querySerializer?: QuerySerializer | QuerySerializerOptions;
54
- /**
55
- * A function validating request data. This is useful if you want to ensure
56
- * the request conforms to the desired shape, so it can be safely sent to
57
- * the server.
58
- */
59
- requestValidator?: (data: unknown) => Promise<unknown>;
60
- /**
61
- * A function transforming response data before it's returned. This is useful
62
- * for post-processing data, e.g. converting ISO strings into Date objects.
63
- */
64
- responseTransformer?: (data: unknown) => Promise<unknown>;
65
- /**
66
- * A function validating response data. This is useful if you want to ensure
67
- * the response conforms to the desired shape, so it can be safely passed to
68
- * the transformers and returned to the user.
69
- */
70
- responseValidator?: (data: unknown) => Promise<unknown>;
71
- }
72
- type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
73
- type OmitNever<T extends Record<string, unknown>> = { [K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K] };
74
- declare type __ΩHttpMethod = any[];
75
- declare type __ΩClient = any[];
76
- declare type __ΩConfig = any[];
77
- declare type __ΩOmitNever = any[];
78
- //#endregion
79
- export { Client, Config, HttpMethod, OmitNever, __ΩClient, __ΩConfig, __ΩHttpMethod, __ΩOmitNever };
80
- //# sourceMappingURL=types.gen.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.gen.d.cts","names":[],"sources":["../../../src/api/core/types.gen.ts"],"sourcesContent":[],"mappings":";;;;KASY,UAAA;KAWA;EAXA;AAWZ;;EAWmB,QAAA,EADP,UACO;EACR,SAAA,EAAA,GAAA,GADQ,QACR;EACW,OAAA,EADX,SACW;EAAW,SAAA,EAAA,CAAA,MAAA,EAAX,QAAW,EAAA,GAAA,QAAA;CAEzB,GAAA,QAAA,UAAa,GAAA,QAAA,EACf,GAAA,CAAA,CAAA,KAAA,CAAA,SAAA,CAAA,KAAA,CAAA,GAAA;EAEe,GAAA,CAAA,EAAA,KAAA;CAAa,GAAA;EAAK,GAAA,EAAA,QAAlB,UAEE,GAFW,KAEX,EAKN;CAAiB,CAAA;AAAR,UALT,MAAA,CAKS;EAAqB;;;;EAczC,IAAA,CAAA,EAAA,CAAA,CAAA,IAAA,EAdW,IAcX,EAAA,GAdoB,OAcpB,CAd4B,SAc5B,CAAA,GAdyC,SAczC,CAAA,GAdsD,SActD;EAee;;;;EAiBmB,cAAA,CAAA,EAzCrB,cAyCqB,GAAA,IAAA;EAKG;;;AAO1C;;;EAK0B,OAAA,CAAA,EAlDrB,WAkDqB,CAAA,SAAA,CAAA,GAjDrB,MAiDqB,CAAA,MAAA,EAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,CAAA,MAAA,GAAA,MAAA,GAAA,OAAA,CAAA,EAAA,GAAA,IAAA,GAAA,SAAA,GAAA,OAAA,CAAA;EAAC;AAK5B;;;;EACoD,MAAA,CAAA,EAxCzC,SAwCyC,CAxC/B,UAwC+B,CAAA;EAAjC;;;;;;;;;;oBA7BC,kBAAkB;;;;;;wCAME;;;;;2CAKG;;;;;;yCAMF;;KAGpC,qCAAqC,6BAErC,sDACsB;KAKf,oBAAoB,yCAClB,KAAK,+BAA+B,EAAE,2BAE9C,IAAI,EAAE"}
@@ -1,80 +0,0 @@
1
- import { Auth, AuthToken } from "./auth.gen.mjs";
2
- import { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen.mjs";
3
-
4
- //#region src/api/core/types.gen.d.ts
5
- type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
6
- type Client<RequestFn = never, Config$1 = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
7
- /**
8
- * Returns the final request URL.
9
- */
10
- buildUrl: BuildUrlFn;
11
- getConfig: () => Config$1;
12
- request: RequestFn;
13
- setConfig: (config: Config$1) => Config$1;
14
- } & { [K in HttpMethod]: MethodFn } & ([SseFn] extends [never] ? {
15
- sse?: never;
16
- } : {
17
- sse: { [K in HttpMethod]: SseFn };
18
- });
19
- interface Config {
20
- /**
21
- * Auth token or a function returning auth token. The resolved value will be
22
- * added to the request payload as defined by its `security` array.
23
- */
24
- auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
25
- /**
26
- * A function for serializing request body parameter. By default,
27
- * {@link JSON.stringify()} will be used.
28
- */
29
- bodySerializer?: BodySerializer | null;
30
- /**
31
- * An object containing any HTTP headers that you want to pre-populate your
32
- * `Headers` object with.
33
- *
34
- * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
35
- */
36
- headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
37
- /**
38
- * The request method.
39
- *
40
- * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
41
- */
42
- method?: Uppercase<HttpMethod>;
43
- /**
44
- * A function for serializing request query parameters. By default, arrays
45
- * will be exploded in form style, objects will be exploded in deepObject
46
- * style, and reserved characters are percent-encoded.
47
- *
48
- * This method will have no effect if the native `paramsSerializer()` Axios
49
- * API function is used.
50
- *
51
- * {@link https://swagger.io/docs/specification/serialization/#query View examples}
52
- */
53
- querySerializer?: QuerySerializer | QuerySerializerOptions;
54
- /**
55
- * A function validating request data. This is useful if you want to ensure
56
- * the request conforms to the desired shape, so it can be safely sent to
57
- * the server.
58
- */
59
- requestValidator?: (data: unknown) => Promise<unknown>;
60
- /**
61
- * A function transforming response data before it's returned. This is useful
62
- * for post-processing data, e.g. converting ISO strings into Date objects.
63
- */
64
- responseTransformer?: (data: unknown) => Promise<unknown>;
65
- /**
66
- * A function validating response data. This is useful if you want to ensure
67
- * the response conforms to the desired shape, so it can be safely passed to
68
- * the transformers and returned to the user.
69
- */
70
- responseValidator?: (data: unknown) => Promise<unknown>;
71
- }
72
- type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
73
- type OmitNever<T extends Record<string, unknown>> = { [K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K] };
74
- declare type __ΩHttpMethod = any[];
75
- declare type __ΩClient = any[];
76
- declare type __ΩConfig = any[];
77
- declare type __ΩOmitNever = any[];
78
- //#endregion
79
- export { Client, Config, HttpMethod, OmitNever, __ΩClient, __ΩConfig, __ΩHttpMethod, __ΩOmitNever };
80
- //# sourceMappingURL=types.gen.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.gen.d.mts","names":[],"sources":["../../../src/api/core/types.gen.ts"],"sourcesContent":[],"mappings":";;;;KASY,UAAA;KAWA;EAXA;AAWZ;;EAWmB,QAAA,EADP,UACO;EACR,SAAA,EAAA,GAAA,GADQ,QACR;EACW,OAAA,EADX,SACW;EAAW,SAAA,EAAA,CAAA,MAAA,EAAX,QAAW,EAAA,GAAA,QAAA;CAEzB,GAAA,QAAA,UAAa,GAAA,QAAA,EACf,GAAA,CAAA,CAAA,KAAA,CAAA,SAAA,CAAA,KAAA,CAAA,GAAA;EAEe,GAAA,CAAA,EAAA,KAAA;CAAa,GAAA;EAAK,GAAA,EAAA,QAAlB,UAEE,GAFW,KAEX,EAKN;CAAiB,CAAA;AAAR,UALT,MAAA,CAKS;EAAqB;;;;EAczC,IAAA,CAAA,EAAA,CAAA,CAAA,IAAA,EAdW,IAcX,EAAA,GAdoB,OAcpB,CAd4B,SAc5B,CAAA,GAdyC,SAczC,CAAA,GAdsD,SActD;EAee;;;;EAiBmB,cAAA,CAAA,EAzCrB,cAyCqB,GAAA,IAAA;EAKG;;;AAO1C;;;EAK0B,OAAA,CAAA,EAlDrB,WAkDqB,CAAA,SAAA,CAAA,GAjDrB,MAiDqB,CAAA,MAAA,EAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,CAAA,MAAA,GAAA,MAAA,GAAA,OAAA,CAAA,EAAA,GAAA,IAAA,GAAA,SAAA,GAAA,OAAA,CAAA;EAAC;AAK5B;;;;EACoD,MAAA,CAAA,EAxCzC,SAwCyC,CAxC/B,UAwC+B,CAAA;EAAjC;;;;;;;;;;oBA7BC,kBAAkB;;;;;;wCAME;;;;;2CAKG;;;;;;yCAMF;;KAGpC,qCAAqC,6BAErC,sDACsB;KAKf,oBAAoB,yCAClB,KAAK,+BAA+B,EAAE,2BAE9C,IAAI,EAAE"}
@@ -1,34 +0,0 @@
1
- import { BodySerializer, QuerySerializer } from "./bodySerializer.gen.cjs";
2
-
3
- //#region src/api/core/utils.gen.d.ts
4
- interface PathSerializer {
5
- path: Record<string, unknown>;
6
- url: string;
7
- }
8
- declare const PATH_PARAM_RE: RegExp;
9
- declare const defaultPathSerializer: ({
10
- path,
11
- url: _url
12
- }: PathSerializer) => string;
13
- declare const getUrl: ({
14
- baseUrl,
15
- path,
16
- query,
17
- querySerializer,
18
- url: _url
19
- }: {
20
- baseUrl?: string;
21
- path?: Record<string, unknown>;
22
- query?: Record<string, unknown>;
23
- querySerializer: QuerySerializer;
24
- url: string;
25
- }) => string;
26
- declare function getValidRequestBody(options: {
27
- body?: unknown;
28
- bodySerializer?: BodySerializer | null;
29
- serializedBody?: unknown;
30
- }): unknown;
31
- declare type __ΩPathSerializer = any[];
32
- //#endregion
33
- export { PATH_PARAM_RE, PathSerializer, __ΩPathSerializer, defaultPathSerializer, getUrl, getValidRequestBody };
34
- //# sourceMappingURL=utils.gen.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.gen.d.cts","names":[],"sources":["../../../src/api/core/utils.gen.ts"],"sourcesContent":[],"mappings":";;;UAUiB,cAAA;QACT;EADS,GAAA,EAAA,MAAA;AAKjB;AAEa,cAFA,aAsEZ,EAtEyB,MAsEzB;AApEqC,cAAzB,qBAAyB,EAAA,CAAA;EAAA,IAAA;EAAA,GAAA,EAAA;AAAA,CAAA,EAAqB,cAArB,EAAA,GAAA,MAAA;AAAA,cAsEzB,MAtEyB,EAAA,CAAA;EAAA,OAAA;EAAA,IAAA;EAAA,KAAA;EAAA,eAAA;EAAA,GAAA,EAsEf;CAtEe,EAAA;EAAqB,OAAA,CAAA,EAAA,MAAA;EAAc,IAAA,CAAA,EA8EhE,MA9EgE,CAAA,MAAA,EAAA,OAAA,CAAA;EAsE5D,KAAA,CAAA,EASH,MAiBT,CAAA,MAAA,EAAA,OAAA,CAAA;EA1BsB,eAAA,EAUJ,eAVI;EAAA,GAAA,EAAA,MAAA;CAAA,EAAA,GAAA,MAAA;AAAA,iBA4BP,mBAAA,CA5BO,OAAA,EAAA;EAAA,IAAA,CAAA,EAAA,OAAA;EAQd,cAAA,CAAA,EAsBU,cAtBV,GAAA,IAAA;EACC,cAAA,CAAA,EAAA,OAAA;CACS,CAAA,EAAA,OAAA;AAAe,iCAAA,GAAA,EAAA"}