@spoketech/hub-client 0.1.11 → 0.1.12

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 CHANGED
@@ -100,15 +100,42 @@ declare const OrganizationVoucherProviderSchema: Schema.Struct<{
100
100
  updatedAt: Schema.SchemaClass<string, string, never>;
101
101
  deletedAt: Schema.Union<[Schema.SchemaClass<string, string, never>, typeof Schema.Null]>;
102
102
  }>;
103
+ declare const OrganizationVoucherIssueCommandResultSchema: Schema.Struct<{
104
+ externalMemberId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
105
+ memberCode: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
106
+ externalRewardId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
107
+ externalGuid: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
108
+ rawRecord: Schema.optional<typeof Schema.Unknown>;
109
+ }>;
110
+ declare const OrganizationVoucherLookupCommandResultSchema: Schema.Struct<{
111
+ vouchers: Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
112
+ }>;
113
+ declare const OrganizationVoucherCommandResultSchema: Schema.Union<[Schema.Struct<{
114
+ externalMemberId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
115
+ memberCode: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
116
+ externalRewardId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
117
+ externalGuid: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
118
+ rawRecord: Schema.optional<typeof Schema.Unknown>;
119
+ }>, Schema.Struct<{
120
+ vouchers: Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
121
+ }>]>;
103
122
  declare const OrganizationVoucherCommandSchema: Schema.Struct<{
104
123
  id: typeof Schema.String;
105
124
  organizationId: typeof Schema.String;
106
125
  organizationVoucherProviderId: typeof Schema.String;
107
126
  serviceClientId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
108
- kind: Schema.Literal<["issue_voucher"]>;
127
+ kind: Schema.Literal<["issue_voucher", "lookup_voucher"]>;
109
128
  status: Schema.Literal<["requested", "accepted", "completed", "failed"]>;
110
129
  payload: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
111
- result: Schema.Union<[Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, typeof Schema.Null]>;
130
+ result: Schema.Union<[Schema.Union<[Schema.Struct<{
131
+ externalMemberId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
132
+ memberCode: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
133
+ externalRewardId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
134
+ externalGuid: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
135
+ rawRecord: Schema.optional<typeof Schema.Unknown>;
136
+ }>, Schema.Struct<{
137
+ vouchers: Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
138
+ }>]>, typeof Schema.Null]>;
112
139
  errorMessage: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
113
140
  requestedAt: Schema.SchemaClass<string, string, never>;
114
141
  acceptedAt: Schema.Union<[Schema.SchemaClass<string, string, never>, typeof Schema.Null]>;
@@ -135,10 +162,17 @@ declare const RequestVoucherIssueSchema: Schema.Struct<{
135
162
  quantity: Schema.optional<typeof Schema.Number>;
136
163
  metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
137
164
  }>;
165
+ declare const RequestVoucherLookupSchema: Schema.Struct<{
166
+ memberId: Schema.optional<typeof Schema.String>;
167
+ externalSystemMemberId: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
168
+ memberNumber: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
169
+ metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
170
+ }>;
138
171
  declare const OnsiteVoucherCommandSchema: Schema.Struct<{
139
172
  commandId: typeof Schema.String;
140
173
  organizationId: typeof Schema.String;
141
174
  organizationVoucherProviderId: typeof Schema.String;
175
+ kind: Schema.Literal<["issue_voucher", "lookup_voucher"]>;
142
176
  provider: Schema.Literal<["senpos"]>;
143
177
  transport: Schema.Literal<["onsite_client"]>;
144
178
  requestedAt: Schema.SchemaClass<string, string, never>;
@@ -150,8 +184,11 @@ declare const OnsiteVoucherCommandSchema: Schema.Struct<{
150
184
  }>>;
151
185
  }>;
152
186
  declare const CompleteOnsiteVoucherCommandSchema: Schema.Struct<{
187
+ externalMemberId: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
188
+ memberCode: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
153
189
  externalRewardId: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
154
190
  externalGuid: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
191
+ vouchers: Schema.optional<Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>;
155
192
  rawRecord: Schema.optional<typeof Schema.Unknown>;
156
193
  errorMessage: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
157
194
  }>;
@@ -2260,6 +2297,15 @@ declare const OnsiteResourceCallRequestSchema: Schema.Union<[Schema.Struct<{
2260
2297
  quantity: Schema.optional<typeof Schema.Number>;
2261
2298
  metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2262
2299
  }>;
2300
+ }>, Schema.Struct<{
2301
+ operation: Schema.Literal<["voucher.lookup"]>;
2302
+ waitMs: Schema.optional<Schema.SchemaClass<number, number, never>>;
2303
+ payload: Schema.Struct<{
2304
+ memberId: Schema.optional<typeof Schema.String>;
2305
+ externalSystemMemberId: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
2306
+ memberNumber: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
2307
+ metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2308
+ }>;
2263
2309
  }>, Schema.Struct<{
2264
2310
  operation: Schema.Literal<["points.lookup"]>;
2265
2311
  waitMs: Schema.optional<Schema.SchemaClass<number, number, never>>;
@@ -2337,7 +2383,7 @@ declare const OnsiteResourceMemberCallResponseSchema: Schema.Struct<{
2337
2383
  }>;
2338
2384
  declare const OnsiteResourceVoucherCallResponseSchema: Schema.Struct<{
2339
2385
  kind: Schema.Literal<["voucher"]>;
2340
- operation: Schema.Literal<["voucher.issue"]>;
2386
+ operation: Schema.Literal<["voucher.issue", "voucher.lookup"]>;
2341
2387
  settled: typeof Schema.Boolean;
2342
2388
  timedOut: typeof Schema.Boolean;
2343
2389
  command: Schema.Struct<{
@@ -2345,10 +2391,18 @@ declare const OnsiteResourceVoucherCallResponseSchema: Schema.Struct<{
2345
2391
  organizationId: typeof Schema.String;
2346
2392
  organizationVoucherProviderId: typeof Schema.String;
2347
2393
  serviceClientId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2348
- kind: Schema.Literal<["issue_voucher"]>;
2394
+ kind: Schema.Literal<["issue_voucher", "lookup_voucher"]>;
2349
2395
  status: Schema.Literal<["requested", "accepted", "completed", "failed"]>;
2350
2396
  payload: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
2351
- result: Schema.Union<[Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, typeof Schema.Null]>;
2397
+ result: Schema.Union<[Schema.Union<[Schema.Struct<{
2398
+ externalMemberId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2399
+ memberCode: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2400
+ externalRewardId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2401
+ externalGuid: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2402
+ rawRecord: Schema.optional<typeof Schema.Unknown>;
2403
+ }>, Schema.Struct<{
2404
+ vouchers: Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2405
+ }>]>, typeof Schema.Null]>;
2352
2406
  errorMessage: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2353
2407
  requestedAt: Schema.SchemaClass<string, string, never>;
2354
2408
  acceptedAt: Schema.Union<[Schema.SchemaClass<string, string, never>, typeof Schema.Null]>;
@@ -2416,7 +2470,7 @@ declare const OnsiteResourceCallResponseSchema: Schema.Union<[Schema.Struct<{
2416
2470
  }>;
2417
2471
  }>, Schema.Struct<{
2418
2472
  kind: Schema.Literal<["voucher"]>;
2419
- operation: Schema.Literal<["voucher.issue"]>;
2473
+ operation: Schema.Literal<["voucher.issue", "voucher.lookup"]>;
2420
2474
  settled: typeof Schema.Boolean;
2421
2475
  timedOut: typeof Schema.Boolean;
2422
2476
  command: Schema.Struct<{
@@ -2424,10 +2478,18 @@ declare const OnsiteResourceCallResponseSchema: Schema.Union<[Schema.Struct<{
2424
2478
  organizationId: typeof Schema.String;
2425
2479
  organizationVoucherProviderId: typeof Schema.String;
2426
2480
  serviceClientId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2427
- kind: Schema.Literal<["issue_voucher"]>;
2481
+ kind: Schema.Literal<["issue_voucher", "lookup_voucher"]>;
2428
2482
  status: Schema.Literal<["requested", "accepted", "completed", "failed"]>;
2429
2483
  payload: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
2430
- result: Schema.Union<[Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, typeof Schema.Null]>;
2484
+ result: Schema.Union<[Schema.Union<[Schema.Struct<{
2485
+ externalMemberId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2486
+ memberCode: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2487
+ externalRewardId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2488
+ externalGuid: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2489
+ rawRecord: Schema.optional<typeof Schema.Unknown>;
2490
+ }>, Schema.Struct<{
2491
+ vouchers: Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2492
+ }>]>, typeof Schema.Null]>;
2431
2493
  errorMessage: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2432
2494
  requestedAt: Schema.SchemaClass<string, string, never>;
2433
2495
  acceptedAt: Schema.Union<[Schema.SchemaClass<string, string, never>, typeof Schema.Null]>;
@@ -4644,12 +4706,57 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4644
4706
  readonly organizationId: string;
4645
4707
  readonly organizationVoucherProviderId: string;
4646
4708
  readonly serviceClientId: string | null;
4647
- readonly kind: "issue_voucher";
4709
+ readonly kind: "issue_voucher" | "lookup_voucher";
4648
4710
  readonly payload: {
4649
4711
  readonly [x: string]: unknown;
4650
4712
  };
4651
4713
  readonly result: {
4714
+ readonly externalMemberId: string | null;
4715
+ readonly memberCode: string | null;
4716
+ readonly externalRewardId: string | null;
4717
+ readonly externalGuid: string | null;
4718
+ readonly rawRecord?: unknown;
4719
+ } | {
4720
+ readonly vouchers: readonly {
4721
+ readonly [x: string]: unknown;
4722
+ }[];
4723
+ } | null;
4724
+ readonly errorMessage: string | null;
4725
+ readonly requestedAt: string;
4726
+ readonly acceptedAt: string | null;
4727
+ readonly completedAt: string | null;
4728
+ }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"requestVoucherLookup", "POST", {
4729
+ readonly organizationId: string;
4730
+ }, never, {
4731
+ readonly memberId?: string | undefined;
4732
+ readonly externalSystemMemberId?: string | null | undefined;
4733
+ readonly memberNumber?: string | null | undefined;
4734
+ readonly metadata?: {
4735
+ readonly [x: string]: unknown;
4736
+ } | undefined;
4737
+ }, never, {
4738
+ readonly status: "requested" | "accepted" | "completed" | "failed";
4739
+ readonly id: string;
4740
+ readonly createdAt: string;
4741
+ readonly updatedAt: string;
4742
+ readonly deletedAt: string | null;
4743
+ readonly organizationId: string;
4744
+ readonly organizationVoucherProviderId: string;
4745
+ readonly serviceClientId: string | null;
4746
+ readonly kind: "issue_voucher" | "lookup_voucher";
4747
+ readonly payload: {
4652
4748
  readonly [x: string]: unknown;
4749
+ };
4750
+ readonly result: {
4751
+ readonly externalMemberId: string | null;
4752
+ readonly memberCode: string | null;
4753
+ readonly externalRewardId: string | null;
4754
+ readonly externalGuid: string | null;
4755
+ readonly rawRecord?: unknown;
4756
+ } | {
4757
+ readonly vouchers: readonly {
4758
+ readonly [x: string]: unknown;
4759
+ }[];
4653
4760
  } | null;
4654
4761
  readonly errorMessage: string | null;
4655
4762
  readonly requestedAt: string;
@@ -4667,12 +4774,20 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4667
4774
  readonly organizationId: string;
4668
4775
  readonly organizationVoucherProviderId: string;
4669
4776
  readonly serviceClientId: string | null;
4670
- readonly kind: "issue_voucher";
4777
+ readonly kind: "issue_voucher" | "lookup_voucher";
4671
4778
  readonly payload: {
4672
4779
  readonly [x: string]: unknown;
4673
4780
  };
4674
4781
  readonly result: {
4675
- readonly [x: string]: unknown;
4782
+ readonly externalMemberId: string | null;
4783
+ readonly memberCode: string | null;
4784
+ readonly externalRewardId: string | null;
4785
+ readonly externalGuid: string | null;
4786
+ readonly rawRecord?: unknown;
4787
+ } | {
4788
+ readonly vouchers: readonly {
4789
+ readonly [x: string]: unknown;
4790
+ }[];
4676
4791
  } | null;
4677
4792
  readonly errorMessage: string | null;
4678
4793
  readonly requestedAt: string;
@@ -4688,6 +4803,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4688
4803
  readonly [x: string]: unknown;
4689
4804
  };
4690
4805
  readonly organizationVoucherProviderId: string;
4806
+ readonly kind: "issue_voucher" | "lookup_voucher";
4691
4807
  readonly payload: {
4692
4808
  readonly [x: string]: unknown;
4693
4809
  };
@@ -4705,6 +4821,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4705
4821
  readonly [x: string]: unknown;
4706
4822
  };
4707
4823
  readonly organizationVoucherProviderId: string;
4824
+ readonly kind: "issue_voucher" | "lookup_voucher";
4708
4825
  readonly payload: {
4709
4826
  readonly [x: string]: unknown;
4710
4827
  };
@@ -4718,10 +4835,15 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4718
4835
  readonly organizationId: string;
4719
4836
  readonly commandId: string;
4720
4837
  }, never, {
4721
- readonly errorMessage?: string | null | undefined;
4838
+ readonly externalMemberId?: string | null | undefined;
4839
+ readonly memberCode?: string | null | undefined;
4722
4840
  readonly externalRewardId?: string | null | undefined;
4723
4841
  readonly externalGuid?: string | null | undefined;
4724
4842
  readonly rawRecord?: unknown;
4843
+ readonly vouchers?: readonly {
4844
+ readonly [x: string]: unknown;
4845
+ }[] | undefined;
4846
+ readonly errorMessage?: string | null | undefined;
4725
4847
  }, never, {
4726
4848
  readonly status: "requested" | "accepted" | "completed" | "failed";
4727
4849
  readonly id: string;
@@ -4731,12 +4853,20 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4731
4853
  readonly organizationId: string;
4732
4854
  readonly organizationVoucherProviderId: string;
4733
4855
  readonly serviceClientId: string | null;
4734
- readonly kind: "issue_voucher";
4856
+ readonly kind: "issue_voucher" | "lookup_voucher";
4735
4857
  readonly payload: {
4736
4858
  readonly [x: string]: unknown;
4737
4859
  };
4738
4860
  readonly result: {
4739
- readonly [x: string]: unknown;
4861
+ readonly externalMemberId: string | null;
4862
+ readonly memberCode: string | null;
4863
+ readonly externalRewardId: string | null;
4864
+ readonly externalGuid: string | null;
4865
+ readonly rawRecord?: unknown;
4866
+ } | {
4867
+ readonly vouchers: readonly {
4868
+ readonly [x: string]: unknown;
4869
+ }[];
4740
4870
  } | null;
4741
4871
  readonly errorMessage: string | null;
4742
4872
  readonly requestedAt: string;
@@ -5202,6 +5332,17 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
5202
5332
  };
5203
5333
  readonly operation: "voucher.issue";
5204
5334
  readonly waitMs?: number | undefined;
5335
+ } | {
5336
+ readonly payload: {
5337
+ readonly memberId?: string | undefined;
5338
+ readonly externalSystemMemberId?: string | null | undefined;
5339
+ readonly memberNumber?: string | null | undefined;
5340
+ readonly metadata?: {
5341
+ readonly [x: string]: unknown;
5342
+ } | undefined;
5343
+ };
5344
+ readonly operation: "voucher.lookup";
5345
+ readonly waitMs?: number | undefined;
5205
5346
  } | {
5206
5347
  readonly payload: {
5207
5348
  readonly memberId?: string | undefined;
@@ -5289,7 +5430,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
5289
5430
  };
5290
5431
  } | {
5291
5432
  readonly kind: "voucher";
5292
- readonly operation: "voucher.issue";
5433
+ readonly operation: "voucher.issue" | "voucher.lookup";
5293
5434
  readonly settled: boolean;
5294
5435
  readonly timedOut: boolean;
5295
5436
  readonly command: {
@@ -5301,12 +5442,20 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
5301
5442
  readonly organizationId: string;
5302
5443
  readonly organizationVoucherProviderId: string;
5303
5444
  readonly serviceClientId: string | null;
5304
- readonly kind: "issue_voucher";
5445
+ readonly kind: "issue_voucher" | "lookup_voucher";
5305
5446
  readonly payload: {
5306
5447
  readonly [x: string]: unknown;
5307
5448
  };
5308
5449
  readonly result: {
5309
- readonly [x: string]: unknown;
5450
+ readonly externalMemberId: string | null;
5451
+ readonly memberCode: string | null;
5452
+ readonly externalRewardId: string | null;
5453
+ readonly externalGuid: string | null;
5454
+ readonly rawRecord?: unknown;
5455
+ } | {
5456
+ readonly vouchers: readonly {
5457
+ readonly [x: string]: unknown;
5458
+ }[];
5310
5459
  } | null;
5311
5460
  readonly errorMessage: string | null;
5312
5461
  readonly requestedAt: string;
@@ -6689,10 +6838,10 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
6689
6838
  }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeOnsiteAgentMemberLookup", "POST", {
6690
6839
  readonly commandId: string;
6691
6840
  }, never, {
6692
- readonly errorMessage?: string | null | undefined;
6693
6841
  readonly rawRecord?: {
6694
6842
  readonly [x: string]: unknown;
6695
6843
  } | undefined;
6844
+ readonly errorMessage?: string | null | undefined;
6696
6845
  readonly record?: {
6697
6846
  readonly email: string | null;
6698
6847
  readonly externalSystemMemberId: string | null;
@@ -7154,9 +7303,13 @@ type UpsertOrganizationProductWebhookInput = Schema.Schema.Type<typeof UpsertOrg
7154
7303
  type UpdateOrganizationProductWebhookInput = Schema.Schema.Type<typeof UpdateOrganizationProductWebhookSchema>;
7155
7304
  type OrganizationProductWebhookUpsertResponse = Schema.Schema.Type<typeof OrganizationProductWebhookUpsertResponseSchema>;
7156
7305
  type OrganizationVoucherProvider = Schema.Schema.Type<typeof OrganizationVoucherProviderSchema>;
7306
+ type OrganizationVoucherIssueCommandResult = Schema.Schema.Type<typeof OrganizationVoucherIssueCommandResultSchema>;
7307
+ type OrganizationVoucherLookupCommandResult = Schema.Schema.Type<typeof OrganizationVoucherLookupCommandResultSchema>;
7308
+ type OrganizationVoucherCommandResult = Schema.Schema.Type<typeof OrganizationVoucherCommandResultSchema>;
7157
7309
  type OrganizationVoucherCommand = Schema.Schema.Type<typeof OrganizationVoucherCommandSchema>;
7158
7310
  type UpsertOrganizationVoucherProviderInput = Schema.Schema.Type<typeof UpsertOrganizationVoucherProviderSchema>;
7159
7311
  type RequestVoucherIssueInput = Schema.Schema.Type<typeof RequestVoucherIssueSchema>;
7312
+ type RequestVoucherLookupInput = Schema.Schema.Type<typeof RequestVoucherLookupSchema>;
7160
7313
  type OnsiteVoucherCommand = Schema.Schema.Type<typeof OnsiteVoucherCommandSchema>;
7161
7314
  type CompleteOnsiteVoucherCommandInput = Schema.Schema.Type<typeof CompleteOnsiteVoucherCommandSchema>;
7162
7315
  type OrganizationPointProvider = Schema.Schema.Type<typeof OrganizationPointProviderSchema>;
@@ -10364,74 +10517,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10364
10517
  readonly organizationId: string;
10365
10518
  readonly organizationVoucherProviderId: string;
10366
10519
  readonly serviceClientId: string | null;
10367
- readonly kind: "issue_voucher";
10368
- readonly payload: {
10369
- readonly [x: string]: unknown;
10370
- };
10371
- readonly result: {
10372
- readonly [x: string]: unknown;
10373
- } | null;
10374
- readonly errorMessage: string | null;
10375
- readonly requestedAt: string;
10376
- readonly acceptedAt: string | null;
10377
- readonly completedAt: string | null;
10378
- }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10379
- readonly status: "requested" | "accepted" | "completed" | "failed";
10380
- readonly id: string;
10381
- readonly createdAt: string;
10382
- readonly updatedAt: string;
10383
- readonly deletedAt: string | null;
10384
- readonly organizationId: string;
10385
- readonly organizationVoucherProviderId: string;
10386
- readonly serviceClientId: string | null;
10387
- readonly kind: "issue_voucher";
10520
+ readonly kind: "issue_voucher" | "lookup_voucher";
10388
10521
  readonly payload: {
10389
10522
  readonly [x: string]: unknown;
10390
10523
  };
10391
10524
  readonly result: {
10392
- readonly [x: string]: unknown;
10393
- } | null;
10394
- readonly errorMessage: string | null;
10395
- readonly requestedAt: string;
10396
- readonly acceptedAt: string | null;
10397
- readonly completedAt: string | null;
10398
- }, {
10399
- readonly code: "unauthorized";
10400
- readonly message: string;
10401
- } | {
10402
- readonly code: "forbidden";
10403
- readonly message: string;
10404
- } | {
10405
- readonly code: "not_found";
10406
- readonly message: string;
10407
- } | {
10408
- readonly code: "conflict";
10409
- readonly message: string;
10410
- } | {
10411
- readonly code: "bad_request";
10412
- readonly message: string;
10413
- } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10414
- readonly getOrganizationVoucherCommand: <WithResponse extends boolean = false>(request: {
10415
- readonly path: {
10416
- readonly organizationId: string;
10417
- readonly commandId: string;
10418
- };
10419
- readonly withResponse?: WithResponse | undefined;
10420
- }) => Effect.Effect<WithResponse extends true ? [{
10421
- readonly status: "requested" | "accepted" | "completed" | "failed";
10422
- readonly id: string;
10423
- readonly createdAt: string;
10424
- readonly updatedAt: string;
10425
- readonly deletedAt: string | null;
10426
- readonly organizationId: string;
10427
- readonly organizationVoucherProviderId: string;
10428
- readonly serviceClientId: string | null;
10429
- readonly kind: "issue_voucher";
10430
- readonly payload: {
10431
- readonly [x: string]: unknown;
10432
- };
10433
- readonly result: {
10434
- readonly [x: string]: unknown;
10525
+ readonly externalMemberId: string | null;
10526
+ readonly memberCode: string | null;
10527
+ readonly externalRewardId: string | null;
10528
+ readonly externalGuid: string | null;
10529
+ readonly rawRecord?: unknown;
10530
+ } | {
10531
+ readonly vouchers: readonly {
10532
+ readonly [x: string]: unknown;
10533
+ }[];
10435
10534
  } | null;
10436
10535
  readonly errorMessage: string | null;
10437
10536
  readonly requestedAt: string;
@@ -10446,12 +10545,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10446
10545
  readonly organizationId: string;
10447
10546
  readonly organizationVoucherProviderId: string;
10448
10547
  readonly serviceClientId: string | null;
10449
- readonly kind: "issue_voucher";
10548
+ readonly kind: "issue_voucher" | "lookup_voucher";
10450
10549
  readonly payload: {
10451
10550
  readonly [x: string]: unknown;
10452
10551
  };
10453
10552
  readonly result: {
10454
- readonly [x: string]: unknown;
10553
+ readonly externalMemberId: string | null;
10554
+ readonly memberCode: string | null;
10555
+ readonly externalRewardId: string | null;
10556
+ readonly externalGuid: string | null;
10557
+ readonly rawRecord?: unknown;
10558
+ } | {
10559
+ readonly vouchers: readonly {
10560
+ readonly [x: string]: unknown;
10561
+ }[];
10455
10562
  } | null;
10456
10563
  readonly errorMessage: string | null;
10457
10564
  readonly requestedAt: string;
@@ -10473,123 +10580,17 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10473
10580
  readonly code: "bad_request";
10474
10581
  readonly message: string;
10475
10582
  } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10476
- readonly pollOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: {
10583
+ readonly requestVoucherLookup: <WithResponse extends boolean = false>(request: {
10477
10584
  readonly path: {
10478
10585
  readonly organizationId: string;
10479
10586
  };
10480
- readonly withResponse?: WithResponse | undefined;
10481
- }) => Effect.Effect<WithResponse extends true ? [{
10482
- readonly organizationId: string;
10483
- readonly provider: "senpos";
10484
- readonly transport: "onsite_client";
10485
- readonly config: {
10486
- readonly [x: string]: unknown;
10487
- };
10488
- readonly organizationVoucherProviderId: string;
10489
10587
  readonly payload: {
10490
- readonly [x: string]: unknown;
10491
- };
10492
- readonly requestedAt: string;
10493
- readonly secrets: readonly {
10494
- readonly name: string;
10495
- readonly value: string;
10496
- }[];
10497
- readonly commandId: string;
10498
- } | null, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10499
- readonly organizationId: string;
10500
- readonly provider: "senpos";
10501
- readonly transport: "onsite_client";
10502
- readonly config: {
10503
- readonly [x: string]: unknown;
10504
- };
10505
- readonly organizationVoucherProviderId: string;
10506
- readonly payload: {
10507
- readonly [x: string]: unknown;
10508
- };
10509
- readonly requestedAt: string;
10510
- readonly secrets: readonly {
10511
- readonly name: string;
10512
- readonly value: string;
10513
- }[];
10514
- readonly commandId: string;
10515
- } | null, {
10516
- readonly code: "unauthorized";
10517
- readonly message: string;
10518
- } | {
10519
- readonly code: "forbidden";
10520
- readonly message: string;
10521
- } | {
10522
- readonly code: "not_found";
10523
- readonly message: string;
10524
- } | {
10525
- readonly code: "conflict";
10526
- readonly message: string;
10527
- } | {
10528
- readonly code: "bad_request";
10529
- readonly message: string;
10530
- } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10531
- readonly pollCurrentOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: void | {
10532
- readonly withResponse?: WithResponse | undefined;
10533
- }) => Effect.Effect<WithResponse extends true ? [{
10534
- readonly organizationId: string;
10535
- readonly provider: "senpos";
10536
- readonly transport: "onsite_client";
10537
- readonly config: {
10538
- readonly [x: string]: unknown;
10539
- };
10540
- readonly organizationVoucherProviderId: string;
10541
- readonly payload: {
10542
- readonly [x: string]: unknown;
10543
- };
10544
- readonly requestedAt: string;
10545
- readonly secrets: readonly {
10546
- readonly name: string;
10547
- readonly value: string;
10548
- }[];
10549
- readonly commandId: string;
10550
- } | null, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10551
- readonly organizationId: string;
10552
- readonly provider: "senpos";
10553
- readonly transport: "onsite_client";
10554
- readonly config: {
10555
- readonly [x: string]: unknown;
10556
- };
10557
- readonly organizationVoucherProviderId: string;
10558
- readonly payload: {
10559
- readonly [x: string]: unknown;
10560
- };
10561
- readonly requestedAt: string;
10562
- readonly secrets: readonly {
10563
- readonly name: string;
10564
- readonly value: string;
10565
- }[];
10566
- readonly commandId: string;
10567
- } | null, {
10568
- readonly code: "unauthorized";
10569
- readonly message: string;
10570
- } | {
10571
- readonly code: "forbidden";
10572
- readonly message: string;
10573
- } | {
10574
- readonly code: "not_found";
10575
- readonly message: string;
10576
- } | {
10577
- readonly code: "conflict";
10578
- readonly message: string;
10579
- } | {
10580
- readonly code: "bad_request";
10581
- readonly message: string;
10582
- } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10583
- readonly completeOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: {
10584
- readonly path: {
10585
- readonly organizationId: string;
10586
- readonly commandId: string;
10587
- };
10588
- readonly payload: {
10589
- readonly errorMessage?: string | null | undefined;
10590
- readonly externalRewardId?: string | null | undefined;
10591
- readonly externalGuid?: string | null | undefined;
10592
- readonly rawRecord?: unknown;
10588
+ readonly memberId?: string | undefined;
10589
+ readonly externalSystemMemberId?: string | null | undefined;
10590
+ readonly memberNumber?: string | null | undefined;
10591
+ readonly metadata?: {
10592
+ readonly [x: string]: unknown;
10593
+ } | undefined;
10593
10594
  };
10594
10595
  readonly withResponse?: WithResponse | undefined;
10595
10596
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -10601,12 +10602,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10601
10602
  readonly organizationId: string;
10602
10603
  readonly organizationVoucherProviderId: string;
10603
10604
  readonly serviceClientId: string | null;
10604
- readonly kind: "issue_voucher";
10605
+ readonly kind: "issue_voucher" | "lookup_voucher";
10605
10606
  readonly payload: {
10606
10607
  readonly [x: string]: unknown;
10607
10608
  };
10608
10609
  readonly result: {
10609
- readonly [x: string]: unknown;
10610
+ readonly externalMemberId: string | null;
10611
+ readonly memberCode: string | null;
10612
+ readonly externalRewardId: string | null;
10613
+ readonly externalGuid: string | null;
10614
+ readonly rawRecord?: unknown;
10615
+ } | {
10616
+ readonly vouchers: readonly {
10617
+ readonly [x: string]: unknown;
10618
+ }[];
10610
10619
  } | null;
10611
10620
  readonly errorMessage: string | null;
10612
10621
  readonly requestedAt: string;
@@ -10621,12 +10630,298 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10621
10630
  readonly organizationId: string;
10622
10631
  readonly organizationVoucherProviderId: string;
10623
10632
  readonly serviceClientId: string | null;
10624
- readonly kind: "issue_voucher";
10633
+ readonly kind: "issue_voucher" | "lookup_voucher";
10625
10634
  readonly payload: {
10626
10635
  readonly [x: string]: unknown;
10627
10636
  };
10628
10637
  readonly result: {
10629
- readonly [x: string]: unknown;
10638
+ readonly externalMemberId: string | null;
10639
+ readonly memberCode: string | null;
10640
+ readonly externalRewardId: string | null;
10641
+ readonly externalGuid: string | null;
10642
+ readonly rawRecord?: unknown;
10643
+ } | {
10644
+ readonly vouchers: readonly {
10645
+ readonly [x: string]: unknown;
10646
+ }[];
10647
+ } | null;
10648
+ readonly errorMessage: string | null;
10649
+ readonly requestedAt: string;
10650
+ readonly acceptedAt: string | null;
10651
+ readonly completedAt: string | null;
10652
+ }, {
10653
+ readonly code: "unauthorized";
10654
+ readonly message: string;
10655
+ } | {
10656
+ readonly code: "forbidden";
10657
+ readonly message: string;
10658
+ } | {
10659
+ readonly code: "not_found";
10660
+ readonly message: string;
10661
+ } | {
10662
+ readonly code: "conflict";
10663
+ readonly message: string;
10664
+ } | {
10665
+ readonly code: "bad_request";
10666
+ readonly message: string;
10667
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10668
+ readonly getOrganizationVoucherCommand: <WithResponse extends boolean = false>(request: {
10669
+ readonly path: {
10670
+ readonly organizationId: string;
10671
+ readonly commandId: string;
10672
+ };
10673
+ readonly withResponse?: WithResponse | undefined;
10674
+ }) => Effect.Effect<WithResponse extends true ? [{
10675
+ readonly status: "requested" | "accepted" | "completed" | "failed";
10676
+ readonly id: string;
10677
+ readonly createdAt: string;
10678
+ readonly updatedAt: string;
10679
+ readonly deletedAt: string | null;
10680
+ readonly organizationId: string;
10681
+ readonly organizationVoucherProviderId: string;
10682
+ readonly serviceClientId: string | null;
10683
+ readonly kind: "issue_voucher" | "lookup_voucher";
10684
+ readonly payload: {
10685
+ readonly [x: string]: unknown;
10686
+ };
10687
+ readonly result: {
10688
+ readonly externalMemberId: string | null;
10689
+ readonly memberCode: string | null;
10690
+ readonly externalRewardId: string | null;
10691
+ readonly externalGuid: string | null;
10692
+ readonly rawRecord?: unknown;
10693
+ } | {
10694
+ readonly vouchers: readonly {
10695
+ readonly [x: string]: unknown;
10696
+ }[];
10697
+ } | null;
10698
+ readonly errorMessage: string | null;
10699
+ readonly requestedAt: string;
10700
+ readonly acceptedAt: string | null;
10701
+ readonly completedAt: string | null;
10702
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10703
+ readonly status: "requested" | "accepted" | "completed" | "failed";
10704
+ readonly id: string;
10705
+ readonly createdAt: string;
10706
+ readonly updatedAt: string;
10707
+ readonly deletedAt: string | null;
10708
+ readonly organizationId: string;
10709
+ readonly organizationVoucherProviderId: string;
10710
+ readonly serviceClientId: string | null;
10711
+ readonly kind: "issue_voucher" | "lookup_voucher";
10712
+ readonly payload: {
10713
+ readonly [x: string]: unknown;
10714
+ };
10715
+ readonly result: {
10716
+ readonly externalMemberId: string | null;
10717
+ readonly memberCode: string | null;
10718
+ readonly externalRewardId: string | null;
10719
+ readonly externalGuid: string | null;
10720
+ readonly rawRecord?: unknown;
10721
+ } | {
10722
+ readonly vouchers: readonly {
10723
+ readonly [x: string]: unknown;
10724
+ }[];
10725
+ } | null;
10726
+ readonly errorMessage: string | null;
10727
+ readonly requestedAt: string;
10728
+ readonly acceptedAt: string | null;
10729
+ readonly completedAt: string | null;
10730
+ }, {
10731
+ readonly code: "unauthorized";
10732
+ readonly message: string;
10733
+ } | {
10734
+ readonly code: "forbidden";
10735
+ readonly message: string;
10736
+ } | {
10737
+ readonly code: "not_found";
10738
+ readonly message: string;
10739
+ } | {
10740
+ readonly code: "conflict";
10741
+ readonly message: string;
10742
+ } | {
10743
+ readonly code: "bad_request";
10744
+ readonly message: string;
10745
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10746
+ readonly pollOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: {
10747
+ readonly path: {
10748
+ readonly organizationId: string;
10749
+ };
10750
+ readonly withResponse?: WithResponse | undefined;
10751
+ }) => Effect.Effect<WithResponse extends true ? [{
10752
+ readonly organizationId: string;
10753
+ readonly provider: "senpos";
10754
+ readonly transport: "onsite_client";
10755
+ readonly config: {
10756
+ readonly [x: string]: unknown;
10757
+ };
10758
+ readonly organizationVoucherProviderId: string;
10759
+ readonly kind: "issue_voucher" | "lookup_voucher";
10760
+ readonly payload: {
10761
+ readonly [x: string]: unknown;
10762
+ };
10763
+ readonly requestedAt: string;
10764
+ readonly secrets: readonly {
10765
+ readonly name: string;
10766
+ readonly value: string;
10767
+ }[];
10768
+ readonly commandId: string;
10769
+ } | null, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10770
+ readonly organizationId: string;
10771
+ readonly provider: "senpos";
10772
+ readonly transport: "onsite_client";
10773
+ readonly config: {
10774
+ readonly [x: string]: unknown;
10775
+ };
10776
+ readonly organizationVoucherProviderId: string;
10777
+ readonly kind: "issue_voucher" | "lookup_voucher";
10778
+ readonly payload: {
10779
+ readonly [x: string]: unknown;
10780
+ };
10781
+ readonly requestedAt: string;
10782
+ readonly secrets: readonly {
10783
+ readonly name: string;
10784
+ readonly value: string;
10785
+ }[];
10786
+ readonly commandId: string;
10787
+ } | null, {
10788
+ readonly code: "unauthorized";
10789
+ readonly message: string;
10790
+ } | {
10791
+ readonly code: "forbidden";
10792
+ readonly message: string;
10793
+ } | {
10794
+ readonly code: "not_found";
10795
+ readonly message: string;
10796
+ } | {
10797
+ readonly code: "conflict";
10798
+ readonly message: string;
10799
+ } | {
10800
+ readonly code: "bad_request";
10801
+ readonly message: string;
10802
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10803
+ readonly pollCurrentOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: void | {
10804
+ readonly withResponse?: WithResponse | undefined;
10805
+ }) => Effect.Effect<WithResponse extends true ? [{
10806
+ readonly organizationId: string;
10807
+ readonly provider: "senpos";
10808
+ readonly transport: "onsite_client";
10809
+ readonly config: {
10810
+ readonly [x: string]: unknown;
10811
+ };
10812
+ readonly organizationVoucherProviderId: string;
10813
+ readonly kind: "issue_voucher" | "lookup_voucher";
10814
+ readonly payload: {
10815
+ readonly [x: string]: unknown;
10816
+ };
10817
+ readonly requestedAt: string;
10818
+ readonly secrets: readonly {
10819
+ readonly name: string;
10820
+ readonly value: string;
10821
+ }[];
10822
+ readonly commandId: string;
10823
+ } | null, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10824
+ readonly organizationId: string;
10825
+ readonly provider: "senpos";
10826
+ readonly transport: "onsite_client";
10827
+ readonly config: {
10828
+ readonly [x: string]: unknown;
10829
+ };
10830
+ readonly organizationVoucherProviderId: string;
10831
+ readonly kind: "issue_voucher" | "lookup_voucher";
10832
+ readonly payload: {
10833
+ readonly [x: string]: unknown;
10834
+ };
10835
+ readonly requestedAt: string;
10836
+ readonly secrets: readonly {
10837
+ readonly name: string;
10838
+ readonly value: string;
10839
+ }[];
10840
+ readonly commandId: string;
10841
+ } | null, {
10842
+ readonly code: "unauthorized";
10843
+ readonly message: string;
10844
+ } | {
10845
+ readonly code: "forbidden";
10846
+ readonly message: string;
10847
+ } | {
10848
+ readonly code: "not_found";
10849
+ readonly message: string;
10850
+ } | {
10851
+ readonly code: "conflict";
10852
+ readonly message: string;
10853
+ } | {
10854
+ readonly code: "bad_request";
10855
+ readonly message: string;
10856
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10857
+ readonly completeOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: {
10858
+ readonly path: {
10859
+ readonly organizationId: string;
10860
+ readonly commandId: string;
10861
+ };
10862
+ readonly payload: {
10863
+ readonly externalMemberId?: string | null | undefined;
10864
+ readonly memberCode?: string | null | undefined;
10865
+ readonly externalRewardId?: string | null | undefined;
10866
+ readonly externalGuid?: string | null | undefined;
10867
+ readonly rawRecord?: unknown;
10868
+ readonly vouchers?: readonly {
10869
+ readonly [x: string]: unknown;
10870
+ }[] | undefined;
10871
+ readonly errorMessage?: string | null | undefined;
10872
+ };
10873
+ readonly withResponse?: WithResponse | undefined;
10874
+ }) => Effect.Effect<WithResponse extends true ? [{
10875
+ readonly status: "requested" | "accepted" | "completed" | "failed";
10876
+ readonly id: string;
10877
+ readonly createdAt: string;
10878
+ readonly updatedAt: string;
10879
+ readonly deletedAt: string | null;
10880
+ readonly organizationId: string;
10881
+ readonly organizationVoucherProviderId: string;
10882
+ readonly serviceClientId: string | null;
10883
+ readonly kind: "issue_voucher" | "lookup_voucher";
10884
+ readonly payload: {
10885
+ readonly [x: string]: unknown;
10886
+ };
10887
+ readonly result: {
10888
+ readonly externalMemberId: string | null;
10889
+ readonly memberCode: string | null;
10890
+ readonly externalRewardId: string | null;
10891
+ readonly externalGuid: string | null;
10892
+ readonly rawRecord?: unknown;
10893
+ } | {
10894
+ readonly vouchers: readonly {
10895
+ readonly [x: string]: unknown;
10896
+ }[];
10897
+ } | null;
10898
+ readonly errorMessage: string | null;
10899
+ readonly requestedAt: string;
10900
+ readonly acceptedAt: string | null;
10901
+ readonly completedAt: string | null;
10902
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10903
+ readonly status: "requested" | "accepted" | "completed" | "failed";
10904
+ readonly id: string;
10905
+ readonly createdAt: string;
10906
+ readonly updatedAt: string;
10907
+ readonly deletedAt: string | null;
10908
+ readonly organizationId: string;
10909
+ readonly organizationVoucherProviderId: string;
10910
+ readonly serviceClientId: string | null;
10911
+ readonly kind: "issue_voucher" | "lookup_voucher";
10912
+ readonly payload: {
10913
+ readonly [x: string]: unknown;
10914
+ };
10915
+ readonly result: {
10916
+ readonly externalMemberId: string | null;
10917
+ readonly memberCode: string | null;
10918
+ readonly externalRewardId: string | null;
10919
+ readonly externalGuid: string | null;
10920
+ readonly rawRecord?: unknown;
10921
+ } | {
10922
+ readonly vouchers: readonly {
10923
+ readonly [x: string]: unknown;
10924
+ }[];
10630
10925
  } | null;
10631
10926
  readonly errorMessage: string | null;
10632
10927
  readonly requestedAt: string;
@@ -11579,6 +11874,23 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11579
11874
  readonly waitMs?: number | undefined;
11580
11875
  };
11581
11876
  readonly withResponse?: WithResponse | undefined;
11877
+ } | {
11878
+ readonly path: {
11879
+ readonly organizationId: string;
11880
+ };
11881
+ readonly payload: {
11882
+ readonly payload: {
11883
+ readonly memberId?: string | undefined;
11884
+ readonly externalSystemMemberId?: string | null | undefined;
11885
+ readonly memberNumber?: string | null | undefined;
11886
+ readonly metadata?: {
11887
+ readonly [x: string]: unknown;
11888
+ } | undefined;
11889
+ };
11890
+ readonly operation: "voucher.lookup";
11891
+ readonly waitMs?: number | undefined;
11892
+ };
11893
+ readonly withResponse?: WithResponse | undefined;
11582
11894
  } | {
11583
11895
  readonly path: {
11584
11896
  readonly organizationId: string;
@@ -11690,7 +12002,7 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11690
12002
  };
11691
12003
  } | {
11692
12004
  readonly kind: "voucher";
11693
- readonly operation: "voucher.issue";
12005
+ readonly operation: "voucher.issue" | "voucher.lookup";
11694
12006
  readonly settled: boolean;
11695
12007
  readonly timedOut: boolean;
11696
12008
  readonly command: {
@@ -11702,12 +12014,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11702
12014
  readonly organizationId: string;
11703
12015
  readonly organizationVoucherProviderId: string;
11704
12016
  readonly serviceClientId: string | null;
11705
- readonly kind: "issue_voucher";
12017
+ readonly kind: "issue_voucher" | "lookup_voucher";
11706
12018
  readonly payload: {
11707
12019
  readonly [x: string]: unknown;
11708
12020
  };
11709
12021
  readonly result: {
11710
- readonly [x: string]: unknown;
12022
+ readonly externalMemberId: string | null;
12023
+ readonly memberCode: string | null;
12024
+ readonly externalRewardId: string | null;
12025
+ readonly externalGuid: string | null;
12026
+ readonly rawRecord?: unknown;
12027
+ } | {
12028
+ readonly vouchers: readonly {
12029
+ readonly [x: string]: unknown;
12030
+ }[];
11711
12031
  } | null;
11712
12032
  readonly errorMessage: string | null;
11713
12033
  readonly requestedAt: string;
@@ -11777,7 +12097,7 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11777
12097
  };
11778
12098
  } | {
11779
12099
  readonly kind: "voucher";
11780
- readonly operation: "voucher.issue";
12100
+ readonly operation: "voucher.issue" | "voucher.lookup";
11781
12101
  readonly settled: boolean;
11782
12102
  readonly timedOut: boolean;
11783
12103
  readonly command: {
@@ -11789,12 +12109,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11789
12109
  readonly organizationId: string;
11790
12110
  readonly organizationVoucherProviderId: string;
11791
12111
  readonly serviceClientId: string | null;
11792
- readonly kind: "issue_voucher";
12112
+ readonly kind: "issue_voucher" | "lookup_voucher";
11793
12113
  readonly payload: {
11794
12114
  readonly [x: string]: unknown;
11795
12115
  };
11796
12116
  readonly result: {
11797
- readonly [x: string]: unknown;
12117
+ readonly externalMemberId: string | null;
12118
+ readonly memberCode: string | null;
12119
+ readonly externalRewardId: string | null;
12120
+ readonly externalGuid: string | null;
12121
+ readonly rawRecord?: unknown;
12122
+ } | {
12123
+ readonly vouchers: readonly {
12124
+ readonly [x: string]: unknown;
12125
+ }[];
11798
12126
  } | null;
11799
12127
  readonly errorMessage: string | null;
11800
12128
  readonly requestedAt: string;
@@ -14644,10 +14972,10 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
14644
14972
  readonly commandId: string;
14645
14973
  };
14646
14974
  readonly payload: {
14647
- readonly errorMessage?: string | null | undefined;
14648
14975
  readonly rawRecord?: {
14649
14976
  readonly [x: string]: unknown;
14650
14977
  } | undefined;
14978
+ readonly errorMessage?: string | null | undefined;
14651
14979
  readonly record?: {
14652
14980
  readonly email: string | null;
14653
14981
  readonly externalSystemMemberId: string | null;
@@ -18537,12 +18865,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18537
18865
  readonly organizationId: string;
18538
18866
  readonly organizationVoucherProviderId: string;
18539
18867
  readonly serviceClientId: string | null;
18540
- readonly kind: "issue_voucher";
18868
+ readonly kind: "issue_voucher" | "lookup_voucher";
18541
18869
  readonly payload: {
18542
18870
  readonly [x: string]: unknown;
18543
18871
  };
18544
18872
  readonly result: {
18545
- readonly [x: string]: unknown;
18873
+ readonly externalMemberId: string | null;
18874
+ readonly memberCode: string | null;
18875
+ readonly externalRewardId: string | null;
18876
+ readonly externalGuid: string | null;
18877
+ readonly rawRecord?: unknown;
18878
+ } | {
18879
+ readonly vouchers: readonly {
18880
+ readonly [x: string]: unknown;
18881
+ }[];
18546
18882
  } | null;
18547
18883
  readonly errorMessage: string | null;
18548
18884
  readonly requestedAt: string;
@@ -18557,12 +18893,105 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18557
18893
  readonly organizationId: string;
18558
18894
  readonly organizationVoucherProviderId: string;
18559
18895
  readonly serviceClientId: string | null;
18560
- readonly kind: "issue_voucher";
18896
+ readonly kind: "issue_voucher" | "lookup_voucher";
18561
18897
  readonly payload: {
18562
18898
  readonly [x: string]: unknown;
18563
18899
  };
18564
18900
  readonly result: {
18901
+ readonly externalMemberId: string | null;
18902
+ readonly memberCode: string | null;
18903
+ readonly externalRewardId: string | null;
18904
+ readonly externalGuid: string | null;
18905
+ readonly rawRecord?: unknown;
18906
+ } | {
18907
+ readonly vouchers: readonly {
18908
+ readonly [x: string]: unknown;
18909
+ }[];
18910
+ } | null;
18911
+ readonly errorMessage: string | null;
18912
+ readonly requestedAt: string;
18913
+ readonly acceptedAt: string | null;
18914
+ readonly completedAt: string | null;
18915
+ }, {
18916
+ readonly code: "unauthorized";
18917
+ readonly message: string;
18918
+ } | {
18919
+ readonly code: "forbidden";
18920
+ readonly message: string;
18921
+ } | {
18922
+ readonly code: "not_found";
18923
+ readonly message: string;
18924
+ } | {
18925
+ readonly code: "conflict";
18926
+ readonly message: string;
18927
+ } | {
18928
+ readonly code: "bad_request";
18929
+ readonly message: string;
18930
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
18931
+ readonly requestVoucherLookup: <WithResponse extends boolean = false>(request: {
18932
+ readonly path: {
18933
+ readonly organizationId: string;
18934
+ };
18935
+ readonly payload: {
18936
+ readonly memberId?: string | undefined;
18937
+ readonly externalSystemMemberId?: string | null | undefined;
18938
+ readonly memberNumber?: string | null | undefined;
18939
+ readonly metadata?: {
18940
+ readonly [x: string]: unknown;
18941
+ } | undefined;
18942
+ };
18943
+ readonly withResponse?: WithResponse | undefined;
18944
+ }) => Effect.Effect<WithResponse extends true ? [{
18945
+ readonly status: "requested" | "accepted" | "completed" | "failed";
18946
+ readonly id: string;
18947
+ readonly createdAt: string;
18948
+ readonly updatedAt: string;
18949
+ readonly deletedAt: string | null;
18950
+ readonly organizationId: string;
18951
+ readonly organizationVoucherProviderId: string;
18952
+ readonly serviceClientId: string | null;
18953
+ readonly kind: "issue_voucher" | "lookup_voucher";
18954
+ readonly payload: {
18955
+ readonly [x: string]: unknown;
18956
+ };
18957
+ readonly result: {
18958
+ readonly externalMemberId: string | null;
18959
+ readonly memberCode: string | null;
18960
+ readonly externalRewardId: string | null;
18961
+ readonly externalGuid: string | null;
18962
+ readonly rawRecord?: unknown;
18963
+ } | {
18964
+ readonly vouchers: readonly {
18965
+ readonly [x: string]: unknown;
18966
+ }[];
18967
+ } | null;
18968
+ readonly errorMessage: string | null;
18969
+ readonly requestedAt: string;
18970
+ readonly acceptedAt: string | null;
18971
+ readonly completedAt: string | null;
18972
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
18973
+ readonly status: "requested" | "accepted" | "completed" | "failed";
18974
+ readonly id: string;
18975
+ readonly createdAt: string;
18976
+ readonly updatedAt: string;
18977
+ readonly deletedAt: string | null;
18978
+ readonly organizationId: string;
18979
+ readonly organizationVoucherProviderId: string;
18980
+ readonly serviceClientId: string | null;
18981
+ readonly kind: "issue_voucher" | "lookup_voucher";
18982
+ readonly payload: {
18565
18983
  readonly [x: string]: unknown;
18984
+ };
18985
+ readonly result: {
18986
+ readonly externalMemberId: string | null;
18987
+ readonly memberCode: string | null;
18988
+ readonly externalRewardId: string | null;
18989
+ readonly externalGuid: string | null;
18990
+ readonly rawRecord?: unknown;
18991
+ } | {
18992
+ readonly vouchers: readonly {
18993
+ readonly [x: string]: unknown;
18994
+ }[];
18566
18995
  } | null;
18567
18996
  readonly errorMessage: string | null;
18568
18997
  readonly requestedAt: string;
@@ -18599,12 +19028,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18599
19028
  readonly organizationId: string;
18600
19029
  readonly organizationVoucherProviderId: string;
18601
19030
  readonly serviceClientId: string | null;
18602
- readonly kind: "issue_voucher";
19031
+ readonly kind: "issue_voucher" | "lookup_voucher";
18603
19032
  readonly payload: {
18604
19033
  readonly [x: string]: unknown;
18605
19034
  };
18606
19035
  readonly result: {
18607
- readonly [x: string]: unknown;
19036
+ readonly externalMemberId: string | null;
19037
+ readonly memberCode: string | null;
19038
+ readonly externalRewardId: string | null;
19039
+ readonly externalGuid: string | null;
19040
+ readonly rawRecord?: unknown;
19041
+ } | {
19042
+ readonly vouchers: readonly {
19043
+ readonly [x: string]: unknown;
19044
+ }[];
18608
19045
  } | null;
18609
19046
  readonly errorMessage: string | null;
18610
19047
  readonly requestedAt: string;
@@ -18619,12 +19056,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18619
19056
  readonly organizationId: string;
18620
19057
  readonly organizationVoucherProviderId: string;
18621
19058
  readonly serviceClientId: string | null;
18622
- readonly kind: "issue_voucher";
19059
+ readonly kind: "issue_voucher" | "lookup_voucher";
18623
19060
  readonly payload: {
18624
19061
  readonly [x: string]: unknown;
18625
19062
  };
18626
19063
  readonly result: {
18627
- readonly [x: string]: unknown;
19064
+ readonly externalMemberId: string | null;
19065
+ readonly memberCode: string | null;
19066
+ readonly externalRewardId: string | null;
19067
+ readonly externalGuid: string | null;
19068
+ readonly rawRecord?: unknown;
19069
+ } | {
19070
+ readonly vouchers: readonly {
19071
+ readonly [x: string]: unknown;
19072
+ }[];
18628
19073
  } | null;
18629
19074
  readonly errorMessage: string | null;
18630
19075
  readonly requestedAt: string;
@@ -18659,6 +19104,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18659
19104
  readonly [x: string]: unknown;
18660
19105
  };
18661
19106
  readonly organizationVoucherProviderId: string;
19107
+ readonly kind: "issue_voucher" | "lookup_voucher";
18662
19108
  readonly payload: {
18663
19109
  readonly [x: string]: unknown;
18664
19110
  };
@@ -18676,6 +19122,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18676
19122
  readonly [x: string]: unknown;
18677
19123
  };
18678
19124
  readonly organizationVoucherProviderId: string;
19125
+ readonly kind: "issue_voucher" | "lookup_voucher";
18679
19126
  readonly payload: {
18680
19127
  readonly [x: string]: unknown;
18681
19128
  };
@@ -18711,6 +19158,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18711
19158
  readonly [x: string]: unknown;
18712
19159
  };
18713
19160
  readonly organizationVoucherProviderId: string;
19161
+ readonly kind: "issue_voucher" | "lookup_voucher";
18714
19162
  readonly payload: {
18715
19163
  readonly [x: string]: unknown;
18716
19164
  };
@@ -18728,6 +19176,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18728
19176
  readonly [x: string]: unknown;
18729
19177
  };
18730
19178
  readonly organizationVoucherProviderId: string;
19179
+ readonly kind: "issue_voucher" | "lookup_voucher";
18731
19180
  readonly payload: {
18732
19181
  readonly [x: string]: unknown;
18733
19182
  };
@@ -18759,10 +19208,15 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18759
19208
  readonly commandId: string;
18760
19209
  };
18761
19210
  readonly payload: {
18762
- readonly errorMessage?: string | null | undefined;
19211
+ readonly externalMemberId?: string | null | undefined;
19212
+ readonly memberCode?: string | null | undefined;
18763
19213
  readonly externalRewardId?: string | null | undefined;
18764
19214
  readonly externalGuid?: string | null | undefined;
18765
19215
  readonly rawRecord?: unknown;
19216
+ readonly vouchers?: readonly {
19217
+ readonly [x: string]: unknown;
19218
+ }[] | undefined;
19219
+ readonly errorMessage?: string | null | undefined;
18766
19220
  };
18767
19221
  readonly withResponse?: WithResponse | undefined;
18768
19222
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -18774,12 +19228,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18774
19228
  readonly organizationId: string;
18775
19229
  readonly organizationVoucherProviderId: string;
18776
19230
  readonly serviceClientId: string | null;
18777
- readonly kind: "issue_voucher";
19231
+ readonly kind: "issue_voucher" | "lookup_voucher";
18778
19232
  readonly payload: {
18779
19233
  readonly [x: string]: unknown;
18780
19234
  };
18781
19235
  readonly result: {
18782
- readonly [x: string]: unknown;
19236
+ readonly externalMemberId: string | null;
19237
+ readonly memberCode: string | null;
19238
+ readonly externalRewardId: string | null;
19239
+ readonly externalGuid: string | null;
19240
+ readonly rawRecord?: unknown;
19241
+ } | {
19242
+ readonly vouchers: readonly {
19243
+ readonly [x: string]: unknown;
19244
+ }[];
18783
19245
  } | null;
18784
19246
  readonly errorMessage: string | null;
18785
19247
  readonly requestedAt: string;
@@ -18794,12 +19256,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18794
19256
  readonly organizationId: string;
18795
19257
  readonly organizationVoucherProviderId: string;
18796
19258
  readonly serviceClientId: string | null;
18797
- readonly kind: "issue_voucher";
19259
+ readonly kind: "issue_voucher" | "lookup_voucher";
18798
19260
  readonly payload: {
18799
19261
  readonly [x: string]: unknown;
18800
19262
  };
18801
19263
  readonly result: {
18802
- readonly [x: string]: unknown;
19264
+ readonly externalMemberId: string | null;
19265
+ readonly memberCode: string | null;
19266
+ readonly externalRewardId: string | null;
19267
+ readonly externalGuid: string | null;
19268
+ readonly rawRecord?: unknown;
19269
+ } | {
19270
+ readonly vouchers: readonly {
19271
+ readonly [x: string]: unknown;
19272
+ }[];
18803
19273
  } | null;
18804
19274
  readonly errorMessage: string | null;
18805
19275
  readonly requestedAt: string;
@@ -19752,6 +20222,23 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19752
20222
  readonly waitMs?: number | undefined;
19753
20223
  };
19754
20224
  readonly withResponse?: WithResponse | undefined;
20225
+ } | {
20226
+ readonly path: {
20227
+ readonly organizationId: string;
20228
+ };
20229
+ readonly payload: {
20230
+ readonly payload: {
20231
+ readonly memberId?: string | undefined;
20232
+ readonly externalSystemMemberId?: string | null | undefined;
20233
+ readonly memberNumber?: string | null | undefined;
20234
+ readonly metadata?: {
20235
+ readonly [x: string]: unknown;
20236
+ } | undefined;
20237
+ };
20238
+ readonly operation: "voucher.lookup";
20239
+ readonly waitMs?: number | undefined;
20240
+ };
20241
+ readonly withResponse?: WithResponse | undefined;
19755
20242
  } | {
19756
20243
  readonly path: {
19757
20244
  readonly organizationId: string;
@@ -19863,7 +20350,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19863
20350
  };
19864
20351
  } | {
19865
20352
  readonly kind: "voucher";
19866
- readonly operation: "voucher.issue";
20353
+ readonly operation: "voucher.issue" | "voucher.lookup";
19867
20354
  readonly settled: boolean;
19868
20355
  readonly timedOut: boolean;
19869
20356
  readonly command: {
@@ -19875,12 +20362,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19875
20362
  readonly organizationId: string;
19876
20363
  readonly organizationVoucherProviderId: string;
19877
20364
  readonly serviceClientId: string | null;
19878
- readonly kind: "issue_voucher";
20365
+ readonly kind: "issue_voucher" | "lookup_voucher";
19879
20366
  readonly payload: {
19880
20367
  readonly [x: string]: unknown;
19881
20368
  };
19882
20369
  readonly result: {
19883
- readonly [x: string]: unknown;
20370
+ readonly externalMemberId: string | null;
20371
+ readonly memberCode: string | null;
20372
+ readonly externalRewardId: string | null;
20373
+ readonly externalGuid: string | null;
20374
+ readonly rawRecord?: unknown;
20375
+ } | {
20376
+ readonly vouchers: readonly {
20377
+ readonly [x: string]: unknown;
20378
+ }[];
19884
20379
  } | null;
19885
20380
  readonly errorMessage: string | null;
19886
20381
  readonly requestedAt: string;
@@ -19950,7 +20445,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19950
20445
  };
19951
20446
  } | {
19952
20447
  readonly kind: "voucher";
19953
- readonly operation: "voucher.issue";
20448
+ readonly operation: "voucher.issue" | "voucher.lookup";
19954
20449
  readonly settled: boolean;
19955
20450
  readonly timedOut: boolean;
19956
20451
  readonly command: {
@@ -19962,12 +20457,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19962
20457
  readonly organizationId: string;
19963
20458
  readonly organizationVoucherProviderId: string;
19964
20459
  readonly serviceClientId: string | null;
19965
- readonly kind: "issue_voucher";
20460
+ readonly kind: "issue_voucher" | "lookup_voucher";
19966
20461
  readonly payload: {
19967
20462
  readonly [x: string]: unknown;
19968
20463
  };
19969
20464
  readonly result: {
19970
- readonly [x: string]: unknown;
20465
+ readonly externalMemberId: string | null;
20466
+ readonly memberCode: string | null;
20467
+ readonly externalRewardId: string | null;
20468
+ readonly externalGuid: string | null;
20469
+ readonly rawRecord?: unknown;
20470
+ } | {
20471
+ readonly vouchers: readonly {
20472
+ readonly [x: string]: unknown;
20473
+ }[];
19971
20474
  } | null;
19972
20475
  readonly errorMessage: string | null;
19973
20476
  readonly requestedAt: string;
@@ -22817,10 +23320,10 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
22817
23320
  readonly commandId: string;
22818
23321
  };
22819
23322
  readonly payload: {
22820
- readonly errorMessage?: string | null | undefined;
22821
23323
  readonly rawRecord?: {
22822
23324
  readonly [x: string]: unknown;
22823
23325
  } | undefined;
23326
+ readonly errorMessage?: string | null | undefined;
22824
23327
  readonly record?: {
22825
23328
  readonly email: string | null;
22826
23329
  readonly externalSystemMemberId: string | null;
@@ -26712,12 +27215,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26712
27215
  readonly organizationId: string;
26713
27216
  readonly organizationVoucherProviderId: string;
26714
27217
  readonly serviceClientId: string | null;
26715
- readonly kind: "issue_voucher";
27218
+ readonly kind: "issue_voucher" | "lookup_voucher";
26716
27219
  readonly payload: {
26717
27220
  readonly [x: string]: unknown;
26718
27221
  };
26719
27222
  readonly result: {
26720
- readonly [x: string]: unknown;
27223
+ readonly externalMemberId: string | null;
27224
+ readonly memberCode: string | null;
27225
+ readonly externalRewardId: string | null;
27226
+ readonly externalGuid: string | null;
27227
+ readonly rawRecord?: unknown;
27228
+ } | {
27229
+ readonly vouchers: readonly {
27230
+ readonly [x: string]: unknown;
27231
+ }[];
26721
27232
  } | null;
26722
27233
  readonly errorMessage: string | null;
26723
27234
  readonly requestedAt: string;
@@ -26732,12 +27243,105 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26732
27243
  readonly organizationId: string;
26733
27244
  readonly organizationVoucherProviderId: string;
26734
27245
  readonly serviceClientId: string | null;
26735
- readonly kind: "issue_voucher";
27246
+ readonly kind: "issue_voucher" | "lookup_voucher";
27247
+ readonly payload: {
27248
+ readonly [x: string]: unknown;
27249
+ };
27250
+ readonly result: {
27251
+ readonly externalMemberId: string | null;
27252
+ readonly memberCode: string | null;
27253
+ readonly externalRewardId: string | null;
27254
+ readonly externalGuid: string | null;
27255
+ readonly rawRecord?: unknown;
27256
+ } | {
27257
+ readonly vouchers: readonly {
27258
+ readonly [x: string]: unknown;
27259
+ }[];
27260
+ } | null;
27261
+ readonly errorMessage: string | null;
27262
+ readonly requestedAt: string;
27263
+ readonly acceptedAt: string | null;
27264
+ readonly completedAt: string | null;
27265
+ }, {
27266
+ readonly code: "unauthorized";
27267
+ readonly message: string;
27268
+ } | {
27269
+ readonly code: "forbidden";
27270
+ readonly message: string;
27271
+ } | {
27272
+ readonly code: "not_found";
27273
+ readonly message: string;
27274
+ } | {
27275
+ readonly code: "conflict";
27276
+ readonly message: string;
27277
+ } | {
27278
+ readonly code: "bad_request";
27279
+ readonly message: string;
27280
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
27281
+ readonly requestVoucherLookup: <WithResponse extends boolean = false>(request: {
27282
+ readonly path: {
27283
+ readonly organizationId: string;
27284
+ };
27285
+ readonly payload: {
27286
+ readonly memberId?: string | undefined;
27287
+ readonly externalSystemMemberId?: string | null | undefined;
27288
+ readonly memberNumber?: string | null | undefined;
27289
+ readonly metadata?: {
27290
+ readonly [x: string]: unknown;
27291
+ } | undefined;
27292
+ };
27293
+ readonly withResponse?: WithResponse | undefined;
27294
+ }) => Effect.Effect<WithResponse extends true ? [{
27295
+ readonly status: "requested" | "accepted" | "completed" | "failed";
27296
+ readonly id: string;
27297
+ readonly createdAt: string;
27298
+ readonly updatedAt: string;
27299
+ readonly deletedAt: string | null;
27300
+ readonly organizationId: string;
27301
+ readonly organizationVoucherProviderId: string;
27302
+ readonly serviceClientId: string | null;
27303
+ readonly kind: "issue_voucher" | "lookup_voucher";
26736
27304
  readonly payload: {
26737
27305
  readonly [x: string]: unknown;
26738
27306
  };
26739
27307
  readonly result: {
27308
+ readonly externalMemberId: string | null;
27309
+ readonly memberCode: string | null;
27310
+ readonly externalRewardId: string | null;
27311
+ readonly externalGuid: string | null;
27312
+ readonly rawRecord?: unknown;
27313
+ } | {
27314
+ readonly vouchers: readonly {
27315
+ readonly [x: string]: unknown;
27316
+ }[];
27317
+ } | null;
27318
+ readonly errorMessage: string | null;
27319
+ readonly requestedAt: string;
27320
+ readonly acceptedAt: string | null;
27321
+ readonly completedAt: string | null;
27322
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
27323
+ readonly status: "requested" | "accepted" | "completed" | "failed";
27324
+ readonly id: string;
27325
+ readonly createdAt: string;
27326
+ readonly updatedAt: string;
27327
+ readonly deletedAt: string | null;
27328
+ readonly organizationId: string;
27329
+ readonly organizationVoucherProviderId: string;
27330
+ readonly serviceClientId: string | null;
27331
+ readonly kind: "issue_voucher" | "lookup_voucher";
27332
+ readonly payload: {
26740
27333
  readonly [x: string]: unknown;
27334
+ };
27335
+ readonly result: {
27336
+ readonly externalMemberId: string | null;
27337
+ readonly memberCode: string | null;
27338
+ readonly externalRewardId: string | null;
27339
+ readonly externalGuid: string | null;
27340
+ readonly rawRecord?: unknown;
27341
+ } | {
27342
+ readonly vouchers: readonly {
27343
+ readonly [x: string]: unknown;
27344
+ }[];
26741
27345
  } | null;
26742
27346
  readonly errorMessage: string | null;
26743
27347
  readonly requestedAt: string;
@@ -26774,12 +27378,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26774
27378
  readonly organizationId: string;
26775
27379
  readonly organizationVoucherProviderId: string;
26776
27380
  readonly serviceClientId: string | null;
26777
- readonly kind: "issue_voucher";
27381
+ readonly kind: "issue_voucher" | "lookup_voucher";
26778
27382
  readonly payload: {
26779
27383
  readonly [x: string]: unknown;
26780
27384
  };
26781
27385
  readonly result: {
26782
- readonly [x: string]: unknown;
27386
+ readonly externalMemberId: string | null;
27387
+ readonly memberCode: string | null;
27388
+ readonly externalRewardId: string | null;
27389
+ readonly externalGuid: string | null;
27390
+ readonly rawRecord?: unknown;
27391
+ } | {
27392
+ readonly vouchers: readonly {
27393
+ readonly [x: string]: unknown;
27394
+ }[];
26783
27395
  } | null;
26784
27396
  readonly errorMessage: string | null;
26785
27397
  readonly requestedAt: string;
@@ -26794,12 +27406,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26794
27406
  readonly organizationId: string;
26795
27407
  readonly organizationVoucherProviderId: string;
26796
27408
  readonly serviceClientId: string | null;
26797
- readonly kind: "issue_voucher";
27409
+ readonly kind: "issue_voucher" | "lookup_voucher";
26798
27410
  readonly payload: {
26799
27411
  readonly [x: string]: unknown;
26800
27412
  };
26801
27413
  readonly result: {
26802
- readonly [x: string]: unknown;
27414
+ readonly externalMemberId: string | null;
27415
+ readonly memberCode: string | null;
27416
+ readonly externalRewardId: string | null;
27417
+ readonly externalGuid: string | null;
27418
+ readonly rawRecord?: unknown;
27419
+ } | {
27420
+ readonly vouchers: readonly {
27421
+ readonly [x: string]: unknown;
27422
+ }[];
26803
27423
  } | null;
26804
27424
  readonly errorMessage: string | null;
26805
27425
  readonly requestedAt: string;
@@ -26834,6 +27454,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26834
27454
  readonly [x: string]: unknown;
26835
27455
  };
26836
27456
  readonly organizationVoucherProviderId: string;
27457
+ readonly kind: "issue_voucher" | "lookup_voucher";
26837
27458
  readonly payload: {
26838
27459
  readonly [x: string]: unknown;
26839
27460
  };
@@ -26851,6 +27472,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26851
27472
  readonly [x: string]: unknown;
26852
27473
  };
26853
27474
  readonly organizationVoucherProviderId: string;
27475
+ readonly kind: "issue_voucher" | "lookup_voucher";
26854
27476
  readonly payload: {
26855
27477
  readonly [x: string]: unknown;
26856
27478
  };
@@ -26886,6 +27508,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26886
27508
  readonly [x: string]: unknown;
26887
27509
  };
26888
27510
  readonly organizationVoucherProviderId: string;
27511
+ readonly kind: "issue_voucher" | "lookup_voucher";
26889
27512
  readonly payload: {
26890
27513
  readonly [x: string]: unknown;
26891
27514
  };
@@ -26903,6 +27526,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26903
27526
  readonly [x: string]: unknown;
26904
27527
  };
26905
27528
  readonly organizationVoucherProviderId: string;
27529
+ readonly kind: "issue_voucher" | "lookup_voucher";
26906
27530
  readonly payload: {
26907
27531
  readonly [x: string]: unknown;
26908
27532
  };
@@ -26934,10 +27558,15 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26934
27558
  readonly commandId: string;
26935
27559
  };
26936
27560
  readonly payload: {
26937
- readonly errorMessage?: string | null | undefined;
27561
+ readonly externalMemberId?: string | null | undefined;
27562
+ readonly memberCode?: string | null | undefined;
26938
27563
  readonly externalRewardId?: string | null | undefined;
26939
27564
  readonly externalGuid?: string | null | undefined;
26940
27565
  readonly rawRecord?: unknown;
27566
+ readonly vouchers?: readonly {
27567
+ readonly [x: string]: unknown;
27568
+ }[] | undefined;
27569
+ readonly errorMessage?: string | null | undefined;
26941
27570
  };
26942
27571
  readonly withResponse?: WithResponse | undefined;
26943
27572
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -26949,12 +27578,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26949
27578
  readonly organizationId: string;
26950
27579
  readonly organizationVoucherProviderId: string;
26951
27580
  readonly serviceClientId: string | null;
26952
- readonly kind: "issue_voucher";
27581
+ readonly kind: "issue_voucher" | "lookup_voucher";
26953
27582
  readonly payload: {
26954
27583
  readonly [x: string]: unknown;
26955
27584
  };
26956
27585
  readonly result: {
26957
- readonly [x: string]: unknown;
27586
+ readonly externalMemberId: string | null;
27587
+ readonly memberCode: string | null;
27588
+ readonly externalRewardId: string | null;
27589
+ readonly externalGuid: string | null;
27590
+ readonly rawRecord?: unknown;
27591
+ } | {
27592
+ readonly vouchers: readonly {
27593
+ readonly [x: string]: unknown;
27594
+ }[];
26958
27595
  } | null;
26959
27596
  readonly errorMessage: string | null;
26960
27597
  readonly requestedAt: string;
@@ -26969,12 +27606,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26969
27606
  readonly organizationId: string;
26970
27607
  readonly organizationVoucherProviderId: string;
26971
27608
  readonly serviceClientId: string | null;
26972
- readonly kind: "issue_voucher";
27609
+ readonly kind: "issue_voucher" | "lookup_voucher";
26973
27610
  readonly payload: {
26974
27611
  readonly [x: string]: unknown;
26975
27612
  };
26976
27613
  readonly result: {
26977
- readonly [x: string]: unknown;
27614
+ readonly externalMemberId: string | null;
27615
+ readonly memberCode: string | null;
27616
+ readonly externalRewardId: string | null;
27617
+ readonly externalGuid: string | null;
27618
+ readonly rawRecord?: unknown;
27619
+ } | {
27620
+ readonly vouchers: readonly {
27621
+ readonly [x: string]: unknown;
27622
+ }[];
26978
27623
  } | null;
26979
27624
  readonly errorMessage: string | null;
26980
27625
  readonly requestedAt: string;
@@ -27927,6 +28572,23 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
27927
28572
  readonly waitMs?: number | undefined;
27928
28573
  };
27929
28574
  readonly withResponse?: WithResponse | undefined;
28575
+ } | {
28576
+ readonly path: {
28577
+ readonly organizationId: string;
28578
+ };
28579
+ readonly payload: {
28580
+ readonly payload: {
28581
+ readonly memberId?: string | undefined;
28582
+ readonly externalSystemMemberId?: string | null | undefined;
28583
+ readonly memberNumber?: string | null | undefined;
28584
+ readonly metadata?: {
28585
+ readonly [x: string]: unknown;
28586
+ } | undefined;
28587
+ };
28588
+ readonly operation: "voucher.lookup";
28589
+ readonly waitMs?: number | undefined;
28590
+ };
28591
+ readonly withResponse?: WithResponse | undefined;
27930
28592
  } | {
27931
28593
  readonly path: {
27932
28594
  readonly organizationId: string;
@@ -28038,7 +28700,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
28038
28700
  };
28039
28701
  } | {
28040
28702
  readonly kind: "voucher";
28041
- readonly operation: "voucher.issue";
28703
+ readonly operation: "voucher.issue" | "voucher.lookup";
28042
28704
  readonly settled: boolean;
28043
28705
  readonly timedOut: boolean;
28044
28706
  readonly command: {
@@ -28050,12 +28712,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
28050
28712
  readonly organizationId: string;
28051
28713
  readonly organizationVoucherProviderId: string;
28052
28714
  readonly serviceClientId: string | null;
28053
- readonly kind: "issue_voucher";
28715
+ readonly kind: "issue_voucher" | "lookup_voucher";
28054
28716
  readonly payload: {
28055
28717
  readonly [x: string]: unknown;
28056
28718
  };
28057
28719
  readonly result: {
28058
- readonly [x: string]: unknown;
28720
+ readonly externalMemberId: string | null;
28721
+ readonly memberCode: string | null;
28722
+ readonly externalRewardId: string | null;
28723
+ readonly externalGuid: string | null;
28724
+ readonly rawRecord?: unknown;
28725
+ } | {
28726
+ readonly vouchers: readonly {
28727
+ readonly [x: string]: unknown;
28728
+ }[];
28059
28729
  } | null;
28060
28730
  readonly errorMessage: string | null;
28061
28731
  readonly requestedAt: string;
@@ -28125,7 +28795,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
28125
28795
  };
28126
28796
  } | {
28127
28797
  readonly kind: "voucher";
28128
- readonly operation: "voucher.issue";
28798
+ readonly operation: "voucher.issue" | "voucher.lookup";
28129
28799
  readonly settled: boolean;
28130
28800
  readonly timedOut: boolean;
28131
28801
  readonly command: {
@@ -28137,12 +28807,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
28137
28807
  readonly organizationId: string;
28138
28808
  readonly organizationVoucherProviderId: string;
28139
28809
  readonly serviceClientId: string | null;
28140
- readonly kind: "issue_voucher";
28810
+ readonly kind: "issue_voucher" | "lookup_voucher";
28141
28811
  readonly payload: {
28142
28812
  readonly [x: string]: unknown;
28143
28813
  };
28144
28814
  readonly result: {
28145
- readonly [x: string]: unknown;
28815
+ readonly externalMemberId: string | null;
28816
+ readonly memberCode: string | null;
28817
+ readonly externalRewardId: string | null;
28818
+ readonly externalGuid: string | null;
28819
+ readonly rawRecord?: unknown;
28820
+ } | {
28821
+ readonly vouchers: readonly {
28822
+ readonly [x: string]: unknown;
28823
+ }[];
28146
28824
  } | null;
28147
28825
  readonly errorMessage: string | null;
28148
28826
  readonly requestedAt: string;
@@ -30992,10 +31670,10 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
30992
31670
  readonly commandId: string;
30993
31671
  };
30994
31672
  readonly payload: {
30995
- readonly errorMessage?: string | null | undefined;
30996
31673
  readonly rawRecord?: {
30997
31674
  readonly [x: string]: unknown;
30998
31675
  } | undefined;
31676
+ readonly errorMessage?: string | null | undefined;
30999
31677
  readonly record?: {
31000
31678
  readonly email: string | null;
31001
31679
  readonly externalSystemMemberId: string | null;
@@ -31811,7 +32489,7 @@ declare const organizationProductWebhookDeliveryStatuses: readonly ["success", "
31811
32489
  declare const organizationVoucherProviderProviders: readonly ["senpos"];
31812
32490
  declare const organizationVoucherProviderTransports: readonly ["onsite_client"];
31813
32491
  declare const organizationVoucherProviderStatuses: readonly ["active", "disabled"];
31814
- declare const organizationVoucherCommandKinds: readonly ["issue_voucher"];
32492
+ declare const organizationVoucherCommandKinds: readonly ["issue_voucher", "lookup_voucher"];
31815
32493
  declare const organizationVoucherCommandStatuses: readonly ["requested", "accepted", "completed", "failed"];
31816
32494
  declare const organizationPointProviderProviders: readonly ["ebet_pos"];
31817
32495
  declare const organizationPointProviderTransports: readonly ["onsite_client"];
@@ -31896,6 +32574,9 @@ declare function makeOnsiteResourceClient(client: PromiseHubApiClient): {
31896
32574
  readonly issue: (input: WaitOptions & {
31897
32575
  readonly payload: RequestVoucherIssueInput;
31898
32576
  }) => Promise<SpokeHubResult<VoucherCallResponse>>;
32577
+ readonly lookup: (input: WaitOptions & {
32578
+ readonly payload: RequestVoucherLookupInput;
32579
+ }) => Promise<SpokeHubResult<VoucherCallResponse>>;
31899
32580
  };
31900
32581
  readonly points: {
31901
32582
  readonly lookup: (input: WaitOptions & {
@@ -31936,6 +32617,9 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
31936
32617
  readonly issue: (input: WaitOptions & {
31937
32618
  readonly payload: RequestVoucherIssueInput;
31938
32619
  }) => Promise<SpokeHubResult<VoucherCallResponse>>;
32620
+ readonly lookup: (input: WaitOptions & {
32621
+ readonly payload: RequestVoucherLookupInput;
32622
+ }) => Promise<SpokeHubResult<VoucherCallResponse>>;
31939
32623
  };
31940
32624
  readonly points: {
31941
32625
  readonly lookup: (input: WaitOptions & {
@@ -35048,12 +35732,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35048
35732
  readonly organizationId: string;
35049
35733
  readonly organizationVoucherProviderId: string;
35050
35734
  readonly serviceClientId: string | null;
35051
- readonly kind: "issue_voucher";
35735
+ readonly kind: "issue_voucher" | "lookup_voucher";
35052
35736
  readonly payload: {
35053
35737
  readonly [x: string]: unknown;
35054
35738
  };
35055
35739
  readonly result: {
35056
- readonly [x: string]: unknown;
35740
+ readonly externalMemberId: string | null;
35741
+ readonly memberCode: string | null;
35742
+ readonly externalRewardId: string | null;
35743
+ readonly externalGuid: string | null;
35744
+ readonly rawRecord?: unknown;
35745
+ } | {
35746
+ readonly vouchers: readonly {
35747
+ readonly [x: string]: unknown;
35748
+ }[];
35057
35749
  } | null;
35058
35750
  readonly errorMessage: string | null;
35059
35751
  readonly requestedAt: string;
@@ -35068,12 +35760,105 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35068
35760
  readonly organizationId: string;
35069
35761
  readonly organizationVoucherProviderId: string;
35070
35762
  readonly serviceClientId: string | null;
35071
- readonly kind: "issue_voucher";
35763
+ readonly kind: "issue_voucher" | "lookup_voucher";
35764
+ readonly payload: {
35765
+ readonly [x: string]: unknown;
35766
+ };
35767
+ readonly result: {
35768
+ readonly externalMemberId: string | null;
35769
+ readonly memberCode: string | null;
35770
+ readonly externalRewardId: string | null;
35771
+ readonly externalGuid: string | null;
35772
+ readonly rawRecord?: unknown;
35773
+ } | {
35774
+ readonly vouchers: readonly {
35775
+ readonly [x: string]: unknown;
35776
+ }[];
35777
+ } | null;
35778
+ readonly errorMessage: string | null;
35779
+ readonly requestedAt: string;
35780
+ readonly acceptedAt: string | null;
35781
+ readonly completedAt: string | null;
35782
+ }, {
35783
+ readonly code: "unauthorized";
35784
+ readonly message: string;
35785
+ } | {
35786
+ readonly code: "forbidden";
35787
+ readonly message: string;
35788
+ } | {
35789
+ readonly code: "not_found";
35790
+ readonly message: string;
35791
+ } | {
35792
+ readonly code: "conflict";
35793
+ readonly message: string;
35794
+ } | {
35795
+ readonly code: "bad_request";
35796
+ readonly message: string;
35797
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
35798
+ readonly requestVoucherLookup: <WithResponse extends boolean = false>(request: {
35799
+ readonly path: {
35800
+ readonly organizationId: string;
35801
+ };
35802
+ readonly payload: {
35803
+ readonly memberId?: string | undefined;
35804
+ readonly externalSystemMemberId?: string | null | undefined;
35805
+ readonly memberNumber?: string | null | undefined;
35806
+ readonly metadata?: {
35807
+ readonly [x: string]: unknown;
35808
+ } | undefined;
35809
+ };
35810
+ readonly withResponse?: WithResponse | undefined;
35811
+ }) => Effect.Effect<WithResponse extends true ? [{
35812
+ readonly status: "requested" | "accepted" | "completed" | "failed";
35813
+ readonly id: string;
35814
+ readonly createdAt: string;
35815
+ readonly updatedAt: string;
35816
+ readonly deletedAt: string | null;
35817
+ readonly organizationId: string;
35818
+ readonly organizationVoucherProviderId: string;
35819
+ readonly serviceClientId: string | null;
35820
+ readonly kind: "issue_voucher" | "lookup_voucher";
35072
35821
  readonly payload: {
35073
35822
  readonly [x: string]: unknown;
35074
35823
  };
35075
35824
  readonly result: {
35825
+ readonly externalMemberId: string | null;
35826
+ readonly memberCode: string | null;
35827
+ readonly externalRewardId: string | null;
35828
+ readonly externalGuid: string | null;
35829
+ readonly rawRecord?: unknown;
35830
+ } | {
35831
+ readonly vouchers: readonly {
35832
+ readonly [x: string]: unknown;
35833
+ }[];
35834
+ } | null;
35835
+ readonly errorMessage: string | null;
35836
+ readonly requestedAt: string;
35837
+ readonly acceptedAt: string | null;
35838
+ readonly completedAt: string | null;
35839
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
35840
+ readonly status: "requested" | "accepted" | "completed" | "failed";
35841
+ readonly id: string;
35842
+ readonly createdAt: string;
35843
+ readonly updatedAt: string;
35844
+ readonly deletedAt: string | null;
35845
+ readonly organizationId: string;
35846
+ readonly organizationVoucherProviderId: string;
35847
+ readonly serviceClientId: string | null;
35848
+ readonly kind: "issue_voucher" | "lookup_voucher";
35849
+ readonly payload: {
35076
35850
  readonly [x: string]: unknown;
35851
+ };
35852
+ readonly result: {
35853
+ readonly externalMemberId: string | null;
35854
+ readonly memberCode: string | null;
35855
+ readonly externalRewardId: string | null;
35856
+ readonly externalGuid: string | null;
35857
+ readonly rawRecord?: unknown;
35858
+ } | {
35859
+ readonly vouchers: readonly {
35860
+ readonly [x: string]: unknown;
35861
+ }[];
35077
35862
  } | null;
35078
35863
  readonly errorMessage: string | null;
35079
35864
  readonly requestedAt: string;
@@ -35110,12 +35895,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35110
35895
  readonly organizationId: string;
35111
35896
  readonly organizationVoucherProviderId: string;
35112
35897
  readonly serviceClientId: string | null;
35113
- readonly kind: "issue_voucher";
35898
+ readonly kind: "issue_voucher" | "lookup_voucher";
35114
35899
  readonly payload: {
35115
35900
  readonly [x: string]: unknown;
35116
35901
  };
35117
35902
  readonly result: {
35118
- readonly [x: string]: unknown;
35903
+ readonly externalMemberId: string | null;
35904
+ readonly memberCode: string | null;
35905
+ readonly externalRewardId: string | null;
35906
+ readonly externalGuid: string | null;
35907
+ readonly rawRecord?: unknown;
35908
+ } | {
35909
+ readonly vouchers: readonly {
35910
+ readonly [x: string]: unknown;
35911
+ }[];
35119
35912
  } | null;
35120
35913
  readonly errorMessage: string | null;
35121
35914
  readonly requestedAt: string;
@@ -35130,12 +35923,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35130
35923
  readonly organizationId: string;
35131
35924
  readonly organizationVoucherProviderId: string;
35132
35925
  readonly serviceClientId: string | null;
35133
- readonly kind: "issue_voucher";
35926
+ readonly kind: "issue_voucher" | "lookup_voucher";
35134
35927
  readonly payload: {
35135
35928
  readonly [x: string]: unknown;
35136
35929
  };
35137
35930
  readonly result: {
35138
- readonly [x: string]: unknown;
35931
+ readonly externalMemberId: string | null;
35932
+ readonly memberCode: string | null;
35933
+ readonly externalRewardId: string | null;
35934
+ readonly externalGuid: string | null;
35935
+ readonly rawRecord?: unknown;
35936
+ } | {
35937
+ readonly vouchers: readonly {
35938
+ readonly [x: string]: unknown;
35939
+ }[];
35139
35940
  } | null;
35140
35941
  readonly errorMessage: string | null;
35141
35942
  readonly requestedAt: string;
@@ -35170,6 +35971,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35170
35971
  readonly [x: string]: unknown;
35171
35972
  };
35172
35973
  readonly organizationVoucherProviderId: string;
35974
+ readonly kind: "issue_voucher" | "lookup_voucher";
35173
35975
  readonly payload: {
35174
35976
  readonly [x: string]: unknown;
35175
35977
  };
@@ -35187,6 +35989,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35187
35989
  readonly [x: string]: unknown;
35188
35990
  };
35189
35991
  readonly organizationVoucherProviderId: string;
35992
+ readonly kind: "issue_voucher" | "lookup_voucher";
35190
35993
  readonly payload: {
35191
35994
  readonly [x: string]: unknown;
35192
35995
  };
@@ -35222,6 +36025,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35222
36025
  readonly [x: string]: unknown;
35223
36026
  };
35224
36027
  readonly organizationVoucherProviderId: string;
36028
+ readonly kind: "issue_voucher" | "lookup_voucher";
35225
36029
  readonly payload: {
35226
36030
  readonly [x: string]: unknown;
35227
36031
  };
@@ -35239,6 +36043,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35239
36043
  readonly [x: string]: unknown;
35240
36044
  };
35241
36045
  readonly organizationVoucherProviderId: string;
36046
+ readonly kind: "issue_voucher" | "lookup_voucher";
35242
36047
  readonly payload: {
35243
36048
  readonly [x: string]: unknown;
35244
36049
  };
@@ -35270,10 +36075,15 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35270
36075
  readonly commandId: string;
35271
36076
  };
35272
36077
  readonly payload: {
35273
- readonly errorMessage?: string | null | undefined;
36078
+ readonly externalMemberId?: string | null | undefined;
36079
+ readonly memberCode?: string | null | undefined;
35274
36080
  readonly externalRewardId?: string | null | undefined;
35275
36081
  readonly externalGuid?: string | null | undefined;
35276
36082
  readonly rawRecord?: unknown;
36083
+ readonly vouchers?: readonly {
36084
+ readonly [x: string]: unknown;
36085
+ }[] | undefined;
36086
+ readonly errorMessage?: string | null | undefined;
35277
36087
  };
35278
36088
  readonly withResponse?: WithResponse | undefined;
35279
36089
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -35285,12 +36095,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35285
36095
  readonly organizationId: string;
35286
36096
  readonly organizationVoucherProviderId: string;
35287
36097
  readonly serviceClientId: string | null;
35288
- readonly kind: "issue_voucher";
36098
+ readonly kind: "issue_voucher" | "lookup_voucher";
35289
36099
  readonly payload: {
35290
36100
  readonly [x: string]: unknown;
35291
36101
  };
35292
36102
  readonly result: {
35293
- readonly [x: string]: unknown;
36103
+ readonly externalMemberId: string | null;
36104
+ readonly memberCode: string | null;
36105
+ readonly externalRewardId: string | null;
36106
+ readonly externalGuid: string | null;
36107
+ readonly rawRecord?: unknown;
36108
+ } | {
36109
+ readonly vouchers: readonly {
36110
+ readonly [x: string]: unknown;
36111
+ }[];
35294
36112
  } | null;
35295
36113
  readonly errorMessage: string | null;
35296
36114
  readonly requestedAt: string;
@@ -35305,12 +36123,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35305
36123
  readonly organizationId: string;
35306
36124
  readonly organizationVoucherProviderId: string;
35307
36125
  readonly serviceClientId: string | null;
35308
- readonly kind: "issue_voucher";
36126
+ readonly kind: "issue_voucher" | "lookup_voucher";
35309
36127
  readonly payload: {
35310
36128
  readonly [x: string]: unknown;
35311
36129
  };
35312
36130
  readonly result: {
35313
- readonly [x: string]: unknown;
36131
+ readonly externalMemberId: string | null;
36132
+ readonly memberCode: string | null;
36133
+ readonly externalRewardId: string | null;
36134
+ readonly externalGuid: string | null;
36135
+ readonly rawRecord?: unknown;
36136
+ } | {
36137
+ readonly vouchers: readonly {
36138
+ readonly [x: string]: unknown;
36139
+ }[];
35314
36140
  } | null;
35315
36141
  readonly errorMessage: string | null;
35316
36142
  readonly requestedAt: string;
@@ -36263,6 +37089,23 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36263
37089
  readonly waitMs?: number | undefined;
36264
37090
  };
36265
37091
  readonly withResponse?: WithResponse | undefined;
37092
+ } | {
37093
+ readonly path: {
37094
+ readonly organizationId: string;
37095
+ };
37096
+ readonly payload: {
37097
+ readonly payload: {
37098
+ readonly memberId?: string | undefined;
37099
+ readonly externalSystemMemberId?: string | null | undefined;
37100
+ readonly memberNumber?: string | null | undefined;
37101
+ readonly metadata?: {
37102
+ readonly [x: string]: unknown;
37103
+ } | undefined;
37104
+ };
37105
+ readonly operation: "voucher.lookup";
37106
+ readonly waitMs?: number | undefined;
37107
+ };
37108
+ readonly withResponse?: WithResponse | undefined;
36266
37109
  } | {
36267
37110
  readonly path: {
36268
37111
  readonly organizationId: string;
@@ -36374,7 +37217,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36374
37217
  };
36375
37218
  } | {
36376
37219
  readonly kind: "voucher";
36377
- readonly operation: "voucher.issue";
37220
+ readonly operation: "voucher.issue" | "voucher.lookup";
36378
37221
  readonly settled: boolean;
36379
37222
  readonly timedOut: boolean;
36380
37223
  readonly command: {
@@ -36386,12 +37229,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36386
37229
  readonly organizationId: string;
36387
37230
  readonly organizationVoucherProviderId: string;
36388
37231
  readonly serviceClientId: string | null;
36389
- readonly kind: "issue_voucher";
37232
+ readonly kind: "issue_voucher" | "lookup_voucher";
36390
37233
  readonly payload: {
36391
37234
  readonly [x: string]: unknown;
36392
37235
  };
36393
37236
  readonly result: {
36394
- readonly [x: string]: unknown;
37237
+ readonly externalMemberId: string | null;
37238
+ readonly memberCode: string | null;
37239
+ readonly externalRewardId: string | null;
37240
+ readonly externalGuid: string | null;
37241
+ readonly rawRecord?: unknown;
37242
+ } | {
37243
+ readonly vouchers: readonly {
37244
+ readonly [x: string]: unknown;
37245
+ }[];
36395
37246
  } | null;
36396
37247
  readonly errorMessage: string | null;
36397
37248
  readonly requestedAt: string;
@@ -36461,7 +37312,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36461
37312
  };
36462
37313
  } | {
36463
37314
  readonly kind: "voucher";
36464
- readonly operation: "voucher.issue";
37315
+ readonly operation: "voucher.issue" | "voucher.lookup";
36465
37316
  readonly settled: boolean;
36466
37317
  readonly timedOut: boolean;
36467
37318
  readonly command: {
@@ -36473,12 +37324,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36473
37324
  readonly organizationId: string;
36474
37325
  readonly organizationVoucherProviderId: string;
36475
37326
  readonly serviceClientId: string | null;
36476
- readonly kind: "issue_voucher";
37327
+ readonly kind: "issue_voucher" | "lookup_voucher";
36477
37328
  readonly payload: {
36478
37329
  readonly [x: string]: unknown;
36479
37330
  };
36480
37331
  readonly result: {
36481
- readonly [x: string]: unknown;
37332
+ readonly externalMemberId: string | null;
37333
+ readonly memberCode: string | null;
37334
+ readonly externalRewardId: string | null;
37335
+ readonly externalGuid: string | null;
37336
+ readonly rawRecord?: unknown;
37337
+ } | {
37338
+ readonly vouchers: readonly {
37339
+ readonly [x: string]: unknown;
37340
+ }[];
36482
37341
  } | null;
36483
37342
  readonly errorMessage: string | null;
36484
37343
  readonly requestedAt: string;
@@ -39328,10 +40187,10 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
39328
40187
  readonly commandId: string;
39329
40188
  };
39330
40189
  readonly payload: {
39331
- readonly errorMessage?: string | null | undefined;
39332
40190
  readonly rawRecord?: {
39333
40191
  readonly [x: string]: unknown;
39334
40192
  } | undefined;
40193
+ readonly errorMessage?: string | null | undefined;
39335
40194
  readonly record?: {
39336
40195
  readonly email: string | null;
39337
40196
  readonly externalSystemMemberId: string | null;
@@ -41733,12 +42592,52 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
41733
42592
  readonly organizationId: string;
41734
42593
  readonly organizationVoucherProviderId: string;
41735
42594
  readonly serviceClientId: string | null;
41736
- readonly kind: "issue_voucher";
42595
+ readonly kind: "issue_voucher" | "lookup_voucher";
41737
42596
  readonly payload: {
41738
42597
  readonly [x: string]: unknown;
41739
42598
  };
41740
42599
  readonly result: {
42600
+ readonly externalMemberId: string | null;
42601
+ readonly memberCode: string | null;
42602
+ readonly externalRewardId: string | null;
42603
+ readonly externalGuid: string | null;
42604
+ readonly rawRecord?: unknown;
42605
+ } | {
42606
+ readonly vouchers: readonly {
42607
+ readonly [x: string]: unknown;
42608
+ }[];
42609
+ } | null;
42610
+ readonly errorMessage: string | null;
42611
+ readonly requestedAt: string;
42612
+ readonly acceptedAt: string | null;
42613
+ readonly completedAt: string | null;
42614
+ }>>;
42615
+ readonly requestLookup: (input: {
42616
+ readonly organizationId: string;
42617
+ readonly payload: RequestVoucherLookupInput;
42618
+ }) => Promise<SpokeHubResult<{
42619
+ readonly status: "requested" | "accepted" | "completed" | "failed";
42620
+ readonly id: string;
42621
+ readonly createdAt: string;
42622
+ readonly updatedAt: string;
42623
+ readonly deletedAt: string | null;
42624
+ readonly organizationId: string;
42625
+ readonly organizationVoucherProviderId: string;
42626
+ readonly serviceClientId: string | null;
42627
+ readonly kind: "issue_voucher" | "lookup_voucher";
42628
+ readonly payload: {
41741
42629
  readonly [x: string]: unknown;
42630
+ };
42631
+ readonly result: {
42632
+ readonly externalMemberId: string | null;
42633
+ readonly memberCode: string | null;
42634
+ readonly externalRewardId: string | null;
42635
+ readonly externalGuid: string | null;
42636
+ readonly rawRecord?: unknown;
42637
+ } | {
42638
+ readonly vouchers: readonly {
42639
+ readonly [x: string]: unknown;
42640
+ }[];
41742
42641
  } | null;
41743
42642
  readonly errorMessage: string | null;
41744
42643
  readonly requestedAt: string;
@@ -41989,6 +42888,17 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
41989
42888
  };
41990
42889
  readonly operation: "voucher.issue";
41991
42890
  readonly waitMs?: number | undefined;
42891
+ } | {
42892
+ readonly payload: {
42893
+ readonly memberId?: string | undefined;
42894
+ readonly externalSystemMemberId?: string | null | undefined;
42895
+ readonly memberNumber?: string | null | undefined;
42896
+ readonly metadata?: {
42897
+ readonly [x: string]: unknown;
42898
+ } | undefined;
42899
+ };
42900
+ readonly operation: "voucher.lookup";
42901
+ readonly waitMs?: number | undefined;
41992
42902
  } | {
41993
42903
  readonly payload: {
41994
42904
  readonly memberId?: string | undefined;
@@ -42190,7 +43100,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
42190
43100
  readonly payload: RequestVoucherIssueInput;
42191
43101
  }) => Promise<SpokeHubResult<{
42192
43102
  readonly kind: "voucher";
42193
- readonly operation: "voucher.issue";
43103
+ readonly operation: "voucher.issue" | "voucher.lookup";
42194
43104
  readonly settled: boolean;
42195
43105
  readonly timedOut: boolean;
42196
43106
  readonly command: {
@@ -42202,12 +43112,60 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
42202
43112
  readonly organizationId: string;
42203
43113
  readonly organizationVoucherProviderId: string;
42204
43114
  readonly serviceClientId: string | null;
42205
- readonly kind: "issue_voucher";
43115
+ readonly kind: "issue_voucher" | "lookup_voucher";
42206
43116
  readonly payload: {
42207
43117
  readonly [x: string]: unknown;
42208
43118
  };
42209
43119
  readonly result: {
43120
+ readonly externalMemberId: string | null;
43121
+ readonly memberCode: string | null;
43122
+ readonly externalRewardId: string | null;
43123
+ readonly externalGuid: string | null;
43124
+ readonly rawRecord?: unknown;
43125
+ } | {
43126
+ readonly vouchers: readonly {
43127
+ readonly [x: string]: unknown;
43128
+ }[];
43129
+ } | null;
43130
+ readonly errorMessage: string | null;
43131
+ readonly requestedAt: string;
43132
+ readonly acceptedAt: string | null;
43133
+ readonly completedAt: string | null;
43134
+ };
43135
+ }>>;
43136
+ readonly lookup: (input: {
43137
+ readonly organizationId: string;
43138
+ readonly waitMs?: number;
43139
+ } & {
43140
+ readonly payload: RequestVoucherLookupInput;
43141
+ }) => Promise<SpokeHubResult<{
43142
+ readonly kind: "voucher";
43143
+ readonly operation: "voucher.issue" | "voucher.lookup";
43144
+ readonly settled: boolean;
43145
+ readonly timedOut: boolean;
43146
+ readonly command: {
43147
+ readonly status: "requested" | "accepted" | "completed" | "failed";
43148
+ readonly id: string;
43149
+ readonly createdAt: string;
43150
+ readonly updatedAt: string;
43151
+ readonly deletedAt: string | null;
43152
+ readonly organizationId: string;
43153
+ readonly organizationVoucherProviderId: string;
43154
+ readonly serviceClientId: string | null;
43155
+ readonly kind: "issue_voucher" | "lookup_voucher";
43156
+ readonly payload: {
42210
43157
  readonly [x: string]: unknown;
43158
+ };
43159
+ readonly result: {
43160
+ readonly externalMemberId: string | null;
43161
+ readonly memberCode: string | null;
43162
+ readonly externalRewardId: string | null;
43163
+ readonly externalGuid: string | null;
43164
+ readonly rawRecord?: unknown;
43165
+ } | {
43166
+ readonly vouchers: readonly {
43167
+ readonly [x: string]: unknown;
43168
+ }[];
42211
43169
  } | null;
42212
43170
  readonly errorMessage: string | null;
42213
43171
  readonly requestedAt: string;
@@ -42413,7 +43371,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
42413
43371
  };
42414
43372
  } | {
42415
43373
  readonly kind: "voucher";
42416
- readonly operation: "voucher.issue";
43374
+ readonly operation: "voucher.issue" | "voucher.lookup";
42417
43375
  readonly settled: boolean;
42418
43376
  readonly timedOut: boolean;
42419
43377
  readonly command: {
@@ -42425,12 +43383,20 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
42425
43383
  readonly organizationId: string;
42426
43384
  readonly organizationVoucherProviderId: string;
42427
43385
  readonly serviceClientId: string | null;
42428
- readonly kind: "issue_voucher";
43386
+ readonly kind: "issue_voucher" | "lookup_voucher";
42429
43387
  readonly payload: {
42430
43388
  readonly [x: string]: unknown;
42431
43389
  };
42432
43390
  readonly result: {
42433
- readonly [x: string]: unknown;
43391
+ readonly externalMemberId: string | null;
43392
+ readonly memberCode: string | null;
43393
+ readonly externalRewardId: string | null;
43394
+ readonly externalGuid: string | null;
43395
+ readonly rawRecord?: unknown;
43396
+ } | {
43397
+ readonly vouchers: readonly {
43398
+ readonly [x: string]: unknown;
43399
+ }[];
42434
43400
  } | null;
42435
43401
  readonly errorMessage: string | null;
42436
43402
  readonly requestedAt: string;
@@ -42480,4 +43446,4 @@ declare const makePromiseSpokeClient: (options: HubApiCredentialOptions) => Prom
42480
43446
  readonly hubClient: PromiseHubApiClient;
42481
43447
  }>;
42482
43448
 
42483
- export { AddressSchema, type AdminSession, AdminSessionSchema, 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 CompleteOnsitePointCommandInput, CompleteOnsitePointCommandSchema, type CompleteOnsiteVoucherCommandInput, CompleteOnsiteVoucherCommandSchema, type ConflictError, ConflictErrorSchema, type CreateGuestInput, CreateGuestSchema, type CreateMemberInput, CreateMemberSchema, 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 DeletePayload, DeletePayloadSchema, type DeleteServiceClientInput, DeleteServiceClientSchema, type ForbiddenError, ForbiddenErrorSchema, type Guest, type GuestContactMatch, GuestContactMatchSchema, GuestSchema, HubApi, type HubApiClient, type HubApiClientOptions, type HubApiCredentialOptions, type ImportedMemberRecord, ImportedMemberRecordSchema, IssuedPrivateKeySchema, MarketingPreferencesSchema, type Member, type MemberBasic, type MemberBasicResponse, MemberBasicResponseSchema, MemberBasicSchema, 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, MemberSourceSecretNameSchema, type MemberStatusCredits, MemberStatusCreditsSchema, type NotFoundError, NotFoundErrorSchema, type OnsiteAgentCommand, OnsiteAgentCommandSchema, type OnsiteAgentCompleteMemberCreateInput, OnsiteAgentCompleteMemberCreateSchema, type OnsiteAgentCompleteMemberLookupInput, OnsiteAgentCompleteMemberLookupSchema, type OnsiteAgentCompleteMemberRenewalInput, OnsiteAgentCompleteMemberRenewalSchema, type OnsiteAgentCompleteMemberUpdateInput, OnsiteAgentCompleteMemberUpdateSchema, OnsiteAgentCompleteRunErrorSchema, type OnsiteAgentCompleteRunInput, OnsiteAgentCompleteRunSchema, type OnsiteAgentCsvUploadTarget, OnsiteAgentCsvUploadTargetSchema, type OnsiteAgentHeartbeatInput, type OnsiteAgentHeartbeatResponse, OnsiteAgentHeartbeatResponseSchema, OnsiteAgentHeartbeatSchema, type OnsiteAgentIngestLiveFbiBatchInput, OnsiteAgentIngestLiveFbiBatchSchema, type OnsiteAgentMemberCreateCommand, OnsiteAgentMemberCreateCommandSchema, type OnsiteAgentMemberLookupCommand, OnsiteAgentMemberLookupCommandSchema, type OnsiteAgentMemberRenewalCommand, OnsiteAgentMemberRenewalCommandSchema, type OnsiteAgentMemberUpdateCommand, OnsiteAgentMemberUpdateCommandSchema, type OnsitePointCommand, OnsitePointCommandSchema, type OnsiteResourceCallRequest, OnsiteResourceCallRequestSchema, type OnsiteResourceCallResponse, OnsiteResourceCallResponseSchema, type OnsiteResourceClient, type OnsiteResourceMemberCallResponse, OnsiteResourceMemberCallResponseSchema, type OnsiteResourcePointCallResponse, OnsiteResourcePointCallResponseSchema, type OnsiteResourceVoucherCallResponse, OnsiteResourceVoucherCallResponseSchema, type OnsiteVoucherCommand, OnsiteVoucherCommandSchema, type Organization, type OrganizationMemberGender, OrganizationMemberGenderSchema, type OrganizationMemberMembershipType, OrganizationMemberMembershipTypeSchema, type OrganizationMemberRatingGrade, OrganizationMemberRatingGradeSchema, type OrganizationMemberSource, type OrganizationMemberSourceAgent, OrganizationMemberSourceAgentSchema, type OrganizationMemberSourceCommand, OrganizationMemberSourceCommandSchema, type OrganizationMemberSourceCsvImport, OrganizationMemberSourceCsvImportSchema, type OrganizationMemberSourceCsvMapping, OrganizationMemberSourceCsvMappingSchema, 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, OrganizationVoucherCommandSchema, 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, PresignedPostSchema, type PromiseClient, type PromiseHubApiClient, type PromiseSpokeClient, type RequestPointDebitInput, RequestPointDebitSchema, type RequestPointLookupInput, RequestPointLookupSchema, type RequestSourceManagedMemberCreateInput, RequestSourceManagedMemberCreateSchema, type RequestSourceManagedMemberRenewalInput, RequestSourceManagedMemberRenewalSchema, type RequestSourceManagedMemberUpdateInput, RequestSourceManagedMemberUpdateSchema, type RequestVoucherIssueInput, RequestVoucherIssueSchema, type ServiceClient, ServiceClientSchema, type SortDirection, SortDirectionSchema, type SourceManagedMemberLookupBy, SourceManagedMemberLookupBySchema, type SourceManagedMemberLookupCommandPayload, SourceManagedMemberLookupCommandPayloadSchema, 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, guestStatuses, makeBadRequest, makeConflict, makeForbidden, makeHubApiClient, makeNotFound, makeOnsiteResourceClient, makePromiseHubApiClient, makePromiseOnsiteResourceClient, makePromiseServiceHubApiClient, makePromiseSpokeClient, makeServiceHubApiClient, makeSpokeClient, makeUnauthorized, memberComputedStatuses, memberCreatedOrigins, memberPreferredContactMethods, memberRecordModes, memberStatuses, 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 };
43449
+ export { AddressSchema, type AdminSession, AdminSessionSchema, 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 CompleteOnsitePointCommandInput, CompleteOnsitePointCommandSchema, type CompleteOnsiteVoucherCommandInput, CompleteOnsiteVoucherCommandSchema, type ConflictError, ConflictErrorSchema, type CreateGuestInput, CreateGuestSchema, type CreateMemberInput, CreateMemberSchema, 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 DeletePayload, DeletePayloadSchema, type DeleteServiceClientInput, DeleteServiceClientSchema, type ForbiddenError, ForbiddenErrorSchema, type Guest, type GuestContactMatch, GuestContactMatchSchema, GuestSchema, HubApi, type HubApiClient, type HubApiClientOptions, type HubApiCredentialOptions, type ImportedMemberRecord, ImportedMemberRecordSchema, IssuedPrivateKeySchema, MarketingPreferencesSchema, type Member, type MemberBasic, type MemberBasicResponse, MemberBasicResponseSchema, MemberBasicSchema, 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, MemberSourceSecretNameSchema, type MemberStatusCredits, MemberStatusCreditsSchema, type NotFoundError, NotFoundErrorSchema, type OnsiteAgentCommand, OnsiteAgentCommandSchema, type OnsiteAgentCompleteMemberCreateInput, OnsiteAgentCompleteMemberCreateSchema, type OnsiteAgentCompleteMemberLookupInput, OnsiteAgentCompleteMemberLookupSchema, type OnsiteAgentCompleteMemberRenewalInput, OnsiteAgentCompleteMemberRenewalSchema, type OnsiteAgentCompleteMemberUpdateInput, OnsiteAgentCompleteMemberUpdateSchema, OnsiteAgentCompleteRunErrorSchema, type OnsiteAgentCompleteRunInput, OnsiteAgentCompleteRunSchema, type OnsiteAgentCsvUploadTarget, OnsiteAgentCsvUploadTargetSchema, type OnsiteAgentHeartbeatInput, type OnsiteAgentHeartbeatResponse, OnsiteAgentHeartbeatResponseSchema, OnsiteAgentHeartbeatSchema, type OnsiteAgentIngestLiveFbiBatchInput, OnsiteAgentIngestLiveFbiBatchSchema, type OnsiteAgentMemberCreateCommand, OnsiteAgentMemberCreateCommandSchema, type OnsiteAgentMemberLookupCommand, OnsiteAgentMemberLookupCommandSchema, type OnsiteAgentMemberRenewalCommand, OnsiteAgentMemberRenewalCommandSchema, type OnsiteAgentMemberUpdateCommand, OnsiteAgentMemberUpdateCommandSchema, type OnsitePointCommand, OnsitePointCommandSchema, type OnsiteResourceCallRequest, OnsiteResourceCallRequestSchema, type OnsiteResourceCallResponse, OnsiteResourceCallResponseSchema, type OnsiteResourceClient, type OnsiteResourceMemberCallResponse, OnsiteResourceMemberCallResponseSchema, type OnsiteResourcePointCallResponse, OnsiteResourcePointCallResponseSchema, type OnsiteResourceVoucherCallResponse, OnsiteResourceVoucherCallResponseSchema, type OnsiteVoucherCommand, OnsiteVoucherCommandSchema, type Organization, type OrganizationMemberGender, OrganizationMemberGenderSchema, type OrganizationMemberMembershipType, OrganizationMemberMembershipTypeSchema, type OrganizationMemberRatingGrade, OrganizationMemberRatingGradeSchema, type OrganizationMemberSource, type OrganizationMemberSourceAgent, OrganizationMemberSourceAgentSchema, type OrganizationMemberSourceCommand, OrganizationMemberSourceCommandSchema, type OrganizationMemberSourceCsvImport, OrganizationMemberSourceCsvImportSchema, type OrganizationMemberSourceCsvMapping, OrganizationMemberSourceCsvMappingSchema, 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, PresignedPostSchema, type PromiseClient, type PromiseHubApiClient, type PromiseSpokeClient, type RequestPointDebitInput, RequestPointDebitSchema, type RequestPointLookupInput, RequestPointLookupSchema, type RequestSourceManagedMemberCreateInput, RequestSourceManagedMemberCreateSchema, type RequestSourceManagedMemberRenewalInput, RequestSourceManagedMemberRenewalSchema, type RequestSourceManagedMemberUpdateInput, RequestSourceManagedMemberUpdateSchema, type RequestVoucherIssueInput, RequestVoucherIssueSchema, type RequestVoucherLookupInput, RequestVoucherLookupSchema, type ServiceClient, ServiceClientSchema, type SortDirection, SortDirectionSchema, type SourceManagedMemberLookupBy, SourceManagedMemberLookupBySchema, type SourceManagedMemberLookupCommandPayload, SourceManagedMemberLookupCommandPayloadSchema, 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, guestStatuses, makeBadRequest, makeConflict, makeForbidden, makeHubApiClient, makeNotFound, makeOnsiteResourceClient, makePromiseHubApiClient, makePromiseOnsiteResourceClient, makePromiseServiceHubApiClient, makePromiseSpokeClient, makeServiceHubApiClient, makeSpokeClient, makeUnauthorized, memberComputedStatuses, memberCreatedOrigins, memberPreferredContactMethods, memberRecordModes, memberStatuses, 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 };