@ticketlayer/backstage 0.2.1 → 1.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/README.md +2 -2
- package/dist/client.d.ts +1155 -765
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +678 -471
- package/dist/generated/types.d.ts +7330 -4718
- 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,4 +1,5 @@
|
|
|
1
1
|
import type { components } from './generated/types';
|
|
2
|
+
type ApplyLayoutChangesRequest = components['schemas']['ApplyLayoutChangesRequest'];
|
|
2
3
|
type AssignRoleRequest = components['schemas']['AssignRoleRequest'];
|
|
3
4
|
type CreateAiTopupRequest = components['schemas']['CreateAiTopupRequest'];
|
|
4
5
|
type CreatePurchaseRequest = components['schemas']['CreatePurchaseRequest'];
|
|
@@ -6,7 +7,6 @@ type CreateRoleRequest = components['schemas']['CreateRoleRequest'];
|
|
|
6
7
|
type CreateSubscriptionRequest = components['schemas']['CreateSubscriptionRequest'];
|
|
7
8
|
type CreateUserInvitationRequest = components['schemas']['CreateUserInvitationRequest'];
|
|
8
9
|
type CreateWebhookEndpoint = components['schemas']['CreateWebhookEndpoint'];
|
|
9
|
-
type FederateRequest = components['schemas']['FederateRequest'];
|
|
10
10
|
type LoginRequest = components['schemas']['LoginRequest'];
|
|
11
11
|
type RedeemInvitationRequest = components['schemas']['RedeemInvitationRequest'];
|
|
12
12
|
type RefreshTokenRequest = components['schemas']['RefreshTokenRequest'];
|
|
@@ -17,6 +17,7 @@ type UpdateOrganisationRequest = components['schemas']['UpdateOrganisationReques
|
|
|
17
17
|
type UpdateRoleRequest = components['schemas']['UpdateRoleRequest'];
|
|
18
18
|
type UpdateUserAccountRolesRequest = components['schemas']['UpdateUserAccountRolesRequest'];
|
|
19
19
|
type UpdateWebhookEndpoint = components['schemas']['UpdateWebhookEndpoint'];
|
|
20
|
+
type ValidateLayoutChangesRequest = components['schemas']['ValidateLayoutChangesRequest'];
|
|
20
21
|
export declare class BackstageAPIError extends Error {
|
|
21
22
|
readonly code: string;
|
|
22
23
|
readonly statusCode: number;
|
|
@@ -75,6 +76,103 @@ export declare class BackstageClient {
|
|
|
75
76
|
private getOrgFromSubdomain;
|
|
76
77
|
private attemptTokenRefresh;
|
|
77
78
|
private request;
|
|
79
|
+
identityProviders: {
|
|
80
|
+
discover: (options?: {
|
|
81
|
+
org?: string;
|
|
82
|
+
}) => Promise<{
|
|
83
|
+
provider_id: string;
|
|
84
|
+
provider_type: string;
|
|
85
|
+
organisation_slug: string | null;
|
|
86
|
+
authorization_endpoint: string | null;
|
|
87
|
+
token_endpoint: string | null;
|
|
88
|
+
token_endpoint_internal: string | null;
|
|
89
|
+
jwks_uri: string | null;
|
|
90
|
+
issuer: string;
|
|
91
|
+
scopes: string[];
|
|
92
|
+
supports_pkce: boolean;
|
|
93
|
+
cache_ttl: number;
|
|
94
|
+
}>;
|
|
95
|
+
list: (options?: {
|
|
96
|
+
organisationId?: string;
|
|
97
|
+
}) => Promise<{
|
|
98
|
+
id: string;
|
|
99
|
+
organisationId: string | null;
|
|
100
|
+
providerType: string;
|
|
101
|
+
isDefault: boolean;
|
|
102
|
+
isEnabled: boolean;
|
|
103
|
+
issuer: string;
|
|
104
|
+
authorizationEndpoint: string | null;
|
|
105
|
+
tokenEndpoint: string | null;
|
|
106
|
+
tokenEndpointInternal: string | null;
|
|
107
|
+
userinfoEndpoint: string | null;
|
|
108
|
+
userinfoEndpointInternal: string | null;
|
|
109
|
+
jwksUri: string;
|
|
110
|
+
jwksUriInternal: string | null;
|
|
111
|
+
clientId: string | null;
|
|
112
|
+
scopes: string[];
|
|
113
|
+
allowedClientIds: string[];
|
|
114
|
+
emailDomain: string | null;
|
|
115
|
+
supportsPkce: boolean;
|
|
116
|
+
cacheTtl: number;
|
|
117
|
+
configuration: {
|
|
118
|
+
[key: string]: unknown;
|
|
119
|
+
} | null;
|
|
120
|
+
createdAt: string;
|
|
121
|
+
updatedAt: string;
|
|
122
|
+
}[]>;
|
|
123
|
+
get: (id: string) => Promise<{
|
|
124
|
+
id: string;
|
|
125
|
+
organisationId: string | null;
|
|
126
|
+
providerType: string;
|
|
127
|
+
isDefault: boolean;
|
|
128
|
+
isEnabled: boolean;
|
|
129
|
+
issuer: string;
|
|
130
|
+
authorizationEndpoint: string | null;
|
|
131
|
+
tokenEndpoint: string | null;
|
|
132
|
+
tokenEndpointInternal: string | null;
|
|
133
|
+
userinfoEndpoint: string | null;
|
|
134
|
+
userinfoEndpointInternal: string | null;
|
|
135
|
+
jwksUri: string;
|
|
136
|
+
jwksUriInternal: string | null;
|
|
137
|
+
clientId: string | null;
|
|
138
|
+
scopes: string[];
|
|
139
|
+
allowedClientIds: string[];
|
|
140
|
+
emailDomain: string | null;
|
|
141
|
+
supportsPkce: boolean;
|
|
142
|
+
cacheTtl: number;
|
|
143
|
+
configuration: {
|
|
144
|
+
[key: string]: unknown;
|
|
145
|
+
} | null;
|
|
146
|
+
createdAt: string;
|
|
147
|
+
updatedAt: string;
|
|
148
|
+
}>;
|
|
149
|
+
update: (id: string, request: UpdateIdentityProviderRequest) => Promise<{
|
|
150
|
+
id: string;
|
|
151
|
+
organisationId: string | null;
|
|
152
|
+
providerType: string;
|
|
153
|
+
isDefault: boolean;
|
|
154
|
+
isEnabled: boolean;
|
|
155
|
+
issuer: string;
|
|
156
|
+
authorizationEndpoint: string | null;
|
|
157
|
+
tokenEndpoint: string | null;
|
|
158
|
+
tokenEndpointInternal: string | null;
|
|
159
|
+
userinfoEndpoint: string | null;
|
|
160
|
+
userinfoEndpointInternal: string | null;
|
|
161
|
+
jwksUri: string;
|
|
162
|
+
jwksUriInternal: string | null;
|
|
163
|
+
clientId: string | null;
|
|
164
|
+
scopes: string[];
|
|
165
|
+
allowedClientIds: string[];
|
|
166
|
+
emailDomain: string | null;
|
|
167
|
+
supportsPkce: boolean;
|
|
168
|
+
cacheTtl: number;
|
|
169
|
+
configuration: {
|
|
170
|
+
[key: string]: unknown;
|
|
171
|
+
} | null;
|
|
172
|
+
createdAt: string;
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
}>;
|
|
175
|
+
};
|
|
78
176
|
meta: {
|
|
79
177
|
versions: () => Promise<{
|
|
80
178
|
current: string;
|
|
@@ -107,16 +205,6 @@ export declare class BackstageClient {
|
|
|
107
205
|
lastName?: string;
|
|
108
206
|
};
|
|
109
207
|
}>;
|
|
110
|
-
federate: (request: FederateRequest) => Promise<{
|
|
111
|
-
accessToken: string;
|
|
112
|
-
refreshToken: string;
|
|
113
|
-
user: {
|
|
114
|
-
id: string;
|
|
115
|
-
email: string;
|
|
116
|
-
firstName?: string;
|
|
117
|
-
lastName?: string;
|
|
118
|
-
};
|
|
119
|
-
}>;
|
|
120
208
|
};
|
|
121
209
|
me: {
|
|
122
210
|
current: () => Promise<{
|
|
@@ -152,37 +240,9 @@ export declare class BackstageClient {
|
|
|
152
240
|
};
|
|
153
241
|
}>;
|
|
154
242
|
};
|
|
155
|
-
organisations: {
|
|
156
|
-
get: (id: string) => Promise<{
|
|
157
|
-
id: string;
|
|
158
|
-
name: string;
|
|
159
|
-
primaryColor?: string;
|
|
160
|
-
secondaryColor?: string;
|
|
161
|
-
logoUrl?: string;
|
|
162
|
-
metadata?: {
|
|
163
|
-
[key: string]: unknown;
|
|
164
|
-
};
|
|
165
|
-
apiVersion: string;
|
|
166
|
-
createdAt: string;
|
|
167
|
-
updatedAt: string;
|
|
168
|
-
}>;
|
|
169
|
-
update: (id: string, request: UpdateOrganisationRequest) => Promise<{
|
|
170
|
-
id: string;
|
|
171
|
-
name: string;
|
|
172
|
-
primaryColor?: string;
|
|
173
|
-
secondaryColor?: string;
|
|
174
|
-
logoUrl?: string;
|
|
175
|
-
metadata?: {
|
|
176
|
-
[key: string]: unknown;
|
|
177
|
-
};
|
|
178
|
-
apiVersion: string;
|
|
179
|
-
createdAt: string;
|
|
180
|
-
updatedAt: string;
|
|
181
|
-
}>;
|
|
182
|
-
};
|
|
183
243
|
accounts: {
|
|
184
|
-
|
|
185
|
-
|
|
244
|
+
create: (request: {
|
|
245
|
+
name: string;
|
|
186
246
|
status?: "active" | "inactive";
|
|
187
247
|
}) => Promise<{
|
|
188
248
|
id: string;
|
|
@@ -192,9 +252,9 @@ export declare class BackstageClient {
|
|
|
192
252
|
isDeleted: boolean;
|
|
193
253
|
createdAt: string;
|
|
194
254
|
updatedAt: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
255
|
+
}>;
|
|
256
|
+
list: (options?: {
|
|
257
|
+
search?: string;
|
|
198
258
|
status?: "active" | "inactive";
|
|
199
259
|
}) => Promise<{
|
|
200
260
|
id: string;
|
|
@@ -204,7 +264,7 @@ export declare class BackstageClient {
|
|
|
204
264
|
isDeleted: boolean;
|
|
205
265
|
createdAt: string;
|
|
206
266
|
updatedAt: string;
|
|
207
|
-
}>;
|
|
267
|
+
}[]>;
|
|
208
268
|
get: (id: string) => Promise<{
|
|
209
269
|
id: string;
|
|
210
270
|
organisationId: string;
|
|
@@ -231,86 +291,92 @@ export declare class BackstageClient {
|
|
|
231
291
|
id: string;
|
|
232
292
|
}>;
|
|
233
293
|
};
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
294
|
+
partners: {
|
|
295
|
+
createAccount: (request: {
|
|
296
|
+
name: string;
|
|
297
|
+
status?: "active" | "inactive";
|
|
298
|
+
channelName?: string;
|
|
299
|
+
channelSlug?: string;
|
|
300
|
+
}) => Promise<{
|
|
301
|
+
account: {
|
|
302
|
+
id: string;
|
|
303
|
+
organisationId: string;
|
|
304
|
+
name: string;
|
|
305
|
+
status: "active" | "inactive";
|
|
306
|
+
isDeleted: boolean;
|
|
307
|
+
createdAt: string;
|
|
308
|
+
updatedAt: string;
|
|
309
|
+
};
|
|
310
|
+
salesChannel: {
|
|
311
|
+
id: string;
|
|
312
|
+
slug: string;
|
|
313
|
+
channelType: string;
|
|
314
|
+
};
|
|
315
|
+
publishableKey: {
|
|
316
|
+
id: string;
|
|
317
|
+
key: string;
|
|
318
|
+
};
|
|
319
|
+
}>;
|
|
320
|
+
};
|
|
321
|
+
apiKeys: {
|
|
322
|
+
create: (request: {
|
|
323
|
+
name: string;
|
|
324
|
+
scopes: string[];
|
|
325
|
+
accountId?: string;
|
|
326
|
+
expiresAt?: any;
|
|
237
327
|
}) => Promise<{
|
|
328
|
+
apiKey: components["schemas"]["OrgApiKey"];
|
|
329
|
+
key: string;
|
|
330
|
+
}>;
|
|
331
|
+
list: () => Promise<{
|
|
238
332
|
id: string;
|
|
239
|
-
organisationId: string
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
issuer: string;
|
|
244
|
-
authorizationEndpoint: string | null;
|
|
245
|
-
tokenEndpoint: string | null;
|
|
246
|
-
tokenEndpointInternal: string | null;
|
|
247
|
-
userinfoEndpoint: string | null;
|
|
248
|
-
userinfoEndpointInternal: string | null;
|
|
249
|
-
jwksUri: string;
|
|
250
|
-
jwksUriInternal: string | null;
|
|
251
|
-
clientId: string | null;
|
|
333
|
+
organisationId: string;
|
|
334
|
+
accountId: string | null;
|
|
335
|
+
name: string;
|
|
336
|
+
keyPrefix: string;
|
|
252
337
|
scopes: string[];
|
|
253
|
-
|
|
254
|
-
emailDomain: string | null;
|
|
255
|
-
supportsPkce: boolean;
|
|
256
|
-
cacheTtl: number;
|
|
257
|
-
configuration: {
|
|
258
|
-
[key: string]: unknown;
|
|
259
|
-
} | null;
|
|
338
|
+
createdBy: string | null;
|
|
260
339
|
createdAt: string;
|
|
261
|
-
|
|
340
|
+
lastUsedAt: string | null;
|
|
341
|
+
expiresAt: string | null;
|
|
342
|
+
revokedAt: string | null;
|
|
262
343
|
}[]>;
|
|
263
|
-
|
|
344
|
+
revoke: (id: string) => Promise<{
|
|
264
345
|
id: string;
|
|
265
|
-
organisationId: string
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
issuer: string;
|
|
270
|
-
authorizationEndpoint: string | null;
|
|
271
|
-
tokenEndpoint: string | null;
|
|
272
|
-
tokenEndpointInternal: string | null;
|
|
273
|
-
userinfoEndpoint: string | null;
|
|
274
|
-
userinfoEndpointInternal: string | null;
|
|
275
|
-
jwksUri: string;
|
|
276
|
-
jwksUriInternal: string | null;
|
|
277
|
-
clientId: string | null;
|
|
346
|
+
organisationId: string;
|
|
347
|
+
accountId: string | null;
|
|
348
|
+
name: string;
|
|
349
|
+
keyPrefix: string;
|
|
278
350
|
scopes: string[];
|
|
279
|
-
|
|
280
|
-
emailDomain: string | null;
|
|
281
|
-
supportsPkce: boolean;
|
|
282
|
-
cacheTtl: number;
|
|
283
|
-
configuration: {
|
|
284
|
-
[key: string]: unknown;
|
|
285
|
-
} | null;
|
|
351
|
+
createdBy: string | null;
|
|
286
352
|
createdAt: string;
|
|
287
|
-
|
|
353
|
+
lastUsedAt: string | null;
|
|
354
|
+
expiresAt: string | null;
|
|
355
|
+
revokedAt: string | null;
|
|
288
356
|
}>;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
createdAt: string;
|
|
313
|
-
updatedAt: string;
|
|
357
|
+
};
|
|
358
|
+
embedSessions: {
|
|
359
|
+
create: (request: {
|
|
360
|
+
accountId: string;
|
|
361
|
+
scopes?: string[];
|
|
362
|
+
ttlSeconds?: number;
|
|
363
|
+
}) => Promise<{
|
|
364
|
+
token: string;
|
|
365
|
+
expiresAt: string;
|
|
366
|
+
accountId: string;
|
|
367
|
+
organisation: {
|
|
368
|
+
id: string;
|
|
369
|
+
slug: string;
|
|
370
|
+
};
|
|
371
|
+
}>;
|
|
372
|
+
current: () => Promise<{
|
|
373
|
+
organisation: {
|
|
374
|
+
id: string;
|
|
375
|
+
slug: string;
|
|
376
|
+
};
|
|
377
|
+
accountId: string;
|
|
378
|
+
scopes: string[];
|
|
379
|
+
expiresAt: string;
|
|
314
380
|
}>;
|
|
315
381
|
};
|
|
316
382
|
userInvitations: {
|
|
@@ -362,8 +428,84 @@ export declare class BackstageClient {
|
|
|
362
428
|
createdAt: string;
|
|
363
429
|
}>;
|
|
364
430
|
};
|
|
365
|
-
|
|
431
|
+
users: {
|
|
432
|
+
create: (request: {
|
|
433
|
+
organisationId: string;
|
|
434
|
+
email: string;
|
|
435
|
+
firstName?: string;
|
|
436
|
+
lastName?: string;
|
|
437
|
+
}) => Promise<{
|
|
438
|
+
user: components["schemas"]["User"];
|
|
439
|
+
invitation: components["schemas"]["UserInvitation"];
|
|
440
|
+
}>;
|
|
366
441
|
list: () => Promise<{
|
|
442
|
+
id: string;
|
|
443
|
+
organisationId: string;
|
|
444
|
+
email: string;
|
|
445
|
+
firstName: string | null;
|
|
446
|
+
lastName: string | null;
|
|
447
|
+
identityProvider: string;
|
|
448
|
+
externalUserId: string | null;
|
|
449
|
+
createdAt: string;
|
|
450
|
+
updatedAt: string;
|
|
451
|
+
}[]>;
|
|
452
|
+
get: (id: string) => Promise<{
|
|
453
|
+
id: string;
|
|
454
|
+
organisationId: string;
|
|
455
|
+
email: string;
|
|
456
|
+
firstName: string | null;
|
|
457
|
+
lastName: string | null;
|
|
458
|
+
identityProvider: string;
|
|
459
|
+
externalUserId: string | null;
|
|
460
|
+
createdAt: string;
|
|
461
|
+
updatedAt: string;
|
|
462
|
+
}>;
|
|
463
|
+
update: (id: string, request: {
|
|
464
|
+
email?: string;
|
|
465
|
+
firstName?: string;
|
|
466
|
+
lastName?: string;
|
|
467
|
+
}) => Promise<{
|
|
468
|
+
id: string;
|
|
469
|
+
organisationId: string;
|
|
470
|
+
email: string;
|
|
471
|
+
firstName: string | null;
|
|
472
|
+
lastName: string | null;
|
|
473
|
+
identityProvider: string;
|
|
474
|
+
externalUserId: string | null;
|
|
475
|
+
createdAt: string;
|
|
476
|
+
updatedAt: string;
|
|
477
|
+
}>;
|
|
478
|
+
delete: (id: string) => Promise<{
|
|
479
|
+
id: string;
|
|
480
|
+
organisationId: string;
|
|
481
|
+
email: string;
|
|
482
|
+
firstName: string | null;
|
|
483
|
+
lastName: string | null;
|
|
484
|
+
identityProvider: string;
|
|
485
|
+
externalUserId: string | null;
|
|
486
|
+
createdAt: string;
|
|
487
|
+
updatedAt: string;
|
|
488
|
+
}>;
|
|
489
|
+
addRole: (usrId: string, request: {
|
|
490
|
+
roleId: string;
|
|
491
|
+
accountId: string;
|
|
492
|
+
}) => Promise<{
|
|
493
|
+
id: string;
|
|
494
|
+
organisationId: string;
|
|
495
|
+
userId: string;
|
|
496
|
+
accountId: string;
|
|
497
|
+
roleId: string;
|
|
498
|
+
}>;
|
|
499
|
+
removeRole: (usrId: string, rolId: string) => Promise<{
|
|
500
|
+
id: string;
|
|
501
|
+
organisationId: string;
|
|
502
|
+
userId: string;
|
|
503
|
+
accountId: string;
|
|
504
|
+
roleId: string;
|
|
505
|
+
}>;
|
|
506
|
+
};
|
|
507
|
+
roles: {
|
|
508
|
+
create: (request: CreateRoleRequest) => Promise<{
|
|
367
509
|
id: string;
|
|
368
510
|
organisationId: string;
|
|
369
511
|
name: string;
|
|
@@ -373,8 +515,8 @@ export declare class BackstageClient {
|
|
|
373
515
|
updatedAt: string;
|
|
374
516
|
permissions: string[];
|
|
375
517
|
isSystemRole: boolean;
|
|
376
|
-
}
|
|
377
|
-
|
|
518
|
+
}>;
|
|
519
|
+
list: () => Promise<{
|
|
378
520
|
id: string;
|
|
379
521
|
organisationId: string;
|
|
380
522
|
name: string;
|
|
@@ -384,7 +526,7 @@ export declare class BackstageClient {
|
|
|
384
526
|
updatedAt: string;
|
|
385
527
|
permissions: string[];
|
|
386
528
|
isSystemRole: boolean;
|
|
387
|
-
}>;
|
|
529
|
+
}[]>;
|
|
388
530
|
get: (id: string) => Promise<{
|
|
389
531
|
id: string;
|
|
390
532
|
organisationId: string;
|
|
@@ -530,107 +672,60 @@ export declare class BackstageClient {
|
|
|
530
672
|
};
|
|
531
673
|
}[]>;
|
|
532
674
|
};
|
|
533
|
-
|
|
534
|
-
|
|
675
|
+
organisations: {
|
|
676
|
+
create: (request: {
|
|
535
677
|
name: string;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
678
|
+
userEmail: string;
|
|
679
|
+
userFirstName?: string;
|
|
680
|
+
userLastName?: string;
|
|
681
|
+
templateName?: "webflow-single-seller" | "venue" | "platform" | "developer";
|
|
539
682
|
}) => Promise<{
|
|
540
|
-
|
|
683
|
+
organisation: {
|
|
541
684
|
id: string;
|
|
542
|
-
organisationId: string;
|
|
543
685
|
name: string;
|
|
544
|
-
status: "active" | "inactive";
|
|
545
|
-
isDeleted: boolean;
|
|
546
|
-
createdAt: string;
|
|
547
|
-
updatedAt: string;
|
|
548
|
-
};
|
|
549
|
-
salesChannel: {
|
|
550
|
-
id: string;
|
|
551
686
|
slug: string;
|
|
552
|
-
channelType: string;
|
|
553
687
|
};
|
|
554
|
-
|
|
688
|
+
user: {
|
|
555
689
|
id: string;
|
|
556
|
-
|
|
690
|
+
email: string;
|
|
557
691
|
};
|
|
558
692
|
}>;
|
|
559
|
-
|
|
560
|
-
apiKeys: {
|
|
561
|
-
create: (request: {
|
|
562
|
-
name: string;
|
|
563
|
-
scopes: string[];
|
|
564
|
-
accountId?: string;
|
|
565
|
-
expiresAt?: any;
|
|
566
|
-
}) => Promise<{
|
|
567
|
-
apiKey: components["schemas"]["OrgApiKey"];
|
|
568
|
-
key: string;
|
|
569
|
-
}>;
|
|
570
|
-
list: () => Promise<{
|
|
693
|
+
get: (id: string) => Promise<{
|
|
571
694
|
id: string;
|
|
572
|
-
organisationId: string;
|
|
573
|
-
accountId: string | null;
|
|
574
695
|
name: string;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
696
|
+
primaryColor?: string;
|
|
697
|
+
secondaryColor?: string;
|
|
698
|
+
logoUrl?: string;
|
|
699
|
+
metadata?: {
|
|
700
|
+
[key: string]: unknown;
|
|
701
|
+
};
|
|
702
|
+
apiVersion: string;
|
|
578
703
|
createdAt: string;
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}[]>;
|
|
583
|
-
revoke: (id: string) => Promise<{
|
|
704
|
+
updatedAt: string;
|
|
705
|
+
}>;
|
|
706
|
+
update: (id: string, request: UpdateOrganisationRequest) => Promise<{
|
|
584
707
|
id: string;
|
|
585
|
-
organisationId: string;
|
|
586
|
-
accountId: string | null;
|
|
587
708
|
name: string;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
709
|
+
primaryColor?: string;
|
|
710
|
+
secondaryColor?: string;
|
|
711
|
+
logoUrl?: string;
|
|
712
|
+
metadata?: {
|
|
713
|
+
[key: string]: unknown;
|
|
714
|
+
};
|
|
715
|
+
apiVersion: string;
|
|
591
716
|
createdAt: string;
|
|
592
|
-
|
|
593
|
-
expiresAt: string | null;
|
|
594
|
-
revokedAt: string | null;
|
|
717
|
+
updatedAt: string;
|
|
595
718
|
}>;
|
|
596
719
|
};
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}) => Promise<{
|
|
603
|
-
token: string;
|
|
604
|
-
expiresAt: string;
|
|
605
|
-
accountId: string;
|
|
606
|
-
organisation: {
|
|
607
|
-
id: string;
|
|
608
|
-
slug: string;
|
|
609
|
-
};
|
|
610
|
-
}>;
|
|
611
|
-
current: () => Promise<{
|
|
612
|
-
organisation: {
|
|
613
|
-
id: string;
|
|
614
|
-
slug: string;
|
|
615
|
-
};
|
|
616
|
-
accountId: string;
|
|
617
|
-
scopes: string[];
|
|
618
|
-
expiresAt: string;
|
|
720
|
+
plan: {
|
|
721
|
+
get: () => Promise<{
|
|
722
|
+
id: string;
|
|
723
|
+
name: string;
|
|
724
|
+
entitlements: components["schemas"]["PlanEntitlements"];
|
|
619
725
|
}>;
|
|
620
726
|
};
|
|
621
727
|
events: ((eventId: string) => {
|
|
622
728
|
occurrences: {
|
|
623
|
-
list: (options?: {
|
|
624
|
-
status?: "draft" | "on_sale" | "sold_out" | "completed" | "cancelled";
|
|
625
|
-
venueId?: string;
|
|
626
|
-
startDateFrom?: string;
|
|
627
|
-
startDateTo?: string;
|
|
628
|
-
page?: string;
|
|
629
|
-
limit?: string;
|
|
630
|
-
}) => Promise<{
|
|
631
|
-
eventOccurrences: components["schemas"]["EventOccurrence"][];
|
|
632
|
-
pagination: components["schemas"]["Pagination"];
|
|
633
|
-
}>;
|
|
634
729
|
create: (request: {
|
|
635
730
|
startDate: string;
|
|
636
731
|
startTime: string;
|
|
@@ -663,6 +758,17 @@ export declare class BackstageClient {
|
|
|
663
758
|
createdAt: string;
|
|
664
759
|
updatedAt: string;
|
|
665
760
|
}>;
|
|
761
|
+
list: (options?: {
|
|
762
|
+
status?: "draft" | "on_sale" | "sold_out" | "completed" | "cancelled";
|
|
763
|
+
venueId?: string;
|
|
764
|
+
startDateFrom?: string;
|
|
765
|
+
startDateTo?: string;
|
|
766
|
+
page?: string;
|
|
767
|
+
limit?: string;
|
|
768
|
+
}) => Promise<{
|
|
769
|
+
eventOccurrences: components["schemas"]["EventOccurrence"][];
|
|
770
|
+
pagination: components["schemas"]["Pagination"];
|
|
771
|
+
}>;
|
|
666
772
|
get: (occurrenceId: string) => Promise<{
|
|
667
773
|
id: string;
|
|
668
774
|
organisationId: string;
|
|
@@ -713,20 +819,6 @@ export declare class BackstageClient {
|
|
|
713
819
|
}>;
|
|
714
820
|
};
|
|
715
821
|
priceschemes: {
|
|
716
|
-
list: () => Promise<{
|
|
717
|
-
id: string;
|
|
718
|
-
organisationId: string;
|
|
719
|
-
accountId: string;
|
|
720
|
-
eventId: string;
|
|
721
|
-
name: string;
|
|
722
|
-
description?: string;
|
|
723
|
-
status: "draft" | "active" | "archived";
|
|
724
|
-
parentPriceSchemeId?: string;
|
|
725
|
-
ticketPrices: components["schemas"]["TicketPrice"][];
|
|
726
|
-
isDeleted: boolean;
|
|
727
|
-
createdAt: string;
|
|
728
|
-
updatedAt: string;
|
|
729
|
-
}[]>;
|
|
730
822
|
create: (request: {
|
|
731
823
|
name: string;
|
|
732
824
|
description?: string;
|
|
@@ -752,6 +844,20 @@ export declare class BackstageClient {
|
|
|
752
844
|
createdAt: string;
|
|
753
845
|
updatedAt: string;
|
|
754
846
|
}>;
|
|
847
|
+
list: () => Promise<{
|
|
848
|
+
id: string;
|
|
849
|
+
organisationId: string;
|
|
850
|
+
accountId: string;
|
|
851
|
+
eventId: string;
|
|
852
|
+
name: string;
|
|
853
|
+
description?: string;
|
|
854
|
+
status: "draft" | "active" | "archived";
|
|
855
|
+
parentPriceSchemeId?: string;
|
|
856
|
+
ticketPrices: components["schemas"]["TicketPrice"][];
|
|
857
|
+
isDeleted: boolean;
|
|
858
|
+
createdAt: string;
|
|
859
|
+
updatedAt: string;
|
|
860
|
+
}[]>;
|
|
755
861
|
get: (priceSchemeId: string) => Promise<{
|
|
756
862
|
id: string;
|
|
757
863
|
organisationId: string;
|
|
@@ -796,18 +902,6 @@ export declare class BackstageClient {
|
|
|
796
902
|
}>;
|
|
797
903
|
};
|
|
798
904
|
}) & {
|
|
799
|
-
list: (options?: {
|
|
800
|
-
search?: string;
|
|
801
|
-
status?: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
|
|
802
|
-
venueId?: string;
|
|
803
|
-
accountId?: string;
|
|
804
|
-
expand?: string;
|
|
805
|
-
page?: string;
|
|
806
|
-
limit?: string;
|
|
807
|
-
}) => Promise<{
|
|
808
|
-
events: components["schemas"]["Event"][];
|
|
809
|
-
pagination: components["schemas"]["Pagination"];
|
|
810
|
-
}>;
|
|
811
905
|
create: (request: {
|
|
812
906
|
accountId: string;
|
|
813
907
|
name: string;
|
|
@@ -869,7 +963,19 @@ export declare class BackstageClient {
|
|
|
869
963
|
updatedAt: string;
|
|
870
964
|
createdBy?: string;
|
|
871
965
|
}>;
|
|
872
|
-
|
|
966
|
+
list: (options?: {
|
|
967
|
+
search?: string;
|
|
968
|
+
status?: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
|
|
969
|
+
venueId?: string;
|
|
970
|
+
accountId?: string;
|
|
971
|
+
expand?: string;
|
|
972
|
+
page?: string;
|
|
973
|
+
limit?: string;
|
|
974
|
+
}) => Promise<{
|
|
975
|
+
events: components["schemas"]["Event"][];
|
|
976
|
+
pagination: components["schemas"]["Pagination"];
|
|
977
|
+
}>;
|
|
978
|
+
get: (id: string, options?: {
|
|
873
979
|
expand?: string;
|
|
874
980
|
}) => Promise<{
|
|
875
981
|
id: string;
|
|
@@ -955,19 +1061,21 @@ export declare class BackstageClient {
|
|
|
955
1061
|
success: boolean;
|
|
956
1062
|
id: string;
|
|
957
1063
|
}>;
|
|
1064
|
+
getLayout: (eventId: string) => Promise<unknown>;
|
|
1065
|
+
validateLayoutChanges: (eventId: string, request: ValidateLayoutChangesRequest) => Promise<{
|
|
1066
|
+
validation?: unknown;
|
|
1067
|
+
workflowId: string;
|
|
1068
|
+
}>;
|
|
1069
|
+
applyLayoutChanges: (eventId: string, request: ApplyLayoutChangesRequest) => Promise<any>;
|
|
1070
|
+
getLayoutChangeResult: (eventId: string, workflowId: string) => Promise<{
|
|
1071
|
+
status: string;
|
|
1072
|
+
workflowId: string;
|
|
1073
|
+
result?: unknown;
|
|
1074
|
+
}>;
|
|
1075
|
+
streamLayoutChangeProgress: (eventId: string, workflowId: string) => Promise<any>;
|
|
958
1076
|
};
|
|
959
1077
|
venues: ((id: string) => {
|
|
960
1078
|
venuelayouts: {
|
|
961
|
-
list: (options?: {
|
|
962
|
-
search?: string;
|
|
963
|
-
status?: "active" | "archived";
|
|
964
|
-
accountId?: string;
|
|
965
|
-
page?: string;
|
|
966
|
-
limit?: string;
|
|
967
|
-
}) => Promise<{
|
|
968
|
-
venueLayouts: components["schemas"]["VenueLayout"][];
|
|
969
|
-
pagination: components["schemas"]["Pagination"];
|
|
970
|
-
}>;
|
|
971
1079
|
create: (request: {
|
|
972
1080
|
name: string;
|
|
973
1081
|
description?: string;
|
|
@@ -1068,6 +1176,16 @@ export declare class BackstageClient {
|
|
|
1068
1176
|
updatedAt: string;
|
|
1069
1177
|
createdBy?: string;
|
|
1070
1178
|
}>;
|
|
1179
|
+
list: (options?: {
|
|
1180
|
+
search?: string;
|
|
1181
|
+
status?: "active" | "archived";
|
|
1182
|
+
accountId?: string;
|
|
1183
|
+
page?: string;
|
|
1184
|
+
limit?: string;
|
|
1185
|
+
}) => Promise<{
|
|
1186
|
+
venueLayouts: components["schemas"]["VenueLayout"][];
|
|
1187
|
+
pagination: components["schemas"]["Pagination"];
|
|
1188
|
+
}>;
|
|
1071
1189
|
get: (layoutId: string) => Promise<{
|
|
1072
1190
|
id: string;
|
|
1073
1191
|
venueId: string;
|
|
@@ -1378,16 +1496,6 @@ export declare class BackstageClient {
|
|
|
1378
1496
|
}>;
|
|
1379
1497
|
};
|
|
1380
1498
|
}) & {
|
|
1381
|
-
list: (options?: {
|
|
1382
|
-
search?: string;
|
|
1383
|
-
status?: "active" | "archived";
|
|
1384
|
-
accountId?: string;
|
|
1385
|
-
page?: string;
|
|
1386
|
-
limit?: string;
|
|
1387
|
-
}) => Promise<{
|
|
1388
|
-
venues: components["schemas"]["Venue"][];
|
|
1389
|
-
pagination: components["schemas"]["Pagination"];
|
|
1390
|
-
}>;
|
|
1391
1499
|
create: (request: {
|
|
1392
1500
|
accountId: string;
|
|
1393
1501
|
name: string;
|
|
@@ -1427,6 +1535,16 @@ export declare class BackstageClient {
|
|
|
1427
1535
|
updatedAt: string;
|
|
1428
1536
|
createdBy?: string;
|
|
1429
1537
|
}>;
|
|
1538
|
+
list: (options?: {
|
|
1539
|
+
search?: string;
|
|
1540
|
+
status?: "active" | "archived";
|
|
1541
|
+
accountId?: string;
|
|
1542
|
+
page?: string;
|
|
1543
|
+
limit?: string;
|
|
1544
|
+
}) => Promise<{
|
|
1545
|
+
venues: components["schemas"]["Venue"][];
|
|
1546
|
+
pagination: components["schemas"]["Pagination"];
|
|
1547
|
+
}>;
|
|
1430
1548
|
get: (id: string) => Promise<{
|
|
1431
1549
|
id: string;
|
|
1432
1550
|
organisationId: string;
|
|
@@ -1500,6 +1618,17 @@ export declare class BackstageClient {
|
|
|
1500
1618
|
isActive: boolean;
|
|
1501
1619
|
displayOrder: number;
|
|
1502
1620
|
}[]>;
|
|
1621
|
+
listAiPackages: () => Promise<{
|
|
1622
|
+
id: string;
|
|
1623
|
+
name: string;
|
|
1624
|
+
credits: number;
|
|
1625
|
+
basePrice: number;
|
|
1626
|
+
baseCurrency: string;
|
|
1627
|
+
discountPercent: number;
|
|
1628
|
+
finalPrice: number;
|
|
1629
|
+
isActive: boolean;
|
|
1630
|
+
displayOrder: number;
|
|
1631
|
+
}[]>;
|
|
1503
1632
|
canSell: (organisationId: string) => Promise<{
|
|
1504
1633
|
canSell: boolean;
|
|
1505
1634
|
reason: string | null;
|
|
@@ -1542,6 +1671,35 @@ export declare class BackstageClient {
|
|
|
1542
1671
|
transaction: components["schemas"]["CreditTransaction"];
|
|
1543
1672
|
newBalance: number;
|
|
1544
1673
|
}>;
|
|
1674
|
+
getAiBalance: () => Promise<{
|
|
1675
|
+
balance: number;
|
|
1676
|
+
lifetimeCredits: number;
|
|
1677
|
+
lifetimeUsed: number;
|
|
1678
|
+
isLow: boolean;
|
|
1679
|
+
isDepleted: boolean;
|
|
1680
|
+
}>;
|
|
1681
|
+
listAiTransactions: (options?: {
|
|
1682
|
+
page?: string;
|
|
1683
|
+
limit?: string;
|
|
1684
|
+
}) => Promise<{
|
|
1685
|
+
id: string;
|
|
1686
|
+
organisationId: string;
|
|
1687
|
+
type: "initial" | "purchase" | "subscription" | "ticket_sale" | "adjustment" | "refund";
|
|
1688
|
+
amount: number;
|
|
1689
|
+
balanceBefore: number;
|
|
1690
|
+
balanceAfter: number;
|
|
1691
|
+
orderId: string | null;
|
|
1692
|
+
invoiceId: string | null;
|
|
1693
|
+
subscriptionId: string | null;
|
|
1694
|
+
description: string | null;
|
|
1695
|
+
createdAt: string;
|
|
1696
|
+
}[]>;
|
|
1697
|
+
createAiTopup: (request: CreateAiTopupRequest) => Promise<{
|
|
1698
|
+
invoice: components["schemas"]["Invoice"];
|
|
1699
|
+
payment: components["schemas"]["Payment"];
|
|
1700
|
+
creditsAdded: number;
|
|
1701
|
+
newBalance: number;
|
|
1702
|
+
}>;
|
|
1545
1703
|
listInvoices: (options?: {
|
|
1546
1704
|
page?: string;
|
|
1547
1705
|
limit?: string;
|
|
@@ -1698,46 +1856,6 @@ export declare class BackstageClient {
|
|
|
1698
1856
|
isDefault: boolean;
|
|
1699
1857
|
createdAt: string;
|
|
1700
1858
|
}>;
|
|
1701
|
-
listAiPackages: () => Promise<{
|
|
1702
|
-
id: string;
|
|
1703
|
-
name: string;
|
|
1704
|
-
credits: number;
|
|
1705
|
-
basePrice: number;
|
|
1706
|
-
baseCurrency: string;
|
|
1707
|
-
discountPercent: number;
|
|
1708
|
-
finalPrice: number;
|
|
1709
|
-
isActive: boolean;
|
|
1710
|
-
displayOrder: number;
|
|
1711
|
-
}[]>;
|
|
1712
|
-
getAiBalance: () => Promise<{
|
|
1713
|
-
balance: number;
|
|
1714
|
-
lifetimeCredits: number;
|
|
1715
|
-
lifetimeUsed: number;
|
|
1716
|
-
isLow: boolean;
|
|
1717
|
-
isDepleted: boolean;
|
|
1718
|
-
}>;
|
|
1719
|
-
listAiTransactions: (options?: {
|
|
1720
|
-
page?: string;
|
|
1721
|
-
limit?: string;
|
|
1722
|
-
}) => Promise<{
|
|
1723
|
-
id: string;
|
|
1724
|
-
organisationId: string;
|
|
1725
|
-
type: "initial" | "purchase" | "subscription" | "ticket_sale" | "adjustment" | "refund";
|
|
1726
|
-
amount: number;
|
|
1727
|
-
balanceBefore: number;
|
|
1728
|
-
balanceAfter: number;
|
|
1729
|
-
orderId: string | null;
|
|
1730
|
-
invoiceId: string | null;
|
|
1731
|
-
subscriptionId: string | null;
|
|
1732
|
-
description: string | null;
|
|
1733
|
-
createdAt: string;
|
|
1734
|
-
}[]>;
|
|
1735
|
-
createAiTopup: (request: CreateAiTopupRequest) => Promise<{
|
|
1736
|
-
invoice: components["schemas"]["Invoice"];
|
|
1737
|
-
payment: components["schemas"]["Payment"];
|
|
1738
|
-
creditsAdded: number;
|
|
1739
|
-
newBalance: number;
|
|
1740
|
-
}>;
|
|
1741
1859
|
};
|
|
1742
1860
|
inventory: {
|
|
1743
1861
|
create: (request: {
|
|
@@ -2200,6 +2318,164 @@ export declare class BackstageClient {
|
|
|
2200
2318
|
createdAt: string;
|
|
2201
2319
|
updatedAt: string;
|
|
2202
2320
|
}>;
|
|
2321
|
+
listBenefits: (customerId: string, options?: {
|
|
2322
|
+
includeRevoked?: "true" | "false";
|
|
2323
|
+
}) => Promise<{
|
|
2324
|
+
id: string;
|
|
2325
|
+
customerId: string;
|
|
2326
|
+
benefit: string;
|
|
2327
|
+
source: "manual" | "membership" | "import";
|
|
2328
|
+
expiresAt: string | null;
|
|
2329
|
+
revokedAt: string | null;
|
|
2330
|
+
metadata: {
|
|
2331
|
+
[key: string]: unknown;
|
|
2332
|
+
} | null;
|
|
2333
|
+
createdAt: string;
|
|
2334
|
+
updatedAt: string;
|
|
2335
|
+
}[]>;
|
|
2336
|
+
grantBenefit: (customerId: string, request: {
|
|
2337
|
+
benefit: string;
|
|
2338
|
+
source?: "manual" | "membership" | "import";
|
|
2339
|
+
expiresAt?: any;
|
|
2340
|
+
metadata?: Record<string, any>;
|
|
2341
|
+
}) => Promise<{
|
|
2342
|
+
id: string;
|
|
2343
|
+
customerId: string;
|
|
2344
|
+
benefit: string;
|
|
2345
|
+
source: "manual" | "membership" | "import";
|
|
2346
|
+
expiresAt: string | null;
|
|
2347
|
+
revokedAt: string | null;
|
|
2348
|
+
metadata: {
|
|
2349
|
+
[key: string]: unknown;
|
|
2350
|
+
} | null;
|
|
2351
|
+
createdAt: string;
|
|
2352
|
+
updatedAt: string;
|
|
2353
|
+
}>;
|
|
2354
|
+
revokeBenefit: (customerId: string, benefitId: string) => Promise<{
|
|
2355
|
+
id: string;
|
|
2356
|
+
customerId: string;
|
|
2357
|
+
benefit: string;
|
|
2358
|
+
source: "manual" | "membership" | "import";
|
|
2359
|
+
expiresAt: string | null;
|
|
2360
|
+
revokedAt: string | null;
|
|
2361
|
+
metadata: {
|
|
2362
|
+
[key: string]: unknown;
|
|
2363
|
+
} | null;
|
|
2364
|
+
createdAt: string;
|
|
2365
|
+
updatedAt: string;
|
|
2366
|
+
}>;
|
|
2367
|
+
};
|
|
2368
|
+
refundPolicies: {
|
|
2369
|
+
listPolicies: () => Promise<{
|
|
2370
|
+
id: string;
|
|
2371
|
+
organisationId: string;
|
|
2372
|
+
accountId: string | null;
|
|
2373
|
+
eventId: string | null;
|
|
2374
|
+
refundsEnabled: boolean;
|
|
2375
|
+
refundWindowHours: number | null;
|
|
2376
|
+
exchangesEnabled: boolean;
|
|
2377
|
+
exchangeWindowHours: number | null;
|
|
2378
|
+
autoApprove: boolean;
|
|
2379
|
+
retainFees: boolean;
|
|
2380
|
+
customerMessage: string | null;
|
|
2381
|
+
createdAt: string;
|
|
2382
|
+
updatedAt: string;
|
|
2383
|
+
}[]>;
|
|
2384
|
+
upsertPolicy: (request: {
|
|
2385
|
+
accountId?: string;
|
|
2386
|
+
eventId?: string;
|
|
2387
|
+
refundsEnabled?: boolean;
|
|
2388
|
+
refundWindowHours?: any;
|
|
2389
|
+
exchangesEnabled?: boolean;
|
|
2390
|
+
exchangeWindowHours?: any;
|
|
2391
|
+
autoApprove?: boolean;
|
|
2392
|
+
retainFees?: boolean;
|
|
2393
|
+
customerMessage?: any;
|
|
2394
|
+
}) => Promise<{
|
|
2395
|
+
id: string;
|
|
2396
|
+
organisationId: string;
|
|
2397
|
+
accountId: string | null;
|
|
2398
|
+
eventId: string | null;
|
|
2399
|
+
refundsEnabled: boolean;
|
|
2400
|
+
refundWindowHours: number | null;
|
|
2401
|
+
exchangesEnabled: boolean;
|
|
2402
|
+
exchangeWindowHours: number | null;
|
|
2403
|
+
autoApprove: boolean;
|
|
2404
|
+
retainFees: boolean;
|
|
2405
|
+
customerMessage: string | null;
|
|
2406
|
+
createdAt: string;
|
|
2407
|
+
updatedAt: string;
|
|
2408
|
+
}>;
|
|
2409
|
+
};
|
|
2410
|
+
refundRequests: {
|
|
2411
|
+
listRequests: (options?: {
|
|
2412
|
+
status?: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2413
|
+
}) => Promise<{
|
|
2414
|
+
id: string;
|
|
2415
|
+
organisationId: string;
|
|
2416
|
+
orderId: string;
|
|
2417
|
+
accountId: string;
|
|
2418
|
+
type: "refund" | "exchange";
|
|
2419
|
+
status: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2420
|
+
reason: string | null;
|
|
2421
|
+
notes: string | null;
|
|
2422
|
+
createdAt: string;
|
|
2423
|
+
updatedAt: string;
|
|
2424
|
+
}[]>;
|
|
2425
|
+
createRequest: (request: {
|
|
2426
|
+
orderId: string;
|
|
2427
|
+
type: "refund" | "exchange";
|
|
2428
|
+
reason?: string;
|
|
2429
|
+
}) => Promise<{
|
|
2430
|
+
id: string;
|
|
2431
|
+
organisationId: string;
|
|
2432
|
+
orderId: string;
|
|
2433
|
+
accountId: string;
|
|
2434
|
+
type: "refund" | "exchange";
|
|
2435
|
+
status: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2436
|
+
reason: string | null;
|
|
2437
|
+
notes: string | null;
|
|
2438
|
+
createdAt: string;
|
|
2439
|
+
updatedAt: string;
|
|
2440
|
+
}>;
|
|
2441
|
+
approveRequest: (requestId: string, request: {
|
|
2442
|
+
notes?: string;
|
|
2443
|
+
}) => Promise<{
|
|
2444
|
+
id: string;
|
|
2445
|
+
organisationId: string;
|
|
2446
|
+
orderId: string;
|
|
2447
|
+
accountId: string;
|
|
2448
|
+
type: "refund" | "exchange";
|
|
2449
|
+
status: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2450
|
+
reason: string | null;
|
|
2451
|
+
notes: string | null;
|
|
2452
|
+
createdAt: string;
|
|
2453
|
+
updatedAt: string;
|
|
2454
|
+
}>;
|
|
2455
|
+
processRequest: (requestId: string) => Promise<{
|
|
2456
|
+
request: components["schemas"]["RefundRequest"];
|
|
2457
|
+
refunds: {
|
|
2458
|
+
id: string;
|
|
2459
|
+
paymentId: string;
|
|
2460
|
+
amount: number;
|
|
2461
|
+
currency: string;
|
|
2462
|
+
status: string;
|
|
2463
|
+
}[];
|
|
2464
|
+
}>;
|
|
2465
|
+
rejectRequest: (requestId: string, request: {
|
|
2466
|
+
notes?: string;
|
|
2467
|
+
}) => Promise<{
|
|
2468
|
+
id: string;
|
|
2469
|
+
organisationId: string;
|
|
2470
|
+
orderId: string;
|
|
2471
|
+
accountId: string;
|
|
2472
|
+
type: "refund" | "exchange";
|
|
2473
|
+
status: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2474
|
+
reason: string | null;
|
|
2475
|
+
notes: string | null;
|
|
2476
|
+
createdAt: string;
|
|
2477
|
+
updatedAt: string;
|
|
2478
|
+
}>;
|
|
2203
2479
|
};
|
|
2204
2480
|
orders: {
|
|
2205
2481
|
create: (request: {
|
|
@@ -2393,6 +2669,19 @@ export declare class BackstageClient {
|
|
|
2393
2669
|
createdAt: string;
|
|
2394
2670
|
updatedAt: string;
|
|
2395
2671
|
}>;
|
|
2672
|
+
getPasses: (orderId: string) => Promise<{
|
|
2673
|
+
passes: components["schemas"]["OrderPass"][];
|
|
2674
|
+
entitlements: components["schemas"]["OrderEntitlement"][];
|
|
2675
|
+
redemptions: components["schemas"]["OrderRedemption"][];
|
|
2676
|
+
}>;
|
|
2677
|
+
getPassPdf: (orderId: string, passId: string) => Promise<any>;
|
|
2678
|
+
resendConfirmation: (orderId: string) => Promise<{
|
|
2679
|
+
sent: boolean;
|
|
2680
|
+
recipient: string | null;
|
|
2681
|
+
messageId?: string;
|
|
2682
|
+
skippedReason?: "already_sent" | "no_recipient" | "not_configured" | "order_not_confirmed";
|
|
2683
|
+
attachments: number;
|
|
2684
|
+
}>;
|
|
2396
2685
|
cancel: (orderId: string, request: {
|
|
2397
2686
|
reason: string;
|
|
2398
2687
|
}) => Promise<{
|
|
@@ -2540,19 +2829,6 @@ export declare class BackstageClient {
|
|
|
2540
2829
|
failedAt: string | null;
|
|
2541
2830
|
failureReason: string | null;
|
|
2542
2831
|
}>;
|
|
2543
|
-
getPassPdf: (orderId: string, passId: string) => Promise<any>;
|
|
2544
|
-
resendConfirmation: (orderId: string) => Promise<{
|
|
2545
|
-
sent: boolean;
|
|
2546
|
-
recipient: string | null;
|
|
2547
|
-
messageId?: string;
|
|
2548
|
-
skippedReason?: "already_sent" | "no_recipient" | "not_configured" | "order_not_confirmed";
|
|
2549
|
-
attachments: number;
|
|
2550
|
-
}>;
|
|
2551
|
-
getPasses: (orderId: string) => Promise<{
|
|
2552
|
-
passes: components["schemas"]["OrderPass"][];
|
|
2553
|
-
entitlements: components["schemas"]["OrderEntitlement"][];
|
|
2554
|
-
redemptions: components["schemas"]["OrderRedemption"][];
|
|
2555
|
-
}>;
|
|
2556
2832
|
printPass: (orderId: string, passId: string, request: {
|
|
2557
2833
|
printerId: string;
|
|
2558
2834
|
type?: "print.ticket" | "print.label" | "print.receipt";
|
|
@@ -2685,6 +2961,61 @@ export declare class BackstageClient {
|
|
|
2685
2961
|
}[]>;
|
|
2686
2962
|
};
|
|
2687
2963
|
paymentProviders: {
|
|
2964
|
+
enableTicketlayerPay: (request: {
|
|
2965
|
+
displayName?: string;
|
|
2966
|
+
contactEmail?: string;
|
|
2967
|
+
country?: string;
|
|
2968
|
+
currency?: string;
|
|
2969
|
+
metadata?: Record<string, any>;
|
|
2970
|
+
}) => Promise<{
|
|
2971
|
+
status: components["schemas"]["TicketlayerPayStatus"];
|
|
2972
|
+
created: boolean;
|
|
2973
|
+
}>;
|
|
2974
|
+
getTicketlayerPay: (options?: {
|
|
2975
|
+
refresh?: "0" | "1" | "true" | "false";
|
|
2976
|
+
}) => Promise<any>;
|
|
2977
|
+
createTicketlayerPayOnboardingSession: () => Promise<any>;
|
|
2978
|
+
createTicketlayerPayOnboardingLink: (request: {
|
|
2979
|
+
returnUrl: string;
|
|
2980
|
+
refreshUrl: string;
|
|
2981
|
+
}) => Promise<{
|
|
2982
|
+
url: string;
|
|
2983
|
+
expiresAt: string;
|
|
2984
|
+
connectedAccountId: string;
|
|
2985
|
+
}>;
|
|
2986
|
+
linkStripeConnect: (request: {
|
|
2987
|
+
secretKey: string;
|
|
2988
|
+
publishableKey: string;
|
|
2989
|
+
defaultMode: "direct" | "connected";
|
|
2990
|
+
name?: string;
|
|
2991
|
+
applicationFee?: any;
|
|
2992
|
+
refundApplicationFee?: boolean;
|
|
2993
|
+
}) => Promise<{
|
|
2994
|
+
provider: components["schemas"]["StripeConnectProvider"];
|
|
2995
|
+
created: boolean;
|
|
2996
|
+
}>;
|
|
2997
|
+
getStripeConnect: () => Promise<any>;
|
|
2998
|
+
listAccounts: (providerId: string) => Promise<any>;
|
|
2999
|
+
getAccount: (providerId: string, accountId: string, options?: {
|
|
3000
|
+
refresh?: "0" | "1" | "true" | "false";
|
|
3001
|
+
}) => Promise<any>;
|
|
3002
|
+
setAccountMode: (providerId: string, accountId: string, request: {
|
|
3003
|
+
mode: "direct" | "connected";
|
|
3004
|
+
connectedAccountId?: string;
|
|
3005
|
+
displayName?: string;
|
|
3006
|
+
contactEmail?: string;
|
|
3007
|
+
country?: string;
|
|
3008
|
+
currency?: string;
|
|
3009
|
+
}) => Promise<any>;
|
|
3010
|
+
createAccountOnboardingSession: (providerId: string, accountId: string) => Promise<any>;
|
|
3011
|
+
createAccountOnboardingLink: (providerId: string, accountId: string, request: {
|
|
3012
|
+
returnUrl: string;
|
|
3013
|
+
refreshUrl: string;
|
|
3014
|
+
}) => Promise<{
|
|
3015
|
+
url: string;
|
|
3016
|
+
expiresAt: string;
|
|
3017
|
+
connectedAccountId: string;
|
|
3018
|
+
}>;
|
|
2688
3019
|
create: (request: {
|
|
2689
3020
|
accountId?: string;
|
|
2690
3021
|
type: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer";
|
|
@@ -2733,7 +3064,7 @@ export declare class BackstageClient {
|
|
|
2733
3064
|
isDefault: boolean;
|
|
2734
3065
|
priority: number;
|
|
2735
3066
|
feeStructure: components["schemas"]["FeeStructure"];
|
|
2736
|
-
applicationFee: components["schemas"]["ApplicationFee"];
|
|
3067
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
2737
3068
|
metadata: {
|
|
2738
3069
|
[key: string]: unknown;
|
|
2739
3070
|
} | null;
|
|
@@ -2776,7 +3107,7 @@ export declare class BackstageClient {
|
|
|
2776
3107
|
isDefault: boolean;
|
|
2777
3108
|
priority: number;
|
|
2778
3109
|
feeStructure: components["schemas"]["FeeStructure"];
|
|
2779
|
-
applicationFee: components["schemas"]["ApplicationFee"];
|
|
3110
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
2780
3111
|
metadata: {
|
|
2781
3112
|
[key: string]: unknown;
|
|
2782
3113
|
} | null;
|
|
@@ -2801,7 +3132,7 @@ export declare class BackstageClient {
|
|
|
2801
3132
|
isDefault: boolean;
|
|
2802
3133
|
priority: number;
|
|
2803
3134
|
feeStructure: components["schemas"]["FeeStructure"];
|
|
2804
|
-
applicationFee: components["schemas"]["ApplicationFee"];
|
|
3135
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
2805
3136
|
metadata: {
|
|
2806
3137
|
[key: string]: unknown;
|
|
2807
3138
|
} | null;
|
|
@@ -2834,7 +3165,7 @@ export declare class BackstageClient {
|
|
|
2834
3165
|
fixed?: number;
|
|
2835
3166
|
currency?: string;
|
|
2836
3167
|
};
|
|
2837
|
-
applicationFee?:
|
|
3168
|
+
applicationFee?: any;
|
|
2838
3169
|
metadata?: Record<string, any>;
|
|
2839
3170
|
}) => Promise<{
|
|
2840
3171
|
id: string;
|
|
@@ -2854,7 +3185,7 @@ export declare class BackstageClient {
|
|
|
2854
3185
|
isDefault: boolean;
|
|
2855
3186
|
priority: number;
|
|
2856
3187
|
feeStructure: components["schemas"]["FeeStructure"];
|
|
2857
|
-
applicationFee: components["schemas"]["ApplicationFee"];
|
|
3188
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
2858
3189
|
metadata: {
|
|
2859
3190
|
[key: string]: unknown;
|
|
2860
3191
|
} | null;
|
|
@@ -2865,60 +3196,37 @@ export declare class BackstageClient {
|
|
|
2865
3196
|
success: boolean;
|
|
2866
3197
|
id: string;
|
|
2867
3198
|
}>;
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
3199
|
+
reportStatus: (providerId: string, request: {
|
|
3200
|
+
status: "active" | "inactive" | "pending_setup";
|
|
3201
|
+
chargesEnabled?: boolean;
|
|
3202
|
+
payoutsEnabled?: boolean;
|
|
3203
|
+
onboardingStatus?: "pending" | "in_progress" | "complete" | "restricted";
|
|
3204
|
+
externalAccountId?: string;
|
|
2873
3205
|
metadata?: Record<string, any>;
|
|
2874
3206
|
}) => Promise<{
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
provider: components["schemas"]["StripeConnectProvider"];
|
|
2899
|
-
created: boolean;
|
|
2900
|
-
}>;
|
|
2901
|
-
getStripeConnect: () => Promise<any>;
|
|
2902
|
-
listAccounts: (providerId: string) => Promise<any>;
|
|
2903
|
-
getAccount: (providerId: string, accountId: string, options?: {
|
|
2904
|
-
refresh?: "0" | "1" | "true" | "false";
|
|
2905
|
-
}) => Promise<any>;
|
|
2906
|
-
setAccountMode: (providerId: string, accountId: string, request: {
|
|
2907
|
-
mode: "direct" | "connected";
|
|
2908
|
-
connectedAccountId?: string;
|
|
2909
|
-
displayName?: string;
|
|
2910
|
-
contactEmail?: string;
|
|
2911
|
-
country?: string;
|
|
2912
|
-
currency?: string;
|
|
2913
|
-
}) => Promise<any>;
|
|
2914
|
-
createAccountOnboardingSession: (providerId: string, accountId: string) => Promise<any>;
|
|
2915
|
-
createAccountOnboardingLink: (providerId: string, accountId: string, request: {
|
|
2916
|
-
returnUrl: string;
|
|
2917
|
-
refreshUrl: string;
|
|
2918
|
-
}) => Promise<{
|
|
2919
|
-
url: string;
|
|
2920
|
-
expiresAt: string;
|
|
2921
|
-
connectedAccountId: string;
|
|
3207
|
+
id: string;
|
|
3208
|
+
organisationId: string;
|
|
3209
|
+
accountId: string | null;
|
|
3210
|
+
type: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer";
|
|
3211
|
+
name: string;
|
|
3212
|
+
description: string | null;
|
|
3213
|
+
status: "active" | "inactive" | "pending_setup";
|
|
3214
|
+
integrationServiceUrl: string | null;
|
|
3215
|
+
integrationServiceVersion: string;
|
|
3216
|
+
configuration: {
|
|
3217
|
+
[key: string]: unknown;
|
|
3218
|
+
};
|
|
3219
|
+
supportedPaymentTypes: ("online_card" | "online_bank_transfer" | "online_wallet" | "in_person_card" | "in_person_cash" | "bank_transfer" | "cheque")[];
|
|
3220
|
+
capabilities: components["schemas"]["PaymentProviderCapabilities"];
|
|
3221
|
+
isDefault: boolean;
|
|
3222
|
+
priority: number;
|
|
3223
|
+
feeStructure: components["schemas"]["FeeStructure"];
|
|
3224
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
3225
|
+
metadata: {
|
|
3226
|
+
[key: string]: unknown;
|
|
3227
|
+
} | null;
|
|
3228
|
+
createdAt: string;
|
|
3229
|
+
updatedAt: string;
|
|
2922
3230
|
}>;
|
|
2923
3231
|
};
|
|
2924
3232
|
salesChannels: ((channelId: string) => {
|
|
@@ -3103,7 +3411,7 @@ export declare class BackstageClient {
|
|
|
3103
3411
|
};
|
|
3104
3412
|
receivingAccountId: string;
|
|
3105
3413
|
feeProfileId: string | null;
|
|
3106
|
-
|
|
3414
|
+
brandId: string | null;
|
|
3107
3415
|
isActive: boolean;
|
|
3108
3416
|
isDeleted: boolean;
|
|
3109
3417
|
deletedAt: string | null;
|
|
@@ -3150,7 +3458,7 @@ export declare class BackstageClient {
|
|
|
3150
3458
|
};
|
|
3151
3459
|
receivingAccountId: string;
|
|
3152
3460
|
feeProfileId: string | null;
|
|
3153
|
-
|
|
3461
|
+
brandId: string | null;
|
|
3154
3462
|
isActive: boolean;
|
|
3155
3463
|
isDeleted: boolean;
|
|
3156
3464
|
deletedAt: string | null;
|
|
@@ -3197,7 +3505,7 @@ export declare class BackstageClient {
|
|
|
3197
3505
|
};
|
|
3198
3506
|
receivingAccountId: string;
|
|
3199
3507
|
feeProfileId: string | null;
|
|
3200
|
-
|
|
3508
|
+
brandId: string | null;
|
|
3201
3509
|
isActive: boolean;
|
|
3202
3510
|
isDeleted: boolean;
|
|
3203
3511
|
deletedAt: string | null;
|
|
@@ -3240,7 +3548,7 @@ export declare class BackstageClient {
|
|
|
3240
3548
|
receivingAccountId?: string;
|
|
3241
3549
|
feeProfileId?: any;
|
|
3242
3550
|
paymentProviderId?: any;
|
|
3243
|
-
|
|
3551
|
+
brandId?: any;
|
|
3244
3552
|
isActive?: boolean;
|
|
3245
3553
|
}) => Promise<{
|
|
3246
3554
|
id: string;
|
|
@@ -3282,7 +3590,7 @@ export declare class BackstageClient {
|
|
|
3282
3590
|
};
|
|
3283
3591
|
receivingAccountId: string;
|
|
3284
3592
|
feeProfileId: string | null;
|
|
3285
|
-
|
|
3593
|
+
brandId: string | null;
|
|
3286
3594
|
isActive: boolean;
|
|
3287
3595
|
isDeleted: boolean;
|
|
3288
3596
|
deletedAt: string | null;
|
|
@@ -3290,6 +3598,61 @@ export declare class BackstageClient {
|
|
|
3290
3598
|
updatedAt: string;
|
|
3291
3599
|
}>;
|
|
3292
3600
|
delete: (channelId: string) => Promise<boolean>;
|
|
3601
|
+
getCatalogue: (channelId: string) => Promise<{
|
|
3602
|
+
channel: components["schemas"]["SalesChannelSummary"];
|
|
3603
|
+
listings: components["schemas"]["SalesListing"][];
|
|
3604
|
+
}>;
|
|
3605
|
+
getCatalogueEvent: (channelId: string, eventId: string) => Promise<{
|
|
3606
|
+
id: string;
|
|
3607
|
+
name: string;
|
|
3608
|
+
subtitle: string | null;
|
|
3609
|
+
description: string | null;
|
|
3610
|
+
shortDescription: string | null;
|
|
3611
|
+
status: string;
|
|
3612
|
+
imageUrl: string | null;
|
|
3613
|
+
heroImageUrl: string | null;
|
|
3614
|
+
presentation: {
|
|
3615
|
+
heroLayout?: {
|
|
3616
|
+
type: "hero" | "cinema";
|
|
3617
|
+
size: "small" | "medium" | "large";
|
|
3618
|
+
};
|
|
3619
|
+
cinemaGradient?: {
|
|
3620
|
+
strength: 20 | 50 | 70;
|
|
3621
|
+
position: "bottom" | "center";
|
|
3622
|
+
};
|
|
3623
|
+
twoColumnSplit?: [number, number];
|
|
3624
|
+
navbar?: {
|
|
3625
|
+
transparent?: boolean;
|
|
3626
|
+
};
|
|
3627
|
+
buttonSize?: "small" | "medium" | "large";
|
|
3628
|
+
} | null;
|
|
3629
|
+
venueId: string | null;
|
|
3630
|
+
venueName: string | null;
|
|
3631
|
+
venueCity: string | null;
|
|
3632
|
+
priceFrom: number | null;
|
|
3633
|
+
currency: string | null;
|
|
3634
|
+
timezone: string;
|
|
3635
|
+
occurrences: {
|
|
3636
|
+
id: string;
|
|
3637
|
+
startsAt: string | null;
|
|
3638
|
+
endsAt: string | null;
|
|
3639
|
+
timezone: string;
|
|
3640
|
+
startDate: string;
|
|
3641
|
+
startTime: string;
|
|
3642
|
+
endDate: string;
|
|
3643
|
+
endTime: string;
|
|
3644
|
+
status: string;
|
|
3645
|
+
ticketTypes: {
|
|
3646
|
+
ticketTypeId: string;
|
|
3647
|
+
ticketTypeName: string;
|
|
3648
|
+
description: string | null;
|
|
3649
|
+
categoryId: string;
|
|
3650
|
+
categoryName: string;
|
|
3651
|
+
unitPrice: number;
|
|
3652
|
+
currency: string;
|
|
3653
|
+
}[];
|
|
3654
|
+
}[];
|
|
3655
|
+
}>;
|
|
3293
3656
|
};
|
|
3294
3657
|
presaleCodes: {
|
|
3295
3658
|
create: (request: {
|
|
@@ -3356,10 +3719,12 @@ export declare class BackstageClient {
|
|
|
3356
3719
|
serviceFeePercent?: number;
|
|
3357
3720
|
serviceFeeFixed?: number;
|
|
3358
3721
|
serviceFeeLabel?: string;
|
|
3722
|
+
feeEarnerAccountId?: any;
|
|
3359
3723
|
}) => Promise<{
|
|
3360
3724
|
id: string;
|
|
3361
3725
|
organisationId: string;
|
|
3362
3726
|
name: string;
|
|
3727
|
+
feeEarnerAccountId: string | null;
|
|
3363
3728
|
serviceFeeEnabled: boolean;
|
|
3364
3729
|
serviceFeePercent: string | null;
|
|
3365
3730
|
serviceFeeFixed: number | null;
|
|
@@ -3373,6 +3738,7 @@ export declare class BackstageClient {
|
|
|
3373
3738
|
id: string;
|
|
3374
3739
|
organisationId: string;
|
|
3375
3740
|
name: string;
|
|
3741
|
+
feeEarnerAccountId: string | null;
|
|
3376
3742
|
serviceFeeEnabled: boolean;
|
|
3377
3743
|
serviceFeePercent: string | null;
|
|
3378
3744
|
serviceFeeFixed: number | null;
|
|
@@ -3386,6 +3752,7 @@ export declare class BackstageClient {
|
|
|
3386
3752
|
id: string;
|
|
3387
3753
|
organisationId: string;
|
|
3388
3754
|
name: string;
|
|
3755
|
+
feeEarnerAccountId: string | null;
|
|
3389
3756
|
serviceFeeEnabled: boolean;
|
|
3390
3757
|
serviceFeePercent: string | null;
|
|
3391
3758
|
serviceFeeFixed: number | null;
|
|
@@ -3401,10 +3768,12 @@ export declare class BackstageClient {
|
|
|
3401
3768
|
serviceFeePercent?: number;
|
|
3402
3769
|
serviceFeeFixed?: number;
|
|
3403
3770
|
serviceFeeLabel?: string;
|
|
3771
|
+
feeEarnerAccountId?: any;
|
|
3404
3772
|
}) => Promise<{
|
|
3405
3773
|
id: string;
|
|
3406
3774
|
organisationId: string;
|
|
3407
3775
|
name: string;
|
|
3776
|
+
feeEarnerAccountId: string | null;
|
|
3408
3777
|
serviceFeeEnabled: boolean;
|
|
3409
3778
|
serviceFeePercent: string | null;
|
|
3410
3779
|
serviceFeeFixed: number | null;
|
|
@@ -3416,284 +3785,15 @@ export declare class BackstageClient {
|
|
|
3416
3785
|
}>;
|
|
3417
3786
|
delete: (profileId: string) => Promise<boolean>;
|
|
3418
3787
|
};
|
|
3419
|
-
|
|
3420
|
-
list: () => Promise<{
|
|
3421
|
-
channel: components["schemas"]["SalesChannelSummary"];
|
|
3422
|
-
listings: components["schemas"]["SalesListing"][];
|
|
3423
|
-
}>;
|
|
3424
|
-
};
|
|
3425
|
-
salesCustomerAuth: {
|
|
3426
|
-
magicLink: (request: {
|
|
3427
|
-
email?: string;
|
|
3428
|
-
phone?: string;
|
|
3429
|
-
}) => Promise<boolean>;
|
|
3430
|
-
};
|
|
3431
|
-
salesCustomerTokens: {
|
|
3432
|
-
create: (request: {
|
|
3433
|
-
proof: any;
|
|
3434
|
-
}) => Promise<{
|
|
3435
|
-
customerToken: string;
|
|
3436
|
-
expiresIn: number;
|
|
3437
|
-
customer: components["schemas"]["SalesCustomer"];
|
|
3438
|
-
}>;
|
|
3439
|
-
refresh: () => Promise<{
|
|
3440
|
-
customerToken: string;
|
|
3441
|
-
expiresIn: number;
|
|
3442
|
-
customer: components["schemas"]["SalesCustomer"];
|
|
3443
|
-
}>;
|
|
3444
|
-
};
|
|
3445
|
-
salesCarts: {
|
|
3446
|
-
create: (request: {
|
|
3447
|
-
metadata?: Record<string, any>;
|
|
3448
|
-
}) => Promise<{
|
|
3449
|
-
id: string;
|
|
3450
|
-
status: string;
|
|
3451
|
-
currency: string | null;
|
|
3452
|
-
expiresAt: string;
|
|
3453
|
-
orderId: string | null;
|
|
3454
|
-
items: components["schemas"]["SalesCartItem"][];
|
|
3455
|
-
itemsSubtotal: number;
|
|
3456
|
-
}>;
|
|
3457
|
-
get: (cartId: string) => Promise<{
|
|
3458
|
-
id: string;
|
|
3459
|
-
status: string;
|
|
3460
|
-
currency: string | null;
|
|
3461
|
-
expiresAt: string;
|
|
3462
|
-
orderId: string | null;
|
|
3463
|
-
items: components["schemas"]["SalesCartItem"][];
|
|
3464
|
-
itemsSubtotal: number;
|
|
3465
|
-
}>;
|
|
3466
|
-
addItem: (cartId: string, request: {
|
|
3467
|
-
eventOccurrenceId: string;
|
|
3468
|
-
categoryId: string;
|
|
3469
|
-
ticketTypeId: string;
|
|
3470
|
-
quantity?: number;
|
|
3471
|
-
eventLayoutAreaId?: string;
|
|
3472
|
-
eventLayoutSeatIds?: string[];
|
|
3473
|
-
}) => Promise<{
|
|
3474
|
-
id: string;
|
|
3475
|
-
status: string;
|
|
3476
|
-
currency: string | null;
|
|
3477
|
-
expiresAt: string;
|
|
3478
|
-
orderId: string | null;
|
|
3479
|
-
items: components["schemas"]["SalesCartItem"][];
|
|
3480
|
-
itemsSubtotal: number;
|
|
3481
|
-
}>;
|
|
3482
|
-
removeItem: (cartId: string, itemId: string) => Promise<{
|
|
3483
|
-
id: string;
|
|
3484
|
-
status: string;
|
|
3485
|
-
currency: string | null;
|
|
3486
|
-
expiresAt: string;
|
|
3487
|
-
orderId: string | null;
|
|
3488
|
-
items: components["schemas"]["SalesCartItem"][];
|
|
3489
|
-
itemsSubtotal: number;
|
|
3490
|
-
}>;
|
|
3491
|
-
checkout: (cartId: string, request: {
|
|
3492
|
-
customerNotes?: string;
|
|
3493
|
-
metadata?: Record<string, any>;
|
|
3494
|
-
customer?: {
|
|
3495
|
-
email: string;
|
|
3496
|
-
firstName?: string;
|
|
3497
|
-
lastName?: string;
|
|
3498
|
-
phone?: string;
|
|
3499
|
-
marketingConsent?: boolean;
|
|
3500
|
-
};
|
|
3501
|
-
}) => Promise<{
|
|
3502
|
-
cart: components["schemas"]["SalesCart"];
|
|
3503
|
-
order: components["schemas"]["SalesOrder"];
|
|
3504
|
-
orderAccessToken: string;
|
|
3505
|
-
}>;
|
|
3506
|
-
};
|
|
3507
|
-
salesMyOrders: {
|
|
3508
|
-
list: () => Promise<{
|
|
3509
|
-
id: string;
|
|
3510
|
-
orderNumber: string;
|
|
3511
|
-
status: string;
|
|
3512
|
-
paymentStatus: string;
|
|
3513
|
-
currency: string;
|
|
3514
|
-
items: components["schemas"]["SalesOrderItem"][];
|
|
3515
|
-
subtotal: number;
|
|
3516
|
-
totalFees: number;
|
|
3517
|
-
totalTax: number;
|
|
3518
|
-
total: number;
|
|
3519
|
-
tickets: components["schemas"]["SalesTicket"][];
|
|
3520
|
-
expiresAt: string | null;
|
|
3521
|
-
createdAt: string;
|
|
3522
|
-
}[]>;
|
|
3523
|
-
};
|
|
3524
|
-
salesOrders: {
|
|
3525
|
-
get: (orderId: string) => Promise<{
|
|
3526
|
-
id: string;
|
|
3527
|
-
orderNumber: string;
|
|
3528
|
-
status: string;
|
|
3529
|
-
paymentStatus: string;
|
|
3530
|
-
currency: string;
|
|
3531
|
-
items: components["schemas"]["SalesOrderItem"][];
|
|
3532
|
-
subtotal: number;
|
|
3533
|
-
totalFees: number;
|
|
3534
|
-
totalTax: number;
|
|
3535
|
-
total: number;
|
|
3536
|
-
tickets: components["schemas"]["SalesTicket"][];
|
|
3537
|
-
expiresAt: string | null;
|
|
3538
|
-
createdAt: string;
|
|
3539
|
-
}>;
|
|
3540
|
-
ticketPdf: (orderId: string, passId: string) => Promise<any>;
|
|
3541
|
-
};
|
|
3542
|
-
salesOrderPayments: {
|
|
3543
|
-
create: (orderId: string, request: {
|
|
3544
|
-
paymentType?: "online_card" | "online_bank_transfer" | "online_wallet";
|
|
3545
|
-
returnUrl?: string;
|
|
3546
|
-
}) => Promise<{
|
|
3547
|
-
id: string;
|
|
3548
|
-
orderId: string;
|
|
3549
|
-
status: string;
|
|
3550
|
-
paymentType: string;
|
|
3551
|
-
amount: number;
|
|
3552
|
-
currency: string;
|
|
3553
|
-
providerClientSecret: string | null;
|
|
3554
|
-
externalPaymentUrl: string | null;
|
|
3555
|
-
publishableKey: string | null;
|
|
3556
|
-
connectedAccountId: string | null;
|
|
3557
|
-
providerType: string | null;
|
|
3558
|
-
}>;
|
|
3559
|
-
};
|
|
3560
|
-
salesRefundRequests: {
|
|
3561
|
-
create: (orderId: string, request: {
|
|
3562
|
-
type: "refund" | "exchange";
|
|
3563
|
-
reason?: string;
|
|
3564
|
-
}) => Promise<{
|
|
3565
|
-
id: string;
|
|
3566
|
-
orderId: string;
|
|
3567
|
-
type: string;
|
|
3568
|
-
status: string;
|
|
3569
|
-
reason: string | null;
|
|
3570
|
-
createdAt: string;
|
|
3571
|
-
}>;
|
|
3572
|
-
};
|
|
3573
|
-
salesCustomers: {
|
|
3574
|
-
create: (request: {
|
|
3575
|
-
email: string;
|
|
3576
|
-
firstName?: string;
|
|
3577
|
-
lastName?: string;
|
|
3578
|
-
phone?: string;
|
|
3579
|
-
marketingConsent?: boolean;
|
|
3580
|
-
}) => Promise<{
|
|
3581
|
-
id: string;
|
|
3582
|
-
email: string;
|
|
3583
|
-
firstName: string | null;
|
|
3584
|
-
lastName: string | null;
|
|
3585
|
-
}>;
|
|
3586
|
-
get: (customerId: string) => Promise<{
|
|
3587
|
-
id: string;
|
|
3588
|
-
email: string;
|
|
3589
|
-
firstName: string | null;
|
|
3590
|
-
lastName: string | null;
|
|
3591
|
-
}>;
|
|
3592
|
-
update: (customerId: string, request: {
|
|
3593
|
-
firstName?: string;
|
|
3594
|
-
lastName?: string;
|
|
3595
|
-
phone?: string;
|
|
3596
|
-
}) => Promise<{
|
|
3597
|
-
id: string;
|
|
3598
|
-
email: string;
|
|
3599
|
-
firstName: string | null;
|
|
3600
|
-
lastName: string | null;
|
|
3601
|
-
}>;
|
|
3602
|
-
};
|
|
3603
|
-
salesPresaleCodes: {
|
|
3604
|
-
redeem: (request: {
|
|
3605
|
-
code: string;
|
|
3606
|
-
}) => Promise<{
|
|
3607
|
-
benefit: string;
|
|
3608
|
-
alreadyHeld: boolean;
|
|
3609
|
-
}>;
|
|
3610
|
-
};
|
|
3611
|
-
sales: {
|
|
3612
|
-
resolveChannel: (options?: {
|
|
3613
|
-
domain: string;
|
|
3614
|
-
}) => Promise<{
|
|
3615
|
-
channel: components["schemas"]["SalesChannelSummary"];
|
|
3616
|
-
publishableKey: string | null;
|
|
3617
|
-
}>;
|
|
3618
|
-
get: (eventId: string) => Promise<{
|
|
3619
|
-
id: string;
|
|
3620
|
-
name: string;
|
|
3621
|
-
subtitle: string | null;
|
|
3622
|
-
description: string | null;
|
|
3623
|
-
shortDescription: string | null;
|
|
3624
|
-
status: string;
|
|
3625
|
-
imageUrl: string | null;
|
|
3626
|
-
heroImageUrl: string | null;
|
|
3627
|
-
presentation: {
|
|
3628
|
-
heroLayout?: {
|
|
3629
|
-
type: "hero" | "cinema";
|
|
3630
|
-
size: "small" | "medium" | "large";
|
|
3631
|
-
};
|
|
3632
|
-
cinemaGradient?: {
|
|
3633
|
-
strength: 20 | 50 | 70;
|
|
3634
|
-
position: "bottom" | "center";
|
|
3635
|
-
};
|
|
3636
|
-
twoColumnSplit?: [number, number];
|
|
3637
|
-
navbar?: {
|
|
3638
|
-
transparent?: boolean;
|
|
3639
|
-
};
|
|
3640
|
-
buttonSize?: "small" | "medium" | "large";
|
|
3641
|
-
} | null;
|
|
3642
|
-
venueId: string | null;
|
|
3643
|
-
venueName: string | null;
|
|
3644
|
-
venueCity: string | null;
|
|
3645
|
-
priceFrom: number | null;
|
|
3646
|
-
currency: string | null;
|
|
3647
|
-
timezone: string;
|
|
3648
|
-
occurrences: {
|
|
3649
|
-
id: string;
|
|
3650
|
-
startsAt: string | null;
|
|
3651
|
-
endsAt: string | null;
|
|
3652
|
-
timezone: string;
|
|
3653
|
-
startDate: string;
|
|
3654
|
-
startTime: string;
|
|
3655
|
-
endDate: string;
|
|
3656
|
-
endTime: string;
|
|
3657
|
-
status: string;
|
|
3658
|
-
ticketTypes: {
|
|
3659
|
-
ticketTypeId: string;
|
|
3660
|
-
ticketTypeName: string;
|
|
3661
|
-
description: string | null;
|
|
3662
|
-
categoryId: string;
|
|
3663
|
-
categoryName: string;
|
|
3664
|
-
unitPrice: number;
|
|
3665
|
-
currency: string;
|
|
3666
|
-
}[];
|
|
3667
|
-
}[];
|
|
3668
|
-
}>;
|
|
3669
|
-
getTheme: () => Promise<{
|
|
3670
|
-
id: string;
|
|
3671
|
-
name: string;
|
|
3672
|
-
brand: {
|
|
3673
|
-
[key: string]: unknown;
|
|
3674
|
-
};
|
|
3675
|
-
colors: {
|
|
3676
|
-
[key: string]: unknown;
|
|
3677
|
-
};
|
|
3678
|
-
typography: {
|
|
3679
|
-
[key: string]: unknown;
|
|
3680
|
-
};
|
|
3681
|
-
shape: {
|
|
3682
|
-
[key: string]: unknown;
|
|
3683
|
-
};
|
|
3684
|
-
design?: {
|
|
3685
|
-
[key: string]: unknown;
|
|
3686
|
-
} | null;
|
|
3687
|
-
}>;
|
|
3688
|
-
};
|
|
3689
|
-
themes: {
|
|
3788
|
+
brands: {
|
|
3690
3789
|
list: () => Promise<{
|
|
3691
3790
|
id: string;
|
|
3692
3791
|
organisationId: string;
|
|
3792
|
+
accountId: string | null;
|
|
3693
3793
|
name: string;
|
|
3694
3794
|
description: string | null;
|
|
3695
|
-
|
|
3696
|
-
|
|
3795
|
+
extendsBrandId: string | null;
|
|
3796
|
+
isBaseBrand: boolean;
|
|
3697
3797
|
isActive: boolean;
|
|
3698
3798
|
brand: {
|
|
3699
3799
|
logoUrl?: string;
|
|
@@ -3741,11 +3841,12 @@ export declare class BackstageClient {
|
|
|
3741
3841
|
}[]>;
|
|
3742
3842
|
create: (request: {
|
|
3743
3843
|
name: string;
|
|
3844
|
+
accountId?: string;
|
|
3744
3845
|
description?: string;
|
|
3745
|
-
|
|
3746
|
-
|
|
3846
|
+
extendsBrandId?: string;
|
|
3847
|
+
isBaseBrand?: boolean;
|
|
3747
3848
|
isActive?: boolean;
|
|
3748
|
-
brand?: components["schemas"]["
|
|
3849
|
+
brand?: components["schemas"]["BrandIdentityInput"];
|
|
3749
3850
|
colors?: components["schemas"]["ThemeColorsInput"];
|
|
3750
3851
|
typography?: components["schemas"]["ThemeTypographyInput"];
|
|
3751
3852
|
shape?: components["schemas"]["ThemeShapeInput"];
|
|
@@ -3753,10 +3854,11 @@ export declare class BackstageClient {
|
|
|
3753
3854
|
}) => Promise<{
|
|
3754
3855
|
id: string;
|
|
3755
3856
|
organisationId: string;
|
|
3857
|
+
accountId: string | null;
|
|
3756
3858
|
name: string;
|
|
3757
3859
|
description: string | null;
|
|
3758
|
-
|
|
3759
|
-
|
|
3860
|
+
extendsBrandId: string | null;
|
|
3861
|
+
isBaseBrand: boolean;
|
|
3760
3862
|
isActive: boolean;
|
|
3761
3863
|
brand: {
|
|
3762
3864
|
logoUrl?: string;
|
|
@@ -3805,10 +3907,11 @@ export declare class BackstageClient {
|
|
|
3805
3907
|
get: (id: string) => Promise<{
|
|
3806
3908
|
id: string;
|
|
3807
3909
|
organisationId: string;
|
|
3910
|
+
accountId: string | null;
|
|
3808
3911
|
name: string;
|
|
3809
3912
|
description: string | null;
|
|
3810
|
-
|
|
3811
|
-
|
|
3913
|
+
extendsBrandId: string | null;
|
|
3914
|
+
isBaseBrand: boolean;
|
|
3812
3915
|
isActive: boolean;
|
|
3813
3916
|
brand: {
|
|
3814
3917
|
logoUrl?: string;
|
|
@@ -3857,10 +3960,10 @@ export declare class BackstageClient {
|
|
|
3857
3960
|
update: (id: string, request: {
|
|
3858
3961
|
name?: string;
|
|
3859
3962
|
description?: any;
|
|
3860
|
-
|
|
3861
|
-
|
|
3963
|
+
extendsBrandId?: any;
|
|
3964
|
+
isBaseBrand?: boolean;
|
|
3862
3965
|
isActive?: boolean;
|
|
3863
|
-
brand?: components["schemas"]["
|
|
3966
|
+
brand?: components["schemas"]["BrandIdentityInput"];
|
|
3864
3967
|
colors?: components["schemas"]["ThemeColorsInput"];
|
|
3865
3968
|
typography?: components["schemas"]["ThemeTypographyInput"];
|
|
3866
3969
|
shape?: components["schemas"]["ThemeShapeInput"];
|
|
@@ -3868,10 +3971,11 @@ export declare class BackstageClient {
|
|
|
3868
3971
|
}) => Promise<{
|
|
3869
3972
|
id: string;
|
|
3870
3973
|
organisationId: string;
|
|
3974
|
+
accountId: string | null;
|
|
3871
3975
|
name: string;
|
|
3872
3976
|
description: string | null;
|
|
3873
|
-
|
|
3874
|
-
|
|
3977
|
+
extendsBrandId: string | null;
|
|
3978
|
+
isBaseBrand: boolean;
|
|
3875
3979
|
isActive: boolean;
|
|
3876
3980
|
brand: {
|
|
3877
3981
|
logoUrl?: string;
|
|
@@ -3921,10 +4025,11 @@ export declare class BackstageClient {
|
|
|
3921
4025
|
resolved: (id: string) => Promise<{
|
|
3922
4026
|
id: string;
|
|
3923
4027
|
organisationId: string;
|
|
4028
|
+
accountId: string | null;
|
|
3924
4029
|
name: string;
|
|
3925
4030
|
description: string | null;
|
|
3926
|
-
|
|
3927
|
-
|
|
4031
|
+
extendsBrandId: string | null;
|
|
4032
|
+
isBaseBrand: boolean;
|
|
3928
4033
|
isActive: boolean;
|
|
3929
4034
|
brand: {
|
|
3930
4035
|
logoUrl?: string;
|
|
@@ -4037,7 +4142,7 @@ export declare class BackstageClient {
|
|
|
4037
4142
|
scopeEventId: string | null;
|
|
4038
4143
|
scopeTicketTypeId: string | null;
|
|
4039
4144
|
scopeChannelId: string | null;
|
|
4040
|
-
|
|
4145
|
+
brandId: string | null;
|
|
4041
4146
|
status: string;
|
|
4042
4147
|
isDefault: boolean;
|
|
4043
4148
|
createdAt: string;
|
|
@@ -4067,7 +4172,7 @@ export declare class BackstageClient {
|
|
|
4067
4172
|
scopeEventId?: any;
|
|
4068
4173
|
scopeTicketTypeId?: any;
|
|
4069
4174
|
scopeChannelId?: any;
|
|
4070
|
-
|
|
4175
|
+
brandId?: any;
|
|
4071
4176
|
status?: "draft" | "active" | "archived";
|
|
4072
4177
|
isDefault?: boolean;
|
|
4073
4178
|
accountId?: any;
|
|
@@ -4105,7 +4210,7 @@ export declare class BackstageClient {
|
|
|
4105
4210
|
scopeEventId: string | null;
|
|
4106
4211
|
scopeTicketTypeId: string | null;
|
|
4107
4212
|
scopeChannelId: string | null;
|
|
4108
|
-
|
|
4213
|
+
brandId: string | null;
|
|
4109
4214
|
status: string;
|
|
4110
4215
|
isDefault: boolean;
|
|
4111
4216
|
createdAt: string;
|
|
@@ -4145,7 +4250,7 @@ export declare class BackstageClient {
|
|
|
4145
4250
|
scopeEventId: string | null;
|
|
4146
4251
|
scopeTicketTypeId: string | null;
|
|
4147
4252
|
scopeChannelId: string | null;
|
|
4148
|
-
|
|
4253
|
+
brandId: string | null;
|
|
4149
4254
|
status: string;
|
|
4150
4255
|
isDefault: boolean;
|
|
4151
4256
|
createdAt: string;
|
|
@@ -4175,7 +4280,7 @@ export declare class BackstageClient {
|
|
|
4175
4280
|
scopeEventId?: any;
|
|
4176
4281
|
scopeTicketTypeId?: any;
|
|
4177
4282
|
scopeChannelId?: any;
|
|
4178
|
-
|
|
4283
|
+
brandId?: any;
|
|
4179
4284
|
status?: "draft" | "active" | "archived";
|
|
4180
4285
|
isDefault?: boolean;
|
|
4181
4286
|
}) => Promise<{
|
|
@@ -4212,7 +4317,7 @@ export declare class BackstageClient {
|
|
|
4212
4317
|
scopeEventId: string | null;
|
|
4213
4318
|
scopeTicketTypeId: string | null;
|
|
4214
4319
|
scopeChannelId: string | null;
|
|
4215
|
-
|
|
4320
|
+
brandId: string | null;
|
|
4216
4321
|
status: string;
|
|
4217
4322
|
isDefault: boolean;
|
|
4218
4323
|
createdAt: string;
|
|
@@ -4306,111 +4411,109 @@ export declare class BackstageClient {
|
|
|
4306
4411
|
reason?: string;
|
|
4307
4412
|
}) => Promise<any>;
|
|
4308
4413
|
};
|
|
4309
|
-
assets:
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
arch?: string;
|
|
4413
|
-
};
|
|
4414
|
+
assets: {
|
|
4415
|
+
list: (options?: {
|
|
4416
|
+
q?: string;
|
|
4417
|
+
purpose?: string;
|
|
4418
|
+
ownerType?: string;
|
|
4419
|
+
ownerId?: string;
|
|
4420
|
+
accountId?: string;
|
|
4421
|
+
}) => Promise<{
|
|
4422
|
+
id: string;
|
|
4423
|
+
organisationId: string;
|
|
4424
|
+
accountId: string | null;
|
|
4425
|
+
name: string | null;
|
|
4426
|
+
purpose: string;
|
|
4427
|
+
ownerType: string | null;
|
|
4428
|
+
ownerId: string | null;
|
|
4429
|
+
filename: string | null;
|
|
4430
|
+
contentType: string;
|
|
4431
|
+
sizeBytes: number;
|
|
4432
|
+
storageDriver: string;
|
|
4433
|
+
storageBucket: string | null;
|
|
4434
|
+
storageKey: string;
|
|
4435
|
+
url: string;
|
|
4436
|
+
cdn: boolean;
|
|
4437
|
+
cdnUrl: string | null;
|
|
4438
|
+
visibility: string;
|
|
4439
|
+
metadata: {
|
|
4440
|
+
[key: string]: unknown;
|
|
4441
|
+
};
|
|
4442
|
+
uploadedBy: string | null;
|
|
4443
|
+
createdAt: string;
|
|
4444
|
+
updatedAt: string;
|
|
4445
|
+
}[]>;
|
|
4446
|
+
upload: (request: {
|
|
4447
|
+
name?: string;
|
|
4448
|
+
purpose?: "event_image" | "organisation_logo" | "account_logo" | "user_avatar" | "ticket_template_asset" | "rendered_pass" | "rendered_receipt" | "export" | "other";
|
|
4449
|
+
ownerType?: string;
|
|
4450
|
+
ownerId?: string;
|
|
4451
|
+
accountId?: string;
|
|
4452
|
+
visibility?: "public" | "private";
|
|
4453
|
+
cdn?: any;
|
|
4454
|
+
}) => Promise<{
|
|
4455
|
+
id: string;
|
|
4456
|
+
organisationId: string;
|
|
4457
|
+
accountId: string | null;
|
|
4458
|
+
name: string | null;
|
|
4459
|
+
purpose: string;
|
|
4460
|
+
ownerType: string | null;
|
|
4461
|
+
ownerId: string | null;
|
|
4462
|
+
filename: string | null;
|
|
4463
|
+
contentType: string;
|
|
4464
|
+
sizeBytes: number;
|
|
4465
|
+
storageDriver: string;
|
|
4466
|
+
storageBucket: string | null;
|
|
4467
|
+
storageKey: string;
|
|
4468
|
+
url: string;
|
|
4469
|
+
cdn: boolean;
|
|
4470
|
+
cdnUrl: string | null;
|
|
4471
|
+
visibility: string;
|
|
4472
|
+
metadata: {
|
|
4473
|
+
[key: string]: unknown;
|
|
4474
|
+
};
|
|
4475
|
+
uploadedBy: string | null;
|
|
4476
|
+
createdAt: string;
|
|
4477
|
+
updatedAt: string;
|
|
4478
|
+
}>;
|
|
4479
|
+
get: (id: string) => Promise<{
|
|
4480
|
+
id: string;
|
|
4481
|
+
organisationId: string;
|
|
4482
|
+
accountId: string | null;
|
|
4483
|
+
name: string | null;
|
|
4484
|
+
purpose: string;
|
|
4485
|
+
ownerType: string | null;
|
|
4486
|
+
ownerId: string | null;
|
|
4487
|
+
filename: string | null;
|
|
4488
|
+
contentType: string;
|
|
4489
|
+
sizeBytes: number;
|
|
4490
|
+
storageDriver: string;
|
|
4491
|
+
storageBucket: string | null;
|
|
4492
|
+
storageKey: string;
|
|
4493
|
+
url: string;
|
|
4494
|
+
cdn: boolean;
|
|
4495
|
+
cdnUrl: string | null;
|
|
4496
|
+
visibility: string;
|
|
4497
|
+
metadata: {
|
|
4498
|
+
[key: string]: unknown;
|
|
4499
|
+
};
|
|
4500
|
+
uploadedBy: string | null;
|
|
4501
|
+
createdAt: string;
|
|
4502
|
+
updatedAt: string;
|
|
4503
|
+
}>;
|
|
4504
|
+
delete: (id: string) => Promise<boolean>;
|
|
4505
|
+
};
|
|
4506
|
+
devicePairing: {
|
|
4507
|
+
start: (request: {
|
|
4508
|
+
type: "relay" | "scanner" | "kiosk" | "signage";
|
|
4509
|
+
name?: string;
|
|
4510
|
+
platform?: {
|
|
4511
|
+
os?: string;
|
|
4512
|
+
osVersion?: string;
|
|
4513
|
+
appVersion?: string;
|
|
4514
|
+
hostname?: string;
|
|
4515
|
+
arch?: string;
|
|
4516
|
+
};
|
|
4414
4517
|
}) => Promise<any>;
|
|
4415
4518
|
getStatus: (pairingId: string) => Promise<any>;
|
|
4416
4519
|
claim: (request: {
|
|
@@ -4490,6 +4593,7 @@ export declare class BackstageClient {
|
|
|
4490
4593
|
devices: {
|
|
4491
4594
|
printers: () => Promise<any>;
|
|
4492
4595
|
mediaCatalog: () => Promise<any>;
|
|
4596
|
+
getCommand: (commandId: string) => Promise<any>;
|
|
4493
4597
|
list: (options?: {
|
|
4494
4598
|
accountId?: string;
|
|
4495
4599
|
type?: string;
|
|
@@ -4520,7 +4624,6 @@ export declare class BackstageClient {
|
|
|
4520
4624
|
idempotencyKey?: string;
|
|
4521
4625
|
}) => Promise<any>;
|
|
4522
4626
|
listCommands: (deviceId: string) => Promise<any>;
|
|
4523
|
-
getCommand: (commandId: string) => Promise<any>;
|
|
4524
4627
|
listEvents: (deviceId: string) => Promise<any>;
|
|
4525
4628
|
mintLocalToken: (deviceId: string, request: {
|
|
4526
4629
|
allowedCommandTypes?: string[];
|
|
@@ -4923,16 +5026,16 @@ export declare class BackstageClient {
|
|
|
4923
5026
|
delete: (endpointId: string) => Promise<any>;
|
|
4924
5027
|
test: (endpointId: string) => Promise<any>;
|
|
4925
5028
|
};
|
|
4926
|
-
webhookEventTypes: {
|
|
4927
|
-
list: () => Promise<any>;
|
|
4928
|
-
};
|
|
4929
5029
|
webhookDeliveries: {
|
|
4930
|
-
listInbound: () => Promise<any>;
|
|
4931
5030
|
list: (options?: {
|
|
4932
5031
|
endpointId?: string;
|
|
4933
5032
|
limit?: number;
|
|
4934
5033
|
}) => Promise<any>;
|
|
4935
5034
|
get: (deliveryId: string) => Promise<any>;
|
|
5035
|
+
listInbound: () => Promise<any>;
|
|
5036
|
+
};
|
|
5037
|
+
webhookEventTypes: {
|
|
5038
|
+
list: () => Promise<any>;
|
|
4936
5039
|
};
|
|
4937
5040
|
integrations: {
|
|
4938
5041
|
list: () => Promise<any>;
|
|
@@ -4940,6 +5043,293 @@ export declare class BackstageClient {
|
|
|
4940
5043
|
get: (id: string) => Promise<any>;
|
|
4941
5044
|
revokeConnection: (id: string) => Promise<any>;
|
|
4942
5045
|
};
|
|
5046
|
+
clientVersions: {
|
|
5047
|
+
list: (options?: {
|
|
5048
|
+
days?: number;
|
|
5049
|
+
}) => Promise<{
|
|
5050
|
+
package: string;
|
|
5051
|
+
version: string;
|
|
5052
|
+
datedVersion: string;
|
|
5053
|
+
datedVersionStatus: "current" | "supported" | "deprecated" | "sunset" | "unknown";
|
|
5054
|
+
needsUpgrade: boolean;
|
|
5055
|
+
runtime: string;
|
|
5056
|
+
requestCount: number;
|
|
5057
|
+
firstSeenAt: string;
|
|
5058
|
+
lastSeenAt: string;
|
|
5059
|
+
}[]>;
|
|
5060
|
+
};
|
|
5061
|
+
sales: {
|
|
5062
|
+
resolveChannel: (options?: {
|
|
5063
|
+
domain?: string;
|
|
5064
|
+
key?: string;
|
|
5065
|
+
}) => Promise<{
|
|
5066
|
+
channel: components["schemas"]["SalesChannelSummary"];
|
|
5067
|
+
publishableKey: string | null;
|
|
5068
|
+
cacheVersion: string;
|
|
5069
|
+
}>;
|
|
5070
|
+
get: (eventId: string) => Promise<{
|
|
5071
|
+
id: string;
|
|
5072
|
+
name: string;
|
|
5073
|
+
subtitle: string | null;
|
|
5074
|
+
description: string | null;
|
|
5075
|
+
shortDescription: string | null;
|
|
5076
|
+
status: string;
|
|
5077
|
+
imageUrl: string | null;
|
|
5078
|
+
heroImageUrl: string | null;
|
|
5079
|
+
presentation: {
|
|
5080
|
+
heroLayout?: {
|
|
5081
|
+
type: "hero" | "cinema";
|
|
5082
|
+
size: "small" | "medium" | "large";
|
|
5083
|
+
};
|
|
5084
|
+
cinemaGradient?: {
|
|
5085
|
+
strength: 20 | 50 | 70;
|
|
5086
|
+
position: "bottom" | "center";
|
|
5087
|
+
};
|
|
5088
|
+
twoColumnSplit?: [number, number];
|
|
5089
|
+
navbar?: {
|
|
5090
|
+
transparent?: boolean;
|
|
5091
|
+
};
|
|
5092
|
+
buttonSize?: "small" | "medium" | "large";
|
|
5093
|
+
} | null;
|
|
5094
|
+
venueId: string | null;
|
|
5095
|
+
venueName: string | null;
|
|
5096
|
+
venueCity: string | null;
|
|
5097
|
+
priceFrom: number | null;
|
|
5098
|
+
currency: string | null;
|
|
5099
|
+
timezone: string;
|
|
5100
|
+
occurrences: {
|
|
5101
|
+
id: string;
|
|
5102
|
+
startsAt: string | null;
|
|
5103
|
+
endsAt: string | null;
|
|
5104
|
+
timezone: string;
|
|
5105
|
+
startDate: string;
|
|
5106
|
+
startTime: string;
|
|
5107
|
+
endDate: string;
|
|
5108
|
+
endTime: string;
|
|
5109
|
+
status: string;
|
|
5110
|
+
ticketTypes: {
|
|
5111
|
+
ticketTypeId: string;
|
|
5112
|
+
ticketTypeName: string;
|
|
5113
|
+
description: string | null;
|
|
5114
|
+
categoryId: string;
|
|
5115
|
+
categoryName: string;
|
|
5116
|
+
unitPrice: number;
|
|
5117
|
+
currency: string;
|
|
5118
|
+
}[];
|
|
5119
|
+
}[];
|
|
5120
|
+
}>;
|
|
5121
|
+
getTheme: () => Promise<{
|
|
5122
|
+
id: string;
|
|
5123
|
+
name: string;
|
|
5124
|
+
brand: {
|
|
5125
|
+
[key: string]: unknown;
|
|
5126
|
+
};
|
|
5127
|
+
colors: {
|
|
5128
|
+
[key: string]: unknown;
|
|
5129
|
+
};
|
|
5130
|
+
typography: {
|
|
5131
|
+
[key: string]: unknown;
|
|
5132
|
+
};
|
|
5133
|
+
shape: {
|
|
5134
|
+
[key: string]: unknown;
|
|
5135
|
+
};
|
|
5136
|
+
design?: {
|
|
5137
|
+
[key: string]: unknown;
|
|
5138
|
+
} | null;
|
|
5139
|
+
}>;
|
|
5140
|
+
};
|
|
5141
|
+
salesCustomerAuth: {
|
|
5142
|
+
magicLink: (request: {
|
|
5143
|
+
email?: string;
|
|
5144
|
+
phone?: string;
|
|
5145
|
+
}) => Promise<boolean>;
|
|
5146
|
+
};
|
|
5147
|
+
salesCustomerTokens: {
|
|
5148
|
+
create: (request: {
|
|
5149
|
+
proof: any;
|
|
5150
|
+
}) => Promise<{
|
|
5151
|
+
customerToken: string;
|
|
5152
|
+
expiresIn: number;
|
|
5153
|
+
customer: components["schemas"]["SalesCustomer"];
|
|
5154
|
+
}>;
|
|
5155
|
+
refresh: () => Promise<{
|
|
5156
|
+
customerToken: string;
|
|
5157
|
+
expiresIn: number;
|
|
5158
|
+
customer: components["schemas"]["SalesCustomer"];
|
|
5159
|
+
}>;
|
|
5160
|
+
};
|
|
5161
|
+
salesListings: {
|
|
5162
|
+
list: () => Promise<{
|
|
5163
|
+
channel: components["schemas"]["SalesChannelSummary"];
|
|
5164
|
+
listings: components["schemas"]["SalesListing"][];
|
|
5165
|
+
}>;
|
|
5166
|
+
};
|
|
5167
|
+
salesCarts: {
|
|
5168
|
+
create: (request: {
|
|
5169
|
+
metadata?: Record<string, any>;
|
|
5170
|
+
}) => Promise<{
|
|
5171
|
+
id: string;
|
|
5172
|
+
status: string;
|
|
5173
|
+
currency: string | null;
|
|
5174
|
+
expiresAt: string;
|
|
5175
|
+
orderId: string | null;
|
|
5176
|
+
items: components["schemas"]["SalesCartItem"][];
|
|
5177
|
+
itemsSubtotal: number;
|
|
5178
|
+
}>;
|
|
5179
|
+
get: (cartId: string) => Promise<{
|
|
5180
|
+
id: string;
|
|
5181
|
+
status: string;
|
|
5182
|
+
currency: string | null;
|
|
5183
|
+
expiresAt: string;
|
|
5184
|
+
orderId: string | null;
|
|
5185
|
+
items: components["schemas"]["SalesCartItem"][];
|
|
5186
|
+
itemsSubtotal: number;
|
|
5187
|
+
}>;
|
|
5188
|
+
addItem: (cartId: string, request: {
|
|
5189
|
+
eventOccurrenceId: string;
|
|
5190
|
+
categoryId: string;
|
|
5191
|
+
ticketTypeId: string;
|
|
5192
|
+
quantity?: number;
|
|
5193
|
+
eventLayoutAreaId?: string;
|
|
5194
|
+
eventLayoutSeatIds?: string[];
|
|
5195
|
+
}) => Promise<{
|
|
5196
|
+
id: string;
|
|
5197
|
+
status: string;
|
|
5198
|
+
currency: string | null;
|
|
5199
|
+
expiresAt: string;
|
|
5200
|
+
orderId: string | null;
|
|
5201
|
+
items: components["schemas"]["SalesCartItem"][];
|
|
5202
|
+
itemsSubtotal: number;
|
|
5203
|
+
}>;
|
|
5204
|
+
removeItem: (cartId: string, itemId: string) => Promise<{
|
|
5205
|
+
id: string;
|
|
5206
|
+
status: string;
|
|
5207
|
+
currency: string | null;
|
|
5208
|
+
expiresAt: string;
|
|
5209
|
+
orderId: string | null;
|
|
5210
|
+
items: components["schemas"]["SalesCartItem"][];
|
|
5211
|
+
itemsSubtotal: number;
|
|
5212
|
+
}>;
|
|
5213
|
+
checkout: (cartId: string, request: {
|
|
5214
|
+
customerNotes?: string;
|
|
5215
|
+
metadata?: Record<string, any>;
|
|
5216
|
+
customer?: {
|
|
5217
|
+
email: string;
|
|
5218
|
+
firstName?: string;
|
|
5219
|
+
lastName?: string;
|
|
5220
|
+
phone?: string;
|
|
5221
|
+
marketingConsent?: boolean;
|
|
5222
|
+
};
|
|
5223
|
+
}) => Promise<{
|
|
5224
|
+
cart: components["schemas"]["SalesCart"];
|
|
5225
|
+
order: components["schemas"]["SalesOrder"];
|
|
5226
|
+
orderAccessToken: string;
|
|
5227
|
+
}>;
|
|
5228
|
+
};
|
|
5229
|
+
salesMyOrders: {
|
|
5230
|
+
list: () => Promise<{
|
|
5231
|
+
id: string;
|
|
5232
|
+
orderNumber: string;
|
|
5233
|
+
status: string;
|
|
5234
|
+
paymentStatus: string;
|
|
5235
|
+
currency: string;
|
|
5236
|
+
items: components["schemas"]["SalesOrderItem"][];
|
|
5237
|
+
subtotal: number;
|
|
5238
|
+
totalFees: number;
|
|
5239
|
+
totalTax: number;
|
|
5240
|
+
total: number;
|
|
5241
|
+
tickets: components["schemas"]["SalesTicket"][];
|
|
5242
|
+
expiresAt: string | null;
|
|
5243
|
+
createdAt: string;
|
|
5244
|
+
}[]>;
|
|
5245
|
+
};
|
|
5246
|
+
salesOrders: {
|
|
5247
|
+
get: (orderId: string) => Promise<{
|
|
5248
|
+
id: string;
|
|
5249
|
+
orderNumber: string;
|
|
5250
|
+
status: string;
|
|
5251
|
+
paymentStatus: string;
|
|
5252
|
+
currency: string;
|
|
5253
|
+
items: components["schemas"]["SalesOrderItem"][];
|
|
5254
|
+
subtotal: number;
|
|
5255
|
+
totalFees: number;
|
|
5256
|
+
totalTax: number;
|
|
5257
|
+
total: number;
|
|
5258
|
+
tickets: components["schemas"]["SalesTicket"][];
|
|
5259
|
+
expiresAt: string | null;
|
|
5260
|
+
createdAt: string;
|
|
5261
|
+
}>;
|
|
5262
|
+
ticketPdf: (orderId: string, passId: string) => Promise<any>;
|
|
5263
|
+
};
|
|
5264
|
+
salesOrderPayments: {
|
|
5265
|
+
create: (orderId: string, request: {
|
|
5266
|
+
paymentType?: "online_card" | "online_bank_transfer" | "online_wallet";
|
|
5267
|
+
returnUrl?: string;
|
|
5268
|
+
}) => Promise<{
|
|
5269
|
+
id: string;
|
|
5270
|
+
orderId: string;
|
|
5271
|
+
status: string;
|
|
5272
|
+
paymentType: string;
|
|
5273
|
+
amount: number;
|
|
5274
|
+
currency: string;
|
|
5275
|
+
providerClientSecret: string | null;
|
|
5276
|
+
externalPaymentUrl: string | null;
|
|
5277
|
+
publishableKey: string | null;
|
|
5278
|
+
connectedAccountId: string | null;
|
|
5279
|
+
providerType: string | null;
|
|
5280
|
+
}>;
|
|
5281
|
+
};
|
|
5282
|
+
salesRefundRequests: {
|
|
5283
|
+
create: (orderId: string, request: {
|
|
5284
|
+
type: "refund" | "exchange";
|
|
5285
|
+
reason?: string;
|
|
5286
|
+
}) => Promise<{
|
|
5287
|
+
id: string;
|
|
5288
|
+
orderId: string;
|
|
5289
|
+
type: string;
|
|
5290
|
+
status: string;
|
|
5291
|
+
reason: string | null;
|
|
5292
|
+
createdAt: string;
|
|
5293
|
+
}>;
|
|
5294
|
+
};
|
|
5295
|
+
salesCustomers: {
|
|
5296
|
+
create: (request: {
|
|
5297
|
+
email: string;
|
|
5298
|
+
firstName?: string;
|
|
5299
|
+
lastName?: string;
|
|
5300
|
+
phone?: string;
|
|
5301
|
+
marketingConsent?: boolean;
|
|
5302
|
+
}) => Promise<{
|
|
5303
|
+
id: string;
|
|
5304
|
+
email: string;
|
|
5305
|
+
firstName: string | null;
|
|
5306
|
+
lastName: string | null;
|
|
5307
|
+
}>;
|
|
5308
|
+
get: (customerId: string) => Promise<{
|
|
5309
|
+
id: string;
|
|
5310
|
+
email: string;
|
|
5311
|
+
firstName: string | null;
|
|
5312
|
+
lastName: string | null;
|
|
5313
|
+
}>;
|
|
5314
|
+
update: (customerId: string, request: {
|
|
5315
|
+
firstName?: string;
|
|
5316
|
+
lastName?: string;
|
|
5317
|
+
phone?: string;
|
|
5318
|
+
}) => Promise<{
|
|
5319
|
+
id: string;
|
|
5320
|
+
email: string;
|
|
5321
|
+
firstName: string | null;
|
|
5322
|
+
lastName: string | null;
|
|
5323
|
+
}>;
|
|
5324
|
+
};
|
|
5325
|
+
salesPresaleCodes: {
|
|
5326
|
+
redeem: (request: {
|
|
5327
|
+
code: string;
|
|
5328
|
+
}) => Promise<{
|
|
5329
|
+
benefit: string;
|
|
5330
|
+
alreadyHeld: boolean;
|
|
5331
|
+
}>;
|
|
5332
|
+
};
|
|
4943
5333
|
}
|
|
4944
5334
|
export {};
|
|
4945
5335
|
//# sourceMappingURL=client.d.ts.map
|