@xoxno/types 1.0.192 → 1.0.194

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 (101) hide show
  1. package/dist/common/kusto/lending-overall-stats.d.ts +1 -1
  2. package/dist/common/kusto/lending-overall-stats.js +3 -0
  3. package/dist/common/kusto/user-trading-summary.d.ts +13 -15
  4. package/dist/common/kusto/user-trading-summary.js +91 -0
  5. package/dist/common/kusto/volume-graph.js +71 -0
  6. package/dist/common/kusto/wallet-stats.d.ts +1 -1
  7. package/dist/common/kusto/wallet-stats.js +254 -1
  8. package/dist/common/statistics.js +75 -4
  9. package/dist/cosmos-db/cosmos-db-paginated-response.dto.d.ts +7 -6
  10. package/dist/cosmos-db/cosmos-db-paginated-response.dto.js +14 -2
  11. package/dist/cosmos-db/documents/activity/nft-activity.doc.js +13 -0
  12. package/dist/cosmos-db/documents/chat/chat-message.doc.js +57 -0
  13. package/dist/cosmos-db/documents/chat/chat-read.dto.js +26 -0
  14. package/dist/cosmos-db/documents/chat/group-chat-profile.doc.js +85 -0
  15. package/dist/cosmos-db/documents/chat/user-block.doc.js +76 -0
  16. package/dist/cosmos-db/documents/chat/user-conversation.doc.js +115 -0
  17. package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +1 -1
  18. package/dist/cosmos-db/documents/collection/collectionConfig.js +87 -1
  19. package/dist/cosmos-db/documents/collection/globalOffer.js +37 -0
  20. package/dist/cosmos-db/documents/collection/mintProfile.js +45 -2
  21. package/dist/cosmos-db/documents/external-payment/binance-hook.d.ts +4 -5
  22. package/dist/cosmos-db/documents/external-payment/binance-hook.js +216 -0
  23. package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +218 -0
  24. package/dist/cosmos-db/documents/external-payment/stripe-charge-event.d.ts +71 -71
  25. package/dist/cosmos-db/documents/external-payment/stripe-charge-event.js +783 -0
  26. package/dist/cosmos-db/documents/external-payment/twispay-cart.d.ts +1 -1
  27. package/dist/cosmos-db/documents/external-payment/twispay-cart.js +75 -0
  28. package/dist/cosmos-db/documents/external-payment/twispay-customer.d.ts +1 -2
  29. package/dist/cosmos-db/documents/external-payment/twispay-customer.js +102 -0
  30. package/dist/cosmos-db/documents/external-payment/twispay-payment-form.d.ts +1 -1
  31. package/dist/cosmos-db/documents/external-payment/twispay-payment-form.js +98 -0
  32. package/dist/cosmos-db/documents/external-payment/twispay-transaction.d.ts +1 -1
  33. package/dist/cosmos-db/documents/external-payment/twispay-transaction.js +116 -1
  34. package/dist/cosmos-db/documents/lending/lending-account-profile.js +21 -0
  35. package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +15 -0
  36. package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +21 -0
  37. package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +49 -0
  38. package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +21 -0
  39. package/dist/cosmos-db/documents/notification/notification.doc.js +108 -0
  40. package/dist/cosmos-db/documents/short/short-collection-info.doc.d.ts +2 -2
  41. package/dist/cosmos-db/documents/short/short-collection.doc.d.ts +2 -2
  42. package/dist/cosmos-db/documents/short/short-nft-collection-info.doc.d.ts +2 -2
  43. package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +89 -0
  44. package/dist/cosmos-db/documents/staking/staking-pool-doc.js +274 -0
  45. package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +24 -0
  46. package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +7 -0
  47. package/dist/cosmos-db/documents/ticketing/event-location.js +24 -0
  48. package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +14 -0
  49. package/dist/cosmos-db/documents/ticketing/event-question.doc.js +7 -0
  50. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
  51. package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +7 -0
  52. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +14 -0
  53. package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +14 -0
  54. package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +16 -0
  55. package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +7 -0
  56. package/dist/cosmos-db/documents/token/nft-details.doc.js +18 -5
  57. package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.js +59 -0
  58. package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +40 -0
  59. package/dist/cosmos-db/documents/token/nft-metadata.js +9 -0
  60. package/dist/cosmos-db/documents/token/nft-sale-info.js +89 -17
  61. package/dist/cosmos-db/documents/token/sft-owner-doc.js +86 -0
  62. package/dist/cosmos-db/documents/user/user-favorite.doc.js +67 -0
  63. package/dist/cosmos-db/paginated-responses.d.ts +113 -15
  64. package/dist/cosmos-db/paginated-responses.js +43 -14
  65. package/dist/entities/airdrop/airdrop.dto.js +77 -0
  66. package/dist/entities/auth/login-request.dto.js +7 -0
  67. package/dist/entities/delegation-data/delegation-data-output.js +106 -0
  68. package/dist/entities/mvx-built-in/account-on-network.js +124 -0
  69. package/dist/entities/mvx-built-in/esdt-token.js +187 -0
  70. package/dist/entities/mvx-built-in/mvx-guardian.d.ts +5 -6
  71. package/dist/entities/mvx-built-in/mvx-guardian.js +67 -8
  72. package/dist/entities/notification-data/device-tag-storage.doc.js +79 -11
  73. package/dist/entities/notification-data/push-notification.doc.js +147 -25
  74. package/dist/entities/notification-data/tag-priority.d.ts +1 -1
  75. package/dist/entities/notification-data/tag-priority.js +57 -1
  76. package/dist/entities/search-data/filter-query.dto.js +32 -0
  77. package/dist/entities/staking-data/staking-creator.doc.js +38 -6
  78. package/dist/entities/staking-data/staking-explore.js +26 -5
  79. package/dist/entities/staking-data/user-staking-summary.dto.js +18 -0
  80. package/dist/entities/token-data/metrics.js +192 -38
  81. package/dist/entities/token-data/token-data.doc.js +99 -13
  82. package/dist/entities/transactions/smart-contract-result.js +138 -0
  83. package/dist/entities/transactions/transaction-detailed.js +44 -0
  84. package/dist/entities/transactions/transaction-log-event.js +52 -0
  85. package/dist/entities/transactions/transaction-log.js +51 -0
  86. package/dist/entities/transactions/transaction-operation.js +115 -0
  87. package/dist/entities/transactions/transaction-receipt.js +34 -0
  88. package/dist/entities/transactions/transaction.js +194 -0
  89. package/dist/entities/web2user-data/success.dto.js +18 -0
  90. package/dist/requests/bober-battle/analytics.js +187 -0
  91. package/dist/requests/collection/collection-attributes-map.js +123 -0
  92. package/dist/requests/collection/pinned-collections.d.ts +2 -2
  93. package/dist/requests/collection/shareholder.dto.js +30 -0
  94. package/dist/requests/lending/lending-indexes.dto.js +74 -0
  95. package/dist/requests/lending/lending-token-price.dto.js +18 -0
  96. package/dist/requests/nft-activity-data/nft-activity-data.js +168 -0
  97. package/dist/requests/nft-data/nft-doc.filter.js +2 -0
  98. package/dist/requests/nft-data/nft-offer-doc.filter.js +11 -0
  99. package/dist/requests/nft-data/sign-data.dto.js +10 -2
  100. package/dist/requests/user-data/token-inventory.js +10 -0
  101. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ItemType } from '../../../enums/external-payment-status.enum';
