@alba-cars/common-modules 2.16.1 → 2.16.2

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.
Files changed (150) hide show
  1. package/README.md +42 -42
  2. package/dist/core/enums/Analytics.d.ts +31 -31
  3. package/dist/core/enums/HttpMethods.d.ts +12 -12
  4. package/dist/core/enums/HttpStatusCodes.d.ts +18 -18
  5. package/dist/core/enums/index.d.ts +3 -3
  6. package/dist/core/error-handling/AppError.d.ts +23 -23
  7. package/dist/core/error-handling/index.d.ts +1 -1
  8. package/dist/core/index.d.ts +5 -5
  9. package/dist/core/models/index.d.ts +3 -3
  10. package/dist/core/models/media/index.d.ts +1 -1
  11. package/dist/core/models/media/media_data.d.ts +5 -5
  12. package/dist/core/models/pagination/index.d.ts +1 -1
  13. package/dist/core/models/pagination/paginated_data.d.ts +23 -23
  14. package/dist/core/models/range.d.ts +4 -4
  15. package/dist/core/network/endpoint-config.d.ts +155 -155
  16. package/dist/core/network/fetch-api.d.ts +62 -62
  17. package/dist/core/network/index.d.ts +2 -2
  18. package/dist/core/utils/formatCurrency.d.ts +11 -11
  19. package/dist/core/utils/global-constants.d.ts +6 -6
  20. package/dist/core/utils/global-utils.d.ts +108 -108
  21. package/dist/core/utils/global_validators.d.ts +2 -2
  22. package/dist/core/utils/index.d.ts +4 -4
  23. package/dist/core/utils/query_flatten.d.ts +1 -1
  24. package/dist/features/auth/data/dto/AuthDTO.d.ts +32 -32
  25. package/dist/features/auth/data/dto/RoleDTO.d.ts +41 -41
  26. package/dist/features/auth/data/dto/UserDTO.d.ts +71 -71
  27. package/dist/features/auth/data/index.d.ts +3 -3
  28. package/dist/features/auth/index.d.ts +1 -1
  29. package/dist/features/bank-valuation-request/data/dto/BankValuationRequestDTO.d.ts +55 -55
  30. package/dist/features/bank-valuation-request/index.d.ts +1 -1
  31. package/dist/features/blog/data/dto/BlogDTO.d.ts +73 -73
  32. package/dist/features/blog/index.d.ts +1 -1
  33. package/dist/features/callback-request/data/dto/CallBackRequestDTO.d.ts +32 -32
  34. package/dist/features/callback-request/index.d.ts +1 -1
  35. package/dist/features/deposits/data/dto/DepositDTOs.d.ts +84 -84
  36. package/dist/features/deposits/data/index.d.ts +1 -1
  37. package/dist/features/deposits/index.d.ts +1 -1
  38. package/dist/features/faq/data/dtos/CreateFaqDTO.d.ts +15 -15
  39. package/dist/features/faq/data/dtos/FaqFetchDTO.d.ts +105 -105
  40. package/dist/features/faq/data/dtos/UpdateFaqDTO.d.ts +15 -15
  41. package/dist/features/faq/data/dtos/index.d.ts +3 -3
  42. package/dist/features/faq/data/enums/index.d.ts +6 -6
  43. package/dist/features/faq/data/index.d.ts +2 -2
  44. package/dist/features/faq/index.d.ts +1 -1
  45. package/dist/features/finance-eligibilty-request/data/dto/FinanceEligibilityRequestDTO.d.ts +144 -144
  46. package/dist/features/finance-eligibilty-request/data/index.d.ts +1 -1
  47. package/dist/features/finance-eligibilty-request/index.d.ts +1 -1
  48. package/dist/features/google-review/data/dto/google_review_dto.d.ts +103 -103
  49. package/dist/features/google-review/data/dto/index.d.ts +1 -1
  50. package/dist/features/google-review/data/enums/index.d.ts +4 -4
  51. package/dist/features/google-review/data/index.d.ts +2 -2
  52. package/dist/features/google-review/index.d.ts +1 -1
  53. package/dist/features/index.d.ts +18 -18
  54. package/dist/features/lead/data/dto/index.d.ts +4 -4
  55. package/dist/features/lead/data/dto/lead_documents_dto.d.ts +24 -24
  56. package/dist/features/lead/data/dto/lead_dto.d.ts +104 -104
  57. package/dist/features/lead/data/dto/lead_preference_history_dto.d.ts +84 -84
  58. package/dist/features/lead/data/dto/lead_prefernce_dto.d.ts +68 -68
  59. package/dist/features/lead/data/enum/index.d.ts +2 -2
  60. package/dist/features/lead/data/enum/lead_source_status_types.d.ts +15 -15
  61. package/dist/features/lead/data/enum/lead_status_type.d.ts +8 -8
  62. package/dist/features/lead/index.d.ts +2 -2
  63. package/dist/features/models/Bank.d.ts +9 -9
  64. package/dist/features/models/BankValuationRequest.d.ts +63 -63
  65. package/dist/features/models/BankValuationResult.d.ts +24 -24
  66. package/dist/features/models/Base.d.ts +12 -12
  67. package/dist/features/models/Color.d.ts +10 -10
  68. package/dist/features/models/Deposit.d.ts +18 -18
  69. package/dist/features/models/Lead.d.ts +25 -25
  70. package/dist/features/models/Payment.d.ts +46 -46
  71. package/dist/features/models/Roles.d.ts +7 -7
  72. package/dist/features/models/Ticket.d.ts +51 -51
  73. package/dist/features/models/User.d.ts +24 -24
  74. package/dist/features/models/UserFavoriteVehicle.d.ts +9 -9
  75. package/dist/features/models/Vehicle.d.ts +79 -79
  76. package/dist/features/models/VehicleBodyType.d.ts +8 -8
  77. package/dist/features/models/VehicleCategory.d.ts +6 -6
  78. package/dist/features/models/VehicleFeature.d.ts +10 -10
  79. package/dist/features/models/VehicleFeatureCategory.d.ts +7 -7
  80. package/dist/features/models/VehicleFinance.d.ts +29 -29
  81. package/dist/features/models/VehicleMake.d.ts +14 -14
  82. package/dist/features/models/VehicleMedia.d.ts +16 -12
  83. package/dist/features/models/VehicleMetaData.d.ts +11 -11
  84. package/dist/features/models/VehicleModel.d.ts +17 -17
  85. package/dist/features/models/VehicleOrder.d.ts +14 -14
  86. package/dist/features/models/_index.d.ts +14 -14
  87. package/dist/features/models/index.d.ts +21 -21
  88. package/dist/features/newsletter/data/dto/NewsletterDTO.d.ts +17 -17
  89. package/dist/features/newsletter/index.d.ts +1 -1
  90. package/dist/features/sales-team/data/dto/LanguageDTO.d.ts +20 -20
  91. package/dist/features/sales-team/data/dto/SalesAgentDTO.d.ts +204 -204
  92. package/dist/features/sales-team/data/index.d.ts +2 -2
  93. package/dist/features/sales-team/index.d.ts +1 -1
  94. package/dist/features/sell-car-request/data/dto/SellCarRequestDTO.d.ts +203 -203
  95. package/dist/features/sell-car-request/data/index.d.ts +1 -1
  96. package/dist/features/sell-car-request/index.d.ts +1 -1
  97. package/dist/features/showroom-visit/data/dto/ShowroomVisit.d.ts +69 -69
  98. package/dist/features/showroom-visit/data/enums/index.d.ts +11 -11
  99. package/dist/features/showroom-visit/data/index.d.ts +2 -2
  100. package/dist/features/showroom-visit/index.d.ts +1 -1
  101. package/dist/features/test-drive-request/api/GetTestDriveVehicles.d.ts +3 -3
  102. package/dist/features/test-drive-request/api/index.d.ts +1 -1
  103. package/dist/features/test-drive-request/data/dto/TestDriveRequestDTO.d.ts +51 -51
  104. package/dist/features/test-drive-request/data/enums/index.d.ts +24 -24
  105. package/dist/features/test-drive-request/data/index.d.ts +4 -4
  106. package/dist/features/test-drive-request/data/models/TestDriveRequest.d.ts +14 -14
  107. package/dist/features/test-drive-request/data/models/index.d.ts +2 -2
  108. package/dist/features/test-drive-request/data/utilities.d.ts +30 -30
  109. package/dist/features/test-drive-request/index.d.ts +2 -2
  110. package/dist/features/tickets/data/dto/TicketDto.d.ts +69 -69
  111. package/dist/features/tickets/data/enums/index.d.ts +18 -18
  112. package/dist/features/tickets/index.d.ts +2 -2
  113. package/dist/features/vehicle/data/dto/BaseDTO.d.ts +9 -9
  114. package/dist/features/vehicle/data/dto/ColorDTO.d.ts +10 -10
  115. package/dist/features/vehicle/data/dto/MediaDTO.d.ts +5 -5
  116. package/dist/features/vehicle/data/dto/PaymentDTO.d.ts +52 -52
  117. package/dist/features/vehicle/data/dto/SimilarVehicleDTO.d.ts +12 -12
  118. package/dist/features/vehicle/data/dto/VehicleCategoryDTO.d.ts +39 -39
  119. package/dist/features/vehicle/data/dto/VehicleDTO.d.ts +145 -145
  120. package/dist/features/vehicle/data/dto/VehicleFavoritesDTO.d.ts +14 -14
  121. package/dist/features/vehicle/data/dto/VehicleFeatureCategoriesDTO.d.ts +39 -39
  122. package/dist/features/vehicle/data/dto/VehicleFeatureDTO.d.ts +40 -40
  123. package/dist/features/vehicle/data/dto/VehicleFilterDTO.d.ts +258 -258
  124. package/dist/features/vehicle/data/dto/VehicleFinanceDTO.d.ts +63 -63
  125. package/dist/features/vehicle/data/dto/VehicleInspectionDTO.d.ts +147 -147
  126. package/dist/features/vehicle/data/dto/VehicleMakeDTO.d.ts +52 -52
  127. package/dist/features/vehicle/data/dto/VehicleMedia.d.ts +44 -44
  128. package/dist/features/vehicle/data/dto/VehicleModelDTO.d.ts +50 -50
  129. package/dist/features/vehicle/data/dto/VehicleOrderDTO.d.ts +34 -34
  130. package/dist/features/vehicle/data/dto/VehicleTypeDTO.d.ts +35 -35
  131. package/dist/features/vehicle/data/dto/VehicleWarrantyDTO.d.ts +9 -9
  132. package/dist/features/vehicle/data/dto/index.d.ts +20 -20
  133. package/dist/features/vehicle/data/enums/index.d.ts +40 -40
  134. package/dist/features/vehicle/data/index.d.ts +3 -3
  135. package/dist/features/vehicle/data/utilities.d.ts +185 -185
  136. package/dist/features/vehicle/index.d.ts +1 -1
  137. package/dist/features/vehicle-reservations/data/dto/VehicleReservationDTO.d.ts +106 -106
  138. package/dist/features/vehicle-reservations/data/dto/index.d.ts +1 -1
  139. package/dist/features/vehicle-reservations/data/enums/finance-type.d.ts +5 -5
  140. package/dist/features/vehicle-reservations/data/enums/index.d.ts +3 -3
  141. package/dist/features/vehicle-reservations/data/enums/reservation-type.d.ts +9 -9
  142. package/dist/features/vehicle-reservations/data/enums/vehicle-reservation-type.d.ts +4 -4
  143. package/dist/features/vehicle-reservations/index.d.ts +2 -2
  144. package/dist/global/dto/BaseGetDTO.d.ts +8 -8
  145. package/dist/global/dto/index.d.ts +1 -1
  146. package/dist/global/index.d.ts +2 -2
  147. package/dist/global/utilities.d.ts +53 -53
  148. package/dist/index.d.ts +5 -5
  149. package/dist/models.d.ts +1 -1
  150. package/package.json +62 -62
