@spoketech/hub-client 0.1.2 → 0.1.4
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 +235 -191
- package/dist/index.js +27 -10
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -31,17 +31,14 @@ var adminRoles = ["platform_admin", "org_admin", "auditor"];
|
|
|
31
31
|
var organizationMemberSourceVendors = [
|
|
32
32
|
"max_gaming",
|
|
33
33
|
"odyssey_gaming",
|
|
34
|
+
"ebet_arc",
|
|
34
35
|
"custom"
|
|
35
36
|
];
|
|
36
37
|
var organizationMemberSourceBatchTransports = ["onsite_agent"];
|
|
37
38
|
var organizationMemberSourceManualTransports = ["csv_bucket"];
|
|
38
39
|
var organizationMemberSourceLiveTransports = ["fbi"];
|
|
39
40
|
var organizationMemberSourceStatuses = ["active", "paused", "disabled"];
|
|
40
|
-
var organizationMemberSourceAgentStatuses = [
|
|
41
|
-
"active",
|
|
42
|
-
"paused",
|
|
43
|
-
"disabled"
|
|
44
|
-
];
|
|
41
|
+
var organizationMemberSourceAgentStatuses = ["active", "paused", "disabled"];
|
|
45
42
|
var organizationMemberSourceWebhookStatuses = ["active", "disabled"];
|
|
46
43
|
var organizationMemberSourceWebhookDeliveryStatuses = ["success", "failure"];
|
|
47
44
|
var organizationProductWebhookStatuses = ["active", "disabled"];
|
|
@@ -204,6 +201,10 @@ var OrganizationSchema = Schema2.Struct({
|
|
|
204
201
|
description: NullableString,
|
|
205
202
|
externalReference: NullableString,
|
|
206
203
|
products: Schema2.Array(Schema2.String),
|
|
204
|
+
memberExpiryGracePeriodDays: Schema2.Number.annotations({
|
|
205
|
+
description: "Number of days after membership expiry that members are still counted as active.",
|
|
206
|
+
example: 7
|
|
207
|
+
}),
|
|
207
208
|
createdAt: TimestampSchema,
|
|
208
209
|
updatedAt: TimestampSchema,
|
|
209
210
|
deletedAt: Schema2.Union(TimestampSchema, Schema2.Null)
|
|
@@ -379,7 +380,7 @@ var MemberSchema = Schema2.Struct({
|
|
|
379
380
|
organizationId: Schema2.String,
|
|
380
381
|
organizationMemberSourceId: NullableString,
|
|
381
382
|
status: Schema2.Literal(...memberComputedStatuses).annotations({
|
|
382
|
-
description: "Computed member status for display and filtering. `active` excludes suspended and expired
|
|
383
|
+
description: "Computed member status for display and filtering. `active` excludes suspended members and members expired beyond the organization's grace period, `suspended` reflects suspended active members, `expired` reflects active members whose expiry date is beyond the grace period, and `archived` is the stored archived state."
|
|
383
384
|
}),
|
|
384
385
|
isSuspended: Schema2.Boolean,
|
|
385
386
|
recordMode: Schema2.Literal(...memberRecordModes),
|
|
@@ -667,7 +668,7 @@ var OrganizationMembersListUrlParamsSchema = Schema2.Struct({
|
|
|
667
668
|
),
|
|
668
669
|
memberStatus: Schema2.optional(
|
|
669
670
|
OrganizationMembersStatusFilterSchema.annotations({
|
|
670
|
-
description: "Computed member status filter. `active` excludes suspended and expired
|
|
671
|
+
description: "Computed member status filter. `active` excludes suspended members and members expired beyond the organization's grace period, `suspended` returns suspended active members, and `expired` returns active members whose expiry date is beyond the grace period.",
|
|
671
672
|
example: "active"
|
|
672
673
|
})
|
|
673
674
|
),
|
|
@@ -1483,7 +1484,8 @@ var organizationWriteExamplesTransform = withOpenApiExamples({
|
|
|
1483
1484
|
legalName: "Redlands RSL Club Ltd",
|
|
1484
1485
|
description: "Main venue organization for Redlands.",
|
|
1485
1486
|
externalReference: "venue_redlands",
|
|
1486
|
-
products: ["member_portal", "onsite_kiosk"]
|
|
1487
|
+
products: ["member_portal", "onsite_kiosk"],
|
|
1488
|
+
memberExpiryGracePeriodDays: 7
|
|
1487
1489
|
}
|
|
1488
1490
|
}
|
|
1489
1491
|
},
|
|
@@ -1501,6 +1503,7 @@ var organizationWriteExamplesTransform = withOpenApiExamples({
|
|
|
1501
1503
|
createdAt: "2026-04-07T21:02:05.123Z",
|
|
1502
1504
|
updatedAt: "2026-04-07T21:02:05.123Z",
|
|
1503
1505
|
products: ["member_portal", "onsite_kiosk"],
|
|
1506
|
+
memberExpiryGracePeriodDays: 7,
|
|
1504
1507
|
deletedAt: null
|
|
1505
1508
|
}
|
|
1506
1509
|
}
|
|
@@ -1514,7 +1517,8 @@ var organizationUpdateExamplesTransform = withOpenApiExamples({
|
|
|
1514
1517
|
value: {
|
|
1515
1518
|
name: "Redlands RSL and Memorial Club",
|
|
1516
1519
|
description: "Primary venue organization and membership operator.",
|
|
1517
|
-
products: ["member_portal", "csv_imports"]
|
|
1520
|
+
products: ["member_portal", "csv_imports"],
|
|
1521
|
+
memberExpiryGracePeriodDays: 14
|
|
1518
1522
|
}
|
|
1519
1523
|
}
|
|
1520
1524
|
},
|
|
@@ -1530,6 +1534,7 @@ var organizationUpdateExamplesTransform = withOpenApiExamples({
|
|
|
1530
1534
|
description: "Primary venue organization and membership operator.",
|
|
1531
1535
|
externalReference: "venue_redlands",
|
|
1532
1536
|
products: ["member_portal", "csv_imports"],
|
|
1537
|
+
memberExpiryGracePeriodDays: 14,
|
|
1533
1538
|
createdAt: "2026-04-01T10:00:00.000Z",
|
|
1534
1539
|
updatedAt: "2026-04-07T21:02:05.123Z",
|
|
1535
1540
|
deletedAt: null
|
|
@@ -2502,7 +2507,13 @@ var CreateOrganizationSchema = Schema2.Struct({
|
|
|
2502
2507
|
legalName: OptionalNullableString,
|
|
2503
2508
|
description: OptionalNullableString,
|
|
2504
2509
|
externalReference: OptionalNullableString,
|
|
2505
|
-
products: Schema2.optional(Schema2.Array(Schema2.String))
|
|
2510
|
+
products: Schema2.optional(Schema2.Array(Schema2.String)),
|
|
2511
|
+
memberExpiryGracePeriodDays: Schema2.optional(
|
|
2512
|
+
Schema2.Number.annotations({
|
|
2513
|
+
description: "Number of days after membership expiry that members are still counted as active.",
|
|
2514
|
+
example: 7
|
|
2515
|
+
})
|
|
2516
|
+
)
|
|
2506
2517
|
});
|
|
2507
2518
|
var UpdateOrganizationSchema = Schema2.Struct({
|
|
2508
2519
|
expectedUpdatedAt: TimestampSchema,
|
|
@@ -2512,6 +2523,12 @@ var UpdateOrganizationSchema = Schema2.Struct({
|
|
|
2512
2523
|
description: OptionalNullableString,
|
|
2513
2524
|
externalReference: OptionalNullableString,
|
|
2514
2525
|
products: Schema2.optional(Schema2.Array(Schema2.String)),
|
|
2526
|
+
memberExpiryGracePeriodDays: Schema2.optional(
|
|
2527
|
+
Schema2.Number.annotations({
|
|
2528
|
+
description: "Number of days after membership expiry that members are still counted as active.",
|
|
2529
|
+
example: 7
|
|
2530
|
+
})
|
|
2531
|
+
),
|
|
2515
2532
|
status: Schema2.optional(Schema2.Literal(...organizationStatuses))
|
|
2516
2533
|
});
|
|
2517
2534
|
var CreateOrganizationProductOptionSchema = Schema2.Struct({
|