@spoketech/hub-client 0.1.19 → 0.1.21
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 +24 -1
- package/dist/index.d.ts +811 -268
- package/dist/index.js +54 -5
- 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 = [
|
|
@@ -55,7 +61,7 @@ var organizationVoucherCommandStatuses = [
|
|
|
55
61
|
"completed",
|
|
56
62
|
"failed"
|
|
57
63
|
];
|
|
58
|
-
var organizationPointProviderProviders = ["ebet_pos"];
|
|
64
|
+
var organizationPointProviderProviders = ["ebet_pos", "odyssey_nexus"];
|
|
59
65
|
var organizationPointProviderTransports = ["onsite_client"];
|
|
60
66
|
var organizationPointProviderStatuses = ["active", "disabled"];
|
|
61
67
|
var organizationPointCommandKinds = [
|
|
@@ -446,6 +452,32 @@ var RequestPointLookupSchema = Schema2.Struct({
|
|
|
446
452
|
cacheTtlMs: LookupCacheTtlMsSchema,
|
|
447
453
|
metadata: Schema2.optional(JsonObjectSchema)
|
|
448
454
|
});
|
|
455
|
+
var PointRequestMetadataSchema = Schema2.Struct({
|
|
456
|
+
reason: Schema2.optional(
|
|
457
|
+
Schema2.String.pipe(Schema2.maxLength(50)).annotations({
|
|
458
|
+
description: "Reason recorded for an Odyssey Nexus points addition. Falls back to the provider default when omitted.",
|
|
459
|
+
example: "Birthday bonus"
|
|
460
|
+
})
|
|
461
|
+
),
|
|
462
|
+
eventType: Schema2.optional(
|
|
463
|
+
Schema2.String.annotations({
|
|
464
|
+
description: "Odyssey Nexus event type recorded for a points addition. Falls back to the provider default when omitted.",
|
|
465
|
+
example: "BirthdayPrizePoints"
|
|
466
|
+
})
|
|
467
|
+
),
|
|
468
|
+
deviceId: Schema2.optional(
|
|
469
|
+
Schema2.Union(Schema2.Number, Schema2.String).annotations({
|
|
470
|
+
description: "Optional Odyssey Nexus device ID attributed to a points redemption.",
|
|
471
|
+
example: 12
|
|
472
|
+
})
|
|
473
|
+
),
|
|
474
|
+
deviceTypeId: Schema2.optional(
|
|
475
|
+
Schema2.Union(Schema2.Number, Schema2.String).annotations({
|
|
476
|
+
description: "Optional Odyssey Nexus device type ID attributed to a points redemption.",
|
|
477
|
+
example: 3
|
|
478
|
+
})
|
|
479
|
+
)
|
|
480
|
+
}).pipe(Schema2.extend(JsonObjectSchema));
|
|
449
481
|
var RequestPointDebitSchema = Schema2.Struct({
|
|
450
482
|
memberId: Schema2.optional(Schema2.String),
|
|
451
483
|
externalSystemMemberId: OptionalNullableString,
|
|
@@ -454,7 +486,7 @@ var RequestPointDebitSchema = Schema2.Struct({
|
|
|
454
486
|
amount: Schema2.Number,
|
|
455
487
|
account: Schema2.optional(Schema2.Union(Schema2.String, Schema2.Number)),
|
|
456
488
|
packetNumber: Schema2.optional(Schema2.Union(Schema2.String, Schema2.Number)),
|
|
457
|
-
metadata: Schema2.optional(
|
|
489
|
+
metadata: Schema2.optional(PointRequestMetadataSchema)
|
|
458
490
|
});
|
|
459
491
|
var OnsitePointCommandSchema = Schema2.Struct({
|
|
460
492
|
commandId: Schema2.String,
|
|
@@ -555,7 +587,7 @@ var MemberSchema = Schema2.Struct({
|
|
|
555
587
|
organizationId: Schema2.String,
|
|
556
588
|
organizationMemberSourceId: NullableString,
|
|
557
589
|
status: Schema2.Literal(...memberComputedStatuses).annotations({
|
|
558
|
-
description: "Computed member status for display and filtering. `active`
|
|
590
|
+
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
591
|
}),
|
|
560
592
|
isSuspended: Schema2.Boolean,
|
|
561
593
|
recordMode: Schema2.Literal(...memberRecordModes),
|
|
@@ -847,7 +879,7 @@ var OrganizationMembersListUrlParamsSchema = Schema2.Struct({
|
|
|
847
879
|
),
|
|
848
880
|
memberStatus: Schema2.optional(
|
|
849
881
|
OrganizationMembersStatusFilterSchema.annotations({
|
|
850
|
-
description: "Computed member status filter. `notArchived` returns every non-archived member, `active`
|
|
882
|
+
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
883
|
example: "active"
|
|
852
884
|
})
|
|
853
885
|
),
|
|
@@ -2669,6 +2701,7 @@ var OrganizationMemberSyncRunSchema = Schema2.Struct({
|
|
|
2669
2701
|
fileName: NullableString,
|
|
2670
2702
|
startedAt: TimestampSchema,
|
|
2671
2703
|
pickedUpAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
2704
|
+
heartbeatAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
2672
2705
|
completedAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
2673
2706
|
organizationMemberSourceAgentId: Schema2.Union(Schema2.String, Schema2.Null),
|
|
2674
2707
|
cursorBefore: Schema2.Union(JsonObjectSchema, Schema2.Null),
|
|
@@ -2782,6 +2815,7 @@ var CsvMemberFieldMappingSchema = Schema2.Struct({
|
|
|
2782
2815
|
preferredContactMethod: OptionalNullablePreferredContactMethodSchema,
|
|
2783
2816
|
occupation: OptionalNullableString,
|
|
2784
2817
|
sourceStatus: OptionalNullableString,
|
|
2818
|
+
isSuspended: OptionalNullableString,
|
|
2785
2819
|
gamingOptOutSourceStatuses: OptionalNullableString,
|
|
2786
2820
|
suspendedSourceStatuses: OptionalNullableString,
|
|
2787
2821
|
retiredSourceStatuses: OptionalNullableString,
|
|
@@ -3477,6 +3511,7 @@ var ImportedMemberRecordSchema = Schema2.Struct({
|
|
|
3477
3511
|
ratingGrade: NullableString,
|
|
3478
3512
|
ratingGradeId: NullableString,
|
|
3479
3513
|
sourceStatus: NullableString,
|
|
3514
|
+
isSuspended: Schema2.optional(Schema2.Boolean),
|
|
3480
3515
|
marketingPreferences: Schema2.optional(MarketingPreferencesSchema),
|
|
3481
3516
|
expiresAt: Schema2.Union(TimestampSchema, Schema2.Null),
|
|
3482
3517
|
sourceUpdatedAt: Schema2.Union(TimestampSchema, Schema2.Null)
|
|
@@ -4500,6 +4535,19 @@ var onsiteAgentsGroup = HttpApiGroup.make("onsiteAgents").add(
|
|
|
4500
4535
|
summary: "Submit an Ensure Active Membership terminal outcome"
|
|
4501
4536
|
})
|
|
4502
4537
|
)
|
|
4538
|
+
).add(
|
|
4539
|
+
HttpApiEndpoint.post(
|
|
4540
|
+
"startOnsiteAgentEnsureActiveMembership",
|
|
4541
|
+
"/onsite-agent/ensure-active-membership-commands/:commandId/start"
|
|
4542
|
+
).setPath(
|
|
4543
|
+
Schema2.Struct({
|
|
4544
|
+
commandId: HttpApiSchema2.param("commandId", Schema2.String)
|
|
4545
|
+
})
|
|
4546
|
+
).addSuccess(EnsureActiveMembershipWorkflowProgressSchema).annotateContext(
|
|
4547
|
+
OpenApi.annotations({
|
|
4548
|
+
summary: "Claim an Ensure Active Membership identity lease before execution"
|
|
4549
|
+
})
|
|
4550
|
+
)
|
|
4503
4551
|
).add(
|
|
4504
4552
|
HttpApiEndpoint.post(
|
|
4505
4553
|
"heartbeatOnsiteAgentEnsureActiveMembership",
|
|
@@ -5796,6 +5844,7 @@ export {
|
|
|
5796
5844
|
PaginatedOrganizationProductWebhooksSchema,
|
|
5797
5845
|
PaginatedOrganizationsSchema,
|
|
5798
5846
|
PaginatedServiceClientsSchema,
|
|
5847
|
+
PointRequestMetadataSchema,
|
|
5799
5848
|
PresignedPostSchema,
|
|
5800
5849
|
ReconcileEnsureActiveMembershipManualReviewSchema,
|
|
5801
5850
|
RequestEnsureActiveMembershipSchema,
|