2
- export interface TwispayCartItems {
2
+ export declare class TwispayCartItems {
3
3
  item: string;
4
4
  unitPrice: string;
5
5
  units: number;
@@ -1,2 +1,77 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TwispayCartItems = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const external_payment_status_enum_1 = require("../../../enums/external-payment-status.enum");
15
+ //https://twispay.github.io/
16
+ class TwispayCartItems {
17
+ }
18
+ exports.TwispayCartItems = TwispayCartItems;
19
+ __decorate([
20
+ (0, swagger_1.ApiProperty)({
21
+ description: 'Name of the product',
22
+ example: 'Premium NFT Collection',
23
+ maxLength: 255,
24
+ }),
25
+ __metadata("design:type", String)
26
+ ], TwispayCartItems.prototype, "item", void 0);
27
+ __decorate([
28
+ (0, swagger_1.ApiProperty)({
29
+ description: 'Unit price as string (can have negative value for discounts, vouchers, etc.) – including VAT',
30
+ example: '99.99',
31
+ }),
32
+ __metadata("design:type", String)
33
+ ], TwispayCartItems.prototype, "unitPrice", void 0);
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({
36
+ description: 'Quantity of items',
37
+ type: 'number',
38
+ example: 1,
39
+ minimum: 1,
40
+ }),
41
+ __metadata("design:type", Number)
42
+ ], TwispayCartItems.prototype, "units", void 0);
43
+ __decorate([
44
+ (0, swagger_1.ApiProperty)({
45
+ description: 'Type of item (physical or digital)',
46
+ enum: external_payment_status_enum_1.ItemType,
47
+ enumName: 'ItemType',
48
+ example: external_payment_status_enum_1.ItemType.digital,
49
+ }),
50
+ __metadata("design:type", String)
51
+ ], TwispayCartItems.prototype, "type", void 0);
52
+ __decorate([
53
+ (0, swagger_1.ApiProperty)({
54
+ description: 'Code of the item',
55
+ example: 'NFT-001',
56
+ maxLength: 64,
57
+ }),
58
+ __metadata("design:type", String)
59
+ ], TwispayCartItems.prototype, "code", void 0);
60
+ __decorate([
61
+ (0, swagger_1.ApiPropertyOptional)({
62
+ description: 'VAT percentage',
63
+ type: 'number',
64
+ example: 19,
65
+ minimum: 0,
66
+ maximum: 100,
67
+ }),
68
+ __metadata("design:type", Number)
69
+ ], TwispayCartItems.prototype, "vatPercent", void 0);
70
+ __decorate([
71
+ (0, swagger_1.ApiProperty)({
72
+ description: 'Description of the item',
73
+ example: 'Exclusive digital collectible from the premium collection',
74
+ maxLength: 500,
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], TwispayCartItems.prototype, "itemDescription", void 0);
@@ -1,5 +1,4 @@
1
- export interface TwispayCustomerDetails {
2
- /** @minLength 1 */
1
+ export declare class TwispayCustomerDetails {
3
2
  identifier: string;
4
3
  firstName: string;
5
4
  lastName: string;
@@ -1,2 +1,104 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TwispayCustomerDetails = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ //https://twispay.github.io/
15
+ class TwispayCustomerDetails {
16
+ }
17
+ exports.TwispayCustomerDetails = TwispayCustomerDetails;
18
+ __decorate([
19
+ (0, swagger_1.ApiProperty)({
20
+ description: 'Unique identifier for the customer',
21
+ minLength: 1,
22
+ example: 'CUST_123456',
23
+ }),
24
+ __metadata("design:type", String)
25
+ ], TwispayCustomerDetails.prototype, "identifier", void 0);
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({
28
+ description: 'Customer first name',
29
+ example: 'John',
30
+ }),
31
+ __metadata("design:type", String)
32
+ ], TwispayCustomerDetails.prototype, "firstName", void 0);
33
+ __decorate([
34
+ (0, swagger_1.ApiProperty)({
35
+ description: 'Customer last name',
36
+ example: 'Doe',
37
+ }),
38
+ __metadata("design:type", String)
39
+ ], TwispayCustomerDetails.prototype, "lastName", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({
42
+ description: 'Country code using ISO 3166-1 alpha-2 format',
43
+ example: 'US',
44
+ minLength: 2,
45
+ maxLength: 2,
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], TwispayCustomerDetails.prototype, "country", void 0);
49
+ __decorate([
50
+ (0, swagger_1.ApiPropertyOptional)({
51
+ description: 'State/Province code (mandatory for US and CA; use 2 letters ISO 3166-2:US for US and ISO 3166-2:CA for CA)',
52
+ example: 'NY',
53
+ minLength: 2,
54
+ maxLength: 2,
55
+ }),
56
+ __metadata("design:type", String)
57
+ ], TwispayCustomerDetails.prototype, "state", void 0);
58
+ __decorate([
59
+ (0, swagger_1.ApiProperty)({
60
+ description: 'City name',
61
+ example: 'New York',
62
+ }),
63
+ __metadata("design:type", String)
64
+ ], TwispayCustomerDetails.prototype, "city", void 0);
65
+ __decorate([
66
+ (0, swagger_1.ApiPropertyOptional)({
67
+ description: 'Zip/Postal code (no spaces allowed)',
68
+ example: '10001',
69
+ pattern: '^\\S+$',
70
+ }),
71
+ __metadata("design:type", String)
72
+ ], TwispayCustomerDetails.prototype, "zipCode", void 0);
73
+ __decorate([
74
+ (0, swagger_1.ApiPropertyOptional)({
75
+ description: 'Customer address',
76
+ example: '123 Main Street, Apt 4B',
77
+ }),
78
+ __metadata("design:type", String)
79
+ ], TwispayCustomerDetails.prototype, "address", void 0);
80
+ __decorate([
81
+ (0, swagger_1.ApiProperty)({
82
+ description: 'Phone number (no spaces allowed)',
83
+ example: '+1234567890',
84
+ pattern: '^\\S+$',
85
+ }),
86
+ __metadata("design:type", String)
87
+ ], TwispayCustomerDetails.prototype, "phone", void 0);
88
+ __decorate([
89
+ (0, swagger_1.ApiProperty)({
90
+ description: 'Customer email address',
91
+ example: 'customer@example.com',
92
+ format: 'email',
93
+ }),
94
+ __metadata("design:type", String)
95
+ ], TwispayCustomerDetails.prototype, "email", void 0);
96
+ __decorate([
97
+ (0, swagger_1.ApiPropertyOptional)({
98
+ description: 'Array of tags associated with the customer',
99
+ type: [String],
100
+ example: ['VIP', 'Premium'],
101
+ isArray: true,
102
+ }),
103
+ __metadata("design:type", Array)
104
+ ], TwispayCustomerDetails.prototype, "tags", void 0);
@@ -1,6 +1,6 @@
1
1
  import { TwispayTransactionStatus } from '../../../enums/twispay.enum';
2
2
  import { ExternalPaymentRequest } from './external-payment-request';
3
- export interface TwispayCallBackData {
3
+ export declare class TwispayCallBackData {
4
4
  transactionStatus: TwispayTransactionStatus;
5
5
  orderId: string;
6
6
  transactionId: number | string;
@@ -1,2 +1,100 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TwispayCallBackData = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const twispay_enum_1 = require("../../../enums/twispay.enum");
15
+ const external_payment_request_1 = require("./external-payment-request");
16
+ class TwispayCallBackData {
17
+ }
18
+ exports.TwispayCallBackData = TwispayCallBackData;
19
+ __decorate([
20
+ (0, swagger_1.ApiProperty)({
21
+ description: 'Status of the Twispay transaction',
22
+ enum: twispay_enum_1.TwispayTransactionStatus,
23
+ enumName: 'TwispayTransactionStatus',
24
+ }),
25
+ __metadata("design:type", String)
26
+ ], TwispayCallBackData.prototype, "transactionStatus", void 0);
27
+ __decorate([
28
+ (0, swagger_1.ApiProperty)({
29
+ description: 'Order ID from Twispay',
30
+ example: 'ORDER_123456',
31
+ }),
32
+ __metadata("design:type", String)
33
+ ], TwispayCallBackData.prototype, "orderId", void 0);
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({
36
+ description: 'Transaction ID from Twispay',
37
+ oneOf: [{ type: 'number' }, { type: 'string' }],
38
+ example: 'TXN_789012',
39
+ }),
40
+ __metadata("design:type", Object)
41
+ ], TwispayCallBackData.prototype, "transactionId", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({
44
+ description: 'External order ID reference',
45
+ example: 'EXT_ORDER_456789',
46
+ }),
47
+ __metadata("design:type", String)
48
+ ], TwispayCallBackData.prototype, "externalOrderId", void 0);
49
+ __decorate([
50
+ (0, swagger_1.ApiProperty)({
51
+ description: 'Transaction amount',
52
+ type: 'number',
53
+ example: 100.0,
54
+ }),
55
+ __metadata("design:type", Number)
56
+ ], TwispayCallBackData.prototype, "amount", void 0);
57
+ __decorate([
58
+ (0, swagger_1.ApiProperty)({
59
+ description: 'Customer identifier',
60
+ example: 'CUST_123456',
61
+ }),
62
+ __metadata("design:type", String)
63
+ ], TwispayCallBackData.prototype, "identifier", void 0);
64
+ __decorate([
65
+ (0, swagger_1.ApiProperty)({
66
+ description: 'Currency code',
67
+ example: 'USD',
68
+ }),
69
+ __metadata("design:type", String)
70
+ ], TwispayCallBackData.prototype, "currency", void 0);
71
+ __decorate([
72
+ (0, swagger_1.ApiProperty)({
73
+ description: 'Unix timestamp of the transaction',
74
+ type: 'number',
75
+ example: 1672531200,
76
+ }),
77
+ __metadata("design:type", Number)
78
+ ], TwispayCallBackData.prototype, "timestamp", void 0);
79
+ __decorate([
80
+ (0, swagger_1.ApiProperty)({
81
+ description: 'Customer ID from Twispay',
82
+ example: 'TWISPAY_CUST_789',
83
+ }),
84
+ __metadata("design:type", String)
85
+ ], TwispayCallBackData.prototype, "customerId", void 0);
86
+ __decorate([
87
+ (0, swagger_1.ApiProperty)({
88
+ description: 'Custom data containing the external payment request',
89
+ type: () => external_payment_request_1.ExternalPaymentRequest,
90
+ }),
91
+ __metadata("design:type", external_payment_request_1.ExternalPaymentRequest)
92
+ ], TwispayCallBackData.prototype, "customData", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiPropertyOptional)({
95
+ description: 'Array of errors if any occurred',
96
+ type: [Object],
97
+ example: [{ code: 'ERR_001', message: 'Payment failed' }],
98
+ }),
99
+ __metadata("design:type", Array)
100
+ ], TwispayCallBackData.prototype, "errors", void 0);
@@ -1,6 +1,6 @@
1
1
  import { TwispayTransactionType, TwispayIntervalType } from '../../../enums/twispay.enum';
