@explorins/pers-shared 2.1.104 → 2.1.106
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/cjs/shared-lib/dto/business/business-membership.dto.d.ts +2 -2
- package/dist/cjs/shared-lib/dto/business/business-membership.dto.js +9 -9
- package/dist/cjs/shared-lib/dto/signing-account/create-signing-account-request.dto.d.ts +1 -1
- package/dist/cjs/shared-lib/dto/signing-account/create-signing-account-request.dto.js +6 -6
- package/dist/cjs/shared-lib/dto/transaction/transaction-bulk-data.request.dto.d.ts +3 -3
- package/dist/cjs/shared-lib/dto/transaction/transaction-bulk-data.request.dto.js +9 -9
- package/dist/cjs/shared-lib/dto/user/userUploadData.dto.d.ts +3 -3
- package/dist/cjs/shared-lib/dto/user/userUploadData.dto.js +14 -14
- package/dist/cjs/shared-lib/dto/webhook/webhook.dto.d.ts +6 -6
- package/dist/cjs/shared-lib/dto/webhook/webhook.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/webhook/webhook.dto.js +52 -52
- package/dist/cjs/shared-lib/dto/webhook/webhook.dto.js.map +1 -1
- package/dist/cjs/shared-lib/enum/entity-types.enum.d.ts +100 -0
- package/dist/cjs/shared-lib/enum/entity-types.enum.d.ts.map +1 -0
- package/dist/cjs/shared-lib/enum/entity-types.enum.js +61 -0
- package/dist/cjs/shared-lib/enum/entity-types.enum.js.map +1 -0
- package/dist/cjs/shared-lib/enum/index.d.ts +1 -0
- package/dist/cjs/shared-lib/enum/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/enum/index.js +2 -0
- package/dist/cjs/shared-lib/enum/index.js.map +1 -1
- package/dist/cjs/shared-lib/errors/error-codes.d.ts +2 -26
- package/dist/cjs/shared-lib/errors/error-codes.d.ts.map +1 -1
- package/dist/cjs/shared-lib/errors/error-codes.js +3 -22
- package/dist/cjs/shared-lib/errors/error-codes.js.map +1 -1
- package/dist/cjs/shared-lib/value-objects/token-balance.value-object.js +2 -2
- package/dist/cjs/shared-lib/value-objects/token-balance.value-object.js.map +1 -1
- package/dist/cjs/shared-patterns/functions/{helper.functions.d.ts → token-metadata.functions.d.ts} +13 -24
- package/dist/cjs/shared-patterns/functions/token-metadata.functions.d.ts.map +1 -0
- package/dist/cjs/shared-patterns/functions/{helper.functions.js → token-metadata.functions.js} +14 -58
- package/dist/cjs/shared-patterns/functions/token-metadata.functions.js.map +1 -0
- package/dist/esm/shared-lib/dto/business/business-membership.dto.d.ts +2 -2
- package/dist/esm/shared-lib/dto/business/business-membership.dto.js +6 -6
- package/dist/esm/shared-lib/dto/signing-account/create-signing-account-request.dto.d.ts +1 -1
- package/dist/esm/shared-lib/dto/signing-account/create-signing-account-request.dto.js +4 -4
- package/dist/esm/shared-lib/dto/transaction/transaction-bulk-data.request.dto.d.ts +3 -3
- package/dist/esm/shared-lib/dto/transaction/transaction-bulk-data.request.dto.js +8 -8
- package/dist/esm/shared-lib/dto/user/userUploadData.dto.d.ts +3 -3
- package/dist/esm/shared-lib/dto/user/userUploadData.dto.js +10 -10
- package/dist/esm/shared-lib/dto/webhook/webhook.dto.d.ts +6 -6
- package/dist/esm/shared-lib/dto/webhook/webhook.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/webhook/webhook.dto.js +46 -46
- package/dist/esm/shared-lib/dto/webhook/webhook.dto.js.map +1 -1
- package/dist/esm/shared-lib/enum/entity-types.enum.d.ts +100 -0
- package/dist/esm/shared-lib/enum/entity-types.enum.d.ts.map +1 -0
- package/dist/esm/shared-lib/enum/entity-types.enum.js +58 -0
- package/dist/esm/shared-lib/enum/entity-types.enum.js.map +1 -0
- package/dist/esm/shared-lib/enum/index.d.ts +1 -0
- package/dist/esm/shared-lib/enum/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/enum/index.js +2 -0
- package/dist/esm/shared-lib/enum/index.js.map +1 -1
- package/dist/esm/shared-lib/errors/error-codes.d.ts +2 -26
- package/dist/esm/shared-lib/errors/error-codes.d.ts.map +1 -1
- package/dist/esm/shared-lib/errors/error-codes.js +2 -22
- package/dist/esm/shared-lib/errors/error-codes.js.map +1 -1
- package/dist/esm/shared-lib/value-objects/token-balance.value-object.js +1 -1
- package/dist/esm/shared-lib/value-objects/token-balance.value-object.js.map +1 -1
- package/dist/esm/shared-patterns/functions/{helper.functions.d.ts → token-metadata.functions.d.ts} +13 -24
- package/dist/esm/shared-patterns/functions/token-metadata.functions.d.ts.map +1 -0
- package/dist/esm/shared-patterns/functions/{helper.functions.js → token-metadata.functions.js} +13 -54
- package/dist/esm/shared-patterns/functions/token-metadata.functions.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/shared-patterns/functions/helper.functions.d.ts.map +0 -1
- package/dist/cjs/shared-patterns/functions/helper.functions.js.map +0 -1
- package/dist/esm/shared-patterns/functions/helper.functions.d.ts.map +0 -1
- package/dist/esm/shared-patterns/functions/helper.functions.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-balance.value-object.js","sourceRoot":"","sources":["../../../../src/shared-lib/value-objects/token-balance.value-object.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"token-balance.value-object.js","sourceRoot":"","sources":["../../../../src/shared-lib/value-objects/token-balance.value-object.ts"],"names":[],"mappings":";;;AAGA,uGAA0F;AAE1F;;GAEG;AACH,MAAa,YAAY;IACJ,OAAO,CAAS;IAChB,oBAAoB,CAAU;IAC9B,OAAO,CAAgB;IACvB,WAAW,CAAgB;IAC3B,OAAO,CAAS;IAChB,SAAS,CAAS;IAClB,WAAW,CAAS;IACpB,SAAS,CAAkB;IAC3B,UAAU,CAAc;IAEzC;;;;;;;;;;;;OAYG;IACH,YACI,OAAe,EACf,oBAA6B,EAC7B,UAAyB,IAAI,EAC7B,cAA6B,IAAI,EACjC,OAAe,EACf,SAAiB,EACjB,WAAmB,EACnB,SAA0B,EAAE,wDAAwD;IACpF,aAA0B,IAAI;QAE9B,IAAI,CAAC,OAAO,GAAG,OAAO,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AoB,CAAC,QAAQ,EAAE,cAAc,IAAI,CAAC,OAAO,cAAc,IAAI,CAAC,OAAO,gBAAgB,IAAI,CAAC,SAAS,kBAAkB,IAAI,CAAC,WAAW,gBAAgB,IAAI,CAAC,SAAS,GAAG,CAAC;IAChQ,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,KAAmB;QAC7B,OAAO,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,UAAU,EAAE;YACtC,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,CAAC;YACjE,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,UAAU,EAAE;YACnC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,UAAU,EAAE;YACnC,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,EAAE;YACvC,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,cAAc,EAAE;YAC3C,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,EAAE,CAAC;IAChD,CAAC;CACJ;AAlKD,oCAkKC"}
|
package/dist/cjs/shared-patterns/functions/{helper.functions.d.ts → token-metadata.functions.d.ts}
RENAMED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token Metadata Functions
|
|
3
|
+
*
|
|
4
|
+
* Utilities for working with NFT/blockchain token metadata,
|
|
5
|
+
* validity computation, and attribute extraction.
|
|
6
|
+
*/
|
|
1
7
|
import { type TokenValidityType } from '../../shared-lib/enum/token-validity-type.enum';
|
|
2
8
|
import { TokenStorageData } from '../../shared-lib/interfaces/token-storage-data.interface';
|
|
3
9
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
* Checks if a token ID is a URI (IPFS or HTTP).
|
|
11
|
+
* Used for determining how to resolve token metadata.
|
|
12
|
+
*
|
|
13
|
+
* @param tokenId - The token ID to check
|
|
14
|
+
* @returns true if the tokenId is a valid URI
|
|
15
|
+
*/
|
|
10
16
|
export declare const checkIfTokenIdIsUri: (tokenId: string | null) => boolean;
|
|
11
|
-
export declare const compareVersions: (version1: string, version2: string) => number;
|
|
12
17
|
/**
|
|
13
18
|
* Computes the expiry date based on validity configuration.
|
|
14
19
|
*
|
|
@@ -27,22 +32,6 @@ export declare const computeExpiryDate: (validityType?: TokenValidityType, valid
|
|
|
27
32
|
* @returns true if expired, false if still valid, undefined if no expiry date
|
|
28
33
|
*/
|
|
29
34
|
export declare const isTokenExpired: (expiryDate?: Date | null, referenceDate?: Date) => boolean | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Normalizes an array of tags for consistent storage.
|
|
32
|
-
* - Converts to lowercase
|
|
33
|
-
* - Trims whitespace
|
|
34
|
-
* - Replaces spaces with dashes
|
|
35
|
-
* - Removes duplicates
|
|
36
|
-
* - Filters out empty strings
|
|
37
|
-
*
|
|
38
|
-
* @param tags - Array of tag strings to normalize
|
|
39
|
-
* @returns Normalized, deduplicated array of tags
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* normalizeTags(['Summer', ' VIP ', 'Black Friday', 'summer'])
|
|
43
|
-
* // Returns: ['summer', 'vip', 'black-friday']
|
|
44
|
-
*/
|
|
45
|
-
export declare const normalizeTags: (tags?: string[] | null) => string[];
|
|
46
35
|
/**
|
|
47
36
|
* Extracts the expiry_date attribute from token metadata (OpenSea standard format).
|
|
48
37
|
* This is the inverse operation of computeExpiryDate - it reads the expiry that was
|
|
@@ -80,4 +69,4 @@ export declare const extractTagsFromMetadata: (metadata: TokenStorageData | null
|
|
|
80
69
|
* extractBusinessIdsFromMetadata(metadata); // Returns ['uuid-1', 'uuid-2']
|
|
81
70
|
*/
|
|
82
71
|
export declare const extractBusinessIdsFromMetadata: (metadata: TokenStorageData | null) => string[];
|
|
83
|
-
//# sourceMappingURL=
|
|
72
|
+
//# sourceMappingURL=token-metadata.functions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-metadata.functions.d.ts","sourceRoot":"","sources":["../../../../src/shared-patterns/functions/token-metadata.functions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAkC,MAAM,0DAA0D,CAAC;AAE5H;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,GAAG,IAAI,KAAG,OAM5D,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAC5B,eAAe,iBAAiB,EAChC,mBAAmB,MAAM,EACzB,kBAAkB,IAAI,EACtB,eAAc,IAAiB,KAC9B,IAAI,GAAG,SA6CT,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GACzB,aAAa,IAAI,GAAG,IAAI,EACxB,gBAAe,IAAiB,KAC/B,OAAO,GAAG,SAGZ,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B,GAAI,UAAU,gBAAgB,GAAG,IAAI,KAAG,IAAI,GAAG,IAaxF,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,GAAI,UAAU,gBAAgB,GAAG,IAAI,KAAG,MAAM,EAiBjF,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B,GAAI,UAAU,gBAAgB,GAAG,IAAI,KAAG,MAAM,EAmBxF,CAAA"}
|
package/dist/cjs/shared-patterns/functions/{helper.functions.js → token-metadata.functions.js}
RENAMED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Token Metadata Functions
|
|
4
|
+
*
|
|
5
|
+
* Utilities for working with NFT/blockchain token metadata,
|
|
6
|
+
* validity computation, and attribute extraction.
|
|
7
|
+
*/
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractBusinessIdsFromMetadata = exports.extractTagsFromMetadata = exports.extractExpiryDateFromMetadata = exports.
|
|
9
|
+
exports.extractBusinessIdsFromMetadata = exports.extractTagsFromMetadata = exports.extractExpiryDateFromMetadata = exports.isTokenExpired = exports.computeExpiryDate = exports.checkIfTokenIdIsUri = void 0;
|
|
4
10
|
const token_validity_type_enum_1 = require("../../shared-lib/enum/token-validity-type.enum");
|
|
5
11
|
const token_storage_data_interface_1 = require("../../shared-lib/interfaces/token-storage-data.interface");
|
|
6
12
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return commaSeparatedString
|
|
14
|
-
? commaSeparatedString.split(',').map((s) => s.trim()).filter(Boolean)
|
|
15
|
-
: [];
|
|
16
|
-
};
|
|
17
|
-
exports.parseCommaSeparatedStringToStringArray = parseCommaSeparatedStringToStringArray;
|
|
13
|
+
* Checks if a token ID is a URI (IPFS or HTTP).
|
|
14
|
+
* Used for determining how to resolve token metadata.
|
|
15
|
+
*
|
|
16
|
+
* @param tokenId - The token ID to check
|
|
17
|
+
* @returns true if the tokenId is a valid URI
|
|
18
|
+
*/
|
|
18
19
|
const checkIfTokenIdIsUri = (tokenId) => {
|
|
19
20
|
const uriRegex = /^(https?|ipfs):\/\/.*/;
|
|
20
21
|
if (!tokenId || !uriRegex.test(tokenId)) {
|
|
@@ -23,20 +24,6 @@ const checkIfTokenIdIsUri = (tokenId) => {
|
|
|
23
24
|
return true;
|
|
24
25
|
};
|
|
25
26
|
exports.checkIfTokenIdIsUri = checkIfTokenIdIsUri;
|
|
26
|
-
const compareVersions = (version1, version2) => {
|
|
27
|
-
const v1 = version1.split('.').map(Number);
|
|
28
|
-
const v2 = version2.split('.').map(Number);
|
|
29
|
-
for (let i = 0; i < Math.max(v1.length, v2.length); i++) {
|
|
30
|
-
const num1 = v1[i] || 0;
|
|
31
|
-
const num2 = v2[i] || 0;
|
|
32
|
-
if (num1 > num2)
|
|
33
|
-
return 1;
|
|
34
|
-
if (num1 < num2)
|
|
35
|
-
return -1;
|
|
36
|
-
}
|
|
37
|
-
return 0;
|
|
38
|
-
};
|
|
39
|
-
exports.compareVersions = compareVersions;
|
|
40
27
|
/**
|
|
41
28
|
* Computes the expiry date based on validity configuration.
|
|
42
29
|
*
|
|
@@ -102,37 +89,6 @@ const isTokenExpired = (expiryDate, referenceDate = new Date()) => {
|
|
|
102
89
|
return new Date(expiryDate) < referenceDate;
|
|
103
90
|
};
|
|
104
91
|
exports.isTokenExpired = isTokenExpired;
|
|
105
|
-
/**
|
|
106
|
-
* Normalizes an array of tags for consistent storage.
|
|
107
|
-
* - Converts to lowercase
|
|
108
|
-
* - Trims whitespace
|
|
109
|
-
* - Replaces spaces with dashes
|
|
110
|
-
* - Removes duplicates
|
|
111
|
-
* - Filters out empty strings
|
|
112
|
-
*
|
|
113
|
-
* @param tags - Array of tag strings to normalize
|
|
114
|
-
* @returns Normalized, deduplicated array of tags
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* normalizeTags(['Summer', ' VIP ', 'Black Friday', 'summer'])
|
|
118
|
-
* // Returns: ['summer', 'vip', 'black-friday']
|
|
119
|
-
*/
|
|
120
|
-
const normalizeTags = (tags) => {
|
|
121
|
-
if (!tags || !Array.isArray(tags))
|
|
122
|
-
return [];
|
|
123
|
-
const normalized = tags
|
|
124
|
-
.map(tag => tag
|
|
125
|
-
.toLowerCase()
|
|
126
|
-
.trim()
|
|
127
|
-
.replace(/\s+/g, '-') // Replace spaces with dashes
|
|
128
|
-
.replace(/[^a-z0-9-]/g, '') // Remove special characters except dashes
|
|
129
|
-
.replace(/-+/g, '-') // Replace multiple dashes with single
|
|
130
|
-
.replace(/^-|-$/g, '') // Remove leading/trailing dashes
|
|
131
|
-
)
|
|
132
|
-
.filter(Boolean); // Remove empty strings
|
|
133
|
-
return [...new Set(normalized)]; // Remove duplicates
|
|
134
|
-
};
|
|
135
|
-
exports.normalizeTags = normalizeTags;
|
|
136
92
|
/**
|
|
137
93
|
* Extracts the expiry_date attribute from token metadata (OpenSea standard format).
|
|
138
94
|
* This is the inverse operation of computeExpiryDate - it reads the expiry that was
|
|
@@ -211,4 +167,4 @@ const extractBusinessIdsFromMetadata = (metadata) => {
|
|
|
211
167
|
return [];
|
|
212
168
|
};
|
|
213
169
|
exports.extractBusinessIdsFromMetadata = extractBusinessIdsFromMetadata;
|
|
214
|
-
//# sourceMappingURL=
|
|
170
|
+
//# sourceMappingURL=token-metadata.functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-metadata.functions.js","sourceRoot":"","sources":["../../../../src/shared-patterns/functions/token-metadata.functions.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6FAA4G;AAC5G,2GAA4H;AAE5H;;;;;;GAMG;AACI,MAAM,mBAAmB,GAAG,CAAC,OAAsB,EAAW,EAAE;IACrE,MAAM,QAAQ,GAAG,uBAAuB,CAAC;IACzC,IAAI,CAAC,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAA;AANY,QAAA,mBAAmB,uBAM/B;AAED;;;;;;;;GAQG;AACI,MAAM,iBAAiB,GAAG,CAC/B,YAAgC,EAChC,gBAAyB,EACzB,eAAsB,EACtB,eAAqB,IAAI,IAAI,EAAE,EACb,EAAE;IACpB,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,8DAA8D;QAC9D,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,QAAQ,YAAY,EAAE,CAAC;QACrB,KAAK,6CAAkB,CAAC,UAAU;YAChC,OAAO,eAAe,CAAC;QAEzB,KAAK,6CAAkB,CAAC,kBAAkB;YACxC,IAAI,CAAC,gBAAgB,IAAI,gBAAgB,IAAI,CAAC;gBAAE,OAAO,SAAS,CAAC;YACjE,MAAM,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|
|
|
33
33
|
/**
|
|
34
34
|
* Request DTO for creating a business membership (legacy/admin)
|
|
35
35
|
*/
|
|
36
|
-
export declare class
|
|
36
|
+
export declare class BusinessMembershipCreateRequestDTO {
|
|
37
37
|
userId: string;
|
|
38
38
|
businessId: string;
|
|
39
39
|
role: MembershipRole;
|
|
@@ -41,7 +41,7 @@ export declare class CreateBusinessMembershipRequestDTO {
|
|
|
41
41
|
/**
|
|
42
42
|
* Request DTO for updating a business membership
|
|
43
43
|
*/
|
|
44
|
-
export declare class
|
|
44
|
+
export declare class BusinessMembershipUpdateRequestDTO {
|
|
45
45
|
role?: MembershipRole;
|
|
46
46
|
}
|
|
47
47
|
//# sourceMappingURL=business-membership.dto.d.ts.map
|
|
@@ -108,7 +108,7 @@ __decorate([
|
|
|
108
108
|
/**
|
|
109
109
|
* Request DTO for creating a business membership (legacy/admin)
|
|
110
110
|
*/
|
|
111
|
-
export class
|
|
111
|
+
export class BusinessMembershipCreateRequestDTO {
|
|
112
112
|
userId;
|
|
113
113
|
businessId;
|
|
114
114
|
role = MembershipRole.VIEWER;
|
|
@@ -119,14 +119,14 @@ __decorate([
|
|
|
119
119
|
}),
|
|
120
120
|
IsNotEmpty(),
|
|
121
121
|
IsUUID()
|
|
122
|
-
],
|
|
122
|
+
], BusinessMembershipCreateRequestDTO.prototype, "userId", void 0);
|
|
123
123
|
__decorate([
|
|
124
124
|
ApiProperty({
|
|
125
125
|
description: 'The business ID to grant access to'
|
|
126
126
|
}),
|
|
127
127
|
IsNotEmpty(),
|
|
128
128
|
IsUUID()
|
|
129
|
-
],
|
|
129
|
+
], BusinessMembershipCreateRequestDTO.prototype, "businessId", void 0);
|
|
130
130
|
__decorate([
|
|
131
131
|
ApiProperty({
|
|
132
132
|
description: 'The role to assign (permissions derived from role)',
|
|
@@ -135,11 +135,11 @@ __decorate([
|
|
|
135
135
|
}),
|
|
136
136
|
IsNotEmpty(),
|
|
137
137
|
IsEnum(MembershipRole)
|
|
138
|
-
],
|
|
138
|
+
], BusinessMembershipCreateRequestDTO.prototype, "role", void 0);
|
|
139
139
|
/**
|
|
140
140
|
* Request DTO for updating a business membership
|
|
141
141
|
*/
|
|
142
|
-
export class
|
|
142
|
+
export class BusinessMembershipUpdateRequestDTO {
|
|
143
143
|
role;
|
|
144
144
|
}
|
|
145
145
|
__decorate([
|
|
@@ -149,5 +149,5 @@ __decorate([
|
|
|
149
149
|
}),
|
|
150
150
|
OptionalNullify(),
|
|
151
151
|
IsEnum(MembershipRole)
|
|
152
|
-
],
|
|
152
|
+
], BusinessMembershipUpdateRequestDTO.prototype, "role", void 0);
|
|
153
153
|
//# sourceMappingURL=business-membership.dto.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExternalWallet } from '../../interfaces/wallet.interface';
|
|
2
2
|
import { AccountOwnerType } from '../../enum/owner-type.enum';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SigningAccountCreateRequestDTO {
|
|
4
4
|
ownerType: AccountOwnerType;
|
|
5
5
|
ownerId: string;
|
|
6
6
|
externalWallet?: ExternalWallet;
|
|
@@ -11,7 +11,7 @@ import { AccountOwnerType } from '../../enum/owner-type.enum.js';
|
|
|
11
11
|
import { OptionalStrip } from '../../decorators/index.js';
|
|
12
12
|
// import { SigningAccountProvider } from '../../enum/signing-account-provider.enum.js';
|
|
13
13
|
// import { NetworkType } from '../../enum/crypto.enum.js';
|
|
14
|
-
export class
|
|
14
|
+
export class SigningAccountCreateRequestDTO {
|
|
15
15
|
ownerType = AccountOwnerType.USER;
|
|
16
16
|
ownerId = '';
|
|
17
17
|
externalWallet;
|
|
@@ -24,7 +24,7 @@ __decorate([
|
|
|
24
24
|
}),
|
|
25
25
|
IsEnum(AccountOwnerType, { message: 'ownerType must be one of: user, business, tenant, system' }),
|
|
26
26
|
IsNotEmpty({ message: 'ownerType is required' })
|
|
27
|
-
],
|
|
27
|
+
], SigningAccountCreateRequestDTO.prototype, "ownerType", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
ApiProperty({
|
|
30
30
|
description: 'ID of the owning entity',
|
|
@@ -32,7 +32,7 @@ __decorate([
|
|
|
32
32
|
}),
|
|
33
33
|
IsString({ message: 'ownerId must be a string' }),
|
|
34
34
|
IsNotEmpty({ message: 'ownerId is required' })
|
|
35
|
-
],
|
|
35
|
+
], SigningAccountCreateRequestDTO.prototype, "ownerId", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
ApiPropertyOptional({
|
|
38
38
|
description: 'External wallet information',
|
|
@@ -41,5 +41,5 @@ __decorate([
|
|
|
41
41
|
OptionalStrip(),
|
|
42
42
|
ValidateNested(),
|
|
43
43
|
Type(() => Object)
|
|
44
|
-
],
|
|
44
|
+
], SigningAccountCreateRequestDTO.prototype, "externalWallet", void 0);
|
|
45
45
|
//# sourceMappingURL=create-signing-account-request.dto.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { UserUploadDataDTO } from "../user/userUploadData.dto";
|
|
2
|
+
export declare class TransactionBulkUserUploadDataDTO extends UserUploadDataDTO {
|
|
3
3
|
amount?: number;
|
|
4
4
|
tokenAddress?: string;
|
|
5
5
|
chainId?: number;
|
|
6
6
|
tokenMetadataIncrementalId?: string | null;
|
|
7
7
|
}
|
|
8
8
|
export declare class TransactionBulkDataRequestDTO {
|
|
9
|
-
userData:
|
|
9
|
+
userData: TransactionBulkUserUploadDataDTO[];
|
|
10
10
|
amount?: number;
|
|
11
11
|
tokenAddress?: string;
|
|
12
12
|
tokenMetadataIncrementalId?: string | null;
|
|
@@ -4,12 +4,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
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;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { UserUploadDataDTO } from "../user/userUploadData.dto.js";
|
|
8
8
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
10
|
import { IsArray, ValidateNested, IsNumber, IsString, MinLength, ArrayMinSize } from 'class-validator';
|
|
11
11
|
import { OptionalStrip, OptionalStripNumber } from '../../decorators/index.js';
|
|
12
|
-
export class
|
|
12
|
+
export class TransactionBulkUserUploadDataDTO extends UserUploadDataDTO {
|
|
13
13
|
amount;
|
|
14
14
|
tokenAddress;
|
|
15
15
|
chainId;
|
|
@@ -22,7 +22,7 @@ __decorate([
|
|
|
22
22
|
}),
|
|
23
23
|
OptionalStripNumber(),
|
|
24
24
|
IsNumber()
|
|
25
|
-
],
|
|
25
|
+
], TransactionBulkUserUploadDataDTO.prototype, "amount", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
ApiPropertyOptional({
|
|
28
28
|
description: 'Token address for this specific user. Overrides global tokenAddress.',
|
|
@@ -31,7 +31,7 @@ __decorate([
|
|
|
31
31
|
OptionalStrip(),
|
|
32
32
|
IsString(),
|
|
33
33
|
MinLength(1)
|
|
34
|
-
],
|
|
34
|
+
], TransactionBulkUserUploadDataDTO.prototype, "tokenAddress", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
ApiPropertyOptional({
|
|
37
37
|
description: 'Chain ID for this specific user. Overrides global chainId.',
|
|
@@ -39,7 +39,7 @@ __decorate([
|
|
|
39
39
|
}),
|
|
40
40
|
OptionalStripNumber(),
|
|
41
41
|
IsNumber()
|
|
42
|
-
],
|
|
42
|
+
], TransactionBulkUserUploadDataDTO.prototype, "chainId", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
ApiPropertyOptional({
|
|
45
45
|
description: 'Token metadata incremental ID for this specific user. Overrides global tokenMetadataIncrementalId.',
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
OptionalStrip(),
|
|
49
49
|
IsString(),
|
|
50
50
|
MinLength(1)
|
|
51
|
-
],
|
|
51
|
+
], TransactionBulkUserUploadDataDTO.prototype, "tokenMetadataIncrementalId", void 0);
|
|
52
52
|
export class TransactionBulkDataRequestDTO {
|
|
53
53
|
userData;
|
|
54
54
|
amount;
|
|
@@ -60,13 +60,13 @@ export class TransactionBulkDataRequestDTO {
|
|
|
60
60
|
__decorate([
|
|
61
61
|
ApiProperty({
|
|
62
62
|
description: 'Array of user data objects for bulk minting. Each object must conform to the UserUploadDataDto structure.',
|
|
63
|
-
type: [
|
|
63
|
+
type: [TransactionBulkUserUploadDataDTO], // Use the specific DTO for Swagger
|
|
64
64
|
}),
|
|
65
65
|
IsArray(),
|
|
66
66
|
ArrayMinSize(1) // Ensure there's at least one user data object
|
|
67
67
|
,
|
|
68
68
|
ValidateNested({ each: true }),
|
|
69
|
-
Type(() =>
|
|
69
|
+
Type(() => TransactionBulkUserUploadDataDTO) // Use the specific DTO for class-transformer and validation
|
|
70
70
|
], TransactionBulkDataRequestDTO.prototype, "userData", void 0);
|
|
71
71
|
__decorate([
|
|
72
72
|
ApiPropertyOptional({ description: 'Default transaction amount if not specified in individual user data objects. If neither this nor user-specific amount is provided, the transaction for that user may fail or be skipped.' }),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UserIdentifierParamsObject as IUserIdentifierObject } from '../../types/unique-user-identifier-keys';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class UserIdentifierObjectDTO implements IUserIdentifierObject {
|
|
3
3
|
email?: string;
|
|
4
4
|
externalId?: string;
|
|
5
5
|
id?: string;
|
|
6
6
|
instagramAccountId?: string;
|
|
7
7
|
wildcard?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
10
|
-
user:
|
|
9
|
+
export declare class UserUploadDataDTO {
|
|
10
|
+
user: UserIdentifierObjectDTO;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=userUploadData.dto.d.ts.map
|
|
@@ -10,7 +10,7 @@ import { Type } from 'class-transformer';
|
|
|
10
10
|
import { OptionalStrip } from '../../decorators/index.js';
|
|
11
11
|
// This DTO represents the user identification part.
|
|
12
12
|
// It implements IUserIdentifierObject to align with the shared library type structure.
|
|
13
|
-
export class
|
|
13
|
+
export class UserIdentifierObjectDTO {
|
|
14
14
|
email;
|
|
15
15
|
externalId;
|
|
16
16
|
id;
|
|
@@ -21,25 +21,25 @@ __decorate([
|
|
|
21
21
|
ApiPropertyOptional({ description: 'User email', example: 'user@example.com' }),
|
|
22
22
|
OptionalStrip(),
|
|
23
23
|
IsEmail()
|
|
24
|
-
],
|
|
24
|
+
], UserIdentifierObjectDTO.prototype, "email", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
ApiPropertyOptional({ description: 'External User ID' }),
|
|
27
27
|
OptionalStrip(),
|
|
28
28
|
IsString(),
|
|
29
29
|
MinLength(1)
|
|
30
|
-
],
|
|
30
|
+
], UserIdentifierObjectDTO.prototype, "externalId", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
ApiPropertyOptional({ description: 'User ID (from uniqueUserIdentifierKeys)' }),
|
|
33
33
|
OptionalStrip(),
|
|
34
34
|
IsString(),
|
|
35
35
|
MinLength(1)
|
|
36
|
-
],
|
|
36
|
+
], UserIdentifierObjectDTO.prototype, "id", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
ApiPropertyOptional({ description: 'Instagram Account ID (from uniqueUserIdentifierKeys)' }),
|
|
39
39
|
OptionalStrip(),
|
|
40
40
|
IsString(),
|
|
41
41
|
MinLength(1)
|
|
42
|
-
],
|
|
42
|
+
], UserIdentifierObjectDTO.prototype, "instagramAccountId", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
ApiPropertyOptional({
|
|
45
45
|
description: 'Wildcard value for auto-detection of identifier type',
|
|
@@ -47,18 +47,18 @@ __decorate([
|
|
|
47
47
|
}),
|
|
48
48
|
OptionalStrip(),
|
|
49
49
|
IsString()
|
|
50
|
-
],
|
|
50
|
+
], UserIdentifierObjectDTO.prototype, "wildcard", void 0);
|
|
51
51
|
// This DTO represents the data for a single user in a bulk upload scenario.
|
|
52
|
-
export class
|
|
52
|
+
export class UserUploadDataDTO {
|
|
53
53
|
user;
|
|
54
54
|
}
|
|
55
55
|
__decorate([
|
|
56
56
|
ApiProperty({
|
|
57
57
|
description: 'User identifier object. At least one identifier (e.g., email, id) must be provided. If only wildcard is provided, the system will attempt to detect the identifier type.',
|
|
58
|
-
type: () =>
|
|
58
|
+
type: () => UserIdentifierObjectDTO
|
|
59
59
|
}),
|
|
60
60
|
IsObject(),
|
|
61
61
|
ValidateNested(),
|
|
62
|
-
Type(() =>
|
|
63
|
-
],
|
|
62
|
+
Type(() => UserIdentifierObjectDTO)
|
|
63
|
+
], UserUploadDataDTO.prototype, "user", void 0);
|
|
64
64
|
//# sourceMappingURL=userUploadData.dto.js.map
|
|
@@ -3,7 +3,7 @@ export { WebhookAuthType, WebhookMethod, WebhookSource, WebhookExecutionStatus,
|
|
|
3
3
|
/**
|
|
4
4
|
* DTO for creating a webhook
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class WebhookCreateRequestDTO {
|
|
7
7
|
name: string;
|
|
8
8
|
description?: string;
|
|
9
9
|
targetUrl: string;
|
|
@@ -15,16 +15,16 @@ export declare class CreateWebhookDto {
|
|
|
15
15
|
inboundSecret?: string;
|
|
16
16
|
timeoutMs?: number;
|
|
17
17
|
}
|
|
18
|
-
declare const
|
|
18
|
+
declare const WebhookUpdateRequestDTO_base: import("@nestjs/common").Type<Partial<WebhookCreateRequestDTO>>;
|
|
19
19
|
/**
|
|
20
20
|
* DTO for updating a webhook (all fields optional)
|
|
21
21
|
*/
|
|
22
|
-
export declare class
|
|
22
|
+
export declare class WebhookUpdateRequestDTO extends WebhookUpdateRequestDTO_base {
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* DTO for webhook list responses (hides sensitive fields)
|
|
26
26
|
*/
|
|
27
|
-
export declare class
|
|
27
|
+
export declare class WebhookDTO {
|
|
28
28
|
id: string;
|
|
29
29
|
name: string;
|
|
30
30
|
description?: string | null;
|
|
@@ -43,7 +43,7 @@ export declare class WebhookDto {
|
|
|
43
43
|
/**
|
|
44
44
|
* DTO for webhook execution history
|
|
45
45
|
*/
|
|
46
|
-
export declare class
|
|
46
|
+
export declare class WebhookExecutionDTO {
|
|
47
47
|
id: string;
|
|
48
48
|
webhookId: string;
|
|
49
49
|
method: string;
|
|
@@ -62,7 +62,7 @@ export declare class WebhookExecutionDto {
|
|
|
62
62
|
/**
|
|
63
63
|
* DTO for webhook callback requests from external systems (e.g., n8n workflow completion)
|
|
64
64
|
*/
|
|
65
|
-
export declare class
|
|
65
|
+
export declare class WebhookCallbackDTO {
|
|
66
66
|
status: WebhookCallbackStatus;
|
|
67
67
|
result?: Record<string, unknown>;
|
|
68
68
|
error?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/webhook/webhook.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGvI,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;AAExG;;GAEG;AACH,qBAAa,
|
|
1
|
+
{"version":3,"file":"webhook.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/webhook/webhook.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGvI,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;AAExG;;GAEG;AACH,qBAAa,uBAAuB;IAGlC,IAAI,EAAG,MAAM,CAAC;IAKd,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