@livdot-tech/contracts 1.0.0 → 1.1.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/auth/index.d.mts +225 -0
- package/dist/auth/index.d.ts +225 -0
- package/dist/auth/index.js +2 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/index.mjs +2 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/booking/index.d.mts +294 -0
- package/dist/booking/index.d.ts +294 -0
- package/dist/booking/index.js +2 -0
- package/dist/booking/index.js.map +1 -0
- package/dist/booking/index.mjs +2 -0
- package/dist/booking/index.mjs.map +1 -0
- package/dist/chunk-3CP6L2MG.js +2 -0
- package/dist/chunk-3CP6L2MG.js.map +1 -0
- package/dist/chunk-4FNHHHYR.mjs +2 -0
- package/dist/chunk-4FNHHHYR.mjs.map +1 -0
- package/dist/chunk-6G6C3SHC.js +2 -0
- package/dist/chunk-6G6C3SHC.js.map +1 -0
- package/dist/chunk-6UTUVCOM.mjs +2 -0
- package/dist/chunk-6UTUVCOM.mjs.map +1 -0
- package/dist/chunk-726BT6I5.js +2 -0
- package/dist/chunk-726BT6I5.js.map +1 -0
- package/dist/chunk-CLWT3LEH.mjs +2 -0
- package/dist/chunk-CLWT3LEH.mjs.map +1 -0
- package/dist/chunk-F663RS3D.js +2 -0
- package/dist/chunk-F663RS3D.js.map +1 -0
- package/dist/chunk-FSQX27QM.mjs +2 -0
- package/dist/chunk-FSQX27QM.mjs.map +1 -0
- package/dist/chunk-I75WHCI2.js +2 -0
- package/dist/chunk-I75WHCI2.js.map +1 -0
- package/dist/chunk-JT7SH43N.js +2 -0
- package/dist/chunk-JT7SH43N.js.map +1 -0
- package/dist/chunk-MRGEHWW3.js +2 -0
- package/dist/chunk-MRGEHWW3.js.map +1 -0
- package/dist/chunk-OGZ42P7K.js +2 -0
- package/dist/chunk-OGZ42P7K.js.map +1 -0
- package/dist/chunk-PQC527QJ.mjs +2 -0
- package/dist/chunk-PQC527QJ.mjs.map +1 -0
- package/dist/chunk-Q3PSIS6S.mjs +2 -0
- package/dist/chunk-Q3PSIS6S.mjs.map +1 -0
- package/dist/chunk-Q4VUDG2H.js +2 -0
- package/dist/chunk-Q4VUDG2H.js.map +1 -0
- package/dist/chunk-QBA77JOP.mjs +2 -0
- package/dist/chunk-QBA77JOP.mjs.map +1 -0
- package/dist/chunk-SHD2H6WD.mjs +2 -0
- package/dist/chunk-SHD2H6WD.mjs.map +1 -0
- package/dist/chunk-SILY3VKG.js +2 -0
- package/dist/chunk-SILY3VKG.js.map +1 -0
- package/dist/chunk-TTDRYA7J.mjs +2 -0
- package/dist/chunk-TTDRYA7J.mjs.map +1 -0
- package/dist/chunk-WEET4HBJ.mjs +2 -0
- package/dist/chunk-WEET4HBJ.mjs.map +1 -0
- package/dist/common/index.d.mts +315 -0
- package/dist/common/index.d.ts +315 -0
- package/dist/common/index.js +2 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/index.mjs +2 -0
- package/dist/common/index.mjs.map +1 -0
- package/dist/dispute/index.d.mts +79 -0
- package/dist/dispute/index.d.ts +79 -0
- package/dist/dispute/index.js +2 -0
- package/dist/dispute/index.js.map +1 -0
- package/dist/dispute/index.mjs +2 -0
- package/dist/dispute/index.mjs.map +1 -0
- package/dist/errors/index.d.mts +67 -0
- package/dist/errors/index.d.ts +67 -0
- package/dist/errors/index.js +2 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/index.mjs +2 -0
- package/dist/errors/index.mjs.map +1 -0
- package/dist/event/index.d.mts +270 -0
- package/dist/event/index.d.ts +270 -0
- package/dist/event/index.js +2 -0
- package/dist/event/index.js.map +1 -0
- package/dist/event/index.mjs +2 -0
- package/dist/event/index.mjs.map +1 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/notification/index.d.mts +113 -0
- package/dist/notification/index.d.ts +113 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/index.js.map +1 -0
- package/dist/notification/index.mjs +2 -0
- package/dist/notification/index.mjs.map +1 -0
- package/dist/payment/index.d.mts +119 -0
- package/dist/payment/index.d.ts +119 -0
- package/dist/payment/index.js +2 -0
- package/dist/payment/index.js.map +1 -0
- package/dist/payment/index.mjs +2 -0
- package/dist/payment/index.mjs.map +1 -0
- package/dist/streaming/index.d.mts +79 -0
- package/dist/streaming/index.d.ts +79 -0
- package/dist/streaming/index.js +2 -0
- package/dist/streaming/index.js.map +1 -0
- package/dist/streaming/index.mjs +2 -0
- package/dist/streaming/index.mjs.map +1 -0
- package/dist/user/index.d.mts +236 -0
- package/dist/user/index.d.ts +236 -0
- package/dist/user/index.js +2 -0
- package/dist/user/index.js.map +1 -0
- package/dist/user/index.mjs +2 -0
- package/dist/user/index.mjs.map +1 -0
- package/package.json +27 -5
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const DisputeType: {
|
|
4
|
+
readonly SERVICE_NOT_DELIVERED: "SERVICE_NOT_DELIVERED";
|
|
5
|
+
readonly QUALITY_ISSUE: "QUALITY_ISSUE";
|
|
6
|
+
readonly PAYMENT_DISPUTE: "PAYMENT_DISPUTE";
|
|
7
|
+
readonly CANCELLATION_DISPUTE: "CANCELLATION_DISPUTE";
|
|
8
|
+
readonly OTHER: "OTHER";
|
|
9
|
+
};
|
|
10
|
+
type DisputeType = (typeof DisputeType)[keyof typeof DisputeType];
|
|
11
|
+
declare const DisputeStatus: {
|
|
12
|
+
readonly OPEN: "open";
|
|
13
|
+
readonly UNDER_REVIEW: "under_review";
|
|
14
|
+
readonly RESOLVED: "resolved";
|
|
15
|
+
readonly CLOSED: "closed";
|
|
16
|
+
};
|
|
17
|
+
type DisputeStatus = (typeof DisputeStatus)[keyof typeof DisputeStatus];
|
|
18
|
+
|
|
19
|
+
declare const DisputeResponseSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
transactionId: z.ZodString;
|
|
22
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
bookingId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
userId: z.ZodString;
|
|
25
|
+
disputeType: z.ZodNativeEnum<{
|
|
26
|
+
readonly SERVICE_NOT_DELIVERED: "SERVICE_NOT_DELIVERED";
|
|
27
|
+
readonly QUALITY_ISSUE: "QUALITY_ISSUE";
|
|
28
|
+
readonly PAYMENT_DISPUTE: "PAYMENT_DISPUTE";
|
|
29
|
+
readonly CANCELLATION_DISPUTE: "CANCELLATION_DISPUTE";
|
|
30
|
+
readonly OTHER: "OTHER";
|
|
31
|
+
}>;
|
|
32
|
+
reason: z.ZodString;
|
|
33
|
+
amountInDispute: z.ZodNumber;
|
|
34
|
+
disputeStatus: z.ZodNativeEnum<{
|
|
35
|
+
readonly OPEN: "open";
|
|
36
|
+
readonly UNDER_REVIEW: "under_review";
|
|
37
|
+
readonly RESOLVED: "resolved";
|
|
38
|
+
readonly CLOSED: "closed";
|
|
39
|
+
}>;
|
|
40
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
41
|
+
reportedAt: z.ZodString;
|
|
42
|
+
slaDeadline: z.ZodString;
|
|
43
|
+
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
44
|
+
createdAt: z.ZodString;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
id: string;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
userId: string;
|
|
49
|
+
transactionId: string;
|
|
50
|
+
disputeType: "OTHER" | "SERVICE_NOT_DELIVERED" | "QUALITY_ISSUE" | "PAYMENT_DISPUTE" | "CANCELLATION_DISPUTE";
|
|
51
|
+
reason: string;
|
|
52
|
+
amountInDispute: number;
|
|
53
|
+
disputeStatus: "open" | "under_review" | "resolved" | "closed";
|
|
54
|
+
reportedAt: string;
|
|
55
|
+
slaDeadline: string;
|
|
56
|
+
eventId?: string | undefined;
|
|
57
|
+
bookingId?: string | undefined;
|
|
58
|
+
resolution?: string | undefined;
|
|
59
|
+
resolvedAt?: string | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
id: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
userId: string;
|
|
64
|
+
transactionId: string;
|
|
65
|
+
disputeType: "OTHER" | "SERVICE_NOT_DELIVERED" | "QUALITY_ISSUE" | "PAYMENT_DISPUTE" | "CANCELLATION_DISPUTE";
|
|
66
|
+
reason: string;
|
|
67
|
+
amountInDispute: number;
|
|
68
|
+
disputeStatus: "open" | "under_review" | "resolved" | "closed";
|
|
69
|
+
reportedAt: string;
|
|
70
|
+
slaDeadline: string;
|
|
71
|
+
eventId?: string | undefined;
|
|
72
|
+
bookingId?: string | undefined;
|
|
73
|
+
resolution?: string | undefined;
|
|
74
|
+
resolvedAt?: string | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
|
|
77
|
+
type DisputeResponse = z.infer<typeof DisputeResponseSchema>;
|
|
78
|
+
|
|
79
|
+
export { type DisputeResponse, DisputeResponseSchema, DisputeStatus, DisputeType };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const DisputeType: {
|
|
4
|
+
readonly SERVICE_NOT_DELIVERED: "SERVICE_NOT_DELIVERED";
|
|
5
|
+
readonly QUALITY_ISSUE: "QUALITY_ISSUE";
|
|
6
|
+
readonly PAYMENT_DISPUTE: "PAYMENT_DISPUTE";
|
|
7
|
+
readonly CANCELLATION_DISPUTE: "CANCELLATION_DISPUTE";
|
|
8
|
+
readonly OTHER: "OTHER";
|
|
9
|
+
};
|
|
10
|
+
type DisputeType = (typeof DisputeType)[keyof typeof DisputeType];
|
|
11
|
+
declare const DisputeStatus: {
|
|
12
|
+
readonly OPEN: "open";
|
|
13
|
+
readonly UNDER_REVIEW: "under_review";
|
|
14
|
+
readonly RESOLVED: "resolved";
|
|
15
|
+
readonly CLOSED: "closed";
|
|
16
|
+
};
|
|
17
|
+
type DisputeStatus = (typeof DisputeStatus)[keyof typeof DisputeStatus];
|
|
18
|
+
|
|
19
|
+
declare const DisputeResponseSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
transactionId: z.ZodString;
|
|
22
|
+
eventId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
bookingId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
userId: z.ZodString;
|
|
25
|
+
disputeType: z.ZodNativeEnum<{
|
|
26
|
+
readonly SERVICE_NOT_DELIVERED: "SERVICE_NOT_DELIVERED";
|
|
27
|
+
readonly QUALITY_ISSUE: "QUALITY_ISSUE";
|
|
28
|
+
readonly PAYMENT_DISPUTE: "PAYMENT_DISPUTE";
|
|
29
|
+
readonly CANCELLATION_DISPUTE: "CANCELLATION_DISPUTE";
|
|
30
|
+
readonly OTHER: "OTHER";
|
|
31
|
+
}>;
|
|
32
|
+
reason: z.ZodString;
|
|
33
|
+
amountInDispute: z.ZodNumber;
|
|
34
|
+
disputeStatus: z.ZodNativeEnum<{
|
|
35
|
+
readonly OPEN: "open";
|
|
36
|
+
readonly UNDER_REVIEW: "under_review";
|
|
37
|
+
readonly RESOLVED: "resolved";
|
|
38
|
+
readonly CLOSED: "closed";
|
|
39
|
+
}>;
|
|
40
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
41
|
+
reportedAt: z.ZodString;
|
|
42
|
+
slaDeadline: z.ZodString;
|
|
43
|
+
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
44
|
+
createdAt: z.ZodString;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
id: string;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
userId: string;
|
|
49
|
+
transactionId: string;
|
|
50
|
+
disputeType: "OTHER" | "SERVICE_NOT_DELIVERED" | "QUALITY_ISSUE" | "PAYMENT_DISPUTE" | "CANCELLATION_DISPUTE";
|
|
51
|
+
reason: string;
|
|
52
|
+
amountInDispute: number;
|
|
53
|
+
disputeStatus: "open" | "under_review" | "resolved" | "closed";
|
|
54
|
+
reportedAt: string;
|
|
55
|
+
slaDeadline: string;
|
|
56
|
+
eventId?: string | undefined;
|
|
57
|
+
bookingId?: string | undefined;
|
|
58
|
+
resolution?: string | undefined;
|
|
59
|
+
resolvedAt?: string | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
id: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
userId: string;
|
|
64
|
+
transactionId: string;
|
|
65
|
+
disputeType: "OTHER" | "SERVICE_NOT_DELIVERED" | "QUALITY_ISSUE" | "PAYMENT_DISPUTE" | "CANCELLATION_DISPUTE";
|
|
66
|
+
reason: string;
|
|
67
|
+
amountInDispute: number;
|
|
68
|
+
disputeStatus: "open" | "under_review" | "resolved" | "closed";
|
|
69
|
+
reportedAt: string;
|
|
70
|
+
slaDeadline: string;
|
|
71
|
+
eventId?: string | undefined;
|
|
72
|
+
bookingId?: string | undefined;
|
|
73
|
+
resolution?: string | undefined;
|
|
74
|
+
resolvedAt?: string | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
|
|
77
|
+
type DisputeResponse = z.infer<typeof DisputeResponseSchema>;
|
|
78
|
+
|
|
79
|
+
export { type DisputeResponse, DisputeResponseSchema, DisputeStatus, DisputeType };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkOGZ42P7K_js=require('../chunk-OGZ42P7K.js');Object.defineProperty(exports,"DisputeResponseSchema",{enumerable:true,get:function(){return chunkOGZ42P7K_js.c}});Object.defineProperty(exports,"DisputeStatus",{enumerable:true,get:function(){return chunkOGZ42P7K_js.b}});Object.defineProperty(exports,"DisputeType",{enumerable:true,get:function(){return chunkOGZ42P7K_js.a}});//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical machine-readable error codes for the LivDot platform.
|
|
3
|
+
* These codes are mapped to string slugs used in ApiError.type URLs.
|
|
4
|
+
*/
|
|
5
|
+
declare const ApiErrorCode: {
|
|
6
|
+
readonly INVALID_CREDENTIALS: "auth/invalid-credentials";
|
|
7
|
+
readonly TOKEN_EXPIRED: "auth/token-expired";
|
|
8
|
+
readonly TOKEN_INVALID: "auth/token-invalid";
|
|
9
|
+
readonly TOKEN_MISSING: "auth/token-missing";
|
|
10
|
+
readonly UNAUTHORIZED: "auth/unauthorized";
|
|
11
|
+
readonly FORBIDDEN: "auth/forbidden";
|
|
12
|
+
readonly EMAIL_NOT_VERIFIED: "auth/email-not-verified";
|
|
13
|
+
readonly EMAIL_ALREADY_EXISTS: "auth/email-already-exists";
|
|
14
|
+
readonly COGNITO_ERROR: "auth/cognito-error";
|
|
15
|
+
readonly USER_NOT_FOUND: "user/user-not-found";
|
|
16
|
+
readonly HOST_PROFILE_NOT_FOUND: "user/host-profile-not-found";
|
|
17
|
+
readonly HOST_PROFILE_ALREADY_EXISTS: "user/host-profile-already-exists";
|
|
18
|
+
readonly PRODUCER_PROFILE_NOT_FOUND: "user/producer-profile-not-found";
|
|
19
|
+
readonly PRODUCER_PROFILE_ALREADY_EXISTS: "user/producer-profile-already-exists";
|
|
20
|
+
readonly PRODUCER_NOT_VERIFIED: "user/producer-not-verified";
|
|
21
|
+
readonly ACCOUNT_SUSPENDED: "user/account-suspended";
|
|
22
|
+
readonly KYC_REQUIRED: "user/kyc-required";
|
|
23
|
+
readonly EVENT_NOT_FOUND: "event/event-not-found";
|
|
24
|
+
readonly EVENT_NOT_PUBLISHED: "event/event-not-published";
|
|
25
|
+
readonly EVENT_ALREADY_LIVE: "event/event-already-live";
|
|
26
|
+
readonly EVENT_CANCELLED: "event/event-cancelled";
|
|
27
|
+
readonly EVENT_ENDED: "event/event-ended";
|
|
28
|
+
readonly EVENT_STATE_TRANSITION_INVALID: "event/state-transition-invalid";
|
|
29
|
+
readonly EVENT_PREFLIGHT_FAILED: "event/preflight-failed";
|
|
30
|
+
readonly EVENT_MAX_TICKETS_REACHED: "event/max-tickets-reached";
|
|
31
|
+
readonly EVENT_GEO_RESTRICTED: "event/geo-restricted";
|
|
32
|
+
readonly EVENT_NOT_ACCESSIBLE: "event/not-accessible";
|
|
33
|
+
readonly BOOKING_NOT_FOUND: "booking/booking-not-found";
|
|
34
|
+
readonly BOOKING_STATE_TRANSITION_INVALID: "booking/state-transition-invalid";
|
|
35
|
+
readonly PRODUCER_UNAVAILABLE: "booking/producer-unavailable";
|
|
36
|
+
readonly ESCROW_FUNDING_FAILED: "booking/escrow-funding-failed";
|
|
37
|
+
readonly BOOKING_ALREADY_EXISTS: "booking/booking-already-exists";
|
|
38
|
+
readonly JOB_LISTING_NOT_FOUND: "booking/job-listing-not-found";
|
|
39
|
+
readonly JOB_LISTING_CLOSED: "booking/job-listing-closed";
|
|
40
|
+
readonly INDICATION_OF_INTEREST_DUPLICATE: "booking/ioi-duplicate";
|
|
41
|
+
readonly INDICATION_OF_INTEREST_NOT_FOUND: "booking/ioi-not-found";
|
|
42
|
+
readonly STREAM_NOT_ACTIVE: "stream/stream-not-active";
|
|
43
|
+
readonly ENTITLEMENT_NOT_FOUND: "stream/entitlement-not-found";
|
|
44
|
+
readonly ENTITLEMENT_EXPIRED: "stream/entitlement-expired";
|
|
45
|
+
readonly ENTITLEMENT_REVOKED: "stream/entitlement-revoked";
|
|
46
|
+
readonly STREAM_CREDENTIALS_UNAVAILABLE: "stream/credentials-unavailable";
|
|
47
|
+
readonly IVS_ERROR: "stream/ivs-error";
|
|
48
|
+
readonly PAYMENT_NOT_FOUND: "payment/payment-not-found";
|
|
49
|
+
readonly PAYMENT_ALREADY_PROCESSED: "payment/already-processed";
|
|
50
|
+
readonly PAYMENT_FAILED: "payment/payment-failed";
|
|
51
|
+
readonly REFUND_NOT_ELIGIBLE: "payment/refund-not-eligible";
|
|
52
|
+
readonly PAYOUT_FAILED: "payment/payout-failed";
|
|
53
|
+
readonly INVALID_AMOUNT: "payment/invalid-amount";
|
|
54
|
+
readonly PROVIDER_ERROR: "payment/provider-error";
|
|
55
|
+
readonly DISPUTE_NOT_FOUND: "dispute/dispute-not-found";
|
|
56
|
+
readonly DISPUTE_ALREADY_EXISTS: "dispute/dispute-already-exists";
|
|
57
|
+
readonly DISPUTE_DEADLINE_EXCEEDED: "dispute/deadline-exceeded";
|
|
58
|
+
readonly VALIDATION_ERROR: "general/validation-error";
|
|
59
|
+
readonly RESOURCE_NOT_FOUND: "general/resource-not-found";
|
|
60
|
+
readonly CONFLICT: "general/conflict";
|
|
61
|
+
readonly RATE_LIMITED: "general/rate-limited";
|
|
62
|
+
readonly INTERNAL_SERVER_ERROR: "general/internal-server-error";
|
|
63
|
+
readonly SERVICE_UNAVAILABLE: "general/service-unavailable";
|
|
64
|
+
};
|
|
65
|
+
type ApiErrorCode = (typeof ApiErrorCode)[keyof typeof ApiErrorCode];
|
|
66
|
+
|
|
67
|
+
export { ApiErrorCode };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical machine-readable error codes for the LivDot platform.
|
|
3
|
+
* These codes are mapped to string slugs used in ApiError.type URLs.
|
|
4
|
+
*/
|
|
5
|
+
declare const ApiErrorCode: {
|
|
6
|
+
readonly INVALID_CREDENTIALS: "auth/invalid-credentials";
|
|
7
|
+
readonly TOKEN_EXPIRED: "auth/token-expired";
|
|
8
|
+
readonly TOKEN_INVALID: "auth/token-invalid";
|
|
9
|
+
readonly TOKEN_MISSING: "auth/token-missing";
|
|
10
|
+
readonly UNAUTHORIZED: "auth/unauthorized";
|
|
11
|
+
readonly FORBIDDEN: "auth/forbidden";
|
|
12
|
+
readonly EMAIL_NOT_VERIFIED: "auth/email-not-verified";
|
|
13
|
+
readonly EMAIL_ALREADY_EXISTS: "auth/email-already-exists";
|
|
14
|
+
readonly COGNITO_ERROR: "auth/cognito-error";
|
|
15
|
+
readonly USER_NOT_FOUND: "user/user-not-found";
|
|
16
|
+
readonly HOST_PROFILE_NOT_FOUND: "user/host-profile-not-found";
|
|
17
|
+
readonly HOST_PROFILE_ALREADY_EXISTS: "user/host-profile-already-exists";
|
|
18
|
+
readonly PRODUCER_PROFILE_NOT_FOUND: "user/producer-profile-not-found";
|
|
19
|
+
readonly PRODUCER_PROFILE_ALREADY_EXISTS: "user/producer-profile-already-exists";
|
|
20
|
+
readonly PRODUCER_NOT_VERIFIED: "user/producer-not-verified";
|
|
21
|
+
readonly ACCOUNT_SUSPENDED: "user/account-suspended";
|
|
22
|
+
readonly KYC_REQUIRED: "user/kyc-required";
|
|
23
|
+
readonly EVENT_NOT_FOUND: "event/event-not-found";
|
|
24
|
+
readonly EVENT_NOT_PUBLISHED: "event/event-not-published";
|
|
25
|
+
readonly EVENT_ALREADY_LIVE: "event/event-already-live";
|
|
26
|
+
readonly EVENT_CANCELLED: "event/event-cancelled";
|
|
27
|
+
readonly EVENT_ENDED: "event/event-ended";
|
|
28
|
+
readonly EVENT_STATE_TRANSITION_INVALID: "event/state-transition-invalid";
|
|
29
|
+
readonly EVENT_PREFLIGHT_FAILED: "event/preflight-failed";
|
|
30
|
+
readonly EVENT_MAX_TICKETS_REACHED: "event/max-tickets-reached";
|
|
31
|
+
readonly EVENT_GEO_RESTRICTED: "event/geo-restricted";
|
|
32
|
+
readonly EVENT_NOT_ACCESSIBLE: "event/not-accessible";
|
|
33
|
+
readonly BOOKING_NOT_FOUND: "booking/booking-not-found";
|
|
34
|
+
readonly BOOKING_STATE_TRANSITION_INVALID: "booking/state-transition-invalid";
|
|
35
|
+
readonly PRODUCER_UNAVAILABLE: "booking/producer-unavailable";
|
|
36
|
+
readonly ESCROW_FUNDING_FAILED: "booking/escrow-funding-failed";
|
|
37
|
+
readonly BOOKING_ALREADY_EXISTS: "booking/booking-already-exists";
|
|
38
|
+
readonly JOB_LISTING_NOT_FOUND: "booking/job-listing-not-found";
|
|
39
|
+
readonly JOB_LISTING_CLOSED: "booking/job-listing-closed";
|
|
40
|
+
readonly INDICATION_OF_INTEREST_DUPLICATE: "booking/ioi-duplicate";
|
|
41
|
+
readonly INDICATION_OF_INTEREST_NOT_FOUND: "booking/ioi-not-found";
|
|
42
|
+
readonly STREAM_NOT_ACTIVE: "stream/stream-not-active";
|
|
43
|
+
readonly ENTITLEMENT_NOT_FOUND: "stream/entitlement-not-found";
|
|
44
|
+
readonly ENTITLEMENT_EXPIRED: "stream/entitlement-expired";
|
|
45
|
+
readonly ENTITLEMENT_REVOKED: "stream/entitlement-revoked";
|
|
46
|
+
readonly STREAM_CREDENTIALS_UNAVAILABLE: "stream/credentials-unavailable";
|
|
47
|
+
readonly IVS_ERROR: "stream/ivs-error";
|
|
48
|
+
readonly PAYMENT_NOT_FOUND: "payment/payment-not-found";
|
|
49
|
+
readonly PAYMENT_ALREADY_PROCESSED: "payment/already-processed";
|
|
50
|
+
readonly PAYMENT_FAILED: "payment/payment-failed";
|
|
51
|
+
readonly REFUND_NOT_ELIGIBLE: "payment/refund-not-eligible";
|
|
52
|
+
readonly PAYOUT_FAILED: "payment/payout-failed";
|
|
53
|
+
readonly INVALID_AMOUNT: "payment/invalid-amount";
|
|
54
|
+
readonly PROVIDER_ERROR: "payment/provider-error";
|
|
55
|
+
readonly DISPUTE_NOT_FOUND: "dispute/dispute-not-found";
|
|
56
|
+
readonly DISPUTE_ALREADY_EXISTS: "dispute/dispute-already-exists";
|
|
57
|
+
readonly DISPUTE_DEADLINE_EXCEEDED: "dispute/deadline-exceeded";
|
|
58
|
+
readonly VALIDATION_ERROR: "general/validation-error";
|
|
59
|
+
readonly RESOURCE_NOT_FOUND: "general/resource-not-found";
|
|
60
|
+
readonly CONFLICT: "general/conflict";
|
|
61
|
+
readonly RATE_LIMITED: "general/rate-limited";
|
|
62
|
+
readonly INTERNAL_SERVER_ERROR: "general/internal-server-error";
|
|
63
|
+
readonly SERVICE_UNAVAILABLE: "general/service-unavailable";
|
|
64
|
+
};
|
|
65
|
+
type ApiErrorCode = (typeof ApiErrorCode)[keyof typeof ApiErrorCode];
|
|
66
|
+
|
|
67
|
+
export { ApiErrorCode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const EventVisibility: {
|
|
4
|
+
readonly PUBLIC: "PUBLIC";
|
|
5
|
+
readonly SOFT_PRIVATE: "SOFT_PRIVATE";
|
|
6
|
+
readonly AUTH_PRIVATE: "AUTH_PRIVATE";
|
|
7
|
+
};
|
|
8
|
+
type EventVisibility = (typeof EventVisibility)[keyof typeof EventVisibility];
|
|
9
|
+
declare const EventAccessModel: {
|
|
10
|
+
readonly FREE: "FREE";
|
|
11
|
+
readonly PAID: "PAID";
|
|
12
|
+
};
|
|
13
|
+
type EventAccessModel = (typeof EventAccessModel)[keyof typeof EventAccessModel];
|
|
14
|
+
declare const EventState: {
|
|
15
|
+
readonly DRAFT: "DRAFT";
|
|
16
|
+
readonly SCHEDULED: "SCHEDULED";
|
|
17
|
+
readonly READY_FOR_TEST: "READY_FOR_TEST";
|
|
18
|
+
readonly LIVE: "LIVE";
|
|
19
|
+
readonly ENDED: "ENDED";
|
|
20
|
+
readonly REPLAY_READY: "REPLAY_READY";
|
|
21
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
22
|
+
readonly CANCELLED: "CANCELLED";
|
|
23
|
+
readonly FAILED: "FAILED";
|
|
24
|
+
};
|
|
25
|
+
type EventState = (typeof EventState)[keyof typeof EventState];
|
|
26
|
+
declare const EventCategory: {
|
|
27
|
+
readonly CONCERT: "CONCERT";
|
|
28
|
+
readonly FESTIVAL: "FESTIVAL";
|
|
29
|
+
readonly WEDDING: "WEDDING";
|
|
30
|
+
readonly CORPORATE: "CORPORATE";
|
|
31
|
+
readonly RELIGIOUS: "RELIGIOUS";
|
|
32
|
+
readonly OTHER: "OTHER";
|
|
33
|
+
};
|
|
34
|
+
type EventCategory = (typeof EventCategory)[keyof typeof EventCategory];
|
|
35
|
+
|
|
36
|
+
declare const CreateEventRequestSchema: z.ZodObject<{
|
|
37
|
+
title: z.ZodString;
|
|
38
|
+
description: z.ZodString;
|
|
39
|
+
category: z.ZodNativeEnum<{
|
|
40
|
+
readonly CONCERT: "CONCERT";
|
|
41
|
+
readonly FESTIVAL: "FESTIVAL";
|
|
42
|
+
readonly WEDDING: "WEDDING";
|
|
43
|
+
readonly CORPORATE: "CORPORATE";
|
|
44
|
+
readonly RELIGIOUS: "RELIGIOUS";
|
|
45
|
+
readonly OTHER: "OTHER";
|
|
46
|
+
}>;
|
|
47
|
+
scheduledStartAt: z.ZodString;
|
|
48
|
+
scheduledEndAt: z.ZodString;
|
|
49
|
+
venueLocation: z.ZodString;
|
|
50
|
+
visibility: z.ZodNativeEnum<{
|
|
51
|
+
readonly PUBLIC: "PUBLIC";
|
|
52
|
+
readonly SOFT_PRIVATE: "SOFT_PRIVATE";
|
|
53
|
+
readonly AUTH_PRIVATE: "AUTH_PRIVATE";
|
|
54
|
+
}>;
|
|
55
|
+
accessModel: z.ZodNativeEnum<{
|
|
56
|
+
readonly FREE: "FREE";
|
|
57
|
+
readonly PAID: "PAID";
|
|
58
|
+
}>;
|
|
59
|
+
ticketPrice: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
maxTickets: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
timezone: z.ZodDefault<z.ZodString>;
|
|
62
|
+
replayEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
63
|
+
retentionDays: z.ZodDefault<z.ZodNumber>;
|
|
64
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
65
|
+
geoRestrictions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
title: string;
|
|
68
|
+
description: string;
|
|
69
|
+
category: "CONCERT" | "FESTIVAL" | "WEDDING" | "CORPORATE" | "RELIGIOUS" | "OTHER";
|
|
70
|
+
scheduledStartAt: string;
|
|
71
|
+
scheduledEndAt: string;
|
|
72
|
+
venueLocation: string;
|
|
73
|
+
visibility: "PUBLIC" | "SOFT_PRIVATE" | "AUTH_PRIVATE";
|
|
74
|
+
accessModel: "FREE" | "PAID";
|
|
75
|
+
timezone: string;
|
|
76
|
+
replayEnabled: boolean;
|
|
77
|
+
retentionDays: number;
|
|
78
|
+
ticketPrice?: number | undefined;
|
|
79
|
+
maxTickets?: number | undefined;
|
|
80
|
+
tags?: string[] | undefined;
|
|
81
|
+
geoRestrictions?: Record<string, any> | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
title: string;
|
|
84
|
+
description: string;
|
|
85
|
+
category: "CONCERT" | "FESTIVAL" | "WEDDING" | "CORPORATE" | "RELIGIOUS" | "OTHER";
|
|
86
|
+
scheduledStartAt: string;
|
|
87
|
+
scheduledEndAt: string;
|
|
88
|
+
venueLocation: string;
|
|
89
|
+
visibility: "PUBLIC" | "SOFT_PRIVATE" | "AUTH_PRIVATE";
|
|
90
|
+
accessModel: "FREE" | "PAID";
|
|
91
|
+
ticketPrice?: number | undefined;
|
|
92
|
+
maxTickets?: number | undefined;
|
|
93
|
+
timezone?: string | undefined;
|
|
94
|
+
replayEnabled?: boolean | undefined;
|
|
95
|
+
retentionDays?: number | undefined;
|
|
96
|
+
tags?: string[] | undefined;
|
|
97
|
+
geoRestrictions?: Record<string, any> | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
declare const UpdateEventRequestSchema: z.ZodObject<{
|
|
100
|
+
title: z.ZodOptional<z.ZodString>;
|
|
101
|
+
description: z.ZodOptional<z.ZodString>;
|
|
102
|
+
category: z.ZodOptional<z.ZodNativeEnum<{
|
|
103
|
+
readonly CONCERT: "CONCERT";
|
|
104
|
+
readonly FESTIVAL: "FESTIVAL";
|
|
105
|
+
readonly WEDDING: "WEDDING";
|
|
106
|
+
readonly CORPORATE: "CORPORATE";
|
|
107
|
+
readonly RELIGIOUS: "RELIGIOUS";
|
|
108
|
+
readonly OTHER: "OTHER";
|
|
109
|
+
}>>;
|
|
110
|
+
scheduledStartAt: z.ZodOptional<z.ZodString>;
|
|
111
|
+
scheduledEndAt: z.ZodOptional<z.ZodString>;
|
|
112
|
+
venueLocation: z.ZodOptional<z.ZodString>;
|
|
113
|
+
visibility: z.ZodOptional<z.ZodNativeEnum<{
|
|
114
|
+
readonly PUBLIC: "PUBLIC";
|
|
115
|
+
readonly SOFT_PRIVATE: "SOFT_PRIVATE";
|
|
116
|
+
readonly AUTH_PRIVATE: "AUTH_PRIVATE";
|
|
117
|
+
}>>;
|
|
118
|
+
accessModel: z.ZodOptional<z.ZodNativeEnum<{
|
|
119
|
+
readonly FREE: "FREE";
|
|
120
|
+
readonly PAID: "PAID";
|
|
121
|
+
}>>;
|
|
122
|
+
ticketPrice: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
123
|
+
maxTickets: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
124
|
+
timezone: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
125
|
+
replayEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
126
|
+
retentionDays: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
127
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
128
|
+
geoRestrictions: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
title?: string | undefined;
|
|
131
|
+
description?: string | undefined;
|
|
132
|
+
category?: "CONCERT" | "FESTIVAL" | "WEDDING" | "CORPORATE" | "RELIGIOUS" | "OTHER" | undefined;
|
|
133
|
+
scheduledStartAt?: string | undefined;
|
|
134
|
+
scheduledEndAt?: string | undefined;
|
|
135
|
+
venueLocation?: string | undefined;
|
|
136
|
+
visibility?: "PUBLIC" | "SOFT_PRIVATE" | "AUTH_PRIVATE" | undefined;
|
|
137
|
+
accessModel?: "FREE" | "PAID" | undefined;
|
|
138
|
+
ticketPrice?: number | undefined;
|
|
139
|
+
maxTickets?: number | undefined;
|
|
140
|
+
timezone?: string | undefined;
|
|
141
|
+
replayEnabled?: boolean | undefined;
|
|
142
|
+
retentionDays?: number | undefined;
|
|
143
|
+
tags?: string[] | undefined;
|
|
144
|
+
geoRestrictions?: Record<string, any> | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
title?: string | undefined;
|
|
147
|
+
description?: string | undefined;
|
|
148
|
+
category?: "CONCERT" | "FESTIVAL" | "WEDDING" | "CORPORATE" | "RELIGIOUS" | "OTHER" | undefined;
|
|
149
|
+
scheduledStartAt?: string | undefined;
|
|
150
|
+
scheduledEndAt?: string | undefined;
|
|
151
|
+
venueLocation?: string | undefined;
|
|
152
|
+
visibility?: "PUBLIC" | "SOFT_PRIVATE" | "AUTH_PRIVATE" | undefined;
|
|
153
|
+
accessModel?: "FREE" | "PAID" | undefined;
|
|
154
|
+
ticketPrice?: number | undefined;
|
|
155
|
+
maxTickets?: number | undefined;
|
|
156
|
+
timezone?: string | undefined;
|
|
157
|
+
replayEnabled?: boolean | undefined;
|
|
158
|
+
retentionDays?: number | undefined;
|
|
159
|
+
tags?: string[] | undefined;
|
|
160
|
+
geoRestrictions?: Record<string, any> | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
declare const EventResponseSchema: z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
title: z.ZodString;
|
|
165
|
+
description: z.ZodString;
|
|
166
|
+
category: z.ZodNativeEnum<{
|
|
167
|
+
readonly CONCERT: "CONCERT";
|
|
168
|
+
readonly FESTIVAL: "FESTIVAL";
|
|
169
|
+
readonly WEDDING: "WEDDING";
|
|
170
|
+
readonly CORPORATE: "CORPORATE";
|
|
171
|
+
readonly RELIGIOUS: "RELIGIOUS";
|
|
172
|
+
readonly OTHER: "OTHER";
|
|
173
|
+
}>;
|
|
174
|
+
coverImageUrl: z.ZodOptional<z.ZodString>;
|
|
175
|
+
venueLocation: z.ZodString;
|
|
176
|
+
scheduledStartAt: z.ZodString;
|
|
177
|
+
scheduledEndAt: z.ZodString;
|
|
178
|
+
timezone: z.ZodString;
|
|
179
|
+
visibility: z.ZodNativeEnum<{
|
|
180
|
+
readonly PUBLIC: "PUBLIC";
|
|
181
|
+
readonly SOFT_PRIVATE: "SOFT_PRIVATE";
|
|
182
|
+
readonly AUTH_PRIVATE: "AUTH_PRIVATE";
|
|
183
|
+
}>;
|
|
184
|
+
accessModel: z.ZodNativeEnum<{
|
|
185
|
+
readonly FREE: "FREE";
|
|
186
|
+
readonly PAID: "PAID";
|
|
187
|
+
}>;
|
|
188
|
+
ticketPrice: z.ZodNumber;
|
|
189
|
+
currency: z.ZodString;
|
|
190
|
+
maxTickets: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
eventState: z.ZodNativeEnum<{
|
|
192
|
+
readonly DRAFT: "DRAFT";
|
|
193
|
+
readonly SCHEDULED: "SCHEDULED";
|
|
194
|
+
readonly READY_FOR_TEST: "READY_FOR_TEST";
|
|
195
|
+
readonly LIVE: "LIVE";
|
|
196
|
+
readonly ENDED: "ENDED";
|
|
197
|
+
readonly REPLAY_READY: "REPLAY_READY";
|
|
198
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
199
|
+
readonly CANCELLED: "CANCELLED";
|
|
200
|
+
readonly FAILED: "FAILED";
|
|
201
|
+
}>;
|
|
202
|
+
shareableUrl: z.ZodString;
|
|
203
|
+
hostId: z.ZodString;
|
|
204
|
+
isFeatured: z.ZodBoolean;
|
|
205
|
+
replayEnabled: z.ZodBoolean;
|
|
206
|
+
replayAvailableUntil: z.ZodOptional<z.ZodString>;
|
|
207
|
+
createdAt: z.ZodString;
|
|
208
|
+
updatedAt: z.ZodString;
|
|
209
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
210
|
+
liveStartedAt: z.ZodOptional<z.ZodString>;
|
|
211
|
+
liveEndedAt: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
title: string;
|
|
214
|
+
id: string;
|
|
215
|
+
createdAt: string;
|
|
216
|
+
updatedAt: string;
|
|
217
|
+
description: string;
|
|
218
|
+
category: "CONCERT" | "FESTIVAL" | "WEDDING" | "CORPORATE" | "RELIGIOUS" | "OTHER";
|
|
219
|
+
scheduledStartAt: string;
|
|
220
|
+
scheduledEndAt: string;
|
|
221
|
+
venueLocation: string;
|
|
222
|
+
visibility: "PUBLIC" | "SOFT_PRIVATE" | "AUTH_PRIVATE";
|
|
223
|
+
accessModel: "FREE" | "PAID";
|
|
224
|
+
ticketPrice: number;
|
|
225
|
+
timezone: string;
|
|
226
|
+
replayEnabled: boolean;
|
|
227
|
+
currency: string;
|
|
228
|
+
eventState: "DRAFT" | "SCHEDULED" | "READY_FOR_TEST" | "LIVE" | "ENDED" | "REPLAY_READY" | "ARCHIVED" | "CANCELLED" | "FAILED";
|
|
229
|
+
shareableUrl: string;
|
|
230
|
+
hostId: string;
|
|
231
|
+
isFeatured: boolean;
|
|
232
|
+
maxTickets?: number | undefined;
|
|
233
|
+
coverImageUrl?: string | undefined;
|
|
234
|
+
replayAvailableUntil?: string | undefined;
|
|
235
|
+
publishedAt?: string | undefined;
|
|
236
|
+
liveStartedAt?: string | undefined;
|
|
237
|
+
liveEndedAt?: string | undefined;
|
|
238
|
+
}, {
|
|
239
|
+
title: string;
|
|
240
|
+
id: string;
|
|
241
|
+
createdAt: string;
|
|
242
|
+
updatedAt: string;
|
|
243
|
+
description: string;
|
|
244
|
+
category: "CONCERT" | "FESTIVAL" | "WEDDING" | "CORPORATE" | "RELIGIOUS" | "OTHER";
|
|
245
|
+
scheduledStartAt: string;
|
|
246
|
+
scheduledEndAt: string;
|
|
247
|
+
venueLocation: string;
|
|
248
|
+
visibility: "PUBLIC" | "SOFT_PRIVATE" | "AUTH_PRIVATE";
|
|
249
|
+
accessModel: "FREE" | "PAID";
|
|
250
|
+
ticketPrice: number;
|
|
251
|
+
timezone: string;
|
|
252
|
+
replayEnabled: boolean;
|
|
253
|
+
currency: string;
|
|
254
|
+
eventState: "DRAFT" | "SCHEDULED" | "READY_FOR_TEST" | "LIVE" | "ENDED" | "REPLAY_READY" | "ARCHIVED" | "CANCELLED" | "FAILED";
|
|
255
|
+
shareableUrl: string;
|
|
256
|
+
hostId: string;
|
|
257
|
+
isFeatured: boolean;
|
|
258
|
+
maxTickets?: number | undefined;
|
|
259
|
+
coverImageUrl?: string | undefined;
|
|
260
|
+
replayAvailableUntil?: string | undefined;
|
|
261
|
+
publishedAt?: string | undefined;
|
|
262
|
+
liveStartedAt?: string | undefined;
|
|
263
|
+
liveEndedAt?: string | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
|
|
266
|
+
type CreateEventRequest = z.infer<typeof CreateEventRequestSchema>;
|
|
267
|
+
type UpdateEventRequest = z.infer<typeof UpdateEventRequestSchema>;
|
|
268
|
+
type EventResponse = z.infer<typeof EventResponseSchema>;
|
|
269
|
+
|
|
270
|
+
export { type CreateEventRequest, CreateEventRequestSchema, EventAccessModel, EventCategory, type EventResponse, EventResponseSchema, EventState, EventVisibility, type UpdateEventRequest, UpdateEventRequestSchema };
|