2
2
  import { TwispayCartItems } from './twispay-cart';
3
- export interface TwispayOrderDetails {
3
+ export declare class TwispayOrderDetails {
4
4
  amount: number;
5
5
  currency: string;
6
6
  description?: string;
@@ -1,7 +1,122 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TwispayOrderDetails = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const twispay_enum_1 = require("../../../enums/twispay.enum");
15
+ const twispay_cart_1 = require("./twispay-cart");
16
+ //https://twispay.github.io/
17
+ class TwispayOrderDetails {
18
+ }
19
+ exports.TwispayOrderDetails = TwispayOrderDetails;
20
+ __decorate([
21
+ (0, swagger_1.ApiProperty)({
22
+ description: 'Order amount (use dot as decimal separator)',
23
+ type: 'number',
24
+ example: 99.99,
25
+ }),
26
+ __metadata("design:type", Number)
27
+ ], TwispayOrderDetails.prototype, "amount", void 0);
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({
30
+ description: 'Currency code (ISO 4217 three letter code)',
31
+ example: 'USD',
32
+ minLength: 3,
33
+ maxLength: 3,
34
+ }),
35
+ __metadata("design:type", String)
36
+ ], TwispayOrderDetails.prototype, "currency", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiPropertyOptional)({
39
+ description: 'Order description (mandatory if items are not defined)',
40
+ example: 'Purchase of exclusive NFT collection',
41
+ maxLength: 77056,
42
+ }),
43
+ __metadata("design:type", String)
44
+ ], TwispayOrderDetails.prototype, "description", void 0);
45
+ __decorate([
46
+ (0, swagger_1.ApiProperty)({
47
+ description: 'Type of Twispay transaction',
48
+ enum: twispay_enum_1.TwispayTransactionType,
49
+ enumName: 'TwispayTransactionType',
50
+ }),
51
+ __metadata("design:type", String)
52
+ ], TwispayOrderDetails.prototype, "type", void 0);
53
+ __decorate([
54
+ (0, swagger_1.ApiProperty)({
55
+ description: 'Your unique identifier for the transaction',
56
+ example: 'ORDER_123456789',
57
+ }),
58
+ __metadata("design:type", String)
59
+ ], TwispayOrderDetails.prototype, "orderId", void 0);
60
+ __decorate([
61
+ (0, swagger_1.ApiPropertyOptional)({
62
+ description: 'Comma separated values representing retry intervals for failed re-bill payments (ISO 8601 Durations)',
63
+ example: 'P1D,P2D,P3D',
64
+ }),
65
+ __metadata("design:type", String)
66
+ ], TwispayOrderDetails.prototype, "retryPayment", void 0);
67
+ __decorate([
68
+ (0, swagger_1.ApiPropertyOptional)({
69
+ description: 'Array of tags for the order',
70
+ type: [String],
71
+ example: ['recurring', 'premium'],
72
+ isArray: true,
73
+ }),
74
+ __metadata("design:type", Array)
75
+ ], TwispayOrderDetails.prototype, "tags", void 0);
76
+ __decorate([
77
+ (0, swagger_1.ApiPropertyOptional)({
78
+ description: 'Recurring interval type (for subscription plans)',
79
+ enum: twispay_enum_1.TwispayIntervalType,
80
+ enumName: 'TwispayIntervalType',
81
+ }),
82
+ __metadata("design:type", String)
83
+ ], TwispayOrderDetails.prototype, "intervalType", void 0);
84
+ __decorate([
85
+ (0, swagger_1.ApiPropertyOptional)({
86
+ description: 'Recurring interval value (used with intervalType)',
87
+ type: 'number',
88
+ example: 1,
89
+ minimum: 1,
90
+ }),
91
+ __metadata("design:type", Number)
92
+ ], TwispayOrderDetails.prototype, "intervalValue", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiPropertyOptional)({
95
+ description: 'Trial amount (cannot be 0)',
96
+ type: 'number',
97
+ example: 9.99,
98
+ minimum: 0.01,
99
+ }),
100
+ __metadata("design:type", Number)
101
+ ], TwispayOrderDetails.prototype, "trialAmount", void 0);
102
+ __decorate([
103
+ (0, swagger_1.ApiPropertyOptional)({
104
+ description: 'Date of first recurring payment (ISO 8601 format with timezone)',
105
+ example: '2024-02-01T10:00:00Z',
106
+ format: 'date-time',
107
+ }),
108
+ __metadata("design:type", String)
109
+ ], TwispayOrderDetails.prototype, "firstBillDate", void 0);
110
+ __decorate([
111
+ (0, swagger_1.ApiPropertyOptional)({
112
+ description: 'Array of cart items',
113
+ type: [twispay_cart_1.TwispayCartItems],
114
+ isArray: true,
115
+ }),
116
+ __metadata("design:type", Array)
117
+ ], TwispayOrderDetails.prototype, "items", void 0);
3
118
  // cardTransactionMode: TwispayCardTransactionMode;
