@ticketlayer/backstage 2.2.0 → 3.0.0
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/client.d.ts +184 -30
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +82 -10
- package/dist/generated/types.d.ts +1254 -262
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { components } from './generated/types';
|
|
2
|
+
type ApplyCartCodeRequest = components['schemas']['ApplyCartCodeRequest'];
|
|
2
3
|
type ApplyLayoutChangesRequest = components['schemas']['ApplyLayoutChangesRequest'];
|
|
3
4
|
type AssignRoleRequest = components['schemas']['AssignRoleRequest'];
|
|
5
|
+
type CorrectCustomerRequest = components['schemas']['CorrectCustomerRequest'];
|
|
4
6
|
type CreateAiTopupRequest = components['schemas']['CreateAiTopupRequest'];
|
|
7
|
+
type CreateCodeRequest = components['schemas']['CreateCodeRequest'];
|
|
5
8
|
type CreatePurchaseRequest = components['schemas']['CreatePurchaseRequest'];
|
|
6
9
|
type CreateRoleRequest = components['schemas']['CreateRoleRequest'];
|
|
7
10
|
type CreateSubscriptionRequest = components['schemas']['CreateSubscriptionRequest'];
|
|
@@ -14,7 +17,9 @@ type RedeemInvitationRequest = components['schemas']['RedeemInvitationRequest'];
|
|
|
14
17
|
type RefreshTokenRequest = components['schemas']['RefreshTokenRequest'];
|
|
15
18
|
type SavePaymentMethodRequest = components['schemas']['SavePaymentMethodRequest'];
|
|
16
19
|
type SignUpRequest = components['schemas']['SignUpRequest'];
|
|
20
|
+
type StaffUnlockRequest = components['schemas']['StaffUnlockRequest'];
|
|
17
21
|
type UpdateAutoTopupRequest = components['schemas']['UpdateAutoTopupRequest'];
|
|
22
|
+
type UpdateCodeRequest = components['schemas']['UpdateCodeRequest'];
|
|
18
23
|
type UpdateIdentityProviderRequest = components['schemas']['UpdateIdentityProviderRequest'];
|
|
19
24
|
type UpdateOrganisationRequest = components['schemas']['UpdateOrganisationRequest'];
|
|
20
25
|
type UpdateRoleRequest = components['schemas']['UpdateRoleRequest'];
|
|
@@ -703,23 +708,6 @@ export declare class BackstageClient {
|
|
|
703
708
|
}[]>;
|
|
704
709
|
};
|
|
705
710
|
organisations: {
|
|
706
|
-
create: (request: {
|
|
707
|
-
name: string;
|
|
708
|
-
userEmail: string;
|
|
709
|
-
userFirstName?: string;
|
|
710
|
-
userLastName?: string;
|
|
711
|
-
templateName?: "webflow-single-seller" | "venue" | "platform" | "developer";
|
|
712
|
-
}) => Promise<{
|
|
713
|
-
organisation: {
|
|
714
|
-
id: string;
|
|
715
|
-
name: string;
|
|
716
|
-
slug: string;
|
|
717
|
-
};
|
|
718
|
-
user: {
|
|
719
|
-
id: string;
|
|
720
|
-
email: string;
|
|
721
|
-
};
|
|
722
|
-
}>;
|
|
723
711
|
get: (id: string) => Promise<{
|
|
724
712
|
id: string;
|
|
725
713
|
name: string;
|
|
@@ -794,6 +782,7 @@ export declare class BackstageClient {
|
|
|
794
782
|
customerId: string | null;
|
|
795
783
|
code: string | null;
|
|
796
784
|
codeApplied: boolean;
|
|
785
|
+
codes: components["schemas"]["OfferContextCode"][];
|
|
797
786
|
quantity: number;
|
|
798
787
|
cartId: string | null;
|
|
799
788
|
};
|
|
@@ -917,14 +906,18 @@ export declare class BackstageClient {
|
|
|
917
906
|
price: number;
|
|
918
907
|
currency?: "GBP" | "USD" | "EUR" | "AUD" | "CAD";
|
|
919
908
|
tags?: string[];
|
|
909
|
+
visibility?: "public" | "locked" | "hidden" | "null";
|
|
910
|
+
unlockTags?: any;
|
|
920
911
|
})[];
|
|
921
|
-
channelPrices?: {
|
|
912
|
+
channelPrices?: ({
|
|
922
913
|
categoryId: string;
|
|
923
914
|
typeId: string;
|
|
924
915
|
channelId: string;
|
|
925
916
|
price: number;
|
|
926
917
|
tags?: string[];
|
|
927
|
-
|
|
918
|
+
visibility?: "locked" | "hidden" | "null";
|
|
919
|
+
unlockTags?: any;
|
|
920
|
+
})[];
|
|
928
921
|
}) => Promise<{
|
|
929
922
|
id: string;
|
|
930
923
|
organisationId: string;
|
|
@@ -984,14 +977,18 @@ export declare class BackstageClient {
|
|
|
984
977
|
price: number;
|
|
985
978
|
currency?: "GBP" | "USD" | "EUR" | "AUD" | "CAD";
|
|
986
979
|
tags?: string[];
|
|
980
|
+
visibility?: "public" | "locked" | "hidden" | "null";
|
|
981
|
+
unlockTags?: any;
|
|
987
982
|
})[];
|
|
988
|
-
channelPrices?: {
|
|
983
|
+
channelPrices?: ({
|
|
989
984
|
categoryId: string;
|
|
990
985
|
typeId: string;
|
|
991
986
|
channelId: string;
|
|
992
987
|
price: number;
|
|
993
988
|
tags?: string[];
|
|
994
|
-
|
|
989
|
+
visibility?: "locked" | "hidden" | "null";
|
|
990
|
+
unlockTags?: any;
|
|
991
|
+
})[];
|
|
995
992
|
}) => Promise<{
|
|
996
993
|
id: string;
|
|
997
994
|
organisationId: string;
|
|
@@ -1033,13 +1030,15 @@ export declare class BackstageClient {
|
|
|
1033
1030
|
sellable?: components["schemas"]["ListingRuleInput"];
|
|
1034
1031
|
};
|
|
1035
1032
|
tags?: string[];
|
|
1036
|
-
ticketTypes?: {
|
|
1033
|
+
ticketTypes?: ({
|
|
1037
1034
|
id?: string;
|
|
1038
1035
|
name: string;
|
|
1039
1036
|
description?: string;
|
|
1040
1037
|
displayOrder: number;
|
|
1041
1038
|
tags?: string[];
|
|
1042
|
-
|
|
1039
|
+
visibility?: "public" | "locked" | "hidden";
|
|
1040
|
+
unlockTags?: string[];
|
|
1041
|
+
})[];
|
|
1043
1042
|
layout?: {
|
|
1044
1043
|
categories?: {
|
|
1045
1044
|
id?: string;
|
|
@@ -1130,13 +1129,15 @@ export declare class BackstageClient {
|
|
|
1130
1129
|
sellable?: components["schemas"]["ListingRuleInput"];
|
|
1131
1130
|
};
|
|
1132
1131
|
tags?: string[];
|
|
1133
|
-
ticketTypes?: {
|
|
1132
|
+
ticketTypes?: ({
|
|
1134
1133
|
id?: string;
|
|
1135
1134
|
name: string;
|
|
1136
1135
|
description?: string;
|
|
1137
1136
|
displayOrder: number;
|
|
1138
1137
|
tags?: string[];
|
|
1139
|
-
|
|
1138
|
+
visibility?: "public" | "locked" | "hidden";
|
|
1139
|
+
unlockTags?: string[];
|
|
1140
|
+
})[];
|
|
1140
1141
|
layout?: {
|
|
1141
1142
|
categories?: {
|
|
1142
1143
|
id?: string;
|
|
@@ -2369,14 +2370,16 @@ export declare class BackstageClient {
|
|
|
2369
2370
|
email?: string;
|
|
2370
2371
|
phone?: string;
|
|
2371
2372
|
}) => Promise<{
|
|
2373
|
+
match: components["schemas"]["CustomerMatch"];
|
|
2374
|
+
candidates: components["schemas"]["CustomerMatchCandidate"][];
|
|
2375
|
+
}>;
|
|
2376
|
+
correct: (customerId: string, request: CorrectCustomerRequest) => Promise<{
|
|
2372
2377
|
id: string;
|
|
2373
|
-
accountId: string | null;
|
|
2374
2378
|
firstName: string | null;
|
|
2375
2379
|
lastInitial: string | null;
|
|
2376
2380
|
maskedEmail: string;
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
} | null>;
|
|
2381
|
+
phoneLast4: string | null;
|
|
2382
|
+
}>;
|
|
2380
2383
|
get: (customerId: string) => Promise<{
|
|
2381
2384
|
id: string;
|
|
2382
2385
|
organisationId: string;
|
|
@@ -2469,10 +2472,12 @@ export declare class BackstageClient {
|
|
|
2469
2472
|
expiresAt: string | null;
|
|
2470
2473
|
revokedAt: string | null;
|
|
2471
2474
|
revokedBy: string | null;
|
|
2475
|
+
revokeReason: "revoked" | "expired" | null;
|
|
2472
2476
|
grantedBy: string | null;
|
|
2473
2477
|
metadata: {
|
|
2474
2478
|
[key: string]: unknown;
|
|
2475
2479
|
} | null;
|
|
2480
|
+
extensions: components["schemas"]["CustomerTagExtension"][];
|
|
2476
2481
|
createdAt: string;
|
|
2477
2482
|
updatedAt: string;
|
|
2478
2483
|
}[]>;
|
|
@@ -2490,10 +2495,12 @@ export declare class BackstageClient {
|
|
|
2490
2495
|
expiresAt: string | null;
|
|
2491
2496
|
revokedAt: string | null;
|
|
2492
2497
|
revokedBy: string | null;
|
|
2498
|
+
revokeReason: "revoked" | "expired" | null;
|
|
2493
2499
|
grantedBy: string | null;
|
|
2494
2500
|
metadata: {
|
|
2495
2501
|
[key: string]: unknown;
|
|
2496
2502
|
} | null;
|
|
2503
|
+
extensions: components["schemas"]["CustomerTagExtension"][];
|
|
2497
2504
|
createdAt: string;
|
|
2498
2505
|
updatedAt: string;
|
|
2499
2506
|
}>;
|
|
@@ -2506,10 +2513,12 @@ export declare class BackstageClient {
|
|
|
2506
2513
|
expiresAt: string | null;
|
|
2507
2514
|
revokedAt: string | null;
|
|
2508
2515
|
revokedBy: string | null;
|
|
2516
|
+
revokeReason: "revoked" | "expired" | null;
|
|
2509
2517
|
grantedBy: string | null;
|
|
2510
2518
|
metadata: {
|
|
2511
2519
|
[key: string]: unknown;
|
|
2512
2520
|
} | null;
|
|
2521
|
+
extensions: components["schemas"]["CustomerTagExtension"][];
|
|
2513
2522
|
createdAt: string;
|
|
2514
2523
|
updatedAt: string;
|
|
2515
2524
|
}>;
|
|
@@ -3650,6 +3659,7 @@ export declare class BackstageClient {
|
|
|
3650
3659
|
publicKeyPem: string;
|
|
3651
3660
|
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512";
|
|
3652
3661
|
};
|
|
3662
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3653
3663
|
};
|
|
3654
3664
|
reservationTtlSeconds?: number;
|
|
3655
3665
|
checkoutTtlSeconds?: number;
|
|
@@ -3693,6 +3703,7 @@ export declare class BackstageClient {
|
|
|
3693
3703
|
publicKeyPem: string;
|
|
3694
3704
|
algorithm: string;
|
|
3695
3705
|
};
|
|
3706
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3696
3707
|
};
|
|
3697
3708
|
receivingAccountId: string;
|
|
3698
3709
|
feeProfileId: string | null;
|
|
@@ -3741,6 +3752,7 @@ export declare class BackstageClient {
|
|
|
3741
3752
|
publicKeyPem: string;
|
|
3742
3753
|
algorithm: string;
|
|
3743
3754
|
};
|
|
3755
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3744
3756
|
};
|
|
3745
3757
|
receivingAccountId: string;
|
|
3746
3758
|
feeProfileId: string | null;
|
|
@@ -3789,6 +3801,7 @@ export declare class BackstageClient {
|
|
|
3789
3801
|
publicKeyPem: string;
|
|
3790
3802
|
algorithm: string;
|
|
3791
3803
|
};
|
|
3804
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3792
3805
|
};
|
|
3793
3806
|
receivingAccountId: string;
|
|
3794
3807
|
feeProfileId: string | null;
|
|
@@ -3830,6 +3843,7 @@ export declare class BackstageClient {
|
|
|
3830
3843
|
publicKeyPem: string;
|
|
3831
3844
|
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512";
|
|
3832
3845
|
};
|
|
3846
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3833
3847
|
};
|
|
3834
3848
|
reservationTtlSeconds?: number;
|
|
3835
3849
|
checkoutTtlSeconds?: number;
|
|
@@ -3876,6 +3890,7 @@ export declare class BackstageClient {
|
|
|
3876
3890
|
publicKeyPem: string;
|
|
3877
3891
|
algorithm: string;
|
|
3878
3892
|
};
|
|
3893
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3879
3894
|
};
|
|
3880
3895
|
receivingAccountId: string;
|
|
3881
3896
|
feeProfileId: string | null;
|
|
@@ -3938,6 +3953,22 @@ export declare class BackstageClient {
|
|
|
3938
3953
|
cart: components["schemas"]["StaffCart"];
|
|
3939
3954
|
order: components["schemas"]["StaffSalesOrder"];
|
|
3940
3955
|
}>;
|
|
3956
|
+
addUnlock: (cartId: string, request: StaffUnlockRequest) => Promise<{
|
|
3957
|
+
cart: components["schemas"]["StaffCart"];
|
|
3958
|
+
items: components["schemas"]["StaffCartItem"][];
|
|
3959
|
+
}>;
|
|
3960
|
+
removeUnlock: (cartId: string, unlockId: string) => Promise<{
|
|
3961
|
+
cart: components["schemas"]["StaffCart"];
|
|
3962
|
+
items: components["schemas"]["StaffCartItem"][];
|
|
3963
|
+
}>;
|
|
3964
|
+
applyCode: (cartId: string, request: ApplyCartCodeRequest) => Promise<{
|
|
3965
|
+
cart: components["schemas"]["StaffCart"];
|
|
3966
|
+
items: components["schemas"]["StaffCartItem"][];
|
|
3967
|
+
}>;
|
|
3968
|
+
removeCode: (cartId: string, codeId: string) => Promise<{
|
|
3969
|
+
cart: components["schemas"]["StaffCart"];
|
|
3970
|
+
items: components["schemas"]["StaffCartItem"][];
|
|
3971
|
+
}>;
|
|
3941
3972
|
};
|
|
3942
3973
|
presaleCodes: {
|
|
3943
3974
|
create: (request: {
|
|
@@ -3964,7 +3995,9 @@ export declare class BackstageClient {
|
|
|
3964
3995
|
createdAt: string;
|
|
3965
3996
|
updatedAt: string;
|
|
3966
3997
|
}>;
|
|
3967
|
-
list: (
|
|
3998
|
+
list: (options?: {
|
|
3999
|
+
search?: string;
|
|
4000
|
+
}) => Promise<{
|
|
3968
4001
|
id: string;
|
|
3969
4002
|
organisationId: string;
|
|
3970
4003
|
accountId: string;
|
|
@@ -4005,6 +4038,7 @@ export declare class BackstageClient {
|
|
|
4005
4038
|
serviceFeeFixed?: number;
|
|
4006
4039
|
serviceFeeLabel?: string;
|
|
4007
4040
|
feeEarnerAccountId?: any;
|
|
4041
|
+
rules?: components["schemas"]["FeeRule"][];
|
|
4008
4042
|
}) => Promise<{
|
|
4009
4043
|
id: string;
|
|
4010
4044
|
organisationId: string;
|
|
@@ -4014,6 +4048,7 @@ export declare class BackstageClient {
|
|
|
4014
4048
|
serviceFeePercent: string | null;
|
|
4015
4049
|
serviceFeeFixed: number | null;
|
|
4016
4050
|
serviceFeeLabel: string | null;
|
|
4051
|
+
rules: components["schemas"]["FeeRule"][];
|
|
4017
4052
|
isDeleted: boolean;
|
|
4018
4053
|
deletedAt: string | null;
|
|
4019
4054
|
createdAt: string;
|
|
@@ -4028,6 +4063,7 @@ export declare class BackstageClient {
|
|
|
4028
4063
|
serviceFeePercent: string | null;
|
|
4029
4064
|
serviceFeeFixed: number | null;
|
|
4030
4065
|
serviceFeeLabel: string | null;
|
|
4066
|
+
rules: components["schemas"]["FeeRule"][];
|
|
4031
4067
|
isDeleted: boolean;
|
|
4032
4068
|
deletedAt: string | null;
|
|
4033
4069
|
createdAt: string;
|
|
@@ -4042,6 +4078,7 @@ export declare class BackstageClient {
|
|
|
4042
4078
|
serviceFeePercent: string | null;
|
|
4043
4079
|
serviceFeeFixed: number | null;
|
|
4044
4080
|
serviceFeeLabel: string | null;
|
|
4081
|
+
rules: components["schemas"]["FeeRule"][];
|
|
4045
4082
|
isDeleted: boolean;
|
|
4046
4083
|
deletedAt: string | null;
|
|
4047
4084
|
createdAt: string;
|
|
@@ -4054,6 +4091,7 @@ export declare class BackstageClient {
|
|
|
4054
4091
|
serviceFeeFixed?: number;
|
|
4055
4092
|
serviceFeeLabel?: string;
|
|
4056
4093
|
feeEarnerAccountId?: any;
|
|
4094
|
+
rules?: components["schemas"]["FeeRule"][];
|
|
4057
4095
|
}) => Promise<{
|
|
4058
4096
|
id: string;
|
|
4059
4097
|
organisationId: string;
|
|
@@ -4063,6 +4101,7 @@ export declare class BackstageClient {
|
|
|
4063
4101
|
serviceFeePercent: string | null;
|
|
4064
4102
|
serviceFeeFixed: number | null;
|
|
4065
4103
|
serviceFeeLabel: string | null;
|
|
4104
|
+
rules: components["schemas"]["FeeRule"][];
|
|
4066
4105
|
isDeleted: boolean;
|
|
4067
4106
|
deletedAt: string | null;
|
|
4068
4107
|
createdAt: string;
|
|
@@ -4085,6 +4124,7 @@ export declare class BackstageClient {
|
|
|
4085
4124
|
logoDarkUrl?: string;
|
|
4086
4125
|
faviconUrl?: string;
|
|
4087
4126
|
displayName?: string;
|
|
4127
|
+
fontStylesheetUrl?: string;
|
|
4088
4128
|
};
|
|
4089
4129
|
colors: {
|
|
4090
4130
|
primary?: string;
|
|
@@ -4109,6 +4149,8 @@ export declare class BackstageClient {
|
|
|
4109
4149
|
};
|
|
4110
4150
|
typography: {
|
|
4111
4151
|
fontFamily?: string;
|
|
4152
|
+
headingFontFamily?: string;
|
|
4153
|
+
headingFontWeight?: number;
|
|
4112
4154
|
fontFamilyMono?: string;
|
|
4113
4155
|
baseSize?: string;
|
|
4114
4156
|
scaleRatio?: number;
|
|
@@ -4150,6 +4192,7 @@ export declare class BackstageClient {
|
|
|
4150
4192
|
logoDarkUrl?: string;
|
|
4151
4193
|
faviconUrl?: string;
|
|
4152
4194
|
displayName?: string;
|
|
4195
|
+
fontStylesheetUrl?: string;
|
|
4153
4196
|
};
|
|
4154
4197
|
colors: {
|
|
4155
4198
|
primary?: string;
|
|
@@ -4174,6 +4217,8 @@ export declare class BackstageClient {
|
|
|
4174
4217
|
};
|
|
4175
4218
|
typography: {
|
|
4176
4219
|
fontFamily?: string;
|
|
4220
|
+
headingFontFamily?: string;
|
|
4221
|
+
headingFontWeight?: number;
|
|
4177
4222
|
fontFamilyMono?: string;
|
|
4178
4223
|
baseSize?: string;
|
|
4179
4224
|
scaleRatio?: number;
|
|
@@ -4203,6 +4248,7 @@ export declare class BackstageClient {
|
|
|
4203
4248
|
logoDarkUrl?: string;
|
|
4204
4249
|
faviconUrl?: string;
|
|
4205
4250
|
displayName?: string;
|
|
4251
|
+
fontStylesheetUrl?: string;
|
|
4206
4252
|
};
|
|
4207
4253
|
colors: {
|
|
4208
4254
|
primary?: string;
|
|
@@ -4227,6 +4273,8 @@ export declare class BackstageClient {
|
|
|
4227
4273
|
};
|
|
4228
4274
|
typography: {
|
|
4229
4275
|
fontFamily?: string;
|
|
4276
|
+
headingFontFamily?: string;
|
|
4277
|
+
headingFontWeight?: number;
|
|
4230
4278
|
fontFamilyMono?: string;
|
|
4231
4279
|
baseSize?: string;
|
|
4232
4280
|
scaleRatio?: number;
|
|
@@ -4267,6 +4315,7 @@ export declare class BackstageClient {
|
|
|
4267
4315
|
logoDarkUrl?: string;
|
|
4268
4316
|
faviconUrl?: string;
|
|
4269
4317
|
displayName?: string;
|
|
4318
|
+
fontStylesheetUrl?: string;
|
|
4270
4319
|
};
|
|
4271
4320
|
colors: {
|
|
4272
4321
|
primary?: string;
|
|
@@ -4291,6 +4340,8 @@ export declare class BackstageClient {
|
|
|
4291
4340
|
};
|
|
4292
4341
|
typography: {
|
|
4293
4342
|
fontFamily?: string;
|
|
4343
|
+
headingFontFamily?: string;
|
|
4344
|
+
headingFontWeight?: number;
|
|
4294
4345
|
fontFamilyMono?: string;
|
|
4295
4346
|
baseSize?: string;
|
|
4296
4347
|
scaleRatio?: number;
|
|
@@ -4321,6 +4372,7 @@ export declare class BackstageClient {
|
|
|
4321
4372
|
logoDarkUrl?: string;
|
|
4322
4373
|
faviconUrl?: string;
|
|
4323
4374
|
displayName?: string;
|
|
4375
|
+
fontStylesheetUrl?: string;
|
|
4324
4376
|
};
|
|
4325
4377
|
colors: {
|
|
4326
4378
|
primary?: string;
|
|
@@ -4345,6 +4397,8 @@ export declare class BackstageClient {
|
|
|
4345
4397
|
};
|
|
4346
4398
|
typography: {
|
|
4347
4399
|
fontFamily?: string;
|
|
4400
|
+
headingFontFamily?: string;
|
|
4401
|
+
headingFontWeight?: number;
|
|
4348
4402
|
fontFamilyMono?: string;
|
|
4349
4403
|
baseSize?: string;
|
|
4350
4404
|
scaleRatio?: number;
|
|
@@ -4430,6 +4484,106 @@ export declare class BackstageClient {
|
|
|
4430
4484
|
updatedAt: string;
|
|
4431
4485
|
}>;
|
|
4432
4486
|
};
|
|
4487
|
+
codes: {
|
|
4488
|
+
list: (options?: {
|
|
4489
|
+
search?: string;
|
|
4490
|
+
includeArchived?: "true" | "false";
|
|
4491
|
+
}) => Promise<{
|
|
4492
|
+
id: string;
|
|
4493
|
+
organisationId: string;
|
|
4494
|
+
accountId: string;
|
|
4495
|
+
code: string;
|
|
4496
|
+
label: string;
|
|
4497
|
+
active: boolean;
|
|
4498
|
+
validFrom: string | null;
|
|
4499
|
+
validUntil: string | null;
|
|
4500
|
+
channelIds: string[] | null;
|
|
4501
|
+
maxOrders: number | null;
|
|
4502
|
+
orderCount: number;
|
|
4503
|
+
remainingOrders: number | null;
|
|
4504
|
+
effects: components["schemas"]["CodeEffect"][];
|
|
4505
|
+
archivedAt: string | null;
|
|
4506
|
+
createdBy: string | null;
|
|
4507
|
+
createdAt: string;
|
|
4508
|
+
updatedAt: string;
|
|
4509
|
+
}[]>;
|
|
4510
|
+
create: (request: CreateCodeRequest) => Promise<{
|
|
4511
|
+
id: string;
|
|
4512
|
+
organisationId: string;
|
|
4513
|
+
accountId: string;
|
|
4514
|
+
code: string;
|
|
4515
|
+
label: string;
|
|
4516
|
+
active: boolean;
|
|
4517
|
+
validFrom: string | null;
|
|
4518
|
+
validUntil: string | null;
|
|
4519
|
+
channelIds: string[] | null;
|
|
4520
|
+
maxOrders: number | null;
|
|
4521
|
+
orderCount: number;
|
|
4522
|
+
remainingOrders: number | null;
|
|
4523
|
+
effects: components["schemas"]["CodeEffect"][];
|
|
4524
|
+
archivedAt: string | null;
|
|
4525
|
+
createdBy: string | null;
|
|
4526
|
+
createdAt: string;
|
|
4527
|
+
updatedAt: string;
|
|
4528
|
+
}>;
|
|
4529
|
+
get: (codeId: string) => Promise<{
|
|
4530
|
+
id: string;
|
|
4531
|
+
organisationId: string;
|
|
4532
|
+
accountId: string;
|
|
4533
|
+
code: string;
|
|
4534
|
+
label: string;
|
|
4535
|
+
active: boolean;
|
|
4536
|
+
validFrom: string | null;
|
|
4537
|
+
validUntil: string | null;
|
|
4538
|
+
channelIds: string[] | null;
|
|
4539
|
+
maxOrders: number | null;
|
|
4540
|
+
orderCount: number;
|
|
4541
|
+
remainingOrders: number | null;
|
|
4542
|
+
effects: components["schemas"]["CodeEffect"][];
|
|
4543
|
+
archivedAt: string | null;
|
|
4544
|
+
createdBy: string | null;
|
|
4545
|
+
createdAt: string;
|
|
4546
|
+
updatedAt: string;
|
|
4547
|
+
}>;
|
|
4548
|
+
update: (codeId: string, request: UpdateCodeRequest) => Promise<{
|
|
4549
|
+
id: string;
|
|
4550
|
+
organisationId: string;
|
|
4551
|
+
accountId: string;
|
|
4552
|
+
code: string;
|
|
4553
|
+
label: string;
|
|
4554
|
+
active: boolean;
|
|
4555
|
+
validFrom: string | null;
|
|
4556
|
+
validUntil: string | null;
|
|
4557
|
+
channelIds: string[] | null;
|
|
4558
|
+
maxOrders: number | null;
|
|
4559
|
+
orderCount: number;
|
|
4560
|
+
remainingOrders: number | null;
|
|
4561
|
+
effects: components["schemas"]["CodeEffect"][];
|
|
4562
|
+
archivedAt: string | null;
|
|
4563
|
+
createdBy: string | null;
|
|
4564
|
+
createdAt: string;
|
|
4565
|
+
updatedAt: string;
|
|
4566
|
+
}>;
|
|
4567
|
+
archive: (codeId: string) => Promise<{
|
|
4568
|
+
id: string;
|
|
4569
|
+
organisationId: string;
|
|
4570
|
+
accountId: string;
|
|
4571
|
+
code: string;
|
|
4572
|
+
label: string;
|
|
4573
|
+
active: boolean;
|
|
4574
|
+
validFrom: string | null;
|
|
4575
|
+
validUntil: string | null;
|
|
4576
|
+
channelIds: string[] | null;
|
|
4577
|
+
maxOrders: number | null;
|
|
4578
|
+
orderCount: number;
|
|
4579
|
+
remainingOrders: number | null;
|
|
4580
|
+
effects: components["schemas"]["CodeEffect"][];
|
|
4581
|
+
archivedAt: string | null;
|
|
4582
|
+
createdBy: string | null;
|
|
4583
|
+
createdAt: string;
|
|
4584
|
+
updatedAt: string;
|
|
4585
|
+
}>;
|
|
4586
|
+
};
|
|
4433
4587
|
passes: (passeId: string) => {
|
|
4434
4588
|
entitlements: {
|
|
4435
4589
|
redeem: (barcode: string, request: {
|