@escapenavigator/types 1.4.49 → 1.4.50

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.
@@ -0,0 +1,7 @@
1
+ export declare enum AgbTypeEnum {
2
+ REGISTRATION_NEW_PROFILE = "registration_new_profile",
3
+ COOKIES = "cookies",
4
+ PRIVACY_POLICY = "privacy_policy",
5
+ IMPRINT = "imprint",
6
+ AGREEMENT = "agreement"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgbTypeEnum = void 0;
4
+ var AgbTypeEnum;
5
+ (function (AgbTypeEnum) {
6
+ AgbTypeEnum["REGISTRATION_NEW_PROFILE"] = "registration_new_profile";
7
+ AgbTypeEnum["COOKIES"] = "cookies";
8
+ AgbTypeEnum["PRIVACY_POLICY"] = "privacy_policy";
9
+ AgbTypeEnum["IMPRINT"] = "imprint";
10
+ AgbTypeEnum["AGREEMENT"] = "agreement";
11
+ })(AgbTypeEnum = exports.AgbTypeEnum || (exports.AgbTypeEnum = {}));
@@ -1,4 +1,8 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
1
2
  import { ResponseObject } from '../shared/ro';
3
+ import { AgbTypeEnum } from './agb-type.enum';
2
4
  export declare type AgbResponseObject = ResponseObject & {
3
5
  text: string;
6
+ type: AgbTypeEnum;
7
+ country?: CountriesEnum;
4
8
  };
@@ -0,0 +1,7 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
+ import { AgbTypeEnum } from './agb-type.enum';
3
+ export declare class CreateInsideAgbDto {
4
+ text: string;
5
+ type: AgbTypeEnum;
6
+ country: CountriesEnum;
7
+ }
@@ -0,0 +1,35 @@
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.CreateInsideAgbDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const countries_enum_1 = require("../shared/enum/countries.enum");
16
+ const is_not_blank_1 = require("../shared/is-not-blank");
17
+ const agb_type_enum_1 = require("./agb-type.enum");
18
+ class CreateInsideAgbDto {
19
+ }
20
+ __decorate([
21
+ (0, is_not_blank_1.IsNotBlank)(),
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], CreateInsideAgbDto.prototype, "text", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsEnum)(agb_type_enum_1.AgbTypeEnum),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], CreateInsideAgbDto.prototype, "type", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], CreateInsideAgbDto.prototype, "country", void 0);
35
+ exports.CreateInsideAgbDto = CreateInsideAgbDto;
@@ -0,0 +1,5 @@
1
+ export declare class GetForOrderServiceDto {
2
+ profileId: string;
3
+ type: string;
4
+ country: string;
5
+ }
@@ -0,0 +1,28 @@
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.GetForOrderServiceDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetForOrderServiceDto {
15
+ }
16
+ __decorate([
17
+ (0, class_validator_1.IsOptional)(),
18
+ __metadata("design:type", String)
19
+ ], GetForOrderServiceDto.prototype, "profileId", void 0);
20
+ __decorate([
21
+ (0, class_validator_1.IsOptional)(),
22
+ __metadata("design:type", String)
23
+ ], GetForOrderServiceDto.prototype, "type", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ __metadata("design:type", String)
27
+ ], GetForOrderServiceDto.prototype, "country", void 0);
28
+ exports.GetForOrderServiceDto = GetForOrderServiceDto;
@@ -10,11 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateAgbDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
13
14
  const is_not_blank_1 = require("../shared/is-not-blank");
14
15
  class UpdateAgbDto {
15
16
  }
16
17
  __decorate([
17
18
  (0, is_not_blank_1.IsNotBlank)(),
19
+ (0, class_transformer_1.Expose)(),
18
20
  __metadata("design:type", String)
19
21
  ], UpdateAgbDto.prototype, "text", void 0);
20
22
  exports.UpdateAgbDto = UpdateAgbDto;
@@ -0,0 +1,7 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
+ import { AgbTypeEnum } from './agb-type.enum';
3
+ export declare class UpdateInsideAgbDto {
4
+ text: string;
5
+ type: AgbTypeEnum;
6
+ country: CountriesEnum;
7
+ }
@@ -0,0 +1,35 @@
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.UpdateInsideAgbDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const countries_enum_1 = require("../shared/enum/countries.enum");
16
+ const is_not_blank_1 = require("../shared/is-not-blank");
17
+ const agb_type_enum_1 = require("./agb-type.enum");
18
+ class UpdateInsideAgbDto {
19
+ }
20
+ __decorate([
21
+ (0, is_not_blank_1.IsNotBlank)(),
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], UpdateInsideAgbDto.prototype, "text", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsEnum)(agb_type_enum_1.AgbTypeEnum),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], UpdateInsideAgbDto.prototype, "type", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], UpdateInsideAgbDto.prototype, "country", void 0);
35
+ exports.UpdateInsideAgbDto = UpdateInsideAgbDto;
@@ -15,8 +15,7 @@ export declare enum TransactionTypeEnum {
15
15
  SUCCEEDED = "succeeded",
16
16
  PROCESSING = "processing",
17
17
  CREATED = "created",
18
- CANCELED = "canceled",
19
- STOPPED = "stopped"
18
+ CANCELED = "canceled"
20
19
  }
21
20
  /**
22
21
  * Вопросы
@@ -25,8 +25,6 @@ var TransactionTypeEnum;
25
25
  TransactionTypeEnum["CREATED"] = "created";
26
26
  // платеж отменен
27
27
  TransactionTypeEnum["CANCELED"] = "canceled";
28
- // платеж отменен
29
- TransactionTypeEnum["STOPPED"] = "stopped";
30
28
  })(TransactionTypeEnum = exports.TransactionTypeEnum || (exports.TransactionTypeEnum = {}));
31
29
  /**
32
30
  * Вопросы
@@ -0,0 +1,10 @@
1
+ import { TransactionTypeEnum } from './enum/transaction-type.enum';
2
+ export declare class QueryTransactionDto {
3
+ createdFrom?: string;
4
+ createdTo?: string;
5
+ userId?: number;
6
+ isOnline: boolean;
7
+ cashboxId: number;
8
+ financeitemId: number;
9
+ type: TransactionTypeEnum;
10
+ }
@@ -0,0 +1,50 @@
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.QueryTransactionDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const transaction_type_enum_1 = require("./enum/transaction-type.enum");
15
+ class QueryTransactionDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ __metadata("design:type", String)
20
+ ], QueryTransactionDto.prototype, "createdFrom", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsOptional)(),
23
+ __metadata("design:type", String)
24
+ ], QueryTransactionDto.prototype, "createdTo", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsPositive)(),
28
+ __metadata("design:type", Number)
29
+ ], QueryTransactionDto.prototype, "userId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsBoolean)(),
33
+ __metadata("design:type", Boolean)
34
+ ], QueryTransactionDto.prototype, "isOnline", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsPositive)(),
38
+ __metadata("design:type", Number)
39
+ ], QueryTransactionDto.prototype, "cashboxId", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsPositive)(),
43
+ __metadata("design:type", Number)
44
+ ], QueryTransactionDto.prototype, "financeitemId", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsEnum)(transaction_type_enum_1.TransactionTypeEnum),
48
+ __metadata("design:type", String)
49
+ ], QueryTransactionDto.prototype, "type", void 0);
50
+ exports.QueryTransactionDto = QueryTransactionDto;