@spoketech/hub-client 0.1.28 → 0.1.30
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 -0
- package/dist/index.d.ts +158 -2
- package/dist/index.js +63 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -326,9 +326,33 @@ All routes below are relative to `/api/v1`. The promise client and the Effect cl
|
|
|
326
326
|
| `client.vouchers.getOrganizationVoucherProvider({ params })` | `GET /organizations/:organizationId/voucher-provider` | `params.organizationId` | `OrganizationVoucherProvider \| null` |
|
|
327
327
|
| `client.vouchers.upsertOrganizationVoucherProvider({ params, payload })` | `PUT /organizations/:organizationId/voucher-provider` | `params.organizationId`, `UpsertOrganizationVoucherProviderInput` | `OrganizationVoucherProvider` |
|
|
328
328
|
| `client.vouchers.requestVoucherIssue({ params, payload })` | `POST /organizations/:organizationId/vouchers/issue` | `params.organizationId`, `RequestVoucherIssueInput` | `OrganizationVoucherCommand` |
|
|
329
|
+
| `client.vouchers.listOrganizationVoucherCommands({ params, query })` | `GET /organizations/:organizationId/voucher-commands` | `params.organizationId`, optional `query.page`, `query.pageSize` | `PaginatedOrganizationVoucherCommands` |
|
|
330
|
+
| `client.vouchers.retryVoucherCommand({ params, payload })` | `POST /organizations/:organizationId/voucher-commands/:commandId/retry` | `params.organizationId`, `params.commandId`, `{ confirmedDuplicateRisk: true }` | `OrganizationVoucherCommand` |
|
|
329
331
|
| `client.vouchers.pollOnsiteVoucherCommand({ params })` | `POST /organizations/:organizationId/onsite-voucher-commands/poll` | `params.organizationId` | `OnsiteVoucherCommand \| null` |
|
|
330
332
|
| `client.vouchers.completeOnsiteVoucherCommand({ params, payload })` | `POST /organizations/:organizationId/onsite-voucher-commands/:commandId/complete` | `params.organizationId`, `params.commandId`, `CompleteOnsiteVoucherCommandInput` | `OrganizationVoucherCommand` |
|
|
331
333
|
|
|
334
|
+
History requires `vouchers:read`; retry requires `vouchers:write` and organization access.
|
|
335
|
+
Failed commands and accepted commands without completion for at least 15 minutes can be retried.
|
|
336
|
+
`accepted` means dispatched, not confirmed onsite receipt. Older accepted commands are held for
|
|
337
|
+
manual recovery instead of being automatically delivered again. Late completion is still accepted
|
|
338
|
+
until recovery retires the original request.
|
|
339
|
+
A retry queues a new command for agent polling, preserves the original command, and links both
|
|
340
|
+
through `payload.retryOfCommandId` / `payload.retryCommandId`. Recovering an accepted command
|
|
341
|
+
marks the original failed with an explicit unknown-outcome message so it cannot remain eligible
|
|
342
|
+
for delivery alongside its retry.
|
|
343
|
+
Submitting the same retry again returns the existing retry; if that attempt fails, retry its ID.
|
|
344
|
+
Successful retries and recoveries send `voucher.created` with the original request ID in both
|
|
345
|
+
`voucher.commandId` and `command.id`, so an external job can match the ID returned by its initial
|
|
346
|
+
request. This remains the original ID across multiple retries. `voucher.attemptCommandId` identifies
|
|
347
|
+
the attempt that completed, while the result and preserved caller metadata describe that completion.
|
|
348
|
+
Command reads and history retain their separate attempt IDs. New retries persist
|
|
349
|
+
`payload.originalCommandId`; existing retry chains are traced back through their stored history,
|
|
350
|
+
including soft-deleted ancestors. Normal completions retain their existing webhook IDs and shape.
|
|
351
|
+
SENPOS may already have issued a voucher despite a failed response. Check the member's vouchers
|
|
352
|
+
before confirming a retry to avoid duplicates.
|
|
353
|
+
For bootstrapped installations, MQTT, polling and completion use the onsite agent ID consistently;
|
|
354
|
+
existing service-client ownership for the same installation is also recognized.
|
|
355
|
+
|
|
332
356
|
### POS Points
|
|
333
357
|
|
|
334
358
|
| Client method | Route | Request | Returns |
|
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,42 @@ declare const OrganizationVoucherCommandSchema: Schema.Struct<{
|
|
|
149
149
|
readonly updatedAt: Schema.String;
|
|
150
150
|
readonly deletedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
151
151
|
}>;
|
|
152
|
+
declare const PaginatedOrganizationVoucherCommandsSchema: Schema.Struct<{
|
|
153
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
154
|
+
readonly id: Schema.String;
|
|
155
|
+
readonly organizationId: Schema.String;
|
|
156
|
+
readonly organizationVoucherProviderId: Schema.String;
|
|
157
|
+
readonly serviceClientId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
158
|
+
readonly kind: Schema.Literals<readonly ["issue_voucher", "lookup_voucher"]>;
|
|
159
|
+
readonly status: Schema.Literals<readonly ["requested", "accepted", "completed", "failed"]>;
|
|
160
|
+
readonly payload: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
161
|
+
readonly result: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
162
|
+
readonly externalMemberId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
163
|
+
readonly memberCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
164
|
+
readonly externalRewardId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
165
|
+
readonly externalGuid: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
166
|
+
readonly rawRecord: Schema.optional<Schema.Unknown>;
|
|
167
|
+
}>, Schema.Struct<{
|
|
168
|
+
readonly vouchers: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
169
|
+
}>]>, Schema.Null]>;
|
|
170
|
+
readonly errorMessage: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
171
|
+
readonly requestedAt: Schema.String;
|
|
172
|
+
readonly acceptedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
173
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
174
|
+
readonly createdAt: Schema.String;
|
|
175
|
+
readonly updatedAt: Schema.String;
|
|
176
|
+
readonly deletedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
177
|
+
}>>;
|
|
178
|
+
readonly total: Schema.Number;
|
|
179
|
+
readonly page: Schema.Number;
|
|
180
|
+
readonly pageSize: Schema.Number;
|
|
181
|
+
readonly totalPages: Schema.Number;
|
|
182
|
+
}>;
|
|
183
|
+
declare const RetryVoucherCommandSchema: Schema.Struct<{
|
|
184
|
+
readonly confirmedDuplicateRisk: Schema.Literal<true>;
|
|
185
|
+
}>;
|
|
186
|
+
declare const voucherCommandRecoveryDelayMs: number;
|
|
187
|
+
declare function isStaleAcceptedVoucherCommand(command: Pick<OrganizationVoucherCommand, "status" | "acceptedAt" | "requestedAt" | "completedAt">, now?: number): boolean;
|
|
152
188
|
declare const UpsertOrganizationVoucherProviderSchema: Schema.Struct<{
|
|
153
189
|
readonly provider: Schema.Literals<readonly ["senpos"]>;
|
|
154
190
|
readonly transport: Schema.Literals<readonly ["onsite_client"]>;
|
|
@@ -1490,6 +1526,7 @@ declare const GuestSchema: Schema.Struct<{
|
|
|
1490
1526
|
readonly mobilePhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1491
1527
|
readonly firstName: Schema.String;
|
|
1492
1528
|
readonly lastName: Schema.String;
|
|
1529
|
+
readonly dob: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1493
1530
|
readonly meta: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1494
1531
|
readonly marketingPreferences: Schema.Struct<{
|
|
1495
1532
|
readonly email: Schema.Boolean;
|
|
@@ -1512,6 +1549,7 @@ declare const PaginatedGuestsSchema: Schema.Struct<{
|
|
|
1512
1549
|
readonly mobilePhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1513
1550
|
readonly firstName: Schema.String;
|
|
1514
1551
|
readonly lastName: Schema.String;
|
|
1552
|
+
readonly dob: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1515
1553
|
readonly meta: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1516
1554
|
readonly marketingPreferences: Schema.Struct<{
|
|
1517
1555
|
readonly email: Schema.Boolean;
|
|
@@ -2340,6 +2378,7 @@ declare const CreateGuestSchema: Schema.Struct<{
|
|
|
2340
2378
|
readonly mobilePhone: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2341
2379
|
readonly firstName: Schema.String;
|
|
2342
2380
|
readonly lastName: Schema.String;
|
|
2381
|
+
readonly dob: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2343
2382
|
readonly meta: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2344
2383
|
readonly marketingPreferences: Schema.optional<Schema.Struct<{
|
|
2345
2384
|
readonly email: Schema.optional<Schema.Boolean>;
|
|
@@ -2356,6 +2395,7 @@ declare const UpdateGuestSchema: Schema.Struct<{
|
|
|
2356
2395
|
readonly mobilePhone: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2357
2396
|
readonly firstName: Schema.optional<Schema.String>;
|
|
2358
2397
|
readonly lastName: Schema.optional<Schema.String>;
|
|
2398
|
+
readonly dob: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2359
2399
|
readonly meta: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2360
2400
|
readonly marketingPreferences: Schema.optional<Schema.Struct<{
|
|
2361
2401
|
readonly email: Schema.optional<Schema.Boolean>;
|
|
@@ -2996,6 +3036,7 @@ declare const RequestSourceManagedMemberPreferenceUpdateSchema: Schema.Struct<{
|
|
|
2996
3036
|
}>;
|
|
2997
3037
|
}>;
|
|
2998
3038
|
declare const RequestSourceManagedMemberRenewalSchema: Schema.Struct<{
|
|
3039
|
+
readonly expiresAt: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2999
3040
|
readonly expectedUpdatedAt: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3000
3041
|
}>;
|
|
3001
3042
|
declare const SourceManagedMemberLookupBySchema: Schema.Literals<readonly ["member_id", "badge_number", "card_number"]>;
|
|
@@ -3188,6 +3229,7 @@ declare const OnsiteResourceCallRequestSchema: Schema.Union<readonly [Schema.Str
|
|
|
3188
3229
|
readonly waitMs: Schema.optional<Schema.Number>;
|
|
3189
3230
|
readonly memberId: Schema.String;
|
|
3190
3231
|
readonly payload: Schema.Struct<{
|
|
3232
|
+
readonly expiresAt: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3191
3233
|
readonly expectedUpdatedAt: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3192
3234
|
}>;
|
|
3193
3235
|
}>, Schema.Struct<{
|
|
@@ -6947,6 +6989,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
6947
6989
|
readonly organizationId: Schema.String;
|
|
6948
6990
|
readonly memberId: Schema.String;
|
|
6949
6991
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6992
|
+
readonly expiresAt: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6950
6993
|
readonly expectedUpdatedAt: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6951
6994
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6952
6995
|
readonly id: Schema.String;
|
|
@@ -7674,7 +7717,107 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
7674
7717
|
}> | Schema.Struct<{
|
|
7675
7718
|
readonly code: Schema.Literal<"internal_error">;
|
|
7676
7719
|
readonly message: Schema.String;
|
|
7677
|
-
}>>, never, never>, false> | HttpApiGroup.HttpApiGroup<"vouchers", HttpApiEndpoint.HttpApiEndpoint<"
|
|
7720
|
+
}>>, never, never>, false> | HttpApiGroup.HttpApiGroup<"vouchers", HttpApiEndpoint.HttpApiEndpoint<"listOrganizationVoucherCommands", "GET", "/v1/organizations/:organizationId/voucher-commands", Schema.toCodecStringTree<Schema.Struct<{
|
|
7721
|
+
readonly organizationId: Schema.String;
|
|
7722
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
7723
|
+
readonly page: Schema.optional<Schema.String>;
|
|
7724
|
+
readonly pageSize: Schema.optional<Schema.String>;
|
|
7725
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
7726
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
7727
|
+
readonly id: Schema.String;
|
|
7728
|
+
readonly organizationId: Schema.String;
|
|
7729
|
+
readonly organizationVoucherProviderId: Schema.String;
|
|
7730
|
+
readonly serviceClientId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7731
|
+
readonly kind: Schema.Literals<readonly ["issue_voucher", "lookup_voucher"]>;
|
|
7732
|
+
readonly status: Schema.Literals<readonly ["requested", "accepted", "completed", "failed"]>;
|
|
7733
|
+
readonly payload: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
7734
|
+
readonly result: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7735
|
+
readonly externalMemberId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7736
|
+
readonly memberCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7737
|
+
readonly externalRewardId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7738
|
+
readonly externalGuid: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7739
|
+
readonly rawRecord: Schema.optional<Schema.Unknown>;
|
|
7740
|
+
}>, Schema.Struct<{
|
|
7741
|
+
readonly vouchers: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
7742
|
+
}>]>, Schema.Null]>;
|
|
7743
|
+
readonly errorMessage: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7744
|
+
readonly requestedAt: Schema.String;
|
|
7745
|
+
readonly acceptedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7746
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7747
|
+
readonly createdAt: Schema.String;
|
|
7748
|
+
readonly updatedAt: Schema.String;
|
|
7749
|
+
readonly deletedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7750
|
+
}>>;
|
|
7751
|
+
readonly total: Schema.Number;
|
|
7752
|
+
readonly page: Schema.Number;
|
|
7753
|
+
readonly pageSize: Schema.Number;
|
|
7754
|
+
readonly totalPages: Schema.Number;
|
|
7755
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
7756
|
+
readonly code: Schema.Literal<"unauthorized">;
|
|
7757
|
+
readonly message: Schema.String;
|
|
7758
|
+
}> | Schema.Struct<{
|
|
7759
|
+
readonly code: Schema.Literal<"forbidden">;
|
|
7760
|
+
readonly message: Schema.String;
|
|
7761
|
+
}> | Schema.Struct<{
|
|
7762
|
+
readonly code: Schema.Literal<"not_found">;
|
|
7763
|
+
readonly message: Schema.String;
|
|
7764
|
+
}> | Schema.Struct<{
|
|
7765
|
+
readonly code: Schema.Literal<"conflict">;
|
|
7766
|
+
readonly message: Schema.String;
|
|
7767
|
+
}> | Schema.Struct<{
|
|
7768
|
+
readonly code: Schema.Literal<"bad_request">;
|
|
7769
|
+
readonly message: Schema.String;
|
|
7770
|
+
}> | Schema.Struct<{
|
|
7771
|
+
readonly code: Schema.Literal<"internal_error">;
|
|
7772
|
+
readonly message: Schema.String;
|
|
7773
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retryVoucherCommand", "POST", "/v1/organizations/:organizationId/voucher-commands/:commandId/retry", Schema.toCodecStringTree<Schema.Struct<{
|
|
7774
|
+
readonly organizationId: Schema.String;
|
|
7775
|
+
readonly commandId: Schema.String;
|
|
7776
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7777
|
+
readonly confirmedDuplicateRisk: Schema.Literal<true>;
|
|
7778
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7779
|
+
readonly id: Schema.String;
|
|
7780
|
+
readonly organizationId: Schema.String;
|
|
7781
|
+
readonly organizationVoucherProviderId: Schema.String;
|
|
7782
|
+
readonly serviceClientId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7783
|
+
readonly kind: Schema.Literals<readonly ["issue_voucher", "lookup_voucher"]>;
|
|
7784
|
+
readonly status: Schema.Literals<readonly ["requested", "accepted", "completed", "failed"]>;
|
|
7785
|
+
readonly payload: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
7786
|
+
readonly result: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7787
|
+
readonly externalMemberId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7788
|
+
readonly memberCode: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7789
|
+
readonly externalRewardId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7790
|
+
readonly externalGuid: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7791
|
+
readonly rawRecord: Schema.optional<Schema.Unknown>;
|
|
7792
|
+
}>, Schema.Struct<{
|
|
7793
|
+
readonly vouchers: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
7794
|
+
}>]>, Schema.Null]>;
|
|
7795
|
+
readonly errorMessage: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7796
|
+
readonly requestedAt: Schema.String;
|
|
7797
|
+
readonly acceptedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7798
|
+
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7799
|
+
readonly createdAt: Schema.String;
|
|
7800
|
+
readonly updatedAt: Schema.String;
|
|
7801
|
+
readonly deletedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7802
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
7803
|
+
readonly code: Schema.Literal<"unauthorized">;
|
|
7804
|
+
readonly message: Schema.String;
|
|
7805
|
+
}> | Schema.Struct<{
|
|
7806
|
+
readonly code: Schema.Literal<"forbidden">;
|
|
7807
|
+
readonly message: Schema.String;
|
|
7808
|
+
}> | Schema.Struct<{
|
|
7809
|
+
readonly code: Schema.Literal<"not_found">;
|
|
7810
|
+
readonly message: Schema.String;
|
|
7811
|
+
}> | Schema.Struct<{
|
|
7812
|
+
readonly code: Schema.Literal<"conflict">;
|
|
7813
|
+
readonly message: Schema.String;
|
|
7814
|
+
}> | Schema.Struct<{
|
|
7815
|
+
readonly code: Schema.Literal<"bad_request">;
|
|
7816
|
+
readonly message: Schema.String;
|
|
7817
|
+
}> | Schema.Struct<{
|
|
7818
|
+
readonly code: Schema.Literal<"internal_error">;
|
|
7819
|
+
readonly message: Schema.String;
|
|
7820
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getOrganizationVoucherProvider", "GET", "/v1/organizations/:organizationId/voucher-provider", Schema.toCodecStringTree<Schema.Struct<{
|
|
7678
7821
|
readonly organizationId: Schema.String;
|
|
7679
7822
|
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
7680
7823
|
readonly id: Schema.String;
|
|
@@ -8764,6 +8907,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
8764
8907
|
readonly waitMs: Schema.optional<Schema.Number>;
|
|
8765
8908
|
readonly memberId: Schema.String;
|
|
8766
8909
|
readonly payload: Schema.Struct<{
|
|
8910
|
+
readonly expiresAt: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8767
8911
|
readonly expectedUpdatedAt: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
8768
8912
|
}>;
|
|
8769
8913
|
}>, Schema.Struct<{
|
|
@@ -12428,6 +12572,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
12428
12572
|
readonly mobilePhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
12429
12573
|
readonly firstName: Schema.String;
|
|
12430
12574
|
readonly lastName: Schema.String;
|
|
12575
|
+
readonly dob: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
12431
12576
|
readonly meta: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12432
12577
|
readonly marketingPreferences: Schema.Struct<{
|
|
12433
12578
|
readonly email: Schema.Boolean;
|
|
@@ -12477,6 +12622,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
12477
12622
|
readonly mobilePhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
12478
12623
|
readonly firstName: Schema.String;
|
|
12479
12624
|
readonly lastName: Schema.String;
|
|
12625
|
+
readonly dob: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
12480
12626
|
readonly meta: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12481
12627
|
readonly marketingPreferences: Schema.Struct<{
|
|
12482
12628
|
readonly email: Schema.Boolean;
|
|
@@ -12515,6 +12661,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
12515
12661
|
readonly mobilePhone: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
12516
12662
|
readonly firstName: Schema.String;
|
|
12517
12663
|
readonly lastName: Schema.String;
|
|
12664
|
+
readonly dob: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
12518
12665
|
readonly meta: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
12519
12666
|
readonly marketingPreferences: Schema.optional<Schema.Struct<{
|
|
12520
12667
|
readonly email: Schema.optional<Schema.Boolean>;
|
|
@@ -12531,6 +12678,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
12531
12678
|
readonly mobilePhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
12532
12679
|
readonly firstName: Schema.String;
|
|
12533
12680
|
readonly lastName: Schema.String;
|
|
12681
|
+
readonly dob: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
12534
12682
|
readonly meta: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12535
12683
|
readonly marketingPreferences: Schema.Struct<{
|
|
12536
12684
|
readonly email: Schema.Boolean;
|
|
@@ -12571,6 +12719,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
12571
12719
|
readonly mobilePhone: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
12572
12720
|
readonly firstName: Schema.optional<Schema.String>;
|
|
12573
12721
|
readonly lastName: Schema.optional<Schema.String>;
|
|
12722
|
+
readonly dob: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
12574
12723
|
readonly meta: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
12575
12724
|
readonly marketingPreferences: Schema.optional<Schema.Struct<{
|
|
12576
12725
|
readonly email: Schema.optional<Schema.Boolean>;
|
|
@@ -12587,6 +12736,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
|
|
|
12587
12736
|
readonly mobilePhone: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
12588
12737
|
readonly firstName: Schema.String;
|
|
12589
12738
|
readonly lastName: Schema.String;
|
|
12739
|
+
readonly dob: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
12590
12740
|
readonly meta: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
12591
12741
|
readonly marketingPreferences: Schema.Struct<{
|
|
12592
12742
|
readonly email: Schema.Boolean;
|
|
@@ -13268,6 +13418,7 @@ type OrganizationVoucherIssueCommandResult = Schema.Schema.Type<typeof Organizat
|
|
|
13268
13418
|
type OrganizationVoucherLookupCommandResult = Schema.Schema.Type<typeof OrganizationVoucherLookupCommandResultSchema>;
|
|
13269
13419
|
type OrganizationVoucherCommandResult = Schema.Schema.Type<typeof OrganizationVoucherCommandResultSchema>;
|
|
13270
13420
|
type OrganizationVoucherCommand = Schema.Schema.Type<typeof OrganizationVoucherCommandSchema>;
|
|
13421
|
+
type PaginatedOrganizationVoucherCommands = Schema.Schema.Type<typeof PaginatedOrganizationVoucherCommandsSchema>;
|
|
13271
13422
|
type UpsertOrganizationVoucherProviderInput = Schema.Schema.Type<typeof UpsertOrganizationVoucherProviderSchema>;
|
|
13272
13423
|
type RequestVoucherIssueInput = Schema.Schema.Type<typeof RequestVoucherIssueSchema>;
|
|
13273
13424
|
type RequestVoucherLookupInput = Schema.Schema.Type<typeof RequestVoucherLookupSchema>;
|
|
@@ -15784,6 +15935,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
|
|
|
15784
15935
|
readonly mobilePhone: string | null;
|
|
15785
15936
|
readonly firstName: string;
|
|
15786
15937
|
readonly lastName: string;
|
|
15938
|
+
readonly dob: string | null;
|
|
15787
15939
|
readonly meta: {
|
|
15788
15940
|
readonly [x: string]: unknown;
|
|
15789
15941
|
};
|
|
@@ -15818,6 +15970,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
|
|
|
15818
15970
|
readonly mobilePhone: string | null;
|
|
15819
15971
|
readonly firstName: string;
|
|
15820
15972
|
readonly lastName: string;
|
|
15973
|
+
readonly dob: string | null;
|
|
15821
15974
|
readonly meta: {
|
|
15822
15975
|
readonly [x: string]: unknown;
|
|
15823
15976
|
};
|
|
@@ -15844,6 +15997,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
|
|
|
15844
15997
|
readonly mobilePhone: string | null;
|
|
15845
15998
|
readonly firstName: string;
|
|
15846
15999
|
readonly lastName: string;
|
|
16000
|
+
readonly dob: string | null;
|
|
15847
16001
|
readonly meta: {
|
|
15848
16002
|
readonly [x: string]: unknown;
|
|
15849
16003
|
};
|
|
@@ -15871,6 +16025,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
|
|
|
15871
16025
|
readonly mobilePhone: string | null;
|
|
15872
16026
|
readonly firstName: string;
|
|
15873
16027
|
readonly lastName: string;
|
|
16028
|
+
readonly dob: string | null;
|
|
15874
16029
|
readonly meta: {
|
|
15875
16030
|
readonly [x: string]: unknown;
|
|
15876
16031
|
};
|
|
@@ -16062,6 +16217,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
|
|
|
16062
16217
|
readonly waitMs?: number | undefined;
|
|
16063
16218
|
} | {
|
|
16064
16219
|
readonly payload: {
|
|
16220
|
+
readonly expiresAt?: string | null | undefined;
|
|
16065
16221
|
readonly expectedUpdatedAt?: string | null | undefined;
|
|
16066
16222
|
};
|
|
16067
16223
|
readonly memberId: string;
|
|
@@ -17212,4 +17368,4 @@ declare const makePromiseSpokeClient: (options: HubApiCredentialOptions) => Prom
|
|
|
17212
17368
|
readonly hubClient: PromiseHubApiClient;
|
|
17213
17369
|
}>;
|
|
17214
17370
|
|
|
17215
|
-
export { AddressSchema, type AdminSession, AdminSessionSchema, type AuthorizeEnsureActiveMembershipRenewalInput, AuthorizeEnsureActiveMembershipRenewalSchema, type BadRequestError, BadRequestErrorSchema, type BootstrapOrganizationMemberSourceAgentInput, type BootstrapOrganizationMemberSourceAgentResponse, BootstrapOrganizationMemberSourceAgentResponseSchema, BootstrapOrganizationMemberSourceAgentSchema, type BulkGetOrganizationMembersInput, BulkGetOrganizationMembersSchema, type BulkOrganizationMembersBasicResponse, BulkOrganizationMembersBasicResponseSchema, type BulkOrganizationMembersMedResponse, BulkOrganizationMembersMedResponseSchema, type BulkOrganizationMembersResponse, BulkOrganizationMembersResponseSchema, type BulkOrganizationMembersResponseUnion, BulkOrganizationMembersResponseUnionSchema, type CleanupOrganizationMembersInput, CleanupOrganizationMembersSchema, type CompleteOnsitePointCommandInput, CompleteOnsitePointCommandSchema, type CompleteOnsiteVoucherCommandInput, CompleteOnsiteVoucherCommandSchema, type ConflictError, ConflictErrorSchema, type ConvertOrganizationToDemoInput, ConvertOrganizationToDemoSchema, type CreateGuestInput, CreateGuestSchema, type CreateMemberInput, CreateMemberSchema, type CreateOrganizationInitialMembershipUploadInput, type CreateOrganizationInitialMembershipUploadResponse, CreateOrganizationInitialMembershipUploadResponseSchema, CreateOrganizationInitialMembershipUploadSchema, type CreateOrganizationInput, type CreateOrganizationMemberSourceCsvUploadInput, type CreateOrganizationMemberSourceCsvUploadResponse, CreateOrganizationMemberSourceCsvUploadResponseSchema, CreateOrganizationMemberSourceCsvUploadSchema, type CreateOrganizationPointTypeInput, CreateOrganizationPointTypeSchema, type CreateOrganizationProductOptionInput, CreateOrganizationProductOptionSchema, type CreateOrganizationProductWebhookInput, CreateOrganizationProductWebhookSchema, CreateOrganizationSchema, type CreateServiceClientInput, CreateServiceClientSchema, type CsvUploadReadiness, CsvUploadReadinessSchema, DateOnlySchema, type DeleteOrganizationInitialMembershipUploadResponse, DeleteOrganizationInitialMembershipUploadResponseSchema, type DeletePayload, DeletePayloadSchema, type DeleteServiceClientInput, DeleteServiceClientSchema, type EnsureActiveMembershipCommand, type EnsureActiveMembershipCommandPayload, EnsureActiveMembershipCommandPayloadSchema, EnsureActiveMembershipCommandSchema, type EnsureActiveMembershipManualReviewItem, EnsureActiveMembershipManualReviewItemSchema, type EnsureActiveMembershipManualReviewQueue, EnsureActiveMembershipManualReviewQueueSchema, type EnsureActiveMembershipMemberInput, EnsureActiveMembershipMemberSchema, EnsureActiveMembershipNonSuccessOutcomeSchema, type EnsureActiveMembershipNonSuccessResult, EnsureActiveMembershipNonSuccessResultSchema, type EnsureActiveMembershipOutcome, EnsureActiveMembershipOutcomeSchema, type EnsureActiveMembershipResponse, EnsureActiveMembershipResponseSchema, type EnsureActiveMembershipResult, EnsureActiveMembershipResultSchema, EnsureActiveMembershipSuccessOutcomeSchema, type EnsureActiveMembershipSuccessResult, EnsureActiveMembershipSuccessResultSchema, type EnsureActiveMembershipWorkflowProgress, EnsureActiveMembershipWorkflowProgressSchema, EnsureActiveMembershipWorkflowStepSchema, type EnsureActiveMembershipWorkflowStepState, EnsureActiveMembershipWorkflowStepStateSchema, type ForbiddenError, ForbiddenErrorSchema, GamingPermissionsSchema, type Guest, type GuestContactMatch, GuestContactMatchSchema, GuestSchema, HubApi, type HubApiClient, type HubApiClientOptions, type HubApiCredentialOptions, type ImportedMemberRecord, ImportedMemberRecordSchema, type InternalServerError, InternalServerErrorSchema, IssuedPrivateKeySchema, type MailchimpSettingsInput, MailchimpSettingsInputSchema, type MailchimpSettingsResponse, MailchimpSettingsSchema, MarketingPreferencesSchema, type Member, type MemberBasic, type MemberBasicResponse, MemberBasicResponseSchema, MemberBasicSchema, type MemberCleanupResult, MemberCleanupResultSchema, type MemberContactMatch, MemberContactMatchSchema, type MemberFullResponse, MemberFullResponseSchema, type MemberMed, type MemberMedResponse, MemberMedResponseSchema, MemberMedSchema, type MemberPointBalance, MemberPointBalanceSchema, type MemberPointBalancesResponse, MemberPointBalancesResponseSchema, type MemberResponse, type MemberResponseMode, MemberResponseModeSchema, MemberResponseSchema, MemberSchema, type MemberSeedBatch, MemberSeedBatchSchema, MemberSourceSecretNameSchema, type MemberStatusCredits, MemberStatusCreditsSchema, type NexusReferenceDataRequest, NexusReferenceDataRequestSchema, type NotFoundError, NotFoundErrorSchema, type OnsiteAgentCommand, OnsiteAgentCommandSchema, type OnsiteAgentCompleteCustomFieldsInput, OnsiteAgentCompleteCustomFieldsSchema, type OnsiteAgentCompleteEnsureActiveMembershipInput, OnsiteAgentCompleteEnsureActiveMembershipSchema, type OnsiteAgentCompleteMemberCreateInput, OnsiteAgentCompleteMemberCreateSchema, type OnsiteAgentCompleteMemberLookupInput, OnsiteAgentCompleteMemberLookupSchema, type OnsiteAgentCompleteMemberRenewalInput, OnsiteAgentCompleteMemberRenewalSchema, type OnsiteAgentCompleteMemberUpdateInput, OnsiteAgentCompleteMemberUpdateSchema, type OnsiteAgentCompleteReferenceDataInput, OnsiteAgentCompleteReferenceDataSchema, OnsiteAgentCompleteRunErrorSchema, type OnsiteAgentCompleteRunInput, OnsiteAgentCompleteRunSchema, type OnsiteAgentCsvUploadTarget, OnsiteAgentCsvUploadTargetSchema, type OnsiteAgentCustomFieldsCommand, OnsiteAgentCustomFieldsCommandSchema, type OnsiteAgentEnsureActiveMembershipAuditEvent, OnsiteAgentEnsureActiveMembershipAuditEventSchema, type OnsiteAgentEnsureActiveMembershipCommand, OnsiteAgentEnsureActiveMembershipCommandSchema, OnsiteAgentEnsureActiveMembershipCompletionResultSchema, type OnsiteAgentEnsureActiveMembershipProgressUpdate, OnsiteAgentEnsureActiveMembershipProgressUpdateSchema, type OnsiteAgentHeartbeatInput, type OnsiteAgentHeartbeatResponse, OnsiteAgentHeartbeatResponseSchema, OnsiteAgentHeartbeatSchema, type OnsiteAgentIngestLiveFbiBatchInput, OnsiteAgentIngestLiveFbiBatchSchema, type OnsiteAgentMemberCreateCommand, OnsiteAgentMemberCreateCommandSchema, type OnsiteAgentMemberCreationResult, OnsiteAgentMemberCreationResultSchema, type OnsiteAgentMemberLookupCommand, OnsiteAgentMemberLookupCommandSchema, type OnsiteAgentMemberPreferenceUpdateCommand, OnsiteAgentMemberPreferenceUpdateCommandSchema, type OnsiteAgentMemberRenewalCommand, OnsiteAgentMemberRenewalCommandSchema, type OnsiteAgentMemberUpdateCommand, OnsiteAgentMemberUpdateCommandSchema, type OnsiteAgentReferenceDataCommand, OnsiteAgentReferenceDataCommandSchema, type OnsiteAgentRunProgressInput, OnsiteAgentRunProgressSchema, type OnsitePointCommand, OnsitePointCommandSchema, type OnsiteResourceCallRequest, OnsiteResourceCallRequestSchema, type OnsiteResourceCallResponse, OnsiteResourceCallResponseSchema, type OnsiteResourceClient, type OnsiteResourceEnsureActiveMembershipCallResponse, OnsiteResourceEnsureActiveMembershipCallResponseSchema, type OnsiteResourceMemberCallResponse, OnsiteResourceMemberCallResponseSchema, type OnsiteResourcePointCallResponse, OnsiteResourcePointCallResponseSchema, type OnsiteResourceVoucherCallResponse, OnsiteResourceVoucherCallResponseSchema, type OnsiteVoucherCommand, OnsiteVoucherCommandSchema, type Organization, type OrganizationCapabilities, OrganizationCapabilitiesSchema, type OrganizationCapability, OrganizationCapabilitySchema, type OrganizationInitialMembershipUploadDownload, OrganizationInitialMembershipUploadDownloadSchema, type OrganizationInitialMembershipUploads, OrganizationInitialMembershipUploadsSchema, type OrganizationMemberGender, OrganizationMemberGenderSchema, type OrganizationMemberMembershipType, OrganizationMemberMembershipTypeSchema, type OrganizationMemberRatingGrade, OrganizationMemberRatingGradeSchema, type OrganizationMemberSource, type OrganizationMemberSourceAgent, OrganizationMemberSourceAgentSchema, type OrganizationMemberSourceCommand, OrganizationMemberSourceCommandSchema, type OrganizationMemberSourceCsvImport, OrganizationMemberSourceCsvImportSchema, type OrganizationMemberSourceCsvMapping, OrganizationMemberSourceCsvMappingSchema, type OrganizationMemberSourceEnsureActiveMembershipConfig, OrganizationMemberSourceEnsureActiveMembershipConfigSchema, OrganizationMemberSourceSchema, OrganizationMemberSourceSecretInputSchema, type OrganizationMemberSourceWebhook, OrganizationMemberSourceWebhookSchema, type OrganizationMemberSourceWebhookUpsertResponse, OrganizationMemberSourceWebhookUpsertResponseSchema, type OrganizationMemberSyncRun, type OrganizationMemberSyncRunError, OrganizationMemberSyncRunErrorSchema, OrganizationMemberSyncRunSchema, OrganizationMemberSyncRunSummarySchema, type OrganizationMemberTitle, OrganizationMemberTitleSchema, type OrganizationMembersListResponse, type OrganizationMembersSearchField, OrganizationMembersSearchFieldSchema, type OrganizationMembersSortField, OrganizationMembersSortFieldSchema, type OrganizationMembersStatusFilter, OrganizationMembersStatusFilterSchema, type OrganizationPeopleContactLookupResponse, OrganizationPeopleContactLookupResponseSchema, type OrganizationPointCommand, OrganizationPointCommandResultSchema, OrganizationPointCommandSchema, type OrganizationPointProvider, OrganizationPointProviderSchema, type OrganizationPointType, OrganizationPointTypeSchema, type OrganizationPointTypesResponse, OrganizationPointTypesResponseSchema, type OrganizationProductOption, OrganizationProductOptionSchema, type OrganizationProductWebhook, OrganizationProductWebhookSchema, type OrganizationProductWebhookUpsertResponse, OrganizationProductWebhookUpsertResponseSchema, OrganizationSchema, type OrganizationVoucherCommand, type OrganizationVoucherCommandResult, OrganizationVoucherCommandResultSchema, OrganizationVoucherCommandSchema, type OrganizationVoucherIssueCommandResult, OrganizationVoucherIssueCommandResultSchema, type OrganizationVoucherLookupCommandResult, OrganizationVoucherLookupCommandResultSchema, type OrganizationVoucherProvider, OrganizationVoucherProviderSchema, OrganizationVoucherProviderSecretInputSchema, OrganizationVoucherProviderSecretNameSchema, type PaginatedGuests, PaginatedGuestsSchema, type PaginatedOrganizationMemberGenders, PaginatedOrganizationMemberGendersSchema, type PaginatedOrganizationMemberMembershipTypes, PaginatedOrganizationMemberMembershipTypesSchema, type PaginatedOrganizationMemberRatingGrades, PaginatedOrganizationMemberRatingGradesSchema, type PaginatedOrganizationMemberSourceCommands, PaginatedOrganizationMemberSourceCommandsSchema, type PaginatedOrganizationMemberSyncRuns, PaginatedOrganizationMemberSyncRunsSchema, type PaginatedOrganizationMemberTitles, PaginatedOrganizationMemberTitlesSchema, type PaginatedOrganizationMembers, type PaginatedOrganizationMembersBasic, PaginatedOrganizationMembersBasicSchema, type PaginatedOrganizationMembersMed, PaginatedOrganizationMembersMedSchema, PaginatedOrganizationMembersResponseSchema, PaginatedOrganizationMembersSchema, type PaginatedOrganizationProductOptions, PaginatedOrganizationProductOptionsSchema, type PaginatedOrganizationProductWebhooks, PaginatedOrganizationProductWebhooksSchema, type PaginatedOrganizations, PaginatedOrganizationsSchema, type PaginatedServiceClients, PaginatedServiceClientsSchema, PointExecutionEvidenceSchema, PointReadinessSchema, type PointRequestMetadataInput, PointRequestMetadataSchema, PresignedPostSchema, type PromiseClient, type PromiseHubApiClient, type PromiseSpokeClient, type ReconcileEnsureActiveMembershipManualReviewInput, ReconcileEnsureActiveMembershipManualReviewSchema, type RequestEnsureActiveMembershipInput, RequestEnsureActiveMembershipSchema, type RequestPointDebitInput, RequestPointDebitSchema, type RequestPointLookupInput, RequestPointLookupSchema, type RequestSourceManagedMemberCreateInput, RequestSourceManagedMemberCreateSchema, type RequestSourceManagedMemberPreferenceUpdateInput, RequestSourceManagedMemberPreferenceUpdateSchema, type RequestSourceManagedMemberRenewalInput, RequestSourceManagedMemberRenewalSchema, type RequestSourceManagedMemberUpdateInput, RequestSourceManagedMemberUpdateSchema, type RequestVoucherIssueInput, RequestVoucherIssueSchema, type RequestVoucherLookupInput, RequestVoucherLookupSchema, type SeedOrganizationMembersInput, SeedOrganizationMembersSchema, type ServiceClient, ServiceClientSchema, type SortDirection, SortDirectionSchema, type SourceContactPreference, SourceContactPreferenceSchema, type SourceManagedMemberLookupBy, SourceManagedMemberLookupBySchema, type SourceManagedMemberLookupCommandPayload, SourceManagedMemberLookupCommandPayloadSchema, SourceManagedMemberPreferenceUpdateCommandPayloadSchema, type SourceManagedMemberRenewalCommandPayload, SourceManagedMemberRenewalCommandPayloadSchema, SourceManagedMemberUpdateCommandPayloadSchema, SpokeHubApiError, type SpokeHubApiErrorBody, SpokeHubClientError, type SpokeHubErrorKind, type SpokeHubHttpErrorContext, type SpokeHubResult, TimestampSchema, type TriggerOrganizationMemberSyncInput, TriggerOrganizationMemberSyncSchema, type UnauthorizedError, UnauthorizedErrorSchema, type UpdateGuestInput, UpdateGuestSchema, type UpdateMemberInput, UpdateMemberSchema, type UpdateMemberStatusCreditsInput, UpdateMemberStatusCreditsSchema, type UpdateOrganizationInput, type UpdateOrganizationPointTypeInput, UpdateOrganizationPointTypeSchema, type UpdateOrganizationProductWebhookInput, UpdateOrganizationProductWebhookSchema, UpdateOrganizationSchema, type UpdateServiceClientInput, UpdateServiceClientSchema, type UpsertMemberPointBalanceInput, UpsertMemberPointBalanceSchema, type UpsertOrganizationMemberSourceCsvMappingInput, UpsertOrganizationMemberSourceCsvMappingSchema, type UpsertOrganizationMemberSourceInput, UpsertOrganizationMemberSourceSchema, type UpsertOrganizationMemberSourceWebhookInput, UpsertOrganizationMemberSourceWebhookSchema, type UpsertOrganizationPointProviderInput, UpsertOrganizationPointProviderSchema, type UpsertOrganizationProductWebhookInput, UpsertOrganizationProductWebhookSchema, type UpsertOrganizationVoucherProviderInput, UpsertOrganizationVoucherProviderSchema, adminRoles, ensureActiveMembershipOutcomes, guestStatuses, makeBadRequest, makeConflict, makeForbidden, makeHubApiClient, makeInternalServerError, makeNotFound, makeOnsiteResourceClient, makePromiseHubApiClient, makePromiseOnsiteResourceClient, makePromiseServiceHubApiClient, makePromiseSpokeClient, makeServiceHubApiClient, makeSpokeClient, makeUnauthorized, memberComputedStatuses, memberCreatedOrigins, memberPreferredContactMethods, memberRecordModes, memberSourceEnsureActiveMembershipEnabled, memberStatuses, organizationMemberSourceAgentCapabilities, organizationMemberSourceAgentStatuses, organizationMemberSourceBatchTransports, organizationMemberSourceCommandKinds, organizationMemberSourceCommandStatuses, organizationMemberSourceCsvImportStatuses, organizationMemberSourceLiveTransports, organizationMemberSourceManualTransports, organizationMemberSourceStatuses, organizationMemberSourceVendors, organizationMemberSourceWebhookDeliveryStatuses, organizationMemberSourceWebhookStatuses, organizationMemberSyncModes, organizationMemberSyncRunStatuses, organizationMemberSyncTransports, organizationMemberSyncTriggerKinds, organizationPointCommandKinds, organizationPointCommandStatuses, organizationPointProviderProviders, organizationPointProviderStatuses, organizationPointProviderTransports, organizationPointTypeStatuses, organizationProductWebhookDeliveryStatuses, organizationProductWebhookStatuses, organizationStatuses, organizationVoucherCommandKinds, organizationVoucherCommandStatuses, organizationVoucherProviderProviders, organizationVoucherProviderStatuses, organizationVoucherProviderTransports, resolveHubApiBaseUrl };
|
|
17371
|
+
export { AddressSchema, type AdminSession, AdminSessionSchema, type AuthorizeEnsureActiveMembershipRenewalInput, AuthorizeEnsureActiveMembershipRenewalSchema, type BadRequestError, BadRequestErrorSchema, type BootstrapOrganizationMemberSourceAgentInput, type BootstrapOrganizationMemberSourceAgentResponse, BootstrapOrganizationMemberSourceAgentResponseSchema, BootstrapOrganizationMemberSourceAgentSchema, type BulkGetOrganizationMembersInput, BulkGetOrganizationMembersSchema, type BulkOrganizationMembersBasicResponse, BulkOrganizationMembersBasicResponseSchema, type BulkOrganizationMembersMedResponse, BulkOrganizationMembersMedResponseSchema, type BulkOrganizationMembersResponse, BulkOrganizationMembersResponseSchema, type BulkOrganizationMembersResponseUnion, BulkOrganizationMembersResponseUnionSchema, type CleanupOrganizationMembersInput, CleanupOrganizationMembersSchema, type CompleteOnsitePointCommandInput, CompleteOnsitePointCommandSchema, type CompleteOnsiteVoucherCommandInput, CompleteOnsiteVoucherCommandSchema, type ConflictError, ConflictErrorSchema, type ConvertOrganizationToDemoInput, ConvertOrganizationToDemoSchema, type CreateGuestInput, CreateGuestSchema, type CreateMemberInput, CreateMemberSchema, type CreateOrganizationInitialMembershipUploadInput, type CreateOrganizationInitialMembershipUploadResponse, CreateOrganizationInitialMembershipUploadResponseSchema, CreateOrganizationInitialMembershipUploadSchema, type CreateOrganizationInput, type CreateOrganizationMemberSourceCsvUploadInput, type CreateOrganizationMemberSourceCsvUploadResponse, CreateOrganizationMemberSourceCsvUploadResponseSchema, CreateOrganizationMemberSourceCsvUploadSchema, type CreateOrganizationPointTypeInput, CreateOrganizationPointTypeSchema, type CreateOrganizationProductOptionInput, CreateOrganizationProductOptionSchema, type CreateOrganizationProductWebhookInput, CreateOrganizationProductWebhookSchema, CreateOrganizationSchema, type CreateServiceClientInput, CreateServiceClientSchema, type CsvUploadReadiness, CsvUploadReadinessSchema, DateOnlySchema, type DeleteOrganizationInitialMembershipUploadResponse, DeleteOrganizationInitialMembershipUploadResponseSchema, type DeletePayload, DeletePayloadSchema, type DeleteServiceClientInput, DeleteServiceClientSchema, type EnsureActiveMembershipCommand, type EnsureActiveMembershipCommandPayload, EnsureActiveMembershipCommandPayloadSchema, EnsureActiveMembershipCommandSchema, type EnsureActiveMembershipManualReviewItem, EnsureActiveMembershipManualReviewItemSchema, type EnsureActiveMembershipManualReviewQueue, EnsureActiveMembershipManualReviewQueueSchema, type EnsureActiveMembershipMemberInput, EnsureActiveMembershipMemberSchema, EnsureActiveMembershipNonSuccessOutcomeSchema, type EnsureActiveMembershipNonSuccessResult, EnsureActiveMembershipNonSuccessResultSchema, type EnsureActiveMembershipOutcome, EnsureActiveMembershipOutcomeSchema, type EnsureActiveMembershipResponse, EnsureActiveMembershipResponseSchema, type EnsureActiveMembershipResult, EnsureActiveMembershipResultSchema, EnsureActiveMembershipSuccessOutcomeSchema, type EnsureActiveMembershipSuccessResult, EnsureActiveMembershipSuccessResultSchema, type EnsureActiveMembershipWorkflowProgress, EnsureActiveMembershipWorkflowProgressSchema, EnsureActiveMembershipWorkflowStepSchema, type EnsureActiveMembershipWorkflowStepState, EnsureActiveMembershipWorkflowStepStateSchema, type ForbiddenError, ForbiddenErrorSchema, GamingPermissionsSchema, type Guest, type GuestContactMatch, GuestContactMatchSchema, GuestSchema, HubApi, type HubApiClient, type HubApiClientOptions, type HubApiCredentialOptions, type ImportedMemberRecord, ImportedMemberRecordSchema, type InternalServerError, InternalServerErrorSchema, IssuedPrivateKeySchema, type MailchimpSettingsInput, MailchimpSettingsInputSchema, type MailchimpSettingsResponse, MailchimpSettingsSchema, MarketingPreferencesSchema, type Member, type MemberBasic, type MemberBasicResponse, MemberBasicResponseSchema, MemberBasicSchema, type MemberCleanupResult, MemberCleanupResultSchema, type MemberContactMatch, MemberContactMatchSchema, type MemberFullResponse, MemberFullResponseSchema, type MemberMed, type MemberMedResponse, MemberMedResponseSchema, MemberMedSchema, type MemberPointBalance, MemberPointBalanceSchema, type MemberPointBalancesResponse, MemberPointBalancesResponseSchema, type MemberResponse, type MemberResponseMode, MemberResponseModeSchema, MemberResponseSchema, MemberSchema, type MemberSeedBatch, MemberSeedBatchSchema, MemberSourceSecretNameSchema, type MemberStatusCredits, MemberStatusCreditsSchema, type NexusReferenceDataRequest, NexusReferenceDataRequestSchema, type NotFoundError, NotFoundErrorSchema, type OnsiteAgentCommand, OnsiteAgentCommandSchema, type OnsiteAgentCompleteCustomFieldsInput, OnsiteAgentCompleteCustomFieldsSchema, type OnsiteAgentCompleteEnsureActiveMembershipInput, OnsiteAgentCompleteEnsureActiveMembershipSchema, type OnsiteAgentCompleteMemberCreateInput, OnsiteAgentCompleteMemberCreateSchema, type OnsiteAgentCompleteMemberLookupInput, OnsiteAgentCompleteMemberLookupSchema, type OnsiteAgentCompleteMemberRenewalInput, OnsiteAgentCompleteMemberRenewalSchema, type OnsiteAgentCompleteMemberUpdateInput, OnsiteAgentCompleteMemberUpdateSchema, type OnsiteAgentCompleteReferenceDataInput, OnsiteAgentCompleteReferenceDataSchema, OnsiteAgentCompleteRunErrorSchema, type OnsiteAgentCompleteRunInput, OnsiteAgentCompleteRunSchema, type OnsiteAgentCsvUploadTarget, OnsiteAgentCsvUploadTargetSchema, type OnsiteAgentCustomFieldsCommand, OnsiteAgentCustomFieldsCommandSchema, type OnsiteAgentEnsureActiveMembershipAuditEvent, OnsiteAgentEnsureActiveMembershipAuditEventSchema, type OnsiteAgentEnsureActiveMembershipCommand, OnsiteAgentEnsureActiveMembershipCommandSchema, OnsiteAgentEnsureActiveMembershipCompletionResultSchema, type OnsiteAgentEnsureActiveMembershipProgressUpdate, OnsiteAgentEnsureActiveMembershipProgressUpdateSchema, type OnsiteAgentHeartbeatInput, type OnsiteAgentHeartbeatResponse, OnsiteAgentHeartbeatResponseSchema, OnsiteAgentHeartbeatSchema, type OnsiteAgentIngestLiveFbiBatchInput, OnsiteAgentIngestLiveFbiBatchSchema, type OnsiteAgentMemberCreateCommand, OnsiteAgentMemberCreateCommandSchema, type OnsiteAgentMemberCreationResult, OnsiteAgentMemberCreationResultSchema, type OnsiteAgentMemberLookupCommand, OnsiteAgentMemberLookupCommandSchema, type OnsiteAgentMemberPreferenceUpdateCommand, OnsiteAgentMemberPreferenceUpdateCommandSchema, type OnsiteAgentMemberRenewalCommand, OnsiteAgentMemberRenewalCommandSchema, type OnsiteAgentMemberUpdateCommand, OnsiteAgentMemberUpdateCommandSchema, type OnsiteAgentReferenceDataCommand, OnsiteAgentReferenceDataCommandSchema, type OnsiteAgentRunProgressInput, OnsiteAgentRunProgressSchema, type OnsitePointCommand, OnsitePointCommandSchema, type OnsiteResourceCallRequest, OnsiteResourceCallRequestSchema, type OnsiteResourceCallResponse, OnsiteResourceCallResponseSchema, type OnsiteResourceClient, type OnsiteResourceEnsureActiveMembershipCallResponse, OnsiteResourceEnsureActiveMembershipCallResponseSchema, type OnsiteResourceMemberCallResponse, OnsiteResourceMemberCallResponseSchema, type OnsiteResourcePointCallResponse, OnsiteResourcePointCallResponseSchema, type OnsiteResourceVoucherCallResponse, OnsiteResourceVoucherCallResponseSchema, type OnsiteVoucherCommand, OnsiteVoucherCommandSchema, type Organization, type OrganizationCapabilities, OrganizationCapabilitiesSchema, type OrganizationCapability, OrganizationCapabilitySchema, type OrganizationInitialMembershipUploadDownload, OrganizationInitialMembershipUploadDownloadSchema, type OrganizationInitialMembershipUploads, OrganizationInitialMembershipUploadsSchema, type OrganizationMemberGender, OrganizationMemberGenderSchema, type OrganizationMemberMembershipType, OrganizationMemberMembershipTypeSchema, type OrganizationMemberRatingGrade, OrganizationMemberRatingGradeSchema, type OrganizationMemberSource, type OrganizationMemberSourceAgent, OrganizationMemberSourceAgentSchema, type OrganizationMemberSourceCommand, OrganizationMemberSourceCommandSchema, type OrganizationMemberSourceCsvImport, OrganizationMemberSourceCsvImportSchema, type OrganizationMemberSourceCsvMapping, OrganizationMemberSourceCsvMappingSchema, type OrganizationMemberSourceEnsureActiveMembershipConfig, OrganizationMemberSourceEnsureActiveMembershipConfigSchema, OrganizationMemberSourceSchema, OrganizationMemberSourceSecretInputSchema, type OrganizationMemberSourceWebhook, OrganizationMemberSourceWebhookSchema, type OrganizationMemberSourceWebhookUpsertResponse, OrganizationMemberSourceWebhookUpsertResponseSchema, type OrganizationMemberSyncRun, type OrganizationMemberSyncRunError, OrganizationMemberSyncRunErrorSchema, OrganizationMemberSyncRunSchema, OrganizationMemberSyncRunSummarySchema, type OrganizationMemberTitle, OrganizationMemberTitleSchema, type OrganizationMembersListResponse, type OrganizationMembersSearchField, OrganizationMembersSearchFieldSchema, type OrganizationMembersSortField, OrganizationMembersSortFieldSchema, type OrganizationMembersStatusFilter, OrganizationMembersStatusFilterSchema, type OrganizationPeopleContactLookupResponse, OrganizationPeopleContactLookupResponseSchema, type OrganizationPointCommand, OrganizationPointCommandResultSchema, OrganizationPointCommandSchema, type OrganizationPointProvider, OrganizationPointProviderSchema, type OrganizationPointType, OrganizationPointTypeSchema, type OrganizationPointTypesResponse, OrganizationPointTypesResponseSchema, type OrganizationProductOption, OrganizationProductOptionSchema, type OrganizationProductWebhook, OrganizationProductWebhookSchema, type OrganizationProductWebhookUpsertResponse, OrganizationProductWebhookUpsertResponseSchema, OrganizationSchema, type OrganizationVoucherCommand, type OrganizationVoucherCommandResult, OrganizationVoucherCommandResultSchema, OrganizationVoucherCommandSchema, type OrganizationVoucherIssueCommandResult, OrganizationVoucherIssueCommandResultSchema, type OrganizationVoucherLookupCommandResult, OrganizationVoucherLookupCommandResultSchema, type OrganizationVoucherProvider, OrganizationVoucherProviderSchema, OrganizationVoucherProviderSecretInputSchema, OrganizationVoucherProviderSecretNameSchema, type PaginatedGuests, PaginatedGuestsSchema, type PaginatedOrganizationMemberGenders, PaginatedOrganizationMemberGendersSchema, type PaginatedOrganizationMemberMembershipTypes, PaginatedOrganizationMemberMembershipTypesSchema, type PaginatedOrganizationMemberRatingGrades, PaginatedOrganizationMemberRatingGradesSchema, type PaginatedOrganizationMemberSourceCommands, PaginatedOrganizationMemberSourceCommandsSchema, type PaginatedOrganizationMemberSyncRuns, PaginatedOrganizationMemberSyncRunsSchema, type PaginatedOrganizationMemberTitles, PaginatedOrganizationMemberTitlesSchema, type PaginatedOrganizationMembers, type PaginatedOrganizationMembersBasic, PaginatedOrganizationMembersBasicSchema, type PaginatedOrganizationMembersMed, PaginatedOrganizationMembersMedSchema, PaginatedOrganizationMembersResponseSchema, PaginatedOrganizationMembersSchema, type PaginatedOrganizationProductOptions, PaginatedOrganizationProductOptionsSchema, type PaginatedOrganizationProductWebhooks, PaginatedOrganizationProductWebhooksSchema, type PaginatedOrganizationVoucherCommands, PaginatedOrganizationVoucherCommandsSchema, type PaginatedOrganizations, PaginatedOrganizationsSchema, type PaginatedServiceClients, PaginatedServiceClientsSchema, PointExecutionEvidenceSchema, PointReadinessSchema, type PointRequestMetadataInput, PointRequestMetadataSchema, PresignedPostSchema, type PromiseClient, type PromiseHubApiClient, type PromiseSpokeClient, type ReconcileEnsureActiveMembershipManualReviewInput, ReconcileEnsureActiveMembershipManualReviewSchema, type RequestEnsureActiveMembershipInput, RequestEnsureActiveMembershipSchema, type RequestPointDebitInput, RequestPointDebitSchema, type RequestPointLookupInput, RequestPointLookupSchema, type RequestSourceManagedMemberCreateInput, RequestSourceManagedMemberCreateSchema, type RequestSourceManagedMemberPreferenceUpdateInput, RequestSourceManagedMemberPreferenceUpdateSchema, type RequestSourceManagedMemberRenewalInput, RequestSourceManagedMemberRenewalSchema, type RequestSourceManagedMemberUpdateInput, RequestSourceManagedMemberUpdateSchema, type RequestVoucherIssueInput, RequestVoucherIssueSchema, type RequestVoucherLookupInput, RequestVoucherLookupSchema, RetryVoucherCommandSchema, type SeedOrganizationMembersInput, SeedOrganizationMembersSchema, type ServiceClient, ServiceClientSchema, type SortDirection, SortDirectionSchema, type SourceContactPreference, SourceContactPreferenceSchema, type SourceManagedMemberLookupBy, SourceManagedMemberLookupBySchema, type SourceManagedMemberLookupCommandPayload, SourceManagedMemberLookupCommandPayloadSchema, SourceManagedMemberPreferenceUpdateCommandPayloadSchema, type SourceManagedMemberRenewalCommandPayload, SourceManagedMemberRenewalCommandPayloadSchema, SourceManagedMemberUpdateCommandPayloadSchema, SpokeHubApiError, type SpokeHubApiErrorBody, SpokeHubClientError, type SpokeHubErrorKind, type SpokeHubHttpErrorContext, type SpokeHubResult, TimestampSchema, type TriggerOrganizationMemberSyncInput, TriggerOrganizationMemberSyncSchema, type UnauthorizedError, UnauthorizedErrorSchema, type UpdateGuestInput, UpdateGuestSchema, type UpdateMemberInput, UpdateMemberSchema, type UpdateMemberStatusCreditsInput, UpdateMemberStatusCreditsSchema, type UpdateOrganizationInput, type UpdateOrganizationPointTypeInput, UpdateOrganizationPointTypeSchema, type UpdateOrganizationProductWebhookInput, UpdateOrganizationProductWebhookSchema, UpdateOrganizationSchema, type UpdateServiceClientInput, UpdateServiceClientSchema, type UpsertMemberPointBalanceInput, UpsertMemberPointBalanceSchema, type UpsertOrganizationMemberSourceCsvMappingInput, UpsertOrganizationMemberSourceCsvMappingSchema, type UpsertOrganizationMemberSourceInput, UpsertOrganizationMemberSourceSchema, type UpsertOrganizationMemberSourceWebhookInput, UpsertOrganizationMemberSourceWebhookSchema, type UpsertOrganizationPointProviderInput, UpsertOrganizationPointProviderSchema, type UpsertOrganizationProductWebhookInput, UpsertOrganizationProductWebhookSchema, type UpsertOrganizationVoucherProviderInput, UpsertOrganizationVoucherProviderSchema, adminRoles, ensureActiveMembershipOutcomes, guestStatuses, isStaleAcceptedVoucherCommand, makeBadRequest, makeConflict, makeForbidden, makeHubApiClient, makeInternalServerError, makeNotFound, makeOnsiteResourceClient, makePromiseHubApiClient, makePromiseOnsiteResourceClient, makePromiseServiceHubApiClient, makePromiseSpokeClient, makeServiceHubApiClient, makeSpokeClient, makeUnauthorized, memberComputedStatuses, memberCreatedOrigins, memberPreferredContactMethods, memberRecordModes, memberSourceEnsureActiveMembershipEnabled, memberStatuses, organizationMemberSourceAgentCapabilities, organizationMemberSourceAgentStatuses, organizationMemberSourceBatchTransports, organizationMemberSourceCommandKinds, organizationMemberSourceCommandStatuses, organizationMemberSourceCsvImportStatuses, organizationMemberSourceLiveTransports, organizationMemberSourceManualTransports, organizationMemberSourceStatuses, organizationMemberSourceVendors, organizationMemberSourceWebhookDeliveryStatuses, organizationMemberSourceWebhookStatuses, organizationMemberSyncModes, organizationMemberSyncRunStatuses, organizationMemberSyncTransports, organizationMemberSyncTriggerKinds, organizationPointCommandKinds, organizationPointCommandStatuses, organizationPointProviderProviders, organizationPointProviderStatuses, organizationPointProviderTransports, organizationPointTypeStatuses, organizationProductWebhookDeliveryStatuses, organizationProductWebhookStatuses, organizationStatuses, organizationVoucherCommandKinds, organizationVoucherCommandStatuses, organizationVoucherProviderProviders, organizationVoucherProviderStatuses, organizationVoucherProviderTransports, resolveHubApiBaseUrl, voucherCommandRecoveryDelayMs };
|
package/dist/index.js
CHANGED
|
@@ -363,6 +363,20 @@ var OrganizationVoucherCommandSchema = Schema2.Struct({
|
|
|
363
363
|
updatedAt: TimestampSchema,
|
|
364
364
|
deletedAt: Schema2.Union([TimestampSchema, Schema2.Null])
|
|
365
365
|
});
|
|
366
|
+
var PaginatedOrganizationVoucherCommandsSchema = Schema2.Struct({
|
|
367
|
+
items: Schema2.Array(OrganizationVoucherCommandSchema),
|
|
368
|
+
total: Schema2.Number,
|
|
369
|
+
page: Schema2.Number,
|
|
370
|
+
pageSize: Schema2.Number,
|
|
371
|
+
totalPages: Schema2.Number
|
|
372
|
+
});
|
|
373
|
+
var RetryVoucherCommandSchema = Schema2.Struct({
|
|
374
|
+
confirmedDuplicateRisk: Schema2.Literal(true)
|
|
375
|
+
});
|
|
376
|
+
var voucherCommandRecoveryDelayMs = 15 * 60 * 1e3;
|
|
377
|
+
function isStaleAcceptedVoucherCommand(command, now = Date.now()) {
|
|
378
|
+
return command.status === "accepted" && command.completedAt === null && now - Date.parse(command.acceptedAt ?? command.requestedAt) >= voucherCommandRecoveryDelayMs;
|
|
379
|
+
}
|
|
366
380
|
var UpsertOrganizationVoucherProviderSchema = Schema2.Struct({
|
|
367
381
|
provider: Schema2.Literals([...organizationVoucherProviderProviders]),
|
|
368
382
|
transport: Schema2.Literals([...organizationVoucherProviderTransports]),
|
|
@@ -2624,6 +2638,7 @@ var GuestSchema = Schema2.Struct({
|
|
|
2624
2638
|
mobilePhone: NullableMobilePhoneSchema,
|
|
2625
2639
|
firstName: Schema2.String,
|
|
2626
2640
|
lastName: Schema2.String,
|
|
2641
|
+
dob: Schema2.Union([DateOnlySchema, Schema2.Null]),
|
|
2627
2642
|
meta: JsonObjectSchema,
|
|
2628
2643
|
marketingPreferences: MarketingPreferencesSchema,
|
|
2629
2644
|
status: Schema2.Literals([...guestStatuses]),
|
|
@@ -3273,11 +3288,21 @@ var UpdateMemberSchema = Schema2.Struct({
|
|
|
3273
3288
|
cardId: OptionalNullableString,
|
|
3274
3289
|
customFields: Schema2.optional(JsonObjectSchema)
|
|
3275
3290
|
});
|
|
3291
|
+
var GuestDobSchema = DateOnlySchema.check(
|
|
3292
|
+
Schema2.makeFilter(
|
|
3293
|
+
(value) => {
|
|
3294
|
+
const date = /* @__PURE__ */ new Date(`${value}T00:00:00.000Z`);
|
|
3295
|
+
return /^\d{4}-\d{2}-\d{2}$/.test(value) && !Number.isNaN(date.getTime()) && date.toISOString().slice(0, 10) === value;
|
|
3296
|
+
},
|
|
3297
|
+
{ message: "Date of birth must be a valid date in YYYY-MM-DD format" }
|
|
3298
|
+
)
|
|
3299
|
+
);
|
|
3276
3300
|
var CreateGuestSchema = Schema2.Struct({
|
|
3277
3301
|
email: OptionalNullableString,
|
|
3278
3302
|
mobilePhone: OptionalNullableMobilePhoneSchema,
|
|
3279
3303
|
firstName: Schema2.String,
|
|
3280
3304
|
lastName: Schema2.String,
|
|
3305
|
+
dob: Schema2.optional(Schema2.Union([GuestDobSchema, Schema2.Null])),
|
|
3281
3306
|
meta: Schema2.optional(JsonObjectSchema),
|
|
3282
3307
|
marketingPreferences: Schema2.optional(MarketingPreferencesInputSchema)
|
|
3283
3308
|
}).annotate({
|
|
@@ -3289,6 +3314,7 @@ var UpdateGuestSchema = Schema2.Struct({
|
|
|
3289
3314
|
mobilePhone: OptionalNullableMobilePhoneSchema,
|
|
3290
3315
|
firstName: Schema2.optional(Schema2.String),
|
|
3291
3316
|
lastName: Schema2.optional(Schema2.String),
|
|
3317
|
+
dob: Schema2.optional(Schema2.Union([GuestDobSchema, Schema2.Null])),
|
|
3292
3318
|
meta: Schema2.optional(JsonObjectSchema),
|
|
3293
3319
|
marketingPreferences: Schema2.optional(MarketingPreferencesInputSchema)
|
|
3294
3320
|
}).annotate({
|
|
@@ -3606,6 +3632,7 @@ var RequestSourceManagedMemberPreferenceUpdateSchema = Schema2.Struct({
|
|
|
3606
3632
|
marketingPreferences: MarketingPreferencesInputSchema
|
|
3607
3633
|
});
|
|
3608
3634
|
var RequestSourceManagedMemberRenewalSchema = Schema2.Struct({
|
|
3635
|
+
expiresAt: Schema2.optional(Schema2.Union([TimestampSchema, Schema2.Null])),
|
|
3609
3636
|
expectedUpdatedAt: Schema2.optional(
|
|
3610
3637
|
Schema2.Union([TimestampSchema, Schema2.Null])
|
|
3611
3638
|
)
|
|
@@ -4923,6 +4950,37 @@ var memberPointsGroup = HttpApiGroup.make("memberPoints").add(
|
|
|
4923
4950
|
)
|
|
4924
4951
|
);
|
|
4925
4952
|
var vouchersGroup = HttpApiGroup.make("vouchers").add(
|
|
4953
|
+
HttpApiEndpoint.get(
|
|
4954
|
+
"listOrganizationVoucherCommands",
|
|
4955
|
+
"/organizations/:organizationId/voucher-commands",
|
|
4956
|
+
{
|
|
4957
|
+
params: OrganizationIdParams,
|
|
4958
|
+
query: Schema2.Struct({
|
|
4959
|
+
page: Schema2.optional(Schema2.String),
|
|
4960
|
+
pageSize: Schema2.optional(Schema2.String)
|
|
4961
|
+
}),
|
|
4962
|
+
success: PaginatedOrganizationVoucherCommandsSchema,
|
|
4963
|
+
error: CommonErrorSchemas
|
|
4964
|
+
}
|
|
4965
|
+
).annotateMerge(
|
|
4966
|
+
OpenApi.annotations({ summary: "List voucher command history for an organization" })
|
|
4967
|
+
)
|
|
4968
|
+
).add(
|
|
4969
|
+
HttpApiEndpoint.post(
|
|
4970
|
+
"retryVoucherCommand",
|
|
4971
|
+
"/organizations/:organizationId/voucher-commands/:commandId/retry",
|
|
4972
|
+
{
|
|
4973
|
+
params: OrganizationVoucherCommandParams,
|
|
4974
|
+
payload: RetryVoucherCommandSchema,
|
|
4975
|
+
success: OrganizationVoucherCommandSchema.pipe(HttpApiSchema2.status(202)),
|
|
4976
|
+
error: CommonErrorSchemas
|
|
4977
|
+
}
|
|
4978
|
+
).annotateMerge(
|
|
4979
|
+
OpenApi.annotations({
|
|
4980
|
+
summary: "Retry a failed or stale accepted voucher command after acknowledging possible duplicates"
|
|
4981
|
+
})
|
|
4982
|
+
)
|
|
4983
|
+
).add(
|
|
4926
4984
|
HttpApiEndpoint.get(
|
|
4927
4985
|
"getOrganizationVoucherProvider",
|
|
4928
4986
|
"/organizations/:organizationId/voucher-provider",
|
|
@@ -7396,6 +7454,7 @@ export {
|
|
|
7396
7454
|
PaginatedOrganizationMembersSchema,
|
|
7397
7455
|
PaginatedOrganizationProductOptionsSchema,
|
|
7398
7456
|
PaginatedOrganizationProductWebhooksSchema,
|
|
7457
|
+
PaginatedOrganizationVoucherCommandsSchema,
|
|
7399
7458
|
PaginatedOrganizationsSchema,
|
|
7400
7459
|
PaginatedServiceClientsSchema,
|
|
7401
7460
|
PointExecutionEvidenceSchema,
|
|
@@ -7412,6 +7471,7 @@ export {
|
|
|
7412
7471
|
RequestSourceManagedMemberUpdateSchema,
|
|
7413
7472
|
RequestVoucherIssueSchema,
|
|
7414
7473
|
RequestVoucherLookupSchema,
|
|
7474
|
+
RetryVoucherCommandSchema,
|
|
7415
7475
|
SeedOrganizationMembersSchema,
|
|
7416
7476
|
ServiceClientSchema,
|
|
7417
7477
|
SortDirectionSchema,
|
|
@@ -7443,6 +7503,7 @@ export {
|
|
|
7443
7503
|
adminRoles,
|
|
7444
7504
|
ensureActiveMembershipOutcomes,
|
|
7445
7505
|
guestStatuses,
|
|
7506
|
+
isStaleAcceptedVoucherCommand,
|
|
7446
7507
|
makeBadRequest,
|
|
7447
7508
|
makeConflict,
|
|
7448
7509
|
makeForbidden,
|
|
@@ -7493,6 +7554,7 @@ export {
|
|
|
7493
7554
|
organizationVoucherProviderProviders,
|
|
7494
7555
|
organizationVoucherProviderStatuses,
|
|
7495
7556
|
organizationVoucherProviderTransports,
|
|
7496
|
-
resolveHubApiBaseUrl
|
|
7557
|
+
resolveHubApiBaseUrl,
|
|
7558
|
+
voucherCommandRecoveryDelayMs
|
|
7497
7559
|
};
|
|
7498
7560
|
//# sourceMappingURL=index.js.map
|