@spoketech/hub-client 0.1.19 → 0.1.20
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.ts +386 -140
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,13 @@ import * as OpenApi from "@effect/platform/OpenApi";
|
|
|
17
17
|
// ../contracts/src/constants.ts
|
|
18
18
|
var organizationStatuses = ["active", "archived"];
|
|
19
19
|
var memberStatuses = ["active", "archived"];
|
|
20
|
-
var memberComputedStatuses = [
|
|
20
|
+
var memberComputedStatuses = [
|
|
21
|
+
"active",
|
|
22
|
+
"active-expired",
|
|
23
|
+
"suspended",
|
|
24
|
+
"expired",
|
|
25
|
+
"archived"
|
|
26
|
+
];
|
|
21
27
|
var memberRecordModes = ["local", "source_managed"];
|
|
22
28
|
var memberPreferredContactMethods = ["sms", "email"];
|
|
23
29
|
var memberCreatedOrigins = [
|
|
@@ -555,7 +561,7 @@ var MemberSchema = Schema2.Struct({
|
|
|
555
561
|
organizationId: Schema2.String,
|
|
556
562
|
organizationMemberSourceId: NullableString,
|
|
557
563
|
status: Schema2.Literal(...memberComputedStatuses).annotations({
|
|
558
|
-
description: "Computed member status for display and filtering. `active`
|
|
564
|
+
description: "Computed member status for display and filtering. `active` means a non-suspended member has not expired, `active-expired` means a non-suspended member has expired but remains within the organization's grace period, `suspended` reflects suspended non-archived members, `expired` means a non-suspended member's grace period has elapsed, and `archived` is the stored archived state."
|
|
559
565
|
}),
|
|
560
566
|
isSuspended: Schema2.Boolean,
|
|
561
567
|
recordMode: Schema2.Literal(...memberRecordModes),
|
|
@@ -847,7 +853,7 @@ var OrganizationMembersListUrlParamsSchema = Schema2.Struct({
|
|
|
847
853
|
),
|
|
848
854
|
memberStatus: Schema2.optional(
|
|
849
855
|
OrganizationMembersStatusFilterSchema.annotations({
|
|
850
|
-
description: "Computed member status filter. `notArchived` returns every non-archived member, `active`
|
|
856
|
+
description: "Computed member status filter. `notArchived` returns every non-archived member, `active` returns members with `active` or `active-expired` status, `suspended` returns suspended non-archived members, and `expired` returns members whose grace period has elapsed.",
|
|
851
857
|
example: "active"
|
|
852
858
|
})
|
|
853
859
|
),
|
|
@@ -2669,6 +2675,7 @@ var OrganizationMemberSyncRunSchema = Schema2.Struct({
|
|
|
2669
2675
|
fileName: NullableString,
|
|
2670
2676
|
startedAt: TimestampSchema,
|
|
2671
2677
|
pickedUpAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
2678
|
+
heartbeatAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
2672
2679
|
completedAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
2673
2680
|
organizationMemberSourceAgentId: Schema2.Union(Schema2.String, Schema2.Null),
|
|
2674
2681
|
cursorBefore: Schema2.Union(JsonObjectSchema, Schema2.Null),
|
|
@@ -4500,6 +4507,19 @@ var onsiteAgentsGroup = HttpApiGroup.make("onsiteAgents").add(
|
|
|
4500
4507
|
summary: "Submit an Ensure Active Membership terminal outcome"
|
|
4501
4508
|
})
|
|
4502
4509
|
)
|
|
4510
|
+
).add(
|
|
4511
|
+
HttpApiEndpoint.post(
|
|
4512
|
+
"startOnsiteAgentEnsureActiveMembership",
|
|
4513
|
+
"/onsite-agent/ensure-active-membership-commands/:commandId/start"
|
|
4514
|
+
).setPath(
|
|
4515
|
+
Schema2.Struct({
|
|
4516
|
+
commandId: HttpApiSchema2.param("commandId", Schema2.String)
|
|
4517
|
+
})
|
|
4518
|
+
).addSuccess(EnsureActiveMembershipWorkflowProgressSchema).annotateContext(
|
|
4519
|
+
OpenApi.annotations({
|
|
4520
|
+
summary: "Claim an Ensure Active Membership identity lease before execution"
|
|
4521
|
+
})
|
|
4522
|
+
)
|
|
4503
4523
|
).add(
|
|
4504
4524
|
HttpApiEndpoint.post(
|
|
4505
4525
|
"heartbeatOnsiteAgentEnsureActiveMembership",
|