@gravity-rail/sdk 1.0.0 → 2.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/{chat-interaction-BWvViNx-.d.cts → chat-interaction-CGDgA4K_.d.cts} +1130 -308
- package/dist/{chat-interaction-CRGcStD0.d.ts → chat-interaction-DjV6mYaY.d.ts} +1130 -308
- package/dist/{chunk-VBG6XUBN.js → chunk-SVRE6KIM.js} +454 -209
- package/dist/chunk-SVRE6KIM.js.map +1 -0
- package/dist/helpers.d.cts +2 -2
- package/dist/helpers.d.ts +2 -2
- package/dist/index.cjs +460 -210
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +454 -208
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +5 -5
- package/dist/internal.d.ts +5 -5
- package/dist/internal.js +7 -1
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-fQz-gVmQ.d.cts → member-import-C1IsFkQm.d.cts} +1 -1
- package/dist/{member-import-DcjopLJf.d.ts → member-import-DVHDjWwi.d.ts} +1 -1
- package/dist/{path-C5Cn4Kl7.d.cts → path-Bd99SxC1.d.cts} +21 -2
- package/dist/{path-BKAZ7CTT.d.ts → path-CZxFBfjw.d.ts} +21 -2
- package/dist/schemas.d.cts +36 -36
- package/dist/schemas.d.ts +36 -36
- package/dist/{tasks-DVm54e2a.d.cts → tasks-C8TrcAV8.d.cts} +3 -0
- package/dist/{tasks-DVm54e2a.d.ts → tasks-C8TrcAV8.d.ts} +3 -0
- package/package.json +7 -2
- package/dist/chunk-VBG6XUBN.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -94,6 +94,8 @@ __export(src_exports, {
|
|
|
94
94
|
EventRuleActionType: () => EventRuleActionType,
|
|
95
95
|
EventRuleEventType: () => EventRuleEventType,
|
|
96
96
|
EventRuleObjectType: () => EventRuleObjectType,
|
|
97
|
+
FaxDocumentRefusal: () => FaxDocumentRefusal,
|
|
98
|
+
FaxRunRefusal: () => FaxRunRefusal,
|
|
97
99
|
FeatureCategory: () => FeatureCategory,
|
|
98
100
|
FeatureVisibility: () => FeatureVisibility,
|
|
99
101
|
FeedCursorRejection: () => FeedCursorRejection,
|
|
@@ -121,6 +123,7 @@ __export(src_exports, {
|
|
|
121
123
|
MAX_EMAIL_SEND_RECIPIENTS: () => MAX_EMAIL_SEND_RECIPIENTS,
|
|
122
124
|
MEMBER_RELATIONSHIP_KINDS: () => MEMBER_RELATIONSHIP_KINDS,
|
|
123
125
|
McpServerState: () => McpServerState,
|
|
126
|
+
MedicalBillingApi: () => MedicalBillingApi,
|
|
124
127
|
MemberFeature: () => MemberFeature,
|
|
125
128
|
MemberFilterBuilder: () => MemberFilterBuilder,
|
|
126
129
|
MemberImportIssueCode: () => MemberImportIssueCode,
|
|
@@ -204,6 +207,7 @@ __export(src_exports, {
|
|
|
204
207
|
SendingStopState: () => SendingStopState,
|
|
205
208
|
SetInstallationPolicyRequestUpgradePolicy: () => SetInstallationPolicyRequestUpgradePolicy,
|
|
206
209
|
SiteDnsRecordType: () => SiteDnsRecordType,
|
|
210
|
+
StediApi: () => StediApi,
|
|
207
211
|
SupervisorsApi: () => SupervisorsApi,
|
|
208
212
|
TTS_MODEL_AWS_POLLY_GENERATIVE: () => TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
209
213
|
TTS_MODEL_AWS_POLLY_NEURAL: () => TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -226,6 +230,7 @@ __export(src_exports, {
|
|
|
226
230
|
UpdateMemberContactPointRequestContactType: () => UpdateMemberContactPointRequestContactType,
|
|
227
231
|
UpdateMemberContactPointRequestPurpose: () => UpdateMemberContactPointRequestPurpose,
|
|
228
232
|
UpdateMemberContactPointRequestSharing: () => UpdateMemberContactPointRequestSharing,
|
|
233
|
+
VoiceIntegrityUseCase: () => VoiceIntegrityUseCase,
|
|
229
234
|
WIDGET_SLUGS: () => WIDGET_SLUGS,
|
|
230
235
|
WorkflowBuilder: () => WorkflowBuilder,
|
|
231
236
|
WorkflowRoutingMode: () => WorkflowRoutingMode,
|
|
@@ -775,13 +780,13 @@ var ResourceWorkflowsApi = class extends BaseApiClient {
|
|
|
775
780
|
* pin a Workflow item; archived Workflows are excluded unless asked for.
|
|
776
781
|
*/
|
|
777
782
|
async listResourceWorkflows(wid, params) {
|
|
778
|
-
const
|
|
779
|
-
if (params?.page !== void 0)
|
|
780
|
-
if (params?.pageSize !== void 0)
|
|
783
|
+
const query2 = new URLSearchParams();
|
|
784
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
785
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
781
786
|
if (params?.includeArchived !== void 0) {
|
|
782
|
-
|
|
787
|
+
query2.set("includeArchived", String(params.includeArchived));
|
|
783
788
|
}
|
|
784
|
-
const qs =
|
|
789
|
+
const qs = query2.toString();
|
|
785
790
|
return this.fetch(
|
|
786
791
|
`w/${encodeURIComponent(wid)}/resource-workflows${qs ? `?${qs}` : ""}`
|
|
787
792
|
);
|
|
@@ -795,10 +800,10 @@ function bundlesPath(wid, ...segments) {
|
|
|
795
800
|
return tail ? `${base}/${tail}` : base;
|
|
796
801
|
}
|
|
797
802
|
function pageQuery(params) {
|
|
798
|
-
const
|
|
799
|
-
if (params?.page !== void 0)
|
|
800
|
-
if (params?.pageSize !== void 0)
|
|
801
|
-
const qs =
|
|
803
|
+
const query2 = new URLSearchParams();
|
|
804
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
805
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
806
|
+
const qs = query2.toString();
|
|
802
807
|
return qs ? `?${qs}` : "";
|
|
803
808
|
}
|
|
804
809
|
var BundlesApi = class extends BaseApiClient {
|
|
@@ -992,9 +997,9 @@ var InstallationsApi = class extends BaseApiClient {
|
|
|
992
997
|
* between. `to` must be newer than the version the installation holds.
|
|
993
998
|
*/
|
|
994
999
|
async previewInstallationUpgrade(wid, installationUuid, to) {
|
|
995
|
-
const
|
|
1000
|
+
const query2 = new URLSearchParams({ to: String(to) });
|
|
996
1001
|
return this.fetch(
|
|
997
|
-
`${installationsPath(wid, installationUuid, "upgrade-preview")}?${
|
|
1002
|
+
`${installationsPath(wid, installationUuid, "upgrade-preview")}?${query2.toString()}`
|
|
998
1003
|
);
|
|
999
1004
|
}
|
|
1000
1005
|
/**
|
|
@@ -2185,9 +2190,9 @@ var CalendarsApi = class extends BaseApiClient {
|
|
|
2185
2190
|
const params = new URLSearchParams();
|
|
2186
2191
|
if (options?.page !== void 0) params.set("page", String(options.page));
|
|
2187
2192
|
if (options?.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
|
|
2188
|
-
const
|
|
2193
|
+
const query2 = params.size ? `?${params}` : "";
|
|
2189
2194
|
return this.fetch(
|
|
2190
|
-
`w/${wid}/calendar-event-types${
|
|
2195
|
+
`w/${wid}/calendar-event-types${query2}`
|
|
2191
2196
|
);
|
|
2192
2197
|
}
|
|
2193
2198
|
/** Get a single calendar event type by ID. */
|
|
@@ -2930,9 +2935,9 @@ var ConfluenceApi = class extends BaseApiClient {
|
|
|
2930
2935
|
const qs = new URLSearchParams();
|
|
2931
2936
|
if (params?.cursor) qs.set("cursor", params.cursor);
|
|
2932
2937
|
if (params?.limit) qs.set("limit", String(params.limit));
|
|
2933
|
-
const
|
|
2938
|
+
const query2 = qs.toString();
|
|
2934
2939
|
return this.fetch(
|
|
2935
|
-
`w/${wid}/app-connections/confluence/spaces${
|
|
2940
|
+
`w/${wid}/app-connections/confluence/spaces${query2 ? `?${query2}` : ""}`
|
|
2936
2941
|
);
|
|
2937
2942
|
}
|
|
2938
2943
|
async listConfluencePages(wid, spaceId, params) {
|
|
@@ -3064,9 +3069,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
3064
3069
|
async getDashboardChannelStats(wid, options) {
|
|
3065
3070
|
const params = new URLSearchParams();
|
|
3066
3071
|
if (options?.hours !== void 0) params.append("hours", options.hours.toString());
|
|
3067
|
-
const
|
|
3072
|
+
const query2 = params.toString();
|
|
3068
3073
|
return this.fetch(
|
|
3069
|
-
`w/${wid}/dashboards/stats/channels${
|
|
3074
|
+
`w/${wid}/dashboards/stats/channels${query2 ? `?${query2}` : ""}`
|
|
3070
3075
|
);
|
|
3071
3076
|
}
|
|
3072
3077
|
/**
|
|
@@ -3078,9 +3083,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
3078
3083
|
async getDashboardWorkflowAssignmentStats(wid, options) {
|
|
3079
3084
|
const params = new URLSearchParams();
|
|
3080
3085
|
if (options?.hours != null) params.append("hours", options.hours.toString());
|
|
3081
|
-
const
|
|
3086
|
+
const query2 = params.toString();
|
|
3082
3087
|
return this.fetch(
|
|
3083
|
-
`w/${wid}/dashboards/stats/workflow-assignments${
|
|
3088
|
+
`w/${wid}/dashboards/stats/workflow-assignments${query2 ? `?${query2}` : ""}`
|
|
3084
3089
|
);
|
|
3085
3090
|
}
|
|
3086
3091
|
/**
|
|
@@ -3104,9 +3109,9 @@ var DashboardsApi = class extends BaseApiClient {
|
|
|
3104
3109
|
if (options?.pageSize !== void 0) params.append("pageSize", options.pageSize.toString());
|
|
3105
3110
|
if (options?.check !== void 0) params.append("check", options.check);
|
|
3106
3111
|
if (options?.severity !== void 0) params.append("severity", options.severity);
|
|
3107
|
-
const
|
|
3112
|
+
const query2 = params.toString();
|
|
3108
3113
|
return this.fetch(
|
|
3109
|
-
`w/${wid}/configuration-health${
|
|
3114
|
+
`w/${wid}/configuration-health${query2 ? `?${query2}` : ""}`
|
|
3110
3115
|
);
|
|
3111
3116
|
}
|
|
3112
3117
|
};
|
|
@@ -3176,9 +3181,9 @@ var DataTypesApi = class extends BaseApiClient {
|
|
|
3176
3181
|
if (options?.beforeVersion !== void 0)
|
|
3177
3182
|
params.set("beforeVersion", String(options.beforeVersion));
|
|
3178
3183
|
if (options?.limit !== void 0) params.set("limit", String(options.limit));
|
|
3179
|
-
const
|
|
3184
|
+
const query2 = params.toString();
|
|
3180
3185
|
return this.fetch(
|
|
3181
|
-
`w/${wid}/data-types/${id}/schema-versions${
|
|
3186
|
+
`w/${wid}/data-types/${id}/schema-versions${query2 ? `?${query2}` : ""}`
|
|
3182
3187
|
);
|
|
3183
3188
|
}
|
|
3184
3189
|
/** List all data types for a workspace, optionally filtering by archived status. */
|
|
@@ -3812,10 +3817,10 @@ var TeamsAppsApi = class extends BaseApiClient {
|
|
|
3812
3817
|
var EventsApi = class extends BaseApiClient {
|
|
3813
3818
|
/** List event rules in the workspace, paginated. */
|
|
3814
3819
|
async getEventRules(wid, params) {
|
|
3815
|
-
const
|
|
3816
|
-
if (params?.page !== void 0)
|
|
3817
|
-
if (params?.pageSize !== void 0)
|
|
3818
|
-
const qs =
|
|
3820
|
+
const query2 = new URLSearchParams();
|
|
3821
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
3822
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
3823
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
3819
3824
|
return this.fetch(`w/${wid}/event-rules${qs}`);
|
|
3820
3825
|
}
|
|
3821
3826
|
/** Get the available action types that can be used in event rules. */
|
|
@@ -4027,11 +4032,11 @@ var EventsApi = class extends BaseApiClient {
|
|
|
4027
4032
|
var ExperimentsApi = class extends BaseApiClient {
|
|
4028
4033
|
/** List experiments with group summaries and assignment counts. */
|
|
4029
4034
|
async getExperiments(wid, params) {
|
|
4030
|
-
const
|
|
4031
|
-
if (params?.page !== void 0)
|
|
4032
|
-
if (params?.pageSize !== void 0)
|
|
4033
|
-
if (params?.includeArchived)
|
|
4034
|
-
const qs =
|
|
4035
|
+
const query2 = new URLSearchParams();
|
|
4036
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4037
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4038
|
+
if (params?.includeArchived) query2.set("includeArchived", "true");
|
|
4039
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4035
4040
|
return this.fetch(`w/${wid}/experiments${qs}`);
|
|
4036
4041
|
}
|
|
4037
4042
|
/** Get a single experiment by ID (includes groups). */
|
|
@@ -4348,11 +4353,11 @@ var FhirConnectionsApi = class extends BaseApiClient {
|
|
|
4348
4353
|
}
|
|
4349
4354
|
// ==================== Member Sync ====================
|
|
4350
4355
|
async fhirListLinkedMembers(wid, connectionId, params) {
|
|
4351
|
-
const
|
|
4352
|
-
if (params?.page !== void 0)
|
|
4353
|
-
if (params?.pageSize !== void 0)
|
|
4354
|
-
if (params?.search?.trim())
|
|
4355
|
-
const qs =
|
|
4356
|
+
const query2 = new URLSearchParams();
|
|
4357
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4358
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4359
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
4360
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4356
4361
|
return this.fetch(
|
|
4357
4362
|
`w/${wid}/app-connections/fhir/connections/${connectionId}/linked-members${qs}`
|
|
4358
4363
|
);
|
|
@@ -4474,6 +4479,18 @@ var ClaimMdApi = class extends BaseApiClient {
|
|
|
4474
4479
|
}
|
|
4475
4480
|
};
|
|
4476
4481
|
|
|
4482
|
+
// src/api/stedi.ts
|
|
4483
|
+
var StediApi = class extends BaseApiClient {
|
|
4484
|
+
async getStediConnections(wid) {
|
|
4485
|
+
return this.fetch(`w/${wid}/app-connections/stedi/status`);
|
|
4486
|
+
}
|
|
4487
|
+
async getStediConnectionStatus(wid, connectionUuid) {
|
|
4488
|
+
return this.fetch(
|
|
4489
|
+
`w/${wid}/app-connections/stedi/${connectionUuid}/status`
|
|
4490
|
+
);
|
|
4491
|
+
}
|
|
4492
|
+
};
|
|
4493
|
+
|
|
4477
4494
|
// src/types/generated/inbound_fax.ts
|
|
4478
4495
|
var InboundFaxStatus = {
|
|
4479
4496
|
pending: "pending",
|
|
@@ -4502,13 +4519,13 @@ var DocumoFaxApi = class extends BaseApiClient {
|
|
|
4502
4519
|
* failures an operator filtering by date is hunting for.
|
|
4503
4520
|
*/
|
|
4504
4521
|
async listDocumoFaxes(wid, params) {
|
|
4505
|
-
const
|
|
4506
|
-
if (params?.page !== void 0)
|
|
4507
|
-
if (params?.pageSize !== void 0)
|
|
4508
|
-
params?.status?.forEach((value) =>
|
|
4509
|
-
if (params?.receivedAfter)
|
|
4510
|
-
if (params?.receivedBefore)
|
|
4511
|
-
const suffix2 =
|
|
4522
|
+
const query2 = new URLSearchParams();
|
|
4523
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4524
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4525
|
+
params?.status?.forEach((value) => query2.append("status", value));
|
|
4526
|
+
if (params?.receivedAfter) query2.set("receivedAfter", params.receivedAfter);
|
|
4527
|
+
if (params?.receivedBefore) query2.set("receivedBefore", params.receivedBefore);
|
|
4528
|
+
const suffix2 = query2.toString() === "" ? "" : `?${query2.toString()}`;
|
|
4512
4529
|
return this.fetch(
|
|
4513
4530
|
`w/${wid}/app-connections/documo-fax/faxes${suffix2}`
|
|
4514
4531
|
);
|
|
@@ -4583,20 +4600,20 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
4583
4600
|
);
|
|
4584
4601
|
}
|
|
4585
4602
|
async getLinkedHealthieMembers(wid, params) {
|
|
4586
|
-
const
|
|
4587
|
-
if (params?.page !== void 0)
|
|
4588
|
-
if (params?.pageSize !== void 0)
|
|
4589
|
-
if (params?.search?.trim())
|
|
4590
|
-
const qs =
|
|
4603
|
+
const query2 = new URLSearchParams();
|
|
4604
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
4605
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
4606
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
4607
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4591
4608
|
return this.fetch(
|
|
4592
4609
|
`w/${wid}/app-connections/healthie/reconciliation/linked${qs}`
|
|
4593
4610
|
);
|
|
4594
4611
|
}
|
|
4595
4612
|
async getHealthieReconciliationMatches(wid, params) {
|
|
4596
|
-
const
|
|
4597
|
-
if (params?.limit !== void 0)
|
|
4598
|
-
if (params?.offset !== void 0)
|
|
4599
|
-
const qs =
|
|
4613
|
+
const query2 = new URLSearchParams();
|
|
4614
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
4615
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
4616
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4600
4617
|
return this.fetch(
|
|
4601
4618
|
`w/${wid}/app-connections/healthie/reconciliation/matches${qs}`
|
|
4602
4619
|
);
|
|
@@ -4613,17 +4630,17 @@ var HealthieApi = class extends BaseApiClient {
|
|
|
4613
4630
|
});
|
|
4614
4631
|
}
|
|
4615
4632
|
async listHealthieAppointmentTypes(wid, providerId) {
|
|
4616
|
-
const
|
|
4617
|
-
if (providerId)
|
|
4618
|
-
const qs =
|
|
4633
|
+
const query2 = new URLSearchParams();
|
|
4634
|
+
if (providerId) query2.set("provider_id", providerId);
|
|
4635
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4619
4636
|
return this.fetch(
|
|
4620
4637
|
`w/${wid}/app-connections/healthie/appointment-types${qs}`
|
|
4621
4638
|
);
|
|
4622
4639
|
}
|
|
4623
4640
|
async listHealthiePatients(wid, keywords) {
|
|
4624
|
-
const
|
|
4625
|
-
if (keywords?.trim())
|
|
4626
|
-
const qs =
|
|
4641
|
+
const query2 = new URLSearchParams();
|
|
4642
|
+
if (keywords?.trim()) query2.set("keywords", keywords.trim());
|
|
4643
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
4627
4644
|
return this.fetch(
|
|
4628
4645
|
`w/${wid}/app-connections/healthie/patients${qs}`
|
|
4629
4646
|
);
|
|
@@ -5146,9 +5163,9 @@ var InboxesApi = class extends BaseApiClient {
|
|
|
5146
5163
|
const params = new URLSearchParams();
|
|
5147
5164
|
if (period.dateFrom) params.append("date_from", period.dateFrom);
|
|
5148
5165
|
if (period.dateTo) params.append("date_to", period.dateTo);
|
|
5149
|
-
const
|
|
5166
|
+
const query2 = params.toString();
|
|
5150
5167
|
return this.fetch(
|
|
5151
|
-
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${
|
|
5168
|
+
`w/${wid}/inboxes/${inboxId}/outbound-email-stats${query2 ? `?${query2}` : ""}`
|
|
5152
5169
|
);
|
|
5153
5170
|
}
|
|
5154
5171
|
/** List email threads in an inbox. */
|
|
@@ -5553,10 +5570,10 @@ var MembersApi = class extends BaseApiClient {
|
|
|
5553
5570
|
});
|
|
5554
5571
|
}
|
|
5555
5572
|
/** List workspace members with pagination, filtering, and sorting. */
|
|
5556
|
-
async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId,
|
|
5573
|
+
async getWorkspaceMembers(wid, page = 1, pageSize = 10, search, role, sortBy, sortOrder, memberType, isArchived = false, isManager, memberTypes, hasAccount, excludeIds, memberFilterId, query2) {
|
|
5557
5574
|
const params = new URLSearchParams();
|
|
5558
5575
|
if (memberFilterId != null) params.append("memberFilterId", memberFilterId.toString());
|
|
5559
|
-
if (
|
|
5576
|
+
if (query2 != null) params.append("query", JSON.stringify(query2));
|
|
5560
5577
|
if (page) params.append("page", page.toString());
|
|
5561
5578
|
if (pageSize) params.append("pageSize", pageSize.toString());
|
|
5562
5579
|
if (sortBy) params.append("sortBy", sortBy);
|
|
@@ -6386,8 +6403,8 @@ var MotdApi = class extends BaseApiClient {
|
|
|
6386
6403
|
const params = new URLSearchParams();
|
|
6387
6404
|
if (options?.date !== void 0) params.append("date", options.date);
|
|
6388
6405
|
if (options?.offset !== void 0) params.append("offset", options.offset.toString());
|
|
6389
|
-
const
|
|
6390
|
-
return this.fetch(`w/${wid}/motd${
|
|
6406
|
+
const query2 = params.toString();
|
|
6407
|
+
return this.fetch(`w/${wid}/motd${query2 ? `?${query2}` : ""}`);
|
|
6391
6408
|
}
|
|
6392
6409
|
};
|
|
6393
6410
|
|
|
@@ -6497,21 +6514,21 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
6497
6514
|
});
|
|
6498
6515
|
}
|
|
6499
6516
|
async getLinkedMondayMembers(wid, params) {
|
|
6500
|
-
const
|
|
6501
|
-
if (params?.board_id)
|
|
6502
|
-
if (params?.page !== void 0)
|
|
6503
|
-
if (params?.pageSize !== void 0)
|
|
6504
|
-
if (params?.search?.trim())
|
|
6505
|
-
const qs =
|
|
6517
|
+
const query2 = new URLSearchParams();
|
|
6518
|
+
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
6519
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
6520
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
6521
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
6522
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6506
6523
|
return this.fetch(
|
|
6507
6524
|
`w/${wid}/app-connections/monday/reconciliation/linked${qs}`
|
|
6508
6525
|
);
|
|
6509
6526
|
}
|
|
6510
6527
|
async getMondayReconciliationMatches(wid, params) {
|
|
6511
|
-
const
|
|
6512
|
-
if (params?.limit !== void 0)
|
|
6513
|
-
if (params?.offset !== void 0)
|
|
6514
|
-
const qs =
|
|
6528
|
+
const query2 = new URLSearchParams();
|
|
6529
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
6530
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
6531
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6515
6532
|
return this.fetch(
|
|
6516
6533
|
`w/${wid}/app-connections/monday/reconciliation/matches${qs}`
|
|
6517
6534
|
);
|
|
@@ -6535,11 +6552,11 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
6535
6552
|
);
|
|
6536
6553
|
}
|
|
6537
6554
|
async getLinkedRecords(wid, params) {
|
|
6538
|
-
const
|
|
6539
|
-
if (params?.board_id)
|
|
6540
|
-
if (params?.page !== void 0)
|
|
6541
|
-
if (params?.pageSize !== void 0)
|
|
6542
|
-
const qs =
|
|
6555
|
+
const query2 = new URLSearchParams();
|
|
6556
|
+
if (params?.board_id) query2.set("board_id", params.board_id);
|
|
6557
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
6558
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
6559
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6543
6560
|
return this.fetch(
|
|
6544
6561
|
`w/${wid}/app-connections/monday/linked-records${qs}`
|
|
6545
6562
|
);
|
|
@@ -6562,10 +6579,10 @@ var MondayIntegrationApi = class extends BaseApiClient {
|
|
|
6562
6579
|
* connection is parked for re-authorization.
|
|
6563
6580
|
*/
|
|
6564
6581
|
async getMondaySyncLogs(wid, params) {
|
|
6565
|
-
const
|
|
6566
|
-
if (params?.pageSize)
|
|
6567
|
-
if (params?.cursor)
|
|
6568
|
-
const qs =
|
|
6582
|
+
const query2 = new URLSearchParams();
|
|
6583
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
6584
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
6585
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
6569
6586
|
return this.fetch(
|
|
6570
6587
|
`w/${wid}/app-connections/monday/sync/logs${qs}`
|
|
6571
6588
|
);
|
|
@@ -6580,13 +6597,13 @@ var InterventionRequestsApi = class extends BaseApiClient {
|
|
|
6580
6597
|
}
|
|
6581
6598
|
/** List intervention requests in a workspace, newest first. */
|
|
6582
6599
|
async getInterventionRequests(wid, params = {}) {
|
|
6583
|
-
const
|
|
6584
|
-
if (params.kind)
|
|
6585
|
-
if (params.openOnly)
|
|
6586
|
-
if (params.chatId !== void 0)
|
|
6587
|
-
if (params.unroutedOnly)
|
|
6588
|
-
if (params.limit !== void 0)
|
|
6589
|
-
const qs =
|
|
6600
|
+
const query2 = new URLSearchParams();
|
|
6601
|
+
if (params.kind) query2.set("kind", params.kind);
|
|
6602
|
+
if (params.openOnly) query2.set("openOnly", "true");
|
|
6603
|
+
if (params.chatId !== void 0) query2.set("chatId", String(params.chatId));
|
|
6604
|
+
if (params.unroutedOnly) query2.set("unroutedOnly", "true");
|
|
6605
|
+
if (params.limit !== void 0) query2.set("limit", String(params.limit));
|
|
6606
|
+
const qs = query2.toString();
|
|
6590
6607
|
return this.fetch(
|
|
6591
6608
|
`w/${wid}/intervention-requests${qs ? `?${qs}` : ""}`
|
|
6592
6609
|
);
|
|
@@ -6775,7 +6792,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6775
6792
|
async getOrgAiConnectorPolicy(orgIdOrUuid) {
|
|
6776
6793
|
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
|
|
6777
6794
|
}
|
|
6778
|
-
/** Set the AI connector mode: `any` or `
|
|
6795
|
+
/** Set the AI connector mode: `any`, `allowlist` or `none`. Requires `org:admin`. */
|
|
6779
6796
|
async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
|
|
6780
6797
|
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
|
|
6781
6798
|
method: "PUT",
|
|
@@ -7026,13 +7043,13 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7026
7043
|
* Search for available phone numbers to purchase from Twilio.
|
|
7027
7044
|
*/
|
|
7028
7045
|
async searchPhoneNumbers(orgUuid, params) {
|
|
7029
|
-
const
|
|
7030
|
-
if (params?.country)
|
|
7031
|
-
if (params?.numberType)
|
|
7032
|
-
if (params?.areaCode)
|
|
7033
|
-
if (params?.contains)
|
|
7034
|
-
if (params?.limit)
|
|
7035
|
-
const qs =
|
|
7046
|
+
const query2 = new URLSearchParams();
|
|
7047
|
+
if (params?.country) query2.set("country", params.country);
|
|
7048
|
+
if (params?.numberType) query2.set("number_type", params.numberType);
|
|
7049
|
+
if (params?.areaCode) query2.set("area_code", params.areaCode);
|
|
7050
|
+
if (params?.contains) query2.set("contains", params.contains);
|
|
7051
|
+
if (params?.limit) query2.set("limit", String(params.limit));
|
|
7052
|
+
const qs = query2.toString();
|
|
7036
7053
|
return this.fetch(
|
|
7037
7054
|
`o/${orgUuid}/phone-numbers/search${qs ? `?${qs}` : ""}`
|
|
7038
7055
|
);
|
|
@@ -7132,9 +7149,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7132
7149
|
* Disable email support for an org domain.
|
|
7133
7150
|
*/
|
|
7134
7151
|
async disableOrgDomainEmail(orgIdOrUuid, domainUuid, confirm = false) {
|
|
7135
|
-
const
|
|
7152
|
+
const query2 = `?confirm=${confirm ? "true" : "false"}`;
|
|
7136
7153
|
const response = await this.fetchRaw(
|
|
7137
|
-
`o/${orgIdOrUuid}/domains/${domainUuid}/email${
|
|
7154
|
+
`o/${orgIdOrUuid}/domains/${domainUuid}/email${query2}`,
|
|
7138
7155
|
{ method: "DELETE" },
|
|
7139
7156
|
[409]
|
|
7140
7157
|
);
|
|
@@ -7215,9 +7232,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7215
7232
|
* Disable custom site routing for an org domain.
|
|
7216
7233
|
*/
|
|
7217
7234
|
async disableOrgDomainSite(orgIdOrUuid, domainUuid, confirm = false) {
|
|
7218
|
-
const
|
|
7235
|
+
const query2 = `?confirm=${confirm ? "true" : "false"}`;
|
|
7219
7236
|
const response = await this.fetchRaw(
|
|
7220
|
-
`o/${orgIdOrUuid}/domains/${domainUuid}/site${
|
|
7237
|
+
`o/${orgIdOrUuid}/domains/${domainUuid}/site${query2}`,
|
|
7221
7238
|
{ method: "DELETE" },
|
|
7222
7239
|
[409]
|
|
7223
7240
|
);
|
|
@@ -7693,9 +7710,9 @@ var OrgApi = class extends BaseApiClient {
|
|
|
7693
7710
|
* endpoint and sit in a workspace it actually covers.
|
|
7694
7711
|
*/
|
|
7695
7712
|
async getOrgWebhookEventSample(orgIdOrUuid, eventType, endpointUuid) {
|
|
7696
|
-
const
|
|
7713
|
+
const query2 = endpointUuid ? `?endpointUuid=${encodeURIComponent(endpointUuid)}` : "";
|
|
7697
7714
|
return this.fetch(
|
|
7698
|
-
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${
|
|
7715
|
+
`o/${orgIdOrUuid}/webhooks/event-types/${encodeURIComponent(eventType)}/sample${query2}`
|
|
7699
7716
|
);
|
|
7700
7717
|
}
|
|
7701
7718
|
/**
|
|
@@ -7925,8 +7942,8 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
7925
7942
|
if (options?.isArchived !== void 0) {
|
|
7926
7943
|
params.set("is_archived", String(options.isArchived));
|
|
7927
7944
|
}
|
|
7928
|
-
const
|
|
7929
|
-
return this.fetch(`w/${wid}/phone-numbers${
|
|
7945
|
+
const query2 = params.toString();
|
|
7946
|
+
return this.fetch(`w/${wid}/phone-numbers${query2 ? `?${query2}` : ""}`);
|
|
7930
7947
|
}
|
|
7931
7948
|
/** List phone numbers available for provisioning. */
|
|
7932
7949
|
async getAvailablePhoneNumbers(wid) {
|
|
@@ -8083,9 +8100,9 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
8083
8100
|
async getPhoneNumberOutboundAnalyticsSummary(wid, id, filters) {
|
|
8084
8101
|
const params = new URLSearchParams();
|
|
8085
8102
|
appendAnalyticsFilters(params, filters);
|
|
8086
|
-
const
|
|
8103
|
+
const query2 = params.toString();
|
|
8087
8104
|
return this.fetch(
|
|
8088
|
-
`w/${wid}/phone-numbers/${id}/analytics/summary${
|
|
8105
|
+
`w/${wid}/phone-numbers/${id}/analytics/summary${query2 ? `?${query2}` : ""}`
|
|
8089
8106
|
);
|
|
8090
8107
|
}
|
|
8091
8108
|
/**
|
|
@@ -8396,24 +8413,24 @@ var QueriesApi = class extends BaseApiClient {
|
|
|
8396
8413
|
});
|
|
8397
8414
|
}
|
|
8398
8415
|
/** Structure / field / access / cost validation without execution. */
|
|
8399
|
-
async validateQuery(wid,
|
|
8416
|
+
async validateQuery(wid, query2) {
|
|
8400
8417
|
return this.fetch(`w/${wid}/queries/validate`, {
|
|
8401
8418
|
method: "POST",
|
|
8402
|
-
body: JSON.stringify({ query })
|
|
8419
|
+
body: JSON.stringify({ query: query2 })
|
|
8403
8420
|
});
|
|
8404
8421
|
}
|
|
8405
8422
|
/** Bounded sample run (limit capped server-side). */
|
|
8406
|
-
async previewQuery(wid,
|
|
8423
|
+
async previewQuery(wid, query2, mode) {
|
|
8407
8424
|
return this.fetch(`w/${wid}/queries/preview`, {
|
|
8408
8425
|
method: "POST",
|
|
8409
|
-
body: JSON.stringify({ query, mode })
|
|
8426
|
+
body: JSON.stringify({ query: query2, mode })
|
|
8410
8427
|
});
|
|
8411
8428
|
}
|
|
8412
8429
|
/** Execute a query (rows / count / aggregate). */
|
|
8413
|
-
async runQuery(wid,
|
|
8430
|
+
async runQuery(wid, query2, mode) {
|
|
8414
8431
|
return this.fetch(`w/${wid}/queries/run`, {
|
|
8415
8432
|
method: "POST",
|
|
8416
|
-
body: JSON.stringify({ query, mode })
|
|
8433
|
+
body: JSON.stringify({ query: query2, mode })
|
|
8417
8434
|
});
|
|
8418
8435
|
}
|
|
8419
8436
|
};
|
|
@@ -8474,10 +8491,10 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8474
8491
|
}
|
|
8475
8492
|
/** List qualifications in a workspace, paginated. */
|
|
8476
8493
|
async getQualifications(wid, params) {
|
|
8477
|
-
const
|
|
8478
|
-
if (params?.page !== void 0)
|
|
8479
|
-
if (params?.pageSize !== void 0)
|
|
8480
|
-
const qs =
|
|
8494
|
+
const query2 = new URLSearchParams();
|
|
8495
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
8496
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
8497
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8481
8498
|
return this.fetch(`w/${wid}/qualifications${qs}`);
|
|
8482
8499
|
}
|
|
8483
8500
|
/** Get a single qualification by ID. */
|
|
@@ -8492,9 +8509,9 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8492
8509
|
}
|
|
8493
8510
|
// ===== Scenarios =====
|
|
8494
8511
|
async listScenarios(wid, qualificationId, params) {
|
|
8495
|
-
const
|
|
8496
|
-
if (params?.includeArchived)
|
|
8497
|
-
const qs =
|
|
8512
|
+
const query2 = new URLSearchParams();
|
|
8513
|
+
if (params?.includeArchived) query2.set("include_archived", "true");
|
|
8514
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8498
8515
|
return this.fetch(`w/${wid}/qualifications/${qualificationId}/scenarios${qs}`);
|
|
8499
8516
|
}
|
|
8500
8517
|
async createScenario(wid, qualificationId, data) {
|
|
@@ -8527,19 +8544,19 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8527
8544
|
* `workflowRevisionId`. Omitting both keeps the unfiltered list.
|
|
8528
8545
|
*/
|
|
8529
8546
|
async listTestChatRuns(wid, workflowId, params) {
|
|
8530
|
-
const
|
|
8531
|
-
if (params?.scenarioId !== void 0)
|
|
8547
|
+
const query2 = new URLSearchParams();
|
|
8548
|
+
if (params?.scenarioId !== void 0) query2.set("scenarioId", String(params.scenarioId));
|
|
8532
8549
|
if (params?.assistantChatModelId !== void 0) {
|
|
8533
|
-
|
|
8550
|
+
query2.set("assistantChatModelId", params.assistantChatModelId);
|
|
8534
8551
|
}
|
|
8535
|
-
if (params?.limit !== void 0)
|
|
8552
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
8536
8553
|
if (params?.workflowRevisionId !== void 0) {
|
|
8537
|
-
|
|
8554
|
+
query2.set("workflow_revision_id", String(params.workflowRevisionId));
|
|
8538
8555
|
}
|
|
8539
8556
|
if (params?.includeEarlierRevisions !== void 0) {
|
|
8540
|
-
|
|
8557
|
+
query2.set("include_earlier_revisions", String(params.includeEarlierRevisions));
|
|
8541
8558
|
}
|
|
8542
|
-
const qs =
|
|
8559
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8543
8560
|
return this.fetch(
|
|
8544
8561
|
`w/${wid}/qualifications/workflows/${workflowId}/test-chat-runs${qs}`
|
|
8545
8562
|
);
|
|
@@ -8554,11 +8571,11 @@ var QualificationsApi = class extends BaseApiClient {
|
|
|
8554
8571
|
* revision it describes and whether it is the current one.
|
|
8555
8572
|
*/
|
|
8556
8573
|
async listScenarioHealthSummaries(wid, workflowId, params) {
|
|
8557
|
-
const
|
|
8574
|
+
const query2 = new URLSearchParams();
|
|
8558
8575
|
if (params?.workflowRevisionId !== void 0) {
|
|
8559
|
-
|
|
8576
|
+
query2.set("workflow_revision_id", String(params.workflowRevisionId));
|
|
8560
8577
|
}
|
|
8561
|
-
const qs =
|
|
8578
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8562
8579
|
return this.fetch(
|
|
8563
8580
|
`w/${wid}/qualifications/workflows/${workflowId}/scenario-health-summaries${qs}`
|
|
8564
8581
|
);
|
|
@@ -8762,9 +8779,9 @@ var RoutingRulesApi = class extends BaseApiClient {
|
|
|
8762
8779
|
async getRoutingRules(wid, filters) {
|
|
8763
8780
|
const params = new URLSearchParams();
|
|
8764
8781
|
appendFilters(params, filters);
|
|
8765
|
-
const
|
|
8782
|
+
const query2 = params.toString();
|
|
8766
8783
|
return this.fetch(
|
|
8767
|
-
`w/${wid}/routing${
|
|
8784
|
+
`w/${wid}/routing${query2 ? `?${query2}` : ""}`
|
|
8768
8785
|
);
|
|
8769
8786
|
}
|
|
8770
8787
|
/** Read one rule. Requires the rule's endpoint read permission (`phones:read`, or `inboxes:read`). */
|
|
@@ -8870,10 +8887,10 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
8870
8887
|
});
|
|
8871
8888
|
}
|
|
8872
8889
|
async getSalesforceReconciliationMatches(wid, params) {
|
|
8873
|
-
const
|
|
8874
|
-
if (params?.limit !== void 0)
|
|
8875
|
-
if (params?.offset !== void 0)
|
|
8876
|
-
const qs =
|
|
8890
|
+
const query2 = new URLSearchParams();
|
|
8891
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
8892
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
8893
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8877
8894
|
return this.fetch(
|
|
8878
8895
|
`w/${wid}/app-connections/salesforce/reconciliation/matches${qs}`
|
|
8879
8896
|
);
|
|
@@ -8910,11 +8927,11 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
8910
8927
|
});
|
|
8911
8928
|
}
|
|
8912
8929
|
async getLinkedSalesforceMembers(wid, params) {
|
|
8913
|
-
const
|
|
8914
|
-
if (params?.page !== void 0)
|
|
8915
|
-
if (params?.pageSize !== void 0)
|
|
8916
|
-
if (params?.search?.trim())
|
|
8917
|
-
const qs =
|
|
8930
|
+
const query2 = new URLSearchParams();
|
|
8931
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
8932
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
8933
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
8934
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8918
8935
|
return this.fetch(
|
|
8919
8936
|
`w/${wid}/app-connections/salesforce/reconciliation/linked${qs}`
|
|
8920
8937
|
);
|
|
@@ -8992,10 +9009,10 @@ var SalesforceApi = class extends BaseApiClient {
|
|
|
8992
9009
|
* connection is parked for re-authorization.
|
|
8993
9010
|
*/
|
|
8994
9011
|
async getSalesforceSyncLogs(wid, params) {
|
|
8995
|
-
const
|
|
8996
|
-
if (params?.pageSize)
|
|
8997
|
-
if (params?.cursor)
|
|
8998
|
-
const qs =
|
|
9012
|
+
const query2 = new URLSearchParams();
|
|
9013
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
9014
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
9015
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
8999
9016
|
return this.fetch(
|
|
9000
9017
|
`w/${wid}/app-connections/salesforce/sync/logs${qs}`
|
|
9001
9018
|
);
|
|
@@ -9035,12 +9052,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9035
9052
|
);
|
|
9036
9053
|
}
|
|
9037
9054
|
async getConnectionSyncCheckpoint(wid, connectionId, direction = "inbound", syncKey = "default") {
|
|
9038
|
-
const
|
|
9055
|
+
const query2 = new URLSearchParams({
|
|
9039
9056
|
direction,
|
|
9040
9057
|
sync_key: syncKey
|
|
9041
9058
|
});
|
|
9042
9059
|
return this.fetch(
|
|
9043
|
-
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${
|
|
9060
|
+
`w/${wid}/app-connections/${connectionId}/sync/checkpoint?${query2}`
|
|
9044
9061
|
);
|
|
9045
9062
|
}
|
|
9046
9063
|
/**
|
|
@@ -9090,9 +9107,9 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9090
9107
|
* ``boardId`` is only meaningful for multi-scope connectors (Monday).
|
|
9091
9108
|
*/
|
|
9092
9109
|
async clearConnectionMemberExclusion(wid, connectionId, memberId, options) {
|
|
9093
|
-
const
|
|
9110
|
+
const query2 = options?.boardId ? `?board_id=${encodeURIComponent(options.boardId)}` : "";
|
|
9094
9111
|
return this.fetch(
|
|
9095
|
-
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${
|
|
9112
|
+
`w/${wid}/app-connections/${connectionId}/member-exclusions/${memberId}${query2}`,
|
|
9096
9113
|
{ method: "DELETE" }
|
|
9097
9114
|
);
|
|
9098
9115
|
}
|
|
@@ -9184,12 +9201,12 @@ var ConnectionSyncApi = class extends BaseApiClient {
|
|
|
9184
9201
|
}
|
|
9185
9202
|
/** Vendor lists a `vendor_list` import can name (configuration only). */
|
|
9186
9203
|
async listSubsetImportVendorLists(wid, connectionId, options) {
|
|
9187
|
-
const
|
|
9204
|
+
const query2 = new URLSearchParams({
|
|
9188
9205
|
query: options?.query ?? "",
|
|
9189
9206
|
limit: String(options?.limit ?? 50)
|
|
9190
9207
|
});
|
|
9191
9208
|
return this.fetch(
|
|
9192
|
-
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${
|
|
9209
|
+
this.subsetImportsPath(wid, connectionId, `/vendor-lists?${query2}`)
|
|
9193
9210
|
);
|
|
9194
9211
|
}
|
|
9195
9212
|
/** Remote fields a `field_filter` import can name, with their operators. */
|
|
@@ -9251,10 +9268,10 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9251
9268
|
});
|
|
9252
9269
|
}
|
|
9253
9270
|
async getHubspotReconciliationMatches(wid, params) {
|
|
9254
|
-
const
|
|
9255
|
-
if (params?.limit !== void 0)
|
|
9256
|
-
if (params?.offset !== void 0)
|
|
9257
|
-
const qs =
|
|
9271
|
+
const query2 = new URLSearchParams();
|
|
9272
|
+
if (params?.limit !== void 0) query2.set("limit", String(params.limit));
|
|
9273
|
+
if (params?.offset !== void 0) query2.set("offset", String(params.offset));
|
|
9274
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9258
9275
|
return this.fetch(
|
|
9259
9276
|
`w/${wid}/app-connections/hubspot/reconciliation/matches${qs}`
|
|
9260
9277
|
);
|
|
@@ -9277,11 +9294,11 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9277
9294
|
});
|
|
9278
9295
|
}
|
|
9279
9296
|
async getLinkedHubspotMembers(wid, params) {
|
|
9280
|
-
const
|
|
9281
|
-
if (params?.page !== void 0)
|
|
9282
|
-
if (params?.pageSize !== void 0)
|
|
9283
|
-
if (params?.search?.trim())
|
|
9284
|
-
const qs =
|
|
9297
|
+
const query2 = new URLSearchParams();
|
|
9298
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
9299
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
9300
|
+
if (params?.search?.trim()) query2.set("search", params.search.trim());
|
|
9301
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9285
9302
|
return this.fetch(
|
|
9286
9303
|
`w/${wid}/app-connections/hubspot/reconciliation/linked${qs}`
|
|
9287
9304
|
);
|
|
@@ -9341,10 +9358,10 @@ var HubspotApi = class extends BaseApiClient {
|
|
|
9341
9358
|
* and Monday twins return), with cursor pagination.
|
|
9342
9359
|
*/
|
|
9343
9360
|
async getHubspotSyncLogs(wid, params) {
|
|
9344
|
-
const
|
|
9345
|
-
if (params?.pageSize)
|
|
9346
|
-
if (params?.cursor)
|
|
9347
|
-
const qs =
|
|
9361
|
+
const query2 = new URLSearchParams();
|
|
9362
|
+
if (params?.pageSize) query2.set("pageSize", String(params.pageSize));
|
|
9363
|
+
if (params?.cursor) query2.set("cursor", params.cursor);
|
|
9364
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
9348
9365
|
return this.fetch(
|
|
9349
9366
|
`w/${wid}/app-connections/hubspot/sync/logs${qs}`
|
|
9350
9367
|
);
|
|
@@ -9478,8 +9495,8 @@ var SitesApi = class extends BaseApiClient {
|
|
|
9478
9495
|
* (e.g. one the builder has selected but not yet saved).
|
|
9479
9496
|
*/
|
|
9480
9497
|
async getThemeSettings(wid, siteId, theme) {
|
|
9481
|
-
const
|
|
9482
|
-
return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${
|
|
9498
|
+
const query2 = theme ? `?theme=${encodeURIComponent(theme)}` : "";
|
|
9499
|
+
return this.fetch(`w/${wid}/sites/${siteId}/theme-settings${query2}`);
|
|
9483
9500
|
}
|
|
9484
9501
|
/** Save values for the active theme's settings (validated against the schema). */
|
|
9485
9502
|
async updateThemeSettings(wid, siteId, values) {
|
|
@@ -9625,9 +9642,9 @@ var SitesApi = class extends BaseApiClient {
|
|
|
9625
9642
|
if (parentId !== void 0 && parentId !== null) {
|
|
9626
9643
|
params.append("parent_id", parentId.toString());
|
|
9627
9644
|
}
|
|
9628
|
-
const
|
|
9645
|
+
const query2 = params.toString();
|
|
9629
9646
|
return this.fetch(
|
|
9630
|
-
`w/${wid}/sites/${siteId}/menu/items${
|
|
9647
|
+
`w/${wid}/sites/${siteId}/menu/items${query2 ? `?${query2}` : ""}`
|
|
9631
9648
|
);
|
|
9632
9649
|
}
|
|
9633
9650
|
/** Create a new menu item in a site's navigation. */
|
|
@@ -9841,8 +9858,8 @@ function supportRequestParams(params) {
|
|
|
9841
9858
|
if (params?.linearLinked !== void 0) {
|
|
9842
9859
|
searchParams.append("linearLinked", params.linearLinked.toString());
|
|
9843
9860
|
}
|
|
9844
|
-
const
|
|
9845
|
-
return
|
|
9861
|
+
const query2 = searchParams.toString();
|
|
9862
|
+
return query2 ? `?${query2}` : "";
|
|
9846
9863
|
}
|
|
9847
9864
|
var SupportRequestsApi = class extends BaseApiClient {
|
|
9848
9865
|
async listSupportRequests(params) {
|
|
@@ -10234,8 +10251,8 @@ function withFilters(params, options) {
|
|
|
10234
10251
|
return params;
|
|
10235
10252
|
}
|
|
10236
10253
|
function suffix(params) {
|
|
10237
|
-
const
|
|
10238
|
-
return
|
|
10254
|
+
const query2 = params.toString();
|
|
10255
|
+
return query2 ? `?${query2}` : "";
|
|
10239
10256
|
}
|
|
10240
10257
|
var TrackedLinksApi = class extends BaseApiClient {
|
|
10241
10258
|
/** Header counters plus whether shortening is configured and enabled. */
|
|
@@ -10368,8 +10385,8 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10368
10385
|
* for is the state it is in.
|
|
10369
10386
|
*/
|
|
10370
10387
|
async deleteJourneyDraft(wid, journeyId, expectedUpdatedAt) {
|
|
10371
|
-
const
|
|
10372
|
-
return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${
|
|
10388
|
+
const query2 = new URLSearchParams({ expectedUpdatedAt });
|
|
10389
|
+
return this.fetch(`w/${wid}/journeys/${journeyId}/draft?${query2.toString()}`, {
|
|
10373
10390
|
method: "DELETE"
|
|
10374
10391
|
});
|
|
10375
10392
|
}
|
|
@@ -10380,11 +10397,11 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10380
10397
|
* {@link getJourneyAuthoring} for the editor's expression-carrying shape.
|
|
10381
10398
|
*/
|
|
10382
10399
|
async getJourneys(wid, includeArchived = false, pageOpts) {
|
|
10383
|
-
const
|
|
10384
|
-
if (includeArchived)
|
|
10385
|
-
if (pageOpts?.page !== void 0)
|
|
10386
|
-
if (pageOpts?.pageSize !== void 0)
|
|
10387
|
-
const qs =
|
|
10400
|
+
const query2 = new URLSearchParams();
|
|
10401
|
+
if (includeArchived) query2.set("include_archived", "true");
|
|
10402
|
+
if (pageOpts?.page !== void 0) query2.set("page", String(pageOpts.page));
|
|
10403
|
+
if (pageOpts?.pageSize !== void 0) query2.set("pageSize", String(pageOpts.pageSize));
|
|
10404
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
10388
10405
|
return this.fetch(`w/${wid}/journeys${qs}`);
|
|
10389
10406
|
}
|
|
10390
10407
|
/**
|
|
@@ -10510,9 +10527,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10510
10527
|
* `additionalMembers` is the size of a batch about to be enrolled.
|
|
10511
10528
|
*/
|
|
10512
10529
|
async getJourneySendEstimate(wid, journeyId, additionalMembers = 0) {
|
|
10513
|
-
const
|
|
10530
|
+
const query2 = new URLSearchParams({ additionalMembers: String(additionalMembers) });
|
|
10514
10531
|
return this.fetch(
|
|
10515
|
-
`w/${wid}/journeys/${journeyId}/send-estimate?${
|
|
10532
|
+
`w/${wid}/journeys/${journeyId}/send-estimate?${query2.toString()}`
|
|
10516
10533
|
);
|
|
10517
10534
|
}
|
|
10518
10535
|
/** Create a step within a journey. */
|
|
@@ -10601,9 +10618,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10601
10618
|
qs.set("currentTaskId", String(params.currentTaskId));
|
|
10602
10619
|
if (params?.runtimeFailureEdgeId !== void 0)
|
|
10603
10620
|
qs.set("runtimeFailureEdgeId", String(params.runtimeFailureEdgeId));
|
|
10604
|
-
const
|
|
10621
|
+
const query2 = qs.toString();
|
|
10605
10622
|
return this.fetch(
|
|
10606
|
-
`w/${wid}/journeys/${journeyId}/members${
|
|
10623
|
+
`w/${wid}/journeys/${journeyId}/members${query2 ? `?${query2}` : ""}`
|
|
10607
10624
|
);
|
|
10608
10625
|
}
|
|
10609
10626
|
/** Enroll one or more members in a journey. */
|
|
@@ -10662,9 +10679,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10662
10679
|
if (params.zeroEmissionOnly !== void 0) {
|
|
10663
10680
|
qs.set("zeroEmissionOnly", String(params.zeroEmissionOnly));
|
|
10664
10681
|
}
|
|
10665
|
-
const
|
|
10682
|
+
const query2 = qs.toString();
|
|
10666
10683
|
return this.fetch(
|
|
10667
|
-
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (
|
|
10684
|
+
`w/${wid}/journeys/${journeyId}/enrollments/${memberJourneyId}/status-log` + (query2 ? `?${query2}` : "")
|
|
10668
10685
|
);
|
|
10669
10686
|
}
|
|
10670
10687
|
/** List members currently or historically associated with one journey step. */
|
|
@@ -10674,9 +10691,9 @@ var JourneysApi = class extends BaseApiClient {
|
|
|
10674
10691
|
if (params.mode) qs.set("mode", params.mode);
|
|
10675
10692
|
if (params.page) qs.set("page", String(params.page));
|
|
10676
10693
|
if (params.pageSize) qs.set("pageSize", String(params.pageSize));
|
|
10677
|
-
const
|
|
10694
|
+
const query2 = qs.toString();
|
|
10678
10695
|
return this.fetch(
|
|
10679
|
-
`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${
|
|
10696
|
+
`w/${wid}/journeys/${journeyId}/steps/${stepUuid}/members${query2 ? `?${query2}` : ""}`
|
|
10680
10697
|
);
|
|
10681
10698
|
}
|
|
10682
10699
|
/** Get member counts by status for each journey step. */
|
|
@@ -10786,8 +10803,8 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
10786
10803
|
* portion so the active count can be derived.
|
|
10787
10804
|
*/
|
|
10788
10805
|
async getWorkflowDiagram(wid, id, options = {}) {
|
|
10789
|
-
const
|
|
10790
|
-
return this.fetch(`w/${wid}/workflows/${id}/diagram${
|
|
10806
|
+
const query2 = options.includeArchived ? "?include_archived=true" : "";
|
|
10807
|
+
return this.fetch(`w/${wid}/workflows/${id}/diagram${query2}`);
|
|
10791
10808
|
}
|
|
10792
10809
|
/**
|
|
10793
10810
|
* The outline a Workflow's diagram is drawn from: its active Tasks, its
|
|
@@ -11101,36 +11118,36 @@ var WorkflowsApi = class extends BaseApiClient {
|
|
|
11101
11118
|
};
|
|
11102
11119
|
|
|
11103
11120
|
// src/api/workflow-notes.ts
|
|
11104
|
-
function notesPath(wid, workflowId, noteId,
|
|
11121
|
+
function notesPath(wid, workflowId, noteId, query2) {
|
|
11105
11122
|
const base = noteId == null ? `w/${wid}/workflows/${workflowId}/notes` : `w/${wid}/workflows/${workflowId}/notes/${noteId}`;
|
|
11106
|
-
if (
|
|
11123
|
+
if (query2?.workflowRevisionId == null) return base;
|
|
11107
11124
|
const params = new URLSearchParams({
|
|
11108
|
-
workflowRevisionId: String(
|
|
11125
|
+
workflowRevisionId: String(query2.workflowRevisionId)
|
|
11109
11126
|
});
|
|
11110
11127
|
return `${base}?${params.toString()}`;
|
|
11111
11128
|
}
|
|
11112
11129
|
var WorkflowNotesApi = class extends BaseApiClient {
|
|
11113
11130
|
/** List notes for a workflow root (draft unless `workflowRevisionId` is set). */
|
|
11114
|
-
async getWorkflowNotes(wid, workflowId,
|
|
11115
|
-
return this.fetch(notesPath(wid, workflowId, void 0,
|
|
11131
|
+
async getWorkflowNotes(wid, workflowId, query2) {
|
|
11132
|
+
return this.fetch(notesPath(wid, workflowId, void 0, query2));
|
|
11116
11133
|
}
|
|
11117
11134
|
/** Create a new note on a workflow's draft (or a pinned draft revision). */
|
|
11118
|
-
async createWorkflowNote(wid, workflowId, data,
|
|
11119
|
-
return this.fetch(notesPath(wid, workflowId, void 0,
|
|
11135
|
+
async createWorkflowNote(wid, workflowId, data, query2) {
|
|
11136
|
+
return this.fetch(notesPath(wid, workflowId, void 0, query2), {
|
|
11120
11137
|
method: "POST",
|
|
11121
11138
|
body: JSON.stringify(data)
|
|
11122
11139
|
});
|
|
11123
11140
|
}
|
|
11124
11141
|
/** Update an existing workflow note with partial data. */
|
|
11125
|
-
async updateWorkflowNote(wid, workflowId, noteId, data,
|
|
11126
|
-
return this.fetch(notesPath(wid, workflowId, noteId,
|
|
11142
|
+
async updateWorkflowNote(wid, workflowId, noteId, data, query2) {
|
|
11143
|
+
return this.fetch(notesPath(wid, workflowId, noteId, query2), {
|
|
11127
11144
|
method: "PUT",
|
|
11128
11145
|
body: JSON.stringify(data)
|
|
11129
11146
|
});
|
|
11130
11147
|
}
|
|
11131
11148
|
/** Delete a workflow note by ID. */
|
|
11132
|
-
async deleteWorkflowNote(wid, workflowId, noteId,
|
|
11133
|
-
return this.fetch(notesPath(wid, workflowId, noteId,
|
|
11149
|
+
async deleteWorkflowNote(wid, workflowId, noteId, query2) {
|
|
11150
|
+
return this.fetch(notesPath(wid, workflowId, noteId, query2), {
|
|
11134
11151
|
method: "DELETE"
|
|
11135
11152
|
});
|
|
11136
11153
|
}
|
|
@@ -11181,6 +11198,9 @@ var Scope = /* @__PURE__ */ ((Scope2) => {
|
|
|
11181
11198
|
Scope2["WORKSPACE_READ"] = "workspace:read";
|
|
11182
11199
|
Scope2["WORKSPACE_WRITE"] = "workspace:write";
|
|
11183
11200
|
Scope2["WORKSPACE_ADMIN"] = "workspace:admin";
|
|
11201
|
+
Scope2["MEDICAL_BILLING_READ"] = "medical_billing:read";
|
|
11202
|
+
Scope2["MEDICAL_BILLING_WRITE"] = "medical_billing:write";
|
|
11203
|
+
Scope2["MEDICAL_BILLING_ADMIN"] = "medical_billing:admin";
|
|
11184
11204
|
Scope2["MEMBERS_READ"] = "members:read";
|
|
11185
11205
|
Scope2["MEMBERS_WRITE"] = "members:write";
|
|
11186
11206
|
Scope2["MEMBERS_ADMIN"] = "members:admin";
|
|
@@ -11541,6 +11561,7 @@ var WorkspaceFeature = /* @__PURE__ */ ((WorkspaceFeature2) => {
|
|
|
11541
11561
|
WorkspaceFeature2["MONDAY"] = "monday";
|
|
11542
11562
|
WorkspaceFeature2["DOCUMO_FAX"] = "documo_fax";
|
|
11543
11563
|
WorkspaceFeature2["CLAIM_MD"] = "claim_md";
|
|
11564
|
+
WorkspaceFeature2["STEDI"] = "stedi";
|
|
11544
11565
|
WorkspaceFeature2["RESELL_PRODUCTS"] = "resell_products";
|
|
11545
11566
|
WorkspaceFeature2["SOC2_COMPLIANCE"] = "soc2_compliance";
|
|
11546
11567
|
WorkspaceFeature2["EHR_FHIR"] = "ehr_fhir";
|
|
@@ -11859,6 +11880,14 @@ var CapturedEffectKind = {
|
|
|
11859
11880
|
};
|
|
11860
11881
|
|
|
11861
11882
|
// src/types/generated/test_chat_run_inbound.ts
|
|
11883
|
+
var FaxDocumentRefusal = {
|
|
11884
|
+
fax_document_invalid: "fax_document_invalid"
|
|
11885
|
+
};
|
|
11886
|
+
var FaxRunRefusal = {
|
|
11887
|
+
fax_run_on_the_fax_channel: "fax_run_on_the_fax_channel",
|
|
11888
|
+
fax_run_is_manual: "fax_run_is_manual",
|
|
11889
|
+
fax_run_takes_no_identity: "fax_run_takes_no_identity"
|
|
11890
|
+
};
|
|
11862
11891
|
var InboundRefusal = {
|
|
11863
11892
|
run_not_found: "run_not_found",
|
|
11864
11893
|
run_ended: "run_ended",
|
|
@@ -12580,10 +12609,10 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12580
12609
|
}
|
|
12581
12610
|
/** List client workspaces managed by this reseller workspace, paginated. */
|
|
12582
12611
|
async getResellerWorkspaces(wid, params) {
|
|
12583
|
-
const
|
|
12584
|
-
if (params?.page !== void 0)
|
|
12585
|
-
if (params?.pageSize !== void 0)
|
|
12586
|
-
const qs =
|
|
12612
|
+
const query2 = new URLSearchParams();
|
|
12613
|
+
if (params?.page !== void 0) query2.set("page", String(params.page));
|
|
12614
|
+
if (params?.pageSize !== void 0) query2.set("pageSize", String(params.pageSize));
|
|
12615
|
+
const qs = query2.toString() ? `?${query2.toString()}` : "";
|
|
12587
12616
|
return this.fetch(`w/${wid}/reseller/workspaces${qs}`);
|
|
12588
12617
|
}
|
|
12589
12618
|
/** Create a new client workspace under a reseller workspace. */
|
|
@@ -12993,6 +13022,81 @@ var WorkspacesApi = class extends BaseApiClient {
|
|
|
12993
13022
|
}
|
|
12994
13023
|
};
|
|
12995
13024
|
|
|
13025
|
+
// src/api/medical-billing.ts
|
|
13026
|
+
function query(params) {
|
|
13027
|
+
const values = new URLSearchParams();
|
|
13028
|
+
if (params?.after != null) values.set("after", String(params.after));
|
|
13029
|
+
if (params?.limit != null) values.set("limit", String(params.limit));
|
|
13030
|
+
if (params?.memberId != null) values.set("member_id", String(params.memberId));
|
|
13031
|
+
if (params?.connectionId != null) values.set("connection_id", String(params.connectionId));
|
|
13032
|
+
return values.size ? `?${values}` : "";
|
|
13033
|
+
}
|
|
13034
|
+
var MedicalBillingApi = class extends BaseApiClient {
|
|
13035
|
+
listMedicalBillingConnections(wid) {
|
|
13036
|
+
return this.fetch(`w/${wid}/medical-billing/connections`);
|
|
13037
|
+
}
|
|
13038
|
+
submitMedicalClaim(wid, body) {
|
|
13039
|
+
return this.fetch(`w/${wid}/medical-billing/claim-submissions`, {
|
|
13040
|
+
method: "POST",
|
|
13041
|
+
body: JSON.stringify(body)
|
|
13042
|
+
});
|
|
13043
|
+
}
|
|
13044
|
+
listMedicalBillingProviders(wid, params) {
|
|
13045
|
+
return this.fetch(`w/${wid}/medical-billing/providers${query(params)}`);
|
|
13046
|
+
}
|
|
13047
|
+
listMedicalCoverages(wid, params) {
|
|
13048
|
+
return this.fetch(`w/${wid}/medical-billing/coverages${query(params)}`);
|
|
13049
|
+
}
|
|
13050
|
+
createMedicalCoverage(wid, body) {
|
|
13051
|
+
return this.fetch(`w/${wid}/medical-billing/coverages`, {
|
|
13052
|
+
method: "POST",
|
|
13053
|
+
body: JSON.stringify(body)
|
|
13054
|
+
});
|
|
13055
|
+
}
|
|
13056
|
+
updateMedicalCoverage(wid, id, body) {
|
|
13057
|
+
return this.fetch(`w/${wid}/medical-billing/coverages/${id}`, {
|
|
13058
|
+
method: "PATCH",
|
|
13059
|
+
body: JSON.stringify(body)
|
|
13060
|
+
});
|
|
13061
|
+
}
|
|
13062
|
+
setMedicalPayerRoute(wid, id, body) {
|
|
13063
|
+
return this.fetch(`w/${wid}/medical-billing/coverages/${id}/payer-routes`, {
|
|
13064
|
+
method: "POST",
|
|
13065
|
+
body: JSON.stringify(body)
|
|
13066
|
+
});
|
|
13067
|
+
}
|
|
13068
|
+
listMedicalCharges(wid, params) {
|
|
13069
|
+
return this.fetch(`w/${wid}/medical-billing/charges${query(params)}`);
|
|
13070
|
+
}
|
|
13071
|
+
createMedicalCharge(wid, body) {
|
|
13072
|
+
return this.fetch(`w/${wid}/medical-billing/charges`, {
|
|
13073
|
+
method: "POST",
|
|
13074
|
+
body: JSON.stringify(body)
|
|
13075
|
+
});
|
|
13076
|
+
}
|
|
13077
|
+
updateMedicalCharge(wid, id, body) {
|
|
13078
|
+
return this.fetch(`w/${wid}/medical-billing/charges/${id}`, {
|
|
13079
|
+
method: "PATCH",
|
|
13080
|
+
body: JSON.stringify(body)
|
|
13081
|
+
});
|
|
13082
|
+
}
|
|
13083
|
+
listMedicalClaims(wid, params) {
|
|
13084
|
+
return this.fetch(`w/${wid}/medical-billing/claims${query(params)}`);
|
|
13085
|
+
}
|
|
13086
|
+
getMedicalClaim(wid, id) {
|
|
13087
|
+
return this.fetch(`w/${wid}/medical-billing/claims/${encodeURIComponent(id)}`);
|
|
13088
|
+
}
|
|
13089
|
+
listMedicalEligibilityChecks(wid, params) {
|
|
13090
|
+
return this.fetch(`w/${wid}/medical-billing/eligibility-checks${query(params)}`);
|
|
13091
|
+
}
|
|
13092
|
+
listMedicalRemittances(wid, params) {
|
|
13093
|
+
return this.fetch(`w/${wid}/medical-billing/remittances${query(params)}`);
|
|
13094
|
+
}
|
|
13095
|
+
getMedicalRemittance(wid, id) {
|
|
13096
|
+
return this.fetch(`w/${wid}/medical-billing/remittances/${id}`);
|
|
13097
|
+
}
|
|
13098
|
+
};
|
|
13099
|
+
|
|
12996
13100
|
// src/types/generated/bundle_contract.ts
|
|
12997
13101
|
var BundleGrantRequestGranteeType = {
|
|
12998
13102
|
organization: "organization",
|
|
@@ -13132,6 +13236,8 @@ function createApiModules(apiKey, baseUrl, customFetch) {
|
|
|
13132
13236
|
healthie: new HealthieApi(apiKey, baseUrl, customFetch),
|
|
13133
13237
|
documoFax: new DocumoFaxApi(apiKey, baseUrl, customFetch),
|
|
13134
13238
|
claimMd: new ClaimMdApi(apiKey, baseUrl, customFetch),
|
|
13239
|
+
stedi: new StediApi(apiKey, baseUrl, customFetch),
|
|
13240
|
+
medicalBilling: new MedicalBillingApi(apiKey, baseUrl, customFetch),
|
|
13135
13241
|
hubspot: new HubspotApi(apiKey, baseUrl, customFetch),
|
|
13136
13242
|
features: new FeaturesApi(apiKey, baseUrl, customFetch),
|
|
13137
13243
|
files: new FilesApi(apiKey, baseUrl, customFetch),
|
|
@@ -13582,6 +13688,23 @@ var WORKSPACE_METHOD_NAMES = [
|
|
|
13582
13688
|
"getDiscordGuilds",
|
|
13583
13689
|
"getDiscordThreads",
|
|
13584
13690
|
"getClaimMdStatus",
|
|
13691
|
+
"listMedicalBillingConnections",
|
|
13692
|
+
"submitMedicalClaim",
|
|
13693
|
+
"listMedicalBillingProviders",
|
|
13694
|
+
"listMedicalCoverages",
|
|
13695
|
+
"createMedicalCoverage",
|
|
13696
|
+
"updateMedicalCoverage",
|
|
13697
|
+
"setMedicalPayerRoute",
|
|
13698
|
+
"listMedicalCharges",
|
|
13699
|
+
"createMedicalCharge",
|
|
13700
|
+
"updateMedicalCharge",
|
|
13701
|
+
"listMedicalClaims",
|
|
13702
|
+
"getMedicalClaim",
|
|
13703
|
+
"listMedicalEligibilityChecks",
|
|
13704
|
+
"listMedicalRemittances",
|
|
13705
|
+
"getMedicalRemittance",
|
|
13706
|
+
"getStediConnections",
|
|
13707
|
+
"getStediConnectionStatus",
|
|
13585
13708
|
"getDocumoFaxSetup",
|
|
13586
13709
|
"listDocumoFaxes",
|
|
13587
13710
|
"getDocumoFaxStatus",
|
|
@@ -14991,7 +15114,7 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
14991
15114
|
}
|
|
14992
15115
|
|
|
14993
15116
|
// src/client/bindings/integrations.ts
|
|
14994
|
-
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
15117
|
+
function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackApps, teamsApps, fhirConnections, patientSyncConnections, healthie, documoFax, claimMd, stedi, salesforce, hubspot, appConnections, connectionSync, confluence) {
|
|
14995
15118
|
target.getMondayBoards = mondayIntegration.getBoards.bind(mondayIntegration);
|
|
14996
15119
|
target.getMondayBoardColumns = mondayIntegration.getBoardColumns.bind(mondayIntegration);
|
|
14997
15120
|
target.getMondayBoardGroups = mondayIntegration.getBoardGroups.bind(mondayIntegration);
|
|
@@ -15103,6 +15226,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
15103
15226
|
target.installClaimMd = claimMd.installClaimMd.bind(claimMd);
|
|
15104
15227
|
target.configureClaimMd = claimMd.configureClaimMd.bind(claimMd);
|
|
15105
15228
|
target.verifyClaimMdKey = claimMd.verifyClaimMdKey.bind(claimMd);
|
|
15229
|
+
target.getStediConnections = stedi.getStediConnections.bind(stedi);
|
|
15230
|
+
target.getStediConnectionStatus = stedi.getStediConnectionStatus.bind(stedi);
|
|
15106
15231
|
target.configureHealthie = healthie.configureHealthie.bind(healthie);
|
|
15107
15232
|
target.getHealthieStatus = healthie.getHealthieStatus.bind(healthie);
|
|
15108
15233
|
target.listHealthieProviders = healthie.listHealthieProviders.bind(healthie);
|
|
@@ -15520,6 +15645,21 @@ var GravityRailClient = class {
|
|
|
15520
15645
|
// WorkspaceInvitations is exposed publicly for backward compatibility
|
|
15521
15646
|
workspaceInvitations;
|
|
15522
15647
|
// Store all API modules for cross-cutting operations
|
|
15648
|
+
listMedicalBillingProviders;
|
|
15649
|
+
listMedicalCoverages;
|
|
15650
|
+
createMedicalCoverage;
|
|
15651
|
+
updateMedicalCoverage;
|
|
15652
|
+
setMedicalPayerRoute;
|
|
15653
|
+
listMedicalCharges;
|
|
15654
|
+
createMedicalCharge;
|
|
15655
|
+
updateMedicalCharge;
|
|
15656
|
+
listMedicalClaims;
|
|
15657
|
+
getMedicalClaim;
|
|
15658
|
+
listMedicalEligibilityChecks;
|
|
15659
|
+
listMedicalRemittances;
|
|
15660
|
+
getMedicalRemittance;
|
|
15661
|
+
listMedicalBillingConnections;
|
|
15662
|
+
submitMedicalClaim;
|
|
15523
15663
|
apis;
|
|
15524
15664
|
// Tasks API
|
|
15525
15665
|
getTasks;
|
|
@@ -16603,6 +16743,8 @@ var GravityRailClient = class {
|
|
|
16603
16743
|
installClaimMd;
|
|
16604
16744
|
configureClaimMd;
|
|
16605
16745
|
verifyClaimMdKey;
|
|
16746
|
+
getStediConnections;
|
|
16747
|
+
getStediConnectionStatus;
|
|
16606
16748
|
configurePatientSync;
|
|
16607
16749
|
getPatientSyncStatus;
|
|
16608
16750
|
deletePatientSyncConnection;
|
|
@@ -16775,6 +16917,39 @@ var GravityRailClient = class {
|
|
|
16775
16917
|
constructor(apiKey, baseUrl, customFetch) {
|
|
16776
16918
|
const apis = createApiModules(apiKey, baseUrl, customFetch);
|
|
16777
16919
|
this.apis = apis;
|
|
16920
|
+
this.listMedicalBillingConnections = apis.medicalBilling.listMedicalBillingConnections.bind(
|
|
16921
|
+
apis.medicalBilling
|
|
16922
|
+
);
|
|
16923
|
+
this.submitMedicalClaim = apis.medicalBilling.submitMedicalClaim.bind(apis.medicalBilling);
|
|
16924
|
+
this.listMedicalBillingProviders = apis.medicalBilling.listMedicalBillingProviders.bind(
|
|
16925
|
+
apis.medicalBilling
|
|
16926
|
+
);
|
|
16927
|
+
this.listMedicalCoverages = apis.medicalBilling.listMedicalCoverages.bind(
|
|
16928
|
+
apis.medicalBilling
|
|
16929
|
+
);
|
|
16930
|
+
this.createMedicalCoverage = apis.medicalBilling.createMedicalCoverage.bind(
|
|
16931
|
+
apis.medicalBilling
|
|
16932
|
+
);
|
|
16933
|
+
this.updateMedicalCoverage = apis.medicalBilling.updateMedicalCoverage.bind(
|
|
16934
|
+
apis.medicalBilling
|
|
16935
|
+
);
|
|
16936
|
+
this.setMedicalPayerRoute = apis.medicalBilling.setMedicalPayerRoute.bind(
|
|
16937
|
+
apis.medicalBilling
|
|
16938
|
+
);
|
|
16939
|
+
this.listMedicalCharges = apis.medicalBilling.listMedicalCharges.bind(apis.medicalBilling);
|
|
16940
|
+
this.createMedicalCharge = apis.medicalBilling.createMedicalCharge.bind(apis.medicalBilling);
|
|
16941
|
+
this.updateMedicalCharge = apis.medicalBilling.updateMedicalCharge.bind(apis.medicalBilling);
|
|
16942
|
+
this.listMedicalClaims = apis.medicalBilling.listMedicalClaims.bind(apis.medicalBilling);
|
|
16943
|
+
this.getMedicalClaim = apis.medicalBilling.getMedicalClaim.bind(apis.medicalBilling);
|
|
16944
|
+
this.listMedicalEligibilityChecks = apis.medicalBilling.listMedicalEligibilityChecks.bind(
|
|
16945
|
+
apis.medicalBilling
|
|
16946
|
+
);
|
|
16947
|
+
this.listMedicalRemittances = apis.medicalBilling.listMedicalRemittances.bind(
|
|
16948
|
+
apis.medicalBilling
|
|
16949
|
+
);
|
|
16950
|
+
this.getMedicalRemittance = apis.medicalBilling.getMedicalRemittance.bind(
|
|
16951
|
+
apis.medicalBilling
|
|
16952
|
+
);
|
|
16778
16953
|
this.workspaceInvitations = apis.workspaceInvitations;
|
|
16779
16954
|
bindTasksMethods(this, apis.tasks, apis.abilities);
|
|
16780
16955
|
bindChatsMethods(this, apis.chats);
|
|
@@ -16840,6 +17015,7 @@ var GravityRailClient = class {
|
|
|
16840
17015
|
apis.healthie,
|
|
16841
17016
|
apis.documoFax,
|
|
16842
17017
|
apis.claimMd,
|
|
17018
|
+
apis.stedi,
|
|
16843
17019
|
apis.salesforce,
|
|
16844
17020
|
apis.hubspot,
|
|
16845
17021
|
apis.appConnections,
|
|
@@ -17040,8 +17216,8 @@ var MemberFilterBuilder = class extends WorkspaceBuilderResource {
|
|
|
17040
17216
|
* Anywhere the IR wants a numeric id you may pass the builder that will own
|
|
17041
17217
|
* it (e.g. a label in a `member.labelId` value); refs resolve at apply time.
|
|
17042
17218
|
*/
|
|
17043
|
-
setQuery(
|
|
17044
|
-
this.query =
|
|
17219
|
+
setQuery(query2) {
|
|
17220
|
+
this.query = query2;
|
|
17045
17221
|
return this;
|
|
17046
17222
|
}
|
|
17047
17223
|
planLine() {
|
|
@@ -19714,10 +19890,60 @@ var SiteDnsRecordType = {
|
|
|
19714
19890
|
TXT: "TXT"
|
|
19715
19891
|
};
|
|
19716
19892
|
|
|
19893
|
+
// src/types/generated/phone_voice_trust.ts
|
|
19894
|
+
var VoiceIntegrityUseCase = {
|
|
19895
|
+
"Identify_&_Verification": "Identify & Verification",
|
|
19896
|
+
Asset_Management: "Asset Management",
|
|
19897
|
+
Lead_Generation: "Lead Generation",
|
|
19898
|
+
Intelligent_Routing: "Intelligent Routing",
|
|
19899
|
+
Appointment_SchedulingDE: "Appointment SchedulingDE",
|
|
19900
|
+
Customer_Support: "Customer Support",
|
|
19901
|
+
"Self-Service": "Self-Service",
|
|
19902
|
+
Automated_Support: "Automated Support",
|
|
19903
|
+
Appointment_Reminders: "Appointment Reminders",
|
|
19904
|
+
Employee_Notifications: "Employee Notifications",
|
|
19905
|
+
Delivery_Notifications: "Delivery Notifications",
|
|
19906
|
+
Emergency_Notifications: "Emergency Notifications",
|
|
19907
|
+
Contactless_Delivery: "Contactless Delivery",
|
|
19908
|
+
Order_Notifications: "Order Notifications",
|
|
19909
|
+
Service_Alerts: "Service Alerts",
|
|
19910
|
+
Purchase_Confirmation: "Purchase Confirmation",
|
|
19911
|
+
Mass_Alerts: "Mass Alerts",
|
|
19912
|
+
Fraud_Alerts: "Fraud Alerts",
|
|
19913
|
+
Contact_Tracing: "Contact Tracing",
|
|
19914
|
+
Lead_Management: "Lead Management",
|
|
19915
|
+
Lead_Nurturing: "Lead Nurturing",
|
|
19916
|
+
Telemarketing: "Telemarketing",
|
|
19917
|
+
Marketing_Events: "Marketing Events",
|
|
19918
|
+
Rewards_Program: "Rewards Program",
|
|
19919
|
+
Lead_Alerts: "Lead Alerts",
|
|
19920
|
+
Lead_Distribution: "Lead Distribution",
|
|
19921
|
+
Abandoned_Cart: "Abandoned Cart",
|
|
19922
|
+
Call_Tracking: "Call Tracking",
|
|
19923
|
+
Outbound_Dialer: "Outbound Dialer",
|
|
19924
|
+
Click_to_Call: "Click to Call",
|
|
19925
|
+
Phone_System: "Phone System",
|
|
19926
|
+
"Meetings/Ccollaboration": "Meetings/Ccollaboration",
|
|
19927
|
+
Telehealth: "Telehealth",
|
|
19928
|
+
Distance_Learning: "Distance Learning",
|
|
19929
|
+
Shift_Management: "Shift Management",
|
|
19930
|
+
Field_Notifications: "Field Notifications",
|
|
19931
|
+
"Dating/Social": "Dating/Social",
|
|
19932
|
+
Remote_appointments: "Remote appointments",
|
|
19933
|
+
Group_Messaging: "Group Messaging",
|
|
19934
|
+
Exam_Proctoring: "Exam Proctoring",
|
|
19935
|
+
Tutoring: "Tutoring",
|
|
19936
|
+
"Therapy_(Individual+Group)": "Therapy (Individual+Group)",
|
|
19937
|
+
Pharmacy: "Pharmacy",
|
|
19938
|
+
First_Responder: "First Responder",
|
|
19939
|
+
"Survey/Research": "Survey/Research"
|
|
19940
|
+
};
|
|
19941
|
+
|
|
19717
19942
|
// src/types/generated/ai_connector_policy.ts
|
|
19718
19943
|
var AiConnectorPolicy = {
|
|
19719
19944
|
any: "any",
|
|
19720
|
-
allowlist: "allowlist"
|
|
19945
|
+
allowlist: "allowlist",
|
|
19946
|
+
none: "none"
|
|
19721
19947
|
};
|
|
19722
19948
|
|
|
19723
19949
|
// src/types/generated/site.ts
|
|
@@ -20220,6 +20446,7 @@ var EntityKind = {
|
|
|
20220
20446
|
var ScopeCategory = /* @__PURE__ */ ((ScopeCategory2) => {
|
|
20221
20447
|
ScopeCategory2["WORKSPACE"] = "workspace";
|
|
20222
20448
|
ScopeCategory2["MEMBERS"] = "members";
|
|
20449
|
+
ScopeCategory2["MEDICAL_BILLING"] = "medical_billing";
|
|
20223
20450
|
ScopeCategory2["MEMBER_ROLES"] = "member_roles";
|
|
20224
20451
|
ScopeCategory2["CHATS"] = "chats";
|
|
20225
20452
|
ScopeCategory2["DM"] = "dm";
|
|
@@ -20291,6 +20518,24 @@ var SCOPES = {
|
|
|
20291
20518
|
implies: ["members:write"],
|
|
20292
20519
|
dangerous: true
|
|
20293
20520
|
},
|
|
20521
|
+
"medical_billing:read": {
|
|
20522
|
+
name: "medical_billing:read",
|
|
20523
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
20524
|
+
description: "View medical billing coverage, charges and claims"
|
|
20525
|
+
},
|
|
20526
|
+
"medical_billing:write": {
|
|
20527
|
+
name: "medical_billing:write",
|
|
20528
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
20529
|
+
description: "Create and update medical billing and submit claims",
|
|
20530
|
+
implies: ["medical_billing:read"]
|
|
20531
|
+
},
|
|
20532
|
+
"medical_billing:admin": {
|
|
20533
|
+
name: "medical_billing:admin",
|
|
20534
|
+
category: "medical_billing" /* MEDICAL_BILLING */,
|
|
20535
|
+
description: "Administer medical billing",
|
|
20536
|
+
implies: ["medical_billing:write"],
|
|
20537
|
+
dangerous: true
|
|
20538
|
+
},
|
|
20294
20539
|
// =========================================================================
|
|
20295
20540
|
// MEMBER ROLES
|
|
20296
20541
|
// =========================================================================
|
|
@@ -21154,6 +21399,8 @@ function pathDraftToStorage(draft, original) {
|
|
|
21154
21399
|
EventRuleActionType,
|
|
21155
21400
|
EventRuleEventType,
|
|
21156
21401
|
EventRuleObjectType,
|
|
21402
|
+
FaxDocumentRefusal,
|
|
21403
|
+
FaxRunRefusal,
|
|
21157
21404
|
FeatureCategory,
|
|
21158
21405
|
FeatureVisibility,
|
|
21159
21406
|
FeedCursorRejection,
|
|
@@ -21181,6 +21428,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21181
21428
|
MAX_EMAIL_SEND_RECIPIENTS,
|
|
21182
21429
|
MEMBER_RELATIONSHIP_KINDS,
|
|
21183
21430
|
McpServerState,
|
|
21431
|
+
MedicalBillingApi,
|
|
21184
21432
|
MemberFeature,
|
|
21185
21433
|
MemberFilterBuilder,
|
|
21186
21434
|
MemberImportIssueCode,
|
|
@@ -21264,6 +21512,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21264
21512
|
SendingStopState,
|
|
21265
21513
|
SetInstallationPolicyRequestUpgradePolicy,
|
|
21266
21514
|
SiteDnsRecordType,
|
|
21515
|
+
StediApi,
|
|
21267
21516
|
SupervisorsApi,
|
|
21268
21517
|
TTS_MODEL_AWS_POLLY_GENERATIVE,
|
|
21269
21518
|
TTS_MODEL_AWS_POLLY_NEURAL,
|
|
@@ -21286,6 +21535,7 @@ function pathDraftToStorage(draft, original) {
|
|
|
21286
21535
|
UpdateMemberContactPointRequestContactType,
|
|
21287
21536
|
UpdateMemberContactPointRequestPurpose,
|
|
21288
21537
|
UpdateMemberContactPointRequestSharing,
|
|
21538
|
+
VoiceIntegrityUseCase,
|
|
21289
21539
|
WIDGET_SLUGS,
|
|
21290
21540
|
WorkflowBuilder,
|
|
21291
21541
|
WorkflowRoutingMode,
|