lumnisai 0.5.27 → 0.5.28
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 +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1008,7 +1008,11 @@ class CrmResource {
|
|
|
1008
1008
|
*/
|
|
1009
1009
|
async getContactsSyncStatus(userId, provider) {
|
|
1010
1010
|
return this.http.get("/crm/contacts/sync-status", {
|
|
1011
|
-
params
|
|
1011
|
+
// Backend requires snake_case query params (FastAPI `user_id`). Query
|
|
1012
|
+
// keys are sent verbatim by the http layer (only bodies are snake-cased),
|
|
1013
|
+
// so pass snake_case here like every other resource — a camelCase
|
|
1014
|
+
// `userId` 422s with "field required: user_id".
|
|
1015
|
+
params: { user_id: userId, provider }
|
|
1012
1016
|
});
|
|
1013
1017
|
}
|
|
1014
1018
|
/**
|
|
@@ -1031,7 +1035,8 @@ class CrmResource {
|
|
|
1031
1035
|
*/
|
|
1032
1036
|
async listExclusionGrants(memberUserId) {
|
|
1033
1037
|
return this.http.get("/crm/exclusion-grants", {
|
|
1034
|
-
|
|
1038
|
+
// Backend requires snake_case `member_user_id` (see getContactsSyncStatus).
|
|
1039
|
+
params: { member_user_id: memberUserId }
|
|
1035
1040
|
});
|
|
1036
1041
|
}
|
|
1037
1042
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1002,7 +1002,11 @@ class CrmResource {
|
|
|
1002
1002
|
*/
|
|
1003
1003
|
async getContactsSyncStatus(userId, provider) {
|
|
1004
1004
|
return this.http.get("/crm/contacts/sync-status", {
|
|
1005
|
-
params
|
|
1005
|
+
// Backend requires snake_case query params (FastAPI `user_id`). Query
|
|
1006
|
+
// keys are sent verbatim by the http layer (only bodies are snake-cased),
|
|
1007
|
+
// so pass snake_case here like every other resource — a camelCase
|
|
1008
|
+
// `userId` 422s with "field required: user_id".
|
|
1009
|
+
params: { user_id: userId, provider }
|
|
1006
1010
|
});
|
|
1007
1011
|
}
|
|
1008
1012
|
/**
|
|
@@ -1025,7 +1029,8 @@ class CrmResource {
|
|
|
1025
1029
|
*/
|
|
1026
1030
|
async listExclusionGrants(memberUserId) {
|
|
1027
1031
|
return this.http.get("/crm/exclusion-grants", {
|
|
1028
|
-
|
|
1032
|
+
// Backend requires snake_case `member_user_id` (see getContactsSyncStatus).
|
|
1033
|
+
params: { member_user_id: memberUserId }
|
|
1029
1034
|
});
|
|
1030
1035
|
}
|
|
1031
1036
|
}
|