@ticketlayer/backstage 2.1.0 → 2.3.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 +227 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +94 -0
- package/dist/generated/types.d.ts +2074 -327
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/index.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
|
@@ -5,6 +5,7 @@ type CreateAiTopupRequest = components['schemas']['CreateAiTopupRequest'];
|
|
|
5
5
|
type CreatePurchaseRequest = components['schemas']['CreatePurchaseRequest'];
|
|
6
6
|
type CreateRoleRequest = components['schemas']['CreateRoleRequest'];
|
|
7
7
|
type CreateSubscriptionRequest = components['schemas']['CreateSubscriptionRequest'];
|
|
8
|
+
type CreateTagDefinitionRequest = components['schemas']['CreateTagDefinitionRequest'];
|
|
8
9
|
type CreateUserInvitationRequest = components['schemas']['CreateUserInvitationRequest'];
|
|
9
10
|
type CreateWebhookEndpoint = components['schemas']['CreateWebhookEndpoint'];
|
|
10
11
|
type GrantSalesChannelAccessRequest = components['schemas']['GrantSalesChannelAccessRequest'];
|
|
@@ -17,6 +18,7 @@ type UpdateAutoTopupRequest = components['schemas']['UpdateAutoTopupRequest'];
|
|
|
17
18
|
type UpdateIdentityProviderRequest = components['schemas']['UpdateIdentityProviderRequest'];
|
|
18
19
|
type UpdateOrganisationRequest = components['schemas']['UpdateOrganisationRequest'];
|
|
19
20
|
type UpdateRoleRequest = components['schemas']['UpdateRoleRequest'];
|
|
21
|
+
type UpdateTagDefinitionRequest = components['schemas']['UpdateTagDefinitionRequest'];
|
|
20
22
|
type UpdateUserAccountRolesRequest = components['schemas']['UpdateUserAccountRolesRequest'];
|
|
21
23
|
type UpdateWebhookEndpoint = components['schemas']['UpdateWebhookEndpoint'];
|
|
22
24
|
type ValidateLayoutChangesRequest = components['schemas']['ValidateLayoutChangesRequest'];
|
|
@@ -765,6 +767,50 @@ export declare class BackstageClient {
|
|
|
765
767
|
}>;
|
|
766
768
|
};
|
|
767
769
|
events: ((eventId: string) => {
|
|
770
|
+
offers: {
|
|
771
|
+
get: (options?: {
|
|
772
|
+
occurrenceId?: string;
|
|
773
|
+
at?: string;
|
|
774
|
+
customerId?: string;
|
|
775
|
+
code?: string;
|
|
776
|
+
presaleCode?: string;
|
|
777
|
+
quantity?: string;
|
|
778
|
+
cartId?: string;
|
|
779
|
+
view?: "buyer" | "staff";
|
|
780
|
+
}) => Promise<{
|
|
781
|
+
event: {
|
|
782
|
+
id: string;
|
|
783
|
+
name: string;
|
|
784
|
+
timezone: string;
|
|
785
|
+
};
|
|
786
|
+
channel: {
|
|
787
|
+
id: string;
|
|
788
|
+
slug: string;
|
|
789
|
+
name: string;
|
|
790
|
+
};
|
|
791
|
+
context: {
|
|
792
|
+
at: string;
|
|
793
|
+
view: "buyer" | "staff";
|
|
794
|
+
customerId: string | null;
|
|
795
|
+
code: string | null;
|
|
796
|
+
codeApplied: boolean;
|
|
797
|
+
quantity: number;
|
|
798
|
+
cartId: string | null;
|
|
799
|
+
};
|
|
800
|
+
summary: {
|
|
801
|
+
state: "on_sale" | "not_yet_on_sale" | "off_sale" | "sold_out" | "locked" | "hidden" | null;
|
|
802
|
+
currency: string | null;
|
|
803
|
+
from: number | null;
|
|
804
|
+
to: number | null;
|
|
805
|
+
};
|
|
806
|
+
limits: {
|
|
807
|
+
minPerOrder: number;
|
|
808
|
+
maxPerOrder: number;
|
|
809
|
+
maxOrderValue: number;
|
|
810
|
+
};
|
|
811
|
+
occurrences: components["schemas"]["OccurrenceOffers"][];
|
|
812
|
+
}>;
|
|
813
|
+
};
|
|
768
814
|
occurrences: {
|
|
769
815
|
create: (request: {
|
|
770
816
|
startDate: string;
|
|
@@ -864,12 +910,21 @@ export declare class BackstageClient {
|
|
|
864
910
|
description?: string;
|
|
865
911
|
status?: "draft" | "active" | "archived";
|
|
866
912
|
parentPriceSchemeId?: string;
|
|
913
|
+
currency?: "GBP" | "USD" | "EUR" | "AUD" | "CAD";
|
|
867
914
|
ticketPrices?: ({
|
|
868
915
|
categoryId: string;
|
|
869
916
|
typeId: string;
|
|
870
917
|
price: number;
|
|
871
918
|
currency?: "GBP" | "USD" | "EUR" | "AUD" | "CAD";
|
|
919
|
+
tags?: string[];
|
|
872
920
|
})[];
|
|
921
|
+
channelPrices?: {
|
|
922
|
+
categoryId: string;
|
|
923
|
+
typeId: string;
|
|
924
|
+
channelId: string;
|
|
925
|
+
price: number;
|
|
926
|
+
tags?: string[];
|
|
927
|
+
}[];
|
|
873
928
|
}) => Promise<{
|
|
874
929
|
id: string;
|
|
875
930
|
organisationId: string;
|
|
@@ -879,7 +934,9 @@ export declare class BackstageClient {
|
|
|
879
934
|
description?: string;
|
|
880
935
|
status: "draft" | "active" | "archived";
|
|
881
936
|
parentPriceSchemeId?: string;
|
|
937
|
+
currency: "GBP" | "USD" | "EUR" | "AUD" | "CAD" | null;
|
|
882
938
|
ticketPrices: components["schemas"]["TicketPrice"][];
|
|
939
|
+
channelPrices: components["schemas"]["ChannelPrice"][];
|
|
883
940
|
isDeleted: boolean;
|
|
884
941
|
createdAt: string;
|
|
885
942
|
updatedAt: string;
|
|
@@ -893,7 +950,9 @@ export declare class BackstageClient {
|
|
|
893
950
|
description?: string;
|
|
894
951
|
status: "draft" | "active" | "archived";
|
|
895
952
|
parentPriceSchemeId?: string;
|
|
953
|
+
currency: "GBP" | "USD" | "EUR" | "AUD" | "CAD" | null;
|
|
896
954
|
ticketPrices: components["schemas"]["TicketPrice"][];
|
|
955
|
+
channelPrices: components["schemas"]["ChannelPrice"][];
|
|
897
956
|
isDeleted: boolean;
|
|
898
957
|
createdAt: string;
|
|
899
958
|
updatedAt: string;
|
|
@@ -907,7 +966,9 @@ export declare class BackstageClient {
|
|
|
907
966
|
description?: string;
|
|
908
967
|
status: "draft" | "active" | "archived";
|
|
909
968
|
parentPriceSchemeId?: string;
|
|
969
|
+
currency: "GBP" | "USD" | "EUR" | "AUD" | "CAD" | null;
|
|
910
970
|
ticketPrices: components["schemas"]["TicketPrice"][];
|
|
971
|
+
channelPrices: components["schemas"]["ChannelPrice"][];
|
|
911
972
|
isDeleted: boolean;
|
|
912
973
|
createdAt: string;
|
|
913
974
|
updatedAt: string;
|
|
@@ -916,12 +977,21 @@ export declare class BackstageClient {
|
|
|
916
977
|
name?: string;
|
|
917
978
|
description?: any;
|
|
918
979
|
status?: "draft" | "active" | "archived";
|
|
980
|
+
currency?: "GBP" | "USD" | "EUR" | "AUD" | "CAD";
|
|
919
981
|
ticketPrices?: ({
|
|
920
982
|
categoryId: string;
|
|
921
983
|
typeId: string;
|
|
922
984
|
price: number;
|
|
923
985
|
currency?: "GBP" | "USD" | "EUR" | "AUD" | "CAD";
|
|
986
|
+
tags?: string[];
|
|
924
987
|
})[];
|
|
988
|
+
channelPrices?: {
|
|
989
|
+
categoryId: string;
|
|
990
|
+
typeId: string;
|
|
991
|
+
channelId: string;
|
|
992
|
+
price: number;
|
|
993
|
+
tags?: string[];
|
|
994
|
+
}[];
|
|
925
995
|
}) => Promise<{
|
|
926
996
|
id: string;
|
|
927
997
|
organisationId: string;
|
|
@@ -931,7 +1001,9 @@ export declare class BackstageClient {
|
|
|
931
1001
|
description?: string;
|
|
932
1002
|
status: "draft" | "active" | "archived";
|
|
933
1003
|
parentPriceSchemeId?: string;
|
|
1004
|
+
currency: "GBP" | "USD" | "EUR" | "AUD" | "CAD" | null;
|
|
934
1005
|
ticketPrices: components["schemas"]["TicketPrice"][];
|
|
1006
|
+
channelPrices: components["schemas"]["ChannelPrice"][];
|
|
935
1007
|
isDeleted: boolean;
|
|
936
1008
|
createdAt: string;
|
|
937
1009
|
updatedAt: string;
|
|
@@ -956,9 +1028,9 @@ export declare class BackstageClient {
|
|
|
956
1028
|
venueName?: any;
|
|
957
1029
|
timezone?: string;
|
|
958
1030
|
rules?: {
|
|
959
|
-
discoverable?: components["schemas"]["
|
|
960
|
-
visible?: components["schemas"]["
|
|
961
|
-
sellable?: components["schemas"]["
|
|
1031
|
+
discoverable?: components["schemas"]["ListingRuleInput"];
|
|
1032
|
+
visible?: components["schemas"]["ListingRuleInput"];
|
|
1033
|
+
sellable?: components["schemas"]["ListingRuleInput"];
|
|
962
1034
|
};
|
|
963
1035
|
tags?: string[];
|
|
964
1036
|
ticketTypes?: {
|
|
@@ -966,6 +1038,7 @@ export declare class BackstageClient {
|
|
|
966
1038
|
name: string;
|
|
967
1039
|
description?: string;
|
|
968
1040
|
displayOrder: number;
|
|
1041
|
+
tags?: string[];
|
|
969
1042
|
}[];
|
|
970
1043
|
layout?: {
|
|
971
1044
|
categories?: {
|
|
@@ -1052,9 +1125,9 @@ export declare class BackstageClient {
|
|
|
1052
1125
|
venueName?: any;
|
|
1053
1126
|
timezone?: string;
|
|
1054
1127
|
rules?: {
|
|
1055
|
-
discoverable?: components["schemas"]["
|
|
1056
|
-
visible?: components["schemas"]["
|
|
1057
|
-
sellable?: components["schemas"]["
|
|
1128
|
+
discoverable?: components["schemas"]["ListingRuleInput"];
|
|
1129
|
+
visible?: components["schemas"]["ListingRuleInput"];
|
|
1130
|
+
sellable?: components["schemas"]["ListingRuleInput"];
|
|
1058
1131
|
};
|
|
1059
1132
|
tags?: string[];
|
|
1060
1133
|
ticketTypes?: {
|
|
@@ -1062,6 +1135,7 @@ export declare class BackstageClient {
|
|
|
1062
1135
|
name: string;
|
|
1063
1136
|
description?: string;
|
|
1064
1137
|
displayOrder: number;
|
|
1138
|
+
tags?: string[];
|
|
1065
1139
|
}[];
|
|
1066
1140
|
layout?: {
|
|
1067
1141
|
categories?: {
|
|
@@ -2384,6 +2458,67 @@ export declare class BackstageClient {
|
|
|
2384
2458
|
createdAt: string;
|
|
2385
2459
|
updatedAt: string;
|
|
2386
2460
|
}>;
|
|
2461
|
+
listTags: (customerId: string, options?: {
|
|
2462
|
+
includeRevoked?: "true" | "false";
|
|
2463
|
+
}) => Promise<{
|
|
2464
|
+
id: string;
|
|
2465
|
+
customerId: string;
|
|
2466
|
+
tag: string;
|
|
2467
|
+
tagDefinitionId: string | null;
|
|
2468
|
+
source: "manual" | "membership" | "import" | "presale";
|
|
2469
|
+
expiresAt: string | null;
|
|
2470
|
+
revokedAt: string | null;
|
|
2471
|
+
revokedBy: string | null;
|
|
2472
|
+
revokeReason: "revoked" | "expired" | null;
|
|
2473
|
+
grantedBy: string | null;
|
|
2474
|
+
metadata: {
|
|
2475
|
+
[key: string]: unknown;
|
|
2476
|
+
} | null;
|
|
2477
|
+
extensions: components["schemas"]["CustomerTagExtension"][];
|
|
2478
|
+
createdAt: string;
|
|
2479
|
+
updatedAt: string;
|
|
2480
|
+
}[]>;
|
|
2481
|
+
grantTag: (customerId: string, request: {
|
|
2482
|
+
tag: string;
|
|
2483
|
+
source?: "manual" | "membership" | "import";
|
|
2484
|
+
expiresAt?: any;
|
|
2485
|
+
metadata?: Record<string, any>;
|
|
2486
|
+
}) => Promise<{
|
|
2487
|
+
id: string;
|
|
2488
|
+
customerId: string;
|
|
2489
|
+
tag: string;
|
|
2490
|
+
tagDefinitionId: string | null;
|
|
2491
|
+
source: "manual" | "membership" | "import" | "presale";
|
|
2492
|
+
expiresAt: string | null;
|
|
2493
|
+
revokedAt: string | null;
|
|
2494
|
+
revokedBy: string | null;
|
|
2495
|
+
revokeReason: "revoked" | "expired" | null;
|
|
2496
|
+
grantedBy: string | null;
|
|
2497
|
+
metadata: {
|
|
2498
|
+
[key: string]: unknown;
|
|
2499
|
+
} | null;
|
|
2500
|
+
extensions: components["schemas"]["CustomerTagExtension"][];
|
|
2501
|
+
createdAt: string;
|
|
2502
|
+
updatedAt: string;
|
|
2503
|
+
}>;
|
|
2504
|
+
revokeTag: (customerId: string, customerTagId: string) => Promise<{
|
|
2505
|
+
id: string;
|
|
2506
|
+
customerId: string;
|
|
2507
|
+
tag: string;
|
|
2508
|
+
tagDefinitionId: string | null;
|
|
2509
|
+
source: "manual" | "membership" | "import" | "presale";
|
|
2510
|
+
expiresAt: string | null;
|
|
2511
|
+
revokedAt: string | null;
|
|
2512
|
+
revokedBy: string | null;
|
|
2513
|
+
revokeReason: "revoked" | "expired" | null;
|
|
2514
|
+
grantedBy: string | null;
|
|
2515
|
+
metadata: {
|
|
2516
|
+
[key: string]: unknown;
|
|
2517
|
+
} | null;
|
|
2518
|
+
extensions: components["schemas"]["CustomerTagExtension"][];
|
|
2519
|
+
createdAt: string;
|
|
2520
|
+
updatedAt: string;
|
|
2521
|
+
}>;
|
|
2387
2522
|
listBenefits: (customerId: string, options?: {
|
|
2388
2523
|
includeRevoked?: "true" | "false";
|
|
2389
2524
|
}) => Promise<{
|
|
@@ -3956,6 +4091,7 @@ export declare class BackstageClient {
|
|
|
3956
4091
|
logoDarkUrl?: string;
|
|
3957
4092
|
faviconUrl?: string;
|
|
3958
4093
|
displayName?: string;
|
|
4094
|
+
fontStylesheetUrl?: string;
|
|
3959
4095
|
};
|
|
3960
4096
|
colors: {
|
|
3961
4097
|
primary?: string;
|
|
@@ -3980,6 +4116,8 @@ export declare class BackstageClient {
|
|
|
3980
4116
|
};
|
|
3981
4117
|
typography: {
|
|
3982
4118
|
fontFamily?: string;
|
|
4119
|
+
headingFontFamily?: string;
|
|
4120
|
+
headingFontWeight?: number;
|
|
3983
4121
|
fontFamilyMono?: string;
|
|
3984
4122
|
baseSize?: string;
|
|
3985
4123
|
scaleRatio?: number;
|
|
@@ -4021,6 +4159,7 @@ export declare class BackstageClient {
|
|
|
4021
4159
|
logoDarkUrl?: string;
|
|
4022
4160
|
faviconUrl?: string;
|
|
4023
4161
|
displayName?: string;
|
|
4162
|
+
fontStylesheetUrl?: string;
|
|
4024
4163
|
};
|
|
4025
4164
|
colors: {
|
|
4026
4165
|
primary?: string;
|
|
@@ -4045,6 +4184,8 @@ export declare class BackstageClient {
|
|
|
4045
4184
|
};
|
|
4046
4185
|
typography: {
|
|
4047
4186
|
fontFamily?: string;
|
|
4187
|
+
headingFontFamily?: string;
|
|
4188
|
+
headingFontWeight?: number;
|
|
4048
4189
|
fontFamilyMono?: string;
|
|
4049
4190
|
baseSize?: string;
|
|
4050
4191
|
scaleRatio?: number;
|
|
@@ -4074,6 +4215,7 @@ export declare class BackstageClient {
|
|
|
4074
4215
|
logoDarkUrl?: string;
|
|
4075
4216
|
faviconUrl?: string;
|
|
4076
4217
|
displayName?: string;
|
|
4218
|
+
fontStylesheetUrl?: string;
|
|
4077
4219
|
};
|
|
4078
4220
|
colors: {
|
|
4079
4221
|
primary?: string;
|
|
@@ -4098,6 +4240,8 @@ export declare class BackstageClient {
|
|
|
4098
4240
|
};
|
|
4099
4241
|
typography: {
|
|
4100
4242
|
fontFamily?: string;
|
|
4243
|
+
headingFontFamily?: string;
|
|
4244
|
+
headingFontWeight?: number;
|
|
4101
4245
|
fontFamilyMono?: string;
|
|
4102
4246
|
baseSize?: string;
|
|
4103
4247
|
scaleRatio?: number;
|
|
@@ -4138,6 +4282,7 @@ export declare class BackstageClient {
|
|
|
4138
4282
|
logoDarkUrl?: string;
|
|
4139
4283
|
faviconUrl?: string;
|
|
4140
4284
|
displayName?: string;
|
|
4285
|
+
fontStylesheetUrl?: string;
|
|
4141
4286
|
};
|
|
4142
4287
|
colors: {
|
|
4143
4288
|
primary?: string;
|
|
@@ -4162,6 +4307,8 @@ export declare class BackstageClient {
|
|
|
4162
4307
|
};
|
|
4163
4308
|
typography: {
|
|
4164
4309
|
fontFamily?: string;
|
|
4310
|
+
headingFontFamily?: string;
|
|
4311
|
+
headingFontWeight?: number;
|
|
4165
4312
|
fontFamilyMono?: string;
|
|
4166
4313
|
baseSize?: string;
|
|
4167
4314
|
scaleRatio?: number;
|
|
@@ -4192,6 +4339,7 @@ export declare class BackstageClient {
|
|
|
4192
4339
|
logoDarkUrl?: string;
|
|
4193
4340
|
faviconUrl?: string;
|
|
4194
4341
|
displayName?: string;
|
|
4342
|
+
fontStylesheetUrl?: string;
|
|
4195
4343
|
};
|
|
4196
4344
|
colors: {
|
|
4197
4345
|
primary?: string;
|
|
@@ -4216,6 +4364,8 @@ export declare class BackstageClient {
|
|
|
4216
4364
|
};
|
|
4217
4365
|
typography: {
|
|
4218
4366
|
fontFamily?: string;
|
|
4367
|
+
headingFontFamily?: string;
|
|
4368
|
+
headingFontWeight?: number;
|
|
4219
4369
|
fontFamilyMono?: string;
|
|
4220
4370
|
baseSize?: string;
|
|
4221
4371
|
scaleRatio?: number;
|
|
@@ -4230,6 +4380,77 @@ export declare class BackstageClient {
|
|
|
4230
4380
|
design: components["schemas"]["ThemeDesign"];
|
|
4231
4381
|
}>;
|
|
4232
4382
|
};
|
|
4383
|
+
tags: {
|
|
4384
|
+
list: (options?: {
|
|
4385
|
+
kind?: components["schemas"]["TagKind"];
|
|
4386
|
+
appliesTo?: components["schemas"]["TagTarget"];
|
|
4387
|
+
includeArchived?: "true" | "false";
|
|
4388
|
+
}) => Promise<{
|
|
4389
|
+
id: string;
|
|
4390
|
+
slug: string;
|
|
4391
|
+
label: string;
|
|
4392
|
+
description: string | null;
|
|
4393
|
+
kind: components["schemas"]["TagKind"];
|
|
4394
|
+
appliesTo: components["schemas"]["TagTarget"][];
|
|
4395
|
+
grantableBy: components["schemas"]["TagGrantor"][];
|
|
4396
|
+
autoDefined: boolean;
|
|
4397
|
+
archivedAt: string | null;
|
|
4398
|
+
createdAt: string;
|
|
4399
|
+
updatedAt: string;
|
|
4400
|
+
}[]>;
|
|
4401
|
+
create: (request: CreateTagDefinitionRequest) => Promise<{
|
|
4402
|
+
id: string;
|
|
4403
|
+
slug: string;
|
|
4404
|
+
label: string;
|
|
4405
|
+
description: string | null;
|
|
4406
|
+
kind: components["schemas"]["TagKind"];
|
|
4407
|
+
appliesTo: components["schemas"]["TagTarget"][];
|
|
4408
|
+
grantableBy: components["schemas"]["TagGrantor"][];
|
|
4409
|
+
autoDefined: boolean;
|
|
4410
|
+
archivedAt: string | null;
|
|
4411
|
+
createdAt: string;
|
|
4412
|
+
updatedAt: string;
|
|
4413
|
+
}>;
|
|
4414
|
+
get: (id: string) => Promise<{
|
|
4415
|
+
id: string;
|
|
4416
|
+
slug: string;
|
|
4417
|
+
label: string;
|
|
4418
|
+
description: string | null;
|
|
4419
|
+
kind: components["schemas"]["TagKind"];
|
|
4420
|
+
appliesTo: components["schemas"]["TagTarget"][];
|
|
4421
|
+
grantableBy: components["schemas"]["TagGrantor"][];
|
|
4422
|
+
autoDefined: boolean;
|
|
4423
|
+
archivedAt: string | null;
|
|
4424
|
+
createdAt: string;
|
|
4425
|
+
updatedAt: string;
|
|
4426
|
+
}>;
|
|
4427
|
+
update: (id: string, request: UpdateTagDefinitionRequest) => Promise<{
|
|
4428
|
+
id: string;
|
|
4429
|
+
slug: string;
|
|
4430
|
+
label: string;
|
|
4431
|
+
description: string | null;
|
|
4432
|
+
kind: components["schemas"]["TagKind"];
|
|
4433
|
+
appliesTo: components["schemas"]["TagTarget"][];
|
|
4434
|
+
grantableBy: components["schemas"]["TagGrantor"][];
|
|
4435
|
+
autoDefined: boolean;
|
|
4436
|
+
archivedAt: string | null;
|
|
4437
|
+
createdAt: string;
|
|
4438
|
+
updatedAt: string;
|
|
4439
|
+
}>;
|
|
4440
|
+
archive: (id: string) => Promise<{
|
|
4441
|
+
id: string;
|
|
4442
|
+
slug: string;
|
|
4443
|
+
label: string;
|
|
4444
|
+
description: string | null;
|
|
4445
|
+
kind: components["schemas"]["TagKind"];
|
|
4446
|
+
appliesTo: components["schemas"]["TagTarget"][];
|
|
4447
|
+
grantableBy: components["schemas"]["TagGrantor"][];
|
|
4448
|
+
autoDefined: boolean;
|
|
4449
|
+
archivedAt: string | null;
|
|
4450
|
+
createdAt: string;
|
|
4451
|
+
updatedAt: string;
|
|
4452
|
+
}>;
|
|
4453
|
+
};
|
|
4233
4454
|
passes: (passeId: string) => {
|
|
4234
4455
|
entitlements: {
|
|
4235
4456
|
redeem: (barcode: string, request: {
|