@spoketech/hub-client 0.4.0 → 0.6.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/README.md +114 -5
- package/dist/index.d.ts +931 -25
- package/dist/index.js +225 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -467,7 +467,10 @@ var organizationMemberSourceManualTransports = ["csv_bucket"];
|
|
|
467
467
|
var organizationMemberSourceLiveTransports = ["fbi"];
|
|
468
468
|
var organizationMemberSourceStatuses = ["active", "paused", "disabled"];
|
|
469
469
|
var organizationMemberSourceAgentStatuses = ["active", "paused", "disabled"];
|
|
470
|
-
var organizationMemberSourceAgentCapabilities = [
|
|
470
|
+
var organizationMemberSourceAgentCapabilities = [
|
|
471
|
+
"ensure_active_membership",
|
|
472
|
+
"ensure_active_membership_v2"
|
|
473
|
+
];
|
|
471
474
|
var organizationMemberSourceWebhookStatuses = ["active", "disabled"];
|
|
472
475
|
var organizationMemberSourceWebhookDeliveryStatuses = ["success", "failure"];
|
|
473
476
|
var organizationProductWebhookStatuses = ["active", "disabled"];
|
|
@@ -531,6 +534,7 @@ var ensureActiveMembershipOutcomes = [
|
|
|
531
534
|
"created",
|
|
532
535
|
"matched_active",
|
|
533
536
|
"renewed_existing",
|
|
537
|
+
"renewal_required",
|
|
534
538
|
"ambiguous_identity_match",
|
|
535
539
|
"unsupported_source_status",
|
|
536
540
|
"indeterminate_membership_expiry",
|
|
@@ -1047,6 +1051,10 @@ var SourceMembershipObservationFields = {
|
|
|
1047
1051
|
description: "Whether a confirmed Active source membership is past its paid-until instant. Null when the source membership or expiry is indeterminate."
|
|
1048
1052
|
})
|
|
1049
1053
|
};
|
|
1054
|
+
var MemberReplacementStatusSchema = Schema4.Struct({
|
|
1055
|
+
replacementMemberId: Schema4.String,
|
|
1056
|
+
delivered: Schema4.Boolean
|
|
1057
|
+
});
|
|
1050
1058
|
var MemberSchema = Schema4.Struct({
|
|
1051
1059
|
id: Schema4.String,
|
|
1052
1060
|
organizationId: Schema4.String,
|
|
@@ -1402,6 +1410,30 @@ var OrganizationMemberSyncRunsListUrlParamsSchema = Schema4.Struct({
|
|
|
1402
1410
|
{
|
|
1403
1411
|
example: "5"
|
|
1404
1412
|
}
|
|
1413
|
+
),
|
|
1414
|
+
status: optionalQueryString(
|
|
1415
|
+
"Comma-separated statuses to include. Omit to include every status.",
|
|
1416
|
+
{ example: "failure,partial_failure" }
|
|
1417
|
+
),
|
|
1418
|
+
from: optionalQueryString(
|
|
1419
|
+
"Only include records started at or after this ISO-8601 instant.",
|
|
1420
|
+
{ example: "2026-11-01T00:00:00.000Z" }
|
|
1421
|
+
),
|
|
1422
|
+
to: optionalQueryString(
|
|
1423
|
+
"Only include records started at or before this ISO-8601 instant.",
|
|
1424
|
+
{ example: "2026-11-30T23:59:59.999Z" }
|
|
1425
|
+
),
|
|
1426
|
+
sort: optionalQueryString(
|
|
1427
|
+
"`newest` (default) or `oldest` first.",
|
|
1428
|
+
{ example: "oldest" }
|
|
1429
|
+
),
|
|
1430
|
+
trigger: optionalQueryString(
|
|
1431
|
+
"Comma-separated trigger kinds to include: manual, scheduled, bucket, live_feed.",
|
|
1432
|
+
{ example: "manual,scheduled" }
|
|
1433
|
+
),
|
|
1434
|
+
hideUnchanged: optionalQueryString(
|
|
1435
|
+
"`true` to leave out successful runs that inserted, updated and archived nothing and reported no errors.",
|
|
1436
|
+
{ example: "true" }
|
|
1405
1437
|
)
|
|
1406
1438
|
});
|
|
1407
1439
|
var MemberResponseModeUrlParamsSchema = Schema4.Struct({
|
|
@@ -1528,6 +1560,26 @@ var OrganizationMemberSourceCommandsListUrlParamsSchema = Schema4.Struct({
|
|
|
1528
1560
|
{
|
|
1529
1561
|
example: "25"
|
|
1530
1562
|
}
|
|
1563
|
+
),
|
|
1564
|
+
status: optionalQueryString(
|
|
1565
|
+
"Comma-separated statuses to include. Omit to include every status.",
|
|
1566
|
+
{ example: "failure,partial_failure" }
|
|
1567
|
+
),
|
|
1568
|
+
from: optionalQueryString(
|
|
1569
|
+
"Only include records requested at or after this ISO-8601 instant.",
|
|
1570
|
+
{ example: "2026-11-01T00:00:00.000Z" }
|
|
1571
|
+
),
|
|
1572
|
+
to: optionalQueryString(
|
|
1573
|
+
"Only include records requested at or before this ISO-8601 instant.",
|
|
1574
|
+
{ example: "2026-11-30T23:59:59.999Z" }
|
|
1575
|
+
),
|
|
1576
|
+
sort: optionalQueryString(
|
|
1577
|
+
"`newest` (default) or `oldest` first.",
|
|
1578
|
+
{ example: "oldest" }
|
|
1579
|
+
),
|
|
1580
|
+
kind: optionalQueryString(
|
|
1581
|
+
"Comma-separated command kinds to include, such as lookup_member or update_member.",
|
|
1582
|
+
{ example: "lookup_member" }
|
|
1531
1583
|
)
|
|
1532
1584
|
});
|
|
1533
1585
|
var ServiceClientsListUrlParamsSchema = Schema4.Struct({
|
|
@@ -2989,6 +3041,22 @@ var OrganizationMemberRatingGradeSchema = Schema4.Struct({
|
|
|
2989
3041
|
ratingGrade: NullableString,
|
|
2990
3042
|
ratingGradeId: NullableString
|
|
2991
3043
|
});
|
|
3044
|
+
var OrganizationMemberSummarySchema = Schema4.Struct({
|
|
3045
|
+
organizationId: Schema4.String,
|
|
3046
|
+
total: Schema4.Number.annotate({
|
|
3047
|
+
description: "Members that have not been deleted, including archived members."
|
|
3048
|
+
}),
|
|
3049
|
+
notArchived: Schema4.Number,
|
|
3050
|
+
active: Schema4.Number.annotate({
|
|
3051
|
+
description: "Hub Member Status active, including Active-Expired Members within grace."
|
|
3052
|
+
}),
|
|
3053
|
+
suspended: Schema4.Number,
|
|
3054
|
+
expired: Schema4.Number,
|
|
3055
|
+
archived: Schema4.Number,
|
|
3056
|
+
sourceManaged: Schema4.Number,
|
|
3057
|
+
joinedLast30Days: Schema4.Number,
|
|
3058
|
+
generatedAt: TimestampSchema
|
|
3059
|
+
});
|
|
2992
3060
|
var PaginatedOrganizationMemberRatingGradesSchema = Schema4.Struct({
|
|
2993
3061
|
items: Schema4.Array(OrganizationMemberRatingGradeSchema),
|
|
2994
3062
|
total: Schema4.Number,
|
|
@@ -3186,7 +3254,9 @@ var OrganizationCapabilitiesSchema = Schema4.Struct({
|
|
|
3186
3254
|
memberCreation: Schema4.Struct({
|
|
3187
3255
|
...OrganizationCapabilitySchema.fields,
|
|
3188
3256
|
mode: Schema4.Union([Schema4.Literals(["local", "source_managed"]), Schema4.Null])
|
|
3189
|
-
})
|
|
3257
|
+
}),
|
|
3258
|
+
/** Whether `POST /members/create-requests` is available at this venue. */
|
|
3259
|
+
memberCreateRequests: OrganizationCapabilitySchema
|
|
3190
3260
|
});
|
|
3191
3261
|
var OrganizationMemberSourceSchema = Schema4.Struct({
|
|
3192
3262
|
id: Schema4.String,
|
|
@@ -3356,8 +3426,16 @@ var EnsureActiveMembershipSuccessResultSchema = Schema4.Struct({
|
|
|
3356
3426
|
var EnsureActiveMembershipNonSuccessResultSchema = Schema4.Struct({
|
|
3357
3427
|
outcome: EnsureActiveMembershipNonSuccessOutcomeSchema
|
|
3358
3428
|
});
|
|
3429
|
+
var EnsureActiveMembershipRenewalRequiredResultSchema = Schema4.Struct({
|
|
3430
|
+
outcome: Schema4.Literal("renewal_required"),
|
|
3431
|
+
memberId: Schema4.String,
|
|
3432
|
+
sourceStatus: Schema4.Literal("ACTIVE"),
|
|
3433
|
+
membershipTypeId: Schema4.String,
|
|
3434
|
+
membershipExpiry: TimestampSchema
|
|
3435
|
+
});
|
|
3359
3436
|
var EnsureActiveMembershipResultSchema = Schema4.Union([
|
|
3360
3437
|
EnsureActiveMembershipSuccessResultSchema,
|
|
3438
|
+
EnsureActiveMembershipRenewalRequiredResultSchema,
|
|
3361
3439
|
EnsureActiveMembershipNonSuccessResultSchema
|
|
3362
3440
|
]);
|
|
3363
3441
|
var PaginatedOrganizationMemberSourceCommandsSchema = Schema4.Struct({
|
|
@@ -3819,7 +3897,11 @@ var UpsertOrganizationMemberSourceWebhookSchema = Schema4.Struct({
|
|
|
3819
3897
|
});
|
|
3820
3898
|
var TriggerOrganizationMemberSyncSchema = Schema4.Struct({
|
|
3821
3899
|
mode: Schema4.optional(Schema4.Literals([...organizationMemberSyncModes])),
|
|
3822
|
-
inputReference: OptionalNullableString
|
|
3900
|
+
inputReference: OptionalNullableString,
|
|
3901
|
+
updatedAfter: OptionalNullableString.annotate({
|
|
3902
|
+
description: "Delta syncs only: venue wall time (YYYY-MM-DDTHH:mm[:ss[.SSS]], no offset) to read changes from for this run instead of the saved cursor. The saved cursor still advances normally when the run succeeds.",
|
|
3903
|
+
example: "2026-11-20T06:00:00"
|
|
3904
|
+
})
|
|
3823
3905
|
});
|
|
3824
3906
|
var OnsiteResourceCallWaitMsSchema = Schema4.optional(
|
|
3825
3907
|
Schema4.Number.annotate({
|
|
@@ -3880,7 +3962,10 @@ var EnsureActiveMembershipOperatorReasonSchema = Schema4.String.pipe(
|
|
|
3880
3962
|
)
|
|
3881
3963
|
)
|
|
3882
3964
|
);
|
|
3965
|
+
var EnsureActiveMembershipContractVersionSchema = Schema4.Literal(2);
|
|
3883
3966
|
var EnsureActiveMembershipCommandPayloadSchema = Schema4.Struct({
|
|
3967
|
+
contractVersion: Schema4.optional(EnsureActiveMembershipContractVersionSchema),
|
|
3968
|
+
allowRenewalOnDuplicate: Schema4.optional(Schema4.Boolean),
|
|
3884
3969
|
idempotencyKey: EnsureActiveMembershipIdempotencyKeySchema,
|
|
3885
3970
|
member: EnsureActiveMembershipMemberSchema,
|
|
3886
3971
|
continuation: Schema4.optional(
|
|
@@ -3994,6 +4079,14 @@ var RequestEnsureActiveMembershipSchema = Schema4.Struct({
|
|
|
3994
4079
|
waitMs: OnsiteResourceCallWaitMsSchema,
|
|
3995
4080
|
member: EnsureActiveMembershipMemberSchema
|
|
3996
4081
|
});
|
|
4082
|
+
var RequestMemberCreationSchema = Schema4.Struct({
|
|
4083
|
+
idempotencyKey: EnsureActiveMembershipIdempotencyKeySchema,
|
|
4084
|
+
waitMs: OnsiteResourceCallWaitMsSchema,
|
|
4085
|
+
allowRenewalOnDuplicate: Schema4.optional(Schema4.Boolean).annotate({
|
|
4086
|
+
description: "Renew a verified existing membership whose paid-until date has passed. Defaults to false, which returns renewal_required without changing the membership."
|
|
4087
|
+
}),
|
|
4088
|
+
member: EnsureActiveMembershipMemberSchema
|
|
4089
|
+
});
|
|
3997
4090
|
var EnsureActiveMembershipManualReviewItemSchema = Schema4.Struct({
|
|
3998
4091
|
workflowId: Schema4.String,
|
|
3999
4092
|
commandId: Schema4.String,
|
|
@@ -4355,6 +4448,7 @@ var OnsiteAgentEnsureActiveMembershipCommandSchema = Schema4.Struct({
|
|
|
4355
4448
|
organizationId: Schema4.String,
|
|
4356
4449
|
organizationMemberSourceId: Schema4.String,
|
|
4357
4450
|
candidateSourceMemberId: Schema4.optional(Schema4.String),
|
|
4451
|
+
candidateSourceMemberIds: Schema4.optional(Schema4.Array(Schema4.String)),
|
|
4358
4452
|
vendor: Schema4.Literal("odyssey_gaming"),
|
|
4359
4453
|
connectorType: Schema4.Literal("odyssey_gaming"),
|
|
4360
4454
|
requestedAt: TimestampSchema,
|
|
@@ -4528,9 +4622,14 @@ var OnsiteAgentEnsureActiveMembershipExistingResultSchema = Schema4.Struct({
|
|
|
4528
4622
|
outcome: Schema4.Literals(["matched_active", "renewed_existing"]),
|
|
4529
4623
|
record: OnsiteAgentEnsureActiveMembershipRecordSchema
|
|
4530
4624
|
});
|
|
4625
|
+
var OnsiteAgentEnsureActiveMembershipRenewalRequiredResultSchema = Schema4.Struct({
|
|
4626
|
+
outcome: Schema4.Literal("renewal_required"),
|
|
4627
|
+
record: OnsiteAgentEnsureActiveMembershipRecordSchema
|
|
4628
|
+
});
|
|
4531
4629
|
var OnsiteAgentEnsureActiveMembershipCompletionResultSchema = Schema4.Union([
|
|
4532
4630
|
OnsiteAgentEnsureActiveMembershipCreatedResultSchema,
|
|
4533
4631
|
OnsiteAgentEnsureActiveMembershipExistingResultSchema,
|
|
4632
|
+
OnsiteAgentEnsureActiveMembershipRenewalRequiredResultSchema,
|
|
4534
4633
|
EnsureActiveMembershipNonSuccessResultSchema
|
|
4535
4634
|
]);
|
|
4536
4635
|
var OnsiteAgentCompleteEnsureActiveMembershipSchema = Schema4.Struct({
|
|
@@ -4852,6 +4951,21 @@ var organizationsGroup = HttpApiGroup3.make("organizations").add(
|
|
|
4852
4951
|
transform: organizationWriteExamplesTransform
|
|
4853
4952
|
})
|
|
4854
4953
|
)
|
|
4954
|
+
).add(
|
|
4955
|
+
HttpApiEndpoint3.get(
|
|
4956
|
+
"getOrganization",
|
|
4957
|
+
"/organizations/:organizationId",
|
|
4958
|
+
{
|
|
4959
|
+
params: OrganizationParams,
|
|
4960
|
+
success: OrganizationSchema,
|
|
4961
|
+
error: CommonErrorSchemas
|
|
4962
|
+
}
|
|
4963
|
+
).annotateMerge(
|
|
4964
|
+
OpenApi.annotations({
|
|
4965
|
+
summary: "Get an organization",
|
|
4966
|
+
description: "Requires organizations:read for the organization."
|
|
4967
|
+
})
|
|
4968
|
+
)
|
|
4855
4969
|
).add(
|
|
4856
4970
|
HttpApiEndpoint3.patch(
|
|
4857
4971
|
"updateOrganization",
|
|
@@ -4978,6 +5092,21 @@ var membersGroup = HttpApiGroup3.make("members").add(
|
|
|
4978
5092
|
transform: bulkMemberExamplesTransform
|
|
4979
5093
|
})
|
|
4980
5094
|
)
|
|
5095
|
+
).add(
|
|
5096
|
+
HttpApiEndpoint3.get(
|
|
5097
|
+
"getOrganizationMemberSummary",
|
|
5098
|
+
"/organizations/:organizationId/members/summary",
|
|
5099
|
+
{
|
|
5100
|
+
params: OrganizationIdParams,
|
|
5101
|
+
success: OrganizationMemberSummarySchema,
|
|
5102
|
+
error: CommonErrorSchemas
|
|
5103
|
+
}
|
|
5104
|
+
).annotateMerge(
|
|
5105
|
+
OpenApi.annotations({
|
|
5106
|
+
summary: "Summarize member counts by Hub Member Status",
|
|
5107
|
+
description: "Requires members:read. Counts use the same Hub Member Status rules as the member list status filter."
|
|
5108
|
+
})
|
|
5109
|
+
)
|
|
4981
5110
|
).add(
|
|
4982
5111
|
HttpApiEndpoint3.get(
|
|
4983
5112
|
"listOrganizationMemberRatingGrades",
|
|
@@ -5054,6 +5183,30 @@ var membersGroup = HttpApiGroup3.make("members").add(
|
|
|
5054
5183
|
transform: createMemberExamplesTransform
|
|
5055
5184
|
})
|
|
5056
5185
|
)
|
|
5186
|
+
).add(
|
|
5187
|
+
HttpApiEndpoint3.get(
|
|
5188
|
+
"getMemberReplacement",
|
|
5189
|
+
"/organizations/:organizationId/members/:memberId/replacement",
|
|
5190
|
+
{
|
|
5191
|
+
params: OrganizationMemberParams,
|
|
5192
|
+
success: MemberReplacementStatusSchema,
|
|
5193
|
+
error: CommonErrorSchemas
|
|
5194
|
+
}
|
|
5195
|
+
)
|
|
5196
|
+
).add(
|
|
5197
|
+
HttpApiEndpoint3.post(
|
|
5198
|
+
"replaceMember",
|
|
5199
|
+
"/organizations/:organizationId/members/:memberId/replacement",
|
|
5200
|
+
{
|
|
5201
|
+
params: OrganizationMemberParams,
|
|
5202
|
+
payload: Schema4.Union([
|
|
5203
|
+
Schema4.Struct({ replacementMemberId: Schema4.String, expectedUpdatedAt: Schema4.String }),
|
|
5204
|
+
Schema4.Struct({ retry: Schema4.Literal(true) })
|
|
5205
|
+
]),
|
|
5206
|
+
success: MemberReplacementStatusSchema,
|
|
5207
|
+
error: CommonErrorSchemas
|
|
5208
|
+
}
|
|
5209
|
+
)
|
|
5057
5210
|
).add(
|
|
5058
5211
|
HttpApiEndpoint3.post(
|
|
5059
5212
|
"cleanupOrganizationMembers",
|
|
@@ -5116,6 +5269,24 @@ var membersGroup = HttpApiGroup3.make("members").add(
|
|
|
5116
5269
|
transform: ensureActiveMembershipExamplesTransform
|
|
5117
5270
|
})
|
|
5118
5271
|
)
|
|
5272
|
+
).add(
|
|
5273
|
+
HttpApiEndpoint3.post(
|
|
5274
|
+
"requestMemberCreation",
|
|
5275
|
+
"/organizations/:organizationId/members/create-requests",
|
|
5276
|
+
{
|
|
5277
|
+
params: OrganizationIdParams,
|
|
5278
|
+
payload: RequestMemberCreationSchema,
|
|
5279
|
+
success: EnsureActiveMembershipResponseSchema.pipe(
|
|
5280
|
+
HttpApiSchema2.status(202)
|
|
5281
|
+
),
|
|
5282
|
+
error: CommonErrorSchemas
|
|
5283
|
+
}
|
|
5284
|
+
).annotateMerge(
|
|
5285
|
+
OpenApi.annotations({
|
|
5286
|
+
summary: "Request creation of a member, reusing a verified existing membership",
|
|
5287
|
+
description: "Checks Hub and the venue system for an existing member before creating one. A current match is returned without changes. An expired match returns renewal_required unless allowRenewalOnDuplicate is true. Replaying the same idempotency key and request returns the same command; changing the request, including the renewal flag or rate, returns a conflict."
|
|
5288
|
+
})
|
|
5289
|
+
)
|
|
5119
5290
|
).add(
|
|
5120
5291
|
HttpApiEndpoint3.post(
|
|
5121
5292
|
"requestSourceManagedMemberRenewal",
|
|
@@ -5379,7 +5550,12 @@ var vouchersGroup = HttpApiGroup3.make("vouchers").add(
|
|
|
5379
5550
|
params: OrganizationIdParams,
|
|
5380
5551
|
query: Schema4.Struct({
|
|
5381
5552
|
page: Schema4.optional(Schema4.String),
|
|
5382
|
-
pageSize: Schema4.optional(Schema4.String)
|
|
5553
|
+
pageSize: Schema4.optional(Schema4.String),
|
|
5554
|
+
status: optionalQueryString("Comma-separated statuses: requested, accepted, completed, failed."),
|
|
5555
|
+
kind: optionalQueryString("Comma-separated kinds: issue_voucher, lookup_voucher."),
|
|
5556
|
+
from: optionalQueryString("Only include commands requested at or after this ISO-8601 instant."),
|
|
5557
|
+
to: optionalQueryString("Only include commands requested at or before this ISO-8601 instant."),
|
|
5558
|
+
sort: optionalQueryString("`newest` (default) or `oldest` first.")
|
|
5383
5559
|
}),
|
|
5384
5560
|
success: PaginatedOrganizationVoucherCommandsSchema,
|
|
5385
5561
|
error: CommonErrorSchemas
|
|
@@ -6603,7 +6779,8 @@ var MailchimpSettingsInputSchema = Schema4.Struct({
|
|
|
6603
6779
|
firstNameField: Schema4.String,
|
|
6604
6780
|
lastNameField: Schema4.String,
|
|
6605
6781
|
phoneField: Schema4.optional(Schema4.String),
|
|
6606
|
-
dobField: Schema4.optional(Schema4.String)
|
|
6782
|
+
dobField: Schema4.optional(Schema4.String),
|
|
6783
|
+
memberNumberField: Schema4.optional(Schema4.String)
|
|
6607
6784
|
});
|
|
6608
6785
|
var MailchimpSettingsSchema = Schema4.Struct({
|
|
6609
6786
|
connected: Schema4.Boolean,
|
|
@@ -6614,6 +6791,7 @@ var MailchimpSettingsSchema = Schema4.Struct({
|
|
|
6614
6791
|
lastNameField: Schema4.String,
|
|
6615
6792
|
phoneField: Schema4.String,
|
|
6616
6793
|
dobField: Schema4.String,
|
|
6794
|
+
memberNumberField: Schema4.String,
|
|
6617
6795
|
pending: Schema4.Number,
|
|
6618
6796
|
failed: Schema4.Number,
|
|
6619
6797
|
lastSuccessAt: Schema4.NullOr(Schema4.String),
|
|
@@ -7258,6 +7436,17 @@ var makePromiseOnsiteResourceClient = async (options) => {
|
|
|
7258
7436
|
};
|
|
7259
7437
|
|
|
7260
7438
|
// src/spoke-client.ts
|
|
7439
|
+
function historyQuery(input) {
|
|
7440
|
+
const instant = (value) => value instanceof Date ? value.toISOString() : value;
|
|
7441
|
+
return {
|
|
7442
|
+
page: input.page,
|
|
7443
|
+
pageSize: input.pageSize,
|
|
7444
|
+
status: input.statuses,
|
|
7445
|
+
from: instant(input.from),
|
|
7446
|
+
to: instant(input.to),
|
|
7447
|
+
sort: input.sort
|
|
7448
|
+
};
|
|
7449
|
+
}
|
|
7261
7450
|
function cleanParams(value) {
|
|
7262
7451
|
return Object.fromEntries(
|
|
7263
7452
|
Object.entries(value).filter(([, item]) => item !== void 0 && item !== null && item !== "").map(([key, item]) => [
|
|
@@ -7392,6 +7581,7 @@ function makeSpokeClient(hubClient) {
|
|
|
7392
7581
|
)
|
|
7393
7582
|
},
|
|
7394
7583
|
organizations: {
|
|
7584
|
+
get: (input) => unwrap(hubClient.organizations.getOrganization({ params: input })),
|
|
7395
7585
|
capabilities: (input) => unwrap(
|
|
7396
7586
|
hubClient.organizations.getOrganizationCapabilities({ params: input })
|
|
7397
7587
|
),
|
|
@@ -7476,6 +7666,10 @@ function makeSpokeClient(hubClient) {
|
|
|
7476
7666
|
})
|
|
7477
7667
|
})
|
|
7478
7668
|
),
|
|
7669
|
+
/** Member counts for a venue, broken down by status. */
|
|
7670
|
+
summary: (input) => unwrap(
|
|
7671
|
+
hubClient.members.getOrganizationMemberSummary({ params: input })
|
|
7672
|
+
),
|
|
7479
7673
|
get: (input) => unwrap(
|
|
7480
7674
|
hubClient.members.getOrganizationMember({
|
|
7481
7675
|
params: {
|
|
@@ -7569,6 +7763,16 @@ function makeSpokeClient(hubClient) {
|
|
|
7569
7763
|
})
|
|
7570
7764
|
)
|
|
7571
7765
|
},
|
|
7766
|
+
/**
|
|
7767
|
+
* Requests a member, reusing a verified existing membership instead of creating a
|
|
7768
|
+
* duplicate. Expired matches return `renewal_required` unless `allowRenewalOnDuplicate`.
|
|
7769
|
+
*/
|
|
7770
|
+
requestCreation: (input) => unwrap(
|
|
7771
|
+
hubClient.members.requestMemberCreation({
|
|
7772
|
+
params: { organizationId: input.organizationId },
|
|
7773
|
+
payload: input.payload
|
|
7774
|
+
})
|
|
7775
|
+
),
|
|
7572
7776
|
sourceRequests: {
|
|
7573
7777
|
ensureActive: (input) => unwrap(
|
|
7574
7778
|
hubClient.members.ensureActiveMembership({
|
|
@@ -7726,7 +7930,11 @@ function makeSpokeClient(hubClient) {
|
|
|
7726
7930
|
list: (input) => unwrap(
|
|
7727
7931
|
hubClient.memberSources.listOrganizationMemberSyncRuns({
|
|
7728
7932
|
params: { organizationId: input.organizationId },
|
|
7729
|
-
query: cleanParams(
|
|
7933
|
+
query: cleanParams({
|
|
7934
|
+
...historyQuery(input),
|
|
7935
|
+
trigger: input.triggers,
|
|
7936
|
+
hideUnchanged: input.hideUnchanged ? "true" : void 0
|
|
7937
|
+
})
|
|
7730
7938
|
})
|
|
7731
7939
|
),
|
|
7732
7940
|
trigger: (input) => unwrap(
|
|
@@ -7740,7 +7948,12 @@ function makeSpokeClient(hubClient) {
|
|
|
7740
7948
|
list: (input) => unwrap(
|
|
7741
7949
|
hubClient.memberSources.listOrganizationMemberSourceCommands({
|
|
7742
7950
|
params: { organizationId: input.organizationId },
|
|
7743
|
-
query: cleanParams(input)
|
|
7951
|
+
query: cleanParams({ ...historyQuery(input), kind: input.kinds })
|
|
7952
|
+
})
|
|
7953
|
+
),
|
|
7954
|
+
get: (input) => unwrap(
|
|
7955
|
+
hubClient.memberSources.getOrganizationMemberSourceCommand({
|
|
7956
|
+
params: { organizationId: input.organizationId, commandId: input.commandId }
|
|
7744
7957
|
})
|
|
7745
7958
|
)
|
|
7746
7959
|
}
|
|
@@ -7935,12 +8148,14 @@ export {
|
|
|
7935
8148
|
DeleteServiceClientSchema,
|
|
7936
8149
|
EnsureActiveMembershipCommandPayloadSchema,
|
|
7937
8150
|
EnsureActiveMembershipCommandSchema,
|
|
8151
|
+
EnsureActiveMembershipContractVersionSchema,
|
|
7938
8152
|
EnsureActiveMembershipManualReviewItemSchema,
|
|
7939
8153
|
EnsureActiveMembershipManualReviewQueueSchema,
|
|
7940
8154
|
EnsureActiveMembershipMemberSchema,
|
|
7941
8155
|
EnsureActiveMembershipNonSuccessOutcomeSchema,
|
|
7942
8156
|
EnsureActiveMembershipNonSuccessResultSchema,
|
|
7943
8157
|
EnsureActiveMembershipOutcomeSchema,
|
|
8158
|
+
EnsureActiveMembershipRenewalRequiredResultSchema,
|
|
7944
8159
|
EnsureActiveMembershipResponseSchema,
|
|
7945
8160
|
EnsureActiveMembershipResultSchema,
|
|
7946
8161
|
EnsureActiveMembershipSuccessOutcomeSchema,
|
|
@@ -7970,6 +8185,7 @@ export {
|
|
|
7970
8185
|
MemberMedSchema,
|
|
7971
8186
|
MemberPointBalanceSchema,
|
|
7972
8187
|
MemberPointBalancesResponseSchema,
|
|
8188
|
+
MemberReplacementStatusSchema,
|
|
7973
8189
|
MemberResponseModeSchema,
|
|
7974
8190
|
MemberResponseSchema,
|
|
7975
8191
|
MemberRewardSchema,
|
|
@@ -8034,6 +8250,7 @@ export {
|
|
|
8034
8250
|
OrganizationMemberSourceSecretInputSchema,
|
|
8035
8251
|
OrganizationMemberSourceWebhookSchema,
|
|
8036
8252
|
OrganizationMemberSourceWebhookUpsertResponseSchema,
|
|
8253
|
+
OrganizationMemberSummarySchema,
|
|
8037
8254
|
OrganizationMemberSyncRunErrorSchema,
|
|
8038
8255
|
OrganizationMemberSyncRunSchema,
|
|
8039
8256
|
OrganizationMemberSyncRunSummarySchema,
|
|
@@ -8082,6 +8299,7 @@ export {
|
|
|
8082
8299
|
PresignedPostSchema,
|
|
8083
8300
|
ReconcileEnsureActiveMembershipManualReviewSchema,
|
|
8084
8301
|
RequestEnsureActiveMembershipSchema,
|
|
8302
|
+
RequestMemberCreationSchema,
|
|
8085
8303
|
RequestPointDebitSchema,
|
|
8086
8304
|
RequestPointLookupSchema,
|
|
8087
8305
|
RequestSourceManagedMemberCreateSchema,
|