@@ -1,73 +1,73 @@
1
- import { DateFilter, TypedFilter } from "../../../../global/utilities";
2
- declare class BlogFaqItem {
3
- question: string;
4
- answer: string;
5
- }
6
- export declare class BlogFilter extends TypedFilter {
7
- title?: string | string[];
8
- slug?: string | string[];
9
- status?: string | string[];
10
- date?: DateFilter;
11
- validate(): string[];
12
- static fromPlain(plain: Record<string, unknown>): BlogFilter;
13
- }
14
- export declare class BlogGetDTOOptions {
15
- page?: number;
16
- limit?: number;
17
- sort?: any;
18
- }
19
- export declare class BlogGetDTO {
20
- id: string;
21
- title: string;
22
- description: string;
23
- content: string;
24
- date: Date;
25
- imageLink: string;
26
- imageAlt: string;
27
- metaDescription: string;
28
- metaKeywords: string;
29
- slug: string;
30
- status: string;
31
- createdById: string;
32
- faq?: BlogFaqItem[];
33
- audioUrl?: string;
34
- filters?: BlogFilter;
35
- options?: BlogGetDTOOptions;
36
- static fromEntity(entity: any): BlogGetDTO;
37
- toPlain(): Record<string, unknown>;
38
- validate(): string[];
39
- static fromPlain(plain: Record<string, unknown>): BlogGetDTO;
40
- }
41
- export declare class BlogCreateDTO {
42
- title: string;
43
- description: string;
44
- content: string;
45
- date: string;
46
- imageLink: string;
47
- imageAlt: string;
48
- metaDescription: string;
49
- metaKeywords: string;
50
- slug: string;
51
- status: string;
52
- faq?: BlogFaqItem[];
53
- audioUrl?: string;
54
- validate(): string[];
55
- static fromPlain(plain: Record<string, unknown>): BlogCreateDTO;
56
- }
57
- export declare class BlogUpdateDTO {
58
- title?: string;
59
- description?: string;
60
- content?: string;
61
- date?: string;
62
- imageLink?: string;
63
- imageAlt?: string;
64
- metaDescription?: string;
65
- metaKeywords?: string;
66
- slug?: string;
67
- status?: string;
68
- faq?: BlogFaqItem[];
69
- audioUrl?: string;
70
- validate(): string[];
71
- static fromPlain(plain: Record<string, unknown>): BlogUpdateDTO;
72
- }
73
- export {};
1
+ import { DateFilter, TypedFilter } from "../../../../global/utilities";
2
+ declare class BlogFaqItem {
3
+ question: string;
4
+ answer: string;
5
+ }
6
+ export declare class BlogFilter extends TypedFilter {
7
+ title?: string | string[];
8
+ slug?: string | string[];
9
+ status?: string | string[];
10
+ date?: DateFilter;
11
+ validate(): string[];
12
+ static fromPlain(plain: Record<string, unknown>): BlogFilter;
13
+ }
14
+ export declare class BlogGetDTOOptions {
15
+ page?: number;
16
+ limit?: number;
17
+ sort?: any;
18
+ }
19
+ export declare class BlogGetDTO {
20
+ id: string;
21
+ title: string;
22
+ description: string;
23
+ content: string;
24
+ date: Date;
25
+ imageLink: string;
26
+ imageAlt: string;
27
+ metaDescription: string;
28
+ metaKeywords: string;
29
+ slug: string;
30
+ status: string;
31
+ createdById: string;
32
+ faq?: BlogFaqItem[];
33
+ audioUrl?: string;
34
+ filters?: BlogFilter;
35
+ options?: BlogGetDTOOptions;
36
+ static fromEntity(entity: any): BlogGetDTO;
37
+ toPlain(): Record<string, unknown>;
38
+ validate(): string[];
39
+ static fromPlain(plain: Record<string, unknown>): BlogGetDTO;
40
+ }
41
+ export declare class BlogCreateDTO {
42
+ title: string;
43
+ description: string;
44
+ content: string;
45
+ date: string;
46
+ imageLink: string;
47
+ imageAlt: string;
48
+ metaDescription: string;
49
+ metaKeywords: string;
50
+ slug: string;
51
+ status: string;
52
+ faq?: BlogFaqItem[];
53
+ audioUrl?: string;
54
+ validate(): string[];
55
+ static fromPlain(plain: Record<string, unknown>): BlogCreateDTO;
56
+ }
57
+ export declare class BlogUpdateDTO {
58
+ title?: string;
59
+ description?: string;
60
+ content?: string;
61
+ date?: string;
62
+ imageLink?: string;
63
+ imageAlt?: string;
64
+ metaDescription?: string;
65
+ metaKeywords?: string;
66
+ slug?: string;
67
+ status?: string;
68
+ faq?: BlogFaqItem[];
69
+ audioUrl?: string;
70
+ validate(): string[];
71
+ static fromPlain(plain: Record<string, unknown>): BlogUpdateDTO;
72
+ }
73
+ export {};
@@ -1 +1 @@
1
- export * from "./data/dto/BlogDTO";
1
+ export * from "./data/dto/BlogDTO";
@@ -1,32 +1,32 @@
1
- import { ValidatorConstraintInterface, ValidationArguments } from "class-validator";
2
- export declare class IsPhoneConstraint implements ValidatorConstraintInterface {
3
- validate(phone: string, args: ValidationArguments): boolean;
4
- defaultMessage(args: ValidationArguments): string;
5
- }
6
- export declare class CallbackRequestCreateDTO {
7
- name: string;
8
- phone: string;
9
- enquiryText: string;
10
- validate(): string[];
11
- static fromPlain(plain: Record<string, unknown>): CallbackRequestCreateDTO;
12
- toPlain(): Record<string, unknown>;
13
- }
14
- export declare class CallbackRequestUpdateDTO {
15
- name?: string;
16
- phone?: string;
17
- enquiryText?: string;
18
- validate(): string[];
19
- static fromPlain(plain: Record<string, unknown>): CallbackRequestUpdateDTO;
20
- toPlain(): Record<string, unknown>;
21
- }
22
- export declare class CallbackRequestResponseDTO {
23
- id: string;
24
- name: string;
25
- phone: string;
26
- enquiryText: string;
27
- createdAt: Date;
28
- updatedAt: Date;
29
- validate(): string[];
30
- static fromPlain(plain: Record<string, unknown>): CallbackRequestResponseDTO;
31
- toPlain(): Record<string, unknown>;
32
- }
1
+ import { ValidatorConstraintInterface, ValidationArguments } from "class-validator";
2
+ export declare class IsPhoneConstraint implements ValidatorConstraintInterface {
3
+ validate(phone: string, args: ValidationArguments): boolean;
4
+ defaultMessage(args: ValidationArguments): string;
5
+ }
6
+ export declare class CallbackRequestCreateDTO {
7
+ name: string;
8
+ phone: string;
9
+ enquiryText: string;
10
+ validate(): string[];
11
+ static fromPlain(plain: Record<string, unknown>): CallbackRequestCreateDTO;
12
+ toPlain(): Record<string, unknown>;
13
+ }
14
+ export declare class CallbackRequestUpdateDTO {
15
+ name?: string;
16
+ phone?: string;
17
+ enquiryText?: string;
18
+ validate(): string[];
19
+ static fromPlain(plain: Record<string, unknown>): CallbackRequestUpdateDTO;
20
+ toPlain(): Record<string, unknown>;
21
+ }
22
+ export declare class CallbackRequestResponseDTO {
23
+ id: string;
24
+ name: string;
25
+ phone: string;
26
+ enquiryText: string;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ validate(): string[];
30
+ static fromPlain(plain: Record<string, unknown>): CallbackRequestResponseDTO;
31
+ toPlain(): Record<string, unknown>;
32
+ }
@@ -1 +1 @@
1
- export * from "./data/dto/CallBackRequestDTO";
1
+ export * from "./data/dto/CallBackRequestDTO";
@@ -1,84 +1,84 @@
1
- import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
2
- import { LeadDTO } from "../../../lead/data/dto/lead_dto";
3
- import { Vehicle } from "../../../models";
4
- import { MarketingData } from "../../../../core";
5
- export declare enum DepositStatus {
6
- PENDING = "pending",
7
- COMPLETED = "completed",
8
- FAILED = "failed"
9
- }
10
- export declare enum PaymentOption {
11
- CASH = "cash",
12
- BANK_TYPE_A = "bank-a",
13
- BANK_TYPE_B = "bank-b"
14
- }
15
- export declare class DepositDTO {
16
- id: string;
17
- stripePaymentIntentId: string;
18
- amount: number;
19
- currency: string;
20
- status: DepositStatus;
21
- isRefundable: boolean;
22
- paymentOption: PaymentOption;
23
- isRefunded: boolean;
24
- lead?: LeadDTO;
25
- vehicle: Vehicle;
26
- isDeleted?: boolean;
27
- createdAt?: Date;
28
- updatedAt?: Date;
29
- validate(): string[];
30
- static fromPlain(plain: Record<string, unknown>): DepositDTO;
31
- toPlain(): Record<string, unknown>;
32
- }
33
- export declare class DepositCreateDTO {
34
- stripePaymentIntentId: string;
35
- amount: number;
36
- paymentOption: PaymentOption;
37
- currency: string;
38
- status: DepositStatus;
39
- isRefundable?: boolean;
40
- isRefunded?: boolean;
41
- leadId?: string;
42
- userId?: string;
43
- vehicleId: string;
44
- marketing?: MarketingData;
45
- validate(): string[];
46
- static fromPlain(plain: Record<string, unknown>): DepositCreateDTO;
47
- toPlain(): Record<string, unknown>;
48
- }
49
- export declare class DepositUpdateDTO {
50
- status?: DepositStatus;
51
- isRefundable?: boolean;
52
- isRefunded?: boolean;
53
- paymentOption?: PaymentOption;
54
- isDeleted?: boolean;
55
- validate(): string[];
56
- static fromPlain(plain: Record<string, unknown>): DepositUpdateDTO;
57
- toPlain(): Record<string, unknown>;
58
- }
59
- export declare class DepositFilter extends TypedFilter {
60
- id?: string | string[];
61
- stripePaymentIntentId?: string | string[];
62
- amount?: number | number[];
63
- currency?: string | string[];
64
- status?: DepositStatus | DepositStatus[];
65
- isRefundable?: boolean;
66
- isRefunded?: boolean;
67
- leadId?: string | string[];
68
- userId?: string | string[];
69
- vehicleId?: string | string[];
70
- isDeleted?: boolean;
71
- search?: string;
72
- fromDate?: Date;
73
- toDate?: Date;
74
- }
75
- export declare class DepositOptions extends TypedOptions<DepositDTO> {
76
- static fromPlain(plain: Record<string, unknown>): DepositOptions;
77
- toPlain(): Record<string, unknown>;
78
- }
79
- export declare class DepositGetDTO extends BaseGetDTO<DepositDTO, DepositFilter> {
80
- filters?: DepositFilter;
81
- options?: DepositOptions;
82
- static fromPlain<T extends BaseGetDTO<DepositDTO, DepositFilter>>(this: new () => T, plain: Record<string, unknown>): T;
83
- toPlain(): Record<string, unknown>;
84
- }
1
+ import { BaseGetDTO, TypedFilter, TypedOptions } from "../../../../global";
2
+ import { LeadDTO } from "../../../lead/data/dto/lead_dto";
3
+ import { Vehicle } from "../../../models";
4
+ import { MarketingData } from "../../../../core";
5
+ export declare enum DepositStatus {
6
+ PENDING = "pending",
7
+ COMPLETED = "completed",
8
+ FAILED = "failed"
9
+ }
10
+ export declare enum PaymentOption {
11
+ CASH = "cash",
12
+ BANK_TYPE_A = "bank-a",
13
+ BANK_TYPE_B = "bank-b"
14
+ }
15
+ export declare class DepositDTO {
16
+ id: string;
17
+ stripePaymentIntentId: string;
18
+ amount: number;
19
+ currency: string;
20
+ status: DepositStatus;
21
+ isRefundable: boolean;
22
+ paymentOption: PaymentOption;
23
+ isRefunded: boolean;
24
+ lead?: LeadDTO;
25
+ vehicle: Vehicle;
26
+ isDeleted?: boolean;
27
+ createdAt?: Date;
28
+ updatedAt?: Date;
29
+ validate(): string[];
30
+ static fromPlain(plain: Record<string, unknown>): DepositDTO;
31
+ toPlain(): Record<string, unknown>;
32
+ }
33
+ export declare class DepositCreateDTO {
34
+ stripePaymentIntentId: string;
35
+ amount: number;
36
+ paymentOption: PaymentOption;
37
+ currency: string;
38
+ status: DepositStatus;
39
+ isRefundable?: boolean;
40
+ isRefunded?: boolean;
41
+ leadId?: string;
42
+ userId?: string;
43
+ vehicleId: string;
44
+ marketing?: MarketingData;
45
+ validate(): string[];
46
+ static fromPlain(plain: Record<string, unknown>): DepositCreateDTO;
47
+ toPlain(): Record<string, unknown>;
48
+ }
49
+ export declare class DepositUpdateDTO {
50
+ status?: DepositStatus;
51
+ isRefundable?: boolean;
52
+ isRefunded?: boolean;
53
+ paymentOption?: PaymentOption;
54
+ isDeleted?: boolean;
55
+ validate(): string[];
56
+ static fromPlain(plain: Record<string, unknown>): DepositUpdateDTO;
57
+ toPlain(): Record<string, unknown>;
58
+ }
59
+ export declare class DepositFilter extends TypedFilter {
60
+ id?: string | string[];
61
+ stripePaymentIntentId?: string | string[];
62
+ amount?: number | number[];
63
+ currency?: string | string[];
64
+ status?: DepositStatus | DepositStatus[];
65
+ isRefundable?: boolean;
66
+ isRefunded?: boolean;
67
+ leadId?: string | string[];
68
+ userId?: string | string[];
69
+ vehicleId?: string | string[];
70
+ isDeleted?: boolean;
71
+ search?: string;
72
+ fromDate?: Date;
73
+ toDate?: Date;
74
+ }
75
+ export declare class DepositOptions extends TypedOptions<DepositDTO> {
76
+ static fromPlain(plain: Record<string, unknown>): DepositOptions;
77
+ toPlain(): Record<string, unknown>;
78
+ }
79
+ export declare class DepositGetDTO extends BaseGetDTO<DepositDTO, DepositFilter> {
80
+ filters?: DepositFilter;
81
+ options?: DepositOptions;
82
+ static fromPlain<T extends BaseGetDTO<DepositDTO, DepositFilter>>(this: new () => T, plain: Record<string, unknown>): T;
83
+ toPlain(): Record<string, unknown>;
84
+ }
@@ -1 +1 @@
1
- export * from "./dto/DepositDTOs";
1
+ export * from "./dto/DepositDTOs";
@@ -1 +1 @@
1
- export * from "./data";
1
+ export * from "./data";
@@ -1,15 +1,15 @@
1
- import { FaqCategory } from "../enums";
2
- export declare class MultilingualContent {
3
- en: string;
4
- ar: string;
5
- ru: string;
6
- zh: string;
7
- }
8
- export declare class CreateFaqDTO {
9
- question: MultilingualContent;
10
- answer: MultilingualContent;
11
- category: FaqCategory;
12
- isActive?: boolean;
13
- order?: number;
14
- static fromPlain(plain: any): CreateFaqDTO;
15
- }
1
+ import { FaqCategory } from "../enums";
2
+ export declare class MultilingualContent {
3
+ en: string;
4
+ ar: string;
5
+ ru: string;
6
+ zh: string;
7
+ }
8
+ export declare class CreateFaqDTO {
9
+ question: MultilingualContent;
10
+ answer: MultilingualContent;
11
+ category: FaqCategory;
12
+ isActive?: boolean;
13
+ order?: number;
14
+ static fromPlain(plain: any): CreateFaqDTO;
15
+ }
@@ -1,105 +1,105 @@
1
- import { FaqCategory } from "../enums";
2
- export declare class MultilingualContentFetch {
3
- en: string;
4
- ar: string;
5
- ru: string;
6
- zh: string;
7
- toPlain(): {
8
- en: string;
9
- ar: string;
10
- ru: string;
11
- zh: string;
12
- };
13
- static fromPlain(plain: any): MultilingualContentFetch;
14
- }
15
- export declare class FaqFilterDTO {
16
- search?: string;
17
- searchLanguage?: 'en' | 'ar' | 'ru' | 'zh';
18
- searchInAnswers?: boolean;
19
- category?: FaqCategory;
20
- isActive?: boolean;
21
- constructor(init?: Partial<FaqFilterDTO>);
22
- validate(shouldValidate?: boolean): string[];
23
- static fromPlain(plain: any): FaqFilterDTO;
24
- static toPlain(instance: FaqFilterDTO): Record<string, unknown>;
25
- }
26
- export declare class SortDTO {
27
- field: string;
28
- direction: 'asc' | 'desc';
29
- }
30
- export declare class FaqOptionsDTO {
31
- page: number;
32
- limit: number;
33
- sort?: {
34
- field: string;
35
- direction: 'asc' | 'desc';
36
- };
37
- constructor(init?: Partial<FaqOptionsDTO>);
38
- validate(shouldValidate?: boolean): string[];
39
- static toPlain(instance: FaqOptionsDTO): Record<string, any>;
40
- static fromPlain(plain: any): FaqOptionsDTO;
41
- }
42
- export declare class FaqFetchDTO {
43
- filter?: FaqFilterDTO;
44
- options?: FaqOptionsDTO;
45
- static fromPlain(plain: any): FaqFetchDTO;
46
- constructor(init?: Partial<FaqFetchDTO>);
47
- static toPlain(instance: FaqFetchDTO): Record<string, unknown>;
48
- }
49
- export declare class FaqResponseDTO {
50
- id: string;
51
- question: MultilingualContentFetch;
52
- answer: MultilingualContentFetch;
53
- category: string;
54
- isActive: boolean;
55
- order: number;
56
- createdAt: string;
57
- updatedAt: string;
58
- toPlain(): {
59
- id: string;
60
- question: {
61
- en: string;
62
- ar: string;
63
- ru: string;
64
- zh: string;
65
- };
66
- answer: {
67
- en: string;
68
- ar: string;
69
- ru: string;
70
- zh: string;
71
- };
72
- category: string;
73
- isActive: boolean;
74
- order: number;
75
- createdAt: string;
76
- updatedAt: string;
77
- };
78
- static fromPlain(plain: Record<string, any>): FaqResponseDTO;
79
- validate(): string[];
80
- }
81
- export interface FaqApiResponse {
82
- success: boolean;
83
- message?: string;
84
- error?: {
85
- message: string;
86
- code?: string;
87
- details?: Record<string, any>;
88
- };
89
- data?: FaqResponseDTO;
90
- }
91
- export interface FaqListApiResponse {
92
- success: boolean;
93
- message?: string;
94
- error?: {
95
- message: string;
96
- code?: string;
97
- details?: Record<string, any>;
98
- };
99
- data?: {
100
- items: FaqResponseDTO[];
101
- total: number;
102
- page: number;
103
- limit: number;
104
- };
105
- }
1
+ import { FaqCategory } from "../enums";
2
+ export declare class MultilingualContentFetch {
3
+ en: string;
4
+ ar: string;
5
+ ru: string;
6
+ zh: string;
7
+ toPlain(): {
8
+ en: string;
9
+ ar: string;
10
+ ru: string;
11
+ zh: string;
12
+ };
13
+ static fromPlain(plain: any): MultilingualContentFetch;
14
+ }
15
+ export declare class FaqFilterDTO {
16
+ search?: string;
17
+ searchLanguage?: 'en' | 'ar' | 'ru' | 'zh';
18
+ searchInAnswers?: boolean;
19
+ category?: FaqCategory;
20
+ isActive?: boolean;
21
+ constructor(init?: Partial<FaqFilterDTO>);
22
+ validate(shouldValidate?: boolean): string[];
23
+ static fromPlain(plain: any): FaqFilterDTO;
24
+ static toPlain(instance: FaqFilterDTO): Record<string, unknown>;
25
+ }
26
+ export declare class SortDTO {
27
+ field: string;
28
+ direction: 'asc' | 'desc';
29
+ }
30
+ export declare class FaqOptionsDTO {
31
+ page: number;
32
+ limit: number;
33
+ sort?: {
34
+ field: string;
35
+ direction: 'asc' | 'desc';
36
+ };
37
+ constructor(init?: Partial<FaqOptionsDTO>);
38
+ validate(shouldValidate?: boolean): string[];
39
+ static toPlain(instance: FaqOptionsDTO): Record<string, any>;
40
+ static fromPlain(plain: any): FaqOptionsDTO;
41
+ }
42
+ export declare class FaqFetchDTO {
43
+ filter?: FaqFilterDTO;
44
+ options?: FaqOptionsDTO;
45
+ static fromPlain(plain: any): FaqFetchDTO;
46
+ constructor(init?: Partial<FaqFetchDTO>);
47
+ static toPlain(instance: FaqFetchDTO): Record<string, unknown>;
48
+ }
49
+ export declare class FaqResponseDTO {
50
+ id: string;
51
+ question: MultilingualContentFetch;
52
+ answer: MultilingualContentFetch;
53
+ category: string;
54
+ isActive: boolean;
55
+ order: number;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ toPlain(): {
59
+ id: string;
60
+ question: {
61
+ en: string;
62
+ ar: string;
63
+ ru: string;
64
+ zh: string;
65
+ };
66
+ answer: {
67
+ en: string;
68
+ ar: string;
69
+ ru: string;
70
+ zh: string;
71
+ };
72
+ category: string;
73
+ isActive: boolean;
74
+ order: number;
75
+ createdAt: string;
76
+ updatedAt: string;
77
+ };
78
+ static fromPlain(plain: Record<string, any>): FaqResponseDTO;
79
+ validate(): string[];
80
+ }
81
+ export interface FaqApiResponse {
82
+ success: boolean;
83
+ message?: string;
84
+ error?: {
85
+ message: string;
86
+ code?: string;
87
+ details?: Record<string, any>;
88
+ };
89
+ data?: FaqResponseDTO;
90
+ }
91
+ export interface FaqListApiResponse {
92
+ success: boolean;
93
+ message?: string;
94
+ error?: {
95
+ message: string;
96
+ code?: string;
97
+ details?: Record<string, any>;
98
+ };
99
+ data?: {
100
+ items: FaqResponseDTO[];
101
+ total: number;
102
+ page: number;
103
+ limit: number;
104
+ };
105
+ }
@@ -1,15 +1,15 @@
1
- import { FaqCategory } from "../enums";
2
- export declare class UpdateMultilingualContent {
3
- en?: string;
4
- ar?: string;
5
- ru?: string;
6
- zh?: string;
7
- }
8
- export declare class UpdateFaqDTO {
9
- question?: UpdateMultilingualContent;
10
- answer?: UpdateMultilingualContent;
11
- category: FaqCategory;
12
- isActive?: boolean;
13
- order?: number;
14
- static fromPlain(plain: any): UpdateFaqDTO;
15
- }
1
+ import { FaqCategory } from "../enums";
2
+ export declare class UpdateMultilingualContent {
3
+ en?: string;
4
+ ar?: string;
5
+ ru?: string;
6
+ zh?: string;
7
+ }
8
+ export declare class UpdateFaqDTO {
9
+ question?: UpdateMultilingualContent;
10
+ answer?: UpdateMultilingualContent;
11
+ category: FaqCategory;
12
+ isActive?: boolean;
13
+ order?: number;
14
+ static fromPlain(plain: any): UpdateFaqDTO;
15
+ }