@escapenavigator/types 1.4.41 → 1.4.43
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/cashbox/cashbox.ro.d.ts +3 -1
- package/dist/cashbox/create-cashbox.dto.d.ts +1 -0
- package/dist/cashbox/create-cashbox.dto.js +6 -1
- package/dist/cashbox/enum/cashbox-type.enum.d.ts +2 -1
- package/dist/cashbox/enum/cashbox-type.enum.js +1 -0
- package/dist/certificate-sale/certificate-sale.ro.d.ts +5 -2
- package/dist/certificate-sale/create-certificatesale.dto.d.ts +1 -0
- package/dist/certificate-sale/create-certificatesale.dto.js +5 -0
- package/dist/location/location.ro.d.ts +2 -1
- package/dist/log/log-title.enum.d.ts +1 -0
- package/dist/log/log-title.enum.js +1 -0
- package/dist/order/order.ro.d.ts +6 -2
- package/dist/order/query-order.dto.d.ts +3 -2
- package/dist/order/query-order.dto.js +6 -2
- package/dist/order/update-moderator.dto.d.ts +3 -0
- package/dist/order/update-moderator.dto.js +20 -0
- package/dist/order/update-moderator.ro.d.ts +3 -0
- package/dist/order/update-moderator.ro.js +2 -0
- package/dist/profile/create-profile.dto.d.ts +6 -6
- package/dist/profile/create-profile.dto.js +19 -19
- package/dist/profile/profile.ro.d.ts +5 -3
- package/dist/registration-request/create-registration-request.dto.d.ts +2 -0
- package/dist/registration-request/create-registration-request.dto.js +6 -1
- package/dist/registration-request/registration-request.ro.d.ts +2 -0
- package/dist/shared/enum/countries.enum.d.ts +4 -2
- package/dist/shared/enum/countries.enum.js +4 -2
- package/dist/shared/enum/languages.enum.d.ts +0 -1
- package/dist/shared/enum/languages.enum.js +0 -1
- package/dist/{order/enum/order-source.enum.d.ts → shared/source.enum.d.ts} +1 -1
- package/dist/shared/source.enum.js +10 -0
- package/dist/slot/slot.ro.d.ts +5 -1
- package/dist/transaction/create-certificate-sale-payment.dto.d.ts +1 -1
- package/dist/transaction/create-certificate-sale-payment.dto.js +1 -1
- package/dist/transaction/create-certificate-sale-refund.dto.d.ts +2 -1
- package/dist/transaction/create-certificate-sale-refund.dto.js +7 -1
- package/dist/transaction/create-order-refund.dto.d.ts +1 -0
- package/dist/transaction/create-order-refund.dto.js +6 -0
- package/dist/transaction/enum/transaction-type.enum.d.ts +23 -3
- package/dist/transaction/enum/transaction-type.enum.js +29 -3
- package/dist/transaction/transaction.ro.d.ts +5 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/current-user.ro.d.ts +11 -3
- package/dist/user/current-user.ro.js +0 -1
- package/dist/widget/widget.ro.d.ts +6 -0
- package/dist/widget-openapi/widget-openapi-certificate.ro.d.ts +7 -0
- package/dist/widget-openapi/widget-openapi-create-order.dto.d.ts +3 -1
- package/dist/widget-openapi/widget-openapi-create-order.dto.js +12 -2
- package/dist/widget-openapi/widget-openapi-order.ro.d.ts +11 -2
- package/dist/widget-openapi/widget-openapi.ro.d.ts +9 -9
- package/dist/widget-orders/widget-orders-certificate.ro.d.ts +7 -0
- package/dist/widget-orders/widget-orders-create-certificate-payment.dto.d.ts +0 -1
- package/dist/widget-orders/widget-orders-create-certificate-payment.dto.js +0 -6
- package/dist/widget-orders/widget-orders-create-order-payment.dto.d.ts +0 -1
- package/dist/widget-orders/widget-orders-create-order-payment.dto.js +0 -6
- package/dist/widget-orders/widget-orders-create-payment.ro.d.ts +4 -0
- package/dist/widget-orders/widget-orders-create-payment.ro.js +6 -0
- package/dist/widget-orders/widget-orders-order.ro.d.ts +7 -0
- package/package.json +2 -2
- package/dist/certificate-sale/enum/certificatesale-source.enum.d.ts +0 -6
- package/dist/certificate-sale/enum/certificatesale-source.enum.js +0 -10
- package/dist/order/enum/order-source.enum.js +0 -10
- package/dist/profile/update-profile.dto.d.ts +0 -18
- package/dist/profile/update-profile.dto.js +0 -80
- package/dist/transaction/update-transaction.dto.d.ts +0 -5
- package/dist/transaction/update-transaction.dto.js +0 -8
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ResponseObject } from '../shared/ro';
|
|
2
2
|
import { CashboxTypeEnum } from './enum/cashbox-type.enum';
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type CashboxRO = ResponseObject & {
|
|
4
4
|
title: string;
|
|
5
5
|
type: CashboxTypeEnum;
|
|
6
|
+
description: string;
|
|
6
7
|
identificator?: string;
|
|
8
|
+
enabled?: boolean;
|
|
7
9
|
};
|
|
@@ -21,13 +21,18 @@ __decorate([
|
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateCashboxDto.prototype, "title", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateCashboxDto.prototype, "description", void 0);
|
|
24
29
|
__decorate([
|
|
25
30
|
(0, class_validator_1.IsEnum)(cashbox_type_enum_1.CashboxTypeEnum),
|
|
26
31
|
(0, class_transformer_1.Expose)(),
|
|
27
32
|
__metadata("design:type", String)
|
|
28
33
|
], CreateCashboxDto.prototype, "type", void 0);
|
|
29
34
|
__decorate([
|
|
30
|
-
(0, class_validator_1.ValidateIf)((o) => o.type
|
|
35
|
+
(0, class_validator_1.ValidateIf)((o) => o.type === cashbox_type_enum_1.CashboxTypeEnum.PAYPAL),
|
|
31
36
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
32
37
|
(0, class_transformer_1.Expose)(),
|
|
33
38
|
__metadata("design:type", String)
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { CertificateRO } from '../certificate/certificate.ro';
|
|
2
2
|
import { ClientRO } from '../client/client.ro';
|
|
3
3
|
import { ResponseObject } from '../shared/ro';
|
|
4
|
-
import {
|
|
4
|
+
import { SourceEnum } from '../shared/source.enum';
|
|
5
|
+
import { TransactionTypeEnum } from '../transaction/enum/transaction-type.enum';
|
|
5
6
|
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
6
7
|
export declare type CertificateSaleRO = ResponseObject & {
|
|
7
8
|
sended: boolean;
|
|
8
9
|
expireDate: string;
|
|
9
10
|
certificate: CertificateRO;
|
|
10
11
|
code: string;
|
|
11
|
-
source:
|
|
12
|
+
source: SourceEnum;
|
|
12
13
|
nominal: number;
|
|
13
14
|
extraPrice: number;
|
|
14
15
|
deliveryPrice: number;
|
|
@@ -42,5 +43,7 @@ export declare type CertificateSaleRO = ResponseObject & {
|
|
|
42
43
|
comment: string;
|
|
43
44
|
userId: number;
|
|
44
45
|
createdAt: Date;
|
|
46
|
+
type: TransactionTypeEnum;
|
|
47
|
+
paymentId: string;
|
|
45
48
|
}>;
|
|
46
49
|
};
|
|
@@ -26,6 +26,11 @@ __decorate([
|
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", Number)
|
|
28
28
|
], CreateCertificatesaleDto.prototype, "nominal", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], CreateCertificatesaleDto.prototype, "cashboxId", void 0);
|
|
29
34
|
__decorate([
|
|
30
35
|
(0, class_validator_1.IsPositive)(),
|
|
31
36
|
(0, class_transformer_1.Expose)(),
|
|
@@ -9,6 +9,7 @@ var LogTitleEnum;
|
|
|
9
9
|
LogTitleEnum["addMessage"] = "addMessage";
|
|
10
10
|
LogTitleEnum["removeMessage"] = "removeMessage";
|
|
11
11
|
LogTitleEnum["resendEmail"] = "resendEmail";
|
|
12
|
+
LogTitleEnum["changeModerator"] = "changeModerator";
|
|
12
13
|
/** orders */
|
|
13
14
|
LogTitleEnum["createOrder"] = "createOrder";
|
|
14
15
|
LogTitleEnum["changeOrderDate"] = "changeOrderDate";
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -2,12 +2,14 @@ import { ClientRO } from '../client/client.ro';
|
|
|
2
2
|
import { OrderPenaltyTypeEnum } from '../order-penalty/enum/order-penalty-type.enum';
|
|
3
3
|
import { Languages } from '../shared/enum/languages.enum';
|
|
4
4
|
import { ResponseObject } from '../shared/ro';
|
|
5
|
-
import {
|
|
5
|
+
import { SourceEnum } from '../shared/source.enum';
|
|
6
|
+
import { TransactionTypeEnum } from '../transaction/enum/transaction-type.enum';
|
|
6
7
|
export declare type OrderRO = ResponseObject & {
|
|
7
8
|
language?: Languages;
|
|
8
9
|
price: {
|
|
9
10
|
[x: string]: number;
|
|
10
11
|
};
|
|
12
|
+
moderatorId?: number;
|
|
11
13
|
slotId?: number;
|
|
12
14
|
payed: number;
|
|
13
15
|
code: string;
|
|
@@ -16,7 +18,7 @@ export declare type OrderRO = ResponseObject & {
|
|
|
16
18
|
canceledWithFine: boolean;
|
|
17
19
|
utcDate: string;
|
|
18
20
|
photos: string[];
|
|
19
|
-
source:
|
|
21
|
+
source: SourceEnum;
|
|
20
22
|
client: ClientRO;
|
|
21
23
|
questroomId: number;
|
|
22
24
|
certificates: Array<ResponseObject & {
|
|
@@ -58,7 +60,9 @@ export declare type OrderRO = ResponseObject & {
|
|
|
58
60
|
}>;
|
|
59
61
|
transactions: Array<{
|
|
60
62
|
id: number;
|
|
63
|
+
type: TransactionTypeEnum;
|
|
61
64
|
cashboxId: number;
|
|
65
|
+
paymentId: string;
|
|
62
66
|
comment: string;
|
|
63
67
|
amount: number;
|
|
64
68
|
userId: number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
-
import {
|
|
2
|
+
import { SourceEnum } from '../shared/source.enum';
|
|
3
3
|
export declare class QueryOrderDto {
|
|
4
4
|
orderGameFrom?: string;
|
|
5
5
|
orderGameTo?: string;
|
|
6
6
|
clientId?: number;
|
|
7
|
+
moderatorId?: number;
|
|
7
8
|
createdFrom?: string;
|
|
8
9
|
createdTo?: string;
|
|
9
10
|
players?: number;
|
|
@@ -11,5 +12,5 @@ export declare class QueryOrderDto {
|
|
|
11
12
|
questroomsIds?: number[];
|
|
12
13
|
moderatorsIds?: number[];
|
|
13
14
|
payed?: boolean;
|
|
14
|
-
source?:
|
|
15
|
+
source?: SourceEnum;
|
|
15
16
|
}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.QueryOrderDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
15
|
-
const
|
|
15
|
+
const source_enum_1 = require("../shared/source.enum");
|
|
16
16
|
class QueryOrderDto {
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
@@ -27,6 +27,10 @@ __decorate([
|
|
|
27
27
|
(0, class_validator_1.IsOptional)(),
|
|
28
28
|
__metadata("design:type", Number)
|
|
29
29
|
], QueryOrderDto.prototype, "clientId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], QueryOrderDto.prototype, "moderatorId", void 0);
|
|
30
34
|
__decorate([
|
|
31
35
|
(0, class_validator_1.IsOptional)(),
|
|
32
36
|
__metadata("design:type", String)
|
|
@@ -60,7 +64,7 @@ __decorate([
|
|
|
60
64
|
], QueryOrderDto.prototype, "payed", void 0);
|
|
61
65
|
__decorate([
|
|
62
66
|
(0, class_validator_1.IsOptional)(),
|
|
63
|
-
(0, class_validator_1.IsEnum)(
|
|
67
|
+
(0, class_validator_1.IsEnum)(source_enum_1.SourceEnum),
|
|
64
68
|
__metadata("design:type", String)
|
|
65
69
|
], QueryOrderDto.prototype, "source", void 0);
|
|
66
70
|
exports.QueryOrderDto = QueryOrderDto;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateModeratorDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class UpdateModeratorDto {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_validator_1.IsOptional)(),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], UpdateModeratorDto.prototype, "moderatorId", void 0);
|
|
20
|
+
exports.UpdateModeratorDto = UpdateModeratorDto;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
2
|
export declare class CreateProfileDto {
|
|
3
3
|
color: string;
|
|
4
4
|
title: string;
|
|
5
|
+
contactName: string;
|
|
6
|
+
contactPhone: string;
|
|
5
7
|
registrationRequestId: number;
|
|
6
8
|
email: string;
|
|
7
9
|
phone: string;
|
|
8
10
|
site: string;
|
|
9
11
|
legalTitle: string;
|
|
10
12
|
address: string;
|
|
11
|
-
|
|
12
|
-
facebook?: string;
|
|
13
|
-
language: Languages;
|
|
13
|
+
country: CountriesEnum;
|
|
14
14
|
comment?: string;
|
|
15
|
-
contactName: string;
|
|
16
|
-
contactPhone: string;
|
|
17
15
|
logo?: string;
|
|
16
|
+
instagram?: string;
|
|
17
|
+
facebook?: string;
|
|
18
18
|
}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateProfileDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
17
|
class CreateProfileDto {
|
|
18
18
|
}
|
|
@@ -26,6 +26,16 @@ __decorate([
|
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], CreateProfileDto.prototype, "title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateProfileDto.prototype, "contactName", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateProfileDto.prototype, "contactPhone", void 0);
|
|
29
39
|
__decorate([
|
|
30
40
|
(0, class_validator_1.IsNumber)(),
|
|
31
41
|
(0, class_transformer_1.Expose)(),
|
|
@@ -57,23 +67,11 @@ __decorate([
|
|
|
57
67
|
(0, class_transformer_1.Expose)(),
|
|
58
68
|
__metadata("design:type", String)
|
|
59
69
|
], CreateProfileDto.prototype, "address", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
(0, class_validator_1.IsString)(),
|
|
63
|
-
(0, class_transformer_1.Expose)(),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], CreateProfileDto.prototype, "instagram", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_validator_1.IsOptional)(),
|
|
68
|
-
(0, class_validator_1.IsString)(),
|
|
69
|
-
(0, class_transformer_1.Expose)(),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], CreateProfileDto.prototype, "facebook", void 0);
|
|
72
70
|
__decorate([
|
|
73
71
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
74
72
|
(0, class_transformer_1.Expose)(),
|
|
75
73
|
__metadata("design:type", String)
|
|
76
|
-
], CreateProfileDto.prototype, "
|
|
74
|
+
], CreateProfileDto.prototype, "country", void 0);
|
|
77
75
|
__decorate([
|
|
78
76
|
(0, class_validator_1.IsOptional)(),
|
|
79
77
|
(0, class_validator_1.IsString)(),
|
|
@@ -81,19 +79,21 @@ __decorate([
|
|
|
81
79
|
__metadata("design:type", String)
|
|
82
80
|
], CreateProfileDto.prototype, "comment", void 0);
|
|
83
81
|
__decorate([
|
|
84
|
-
(0,
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
85
84
|
(0, class_transformer_1.Expose)(),
|
|
86
85
|
__metadata("design:type", String)
|
|
87
|
-
], CreateProfileDto.prototype, "
|
|
86
|
+
], CreateProfileDto.prototype, "logo", void 0);
|
|
88
87
|
__decorate([
|
|
89
|
-
(0,
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsString)(),
|
|
90
90
|
(0, class_transformer_1.Expose)(),
|
|
91
91
|
__metadata("design:type", String)
|
|
92
|
-
], CreateProfileDto.prototype, "
|
|
92
|
+
], CreateProfileDto.prototype, "instagram", void 0);
|
|
93
93
|
__decorate([
|
|
94
94
|
(0, class_validator_1.IsOptional)(),
|
|
95
95
|
(0, class_validator_1.IsString)(),
|
|
96
96
|
(0, class_transformer_1.Expose)(),
|
|
97
97
|
__metadata("design:type", String)
|
|
98
|
-
], CreateProfileDto.prototype, "
|
|
98
|
+
], CreateProfileDto.prototype, "facebook", void 0);
|
|
99
99
|
exports.CreateProfileDto = CreateProfileDto;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
1
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
3
|
import { ResponseObject } from '../shared/ro';
|
|
3
4
|
import { ProfileCurrencyEnum } from './enum/profile-currency';
|
|
@@ -14,13 +15,14 @@ export declare type ProfileResponseObject = ResponseObject & {
|
|
|
14
15
|
instagram?: string;
|
|
15
16
|
comment?: string;
|
|
16
17
|
logo?: string;
|
|
17
|
-
status: ProfileStatusEnum;
|
|
18
|
-
language: Languages;
|
|
19
|
-
currency: ProfileCurrencyEnum;
|
|
20
18
|
locationsCount: number;
|
|
21
19
|
questroomsCount: number;
|
|
22
20
|
contactPhone: string;
|
|
23
21
|
contactName: string;
|
|
24
22
|
balance: number;
|
|
25
23
|
registrationRequestId: number;
|
|
24
|
+
status: ProfileStatusEnum;
|
|
25
|
+
language: Languages;
|
|
26
|
+
country: CountriesEnum;
|
|
27
|
+
currency: ProfileCurrencyEnum;
|
|
26
28
|
};
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateRegistrationRequestDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
15
16
|
class CreateRegistrationRequestDto {
|
|
16
17
|
}
|
|
17
18
|
__decorate([
|
|
@@ -25,7 +26,11 @@ __decorate([
|
|
|
25
26
|
__metadata("design:type", String)
|
|
26
27
|
], CreateRegistrationRequestDto.prototype, "phone", void 0);
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, class_validator_1.
|
|
29
|
+
(0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateRegistrationRequestDto.prototype, "country", void 0);
|
|
33
|
+
__decorate([
|
|
29
34
|
(0, class_validator_1.IsUrl)(),
|
|
30
35
|
(0, class_transformer_1.Expose)(),
|
|
31
36
|
__metadata("design:type", String)
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
1
2
|
import { RegistrationRequestStatusEnum } from './enum/registration-request-status';
|
|
2
3
|
export declare type RegistrationRequestResponseObject = {
|
|
3
4
|
email: string;
|
|
4
5
|
phone: string;
|
|
5
6
|
site: string;
|
|
7
|
+
country: CountriesEnum;
|
|
6
8
|
status: RegistrationRequestStatusEnum;
|
|
7
9
|
comment?: string;
|
|
8
10
|
id: number;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CountriesEnum = void 0;
|
|
4
4
|
var CountriesEnum;
|
|
5
5
|
(function (CountriesEnum) {
|
|
6
|
-
CountriesEnum["GERMANY"] = "
|
|
7
|
-
CountriesEnum["AUSTRIA"] = "
|
|
6
|
+
CountriesEnum["GERMANY"] = "Germany";
|
|
7
|
+
CountriesEnum["AUSTRIA"] = "Austria";
|
|
8
|
+
CountriesEnum["USA"] = "USA";
|
|
9
|
+
CountriesEnum["POLAND"] = "Poland";
|
|
8
10
|
})(CountriesEnum = exports.CountriesEnum || (exports.CountriesEnum = {}));
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Languages = void 0;
|
|
4
4
|
var Languages;
|
|
5
5
|
(function (Languages) {
|
|
6
|
-
Languages["RU"] = "ru";
|
|
7
6
|
Languages["EN"] = "en";
|
|
8
7
|
Languages["DE"] = "de";
|
|
9
8
|
})(Languages = exports.Languages || (exports.Languages = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourceEnum = void 0;
|
|
4
|
+
var SourceEnum;
|
|
5
|
+
(function (SourceEnum) {
|
|
6
|
+
SourceEnum["WIDGET"] = "widget";
|
|
7
|
+
SourceEnum["USER"] = "user";
|
|
8
|
+
SourceEnum["SUPPORT"] = "support";
|
|
9
|
+
SourceEnum["AGREGATOR"] = "agregator";
|
|
10
|
+
})(SourceEnum = exports.SourceEnum || (exports.SourceEnum = {}));
|
package/dist/slot/slot.ro.d.ts
CHANGED
|
@@ -14,10 +14,14 @@ export declare type SlotRO = {
|
|
|
14
14
|
order?: {
|
|
15
15
|
id: number;
|
|
16
16
|
players: number;
|
|
17
|
-
status: 'not_payed' | 'payed' | 'half-payed' | 'over-payed';
|
|
18
17
|
hasDiscounts: boolean;
|
|
19
18
|
hasCertificateApplies: boolean;
|
|
20
19
|
hasPenalties: boolean;
|
|
21
20
|
hasUpsellings: boolean;
|
|
21
|
+
utcDate: string;
|
|
22
|
+
total: number;
|
|
23
|
+
payed: number;
|
|
24
|
+
code: string;
|
|
25
|
+
moderatorId: number;
|
|
22
26
|
};
|
|
23
27
|
};
|
|
@@ -18,7 +18,7 @@ __decorate([
|
|
|
18
18
|
(0, class_validator_1.IsNumber)(),
|
|
19
19
|
(0, class_transformer_1.Expose)(),
|
|
20
20
|
__metadata("design:type", Number)
|
|
21
|
-
], CreateCertificateSalePaymentDto.prototype, "
|
|
21
|
+
], CreateCertificateSalePaymentDto.prototype, "certificatesaleId", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsNumber)(),
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
@@ -19,7 +19,7 @@ __decorate([
|
|
|
19
19
|
(0, class_validator_1.IsNumber)(),
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", Number)
|
|
22
|
-
], CreateCertificateSaleRefundDto.prototype, "
|
|
22
|
+
], CreateCertificateSaleRefundDto.prototype, "certificatesaleId", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, class_validator_1.IsNumber)(),
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
@@ -35,4 +35,10 @@ __decorate([
|
|
|
35
35
|
(0, class_transformer_1.Expose)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], CreateCertificateSaleRefundDto.prototype, "comment", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsBoolean)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], CreateCertificateSaleRefundDto.prototype, "withStripeRefund", void 0);
|
|
38
44
|
exports.CreateCertificateSaleRefundDto = CreateCertificateSaleRefundDto;
|
|
@@ -35,4 +35,10 @@ __decorate([
|
|
|
35
35
|
(0, class_transformer_1.Expose)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], CreateOrderRefundDto.prototype, "comment", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsBoolean)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], CreateOrderRefundDto.prototype, "withStripeRefund", void 0);
|
|
38
44
|
exports.CreateOrderRefundDto = CreateOrderRefundDto;
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* При создании PaymentIntent платежу назначается статус created
|
|
3
|
+
*
|
|
4
|
+
* При переходе пользователя на страницу оплаты и удачного введенияданных платеж может перейти в статусы:
|
|
5
|
+
* - succeeded
|
|
6
|
+
* - processing
|
|
7
|
+
* Эти статусы считаются успешными, сумма за них учитывается в оплате игры
|
|
8
|
+
*
|
|
9
|
+
* Остальные статусы - показывать страницу оплаты с инфой что платеж не прошел!
|
|
10
|
+
*
|
|
11
|
+
* При переходе платежа в статус processing он все еще может отмениться, необходим хук для отмены платежа
|
|
12
|
+
*/
|
|
1
13
|
export declare enum TransactionTypeEnum {
|
|
2
14
|
INSIDE = "inside",
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
15
|
+
SUCCEEDED = "succeeded",
|
|
16
|
+
PROCESSING = "processing",
|
|
17
|
+
CREATED = "created",
|
|
18
|
+
CANCELED = "canceled",
|
|
19
|
+
STOPPED = "stopped"
|
|
6
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Вопросы
|
|
23
|
+
* 1. payment_intent.partially_funded - хук вызывается когда деньги получены клиентом?
|
|
24
|
+
* 2. CVC check fails в тестовом режиме всегда проходит со статусом success
|
|
25
|
+
* 3. Может ли транзакция после статуса success измениться на другой статус?
|
|
26
|
+
*/
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* При создании PaymentIntent платежу назначается статус created
|
|
4
|
+
*
|
|
5
|
+
* При переходе пользователя на страницу оплаты и удачного введенияданных платеж может перейти в статусы:
|
|
6
|
+
* - succeeded
|
|
7
|
+
* - processing
|
|
8
|
+
* Эти статусы считаются успешными, сумма за них учитывается в оплате игры
|
|
9
|
+
*
|
|
10
|
+
* Остальные статусы - показывать страницу оплаты с инфой что платеж не прошел!
|
|
11
|
+
*
|
|
12
|
+
* При переходе платежа в статус processing он все еще может отмениться, необходим хук для отмены платежа
|
|
13
|
+
*/
|
|
2
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
15
|
exports.TransactionTypeEnum = void 0;
|
|
4
16
|
var TransactionTypeEnum;
|
|
5
17
|
(function (TransactionTypeEnum) {
|
|
18
|
+
// любые не онлайн платежи
|
|
6
19
|
TransactionTypeEnum["INSIDE"] = "inside";
|
|
7
|
-
|
|
8
|
-
TransactionTypeEnum["
|
|
9
|
-
|
|
20
|
+
// платеж поступил в кассу
|
|
21
|
+
TransactionTypeEnum["SUCCEEDED"] = "succeeded";
|
|
22
|
+
// платеж обрабатывается
|
|
23
|
+
TransactionTypeEnum["PROCESSING"] = "processing";
|
|
24
|
+
// платеж создан
|
|
25
|
+
TransactionTypeEnum["CREATED"] = "created";
|
|
26
|
+
// платеж отменен
|
|
27
|
+
TransactionTypeEnum["CANCELED"] = "canceled";
|
|
28
|
+
// платеж отменен
|
|
29
|
+
TransactionTypeEnum["STOPPED"] = "stopped";
|
|
10
30
|
})(TransactionTypeEnum = exports.TransactionTypeEnum || (exports.TransactionTypeEnum = {}));
|
|
31
|
+
/**
|
|
32
|
+
* Вопросы
|
|
33
|
+
* 1. payment_intent.partially_funded - хук вызывается когда деньги получены клиентом?
|
|
34
|
+
* 2. CVC check fails в тестовом режиме всегда проходит со статусом success
|
|
35
|
+
* 3. Может ли транзакция после статуса success измениться на другой статус?
|
|
36
|
+
*/
|