@xoxno/types 1.0.284 → 1.0.286
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/cosmos-db/documents/ticketing/event-guest-registration.dto.d.ts +5 -0
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +30 -1
- package/dist/cosmos-db/documents/ticketing/event-registration.dto.d.ts +11 -1
- package/dist/cosmos-db/documents/ticketing/event-registration.dto.js +54 -3
- package/dist/entities/perp/response.d.ts +1 -1
- package/dist/entities/perp/response.js +3 -1
- package/package.json +1 -1
|
@@ -9,6 +9,10 @@ export declare class TicketSelectionDto {
|
|
|
9
9
|
description?: string;
|
|
10
10
|
currency?: string;
|
|
11
11
|
}
|
|
12
|
+
export declare class DigitalWalletDto {
|
|
13
|
+
walletType: 'googlePay' | 'applePay';
|
|
14
|
+
data?: unknown;
|
|
15
|
+
}
|
|
12
16
|
export declare class EventGuestRegistrationDto {
|
|
13
17
|
email?: string;
|
|
14
18
|
name?: string;
|
|
@@ -20,6 +24,7 @@ export declare class EventGuestRegistrationDto {
|
|
|
20
24
|
currency?: string;
|
|
21
25
|
questionAnswers?: EventQuestionAnswerDto[];
|
|
22
26
|
callbackUrl?: CallbackUrl;
|
|
27
|
+
digitalWallet?: DigitalWalletDto;
|
|
23
28
|
}
|
|
24
29
|
declare type EventClaimInvitationDto_base = Pick<EventGuestRegistrationDto, "name" | "email" | "phone" | "questionAnswers">;
|
|
25
30
|
export declare type EventClaimInvitationDto = EventClaimInvitationDto_base ;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EventClaimInvitationDto = exports.EventGuestRegistrationDto = exports.TicketSelectionDto = void 0;
|
|
12
|
+
exports.EventClaimInvitationDto = exports.EventGuestRegistrationDto = exports.DigitalWalletDto = exports.TicketSelectionDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
@@ -83,6 +83,25 @@ __decorate([
|
|
|
83
83
|
(0, class_validator_1.IsString)(),
|
|
84
84
|
__metadata("design:type", String)
|
|
85
85
|
], TicketSelectionDto.prototype, "currency", void 0);
|
|
86
|
+
class DigitalWalletDto {
|
|
87
|
+
}
|
|
88
|
+
exports.DigitalWalletDto = DigitalWalletDto;
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, swagger_1.ApiProperty)({
|
|
91
|
+
description: 'Digital wallet provider',
|
|
92
|
+
enum: ['googlePay', 'applePay'],
|
|
93
|
+
}),
|
|
94
|
+
(0, class_validator_1.IsIn)(['googlePay', 'applePay']),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], DigitalWalletDto.prototype, "walletType", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
99
|
+
description: 'Raw payload returned by the digital wallet (stringified JSON, Base64 string, or structured object)',
|
|
100
|
+
oneOf: [{ type: 'string' }, { type: 'object' }],
|
|
101
|
+
}),
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
__metadata("design:type", Object)
|
|
104
|
+
], DigitalWalletDto.prototype, "data", void 0);
|
|
86
105
|
class EventGuestRegistrationDto {
|
|
87
106
|
}
|
|
88
107
|
exports.EventGuestRegistrationDto = EventGuestRegistrationDto;
|
|
@@ -190,6 +209,16 @@ __decorate([
|
|
|
190
209
|
(0, class_transformer_1.Type)(() => external_payment_request_1.CallbackUrl),
|
|
191
210
|
__metadata("design:type", external_payment_request_1.CallbackUrl)
|
|
192
211
|
], EventGuestRegistrationDto.prototype, "callbackUrl", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
214
|
+
description: 'Digital wallet payload used when completing fiat payments via Apple Pay / Google Pay',
|
|
215
|
+
type: () => DigitalWalletDto,
|
|
216
|
+
}),
|
|
217
|
+
(0, class_validator_1.IsOptional)(),
|
|
218
|
+
(0, class_validator_1.ValidateNested)(),
|
|
219
|
+
(0, class_transformer_1.Type)(() => DigitalWalletDto),
|
|
220
|
+
__metadata("design:type", DigitalWalletDto)
|
|
221
|
+
], EventGuestRegistrationDto.prototype, "digitalWallet", void 0);
|
|
193
222
|
class EventClaimInvitationDto extends (0, swagger_1.PickType)(EventGuestRegistrationDto, ['email', 'name', 'phone', 'questionAnswers']) {
|
|
194
223
|
}
|
|
195
224
|
exports.EventClaimInvitationDto = EventClaimInvitationDto;
|
|
@@ -4,13 +4,23 @@ declare class TwispayPaymentFormData {
|
|
|
4
4
|
base64JsonRequest: string;
|
|
5
5
|
base64Checksum: PromiseLike<ArrayBuffer>;
|
|
6
6
|
}
|
|
7
|
+
declare class TwispayDigitalWalletPaymentData {
|
|
8
|
+
orderId: number;
|
|
9
|
+
externalOrderId: string;
|
|
10
|
+
transactionId: number;
|
|
11
|
+
is3d: boolean;
|
|
12
|
+
isRedirect: boolean;
|
|
13
|
+
redirectUrl?: string;
|
|
14
|
+
redirectMethod?: string;
|
|
15
|
+
redirectParams?: Record<string, string>;
|
|
16
|
+
}
|
|
7
17
|
declare class StripePaymentFormData {
|
|
8
18
|
sessionId: string;
|
|
9
19
|
publicKey: string;
|
|
10
20
|
}
|
|
11
21
|
declare class FiatPaymentForm {
|
|
12
22
|
type: PaymentProvider;
|
|
13
|
-
data: TwispayPaymentFormData | StripePaymentFormData;
|
|
23
|
+
data: TwispayPaymentFormData | StripePaymentFormData | TwispayDigitalWalletPaymentData;
|
|
14
24
|
}
|
|
15
25
|
declare class CryptoPaymentResult {
|
|
16
26
|
signature: string;
|
|
@@ -23,6 +23,56 @@ __decorate([
|
|
|
23
23
|
(0, swagger_1.ApiProperty)(),
|
|
24
24
|
__metadata("design:type", Object)
|
|
25
25
|
], TwispayPaymentFormData.prototype, "base64Checksum", void 0);
|
|
26
|
+
class TwispayDigitalWalletPaymentData {
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
description: 'Twispay order identifier returned by the processor',
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], TwispayDigitalWalletPaymentData.prototype, "orderId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({
|
|
36
|
+
description: 'External order identifier generated by XOXNO',
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], TwispayDigitalWalletPaymentData.prototype, "externalOrderId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
description: 'Twispay transaction identifier bound to the wallet charge',
|
|
43
|
+
}),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], TwispayDigitalWalletPaymentData.prototype, "transactionId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({
|
|
48
|
+
description: 'Flag indicating whether 3DS verification is required',
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], TwispayDigitalWalletPaymentData.prototype, "is3d", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({
|
|
54
|
+
description: 'Flag indicating whether the client must follow a redirect',
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], TwispayDigitalWalletPaymentData.prototype, "isRedirect", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
60
|
+
description: 'Redirect URL supplied by the processor (present when isRedirect is true)',
|
|
61
|
+
}),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], TwispayDigitalWalletPaymentData.prototype, "redirectUrl", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
66
|
+
description: 'HTTP method to use when following the redirect instructions (defaults to POST)',
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], TwispayDigitalWalletPaymentData.prototype, "redirectMethod", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
72
|
+
description: 'Key/value parameters that must accompany the redirect request, if any',
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], TwispayDigitalWalletPaymentData.prototype, "redirectParams", void 0);
|
|
26
76
|
class StripePaymentFormData {
|
|
27
77
|
}
|
|
28
78
|
__decorate([
|
|
@@ -45,14 +95,15 @@ __decorate([
|
|
|
45
95
|
__decorate([
|
|
46
96
|
(0, swagger_1.ApiProperty)({
|
|
47
97
|
oneOf: [
|
|
48
|
-
{ $ref:
|
|
49
|
-
{ $ref:
|
|
98
|
+
{ $ref: '#/components/schemas/TwispayPaymentFormData' },
|
|
99
|
+
{ $ref: '#/components/schemas/StripePaymentFormData' },
|
|
100
|
+
{ $ref: '#/components/schemas/TwispayDigitalWalletPaymentData' },
|
|
50
101
|
],
|
|
51
102
|
}),
|
|
52
103
|
__metadata("design:type", Object)
|
|
53
104
|
], FiatPaymentForm.prototype, "data", void 0);
|
|
54
105
|
FiatPaymentForm = __decorate([
|
|
55
|
-
(0, swagger_1.ApiExtraModels)(TwispayPaymentFormData, StripePaymentFormData)
|
|
106
|
+
(0, swagger_1.ApiExtraModels)(TwispayPaymentFormData, StripePaymentFormData, TwispayDigitalWalletPaymentData)
|
|
56
107
|
], FiatPaymentForm);
|
|
57
108
|
class CryptoPaymentResult {
|
|
58
109
|
}
|
|
@@ -71,6 +71,6 @@ export declare class ActiveAssetsPerpResponse extends ActiveAssetsPerpEvent {
|
|
|
71
71
|
tokens: PerpCoinExtendedSlim[];
|
|
72
72
|
}
|
|
73
73
|
export declare class PerpResponse {
|
|
74
|
-
event: L2BookPerpResponse | TradesPerpResponse | ActiveSpotAssetPerpResponse | ActiveAssetPerpResponse;
|
|
74
|
+
event: L2BookPerpResponse | TradesPerpResponse | ActiveSpotAssetPerpResponse | ActiveAssetPerpResponse | ActiveSpotAssetsPerpResponse | ActiveAssetsPerpResponse;
|
|
75
75
|
}
|
|
76
76
|
export {};
|
|
@@ -202,12 +202,14 @@ __decorate([
|
|
|
202
202
|
{ $ref: (0, swagger_1.getSchemaPath)(TradesPerpResponse) },
|
|
203
203
|
{ $ref: (0, swagger_1.getSchemaPath)(ActiveSpotAssetPerpResponse) },
|
|
204
204
|
{ $ref: (0, swagger_1.getSchemaPath)(ActiveAssetPerpResponse) },
|
|
205
|
+
{ $ref: (0, swagger_1.getSchemaPath)(ActiveSpotAssetsPerpResponse) },
|
|
206
|
+
{ $ref: (0, swagger_1.getSchemaPath)(ActiveAssetsPerpResponse) },
|
|
205
207
|
],
|
|
206
208
|
}),
|
|
207
209
|
__metadata("design:type", Object)
|
|
208
210
|
], PerpResponse.prototype, "event", void 0);
|
|
209
211
|
exports.PerpResponse = PerpResponse = __decorate([
|
|
210
|
-
(0, swagger_1.ApiExtraModels)(L2BookPerpResponse, TradesPerpResponse, ActiveSpotAssetPerpResponse, ActiveAssetPerpResponse)
|
|
212
|
+
(0, swagger_1.ApiExtraModels)(L2BookPerpResponse, TradesPerpResponse, ActiveSpotAssetPerpResponse, ActiveAssetPerpResponse, ActiveSpotAssetsPerpResponse, ActiveAssetsPerpResponse)
|
|
211
213
|
], PerpResponse);
|
|
212
214
|
|
|
213
215
|
exports.ActivePerpAssetCtxHydratedNest = ActivePerpAssetCtxHydrated;
|