@spoketech/hub-client 0.1.11 → 0.1.13

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,18 @@ 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
+ cacheTtlMs: Schema.optional<Schema.SchemaClass<number, number, never>>;
170
+ metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
171
+ }>;
138
172
  declare const OnsiteVoucherCommandSchema: Schema.Struct<{
139
173
  commandId: typeof Schema.String;
140
174
  organizationId: typeof Schema.String;
141
175
  organizationVoucherProviderId: typeof Schema.String;
176
+ kind: Schema.Literal<["issue_voucher", "lookup_voucher"]>;
142
177
  provider: Schema.Literal<["senpos"]>;
143
178
  transport: Schema.Literal<["onsite_client"]>;
144
179
  requestedAt: Schema.SchemaClass<string, string, never>;
@@ -150,8 +185,11 @@ declare const OnsiteVoucherCommandSchema: Schema.Struct<{
150
185
  }>>;
151
186
  }>;
152
187
  declare const CompleteOnsiteVoucherCommandSchema: Schema.Struct<{
188
+ externalMemberId: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
189
+ memberCode: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
153
190
  externalRewardId: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
154
191
  externalGuid: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
192
+ vouchers: Schema.optional<Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>;
155
193
  rawRecord: Schema.optional<typeof Schema.Unknown>;
156
194
  errorMessage: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
157
195
  }>;
@@ -228,6 +266,7 @@ declare const RequestPointLookupSchema: Schema.Struct<{
228
266
  cardData: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
229
267
  account: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
230
268
  packetNumber: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
269
+ cacheTtlMs: Schema.optional<Schema.SchemaClass<number, number, never>>;
231
270
  metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
232
271
  }>;
