@ticketlayer/backstage 2.3.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 +163 -30
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +82 -10
- package/dist/generated/types.d.ts +1161 -266
- 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;
|
|
@@ -3656,6 +3659,7 @@ export declare class BackstageClient {
|
|
|
3656
3659
|
publicKeyPem: string;
|
|
3657
3660
|
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512";
|
|
3658
3661
|
};
|
|
3662
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3659
3663
|
};
|
|
3660
3664
|
reservationTtlSeconds?: number;
|
|
3661
3665
|
checkoutTtlSeconds?: number;
|
|
@@ -3699,6 +3703,7 @@ export declare class BackstageClient {
|
|
|
3699
3703
|
publicKeyPem: string;
|
|
3700
3704
|
algorithm: string;
|
|
3701
3705
|
};
|
|
3706
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3702
3707
|
};
|
|
3703
3708
|
receivingAccountId: string;
|
|
3704
3709
|
feeProfileId: string | null;
|
|
@@ -3747,6 +3752,7 @@ export declare class BackstageClient {
|
|
|
3747
3752
|
publicKeyPem: string;
|
|
3748
3753
|
algorithm: string;
|
|
3749
3754
|
};
|
|
3755
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3750
3756
|
};
|
|
3751
3757
|
receivingAccountId: string;
|
|
3752
3758
|
feeProfileId: string | null;
|
|
@@ -3795,6 +3801,7 @@ export declare class BackstageClient {
|
|
|
3795
3801
|
publicKeyPem: string;
|
|
3796
3802
|
algorithm: string;
|
|
3797
3803
|
};
|
|
3804
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3798
3805
|
};
|
|
3799
3806
|
receivingAccountId: string;
|
|
3800
3807
|
feeProfileId: string | null;
|
|
@@ -3836,6 +3843,7 @@ export declare class BackstageClient {
|
|
|
3836
3843
|
publicKeyPem: string;
|
|
3837
3844
|
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512";
|
|
3838
3845
|
};
|
|
3846
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3839
3847
|
};
|
|
3840
3848
|
reservationTtlSeconds?: number;
|
|
3841
3849
|
checkoutTtlSeconds?: number;
|
|
@@ -3882,6 +3890,7 @@ export declare class BackstageClient {
|
|
|
3882
3890
|
publicKeyPem: string;
|
|
3883
3891
|
algorithm: string;
|
|
3884
3892
|
};
|
|
3893
|
+
priceVisibility?: components["schemas"]["ChannelPriceVisibility"];
|
|
3885
3894
|
};
|
|
3886
3895
|
receivingAccountId: string;
|
|
3887
3896
|
feeProfileId: string | null;
|
|
@@ -3944,6 +3953,22 @@ export declare class BackstageClient {
|
|
|
3944
3953
|
cart: components["schemas"]["StaffCart"];
|
|
3945
3954
|
order: components["schemas"]["StaffSalesOrder"];
|
|
3946
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
|
+
}>;
|
|
3947
3972
|
};
|
|
3948
3973
|
presaleCodes: {
|
|
3949
3974
|
create: (request: {
|
|
@@ -3970,7 +3995,9 @@ export declare class BackstageClient {
|
|
|
3970
3995
|
createdAt: string;
|
|
3971
3996
|
updatedAt: string;
|
|
3972
3997
|
}>;
|
|
3973
|
-
list: (
|
|
3998
|
+
list: (options?: {
|
|
3999
|
+
search?: string;
|
|
4000
|
+
}) => Promise<{
|
|
3974
4001
|
id: string;
|
|
3975
4002
|
organisationId: string;
|
|
3976
4003
|
accountId: string;
|
|
@@ -4011,6 +4038,7 @@ export declare class BackstageClient {
|
|
|
4011
4038
|
serviceFeeFixed?: number;
|
|
4012
4039
|
serviceFeeLabel?: string;
|
|
4013
4040
|
feeEarnerAccountId?: any;
|
|
4041
|
+
rules?: components["schemas"]["FeeRule"][];
|
|
4014
4042
|
}) => Promise<{
|
|
4015
4043
|
id: string;
|
|
4016
4044
|
organisationId: string;
|
|
@@ -4020,6 +4048,7 @@ export declare class BackstageClient {
|
|
|
4020
4048
|
serviceFeePercent: string | null;
|
|
4021
4049
|
serviceFeeFixed: number | null;
|
|
4022
4050
|
serviceFeeLabel: string | null;
|
|
4051
|
+
rules: components["schemas"]["FeeRule"][];
|
|
4023
4052
|
isDeleted: boolean;
|
|
4024
4053
|
deletedAt: string | null;
|
|
4025
4054
|
createdAt: string;
|
|
@@ -4034,6 +4063,7 @@ export declare class BackstageClient {
|
|
|
4034
4063
|
serviceFeePercent: string | null;
|
|
4035
4064
|
serviceFeeFixed: number | null;
|
|
4036
4065
|
serviceFeeLabel: string | null;
|
|
4066
|
+
rules: components["schemas"]["FeeRule"][];
|
|
4037
4067
|
isDeleted: boolean;
|
|
4038
4068
|
deletedAt: string | null;
|
|
4039
4069
|
createdAt: string;
|
|
@@ -4048,6 +4078,7 @@ export declare class BackstageClient {
|
|
|
4048
4078
|
serviceFeePercent: string | null;
|
|
4049
4079
|
serviceFeeFixed: number | null;
|
|
4050
4080
|
serviceFeeLabel: string | null;
|
|
4081
|
+
rules: components["schemas"]["FeeRule"][];
|
|
4051
4082
|
isDeleted: boolean;
|
|
4052
4083
|
deletedAt: string | null;
|
|
4053
4084
|
createdAt: string;
|
|
@@ -4060,6 +4091,7 @@ export declare class BackstageClient {
|
|
|
4060
4091
|
serviceFeeFixed?: number;
|
|
4061
4092
|
serviceFeeLabel?: string;
|
|
4062
4093
|
feeEarnerAccountId?: any;
|
|
4094
|
+
rules?: components["schemas"]["FeeRule"][];
|
|
4063
4095
|
}) => Promise<{
|
|
4064
4096
|
id: string;
|
|
4065
4097
|
organisationId: string;
|
|
@@ -4069,6 +4101,7 @@ export declare class BackstageClient {
|
|
|
4069
4101
|
serviceFeePercent: string | null;
|
|
4070
4102
|
serviceFeeFixed: number | null;
|
|
4071
4103
|
serviceFeeLabel: string | null;
|
|
4104
|
+
rules: components["schemas"]["FeeRule"][];
|
|
4072
4105
|
isDeleted: boolean;
|
|
4073
4106
|
deletedAt: string | null;
|
|
4074
4107
|
createdAt: string;
|
|
@@ -4451,6 +4484,106 @@ export declare class BackstageClient {
|
|
|
4451
4484
|
updatedAt: string;
|
|
4452
4485
|
}>;
|
|
4453
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
|
+
};
|
|
4454
4587
|
passes: (passeId: string) => {
|
|
4455
4588
|
entitlements: {
|
|
4456
4589
|
redeem: (barcode: string, request: {
|