@heymantle/core-api-client 0.1.21 → 0.1.23
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.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -844,14 +844,14 @@ interface DealListParams extends ListParams {
|
|
|
844
844
|
customerId?: string;
|
|
845
845
|
appId?: string;
|
|
846
846
|
planId?: string;
|
|
847
|
-
dealStageId?: string;
|
|
848
|
-
dealFlowId?: string;
|
|
847
|
+
dealStageId?: string | string[];
|
|
848
|
+
dealFlowId?: string | string[];
|
|
849
849
|
affiliateId?: string;
|
|
850
850
|
partnershipId?: string;
|
|
851
851
|
acquirerId?: string;
|
|
852
852
|
ownerId?: string;
|
|
853
853
|
contactId?: string;
|
|
854
|
-
stage?: string;
|
|
854
|
+
stage?: string | string[];
|
|
855
855
|
step?: number;
|
|
856
856
|
minAmount?: number;
|
|
857
857
|
maxAmount?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -844,14 +844,14 @@ interface DealListParams extends ListParams {
|
|
|
844
844
|
customerId?: string;
|
|
845
845
|
appId?: string;
|
|
846
846
|
planId?: string;
|
|
847
|
-
dealStageId?: string;
|
|
848
|
-
dealFlowId?: string;
|
|
847
|
+
dealStageId?: string | string[];
|
|
848
|
+
dealFlowId?: string | string[];
|
|
849
849
|
affiliateId?: string;
|
|
850
850
|
partnershipId?: string;
|
|
851
851
|
acquirerId?: string;
|
|
852
852
|
ownerId?: string;
|
|
853
853
|
contactId?: string;
|
|
854
|
-
stage?: string;
|
|
854
|
+
stage?: string | string[];
|
|
855
855
|
step?: number;
|
|
856
856
|
minAmount?: number;
|
|
857
857
|
maxAmount?: number;
|
package/dist/index.js
CHANGED
|
@@ -185,7 +185,9 @@ function toQueryString(params) {
|
|
|
185
185
|
const searchParams = new URLSearchParams();
|
|
186
186
|
for (const [key, value] of Object.entries(sanitized)) {
|
|
187
187
|
if (Array.isArray(value)) {
|
|
188
|
-
value.
|
|
188
|
+
if (value.length > 0) {
|
|
189
|
+
searchParams.append(key, value.map(String).join(","));
|
|
190
|
+
}
|
|
189
191
|
} else if (value !== null && value !== void 0) {
|
|
190
192
|
searchParams.append(key, String(value));
|
|
191
193
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -119,7 +119,9 @@ function toQueryString(params) {
|
|
|
119
119
|
const searchParams = new URLSearchParams();
|
|
120
120
|
for (const [key, value] of Object.entries(sanitized)) {
|
|
121
121
|
if (Array.isArray(value)) {
|
|
122
|
-
value.
|
|
122
|
+
if (value.length > 0) {
|
|
123
|
+
searchParams.append(key, value.map(String).join(","));
|
|
124
|
+
}
|
|
123
125
|
} else if (value !== null && value !== void 0) {
|
|
124
126
|
searchParams.append(key, String(value));
|
|
125
127
|
}
|