4
- // backUrl: string; // used to redirect the customers back to the merchants site; we also post an encrypted transaction result to this URL
119
+ // backUrl: string; // used to redirect the customers back to the merchant's site; we also post an encrypted transaction result to this URL
5
120
  // cardId?: number; //id of a previously used card for this customer
6
121
  // invoiceEmail?: string; //an alternative email address to send invoice to
7
122
  // custom?: string[]; //associative array of string values
@@ -189,6 +189,27 @@ __decorate([
189
189
  }),
190
190
  __metadata("design:type", Number)
191
191
  ], LendingAccountProfileDoc.prototype, "leverageInitialBorrowPrice", void 0);
192
+ __decorate([
193
+ (0, swagger_1.ApiProperty)({
194
+ description: 'Cosmos DB document identifier',
195
+ example: 'account123_EGLD',
196
+ }),
197
+ __metadata("design:type", String)
198
+ ], LendingAccountProfileDoc.prototype, "id", void 0);
199
+ __decorate([
200
+ (0, swagger_1.ApiProperty)({
201
+ description: 'Cosmos DB partition key',
202
+ example: 'ACCOUNT_PROFILE',
203
+ }),
204
+ __metadata("design:type", String)
205
+ ], LendingAccountProfileDoc.prototype, "pk", void 0);
206
+ __decorate([
207
+ (0, swagger_1.ApiProperty)({
208
+ description: 'Cosmos DB timestamp',
209
+ example: 1732650682,
210
+ }),
211
+ __metadata("design:type", Number)
212
+ ], LendingAccountProfileDoc.prototype, "_ts", void 0);
192
213
  const selectFields = [
193
214
  'token',
194
215
  'name',
@@ -53,6 +53,21 @@ __decorate([
53
53
  (0, swagger_1.ApiProperty)({ description: 'EMode category', example: '1' }),
54
54
  __metadata("design:type", String)
55
55
  ], LendingEModeCategoryProfileDoc.prototype, "id", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({
58
+ description: 'Cosmos DB partition key',
59
+ example: 'EMODE_CATEGORY_PROFILE',
60
+ }),
61
+ __metadata("design:type", String)
62
+ ], LendingEModeCategoryProfileDoc.prototype, "pk", void 0);
63
+ __decorate([
64
+ (0, swagger_1.ApiProperty)({
65
+ description: 'Cosmos DB timestamp',
66
+ example: 1732650682,
67
+ required: false,
68
+ }),
69
+ __metadata("design:type", Number)
70
+ ], LendingEModeCategoryProfileDoc.prototype, "_ts", void 0);
56
71
  class ShortLendingTokenEModeProfileDoc extends (0, swagger_1.PickType)(lending_token_emode_profile_doc_1.LendingTokenEModeProfileDoc, ['token', 'canBeBorrowed', 'canBeCollateral', 'eModeCategory']) {
57
72
  }
