@objectstack/client 7.8.0 → 8.0.0
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -1700,7 +1700,7 @@ declare class ObjectStackClient {
|
|
|
1700
1700
|
object?: string;
|
|
1701
1701
|
recordId?: string;
|
|
1702
1702
|
status?: ApprovalStatus | ApprovalStatus[];
|
|
1703
|
-
approverId?: string;
|
|
1703
|
+
approverId?: string | string[];
|
|
1704
1704
|
submitterId?: string;
|
|
1705
1705
|
}) => Promise<ApprovalRequestRow[]>;
|
|
1706
1706
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1700,7 +1700,7 @@ declare class ObjectStackClient {
|
|
|
1700
1700
|
object?: string;
|
|
1701
1701
|
recordId?: string;
|
|
1702
1702
|
status?: ApprovalStatus | ApprovalStatus[];
|
|
1703
|
-
approverId?: string;
|
|
1703
|
+
approverId?: string | string[];
|
|
1704
1704
|
submitterId?: string;
|
|
1705
1705
|
}) => Promise<ApprovalRequestRow[]>;
|
|
1706
1706
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2205,7 +2205,9 @@ var ObjectStackClient = class {
|
|
|
2205
2205
|
if (filter?.status) {
|
|
2206
2206
|
params.set("status", Array.isArray(filter.status) ? filter.status.join(",") : filter.status);
|
|
2207
2207
|
}
|
|
2208
|
-
if (filter?.approverId)
|
|
2208
|
+
if (filter?.approverId) {
|
|
2209
|
+
params.set("approverId", Array.isArray(filter.approverId) ? filter.approverId.join(",") : filter.approverId);
|
|
2210
|
+
}
|
|
2209
2211
|
if (filter?.submitterId) params.set("submitterId", filter.submitterId);
|
|
2210
2212
|
const qs = params.toString();
|
|
2211
2213
|
const res = await this.fetch(`${this.baseUrl}${route}/requests${qs ? `?${qs}` : ""}`);
|