233
272
  declare const RequestPointDebitSchema: Schema.Struct<{
@@ -2260,6 +2299,16 @@ declare const OnsiteResourceCallRequestSchema: Schema.Union<[Schema.Struct<{
2260
2299
  quantity: Schema.optional<typeof Schema.Number>;
2261
2300
  metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2262
2301
  }>;
2302
+ }>, Schema.Struct<{
2303
+ operation: Schema.Literal<["voucher.lookup"]>;
2304
+ waitMs: Schema.optional<Schema.SchemaClass<number, number, never>>;
2305
+ payload: Schema.Struct<{
2306
+ memberId: Schema.optional<typeof Schema.String>;
2307
+ externalSystemMemberId: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
2308
+ memberNumber: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
2309
+ cacheTtlMs: Schema.optional<Schema.SchemaClass<number, number, never>>;
2310
+ metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2311
+ }>;
2263
2312
  }>, Schema.Struct<{
2264
2313
  operation: Schema.Literal<["points.lookup"]>;
2265
2314
  waitMs: Schema.optional<Schema.SchemaClass<number, number, never>>;
@@ -2270,6 +2319,7 @@ declare const OnsiteResourceCallRequestSchema: Schema.Union<[Schema.Struct<{
2270
2319
  cardData: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Null]>>;
2271
2320
  account: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2272
2321
  packetNumber: Schema.optional<Schema.Union<[typeof Schema.String, typeof Schema.Number]>>;
2322
+ cacheTtlMs: Schema.optional<Schema.SchemaClass<number, number, never>>;
2273
2323
  metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2274
2324
  }>;
2275
2325
  }>, Schema.Struct<{
@@ -2337,7 +2387,7 @@ declare const OnsiteResourceMemberCallResponseSchema: Schema.Struct<{
2337
2387
  }>;
2338
2388
  declare const OnsiteResourceVoucherCallResponseSchema: Schema.Struct<{
2339
2389
  kind: Schema.Literal<["voucher"]>;
2340
- operation: Schema.Literal<["voucher.issue"]>;
2390
+ operation: Schema.Literal<["voucher.issue", "voucher.lookup"]>;
2341
2391
  settled: typeof Schema.Boolean;
2342
2392
  timedOut: typeof Schema.Boolean;
2343
2393
  command: Schema.Struct<{
@@ -2345,10 +2395,18 @@ declare const OnsiteResourceVoucherCallResponseSchema: Schema.Struct<{
2345
2395
  organizationId: typeof Schema.String;
2346
2396
  organizationVoucherProviderId: typeof Schema.String;
2347
2397
  serviceClientId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2348
- kind: Schema.Literal<["issue_voucher"]>;
2398
+ kind: Schema.Literal<["issue_voucher", "lookup_voucher"]>;
2349
2399
  status: Schema.Literal<["requested", "accepted", "completed", "failed"]>;
2350
2400
  payload: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
2351
- result: Schema.Union<[Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, typeof Schema.Null]>;
2401
+ result: Schema.Union<[Schema.Union<[Schema.Struct<{
2402
+ externalMemberId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2403
+ memberCode: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2404
+ externalRewardId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2405
+ externalGuid: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2406
+ rawRecord: Schema.optional<typeof Schema.Unknown>;
2407
+ }>, Schema.Struct<{
2408
+ vouchers: Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2409
+ }>]>, typeof Schema.Null]>;
2352
2410
  errorMessage: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2353
2411
  requestedAt: Schema.SchemaClass<string, string, never>;
2354
2412
  acceptedAt: Schema.Union<[Schema.SchemaClass<string, string, never>, typeof Schema.Null]>;
@@ -2416,7 +2474,7 @@ declare const OnsiteResourceCallResponseSchema: Schema.Union<[Schema.Struct<{
2416
2474
  }>;
2417
2475
  }>, Schema.Struct<{
2418
2476
  kind: Schema.Literal<["voucher"]>;
2419
- operation: Schema.Literal<["voucher.issue"]>;
2477
+ operation: Schema.Literal<["voucher.issue", "voucher.lookup"]>;
2420
2478
  settled: typeof Schema.Boolean;
2421
2479
  timedOut: typeof Schema.Boolean;
2422
2480
  command: Schema.Struct<{
@@ -2424,10 +2482,18 @@ declare const OnsiteResourceCallResponseSchema: Schema.Union<[Schema.Struct<{
2424
2482
  organizationId: typeof Schema.String;
2425
2483
  organizationVoucherProviderId: typeof Schema.String;
2426
2484
  serviceClientId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2427
- kind: Schema.Literal<["issue_voucher"]>;
2485
+ kind: Schema.Literal<["issue_voucher", "lookup_voucher"]>;
2428
2486
  status: Schema.Literal<["requested", "accepted", "completed", "failed"]>;
2429
2487
  payload: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
2430
- result: Schema.Union<[Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, typeof Schema.Null]>;
2488
+ result: Schema.Union<[Schema.Union<[Schema.Struct<{
2489
+ externalMemberId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2490
+ memberCode: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2491
+ externalRewardId: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2492
+ externalGuid: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2493
+ rawRecord: Schema.optional<typeof Schema.Unknown>;
2494
+ }>, Schema.Struct<{
2495
+ vouchers: Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
2496
+ }>]>, typeof Schema.Null]>;
2431
2497
  errorMessage: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
2432
2498
  requestedAt: Schema.SchemaClass<string, string, never>;
2433
2499
  acceptedAt: Schema.Union<[Schema.SchemaClass<string, string, never>, typeof Schema.Null]>;
@@ -4644,12 +4710,58 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4644
4710
  readonly organizationId: string;
4645
4711
  readonly organizationVoucherProviderId: string;
4646
4712
  readonly serviceClientId: string | null;
4647
- readonly kind: "issue_voucher";
4713
+ readonly kind: "issue_voucher" | "lookup_voucher";
4648
4714
  readonly payload: {
4649
4715
  readonly [x: string]: unknown;
4650
4716
  };
4651
4717
  readonly result: {
4718
+ readonly externalMemberId: string | null;
4719
+ readonly memberCode: string | null;
4720
+ readonly externalRewardId: string | null;
4721
+ readonly externalGuid: string | null;
4722
+ readonly rawRecord?: unknown;
4723
+ } | {
4724
+ readonly vouchers: readonly {
4725
+ readonly [x: string]: unknown;
4726
+ }[];
4727
+ } | null;
4728
+ readonly errorMessage: string | null;
4729
+ readonly requestedAt: string;
4730
+ readonly acceptedAt: string | null;
4731
+ readonly completedAt: string | null;
4732
+ }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"requestVoucherLookup", "POST", {
4733
+ readonly organizationId: string;
4734
+ }, never, {
4735
+ readonly memberId?: string | undefined;
4736
+ readonly externalSystemMemberId?: string | null | undefined;
4737
+ readonly memberNumber?: string | null | undefined;
4738
+ readonly metadata?: {
4739
+ readonly [x: string]: unknown;
4740
+ } | undefined;
4741
+ readonly cacheTtlMs?: number | undefined;
4742
+ }, never, {
4743
+ readonly status: "requested" | "accepted" | "completed" | "failed";
4744
+ readonly id: string;
4745
+ readonly createdAt: string;
4746
+ readonly updatedAt: string;
4747
+ readonly deletedAt: string | null;
4748
+ readonly organizationId: string;
4749
+ readonly organizationVoucherProviderId: string;
4750
+ readonly serviceClientId: string | null;
4751
+ readonly kind: "issue_voucher" | "lookup_voucher";
4752
+ readonly payload: {
4652
4753
  readonly [x: string]: unknown;
4754
+ };
4755
+ readonly result: {
4756
+ readonly externalMemberId: string | null;
4757
+ readonly memberCode: string | null;
4758
+ readonly externalRewardId: string | null;
4759
+ readonly externalGuid: string | null;
4760
+ readonly rawRecord?: unknown;
4761
+ } | {
4762
+ readonly vouchers: readonly {
4763
+ readonly [x: string]: unknown;
4764
+ }[];
4653
4765
  } | null;
4654
4766
  readonly errorMessage: string | null;
4655
4767
  readonly requestedAt: string;
@@ -4667,12 +4779,20 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4667
4779
  readonly organizationId: string;
4668
4780
  readonly organizationVoucherProviderId: string;
4669
4781
  readonly serviceClientId: string | null;
4670
- readonly kind: "issue_voucher";
4782
+ readonly kind: "issue_voucher" | "lookup_voucher";
4671
4783
  readonly payload: {
4672
4784
  readonly [x: string]: unknown;
4673
4785
  };
4674
4786
  readonly result: {
4675
- readonly [x: string]: unknown;
4787
+ readonly externalMemberId: string | null;
4788
+ readonly memberCode: string | null;
4789
+ readonly externalRewardId: string | null;
4790
+ readonly externalGuid: string | null;
4791
+ readonly rawRecord?: unknown;
4792
+ } | {
4793
+ readonly vouchers: readonly {
4794
+ readonly [x: string]: unknown;
4795
+ }[];
4676
4796
  } | null;
4677
4797
  readonly errorMessage: string | null;
4678
4798
  readonly requestedAt: string;
@@ -4688,6 +4808,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4688
4808
  readonly [x: string]: unknown;
4689
4809
  };
4690
4810
  readonly organizationVoucherProviderId: string;
4811
+ readonly kind: "issue_voucher" | "lookup_voucher";
4691
4812
  readonly payload: {
4692
4813
  readonly [x: string]: unknown;
4693
4814
  };
@@ -4705,6 +4826,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4705
4826
  readonly [x: string]: unknown;
4706
4827
  };
4707
4828
  readonly organizationVoucherProviderId: string;
4829
+ readonly kind: "issue_voucher" | "lookup_voucher";
4708
4830
  readonly payload: {
4709
4831
  readonly [x: string]: unknown;
4710
4832
  };
@@ -4718,10 +4840,15 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4718
4840
  readonly organizationId: string;
4719
4841
  readonly commandId: string;
4720
4842
  }, never, {
4721
- readonly errorMessage?: string | null | undefined;
4843
+ readonly externalMemberId?: string | null | undefined;
4844
+ readonly memberCode?: string | null | undefined;
4722
4845
  readonly externalRewardId?: string | null | undefined;
4723
4846
  readonly externalGuid?: string | null | undefined;
4724
4847
  readonly rawRecord?: unknown;
4848
+ readonly vouchers?: readonly {
4849
+ readonly [x: string]: unknown;
4850
+ }[] | undefined;
4851
+ readonly errorMessage?: string | null | undefined;
4725
4852
  }, never, {
4726
4853
  readonly status: "requested" | "accepted" | "completed" | "failed";
4727
4854
  readonly id: string;
@@ -4731,12 +4858,20 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4731
4858
  readonly organizationId: string;
4732
4859
  readonly organizationVoucherProviderId: string;
4733
4860
  readonly serviceClientId: string | null;
4734
- readonly kind: "issue_voucher";
4861
+ readonly kind: "issue_voucher" | "lookup_voucher";
4735
4862
  readonly payload: {
4736
4863
  readonly [x: string]: unknown;
4737
4864
  };
4738
4865
  readonly result: {
4739
- readonly [x: string]: unknown;
4866
+ readonly externalMemberId: string | null;
4867
+ readonly memberCode: string | null;
4868
+ readonly externalRewardId: string | null;
4869
+ readonly externalGuid: string | null;
4870
+ readonly rawRecord?: unknown;
4871
+ } | {
4872
+ readonly vouchers: readonly {
4873
+ readonly [x: string]: unknown;
4874
+ }[];
4740
4875
  } | null;
4741
4876
  readonly errorMessage: string | null;
4742
4877
  readonly requestedAt: string;
@@ -4800,6 +4935,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
4800
4935
  readonly metadata?: {
4801
4936
  readonly [x: string]: unknown;
4802
4937
  } | undefined;
4938
+ readonly cacheTtlMs?: number | undefined;
4803
4939
  readonly cardData?: string | null | undefined;
4804
4940
  readonly account?: string | number | undefined;
4805
4941
  readonly packetNumber?: string | number | undefined;
@@ -5210,6 +5346,19 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
5210
5346
  readonly metadata?: {
5211
5347
  readonly [x: string]: unknown;
5212
5348
  } | undefined;
5349
+ readonly cacheTtlMs?: number | undefined;
5350
+ };
5351
+ readonly operation: "voucher.lookup";
5352
+ readonly waitMs?: number | undefined;
5353
+ } | {
5354
+ readonly payload: {
5355
+ readonly memberId?: string | undefined;
5356
+ readonly externalSystemMemberId?: string | null | undefined;
5357
+ readonly memberNumber?: string | null | undefined;
5358
+ readonly metadata?: {
5359
+ readonly [x: string]: unknown;
5360
+ } | undefined;
5361
+ readonly cacheTtlMs?: number | undefined;
5213
5362
  readonly cardData?: string | null | undefined;
5214
5363
  readonly account?: string | number | undefined;
5215
5364
  readonly packetNumber?: string | number | undefined;
@@ -5289,7 +5438,7 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
5289
5438
  };
5290
5439
  } | {
5291
5440
  readonly kind: "voucher";
5292
- readonly operation: "voucher.issue";
5441
+ readonly operation: "voucher.issue" | "voucher.lookup";
5293
5442
  readonly settled: boolean;
5294
5443
  readonly timedOut: boolean;
5295
5444
  readonly command: {
@@ -5301,12 +5450,20 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
5301
5450
  readonly organizationId: string;
5302
5451
  readonly organizationVoucherProviderId: string;
5303
5452
  readonly serviceClientId: string | null;
5304
- readonly kind: "issue_voucher";
5453
+ readonly kind: "issue_voucher" | "lookup_voucher";
5305
5454
  readonly payload: {
5306
5455
  readonly [x: string]: unknown;
5307
5456
  };
5308
5457
  readonly result: {
5309
- readonly [x: string]: unknown;
5458
+ readonly externalMemberId: string | null;
5459
+ readonly memberCode: string | null;
5460
+ readonly externalRewardId: string | null;
5461
+ readonly externalGuid: string | null;
5462
+ readonly rawRecord?: unknown;
5463
+ } | {
5464
+ readonly vouchers: readonly {
5465
+ readonly [x: string]: unknown;
5466
+ }[];
5310
5467
  } | null;
5311
5468
  readonly errorMessage: string | null;
5312
5469
  readonly requestedAt: string;
@@ -6689,10 +6846,10 @@ declare const HubApi: HttpApi.HttpApi<"hub", HttpApiGroup.HttpApiGroup<"auth", H
6689
6846
  }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"completeOnsiteAgentMemberLookup", "POST", {
6690
6847
  readonly commandId: string;
6691
6848
  }, never, {
6692
- readonly errorMessage?: string | null | undefined;
6693
6849
  readonly rawRecord?: {
6694
6850
  readonly [x: string]: unknown;
6695
6851
  } | undefined;
6852
+ readonly errorMessage?: string | null | undefined;
6696
6853
  readonly record?: {
6697
6854
  readonly email: string | null;
6698
6855
  readonly externalSystemMemberId: string | null;
@@ -7154,9 +7311,13 @@ type UpsertOrganizationProductWebhookInput = Schema.Schema.Type<typeof UpsertOrg
7154
7311
  type UpdateOrganizationProductWebhookInput = Schema.Schema.Type<typeof UpdateOrganizationProductWebhookSchema>;
7155
7312
  type OrganizationProductWebhookUpsertResponse = Schema.Schema.Type<typeof OrganizationProductWebhookUpsertResponseSchema>;
7156
7313
  type OrganizationVoucherProvider = Schema.Schema.Type<typeof OrganizationVoucherProviderSchema>;
7314
+ type OrganizationVoucherIssueCommandResult = Schema.Schema.Type<typeof OrganizationVoucherIssueCommandResultSchema>;
7315
+ type OrganizationVoucherLookupCommandResult = Schema.Schema.Type<typeof OrganizationVoucherLookupCommandResultSchema>;
7316
+ type OrganizationVoucherCommandResult = Schema.Schema.Type<typeof OrganizationVoucherCommandResultSchema>;
7157
7317
  type OrganizationVoucherCommand = Schema.Schema.Type<typeof OrganizationVoucherCommandSchema>;
7158
7318
  type UpsertOrganizationVoucherProviderInput = Schema.Schema.Type<typeof UpsertOrganizationVoucherProviderSchema>;
7159
7319
  type RequestVoucherIssueInput = Schema.Schema.Type<typeof RequestVoucherIssueSchema>;
7320
+ type RequestVoucherLookupInput = Schema.Schema.Type<typeof RequestVoucherLookupSchema>;
7160
7321
  type OnsiteVoucherCommand = Schema.Schema.Type<typeof OnsiteVoucherCommandSchema>;
7161
7322
  type CompleteOnsiteVoucherCommandInput = Schema.Schema.Type<typeof CompleteOnsiteVoucherCommandSchema>;
7162
7323
  type OrganizationPointProvider = Schema.Schema.Type<typeof OrganizationPointProviderSchema>;
@@ -10364,74 +10525,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10364
10525
  readonly organizationId: string;
10365
10526
  readonly organizationVoucherProviderId: string;
10366
10527
  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";
10528
+ readonly kind: "issue_voucher" | "lookup_voucher";
10388
10529
  readonly payload: {
10389
10530
  readonly [x: string]: unknown;
10390
10531
  };
10391
10532
  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;
10533
+ readonly externalMemberId: string | null;
10534
+ readonly memberCode: string | null;
10535
+ readonly externalRewardId: string | null;
10536
+ readonly externalGuid: string | null;
10537
+ readonly rawRecord?: unknown;
10538
+ } | {
10539
+ readonly vouchers: readonly {
10540
+ readonly [x: string]: unknown;
10541
+ }[];
10435
10542
  } | null;
10436
10543
  readonly errorMessage: string | null;
10437
10544
  readonly requestedAt: string;
@@ -10446,12 +10553,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10446
10553
  readonly organizationId: string;
10447
10554
  readonly organizationVoucherProviderId: string;
10448
10555
  readonly serviceClientId: string | null;
10449
- readonly kind: "issue_voucher";
10556
+ readonly kind: "issue_voucher" | "lookup_voucher";
10450
10557
  readonly payload: {
10451
10558
  readonly [x: string]: unknown;
10452
10559
  };
10453
10560
  readonly result: {
10454
- readonly [x: string]: unknown;
10561
+ readonly externalMemberId: string | null;
10562
+ readonly memberCode: string | null;
10563
+ readonly externalRewardId: string | null;
10564
+ readonly externalGuid: string | null;
10565
+ readonly rawRecord?: unknown;
10566
+ } | {
10567
+ readonly vouchers: readonly {
10568
+ readonly [x: string]: unknown;
10569
+ }[];
10455
10570
  } | null;
10456
10571
  readonly errorMessage: string | null;
10457
10572
  readonly requestedAt: string;
@@ -10473,123 +10588,18 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10473
10588
  readonly code: "bad_request";
10474
10589
  readonly message: string;
10475
10590
  } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10476
- readonly pollOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: {
10591
+ readonly requestVoucherLookup: <WithResponse extends boolean = false>(request: {
10477
10592
  readonly path: {
10478
10593
  readonly organizationId: string;
10479
10594
  };
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
10595
  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;
10596
+ readonly memberId?: string | undefined;
10597
+ readonly externalSystemMemberId?: string | null | undefined;
10598
+ readonly memberNumber?: string | null | undefined;
10599
+ readonly metadata?: {
10600
+ readonly [x: string]: unknown;
10601
+ } | undefined;
10602
+ readonly cacheTtlMs?: number | undefined;
10593
10603
  };
10594
10604
  readonly withResponse?: WithResponse | undefined;
10595
10605
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -10601,12 +10611,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10601
10611
  readonly organizationId: string;
10602
10612
  readonly organizationVoucherProviderId: string;
10603
10613
  readonly serviceClientId: string | null;
10604
- readonly kind: "issue_voucher";
10614
+ readonly kind: "issue_voucher" | "lookup_voucher";
10605
10615
  readonly payload: {
10606
10616
  readonly [x: string]: unknown;
10607
10617
  };
10608
10618
  readonly result: {
10609
- readonly [x: string]: unknown;
10619
+ readonly externalMemberId: string | null;
10620
+ readonly memberCode: string | null;
10621
+ readonly externalRewardId: string | null;
10622
+ readonly externalGuid: string | null;
10623
+ readonly rawRecord?: unknown;
10624
+ } | {
10625
+ readonly vouchers: readonly {
10626
+ readonly [x: string]: unknown;
10627
+ }[];
10610
10628
  } | null;
10611
10629
  readonly errorMessage: string | null;
10612
10630
  readonly requestedAt: string;
@@ -10621,12 +10639,298 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10621
10639
  readonly organizationId: string;
10622
10640
  readonly organizationVoucherProviderId: string;
10623
10641
  readonly serviceClientId: string | null;
10624
- readonly kind: "issue_voucher";
10642
+ readonly kind: "issue_voucher" | "lookup_voucher";
10625
10643
  readonly payload: {
10626
10644
  readonly [x: string]: unknown;
10627
10645
  };
10628
10646
  readonly result: {
10629
- readonly [x: string]: unknown;
10647
+ readonly externalMemberId: string | null;
10648
+ readonly memberCode: string | null;
10649
+ readonly externalRewardId: string | null;
10650
+ readonly externalGuid: string | null;
10651
+ readonly rawRecord?: unknown;
10652
+ } | {
10653
+ readonly vouchers: readonly {
10654
+ readonly [x: string]: unknown;
10655
+ }[];
10656
+ } | null;
10657
+ readonly errorMessage: string | null;
10658
+ readonly requestedAt: string;
10659
+ readonly acceptedAt: string | null;
10660
+ readonly completedAt: string | null;
10661
+ }, {
10662
+ readonly code: "unauthorized";
10663
+ readonly message: string;
10664
+ } | {
10665
+ readonly code: "forbidden";
10666
+ readonly message: string;
10667
+ } | {
10668
+ readonly code: "not_found";
10669
+ readonly message: string;
10670
+ } | {
10671
+ readonly code: "conflict";
10672
+ readonly message: string;
10673
+ } | {
10674
+ readonly code: "bad_request";
10675
+ readonly message: string;
10676
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10677
+ readonly getOrganizationVoucherCommand: <WithResponse extends boolean = false>(request: {
10678
+ readonly path: {
10679
+ readonly organizationId: string;
10680
+ readonly commandId: string;
10681
+ };
10682
+ readonly withResponse?: WithResponse | undefined;
10683
+ }) => Effect.Effect<WithResponse extends true ? [{
10684
+ readonly status: "requested" | "accepted" | "completed" | "failed";
10685
+ readonly id: string;
10686
+ readonly createdAt: string;
10687
+ readonly updatedAt: string;
10688
+ readonly deletedAt: string | null;
10689
+ readonly organizationId: string;
10690
+ readonly organizationVoucherProviderId: string;
10691
+ readonly serviceClientId: string | null;
10692
+ readonly kind: "issue_voucher" | "lookup_voucher";
10693
+ readonly payload: {
10694
+ readonly [x: string]: unknown;
10695
+ };
10696
+ readonly result: {
10697
+ readonly externalMemberId: string | null;
10698
+ readonly memberCode: string | null;
10699
+ readonly externalRewardId: string | null;
10700
+ readonly externalGuid: string | null;
10701
+ readonly rawRecord?: unknown;
10702
+ } | {
10703
+ readonly vouchers: readonly {
10704
+ readonly [x: string]: unknown;
10705
+ }[];
10706
+ } | null;
10707
+ readonly errorMessage: string | null;
10708
+ readonly requestedAt: string;
10709
+ readonly acceptedAt: string | null;
10710
+ readonly completedAt: string | null;
10711
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10712
+ readonly status: "requested" | "accepted" | "completed" | "failed";
10713
+ readonly id: string;
10714
+ readonly createdAt: string;
10715
+ readonly updatedAt: string;
10716
+ readonly deletedAt: string | null;
10717
+ readonly organizationId: string;
10718
+ readonly organizationVoucherProviderId: string;
10719
+ readonly serviceClientId: string | null;
10720
+ readonly kind: "issue_voucher" | "lookup_voucher";
10721
+ readonly payload: {
10722
+ readonly [x: string]: unknown;
10723
+ };
10724
+ readonly result: {
10725
+ readonly externalMemberId: string | null;
10726
+ readonly memberCode: string | null;
10727
+ readonly externalRewardId: string | null;
10728
+ readonly externalGuid: string | null;
10729
+ readonly rawRecord?: unknown;
10730
+ } | {
10731
+ readonly vouchers: readonly {
10732
+ readonly [x: string]: unknown;
10733
+ }[];
10734
+ } | null;
10735
+ readonly errorMessage: string | null;
10736
+ readonly requestedAt: string;
10737
+ readonly acceptedAt: string | null;
10738
+ readonly completedAt: string | null;
10739
+ }, {
10740
+ readonly code: "unauthorized";
10741
+ readonly message: string;
10742
+ } | {
10743
+ readonly code: "forbidden";
10744
+ readonly message: string;
10745
+ } | {
10746
+ readonly code: "not_found";
10747
+ readonly message: string;
10748
+ } | {
10749
+ readonly code: "conflict";
10750
+ readonly message: string;
10751
+ } | {
10752
+ readonly code: "bad_request";
10753
+ readonly message: string;
10754
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10755
+ readonly pollOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: {
10756
+ readonly path: {
10757
+ readonly organizationId: string;
10758
+ };
10759
+ readonly withResponse?: WithResponse | undefined;
10760
+ }) => Effect.Effect<WithResponse extends true ? [{
10761
+ readonly organizationId: string;
10762
+ readonly provider: "senpos";
10763
+ readonly transport: "onsite_client";
10764
+ readonly config: {
10765
+ readonly [x: string]: unknown;
10766
+ };
10767
+ readonly organizationVoucherProviderId: string;
10768
+ readonly kind: "issue_voucher" | "lookup_voucher";
10769
+ readonly payload: {
10770
+ readonly [x: string]: unknown;
10771
+ };
10772
+ readonly requestedAt: string;
10773
+ readonly secrets: readonly {
10774
+ readonly name: string;
10775
+ readonly value: string;
10776
+ }[];
10777
+ readonly commandId: string;
10778
+ } | null, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10779
+ readonly organizationId: string;
10780
+ readonly provider: "senpos";
10781
+ readonly transport: "onsite_client";
10782
+ readonly config: {
10783
+ readonly [x: string]: unknown;
10784
+ };
10785
+ readonly organizationVoucherProviderId: string;
10786
+ readonly kind: "issue_voucher" | "lookup_voucher";
10787
+ readonly payload: {
10788
+ readonly [x: string]: unknown;
10789
+ };
10790
+ readonly requestedAt: string;
10791
+ readonly secrets: readonly {
10792
+ readonly name: string;
10793
+ readonly value: string;
10794
+ }[];
10795
+ readonly commandId: string;
10796
+ } | null, {
10797
+ readonly code: "unauthorized";
10798
+ readonly message: string;
10799
+ } | {
10800
+ readonly code: "forbidden";
10801
+ readonly message: string;
10802
+ } | {
10803
+ readonly code: "not_found";
10804
+ readonly message: string;
10805
+ } | {
10806
+ readonly code: "conflict";
10807
+ readonly message: string;
10808
+ } | {
10809
+ readonly code: "bad_request";
10810
+ readonly message: string;
10811
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10812
+ readonly pollCurrentOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: void | {
10813
+ readonly withResponse?: WithResponse | undefined;
10814
+ }) => Effect.Effect<WithResponse extends true ? [{
10815
+ readonly organizationId: string;
10816
+ readonly provider: "senpos";
10817
+ readonly transport: "onsite_client";
10818
+ readonly config: {
10819
+ readonly [x: string]: unknown;
10820
+ };
10821
+ readonly organizationVoucherProviderId: string;
10822
+ readonly kind: "issue_voucher" | "lookup_voucher";
10823
+ readonly payload: {
10824
+ readonly [x: string]: unknown;
10825
+ };
10826
+ readonly requestedAt: string;
10827
+ readonly secrets: readonly {
10828
+ readonly name: string;
10829
+ readonly value: string;
10830
+ }[];
10831
+ readonly commandId: string;
10832
+ } | null, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10833
+ readonly organizationId: string;
10834
+ readonly provider: "senpos";
10835
+ readonly transport: "onsite_client";
10836
+ readonly config: {
10837
+ readonly [x: string]: unknown;
10838
+ };
10839
+ readonly organizationVoucherProviderId: string;
10840
+ readonly kind: "issue_voucher" | "lookup_voucher";
10841
+ readonly payload: {
10842
+ readonly [x: string]: unknown;
10843
+ };
10844
+ readonly requestedAt: string;
10845
+ readonly secrets: readonly {
10846
+ readonly name: string;
10847
+ readonly value: string;
10848
+ }[];
10849
+ readonly commandId: string;
10850
+ } | null, {
10851
+ readonly code: "unauthorized";
10852
+ readonly message: string;
10853
+ } | {
10854
+ readonly code: "forbidden";
10855
+ readonly message: string;
10856
+ } | {
10857
+ readonly code: "not_found";
10858
+ readonly message: string;
10859
+ } | {
10860
+ readonly code: "conflict";
10861
+ readonly message: string;
10862
+ } | {
10863
+ readonly code: "bad_request";
10864
+ readonly message: string;
10865
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
10866
+ readonly completeOnsiteVoucherCommand: <WithResponse extends boolean = false>(request: {
10867
+ readonly path: {
10868
+ readonly organizationId: string;
10869
+ readonly commandId: string;
10870
+ };
10871
+ readonly payload: {
10872
+ readonly externalMemberId?: string | null | undefined;
10873
+ readonly memberCode?: string | null | undefined;
10874
+ readonly externalRewardId?: string | null | undefined;
10875
+ readonly externalGuid?: string | null | undefined;
10876
+ readonly rawRecord?: unknown;
10877
+ readonly vouchers?: readonly {
10878
+ readonly [x: string]: unknown;
10879
+ }[] | undefined;
10880
+ readonly errorMessage?: string | null | undefined;
10881
+ };
10882
+ readonly withResponse?: WithResponse | undefined;
10883
+ }) => Effect.Effect<WithResponse extends true ? [{
10884
+ readonly status: "requested" | "accepted" | "completed" | "failed";
10885
+ readonly id: string;
10886
+ readonly createdAt: string;
10887
+ readonly updatedAt: string;
10888
+ readonly deletedAt: string | null;
10889
+ readonly organizationId: string;
10890
+ readonly organizationVoucherProviderId: string;
10891
+ readonly serviceClientId: string | null;
10892
+ readonly kind: "issue_voucher" | "lookup_voucher";
10893
+ readonly payload: {
10894
+ readonly [x: string]: unknown;
10895
+ };
10896
+ readonly result: {
10897
+ readonly externalMemberId: string | null;
10898
+ readonly memberCode: string | null;
10899
+ readonly externalRewardId: string | null;
10900
+ readonly externalGuid: string | null;
10901
+ readonly rawRecord?: unknown;
10902
+ } | {
10903
+ readonly vouchers: readonly {
10904
+ readonly [x: string]: unknown;
10905
+ }[];
10906
+ } | null;
10907
+ readonly errorMessage: string | null;
10908
+ readonly requestedAt: string;
10909
+ readonly acceptedAt: string | null;
10910
+ readonly completedAt: string | null;
10911
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
10912
+ readonly status: "requested" | "accepted" | "completed" | "failed";
10913
+ readonly id: string;
10914
+ readonly createdAt: string;
10915
+ readonly updatedAt: string;
10916
+ readonly deletedAt: string | null;
10917
+ readonly organizationId: string;
10918
+ readonly organizationVoucherProviderId: string;
10919
+ readonly serviceClientId: string | null;
10920
+ readonly kind: "issue_voucher" | "lookup_voucher";
10921
+ readonly payload: {
10922
+ readonly [x: string]: unknown;
10923
+ };
10924
+ readonly result: {
10925
+ readonly externalMemberId: string | null;
10926
+ readonly memberCode: string | null;
10927
+ readonly externalRewardId: string | null;
10928
+ readonly externalGuid: string | null;
10929
+ readonly rawRecord?: unknown;
10930
+ } | {
10931
+ readonly vouchers: readonly {
10932
+ readonly [x: string]: unknown;
10933
+ }[];
10630
10934
  } | null;
10631
10935
  readonly errorMessage: string | null;
10632
10936
  readonly requestedAt: string;
@@ -10783,6 +11087,7 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
10783
11087
  readonly metadata?: {
10784
11088
  readonly [x: string]: unknown;
10785
11089
  } | undefined;
11090
+ readonly cacheTtlMs?: number | undefined;
10786
11091
  readonly cardData?: string | null | undefined;
10787
11092
  readonly account?: string | number | undefined;
10788
11093
  readonly packetNumber?: string | number | undefined;
@@ -11591,6 +11896,25 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11591
11896
  readonly metadata?: {
11592
11897
  readonly [x: string]: unknown;
11593
11898
  } | undefined;
11899
+ readonly cacheTtlMs?: number | undefined;
11900
+ };
11901
+ readonly operation: "voucher.lookup";
11902
+ readonly waitMs?: number | undefined;
11903
+ };
11904
+ readonly withResponse?: WithResponse | undefined;
11905
+ } | {
11906
+ readonly path: {
11907
+ readonly organizationId: string;
11908
+ };
11909
+ readonly payload: {
11910
+ readonly payload: {
11911
+ readonly memberId?: string | undefined;
11912
+ readonly externalSystemMemberId?: string | null | undefined;
11913
+ readonly memberNumber?: string | null | undefined;
11914
+ readonly metadata?: {
11915
+ readonly [x: string]: unknown;
11916
+ } | undefined;
11917
+ readonly cacheTtlMs?: number | undefined;
11594
11918
  readonly cardData?: string | null | undefined;
11595
11919
  readonly account?: string | number | undefined;
11596
11920
  readonly packetNumber?: string | number | undefined;
@@ -11690,7 +12014,7 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11690
12014
  };
11691
12015
  } | {
11692
12016
  readonly kind: "voucher";
11693
- readonly operation: "voucher.issue";
12017
+ readonly operation: "voucher.issue" | "voucher.lookup";
11694
12018
  readonly settled: boolean;
11695
12019
  readonly timedOut: boolean;
11696
12020
  readonly command: {
@@ -11702,12 +12026,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11702
12026
  readonly organizationId: string;
11703
12027
  readonly organizationVoucherProviderId: string;
11704
12028
  readonly serviceClientId: string | null;
11705
- readonly kind: "issue_voucher";
12029
+ readonly kind: "issue_voucher" | "lookup_voucher";
11706
12030
  readonly payload: {
11707
12031
  readonly [x: string]: unknown;
11708
12032
  };
11709
12033
  readonly result: {
11710
- readonly [x: string]: unknown;
12034
+ readonly externalMemberId: string | null;
12035
+ readonly memberCode: string | null;
12036
+ readonly externalRewardId: string | null;
12037
+ readonly externalGuid: string | null;
12038
+ readonly rawRecord?: unknown;
12039
+ } | {
12040
+ readonly vouchers: readonly {
12041
+ readonly [x: string]: unknown;
12042
+ }[];
11711
12043
  } | null;
11712
12044
  readonly errorMessage: string | null;
11713
12045
  readonly requestedAt: string;
@@ -11777,7 +12109,7 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11777
12109
  };
11778
12110
  } | {
11779
12111
  readonly kind: "voucher";
11780
- readonly operation: "voucher.issue";
12112
+ readonly operation: "voucher.issue" | "voucher.lookup";
11781
12113
  readonly settled: boolean;
11782
12114
  readonly timedOut: boolean;
11783
12115
  readonly command: {
@@ -11789,12 +12121,20 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
11789
12121
  readonly organizationId: string;
11790
12122
  readonly organizationVoucherProviderId: string;
11791
12123
  readonly serviceClientId: string | null;
11792
- readonly kind: "issue_voucher";
12124
+ readonly kind: "issue_voucher" | "lookup_voucher";
11793
12125
  readonly payload: {
11794
12126
  readonly [x: string]: unknown;
11795
12127
  };
11796
12128
  readonly result: {
11797
- readonly [x: string]: unknown;
12129
+ readonly externalMemberId: string | null;
12130
+ readonly memberCode: string | null;
12131
+ readonly externalRewardId: string | null;
12132
+ readonly externalGuid: string | null;
12133
+ readonly rawRecord?: unknown;
12134
+ } | {
12135
+ readonly vouchers: readonly {
12136
+ readonly [x: string]: unknown;
12137
+ }[];
11798
12138
  } | null;
11799
12139
  readonly errorMessage: string | null;
11800
12140
  readonly requestedAt: string;
@@ -14644,10 +14984,10 @@ declare const makeHubApiClient: (options: HubApiClientOptions) => Effect.Effect<
14644
14984
  readonly commandId: string;
14645
14985
  };
14646
14986
  readonly payload: {
14647
- readonly errorMessage?: string | null | undefined;
14648
14987
  readonly rawRecord?: {
14649
14988
  readonly [x: string]: unknown;
14650
14989
  } | undefined;
14990
+ readonly errorMessage?: string | null | undefined;
14651
14991
  readonly record?: {
14652
14992
  readonly email: string | null;
14653
14993
  readonly externalSystemMemberId: string | null;
@@ -18537,12 +18877,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18537
18877
  readonly organizationId: string;
18538
18878
  readonly organizationVoucherProviderId: string;
18539
18879
  readonly serviceClientId: string | null;
18540
- readonly kind: "issue_voucher";
18880
+ readonly kind: "issue_voucher" | "lookup_voucher";
18541
18881
  readonly payload: {
18542
18882
  readonly [x: string]: unknown;
18543
18883
  };
18544
18884
  readonly result: {
18545
- readonly [x: string]: unknown;
18885
+ readonly externalMemberId: string | null;
18886
+ readonly memberCode: string | null;
18887
+ readonly externalRewardId: string | null;
18888
+ readonly externalGuid: string | null;
18889
+ readonly rawRecord?: unknown;
18890
+ } | {
18891
+ readonly vouchers: readonly {
18892
+ readonly [x: string]: unknown;
18893
+ }[];
18546
18894
  } | null;
18547
18895
  readonly errorMessage: string | null;
18548
18896
  readonly requestedAt: string;
@@ -18557,12 +18905,106 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18557
18905
  readonly organizationId: string;
18558
18906
  readonly organizationVoucherProviderId: string;
18559
18907
  readonly serviceClientId: string | null;
18560
- readonly kind: "issue_voucher";
18908
+ readonly kind: "issue_voucher" | "lookup_voucher";
18561
18909
  readonly payload: {
18562
18910
  readonly [x: string]: unknown;
18563
18911
  };
18564
18912
  readonly result: {
18913
+ readonly externalMemberId: string | null;
18914
+ readonly memberCode: string | null;
18915
+ readonly externalRewardId: string | null;
18916
+ readonly externalGuid: string | null;
18917
+ readonly rawRecord?: unknown;
18918
+ } | {
18919
+ readonly vouchers: readonly {
18920
+ readonly [x: string]: unknown;
18921
+ }[];
18922
+ } | null;
18923
+ readonly errorMessage: string | null;
18924
+ readonly requestedAt: string;
18925
+ readonly acceptedAt: string | null;
18926
+ readonly completedAt: string | null;
18927
+ }, {
18928
+ readonly code: "unauthorized";
18929
+ readonly message: string;
18930
+ } | {
18931
+ readonly code: "forbidden";
18932
+ readonly message: string;
18933
+ } | {
18934
+ readonly code: "not_found";
18935
+ readonly message: string;
18936
+ } | {
18937
+ readonly code: "conflict";
18938
+ readonly message: string;
18939
+ } | {
18940
+ readonly code: "bad_request";
18941
+ readonly message: string;
18942
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
18943
+ readonly requestVoucherLookup: <WithResponse extends boolean = false>(request: {
18944
+ readonly path: {
18945
+ readonly organizationId: string;
18946
+ };
18947
+ readonly payload: {
18948
+ readonly memberId?: string | undefined;
18949
+ readonly externalSystemMemberId?: string | null | undefined;
18950
+ readonly memberNumber?: string | null | undefined;
18951
+ readonly metadata?: {
18952
+ readonly [x: string]: unknown;
18953
+ } | undefined;
18954
+ readonly cacheTtlMs?: number | undefined;
18955
+ };
18956
+ readonly withResponse?: WithResponse | undefined;
18957
+ }) => Effect.Effect<WithResponse extends true ? [{
18958
+ readonly status: "requested" | "accepted" | "completed" | "failed";
18959
+ readonly id: string;
18960
+ readonly createdAt: string;
18961
+ readonly updatedAt: string;
18962
+ readonly deletedAt: string | null;
18963
+ readonly organizationId: string;
18964
+ readonly organizationVoucherProviderId: string;
18965
+ readonly serviceClientId: string | null;
18966
+ readonly kind: "issue_voucher" | "lookup_voucher";
18967
+ readonly payload: {
18968
+ readonly [x: string]: unknown;
18969
+ };
18970
+ readonly result: {
18971
+ readonly externalMemberId: string | null;
18972
+ readonly memberCode: string | null;
18973
+ readonly externalRewardId: string | null;
18974
+ readonly externalGuid: string | null;
18975
+ readonly rawRecord?: unknown;
18976
+ } | {
18977
+ readonly vouchers: readonly {
18978
+ readonly [x: string]: unknown;
18979
+ }[];
18980
+ } | null;
18981
+ readonly errorMessage: string | null;
18982
+ readonly requestedAt: string;
18983
+ readonly acceptedAt: string | null;
18984
+ readonly completedAt: string | null;
18985
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
18986
+ readonly status: "requested" | "accepted" | "completed" | "failed";
18987
+ readonly id: string;
18988
+ readonly createdAt: string;
18989
+ readonly updatedAt: string;
18990
+ readonly deletedAt: string | null;
18991
+ readonly organizationId: string;
18992
+ readonly organizationVoucherProviderId: string;
18993
+ readonly serviceClientId: string | null;
18994
+ readonly kind: "issue_voucher" | "lookup_voucher";
18995
+ readonly payload: {
18565
18996
  readonly [x: string]: unknown;
18997
+ };
18998
+ readonly result: {
18999
+ readonly externalMemberId: string | null;
19000
+ readonly memberCode: string | null;
19001
+ readonly externalRewardId: string | null;
19002
+ readonly externalGuid: string | null;
19003
+ readonly rawRecord?: unknown;
19004
+ } | {
19005
+ readonly vouchers: readonly {
19006
+ readonly [x: string]: unknown;
19007
+ }[];
18566
19008
  } | null;
18567
19009
  readonly errorMessage: string | null;
18568
19010
  readonly requestedAt: string;
@@ -18599,12 +19041,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18599
19041
  readonly organizationId: string;
18600
19042
  readonly organizationVoucherProviderId: string;
18601
19043
  readonly serviceClientId: string | null;
18602
- readonly kind: "issue_voucher";
19044
+ readonly kind: "issue_voucher" | "lookup_voucher";
18603
19045
  readonly payload: {
18604
19046
  readonly [x: string]: unknown;
18605
19047
  };
18606
19048
  readonly result: {
18607
- readonly [x: string]: unknown;
19049
+ readonly externalMemberId: string | null;
19050
+ readonly memberCode: string | null;
19051
+ readonly externalRewardId: string | null;
19052
+ readonly externalGuid: string | null;
19053
+ readonly rawRecord?: unknown;
19054
+ } | {
19055
+ readonly vouchers: readonly {
19056
+ readonly [x: string]: unknown;
19057
+ }[];
18608
19058
  } | null;
18609
19059
  readonly errorMessage: string | null;
18610
19060
  readonly requestedAt: string;
@@ -18619,12 +19069,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18619
19069
  readonly organizationId: string;
18620
19070
  readonly organizationVoucherProviderId: string;
18621
19071
  readonly serviceClientId: string | null;
18622
- readonly kind: "issue_voucher";
19072
+ readonly kind: "issue_voucher" | "lookup_voucher";
18623
19073
  readonly payload: {
18624
19074
  readonly [x: string]: unknown;
18625
19075
  };
18626
19076
  readonly result: {
18627
- readonly [x: string]: unknown;
19077
+ readonly externalMemberId: string | null;
19078
+ readonly memberCode: string | null;
19079
+ readonly externalRewardId: string | null;
19080
+ readonly externalGuid: string | null;
19081
+ readonly rawRecord?: unknown;
19082
+ } | {
19083
+ readonly vouchers: readonly {
19084
+ readonly [x: string]: unknown;
19085
+ }[];
18628
19086
  } | null;
18629
19087
  readonly errorMessage: string | null;
18630
19088
  readonly requestedAt: string;
@@ -18659,6 +19117,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18659
19117
  readonly [x: string]: unknown;
18660
19118
  };
18661
19119
  readonly organizationVoucherProviderId: string;
19120
+ readonly kind: "issue_voucher" | "lookup_voucher";
18662
19121
  readonly payload: {
18663
19122
  readonly [x: string]: unknown;
18664
19123
  };
@@ -18676,6 +19135,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18676
19135
  readonly [x: string]: unknown;
18677
19136
  };
18678
19137
  readonly organizationVoucherProviderId: string;
19138
+ readonly kind: "issue_voucher" | "lookup_voucher";
18679
19139
  readonly payload: {
18680
19140
  readonly [x: string]: unknown;
18681
19141
  };
@@ -18711,6 +19171,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18711
19171
  readonly [x: string]: unknown;
18712
19172
  };
18713
19173
  readonly organizationVoucherProviderId: string;
19174
+ readonly kind: "issue_voucher" | "lookup_voucher";
18714
19175
  readonly payload: {
18715
19176
  readonly [x: string]: unknown;
18716
19177
  };
@@ -18728,6 +19189,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18728
19189
  readonly [x: string]: unknown;
18729
19190
  };
18730
19191
  readonly organizationVoucherProviderId: string;
19192
+ readonly kind: "issue_voucher" | "lookup_voucher";
18731
19193
  readonly payload: {
18732
19194
  readonly [x: string]: unknown;
18733
19195
  };
@@ -18759,10 +19221,15 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18759
19221
  readonly commandId: string;
18760
19222
  };
18761
19223
  readonly payload: {
18762
- readonly errorMessage?: string | null | undefined;
19224
+ readonly externalMemberId?: string | null | undefined;
19225
+ readonly memberCode?: string | null | undefined;
18763
19226
  readonly externalRewardId?: string | null | undefined;
18764
19227
  readonly externalGuid?: string | null | undefined;
18765
19228
  readonly rawRecord?: unknown;
19229
+ readonly vouchers?: readonly {
19230
+ readonly [x: string]: unknown;
19231
+ }[] | undefined;
19232
+ readonly errorMessage?: string | null | undefined;
18766
19233
  };
18767
19234
  readonly withResponse?: WithResponse | undefined;
18768
19235
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -18774,12 +19241,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18774
19241
  readonly organizationId: string;
18775
19242
  readonly organizationVoucherProviderId: string;
18776
19243
  readonly serviceClientId: string | null;
18777
- readonly kind: "issue_voucher";
19244
+ readonly kind: "issue_voucher" | "lookup_voucher";
18778
19245
  readonly payload: {
18779
19246
  readonly [x: string]: unknown;
18780
19247
  };
18781
19248
  readonly result: {
18782
- readonly [x: string]: unknown;
19249
+ readonly externalMemberId: string | null;
19250
+ readonly memberCode: string | null;
19251
+ readonly externalRewardId: string | null;
19252
+ readonly externalGuid: string | null;
19253
+ readonly rawRecord?: unknown;
19254
+ } | {
19255
+ readonly vouchers: readonly {
19256
+ readonly [x: string]: unknown;
19257
+ }[];
18783
19258
  } | null;
18784
19259
  readonly errorMessage: string | null;
18785
19260
  readonly requestedAt: string;
@@ -18794,12 +19269,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18794
19269
  readonly organizationId: string;
18795
19270
  readonly organizationVoucherProviderId: string;
18796
19271
  readonly serviceClientId: string | null;
18797
- readonly kind: "issue_voucher";
19272
+ readonly kind: "issue_voucher" | "lookup_voucher";
18798
19273
  readonly payload: {
18799
19274
  readonly [x: string]: unknown;
18800
19275
  };
18801
19276
  readonly result: {
18802
- readonly [x: string]: unknown;
19277
+ readonly externalMemberId: string | null;
19278
+ readonly memberCode: string | null;
19279
+ readonly externalRewardId: string | null;
19280
+ readonly externalGuid: string | null;
19281
+ readonly rawRecord?: unknown;
19282
+ } | {
19283
+ readonly vouchers: readonly {
19284
+ readonly [x: string]: unknown;
19285
+ }[];
18803
19286
  } | null;
18804
19287
  readonly errorMessage: string | null;
18805
19288
  readonly requestedAt: string;
@@ -18956,6 +19439,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
18956
19439
  readonly metadata?: {
18957
19440
  readonly [x: string]: unknown;
18958
19441
  } | undefined;
19442
+ readonly cacheTtlMs?: number | undefined;
18959
19443
  readonly cardData?: string | null | undefined;
18960
19444
  readonly account?: string | number | undefined;
18961
19445
  readonly packetNumber?: string | number | undefined;
@@ -19764,6 +20248,25 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19764
20248
  readonly metadata?: {
19765
20249
  readonly [x: string]: unknown;
19766
20250
  } | undefined;
20251
+ readonly cacheTtlMs?: number | undefined;
20252
+ };
20253
+ readonly operation: "voucher.lookup";
20254
+ readonly waitMs?: number | undefined;
20255
+ };
20256
+ readonly withResponse?: WithResponse | undefined;
20257
+ } | {
20258
+ readonly path: {
20259
+ readonly organizationId: string;
20260
+ };
20261
+ readonly payload: {
20262
+ readonly payload: {
20263
+ readonly memberId?: string | undefined;
20264
+ readonly externalSystemMemberId?: string | null | undefined;
20265
+ readonly memberNumber?: string | null | undefined;
20266
+ readonly metadata?: {
20267
+ readonly [x: string]: unknown;
20268
+ } | undefined;
20269
+ readonly cacheTtlMs?: number | undefined;
19767
20270
  readonly cardData?: string | null | undefined;
19768
20271
  readonly account?: string | number | undefined;
19769
20272
  readonly packetNumber?: string | number | undefined;
@@ -19863,7 +20366,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19863
20366
  };
19864
20367
  } | {
19865
20368
  readonly kind: "voucher";
19866
- readonly operation: "voucher.issue";
20369
+ readonly operation: "voucher.issue" | "voucher.lookup";
19867
20370
  readonly settled: boolean;
19868
20371
  readonly timedOut: boolean;
19869
20372
  readonly command: {
@@ -19875,12 +20378,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19875
20378
  readonly organizationId: string;
19876
20379
  readonly organizationVoucherProviderId: string;
19877
20380
  readonly serviceClientId: string | null;
19878
- readonly kind: "issue_voucher";
20381
+ readonly kind: "issue_voucher" | "lookup_voucher";
19879
20382
  readonly payload: {
19880
20383
  readonly [x: string]: unknown;
19881
20384
  };
19882
20385
  readonly result: {
19883
- readonly [x: string]: unknown;
20386
+ readonly externalMemberId: string | null;
20387
+ readonly memberCode: string | null;
20388
+ readonly externalRewardId: string | null;
20389
+ readonly externalGuid: string | null;
20390
+ readonly rawRecord?: unknown;
20391
+ } | {
20392
+ readonly vouchers: readonly {
20393
+ readonly [x: string]: unknown;
20394
+ }[];
19884
20395
  } | null;
19885
20396
  readonly errorMessage: string | null;
19886
20397
  readonly requestedAt: string;
@@ -19950,7 +20461,7 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19950
20461
  };
19951
20462
  } | {
19952
20463
  readonly kind: "voucher";
19953
- readonly operation: "voucher.issue";
20464
+ readonly operation: "voucher.issue" | "voucher.lookup";
19954
20465
  readonly settled: boolean;
19955
20466
  readonly timedOut: boolean;
19956
20467
  readonly command: {
@@ -19962,12 +20473,20 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
19962
20473
  readonly organizationId: string;
19963
20474
  readonly organizationVoucherProviderId: string;
19964
20475
  readonly serviceClientId: string | null;
19965
- readonly kind: "issue_voucher";
20476
+ readonly kind: "issue_voucher" | "lookup_voucher";
19966
20477
  readonly payload: {
19967
20478
  readonly [x: string]: unknown;
19968
20479
  };
19969
20480
  readonly result: {
19970
- readonly [x: string]: unknown;
20481
+ readonly externalMemberId: string | null;
20482
+ readonly memberCode: string | null;
20483
+ readonly externalRewardId: string | null;
20484
+ readonly externalGuid: string | null;
20485
+ readonly rawRecord?: unknown;
20486
+ } | {
20487
+ readonly vouchers: readonly {
20488
+ readonly [x: string]: unknown;
20489
+ }[];
19971
20490
  } | null;
19972
20491
  readonly errorMessage: string | null;
19973
20492
  readonly requestedAt: string;
@@ -22817,10 +23336,10 @@ declare const makeServiceHubApiClient: (options: HubApiCredentialOptions) => Eff
22817
23336
  readonly commandId: string;
22818
23337
  };
22819
23338
  readonly payload: {
22820
- readonly errorMessage?: string | null | undefined;
22821
23339
  readonly rawRecord?: {
22822
23340
  readonly [x: string]: unknown;
22823
23341
  } | undefined;
23342
+ readonly errorMessage?: string | null | undefined;
22824
23343
  readonly record?: {
22825
23344
  readonly email: string | null;
22826
23345
  readonly externalSystemMemberId: string | null;
@@ -26712,12 +27231,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26712
27231
  readonly organizationId: string;
26713
27232
  readonly organizationVoucherProviderId: string;
26714
27233
  readonly serviceClientId: string | null;
26715
- readonly kind: "issue_voucher";
27234
+ readonly kind: "issue_voucher" | "lookup_voucher";
26716
27235
  readonly payload: {
26717
27236
  readonly [x: string]: unknown;
26718
27237
  };
26719
27238
  readonly result: {
26720
- readonly [x: string]: unknown;
27239
+ readonly externalMemberId: string | null;
27240
+ readonly memberCode: string | null;
27241
+ readonly externalRewardId: string | null;
27242
+ readonly externalGuid: string | null;
27243
+ readonly rawRecord?: unknown;
27244
+ } | {
27245
+ readonly vouchers: readonly {
27246
+ readonly [x: string]: unknown;
27247
+ }[];
26721
27248
  } | null;
26722
27249
  readonly errorMessage: string | null;
26723
27250
  readonly requestedAt: string;
@@ -26732,12 +27259,106 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26732
27259
  readonly organizationId: string;
26733
27260
  readonly organizationVoucherProviderId: string;
26734
27261
  readonly serviceClientId: string | null;
26735
- readonly kind: "issue_voucher";
27262
+ readonly kind: "issue_voucher" | "lookup_voucher";
27263
+ readonly payload: {
27264
+ readonly [x: string]: unknown;
27265
+ };
27266
+ readonly result: {
27267
+ readonly externalMemberId: string | null;
27268
+ readonly memberCode: string | null;
27269
+ readonly externalRewardId: string | null;
27270
+ readonly externalGuid: string | null;
27271
+ readonly rawRecord?: unknown;
27272
+ } | {
27273
+ readonly vouchers: readonly {
27274
+ readonly [x: string]: unknown;
27275
+ }[];
27276
+ } | null;
27277
+ readonly errorMessage: string | null;
27278
+ readonly requestedAt: string;
27279
+ readonly acceptedAt: string | null;
27280
+ readonly completedAt: string | null;
27281
+ }, {
27282
+ readonly code: "unauthorized";
27283
+ readonly message: string;
27284
+ } | {
27285
+ readonly code: "forbidden";
27286
+ readonly message: string;
27287
+ } | {
27288
+ readonly code: "not_found";
27289
+ readonly message: string;
27290
+ } | {
27291
+ readonly code: "conflict";
27292
+ readonly message: string;
27293
+ } | {
27294
+ readonly code: "bad_request";
27295
+ readonly message: string;
27296
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
27297
+ readonly requestVoucherLookup: <WithResponse extends boolean = false>(request: {
27298
+ readonly path: {
27299
+ readonly organizationId: string;
27300
+ };
27301
+ readonly payload: {
27302
+ readonly memberId?: string | undefined;
27303
+ readonly externalSystemMemberId?: string | null | undefined;
27304
+ readonly memberNumber?: string | null | undefined;
27305
+ readonly metadata?: {
27306
+ readonly [x: string]: unknown;
27307
+ } | undefined;
27308
+ readonly cacheTtlMs?: number | undefined;
27309
+ };
27310
+ readonly withResponse?: WithResponse | undefined;
27311
+ }) => Effect.Effect<WithResponse extends true ? [{
27312
+ readonly status: "requested" | "accepted" | "completed" | "failed";
27313
+ readonly id: string;
27314
+ readonly createdAt: string;
27315
+ readonly updatedAt: string;
27316
+ readonly deletedAt: string | null;
27317
+ readonly organizationId: string;
27318
+ readonly organizationVoucherProviderId: string;
27319
+ readonly serviceClientId: string | null;
27320
+ readonly kind: "issue_voucher" | "lookup_voucher";
26736
27321
  readonly payload: {
26737
27322
  readonly [x: string]: unknown;
26738
27323
  };
26739
27324
  readonly result: {
27325
+ readonly externalMemberId: string | null;
27326
+ readonly memberCode: string | null;
27327
+ readonly externalRewardId: string | null;
27328
+ readonly externalGuid: string | null;
27329
+ readonly rawRecord?: unknown;
27330
+ } | {
27331
+ readonly vouchers: readonly {
27332
+ readonly [x: string]: unknown;
27333
+ }[];
27334
+ } | null;
27335
+ readonly errorMessage: string | null;
27336
+ readonly requestedAt: string;
27337
+ readonly acceptedAt: string | null;
27338
+ readonly completedAt: string | null;
27339
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
27340
+ readonly status: "requested" | "accepted" | "completed" | "failed";
27341
+ readonly id: string;
27342
+ readonly createdAt: string;
27343
+ readonly updatedAt: string;
27344
+ readonly deletedAt: string | null;
27345
+ readonly organizationId: string;
27346
+ readonly organizationVoucherProviderId: string;
27347
+ readonly serviceClientId: string | null;
27348
+ readonly kind: "issue_voucher" | "lookup_voucher";
27349
+ readonly payload: {
26740
27350
  readonly [x: string]: unknown;
27351
+ };
27352
+ readonly result: {
27353
+ readonly externalMemberId: string | null;
27354
+ readonly memberCode: string | null;
27355
+ readonly externalRewardId: string | null;
27356
+ readonly externalGuid: string | null;
27357
+ readonly rawRecord?: unknown;
27358
+ } | {
27359
+ readonly vouchers: readonly {
27360
+ readonly [x: string]: unknown;
27361
+ }[];
26741
27362
  } | null;
26742
27363
  readonly errorMessage: string | null;
26743
27364
  readonly requestedAt: string;
@@ -26774,12 +27395,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26774
27395
  readonly organizationId: string;
26775
27396
  readonly organizationVoucherProviderId: string;
26776
27397
  readonly serviceClientId: string | null;
26777
- readonly kind: "issue_voucher";
27398
+ readonly kind: "issue_voucher" | "lookup_voucher";
26778
27399
  readonly payload: {
26779
27400
  readonly [x: string]: unknown;
26780
27401
  };
26781
27402
  readonly result: {
26782
- readonly [x: string]: unknown;
27403
+ readonly externalMemberId: string | null;
27404
+ readonly memberCode: string | null;
27405
+ readonly externalRewardId: string | null;
27406
+ readonly externalGuid: string | null;
27407
+ readonly rawRecord?: unknown;
27408
+ } | {
27409
+ readonly vouchers: readonly {
27410
+ readonly [x: string]: unknown;
27411
+ }[];
26783
27412
  } | null;
26784
27413
  readonly errorMessage: string | null;
26785
27414
  readonly requestedAt: string;
@@ -26794,12 +27423,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26794
27423
  readonly organizationId: string;
26795
27424
  readonly organizationVoucherProviderId: string;
26796
27425
  readonly serviceClientId: string | null;
26797
- readonly kind: "issue_voucher";
27426
+ readonly kind: "issue_voucher" | "lookup_voucher";
26798
27427
  readonly payload: {
26799
27428
  readonly [x: string]: unknown;
26800
27429
  };
26801
27430
  readonly result: {
26802
- readonly [x: string]: unknown;
27431
+ readonly externalMemberId: string | null;
27432
+ readonly memberCode: string | null;
27433
+ readonly externalRewardId: string | null;
27434
+ readonly externalGuid: string | null;
27435
+ readonly rawRecord?: unknown;
27436
+ } | {
27437
+ readonly vouchers: readonly {
27438
+ readonly [x: string]: unknown;
27439
+ }[];
26803
27440
  } | null;
26804
27441
  readonly errorMessage: string | null;
26805
27442
  readonly requestedAt: string;
@@ -26834,6 +27471,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26834
27471
  readonly [x: string]: unknown;
26835
27472
  };
26836
27473
  readonly organizationVoucherProviderId: string;
27474
+ readonly kind: "issue_voucher" | "lookup_voucher";
26837
27475
  readonly payload: {
26838
27476
  readonly [x: string]: unknown;
26839
27477
  };
@@ -26851,6 +27489,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26851
27489
  readonly [x: string]: unknown;
26852
27490
  };
26853
27491
  readonly organizationVoucherProviderId: string;
27492
+ readonly kind: "issue_voucher" | "lookup_voucher";
26854
27493
  readonly payload: {
26855
27494
  readonly [x: string]: unknown;
26856
27495
  };
@@ -26886,6 +27525,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26886
27525
  readonly [x: string]: unknown;
26887
27526
  };
26888
27527
  readonly organizationVoucherProviderId: string;
27528
+ readonly kind: "issue_voucher" | "lookup_voucher";
26889
27529
  readonly payload: {
26890
27530
  readonly [x: string]: unknown;
26891
27531
  };
@@ -26903,6 +27543,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26903
27543
  readonly [x: string]: unknown;
26904
27544
  };
26905
27545
  readonly organizationVoucherProviderId: string;
27546
+ readonly kind: "issue_voucher" | "lookup_voucher";
26906
27547
  readonly payload: {
26907
27548
  readonly [x: string]: unknown;
26908
27549
  };
@@ -26934,10 +27575,15 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26934
27575
  readonly commandId: string;
26935
27576
  };
26936
27577
  readonly payload: {
26937
- readonly errorMessage?: string | null | undefined;
27578
+ readonly externalMemberId?: string | null | undefined;
27579
+ readonly memberCode?: string | null | undefined;
26938
27580
  readonly externalRewardId?: string | null | undefined;
26939
27581
  readonly externalGuid?: string | null | undefined;
26940
27582
  readonly rawRecord?: unknown;
27583
+ readonly vouchers?: readonly {
27584
+ readonly [x: string]: unknown;
27585
+ }[] | undefined;
27586
+ readonly errorMessage?: string | null | undefined;
26941
27587
  };
26942
27588
  readonly withResponse?: WithResponse | undefined;
26943
27589
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -26949,12 +27595,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26949
27595
  readonly organizationId: string;
26950
27596
  readonly organizationVoucherProviderId: string;
26951
27597
  readonly serviceClientId: string | null;
26952
- readonly kind: "issue_voucher";
27598
+ readonly kind: "issue_voucher" | "lookup_voucher";
26953
27599
  readonly payload: {
26954
27600
  readonly [x: string]: unknown;
26955
27601
  };
26956
27602
  readonly result: {
26957
- readonly [x: string]: unknown;
27603
+ readonly externalMemberId: string | null;
27604
+ readonly memberCode: string | null;
27605
+ readonly externalRewardId: string | null;
27606
+ readonly externalGuid: string | null;
27607
+ readonly rawRecord?: unknown;
27608
+ } | {
27609
+ readonly vouchers: readonly {
27610
+ readonly [x: string]: unknown;
27611
+ }[];
26958
27612
  } | null;
26959
27613
  readonly errorMessage: string | null;
26960
27614
  readonly requestedAt: string;
@@ -26969,12 +27623,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
26969
27623
  readonly organizationId: string;
26970
27624
  readonly organizationVoucherProviderId: string;
26971
27625
  readonly serviceClientId: string | null;
26972
- readonly kind: "issue_voucher";
27626
+ readonly kind: "issue_voucher" | "lookup_voucher";
26973
27627
  readonly payload: {
26974
27628
  readonly [x: string]: unknown;
26975
27629
  };
26976
27630
  readonly result: {
26977
- readonly [x: string]: unknown;
27631
+ readonly externalMemberId: string | null;
27632
+ readonly memberCode: string | null;
27633
+ readonly externalRewardId: string | null;
27634
+ readonly externalGuid: string | null;
27635
+ readonly rawRecord?: unknown;
27636
+ } | {
27637
+ readonly vouchers: readonly {
27638
+ readonly [x: string]: unknown;
27639
+ }[];
26978
27640
  } | null;
26979
27641
  readonly errorMessage: string | null;
26980
27642
  readonly requestedAt: string;
@@ -27131,6 +27793,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
27131
27793
  readonly metadata?: {
27132
27794
  readonly [x: string]: unknown;
27133
27795
  } | undefined;
27796
+ readonly cacheTtlMs?: number | undefined;
27134
27797
  readonly cardData?: string | null | undefined;
27135
27798
  readonly account?: string | number | undefined;
27136
27799
  readonly packetNumber?: string | number | undefined;
@@ -27939,6 +28602,25 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
27939
28602
  readonly metadata?: {
27940
28603
  readonly [x: string]: unknown;
27941
28604
  } | undefined;
28605
+ readonly cacheTtlMs?: number | undefined;
28606
+ };
28607
+ readonly operation: "voucher.lookup";
28608
+ readonly waitMs?: number | undefined;
28609
+ };
28610
+ readonly withResponse?: WithResponse | undefined;
28611
+ } | {
28612
+ readonly path: {
28613
+ readonly organizationId: string;
28614
+ };
28615
+ readonly payload: {
28616
+ readonly payload: {
28617
+ readonly memberId?: string | undefined;
28618
+ readonly externalSystemMemberId?: string | null | undefined;
28619
+ readonly memberNumber?: string | null | undefined;
28620
+ readonly metadata?: {
28621
+ readonly [x: string]: unknown;
28622
+ } | undefined;
28623
+ readonly cacheTtlMs?: number | undefined;
27942
28624
  readonly cardData?: string | null | undefined;
27943
28625
  readonly account?: string | number | undefined;
27944
28626
  readonly packetNumber?: string | number | undefined;
@@ -28038,7 +28720,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
28038
28720
  };
28039
28721
  } | {
28040
28722
  readonly kind: "voucher";
28041
- readonly operation: "voucher.issue";
28723
+ readonly operation: "voucher.issue" | "voucher.lookup";
28042
28724
  readonly settled: boolean;
28043
28725
  readonly timedOut: boolean;
28044
28726
  readonly command: {
@@ -28050,12 +28732,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
28050
28732
  readonly organizationId: string;
28051
28733
  readonly organizationVoucherProviderId: string;
28052
28734
  readonly serviceClientId: string | null;
28053
- readonly kind: "issue_voucher";
28735
+ readonly kind: "issue_voucher" | "lookup_voucher";
28054
28736
  readonly payload: {
28055
28737
  readonly [x: string]: unknown;
28056
28738
  };
28057
28739
  readonly result: {
28058
- readonly [x: string]: unknown;
28740
+ readonly externalMemberId: string | null;
28741
+ readonly memberCode: string | null;
28742
+ readonly externalRewardId: string | null;
28743
+ readonly externalGuid: string | null;
28744
+ readonly rawRecord?: unknown;
28745
+ } | {
28746
+ readonly vouchers: readonly {
28747
+ readonly [x: string]: unknown;
28748
+ }[];
28059
28749
  } | null;
28060
28750
  readonly errorMessage: string | null;
28061
28751
  readonly requestedAt: string;
@@ -28125,7 +28815,7 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
28125
28815
  };
28126
28816
  } | {
28127
28817
  readonly kind: "voucher";
28128
- readonly operation: "voucher.issue";
28818
+ readonly operation: "voucher.issue" | "voucher.lookup";
28129
28819
  readonly settled: boolean;
28130
28820
  readonly timedOut: boolean;
28131
28821
  readonly command: {
@@ -28137,12 +28827,20 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
28137
28827
  readonly organizationId: string;
28138
28828
  readonly organizationVoucherProviderId: string;
28139
28829
  readonly serviceClientId: string | null;
28140
- readonly kind: "issue_voucher";
28830
+ readonly kind: "issue_voucher" | "lookup_voucher";
28141
28831
  readonly payload: {
28142
28832
  readonly [x: string]: unknown;
28143
28833
  };
28144
28834
  readonly result: {
28145
- readonly [x: string]: unknown;
28835
+ readonly externalMemberId: string | null;
28836
+ readonly memberCode: string | null;
28837
+ readonly externalRewardId: string | null;
28838
+ readonly externalGuid: string | null;
28839
+ readonly rawRecord?: unknown;
28840
+ } | {
28841
+ readonly vouchers: readonly {
28842
+ readonly [x: string]: unknown;
28843
+ }[];
28146
28844
  } | null;
28147
28845
  readonly errorMessage: string | null;
28148
28846
  readonly requestedAt: string;
@@ -30992,10 +31690,10 @@ declare const makePromiseServiceHubApiClient: (options: HubApiCredentialOptions)
30992
31690
  readonly commandId: string;
30993
31691
  };
30994
31692
  readonly payload: {
30995
- readonly errorMessage?: string | null | undefined;
30996
31693
  readonly rawRecord?: {
30997
31694
  readonly [x: string]: unknown;
30998
31695
  } | undefined;
31696
+ readonly errorMessage?: string | null | undefined;
30999
31697
  readonly record?: {
31000
31698
  readonly email: string | null;
31001
31699
  readonly externalSystemMemberId: string | null;
@@ -31811,7 +32509,7 @@ declare const organizationProductWebhookDeliveryStatuses: readonly ["success", "
31811
32509
  declare const organizationVoucherProviderProviders: readonly ["senpos"];
31812
32510
  declare const organizationVoucherProviderTransports: readonly ["onsite_client"];
31813
32511
  declare const organizationVoucherProviderStatuses: readonly ["active", "disabled"];
31814
- declare const organizationVoucherCommandKinds: readonly ["issue_voucher"];
32512
+ declare const organizationVoucherCommandKinds: readonly ["issue_voucher", "lookup_voucher"];
31815
32513
  declare const organizationVoucherCommandStatuses: readonly ["requested", "accepted", "completed", "failed"];
31816
32514
  declare const organizationPointProviderProviders: readonly ["ebet_pos"];
31817
32515
  declare const organizationPointProviderTransports: readonly ["onsite_client"];
@@ -31896,6 +32594,9 @@ declare function makeOnsiteResourceClient(client: PromiseHubApiClient): {
31896
32594
  readonly issue: (input: WaitOptions & {
31897
32595
  readonly payload: RequestVoucherIssueInput;
31898
32596
  }) => Promise<SpokeHubResult<VoucherCallResponse>>;
32597
+ readonly lookup: (input: WaitOptions & {
32598
+ readonly payload: RequestVoucherLookupInput;
32599
+ }) => Promise<SpokeHubResult<VoucherCallResponse>>;
31899
32600
  };
31900
32601
  readonly points: {
31901
32602
  readonly lookup: (input: WaitOptions & {
@@ -31936,6 +32637,9 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
31936
32637
  readonly issue: (input: WaitOptions & {
31937
32638
  readonly payload: RequestVoucherIssueInput;
31938
32639
  }) => Promise<SpokeHubResult<VoucherCallResponse>>;
32640
+ readonly lookup: (input: WaitOptions & {
32641
+ readonly payload: RequestVoucherLookupInput;
32642
+ }) => Promise<SpokeHubResult<VoucherCallResponse>>;
31939
32643
  };
31940
32644
  readonly points: {
31941
32645
  readonly lookup: (input: WaitOptions & {
@@ -35048,12 +35752,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35048
35752
  readonly organizationId: string;
35049
35753
  readonly organizationVoucherProviderId: string;
35050
35754
  readonly serviceClientId: string | null;
35051
- readonly kind: "issue_voucher";
35755
+ readonly kind: "issue_voucher" | "lookup_voucher";
35052
35756
  readonly payload: {
35053
35757
  readonly [x: string]: unknown;
35054
35758
  };
35055
35759
  readonly result: {
35056
- readonly [x: string]: unknown;
35760
+ readonly externalMemberId: string | null;
35761
+ readonly memberCode: string | null;
35762
+ readonly externalRewardId: string | null;
35763
+ readonly externalGuid: string | null;
35764
+ readonly rawRecord?: unknown;
35765
+ } | {
35766
+ readonly vouchers: readonly {
35767
+ readonly [x: string]: unknown;
35768
+ }[];
35057
35769
  } | null;
35058
35770
  readonly errorMessage: string | null;
35059
35771
  readonly requestedAt: string;
@@ -35068,12 +35780,106 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35068
35780
  readonly organizationId: string;
35069
35781
  readonly organizationVoucherProviderId: string;
35070
35782
  readonly serviceClientId: string | null;
35071
- readonly kind: "issue_voucher";
35783
+ readonly kind: "issue_voucher" | "lookup_voucher";
35784
+ readonly payload: {
35785
+ readonly [x: string]: unknown;
35786
+ };
35787
+ readonly result: {
35788
+ readonly externalMemberId: string | null;
35789
+ readonly memberCode: string | null;
35790
+ readonly externalRewardId: string | null;
35791
+ readonly externalGuid: string | null;
35792
+ readonly rawRecord?: unknown;
35793
+ } | {
35794
+ readonly vouchers: readonly {
35795
+ readonly [x: string]: unknown;
35796
+ }[];
35797
+ } | null;
35798
+ readonly errorMessage: string | null;
35799
+ readonly requestedAt: string;
35800
+ readonly acceptedAt: string | null;
35801
+ readonly completedAt: string | null;
35802
+ }, {
35803
+ readonly code: "unauthorized";
35804
+ readonly message: string;
35805
+ } | {
35806
+ readonly code: "forbidden";
35807
+ readonly message: string;
35808
+ } | {
35809
+ readonly code: "not_found";
35810
+ readonly message: string;
35811
+ } | {
35812
+ readonly code: "conflict";
35813
+ readonly message: string;
35814
+ } | {
35815
+ readonly code: "bad_request";
35816
+ readonly message: string;
35817
+ } | _effect_platform_HttpApiError.HttpApiDecodeError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
35818
+ readonly requestVoucherLookup: <WithResponse extends boolean = false>(request: {
35819
+ readonly path: {
35820
+ readonly organizationId: string;
35821
+ };
35822
+ readonly payload: {
35823
+ readonly memberId?: string | undefined;
35824
+ readonly externalSystemMemberId?: string | null | undefined;
35825
+ readonly memberNumber?: string | null | undefined;
35826
+ readonly metadata?: {
35827
+ readonly [x: string]: unknown;
35828
+ } | undefined;
35829
+ readonly cacheTtlMs?: number | undefined;
35830
+ };
35831
+ readonly withResponse?: WithResponse | undefined;
35832
+ }) => Effect.Effect<WithResponse extends true ? [{
35833
+ readonly status: "requested" | "accepted" | "completed" | "failed";
35834
+ readonly id: string;
35835
+ readonly createdAt: string;
35836
+ readonly updatedAt: string;
35837
+ readonly deletedAt: string | null;
35838
+ readonly organizationId: string;
35839
+ readonly organizationVoucherProviderId: string;
35840
+ readonly serviceClientId: string | null;
35841
+ readonly kind: "issue_voucher" | "lookup_voucher";
35072
35842
  readonly payload: {
35073
35843
  readonly [x: string]: unknown;
35074
35844
  };
35075
35845
  readonly result: {
35846
+ readonly externalMemberId: string | null;
35847
+ readonly memberCode: string | null;
35848
+ readonly externalRewardId: string | null;
35849
+ readonly externalGuid: string | null;
35850
+ readonly rawRecord?: unknown;
35851
+ } | {
35852
+ readonly vouchers: readonly {
35853
+ readonly [x: string]: unknown;
35854
+ }[];
35855
+ } | null;
35856
+ readonly errorMessage: string | null;
35857
+ readonly requestedAt: string;
35858
+ readonly acceptedAt: string | null;
35859
+ readonly completedAt: string | null;
35860
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
35861
+ readonly status: "requested" | "accepted" | "completed" | "failed";
35862
+ readonly id: string;
35863
+ readonly createdAt: string;
35864
+ readonly updatedAt: string;
35865
+ readonly deletedAt: string | null;
35866
+ readonly organizationId: string;
35867
+ readonly organizationVoucherProviderId: string;
35868
+ readonly serviceClientId: string | null;
35869
+ readonly kind: "issue_voucher" | "lookup_voucher";
35870
+ readonly payload: {
35076
35871
  readonly [x: string]: unknown;
35872
+ };
35873
+ readonly result: {
35874
+ readonly externalMemberId: string | null;
35875
+ readonly memberCode: string | null;
35876
+ readonly externalRewardId: string | null;
35877
+ readonly externalGuid: string | null;
35878
+ readonly rawRecord?: unknown;
35879
+ } | {
35880
+ readonly vouchers: readonly {
35881
+ readonly [x: string]: unknown;
35882
+ }[];
35077
35883
  } | null;
35078
35884
  readonly errorMessage: string | null;
35079
35885
  readonly requestedAt: string;
@@ -35110,12 +35916,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35110
35916
  readonly organizationId: string;
35111
35917
  readonly organizationVoucherProviderId: string;
35112
35918
  readonly serviceClientId: string | null;
35113
- readonly kind: "issue_voucher";
35919
+ readonly kind: "issue_voucher" | "lookup_voucher";
35114
35920
  readonly payload: {
35115
35921
  readonly [x: string]: unknown;
35116
35922
  };
35117
35923
  readonly result: {
35118
- readonly [x: string]: unknown;
35924
+ readonly externalMemberId: string | null;
35925
+ readonly memberCode: string | null;
35926
+ readonly externalRewardId: string | null;
35927
+ readonly externalGuid: string | null;
35928
+ readonly rawRecord?: unknown;
35929
+ } | {
35930
+ readonly vouchers: readonly {
35931
+ readonly [x: string]: unknown;
35932
+ }[];
35119
35933
  } | null;
35120
35934
  readonly errorMessage: string | null;
35121
35935
  readonly requestedAt: string;
@@ -35130,12 +35944,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35130
35944
  readonly organizationId: string;
35131
35945
  readonly organizationVoucherProviderId: string;
35132
35946
  readonly serviceClientId: string | null;
35133
- readonly kind: "issue_voucher";
35947
+ readonly kind: "issue_voucher" | "lookup_voucher";
35134
35948
  readonly payload: {
35135
35949
  readonly [x: string]: unknown;
35136
35950
  };
35137
35951
  readonly result: {
35138
- readonly [x: string]: unknown;
35952
+ readonly externalMemberId: string | null;
35953
+ readonly memberCode: string | null;
35954
+ readonly externalRewardId: string | null;
35955
+ readonly externalGuid: string | null;
35956
+ readonly rawRecord?: unknown;
35957
+ } | {
35958
+ readonly vouchers: readonly {
35959
+ readonly [x: string]: unknown;
35960
+ }[];
35139
35961
  } | null;
35140
35962
  readonly errorMessage: string | null;
35141
35963
  readonly requestedAt: string;
@@ -35170,6 +35992,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35170
35992
  readonly [x: string]: unknown;
35171
35993
  };
35172
35994
  readonly organizationVoucherProviderId: string;
35995
+ readonly kind: "issue_voucher" | "lookup_voucher";
35173
35996
  readonly payload: {
35174
35997
  readonly [x: string]: unknown;
35175
35998
  };
@@ -35187,6 +36010,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35187
36010
  readonly [x: string]: unknown;
35188
36011
  };
35189
36012
  readonly organizationVoucherProviderId: string;
36013
+ readonly kind: "issue_voucher" | "lookup_voucher";
35190
36014
  readonly payload: {
35191
36015
  readonly [x: string]: unknown;
35192
36016
  };
@@ -35222,6 +36046,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35222
36046
  readonly [x: string]: unknown;
35223
36047
  };
35224
36048
  readonly organizationVoucherProviderId: string;
36049
+ readonly kind: "issue_voucher" | "lookup_voucher";
35225
36050
  readonly payload: {
35226
36051
  readonly [x: string]: unknown;
35227
36052
  };
@@ -35239,6 +36064,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35239
36064
  readonly [x: string]: unknown;
35240
36065
  };
35241
36066
  readonly organizationVoucherProviderId: string;
36067
+ readonly kind: "issue_voucher" | "lookup_voucher";
35242
36068
  readonly payload: {
35243
36069
  readonly [x: string]: unknown;
35244
36070
  };
@@ -35270,10 +36096,15 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35270
36096
  readonly commandId: string;
35271
36097
  };
35272
36098
  readonly payload: {
35273
- readonly errorMessage?: string | null | undefined;
36099
+ readonly externalMemberId?: string | null | undefined;
36100
+ readonly memberCode?: string | null | undefined;
35274
36101
  readonly externalRewardId?: string | null | undefined;
35275
36102
  readonly externalGuid?: string | null | undefined;
35276
36103
  readonly rawRecord?: unknown;
36104
+ readonly vouchers?: readonly {
36105
+ readonly [x: string]: unknown;
36106
+ }[] | undefined;
36107
+ readonly errorMessage?: string | null | undefined;
35277
36108
  };
35278
36109
  readonly withResponse?: WithResponse | undefined;
35279
36110
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -35285,12 +36116,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35285
36116
  readonly organizationId: string;
35286
36117
  readonly organizationVoucherProviderId: string;
35287
36118
  readonly serviceClientId: string | null;
35288
- readonly kind: "issue_voucher";
36119
+ readonly kind: "issue_voucher" | "lookup_voucher";
35289
36120
  readonly payload: {
35290
36121
  readonly [x: string]: unknown;
35291
36122
  };
35292
36123
  readonly result: {
35293
- readonly [x: string]: unknown;
36124
+ readonly externalMemberId: string | null;
36125
+ readonly memberCode: string | null;
36126
+ readonly externalRewardId: string | null;
36127
+ readonly externalGuid: string | null;
36128
+ readonly rawRecord?: unknown;
36129
+ } | {
36130
+ readonly vouchers: readonly {
36131
+ readonly [x: string]: unknown;
36132
+ }[];
35294
36133
  } | null;
35295
36134
  readonly errorMessage: string | null;
35296
36135
  readonly requestedAt: string;
@@ -35305,12 +36144,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35305
36144
  readonly organizationId: string;
35306
36145
  readonly organizationVoucherProviderId: string;
35307
36146
  readonly serviceClientId: string | null;
35308
- readonly kind: "issue_voucher";
36147
+ readonly kind: "issue_voucher" | "lookup_voucher";
35309
36148
  readonly payload: {
35310
36149
  readonly [x: string]: unknown;
35311
36150
  };
35312
36151
  readonly result: {
35313
- readonly [x: string]: unknown;
36152
+ readonly externalMemberId: string | null;
36153
+ readonly memberCode: string | null;
36154
+ readonly externalRewardId: string | null;
36155
+ readonly externalGuid: string | null;
36156
+ readonly rawRecord?: unknown;
36157
+ } | {
36158
+ readonly vouchers: readonly {
36159
+ readonly [x: string]: unknown;
36160
+ }[];
35314
36161
  } | null;
35315
36162
  readonly errorMessage: string | null;
35316
36163
  readonly requestedAt: string;
@@ -35467,6 +36314,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
35467
36314
  readonly metadata?: {
35468
36315
  readonly [x: string]: unknown;
35469
36316
  } | undefined;
36317
+ readonly cacheTtlMs?: number | undefined;
35470
36318
  readonly cardData?: string | null | undefined;
35471
36319
  readonly account?: string | number | undefined;
35472
36320
  readonly packetNumber?: string | number | undefined;
@@ -36275,6 +37123,25 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36275
37123
  readonly metadata?: {
36276
37124
  readonly [x: string]: unknown;
36277
37125
  } | undefined;
37126
+ readonly cacheTtlMs?: number | undefined;
37127
+ };
37128
+ readonly operation: "voucher.lookup";
37129
+ readonly waitMs?: number | undefined;
37130
+ };
37131
+ readonly withResponse?: WithResponse | undefined;
37132
+ } | {
37133
+ readonly path: {
37134
+ readonly organizationId: string;
37135
+ };
37136
+ readonly payload: {
37137
+ readonly payload: {
37138
+ readonly memberId?: string | undefined;
37139
+ readonly externalSystemMemberId?: string | null | undefined;
37140
+ readonly memberNumber?: string | null | undefined;
37141
+ readonly metadata?: {
37142
+ readonly [x: string]: unknown;
37143
+ } | undefined;
37144
+ readonly cacheTtlMs?: number | undefined;
36278
37145
  readonly cardData?: string | null | undefined;
36279
37146
  readonly account?: string | number | undefined;
36280
37147
  readonly packetNumber?: string | number | undefined;
@@ -36374,7 +37241,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36374
37241
  };
36375
37242
  } | {
36376
37243
  readonly kind: "voucher";
36377
- readonly operation: "voucher.issue";
37244
+ readonly operation: "voucher.issue" | "voucher.lookup";
36378
37245
  readonly settled: boolean;
36379
37246
  readonly timedOut: boolean;
36380
37247
  readonly command: {
@@ -36386,12 +37253,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36386
37253
  readonly organizationId: string;
36387
37254
  readonly organizationVoucherProviderId: string;
36388
37255
  readonly serviceClientId: string | null;
36389
- readonly kind: "issue_voucher";
37256
+ readonly kind: "issue_voucher" | "lookup_voucher";
36390
37257
  readonly payload: {
36391
37258
  readonly [x: string]: unknown;
36392
37259
  };
36393
37260
  readonly result: {
36394
- readonly [x: string]: unknown;
37261
+ readonly externalMemberId: string | null;
37262
+ readonly memberCode: string | null;
37263
+ readonly externalRewardId: string | null;
37264
+ readonly externalGuid: string | null;
37265
+ readonly rawRecord?: unknown;
37266
+ } | {
37267
+ readonly vouchers: readonly {
37268
+ readonly [x: string]: unknown;
37269
+ }[];
36395
37270
  } | null;
36396
37271
  readonly errorMessage: string | null;
36397
37272
  readonly requestedAt: string;
@@ -36461,7 +37336,7 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36461
37336
  };
36462
37337
  } | {
36463
37338
  readonly kind: "voucher";
36464
- readonly operation: "voucher.issue";
37339
+ readonly operation: "voucher.issue" | "voucher.lookup";
36465
37340
  readonly settled: boolean;
36466
37341
  readonly timedOut: boolean;
36467
37342
  readonly command: {
@@ -36473,12 +37348,20 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
36473
37348
  readonly organizationId: string;
36474
37349
  readonly organizationVoucherProviderId: string;
36475
37350
  readonly serviceClientId: string | null;
36476
- readonly kind: "issue_voucher";
37351
+ readonly kind: "issue_voucher" | "lookup_voucher";
36477
37352
  readonly payload: {
36478
37353
  readonly [x: string]: unknown;
36479
37354
  };
36480
37355
  readonly result: {
36481
- readonly [x: string]: unknown;
37356
+ readonly externalMemberId: string | null;
37357
+ readonly memberCode: string | null;
37358
+ readonly externalRewardId: string | null;
37359
+ readonly externalGuid: string | null;
37360
+ readonly rawRecord?: unknown;
37361
+ } | {
37362
+ readonly vouchers: readonly {
37363
+ readonly [x: string]: unknown;
37364
+ }[];
36482
37365
  } | null;
36483
37366
  readonly errorMessage: string | null;
36484
37367
  readonly requestedAt: string;
@@ -39328,10 +40211,10 @@ declare const makePromiseOnsiteResourceClient: (options: HubApiCredentialOptions
39328
40211
  readonly commandId: string;
39329
40212
  };
39330
40213
  readonly payload: {
39331
- readonly errorMessage?: string | null | undefined;
39332
40214
  readonly rawRecord?: {
39333
40215
  readonly [x: string]: unknown;
39334
40216
  } | undefined;
40217
+ readonly errorMessage?: string | null | undefined;
39335
40218
  readonly record?: {
39336
40219
  readonly email: string | null;
39337
40220
  readonly externalSystemMemberId: string | null;
@@ -41733,12 +42616,52 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
41733
42616
  readonly organizationId: string;
41734
42617
  readonly organizationVoucherProviderId: string;
41735
42618
  readonly serviceClientId: string | null;
41736
- readonly kind: "issue_voucher";
42619
+ readonly kind: "issue_voucher" | "lookup_voucher";
41737
42620
  readonly payload: {
41738
42621
  readonly [x: string]: unknown;
41739
42622
  };
41740
42623
  readonly result: {
42624
+ readonly externalMemberId: string | null;
42625
+ readonly memberCode: string | null;
42626
+ readonly externalRewardId: string | null;
42627
+ readonly externalGuid: string | null;
42628
+ readonly rawRecord?: unknown;
42629
+ } | {
42630
+ readonly vouchers: readonly {
42631
+ readonly [x: string]: unknown;
42632
+ }[];
42633
+ } | null;
42634
+ readonly errorMessage: string | null;
42635
+ readonly requestedAt: string;
42636
+ readonly acceptedAt: string | null;
42637
+ readonly completedAt: string | null;
42638
+ }>>;
42639
+ readonly requestLookup: (input: {
42640
+ readonly organizationId: string;
42641
+ readonly payload: RequestVoucherLookupInput;
42642
+ }) => Promise<SpokeHubResult<{
42643
+ readonly status: "requested" | "accepted" | "completed" | "failed";
42644
+ readonly id: string;
42645
+ readonly createdAt: string;
42646
+ readonly updatedAt: string;
42647
+ readonly deletedAt: string | null;
42648
+ readonly organizationId: string;
42649
+ readonly organizationVoucherProviderId: string;
42650
+ readonly serviceClientId: string | null;
42651
+ readonly kind: "issue_voucher" | "lookup_voucher";
42652
+ readonly payload: {
41741
42653
  readonly [x: string]: unknown;
42654
+ };
42655
+ readonly result: {
42656
+ readonly externalMemberId: string | null;
42657
+ readonly memberCode: string | null;
42658
+ readonly externalRewardId: string | null;
42659
+ readonly externalGuid: string | null;
42660
+ readonly rawRecord?: unknown;
42661
+ } | {
42662
+ readonly vouchers: readonly {
42663
+ readonly [x: string]: unknown;
42664
+ }[];
41742
42665
  } | null;
41743
42666
  readonly errorMessage: string | null;
41744
42667
  readonly requestedAt: string;
@@ -41997,6 +42920,19 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
41997
42920
  readonly metadata?: {
41998
42921
  readonly [x: string]: unknown;
41999
42922
  } | undefined;
42923
+ readonly cacheTtlMs?: number | undefined;
42924
+ };
42925
+ readonly operation: "voucher.lookup";
42926
+ readonly waitMs?: number | undefined;
42927
+ } | {
42928
+ readonly payload: {
42929
+ readonly memberId?: string | undefined;
42930
+ readonly externalSystemMemberId?: string | null | undefined;
42931
+ readonly memberNumber?: string | null | undefined;
42932
+ readonly metadata?: {
42933
+ readonly [x: string]: unknown;
42934
+ } | undefined;
42935
+ readonly cacheTtlMs?: number | undefined;
42000
42936
  readonly cardData?: string | null | undefined;
42001
42937
  readonly account?: string | number | undefined;
42002
42938
  readonly packetNumber?: string | number | undefined;
@@ -42190,7 +43126,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
42190
43126
  readonly payload: RequestVoucherIssueInput;
42191
43127
  }) => Promise<SpokeHubResult<{
42192
43128
  readonly kind: "voucher";
42193
- readonly operation: "voucher.issue";
43129
+ readonly operation: "voucher.issue" | "voucher.lookup";
42194
43130
  readonly settled: boolean;
42195
43131
  readonly timedOut: boolean;
42196
43132
  readonly command: {
@@ -42202,12 +43138,60 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
42202
43138
  readonly organizationId: string;
42203
43139
  readonly organizationVoucherProviderId: string;
42204
43140
  readonly serviceClientId: string | null;
42205
- readonly kind: "issue_voucher";
43141
+ readonly kind: "issue_voucher" | "lookup_voucher";
42206
43142
  readonly payload: {
42207
43143
  readonly [x: string]: unknown;
42208
43144
  };
42209
43145
  readonly result: {
43146
+ readonly externalMemberId: string | null;
43147
+ readonly memberCode: string | null;
43148
+ readonly externalRewardId: string | null;
43149
+ readonly externalGuid: string | null;
43150
+ readonly rawRecord?: unknown;
43151
+ } | {
43152
+ readonly vouchers: readonly {
43153
+ readonly [x: string]: unknown;
43154
+ }[];
43155
+ } | null;
43156
+ readonly errorMessage: string | null;
43157
+ readonly requestedAt: string;
43158
+ readonly acceptedAt: string | null;
43159
+ readonly completedAt: string | null;
43160
+ };
43161
+ }>>;
43162
+ readonly lookup: (input: {
43163
+ readonly organizationId: string;
43164
+ readonly waitMs?: number;
43165
+ } & {
43166
+ readonly payload: RequestVoucherLookupInput;
43167
+ }) => Promise<SpokeHubResult<{
43168
+ readonly kind: "voucher";
43169
+ readonly operation: "voucher.issue" | "voucher.lookup";
43170
+ readonly settled: boolean;
43171
+ readonly timedOut: boolean;
43172
+ readonly command: {
43173
+ readonly status: "requested" | "accepted" | "completed" | "failed";
43174
+ readonly id: string;
43175
+ readonly createdAt: string;
43176
+ readonly updatedAt: string;
43177
+ readonly deletedAt: string | null;
43178
+ readonly organizationId: string;
43179
+ readonly organizationVoucherProviderId: string;
43180
+ readonly serviceClientId: string | null;
43181
+ readonly kind: "issue_voucher" | "lookup_voucher";
43182
+ readonly payload: {
42210
43183
  readonly [x: string]: unknown;
43184
+ };
43185
+ readonly result: {
43186
+ readonly externalMemberId: string | null;
43187
+ readonly memberCode: string | null;
43188
+ readonly externalRewardId: string | null;
43189
+ readonly externalGuid: string | null;
43190
+ readonly rawRecord?: unknown;
43191
+ } | {
43192
+ readonly vouchers: readonly {
43193
+ readonly [x: string]: unknown;
43194
+ }[];
42211
43195
  } | null;
42212
43196
  readonly errorMessage: string | null;
42213
43197
  readonly requestedAt: string;
@@ -42413,7 +43397,7 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
42413
43397
  };
42414
43398
  } | {
42415
43399
  readonly kind: "voucher";
42416
- readonly operation: "voucher.issue";
43400
+ readonly operation: "voucher.issue" | "voucher.lookup";
42417
43401
  readonly settled: boolean;
42418
43402
  readonly timedOut: boolean;
42419
43403
  readonly command: {
@@ -42425,12 +43409,20 @@ declare function makeSpokeClient(hubClient: PromiseHubApiClient): {
42425
43409
  readonly organizationId: string;
42426
43410
  readonly organizationVoucherProviderId: string;
42427
43411
  readonly serviceClientId: string | null;
42428
- readonly kind: "issue_voucher";
43412
+ readonly kind: "issue_voucher" | "lookup_voucher";
42429
43413
  readonly payload: {
42430
43414
  readonly [x: string]: unknown;
42431
43415
  };
42432
43416
  readonly result: {
42433
- readonly [x: string]: unknown;
43417
+ readonly externalMemberId: string | null;
43418
+ readonly memberCode: string | null;
43419
+ readonly externalRewardId: string | null;
43420
+ readonly externalGuid: string | null;
43421
+ readonly rawRecord?: unknown;
43422
+ } | {
43423
+ readonly vouchers: readonly {
43424
+ readonly [x: string]: unknown;
43425
+ }[];
42434
43426
  } | null;
42435
43427
  readonly errorMessage: string | null;
42436
43428
  readonly requestedAt: string;
@@ -42480,4 +43472,4 @@ declare const makePromiseSpokeClient: (options: HubApiCredentialOptions) => Prom
42480
43472
  readonly hubClient: PromiseHubApiClient;
42481
43473
  }>;
42482
43474
 
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 };
43475
+ 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 };