58
73
  exports.ShortLendingTokenEModeProfileDoc = ShortLendingTokenEModeProfileDoc;
@@ -305,6 +305,27 @@ __decorate([
305
305
  }),
306
306
  __metadata("design:type", lending_oracle_1.LendingOracleUpdateStruct)
307
307
  ], LendingMarketProfileDoc.prototype, "oracleProvider", void 0);
308
+ __decorate([
309
+ (0, swagger_1.ApiProperty)({
310
+ description: 'Cosmos DB document identifier',
311
+ example: 'EGLD_MARKET_PROFILE',
312
+ }),
313
+ __metadata("design:type", String)
314
+ ], LendingMarketProfileDoc.prototype, "id", void 0);
315
+ __decorate([
316
+ (0, swagger_1.ApiProperty)({
317
+ description: 'Cosmos DB partition key',
318
+ example: 'MARKET_PROFILE',
319
+ }),
320
+ __metadata("design:type", String)
321
+ ], LendingMarketProfileDoc.prototype, "pk", void 0);
322
+ __decorate([
323
+ (0, swagger_1.ApiProperty)({
324
+ description: 'Cosmos DB timestamp',
325
+ example: 1732650682,
326
+ }),
327
+ __metadata("design:type", Number)
328
+ ], LendingMarketProfileDoc.prototype, "_ts", void 0);
308
329
  class LendingMarketParticipants {
309
330
  }
