@ticketlayer/backstage 0.2.1 → 0.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 +990 -635
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +631 -445
- package/dist/generated/types.d.ts +7130 -5148
- 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,52 @@ 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;
|
|
539
681
|
}) => Promise<{
|
|
540
|
-
|
|
682
|
+
organisation: {
|
|
541
683
|
id: string;
|
|
542
|
-
organisationId: string;
|
|
543
684
|
name: string;
|
|
544
|
-
status: "active" | "inactive";
|
|
545
|
-
isDeleted: boolean;
|
|
546
|
-
createdAt: string;
|
|
547
|
-
updatedAt: string;
|
|
548
|
-
};
|
|
549
|
-
salesChannel: {
|
|
550
|
-
id: string;
|
|
551
685
|
slug: string;
|
|
552
|
-
channelType: string;
|
|
553
686
|
};
|
|
554
|
-
|
|
687
|
+
user: {
|
|
555
688
|
id: string;
|
|
556
|
-
|
|
689
|
+
email: string;
|
|
557
690
|
};
|
|
558
691
|
}>;
|
|
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<{
|
|
692
|
+
get: (id: string) => Promise<{
|
|
571
693
|
id: string;
|
|
572
|
-
organisationId: string;
|
|
573
|
-
accountId: string | null;
|
|
574
694
|
name: string;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
695
|
+
primaryColor?: string;
|
|
696
|
+
secondaryColor?: string;
|
|
697
|
+
logoUrl?: string;
|
|
698
|
+
metadata?: {
|
|
699
|
+
[key: string]: unknown;
|
|
700
|
+
};
|
|
701
|
+
apiVersion: string;
|
|
578
702
|
createdAt: string;
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}[]>;
|
|
583
|
-
revoke: (id: string) => Promise<{
|
|
703
|
+
updatedAt: string;
|
|
704
|
+
}>;
|
|
705
|
+
update: (id: string, request: UpdateOrganisationRequest) => Promise<{
|
|
584
706
|
id: string;
|
|
585
|
-
organisationId: string;
|
|
586
|
-
accountId: string | null;
|
|
587
707
|
name: string;
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
expiresAt: string | null;
|
|
594
|
-
revokedAt: string | null;
|
|
595
|
-
}>;
|
|
596
|
-
};
|
|
597
|
-
embedSessions: {
|
|
598
|
-
create: (request: {
|
|
599
|
-
accountId: string;
|
|
600
|
-
scopes?: string[];
|
|
601
|
-
ttlSeconds?: number;
|
|
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;
|
|
708
|
+
primaryColor?: string;
|
|
709
|
+
secondaryColor?: string;
|
|
710
|
+
logoUrl?: string;
|
|
711
|
+
metadata?: {
|
|
712
|
+
[key: string]: unknown;
|
|
615
713
|
};
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
714
|
+
apiVersion: string;
|
|
715
|
+
createdAt: string;
|
|
716
|
+
updatedAt: string;
|
|
619
717
|
}>;
|
|
620
718
|
};
|
|
621
719
|
events: ((eventId: string) => {
|
|
622
720
|
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
721
|
create: (request: {
|
|
635
722
|
startDate: string;
|
|
636
723
|
startTime: string;
|
|
@@ -663,6 +750,17 @@ export declare class BackstageClient {
|
|
|
663
750
|
createdAt: string;
|
|
664
751
|
updatedAt: string;
|
|
665
752
|
}>;
|
|
753
|
+
list: (options?: {
|
|
754
|
+
status?: "draft" | "on_sale" | "sold_out" | "completed" | "cancelled";
|
|
755
|
+
venueId?: string;
|
|
756
|
+
startDateFrom?: string;
|
|
757
|
+
startDateTo?: string;
|
|
758
|
+
page?: string;
|
|
759
|
+
limit?: string;
|
|
760
|
+
}) => Promise<{
|
|
761
|
+
eventOccurrences: components["schemas"]["EventOccurrence"][];
|
|
762
|
+
pagination: components["schemas"]["Pagination"];
|
|
763
|
+
}>;
|
|
666
764
|
get: (occurrenceId: string) => Promise<{
|
|
667
765
|
id: string;
|
|
668
766
|
organisationId: string;
|
|
@@ -713,20 +811,6 @@ export declare class BackstageClient {
|
|
|
713
811
|
}>;
|
|
714
812
|
};
|
|
715
813
|
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
814
|
create: (request: {
|
|
731
815
|
name: string;
|
|
732
816
|
description?: string;
|
|
@@ -752,6 +836,20 @@ export declare class BackstageClient {
|
|
|
752
836
|
createdAt: string;
|
|
753
837
|
updatedAt: string;
|
|
754
838
|
}>;
|
|
839
|
+
list: () => Promise<{
|
|
840
|
+
id: string;
|
|
841
|
+
organisationId: string;
|
|
842
|
+
accountId: string;
|
|
843
|
+
eventId: string;
|
|
844
|
+
name: string;
|
|
845
|
+
description?: string;
|
|
846
|
+
status: "draft" | "active" | "archived";
|
|
847
|
+
parentPriceSchemeId?: string;
|
|
848
|
+
ticketPrices: components["schemas"]["TicketPrice"][];
|
|
849
|
+
isDeleted: boolean;
|
|
850
|
+
createdAt: string;
|
|
851
|
+
updatedAt: string;
|
|
852
|
+
}[]>;
|
|
755
853
|
get: (priceSchemeId: string) => Promise<{
|
|
756
854
|
id: string;
|
|
757
855
|
organisationId: string;
|
|
@@ -796,18 +894,6 @@ export declare class BackstageClient {
|
|
|
796
894
|
}>;
|
|
797
895
|
};
|
|
798
896
|
}) & {
|
|
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
897
|
create: (request: {
|
|
812
898
|
accountId: string;
|
|
813
899
|
name: string;
|
|
@@ -869,7 +955,19 @@ export declare class BackstageClient {
|
|
|
869
955
|
updatedAt: string;
|
|
870
956
|
createdBy?: string;
|
|
871
957
|
}>;
|
|
872
|
-
|
|
958
|
+
list: (options?: {
|
|
959
|
+
search?: string;
|
|
960
|
+
status?: "draft" | "published" | "on_sale" | "sold_out" | "completed" | "cancelled";
|
|
961
|
+
venueId?: string;
|
|
962
|
+
accountId?: string;
|
|
963
|
+
expand?: string;
|
|
964
|
+
page?: string;
|
|
965
|
+
limit?: string;
|
|
966
|
+
}) => Promise<{
|
|
967
|
+
events: components["schemas"]["Event"][];
|
|
968
|
+
pagination: components["schemas"]["Pagination"];
|
|
969
|
+
}>;
|
|
970
|
+
get: (id: string, options?: {
|
|
873
971
|
expand?: string;
|
|
874
972
|
}) => Promise<{
|
|
875
973
|
id: string;
|
|
@@ -955,19 +1053,21 @@ export declare class BackstageClient {
|
|
|
955
1053
|
success: boolean;
|
|
956
1054
|
id: string;
|
|
957
1055
|
}>;
|
|
1056
|
+
getLayout: (eventId: string) => Promise<unknown>;
|
|
1057
|
+
validateLayoutChanges: (eventId: string, request: ValidateLayoutChangesRequest) => Promise<{
|
|
1058
|
+
validation?: unknown;
|
|
1059
|
+
workflowId: string;
|
|
1060
|
+
}>;
|
|
1061
|
+
applyLayoutChanges: (eventId: string, request: ApplyLayoutChangesRequest) => Promise<any>;
|
|
1062
|
+
getLayoutChangeResult: (eventId: string, workflowId: string) => Promise<{
|
|
1063
|
+
status: string;
|
|
1064
|
+
workflowId: string;
|
|
1065
|
+
result?: unknown;
|
|
1066
|
+
}>;
|
|
1067
|
+
streamLayoutChangeProgress: (eventId: string, workflowId: string) => Promise<any>;
|
|
958
1068
|
};
|
|
959
1069
|
venues: ((id: string) => {
|
|
960
1070
|
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
1071
|
create: (request: {
|
|
972
1072
|
name: string;
|
|
973
1073
|
description?: string;
|
|
@@ -1068,6 +1168,16 @@ export declare class BackstageClient {
|
|
|
1068
1168
|
updatedAt: string;
|
|
1069
1169
|
createdBy?: string;
|
|
1070
1170
|
}>;
|
|
1171
|
+
list: (options?: {
|
|
1172
|
+
search?: string;
|
|
1173
|
+
status?: "active" | "archived";
|
|
1174
|
+
accountId?: string;
|
|
1175
|
+
page?: string;
|
|
1176
|
+
limit?: string;
|
|
1177
|
+
}) => Promise<{
|
|
1178
|
+
venueLayouts: components["schemas"]["VenueLayout"][];
|
|
1179
|
+
pagination: components["schemas"]["Pagination"];
|
|
1180
|
+
}>;
|
|
1071
1181
|
get: (layoutId: string) => Promise<{
|
|
1072
1182
|
id: string;
|
|
1073
1183
|
venueId: string;
|
|
@@ -1378,16 +1488,6 @@ export declare class BackstageClient {
|
|
|
1378
1488
|
}>;
|
|
1379
1489
|
};
|
|
1380
1490
|
}) & {
|
|
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
1491
|
create: (request: {
|
|
1392
1492
|
accountId: string;
|
|
1393
1493
|
name: string;
|
|
@@ -1427,6 +1527,16 @@ export declare class BackstageClient {
|
|
|
1427
1527
|
updatedAt: string;
|
|
1428
1528
|
createdBy?: string;
|
|
1429
1529
|
}>;
|
|
1530
|
+
list: (options?: {
|
|
1531
|
+
search?: string;
|
|
1532
|
+
status?: "active" | "archived";
|
|
1533
|
+
accountId?: string;
|
|
1534
|
+
page?: string;
|
|
1535
|
+
limit?: string;
|
|
1536
|
+
}) => Promise<{
|
|
1537
|
+
venues: components["schemas"]["Venue"][];
|
|
1538
|
+
pagination: components["schemas"]["Pagination"];
|
|
1539
|
+
}>;
|
|
1430
1540
|
get: (id: string) => Promise<{
|
|
1431
1541
|
id: string;
|
|
1432
1542
|
organisationId: string;
|
|
@@ -1500,6 +1610,17 @@ export declare class BackstageClient {
|
|
|
1500
1610
|
isActive: boolean;
|
|
1501
1611
|
displayOrder: number;
|
|
1502
1612
|
}[]>;
|
|
1613
|
+
listAiPackages: () => Promise<{
|
|
1614
|
+
id: string;
|
|
1615
|
+
name: string;
|
|
1616
|
+
credits: number;
|
|
1617
|
+
basePrice: number;
|
|
1618
|
+
baseCurrency: string;
|
|
1619
|
+
discountPercent: number;
|
|
1620
|
+
finalPrice: number;
|
|
1621
|
+
isActive: boolean;
|
|
1622
|
+
displayOrder: number;
|
|
1623
|
+
}[]>;
|
|
1503
1624
|
canSell: (organisationId: string) => Promise<{
|
|
1504
1625
|
canSell: boolean;
|
|
1505
1626
|
reason: string | null;
|
|
@@ -1542,6 +1663,35 @@ export declare class BackstageClient {
|
|
|
1542
1663
|
transaction: components["schemas"]["CreditTransaction"];
|
|
1543
1664
|
newBalance: number;
|
|
1544
1665
|
}>;
|
|
1666
|
+
getAiBalance: () => Promise<{
|
|
1667
|
+
balance: number;
|
|
1668
|
+
lifetimeCredits: number;
|
|
1669
|
+
lifetimeUsed: number;
|
|
1670
|
+
isLow: boolean;
|
|
1671
|
+
isDepleted: boolean;
|
|
1672
|
+
}>;
|
|
1673
|
+
listAiTransactions: (options?: {
|
|
1674
|
+
page?: string;
|
|
1675
|
+
limit?: string;
|
|
1676
|
+
}) => Promise<{
|
|
1677
|
+
id: string;
|
|
1678
|
+
organisationId: string;
|
|
1679
|
+
type: "initial" | "purchase" | "subscription" | "ticket_sale" | "adjustment" | "refund";
|
|
1680
|
+
amount: number;
|
|
1681
|
+
balanceBefore: number;
|
|
1682
|
+
balanceAfter: number;
|
|
1683
|
+
orderId: string | null;
|
|
1684
|
+
invoiceId: string | null;
|
|
1685
|
+
subscriptionId: string | null;
|
|
1686
|
+
description: string | null;
|
|
1687
|
+
createdAt: string;
|
|
1688
|
+
}[]>;
|
|
1689
|
+
createAiTopup: (request: CreateAiTopupRequest) => Promise<{
|
|
1690
|
+
invoice: components["schemas"]["Invoice"];
|
|
1691
|
+
payment: components["schemas"]["Payment"];
|
|
1692
|
+
creditsAdded: number;
|
|
1693
|
+
newBalance: number;
|
|
1694
|
+
}>;
|
|
1545
1695
|
listInvoices: (options?: {
|
|
1546
1696
|
page?: string;
|
|
1547
1697
|
limit?: string;
|
|
@@ -1698,46 +1848,6 @@ export declare class BackstageClient {
|
|
|
1698
1848
|
isDefault: boolean;
|
|
1699
1849
|
createdAt: string;
|
|
1700
1850
|
}>;
|
|
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
1851
|
};
|
|
1742
1852
|
inventory: {
|
|
1743
1853
|
create: (request: {
|
|
@@ -2200,6 +2310,164 @@ export declare class BackstageClient {
|
|
|
2200
2310
|
createdAt: string;
|
|
2201
2311
|
updatedAt: string;
|
|
2202
2312
|
}>;
|
|
2313
|
+
listBenefits: (customerId: string, options?: {
|
|
2314
|
+
includeRevoked?: "true" | "false";
|
|
2315
|
+
}) => Promise<{
|
|
2316
|
+
id: string;
|
|
2317
|
+
customerId: string;
|
|
2318
|
+
benefit: string;
|
|
2319
|
+
source: "manual" | "membership" | "import";
|
|
2320
|
+
expiresAt: string | null;
|
|
2321
|
+
revokedAt: string | null;
|
|
2322
|
+
metadata: {
|
|
2323
|
+
[key: string]: unknown;
|
|
2324
|
+
} | null;
|
|
2325
|
+
createdAt: string;
|
|
2326
|
+
updatedAt: string;
|
|
2327
|
+
}[]>;
|
|
2328
|
+
grantBenefit: (customerId: string, request: {
|
|
2329
|
+
benefit: string;
|
|
2330
|
+
source?: "manual" | "membership" | "import";
|
|
2331
|
+
expiresAt?: any;
|
|
2332
|
+
metadata?: Record<string, any>;
|
|
2333
|
+
}) => Promise<{
|
|
2334
|
+
id: string;
|
|
2335
|
+
customerId: string;
|
|
2336
|
+
benefit: string;
|
|
2337
|
+
source: "manual" | "membership" | "import";
|
|
2338
|
+
expiresAt: string | null;
|
|
2339
|
+
revokedAt: string | null;
|
|
2340
|
+
metadata: {
|
|
2341
|
+
[key: string]: unknown;
|
|
2342
|
+
} | null;
|
|
2343
|
+
createdAt: string;
|
|
2344
|
+
updatedAt: string;
|
|
2345
|
+
}>;
|
|
2346
|
+
revokeBenefit: (customerId: string, benefitId: string) => Promise<{
|
|
2347
|
+
id: string;
|
|
2348
|
+
customerId: string;
|
|
2349
|
+
benefit: string;
|
|
2350
|
+
source: "manual" | "membership" | "import";
|
|
2351
|
+
expiresAt: string | null;
|
|
2352
|
+
revokedAt: string | null;
|
|
2353
|
+
metadata: {
|
|
2354
|
+
[key: string]: unknown;
|
|
2355
|
+
} | null;
|
|
2356
|
+
createdAt: string;
|
|
2357
|
+
updatedAt: string;
|
|
2358
|
+
}>;
|
|
2359
|
+
};
|
|
2360
|
+
refundPolicies: {
|
|
2361
|
+
listPolicies: () => Promise<{
|
|
2362
|
+
id: string;
|
|
2363
|
+
organisationId: string;
|
|
2364
|
+
accountId: string | null;
|
|
2365
|
+
eventId: string | null;
|
|
2366
|
+
refundsEnabled: boolean;
|
|
2367
|
+
refundWindowHours: number | null;
|
|
2368
|
+
exchangesEnabled: boolean;
|
|
2369
|
+
exchangeWindowHours: number | null;
|
|
2370
|
+
autoApprove: boolean;
|
|
2371
|
+
retainFees: boolean;
|
|
2372
|
+
customerMessage: string | null;
|
|
2373
|
+
createdAt: string;
|
|
2374
|
+
updatedAt: string;
|
|
2375
|
+
}[]>;
|
|
2376
|
+
upsertPolicy: (request: {
|
|
2377
|
+
accountId?: string;
|
|
2378
|
+
eventId?: string;
|
|
2379
|
+
refundsEnabled?: boolean;
|
|
2380
|
+
refundWindowHours?: any;
|
|
2381
|
+
exchangesEnabled?: boolean;
|
|
2382
|
+
exchangeWindowHours?: any;
|
|
2383
|
+
autoApprove?: boolean;
|
|
2384
|
+
retainFees?: boolean;
|
|
2385
|
+
customerMessage?: any;
|
|
2386
|
+
}) => Promise<{
|
|
2387
|
+
id: string;
|
|
2388
|
+
organisationId: string;
|
|
2389
|
+
accountId: string | null;
|
|
2390
|
+
eventId: string | null;
|
|
2391
|
+
refundsEnabled: boolean;
|
|
2392
|
+
refundWindowHours: number | null;
|
|
2393
|
+
exchangesEnabled: boolean;
|
|
2394
|
+
exchangeWindowHours: number | null;
|
|
2395
|
+
autoApprove: boolean;
|
|
2396
|
+
retainFees: boolean;
|
|
2397
|
+
customerMessage: string | null;
|
|
2398
|
+
createdAt: string;
|
|
2399
|
+
updatedAt: string;
|
|
2400
|
+
}>;
|
|
2401
|
+
};
|
|
2402
|
+
refundRequests: {
|
|
2403
|
+
listRequests: (options?: {
|
|
2404
|
+
status?: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2405
|
+
}) => Promise<{
|
|
2406
|
+
id: string;
|
|
2407
|
+
organisationId: string;
|
|
2408
|
+
orderId: string;
|
|
2409
|
+
accountId: string;
|
|
2410
|
+
type: "refund" | "exchange";
|
|
2411
|
+
status: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2412
|
+
reason: string | null;
|
|
2413
|
+
notes: string | null;
|
|
2414
|
+
createdAt: string;
|
|
2415
|
+
updatedAt: string;
|
|
2416
|
+
}[]>;
|
|
2417
|
+
createRequest: (request: {
|
|
2418
|
+
orderId: string;
|
|
2419
|
+
type: "refund" | "exchange";
|
|
2420
|
+
reason?: string;
|
|
2421
|
+
}) => Promise<{
|
|
2422
|
+
id: string;
|
|
2423
|
+
organisationId: string;
|
|
2424
|
+
orderId: string;
|
|
2425
|
+
accountId: string;
|
|
2426
|
+
type: "refund" | "exchange";
|
|
2427
|
+
status: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2428
|
+
reason: string | null;
|
|
2429
|
+
notes: string | null;
|
|
2430
|
+
createdAt: string;
|
|
2431
|
+
updatedAt: string;
|
|
2432
|
+
}>;
|
|
2433
|
+
approveRequest: (requestId: string, request: {
|
|
2434
|
+
notes?: string;
|
|
2435
|
+
}) => Promise<{
|
|
2436
|
+
id: string;
|
|
2437
|
+
organisationId: string;
|
|
2438
|
+
orderId: string;
|
|
2439
|
+
accountId: string;
|
|
2440
|
+
type: "refund" | "exchange";
|
|
2441
|
+
status: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2442
|
+
reason: string | null;
|
|
2443
|
+
notes: string | null;
|
|
2444
|
+
createdAt: string;
|
|
2445
|
+
updatedAt: string;
|
|
2446
|
+
}>;
|
|
2447
|
+
processRequest: (requestId: string) => Promise<{
|
|
2448
|
+
request: components["schemas"]["RefundRequest"];
|
|
2449
|
+
refunds: {
|
|
2450
|
+
id: string;
|
|
2451
|
+
paymentId: string;
|
|
2452
|
+
amount: number;
|
|
2453
|
+
currency: string;
|
|
2454
|
+
status: string;
|
|
2455
|
+
}[];
|
|
2456
|
+
}>;
|
|
2457
|
+
rejectRequest: (requestId: string, request: {
|
|
2458
|
+
notes?: string;
|
|
2459
|
+
}) => Promise<{
|
|
2460
|
+
id: string;
|
|
2461
|
+
organisationId: string;
|
|
2462
|
+
orderId: string;
|
|
2463
|
+
accountId: string;
|
|
2464
|
+
type: "refund" | "exchange";
|
|
2465
|
+
status: "pending" | "approved" | "rejected" | "processed" | "failed";
|
|
2466
|
+
reason: string | null;
|
|
2467
|
+
notes: string | null;
|
|
2468
|
+
createdAt: string;
|
|
2469
|
+
updatedAt: string;
|
|
2470
|
+
}>;
|
|
2203
2471
|
};
|
|
2204
2472
|
orders: {
|
|
2205
2473
|
create: (request: {
|
|
@@ -2393,6 +2661,19 @@ export declare class BackstageClient {
|
|
|
2393
2661
|
createdAt: string;
|
|
2394
2662
|
updatedAt: string;
|
|
2395
2663
|
}>;
|
|
2664
|
+
getPasses: (orderId: string) => Promise<{
|
|
2665
|
+
passes: components["schemas"]["OrderPass"][];
|
|
2666
|
+
entitlements: components["schemas"]["OrderEntitlement"][];
|
|
2667
|
+
redemptions: components["schemas"]["OrderRedemption"][];
|
|
2668
|
+
}>;
|
|
2669
|
+
getPassPdf: (orderId: string, passId: string) => Promise<any>;
|
|
2670
|
+
resendConfirmation: (orderId: string) => Promise<{
|
|
2671
|
+
sent: boolean;
|
|
2672
|
+
recipient: string | null;
|
|
2673
|
+
messageId?: string;
|
|
2674
|
+
skippedReason?: "already_sent" | "no_recipient" | "not_configured" | "order_not_confirmed";
|
|
2675
|
+
attachments: number;
|
|
2676
|
+
}>;
|
|
2396
2677
|
cancel: (orderId: string, request: {
|
|
2397
2678
|
reason: string;
|
|
2398
2679
|
}) => Promise<{
|
|
@@ -2540,19 +2821,6 @@ export declare class BackstageClient {
|
|
|
2540
2821
|
failedAt: string | null;
|
|
2541
2822
|
failureReason: string | null;
|
|
2542
2823
|
}>;
|
|
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
2824
|
printPass: (orderId: string, passId: string, request: {
|
|
2557
2825
|
printerId: string;
|
|
2558
2826
|
type?: "print.ticket" | "print.label" | "print.receipt";
|
|
@@ -2685,6 +2953,61 @@ export declare class BackstageClient {
|
|
|
2685
2953
|
}[]>;
|
|
2686
2954
|
};
|
|
2687
2955
|
paymentProviders: {
|
|
2956
|
+
enableTicketlayerPay: (request: {
|
|
2957
|
+
displayName?: string;
|
|
2958
|
+
contactEmail?: string;
|
|
2959
|
+
country?: string;
|
|
2960
|
+
currency?: string;
|
|
2961
|
+
metadata?: Record<string, any>;
|
|
2962
|
+
}) => Promise<{
|
|
2963
|
+
status: components["schemas"]["TicketlayerPayStatus"];
|
|
2964
|
+
created: boolean;
|
|
2965
|
+
}>;
|
|
2966
|
+
getTicketlayerPay: (options?: {
|
|
2967
|
+
refresh?: "0" | "1" | "true" | "false";
|
|
2968
|
+
}) => Promise<any>;
|
|
2969
|
+
createTicketlayerPayOnboardingSession: () => Promise<any>;
|
|
2970
|
+
createTicketlayerPayOnboardingLink: (request: {
|
|
2971
|
+
returnUrl: string;
|
|
2972
|
+
refreshUrl: string;
|
|
2973
|
+
}) => Promise<{
|
|
2974
|
+
url: string;
|
|
2975
|
+
expiresAt: string;
|
|
2976
|
+
connectedAccountId: string;
|
|
2977
|
+
}>;
|
|
2978
|
+
linkStripeConnect: (request: {
|
|
2979
|
+
secretKey: string;
|
|
2980
|
+
publishableKey: string;
|
|
2981
|
+
defaultMode: "direct" | "connected";
|
|
2982
|
+
name?: string;
|
|
2983
|
+
applicationFee?: any;
|
|
2984
|
+
refundApplicationFee?: boolean;
|
|
2985
|
+
}) => Promise<{
|
|
2986
|
+
provider: components["schemas"]["StripeConnectProvider"];
|
|
2987
|
+
created: boolean;
|
|
2988
|
+
}>;
|
|
2989
|
+
getStripeConnect: () => Promise<any>;
|
|
2990
|
+
listAccounts: (providerId: string) => Promise<any>;
|
|
2991
|
+
getAccount: (providerId: string, accountId: string, options?: {
|
|
2992
|
+
refresh?: "0" | "1" | "true" | "false";
|
|
2993
|
+
}) => Promise<any>;
|
|
2994
|
+
setAccountMode: (providerId: string, accountId: string, request: {
|
|
2995
|
+
mode: "direct" | "connected";
|
|
2996
|
+
connectedAccountId?: string;
|
|
2997
|
+
displayName?: string;
|
|
2998
|
+
contactEmail?: string;
|
|
2999
|
+
country?: string;
|
|
3000
|
+
currency?: string;
|
|
3001
|
+
}) => Promise<any>;
|
|
3002
|
+
createAccountOnboardingSession: (providerId: string, accountId: string) => Promise<any>;
|
|
3003
|
+
createAccountOnboardingLink: (providerId: string, accountId: string, request: {
|
|
3004
|
+
returnUrl: string;
|
|
3005
|
+
refreshUrl: string;
|
|
3006
|
+
}) => Promise<{
|
|
3007
|
+
url: string;
|
|
3008
|
+
expiresAt: string;
|
|
3009
|
+
connectedAccountId: string;
|
|
3010
|
+
}>;
|
|
2688
3011
|
create: (request: {
|
|
2689
3012
|
accountId?: string;
|
|
2690
3013
|
type: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer";
|
|
@@ -2733,7 +3056,7 @@ export declare class BackstageClient {
|
|
|
2733
3056
|
isDefault: boolean;
|
|
2734
3057
|
priority: number;
|
|
2735
3058
|
feeStructure: components["schemas"]["FeeStructure"];
|
|
2736
|
-
applicationFee: components["schemas"]["ApplicationFee"];
|
|
3059
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
2737
3060
|
metadata: {
|
|
2738
3061
|
[key: string]: unknown;
|
|
2739
3062
|
} | null;
|
|
@@ -2776,7 +3099,7 @@ export declare class BackstageClient {
|
|
|
2776
3099
|
isDefault: boolean;
|
|
2777
3100
|
priority: number;
|
|
2778
3101
|
feeStructure: components["schemas"]["FeeStructure"];
|
|
2779
|
-
applicationFee: components["schemas"]["ApplicationFee"];
|
|
3102
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
2780
3103
|
metadata: {
|
|
2781
3104
|
[key: string]: unknown;
|
|
2782
3105
|
} | null;
|
|
@@ -2801,7 +3124,7 @@ export declare class BackstageClient {
|
|
|
2801
3124
|
isDefault: boolean;
|
|
2802
3125
|
priority: number;
|
|
2803
3126
|
feeStructure: components["schemas"]["FeeStructure"];
|
|
2804
|
-
applicationFee: components["schemas"]["ApplicationFee"];
|
|
3127
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
2805
3128
|
metadata: {
|
|
2806
3129
|
[key: string]: unknown;
|
|
2807
3130
|
} | null;
|
|
@@ -2834,7 +3157,7 @@ export declare class BackstageClient {
|
|
|
2834
3157
|
fixed?: number;
|
|
2835
3158
|
currency?: string;
|
|
2836
3159
|
};
|
|
2837
|
-
applicationFee?:
|
|
3160
|
+
applicationFee?: any;
|
|
2838
3161
|
metadata?: Record<string, any>;
|
|
2839
3162
|
}) => Promise<{
|
|
2840
3163
|
id: string;
|
|
@@ -2854,7 +3177,7 @@ export declare class BackstageClient {
|
|
|
2854
3177
|
isDefault: boolean;
|
|
2855
3178
|
priority: number;
|
|
2856
3179
|
feeStructure: components["schemas"]["FeeStructure"];
|
|
2857
|
-
applicationFee: components["schemas"]["ApplicationFee"];
|
|
3180
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
2858
3181
|
metadata: {
|
|
2859
3182
|
[key: string]: unknown;
|
|
2860
3183
|
} | null;
|
|
@@ -2865,60 +3188,37 @@ export declare class BackstageClient {
|
|
|
2865
3188
|
success: boolean;
|
|
2866
3189
|
id: string;
|
|
2867
3190
|
}>;
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
3191
|
+
reportStatus: (providerId: string, request: {
|
|
3192
|
+
status: "active" | "inactive" | "pending_setup";
|
|
3193
|
+
chargesEnabled?: boolean;
|
|
3194
|
+
payoutsEnabled?: boolean;
|
|
3195
|
+
onboardingStatus?: "pending" | "in_progress" | "complete" | "restricted";
|
|
3196
|
+
externalAccountId?: string;
|
|
2873
3197
|
metadata?: Record<string, any>;
|
|
2874
3198
|
}) => 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;
|
|
3199
|
+
id: string;
|
|
3200
|
+
organisationId: string;
|
|
3201
|
+
accountId: string | null;
|
|
3202
|
+
type: "stripe_connect" | "stripe_direct" | "adyen" | "square" | "paypal" | "cash" | "bank_transfer";
|
|
3203
|
+
name: string;
|
|
3204
|
+
description: string | null;
|
|
3205
|
+
status: "active" | "inactive" | "pending_setup";
|
|
3206
|
+
integrationServiceUrl: string | null;
|
|
3207
|
+
integrationServiceVersion: string;
|
|
3208
|
+
configuration: {
|
|
3209
|
+
[key: string]: unknown;
|
|
3210
|
+
};
|
|
3211
|
+
supportedPaymentTypes: ("online_card" | "online_bank_transfer" | "online_wallet" | "in_person_card" | "in_person_cash" | "bank_transfer" | "cheque")[];
|
|
3212
|
+
capabilities: components["schemas"]["PaymentProviderCapabilities"];
|
|
3213
|
+
isDefault: boolean;
|
|
3214
|
+
priority: number;
|
|
3215
|
+
feeStructure: components["schemas"]["FeeStructure"];
|
|
3216
|
+
applicationFee: components["schemas"]["ApplicationFee"] & (Record<string, never> | null);
|
|
3217
|
+
metadata: {
|
|
3218
|
+
[key: string]: unknown;
|
|
3219
|
+
} | null;
|
|
3220
|
+
createdAt: string;
|
|
3221
|
+
updatedAt: string;
|
|
2922
3222
|
}>;
|
|
2923
3223
|
};
|
|
2924
3224
|
salesChannels: ((channelId: string) => {
|
|
@@ -3290,6 +3590,61 @@ export declare class BackstageClient {
|
|
|
3290
3590
|
updatedAt: string;
|
|
3291
3591
|
}>;
|
|
3292
3592
|
delete: (channelId: string) => Promise<boolean>;
|
|
3593
|
+
getCatalogue: (channelId: string) => Promise<{
|
|
3594
|
+
channel: components["schemas"]["SalesChannelSummary"];
|
|
3595
|
+
listings: components["schemas"]["SalesListing"][];
|
|
3596
|
+
}>;
|
|
3597
|
+
getCatalogueEvent: (channelId: string, eventId: string) => Promise<{
|
|
3598
|
+
id: string;
|
|
3599
|
+
name: string;
|
|
3600
|
+
subtitle: string | null;
|
|
3601
|
+
description: string | null;
|
|
3602
|
+
shortDescription: string | null;
|
|
3603
|
+
status: string;
|
|
3604
|
+
imageUrl: string | null;
|
|
3605
|
+
heroImageUrl: string | null;
|
|
3606
|
+
presentation: {
|
|
3607
|
+
heroLayout?: {
|
|
3608
|
+
type: "hero" | "cinema";
|
|
3609
|
+
size: "small" | "medium" | "large";
|
|
3610
|
+
};
|
|
3611
|
+
cinemaGradient?: {
|
|
3612
|
+
strength: 20 | 50 | 70;
|
|
3613
|
+
position: "bottom" | "center";
|
|
3614
|
+
};
|
|
3615
|
+
twoColumnSplit?: [number, number];
|
|
3616
|
+
navbar?: {
|
|
3617
|
+
transparent?: boolean;
|
|
3618
|
+
};
|
|
3619
|
+
buttonSize?: "small" | "medium" | "large";
|
|
3620
|
+
} | null;
|
|
3621
|
+
venueId: string | null;
|
|
3622
|
+
venueName: string | null;
|
|
3623
|
+
venueCity: string | null;
|
|
3624
|
+
priceFrom: number | null;
|
|
3625
|
+
currency: string | null;
|
|
3626
|
+
timezone: string;
|
|
3627
|
+
occurrences: {
|
|
3628
|
+
id: string;
|
|
3629
|
+
startsAt: string | null;
|
|
3630
|
+
endsAt: string | null;
|
|
3631
|
+
timezone: string;
|
|
3632
|
+
startDate: string;
|
|
3633
|
+
startTime: string;
|
|
3634
|
+
endDate: string;
|
|
3635
|
+
endTime: string;
|
|
3636
|
+
status: string;
|
|
3637
|
+
ticketTypes: {
|
|
3638
|
+
ticketTypeId: string;
|
|
3639
|
+
ticketTypeName: string;
|
|
3640
|
+
description: string | null;
|
|
3641
|
+
categoryId: string;
|
|
3642
|
+
categoryName: string;
|
|
3643
|
+
unitPrice: number;
|
|
3644
|
+
currency: string;
|
|
3645
|
+
}[];
|
|
3646
|
+
}[];
|
|
3647
|
+
}>;
|
|
3293
3648
|
};
|
|
3294
3649
|
presaleCodes: {
|
|
3295
3650
|
create: (request: {
|
|
@@ -3416,277 +3771,7 @@ export declare class BackstageClient {
|
|
|
3416
3771
|
}>;
|
|
3417
3772
|
delete: (profileId: string) => Promise<boolean>;
|
|
3418
3773
|
};
|
|
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: {
|
|
3774
|
+
themes: {
|
|
3690
3775
|
list: () => Promise<{
|
|
3691
3776
|
id: string;
|
|
3692
3777
|
organisationId: string;
|
|
@@ -4490,6 +4575,7 @@ export declare class BackstageClient {
|
|
|
4490
4575
|
devices: {
|
|
4491
4576
|
printers: () => Promise<any>;
|
|
4492
4577
|
mediaCatalog: () => Promise<any>;
|
|
4578
|
+
getCommand: (commandId: string) => Promise<any>;
|
|
4493
4579
|
list: (options?: {
|
|
4494
4580
|
accountId?: string;
|
|
4495
4581
|
type?: string;
|
|
@@ -4520,7 +4606,6 @@ export declare class BackstageClient {
|
|
|
4520
4606
|
idempotencyKey?: string;
|
|
4521
4607
|
}) => Promise<any>;
|
|
4522
4608
|
listCommands: (deviceId: string) => Promise<any>;
|
|
4523
|
-
getCommand: (commandId: string) => Promise<any>;
|
|
4524
4609
|
listEvents: (deviceId: string) => Promise<any>;
|
|
4525
4610
|
mintLocalToken: (deviceId: string, request: {
|
|
4526
4611
|
allowedCommandTypes?: string[];
|
|
@@ -4923,16 +5008,16 @@ export declare class BackstageClient {
|
|
|
4923
5008
|
delete: (endpointId: string) => Promise<any>;
|
|
4924
5009
|
test: (endpointId: string) => Promise<any>;
|
|
4925
5010
|
};
|
|
4926
|
-
webhookEventTypes: {
|
|
4927
|
-
list: () => Promise<any>;
|
|
4928
|
-
};
|
|
4929
5011
|
webhookDeliveries: {
|
|
4930
|
-
listInbound: () => Promise<any>;
|
|
4931
5012
|
list: (options?: {
|
|
4932
5013
|
endpointId?: string;
|
|
4933
5014
|
limit?: number;
|
|
4934
5015
|
}) => Promise<any>;
|
|
4935
5016
|
get: (deliveryId: string) => Promise<any>;
|
|
5017
|
+
listInbound: () => Promise<any>;
|
|
5018
|
+
};
|
|
5019
|
+
webhookEventTypes: {
|
|
5020
|
+
list: () => Promise<any>;
|
|
4936
5021
|
};
|
|
4937
5022
|
integrations: {
|
|
4938
5023
|
list: () => Promise<any>;
|
|
@@ -4940,6 +5025,276 @@ export declare class BackstageClient {
|
|
|
4940
5025
|
get: (id: string) => Promise<any>;
|
|
4941
5026
|
revokeConnection: (id: string) => Promise<any>;
|
|
4942
5027
|
};
|
|
5028
|
+
sales: {
|
|
5029
|
+
resolveChannel: (options?: {
|
|
5030
|
+
domain: string;
|
|
5031
|
+
}) => Promise<{
|
|
5032
|
+
channel: components["schemas"]["SalesChannelSummary"];
|
|
5033
|
+
publishableKey: string | null;
|
|
5034
|
+
}>;
|
|
5035
|
+
get: (eventId: string) => Promise<{
|
|
5036
|
+
id: string;
|
|
5037
|
+
name: string;
|
|
5038
|
+
subtitle: string | null;
|
|
5039
|
+
description: string | null;
|
|
5040
|
+
shortDescription: string | null;
|
|
5041
|
+
status: string;
|
|
5042
|
+
imageUrl: string | null;
|
|
5043
|
+
heroImageUrl: string | null;
|
|
5044
|
+
presentation: {
|
|
5045
|
+
heroLayout?: {
|
|
5046
|
+
type: "hero" | "cinema";
|
|
5047
|
+
size: "small" | "medium" | "large";
|
|
5048
|
+
};
|
|
5049
|
+
cinemaGradient?: {
|
|
5050
|
+
strength: 20 | 50 | 70;
|
|
5051
|
+
position: "bottom" | "center";
|
|
5052
|
+
};
|
|
5053
|
+
twoColumnSplit?: [number, number];
|
|
5054
|
+
navbar?: {
|
|
5055
|
+
transparent?: boolean;
|
|
5056
|
+
};
|
|
5057
|
+
buttonSize?: "small" | "medium" | "large";
|
|
5058
|
+
} | null;
|
|
5059
|
+
venueId: string | null;
|
|
5060
|
+
venueName: string | null;
|
|
5061
|
+
venueCity: string | null;
|
|
5062
|
+
priceFrom: number | null;
|
|
5063
|
+
currency: string | null;
|
|
5064
|
+
timezone: string;
|
|
5065
|
+
occurrences: {
|
|
5066
|
+
id: string;
|
|
5067
|
+
startsAt: string | null;
|
|
5068
|
+
endsAt: string | null;
|
|
5069
|
+
timezone: string;
|
|
5070
|
+
startDate: string;
|
|
5071
|
+
startTime: string;
|
|
5072
|
+
endDate: string;
|
|
5073
|
+
endTime: string;
|
|
5074
|
+
status: string;
|
|
5075
|
+
ticketTypes: {
|
|
5076
|
+
ticketTypeId: string;
|
|
5077
|
+
ticketTypeName: string;
|
|
5078
|
+
description: string | null;
|
|
5079
|
+
categoryId: string;
|
|
5080
|
+
categoryName: string;
|
|
5081
|
+
unitPrice: number;
|
|
5082
|
+
currency: string;
|
|
5083
|
+
}[];
|
|
5084
|
+
}[];
|
|
5085
|
+
}>;
|
|
5086
|
+
getTheme: () => Promise<{
|
|
5087
|
+
id: string;
|
|
5088
|
+
name: string;
|
|
5089
|
+
brand: {
|
|
5090
|
+
[key: string]: unknown;
|
|
5091
|
+
};
|
|
5092
|
+
colors: {
|
|
5093
|
+
[key: string]: unknown;
|
|
5094
|
+
};
|
|
5095
|
+
typography: {
|
|
5096
|
+
[key: string]: unknown;
|
|
5097
|
+
};
|
|
5098
|
+
shape: {
|
|
5099
|
+
[key: string]: unknown;
|
|
5100
|
+
};
|
|
5101
|
+
design?: {
|
|
5102
|
+
[key: string]: unknown;
|
|
5103
|
+
} | null;
|
|
5104
|
+
}>;
|
|
5105
|
+
};
|
|
5106
|
+
salesCustomerAuth: {
|
|
5107
|
+
magicLink: (request: {
|
|
5108
|
+
email?: string;
|
|
5109
|
+
phone?: string;
|
|
5110
|
+
}) => Promise<boolean>;
|
|
5111
|
+
};
|
|
5112
|
+
salesCustomerTokens: {
|
|
5113
|
+
create: (request: {
|
|
5114
|
+
proof: any;
|
|
5115
|
+
}) => Promise<{
|
|
5116
|
+
customerToken: string;
|
|
5117
|
+
expiresIn: number;
|
|
5118
|
+
customer: components["schemas"]["SalesCustomer"];
|
|
5119
|
+
}>;
|
|
5120
|
+
refresh: () => Promise<{
|
|
5121
|
+
customerToken: string;
|
|
5122
|
+
expiresIn: number;
|
|
5123
|
+
customer: components["schemas"]["SalesCustomer"];
|
|
5124
|
+
}>;
|
|
5125
|
+
};
|
|
5126
|
+
salesListings: {
|
|
5127
|
+
list: () => Promise<{
|
|
5128
|
+
channel: components["schemas"]["SalesChannelSummary"];
|
|
5129
|
+
listings: components["schemas"]["SalesListing"][];
|
|
5130
|
+
}>;
|
|
5131
|
+
};
|
|
5132
|
+
salesCarts: {
|
|
5133
|
+
create: (request: {
|
|
5134
|
+
metadata?: Record<string, any>;
|
|
5135
|
+
}) => Promise<{
|
|
5136
|
+
id: string;
|
|
5137
|
+
status: string;
|
|
5138
|
+
currency: string | null;
|
|
5139
|
+
expiresAt: string;
|
|
5140
|
+
orderId: string | null;
|
|
5141
|
+
items: components["schemas"]["SalesCartItem"][];
|
|
5142
|
+
itemsSubtotal: number;
|
|
5143
|
+
}>;
|
|
5144
|
+
get: (cartId: string) => Promise<{
|
|
5145
|
+
id: string;
|
|
5146
|
+
status: string;
|
|
5147
|
+
currency: string | null;
|
|
5148
|
+
expiresAt: string;
|
|
5149
|
+
orderId: string | null;
|
|
5150
|
+
items: components["schemas"]["SalesCartItem"][];
|
|
5151
|
+
itemsSubtotal: number;
|
|
5152
|
+
}>;
|
|
5153
|
+
addItem: (cartId: string, request: {
|
|
5154
|
+
eventOccurrenceId: string;
|
|
5155
|
+
categoryId: string;
|
|
5156
|
+
ticketTypeId: string;
|
|
5157
|
+
quantity?: number;
|
|
5158
|
+
eventLayoutAreaId?: string;
|
|
5159
|
+
eventLayoutSeatIds?: string[];
|
|
5160
|
+
}) => Promise<{
|
|
5161
|
+
id: string;
|
|
5162
|
+
status: string;
|
|
5163
|
+
currency: string | null;
|
|
5164
|
+
expiresAt: string;
|
|
5165
|
+
orderId: string | null;
|
|
5166
|
+
items: components["schemas"]["SalesCartItem"][];
|
|
5167
|
+
itemsSubtotal: number;
|
|
5168
|
+
}>;
|
|
5169
|
+
removeItem: (cartId: string, itemId: string) => Promise<{
|
|
5170
|
+
id: string;
|
|
5171
|
+
status: string;
|
|
5172
|
+
currency: string | null;
|
|
5173
|
+
expiresAt: string;
|
|
5174
|
+
orderId: string | null;
|
|
5175
|
+
items: components["schemas"]["SalesCartItem"][];
|
|
5176
|
+
itemsSubtotal: number;
|
|
5177
|
+
}>;
|
|
5178
|
+
checkout: (cartId: string, request: {
|
|
5179
|
+
customerNotes?: string;
|
|
5180
|
+
metadata?: Record<string, any>;
|
|
5181
|
+
customer?: {
|
|
5182
|
+
email: string;
|
|
5183
|
+
firstName?: string;
|
|
5184
|
+
lastName?: string;
|
|
5185
|
+
phone?: string;
|
|
5186
|
+
marketingConsent?: boolean;
|
|
5187
|
+
};
|
|
5188
|
+
}) => Promise<{
|
|
5189
|
+
cart: components["schemas"]["SalesCart"];
|
|
5190
|
+
order: components["schemas"]["SalesOrder"];
|
|
5191
|
+
orderAccessToken: string;
|
|
5192
|
+
}>;
|
|
5193
|
+
};
|
|
5194
|
+
salesMyOrders: {
|
|
5195
|
+
list: () => Promise<{
|
|
5196
|
+
id: string;
|
|
5197
|
+
orderNumber: string;
|
|
5198
|
+
status: string;
|
|
5199
|
+
paymentStatus: string;
|
|
5200
|
+
currency: string;
|
|
5201
|
+
items: components["schemas"]["SalesOrderItem"][];
|
|
5202
|
+
subtotal: number;
|
|
5203
|
+
totalFees: number;
|
|
5204
|
+
totalTax: number;
|
|
5205
|
+
total: number;
|
|
5206
|
+
tickets: components["schemas"]["SalesTicket"][];
|
|
5207
|
+
expiresAt: string | null;
|
|
5208
|
+
createdAt: string;
|
|
5209
|
+
}[]>;
|
|
5210
|
+
};
|
|
5211
|
+
salesOrders: {
|
|
5212
|
+
get: (orderId: string) => Promise<{
|
|
5213
|
+
id: string;
|
|
5214
|
+
orderNumber: string;
|
|
5215
|
+
status: string;
|
|
5216
|
+
paymentStatus: string;
|
|
5217
|
+
currency: string;
|
|
5218
|
+
items: components["schemas"]["SalesOrderItem"][];
|
|
5219
|
+
subtotal: number;
|
|
5220
|
+
totalFees: number;
|
|
5221
|
+
totalTax: number;
|
|
5222
|
+
total: number;
|
|
5223
|
+
tickets: components["schemas"]["SalesTicket"][];
|
|
5224
|
+
expiresAt: string | null;
|
|
5225
|
+
createdAt: string;
|
|
5226
|
+
}>;
|
|
5227
|
+
ticketPdf: (orderId: string, passId: string) => Promise<any>;
|
|
5228
|
+
};
|
|
5229
|
+
salesOrderPayments: {
|
|
5230
|
+
create: (orderId: string, request: {
|
|
5231
|
+
paymentType?: "online_card" | "online_bank_transfer" | "online_wallet";
|
|
5232
|
+
returnUrl?: string;
|
|
5233
|
+
}) => Promise<{
|
|
5234
|
+
id: string;
|
|
5235
|
+
orderId: string;
|
|
5236
|
+
status: string;
|
|
5237
|
+
paymentType: string;
|
|
5238
|
+
amount: number;
|
|
5239
|
+
currency: string;
|
|
5240
|
+
providerClientSecret: string | null;
|
|
5241
|
+
externalPaymentUrl: string | null;
|
|
5242
|
+
publishableKey: string | null;
|
|
5243
|
+
connectedAccountId: string | null;
|
|
5244
|
+
providerType: string | null;
|
|
5245
|
+
}>;
|
|
5246
|
+
};
|
|
5247
|
+
salesRefundRequests: {
|
|
5248
|
+
create: (orderId: string, request: {
|
|
5249
|
+
type: "refund" | "exchange";
|
|
5250
|
+
reason?: string;
|
|
5251
|
+
}) => Promise<{
|
|
5252
|
+
id: string;
|
|
5253
|
+
orderId: string;
|
|
5254
|
+
type: string;
|
|
5255
|
+
status: string;
|
|
5256
|
+
reason: string | null;
|
|
5257
|
+
createdAt: string;
|
|
5258
|
+
}>;
|
|
5259
|
+
};
|
|
5260
|
+
salesCustomers: {
|
|
5261
|
+
create: (request: {
|
|
5262
|
+
email: string;
|
|
5263
|
+
firstName?: string;
|
|
5264
|
+
lastName?: string;
|
|
5265
|
+
phone?: string;
|
|
5266
|
+
marketingConsent?: boolean;
|
|
5267
|
+
}) => Promise<{
|
|
5268
|
+
id: string;
|
|
5269
|
+
email: string;
|
|
5270
|
+
firstName: string | null;
|
|
5271
|
+
lastName: string | null;
|
|
5272
|
+
}>;
|
|
5273
|
+
get: (customerId: string) => Promise<{
|
|
5274
|
+
id: string;
|
|
5275
|
+
email: string;
|
|
5276
|
+
firstName: string | null;
|
|
5277
|
+
lastName: string | null;
|
|
5278
|
+
}>;
|
|
5279
|
+
update: (customerId: string, request: {
|
|
5280
|
+
firstName?: string;
|
|
5281
|
+
lastName?: string;
|
|
5282
|
+
phone?: string;
|
|
5283
|
+
}) => Promise<{
|
|
5284
|
+
id: string;
|
|
5285
|
+
email: string;
|
|
5286
|
+
firstName: string | null;
|
|
5287
|
+
lastName: string | null;
|
|
5288
|
+
}>;
|
|
5289
|
+
};
|
|
5290
|
+
salesPresaleCodes: {
|
|
5291
|
+
redeem: (request: {
|
|
5292
|
+
code: string;
|
|
5293
|
+
}) => Promise<{
|
|
5294
|
+
benefit: string;
|
|
5295
|
+
alreadyHeld: boolean;
|
|
5296
|
+
}>;
|
|
5297
|
+
};
|
|
4943
5298
|
}
|
|
4944
5299
|
export {};
|
|
4945
5300
|
//# sourceMappingURL=client.d.ts.map
|