310
331
  exports.LendingMarketParticipants = LendingMarketParticipants;
@@ -1,9 +1,58 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.LendingNftAttributes = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const lending_enum_1 = require("../../../enums/lending.enum");
4
15
  class LendingNftAttributes {
5
16
  constructor(props) {
6
17
  Object.assign(this, props);
7
18
  }
8
19
  }
9
20
  exports.LendingNftAttributes = LendingNftAttributes;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({
23
+ description: 'Whether the position is isolated',
24
+ example: false,
25
+ }),
26
+ __metadata("design:type", Boolean)
27
+ ], LendingNftAttributes.prototype, "isolated", void 0);
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({
30
+ description: 'E-mode category identifier',
31
+ example: '1',
32
+ }),
33
+ __metadata("design:type", String)
34
+ ], LendingNftAttributes.prototype, "eModeCategory", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({
37
+ description: 'Whether this is a vault position',
38
+ example: false,
39
+ }),
40
+ __metadata("design:type", Boolean)
41
+ ], LendingNftAttributes.prototype, "isVault", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({
44
+ description: 'Position mode for the lending NFT',
45
+ enum: lending_enum_1.PositionMode,
46
+ enumName: 'PositionMode',
47
+ example: lending_enum_1.PositionMode.Normal,
48
+ }),
49
+ __metadata("design:type", String)
50
+ ], LendingNftAttributes.prototype, "positionMode", void 0);
51
+ __decorate([
52
+ (0, swagger_1.ApiProperty)({
53
+ description: 'Token identifier for isolated positions',
54
+ example: 'USDC-c76f1f',
55
+ required: false,
56
+ }),
57
+ __metadata("design:type", String)
58
+ ], LendingNftAttributes.prototype, "isolatedToken", void 0);
@@ -57,3 +57,24 @@ __decorate([
57
57
  }),
58
58
  __metadata("design:type", String)
59
59
  ], LendingTokenEModeProfileDoc.prototype, "eModeCategory", void 0);
60
+ __decorate([
61
+ (0, swagger_1.ApiProperty)({
62
+ description: 'Cosmos DB document identifier',
63
+ example: 'EGLD_1_TOKEN_EMODE_PROFILE',
64
+ }),
65
+ __metadata("design:type", String)
66
+ ], LendingTokenEModeProfileDoc.prototype, "id", void 0);
67
+ __decorate([
68
+ (0, swagger_1.ApiProperty)({
69
+ description: 'Cosmos DB partition key',
70
+ example: 'TOKEN_EMODE_PROFILE',
71
+ }),
72
+ __metadata("design:type", String)
73
+ ], LendingTokenEModeProfileDoc.prototype, "pk", void 0);
74
+ __decorate([
75
+ (0, swagger_1.ApiProperty)({
76
+ description: 'Cosmos DB timestamp',
77
+ example: 1732650682,
78
+ }),
79
+ __metadata("design:type", Number)
80
+ ], LendingTokenEModeProfileDoc.prototype, "_ts", void 0);