@explorins/pers-shared 2.1.98 → 2.1.100
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/user-status-type.dto.d.ts +1 -0
- package/dist/cjs/shared-lib/dto/user-status-type.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/user-status-type.dto.js +10 -0
- package/dist/cjs/shared-lib/dto/user-status-type.dto.js.map +1 -1
- package/dist/esm/browser.js +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/shared-lib/decorators/index.js +1 -1
- package/dist/esm/shared-lib/dto/account-selector.dto.js +2 -2
- package/dist/esm/shared-lib/dto/account-token-balances.dto.js +1 -1
- package/dist/esm/shared-lib/dto/admin/admin-create.request.dto.js +2 -2
- package/dist/esm/shared-lib/dto/admin/admin.dto.js +2 -2
- package/dist/esm/shared-lib/dto/admin/index.js +2 -2
- package/dist/esm/shared-lib/dto/ai/ai-generation-log.dto.js +2 -2
- package/dist/esm/shared-lib/dto/ai/ai-prompt-config.dto.js +1 -1
- package/dist/esm/shared-lib/dto/ai/index.js +2 -2
- package/dist/esm/shared-lib/dto/analytics/ai-analytics.dto.js +4 -4
- package/dist/esm/shared-lib/dto/analytics/base-analytics.dto.js +1 -1
- package/dist/esm/shared-lib/dto/analytics/business-ranking-analytics.dto.js +3 -3
- package/dist/esm/shared-lib/dto/analytics/campaign-claim-analytics-request.dto.js +5 -5
- package/dist/esm/shared-lib/dto/analytics/campaign-claim-analytics.dto.js +5 -5
- package/dist/esm/shared-lib/dto/analytics/group-by-expression.dto.js +2 -2
- package/dist/esm/shared-lib/dto/analytics/index.js +9 -9
- package/dist/esm/shared-lib/dto/analytics/retention-analytics.dto.js +3 -3
- package/dist/esm/shared-lib/dto/analytics/transaction-analytics.request.dto.js +6 -6
- package/dist/esm/shared-lib/dto/analytics/user-analytics.dto.js +1 -1
- package/dist/esm/shared-lib/dto/analytics/user-ranking-analytics.dto.js +3 -3
- package/dist/esm/shared-lib/dto/api-key/api-key-verification.dto.js +1 -1
- package/dist/esm/shared-lib/dto/api-key/api-key.dto.js +1 -1
- package/dist/esm/shared-lib/dto/api-key/index.js +3 -3
- package/dist/esm/shared-lib/dto/auth/auth.dto.js +5 -5
- package/dist/esm/shared-lib/dto/auth/index.js +2 -2
- package/dist/esm/shared-lib/dto/business/business-create.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/business-membership.dto.js +4 -4
- package/dist/esm/shared-lib/dto/business/business-type.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/business-update.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/business.dto.js +3 -3
- package/dist/esm/shared-lib/dto/business/businessToggleActive.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/businessTypeCreate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/business/index.js +8 -8
- package/dist/esm/shared-lib/dto/campaign/campaign-business-engagement.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaign.dto.js +5 -5
- package/dist/esm/shared-lib/dto/campaign/campaignClaim.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignCreate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignTrigger.dto.js +4 -4
- package/dist/esm/shared-lib/dto/campaign/campaignTriggerCondition.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignUpdate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/campaign/campaignUserClaim.dto.js +6 -6
- package/dist/esm/shared-lib/dto/campaign/trigger-source.dto.js +2 -2
- package/dist/esm/shared-lib/dto/error-response.dto.js +2 -2
- package/dist/esm/shared-lib/dto/file/entity-storage-url.dto.js +3 -3
- package/dist/esm/shared-lib/dto/file/index.js +2 -2
- package/dist/esm/shared-lib/dto/index.js +36 -36
- package/dist/esm/shared-lib/dto/pagination/index.js +2 -2
- package/dist/esm/shared-lib/dto/pagination/pagination.request.dto.js +2 -2
- package/dist/esm/shared-lib/dto/purchase/index.js +9 -9
- package/dist/esm/shared-lib/dto/purchase/purchase.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseCreate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseCreate.response.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseTokenUpdate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/purchase/purchaseType.dto.js +1 -1
- package/dist/esm/shared-lib/dto/redemption/index.js +5 -5
- package/dist/esm/shared-lib/dto/redemption/redemption.dto.js +4 -4
- package/dist/esm/shared-lib/dto/redemption/redemptionCreate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.dto.js +5 -5
- package/dist/esm/shared-lib/dto/redemption/redemptionRedeem.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/redemption/redemptionType.dto.js +1 -1
- package/dist/esm/shared-lib/dto/signing-account/create-signing-account-request.dto.js +4 -4
- package/dist/esm/shared-lib/dto/signing-account/index.js +5 -5
- package/dist/esm/shared-lib/dto/signing-account/signing-account.dto.js +1 -1
- package/dist/esm/shared-lib/dto/signing-account/update-signing-account.dto.js +1 -1
- package/dist/esm/shared-lib/dto/tenant/index.js +4 -4
- package/dist/esm/shared-lib/dto/tenant/tenant.dto.js +1 -1
- package/dist/esm/shared-lib/dto/tenant/tenantUpdate.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/index.js +7 -7
- package/dist/esm/shared-lib/dto/token/token-balance.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/token-metadata.dto.js +3 -3
- package/dist/esm/shared-lib/dto/token/token-selector.dto.js +1 -1
- package/dist/esm/shared-lib/dto/token/token-type.dto.js +2 -2
- package/dist/esm/shared-lib/dto/token/token-unit.dto.js +2 -2
- package/dist/esm/shared-lib/dto/token/token.dto.js +2 -2
- package/dist/esm/shared-lib/dto/token/token.request.dto.js +2 -2
- package/dist/esm/shared-lib/dto/transaction/index.js +8 -8
- package/dist/esm/shared-lib/dto/transaction/transaction-bulk-data.request.dto.js +2 -2
- package/dist/esm/shared-lib/dto/transaction/transaction-pagination.request.dto.js +4 -4
- package/dist/esm/shared-lib/dto/transaction/transaction-trigger-process.dto.js +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction.dto.js +6 -6
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.js +9 -9
- package/dist/esm/shared-lib/dto/user/index.js +3 -3
- package/dist/esm/shared-lib/dto/user/user.dto.js +3 -3
- package/dist/esm/shared-lib/dto/user/user.request.dto.js +1 -1
- package/dist/esm/shared-lib/dto/user/userUploadData.dto.js +1 -1
- package/dist/esm/shared-lib/dto/user-status-type.dto.d.ts +1 -0
- package/dist/esm/shared-lib/dto/user-status-type.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/user-status-type.dto.js +10 -1
- package/dist/esm/shared-lib/dto/user-status-type.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/wallet.dto.js +2 -2
- package/dist/esm/shared-lib/dto/web3-contract.dto.js +3 -3
- package/dist/esm/shared-lib/enum/campaign/index.js +3 -3
- package/dist/esm/shared-lib/enum/index.js +28 -28
- package/dist/esm/shared-lib/enum/purchase/index.js +2 -2
- package/dist/esm/shared-lib/errors/base-business-error.js +1 -1
- package/dist/esm/shared-lib/errors/domains/authentication-errors.js +3 -3
- package/dist/esm/shared-lib/errors/domains/balance-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/business-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/campaign-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/contract-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/signing-account-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/system-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/tenant-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/token-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/transaction-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/trigger-source-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/user-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/validation-errors.js +2 -2
- package/dist/esm/shared-lib/errors/domains/wallet-errors.js +2 -2
- package/dist/esm/shared-lib/errors/index.js +18 -18
- package/dist/esm/shared-lib/errors/technical-errors.js +2 -2
- package/dist/esm/shared-lib/interfaces/campaign/index.js +1 -1
- package/dist/esm/shared-lib/interfaces/index.js +21 -21
- package/dist/esm/shared-lib/types/index.js +15 -15
- package/dist/esm/shared-lib/value-objects/account-selector.vo.js +3 -3
- package/dist/esm/shared-lib/value-objects/address.value-object.js +1 -1
- package/dist/esm/shared-lib/value-objects/index.js +8 -8
- package/dist/esm/shared-lib/value-objects/token-balance.value-object.js +1 -1
- package/dist/esm/shared-lib/value-objects/token-transaction-entity-reference-input.vo.js +2 -2
- package/dist/esm/shared-lib/value-objects/token-transaction-input.vo.js +2 -2
- package/dist/esm/shared-patterns/errors/error-factory.js +13 -13
- package/dist/esm/shared-patterns/functions/helper.functions.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-status-type.dto.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/dto/user-status-type.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,8BAA8B;IAMvC,IAAI,EAAE,MAAM,CAAM;IAOlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAOrB,eAAe,EAAE,MAAM,CAAK;IAO5B,kBAAkB,EAAE,MAAM,CAAK;IAO/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAUlB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAUlC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"user-status-type.dto.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/dto/user-status-type.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,8BAA8B;IAMvC,IAAI,EAAE,MAAM,CAAM;IAOlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAOrB,eAAe,EAAE,MAAM,CAAK;IAO5B,kBAAkB,EAAE,MAAM,CAAK;IAO/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAUlB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAUlC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAQhB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,iBAAkB,SAAQ,8BAA8B;IAIjE,EAAE,EAAE,MAAM,CAAK;CAClB"}
|
|
@@ -21,6 +21,7 @@ class UserStatusTypeCreateRequestDTO {
|
|
|
21
21
|
imageUrl;
|
|
22
22
|
eligibleTokenAddresses;
|
|
23
23
|
tags;
|
|
24
|
+
order;
|
|
24
25
|
}
|
|
25
26
|
exports.UserStatusTypeCreateRequestDTO = UserStatusTypeCreateRequestDTO;
|
|
26
27
|
__decorate([
|
|
@@ -85,6 +86,15 @@ __decorate([
|
|
|
85
86
|
(0, class_validator_1.IsString)({ each: true }),
|
|
86
87
|
__metadata("design:type", Array)
|
|
87
88
|
], UserStatusTypeCreateRequestDTO.prototype, "tags", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
91
|
+
description: 'Explicit ordering for status hierarchy (higher = more prestigious). If not set, falls back to minTokenBalance for ordering.',
|
|
92
|
+
example: 100
|
|
93
|
+
}),
|
|
94
|
+
(0, decorators_1.OptionalStrip)(),
|
|
95
|
+
(0, class_validator_1.IsNumber)(),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], UserStatusTypeCreateRequestDTO.prototype, "order", void 0);
|
|
88
98
|
class UserStatusTypeDTO extends UserStatusTypeCreateRequestDTO {
|
|
89
99
|
id = 0;
|
|
90
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-status-type.dto.js","sourceRoot":"","sources":["../../../../src/shared-lib/dto/user-status-type.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAAiF;AACjF,8CAA8C;AAE9C,MAAa,8BAA8B;IAMvC,IAAI,GAAW,EAAE,CAAC;IAOlB,WAAW,CAAU;IAOrB,eAAe,GAAW,CAAC,CAAC;IAO5B,kBAAkB,GAAW,CAAC,CAAC;IAO/B,QAAQ,CAAU;IAUlB,sBAAsB,CAAY;IAUlC,IAAI,CAAY;
|
|
1
|
+
{"version":3,"file":"user-status-type.dto.js","sourceRoot":"","sources":["../../../../src/shared-lib/dto/user-status-type.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAAiF;AACjF,8CAA8C;AAE9C,MAAa,8BAA8B;IAMvC,IAAI,GAAW,EAAE,CAAC;IAOlB,WAAW,CAAU;IAOrB,eAAe,GAAW,CAAC,CAAC;IAO5B,kBAAkB,GAAW,CAAC,CAAC;IAO/B,QAAQ,CAAU;IAUlB,sBAAsB,CAAY;IAUlC,IAAI,CAAY;IAQhB,KAAK,CAAU;CAClB;AA/DD,wEA+DC;AAzDG;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uBAAuB;KACvC,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACO;AAOlB;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,8BAA8B;KAC9C,CAAC;IACD,IAAA,0BAAa,GAAE;IACf,IAAA,0BAAQ,GAAE;;mEACU;AAOrB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,2CAA2C;KAC3D,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uEACiB;AAO5B;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,8CAA8C;KAC9D,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACoB;AAO/B;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,4BAA4B;KAC5C,CAAC;IACD,IAAA,0BAAa,GAAE;IACf,IAAA,uBAAK,GAAE;;gEACU;AAUlB;IARC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;KACtC,CAAC;IACD,IAAA,0BAAa,GAAE;IACf,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;8EACS;AAUlC;IARC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC;KACtC,CAAC;IACD,IAAA,0BAAa,GAAE;IACf,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4DACT;AAQhB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,6HAA6H;QAC1I,OAAO,EAAE,GAAG;KACf,CAAC;IACD,IAAA,0BAAa,GAAE;IACf,IAAA,0BAAQ,GAAE;;6DACI;AAGnB,MAAa,iBAAkB,SAAQ,8BAA8B;IAIjE,EAAE,GAAW,CAAC,CAAC;CAClB;AALD,8CAKC;AADG;IAHC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,qBAAqB;KACrC,CAAC;;6CACa"}
|
package/dist/esm/browser.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Uses barrel exports for automatic inclusion - no manual maintenance needed!
|
|
4
4
|
*/
|
|
5
5
|
// Export enums - these are safe for browser use (barrel export)
|
|
6
|
-
export * from './shared-lib/enum';
|
|
6
|
+
export * from './shared-lib/enum/index.js';
|
|
7
7
|
// Export types and constants (runtime exports) - browser-safe only
|
|
8
|
-
export * from './shared-lib/types';
|
|
8
|
+
export * from './shared-lib/types/index.js';
|
|
9
9
|
// Re-export web3 types for convenience
|
|
10
10
|
export * from '@explorins/web3-types';
|
|
11
11
|
// Note: Backend-specific types (like TRANSACTION_FORMATS) are excluded from browser build
|
package/dist/esm/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// PERS Shared Contracts Library - Pure Data Contracts and Domain Vocabulary
|
|
2
2
|
// 🌐 PUBLIC: Safe for external consumption - contains only DTOs, interfaces, types, and enums
|
|
3
3
|
// Core domain contracts
|
|
4
|
-
export * from './shared-lib/enum';
|
|
5
|
-
export * from './shared-lib/interfaces';
|
|
6
|
-
export * from './shared-lib/types';
|
|
4
|
+
export * from './shared-lib/enum/index.js';
|
|
5
|
+
export * from './shared-lib/interfaces/index.js';
|
|
6
|
+
export * from './shared-lib/types/index.js';
|
|
7
7
|
// Re-export web3 types for convenience
|
|
8
8
|
export * from '@explorins/web3-types';
|
|
9
|
-
export { ErrorCategory } from './shared-lib/errors/base/error-classification-enums';
|
|
9
|
+
export { ErrorCategory } from './shared-lib/errors/base/error-classification-enums.js';
|
|
10
10
|
// Shared patterns (architecture components)
|
|
11
|
-
// export * from './shared-patterns/index';
|
|
11
|
+
// export * from './shared-patterns/index.js';
|
|
12
12
|
// External consumers should only use the type exports and documented public APIs
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './validation.decorators';
|
|
1
|
+
export * from './validation.decorators.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsString, IsEnum } from "class-validator";
|
|
9
|
-
import { AccountOwnerType } from "../enum";
|
|
10
|
-
import { OptionalStrip } from '../decorators';
|
|
9
|
+
import { AccountOwnerType } from "../enum/index.js";
|
|
10
|
+
import { OptionalStrip } from '../decorators/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Standard Account Identification for Transaction Participants
|
|
13
13
|
* Supports multiple identification methods with auto-detection
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
|
-
import { TokenBalanceDTO, TokenMetadataBalanceDTO } from "./token/token-balance.dto";
|
|
8
|
+
import { TokenBalanceDTO, TokenMetadataBalanceDTO } from "./token/token-balance.dto.js";
|
|
9
9
|
export class AccountTokenBalancesDTO {
|
|
10
10
|
accountAddress = '';
|
|
11
11
|
tokenBalances = [];
|
|
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsEmail, IsString, IsEnum } from 'class-validator';
|
|
9
|
-
import { AdminType } from './../../enum/admin-type.enum';
|
|
10
|
-
import { OptionalStrip } from '../../decorators';
|
|
9
|
+
import { AdminType } from './../../enum/admin-type.enum.js';
|
|
10
|
+
import { OptionalStrip } from '../../decorators/index.js';
|
|
11
11
|
export class AdminCreateRequestDTO {
|
|
12
12
|
email = '';
|
|
13
13
|
displayName;
|
|
@@ -5,8 +5,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { AdminType } from "../../enum/admin-type.enum";
|
|
9
|
-
import { TenantDTO } from "./../tenant";
|
|
8
|
+
import { AdminType } from "../../enum/admin-type.enum.js";
|
|
9
|
+
import { TenantDTO } from "./../tenant/index.js";
|
|
10
10
|
export class AdminDTO {
|
|
11
11
|
id = '';
|
|
12
12
|
email = '';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './admin-create.request.dto';
|
|
2
|
-
export * from './admin.dto';
|
|
1
|
+
export * from './admin-create.request.dto.js';
|
|
2
|
+
export * from './admin.dto.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,8 +5,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
|
-
import { AiOperationType } from '../../enum/ai-operation-type.enum';
|
|
9
|
-
import { AiTriggerProcessType } from '../../enum/ai-trigger-process-type.enum';
|
|
8
|
+
import { AiOperationType } from '../../enum/ai-operation-type.enum.js';
|
|
9
|
+
import { AiTriggerProcessType } from '../../enum/ai-trigger-process-type.enum.js';
|
|
10
10
|
/**
|
|
11
11
|
* AI Generation Log DTO
|
|
12
12
|
*
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from '@nestjs/swagger';
|
|
8
8
|
import { IsEnum, IsString, MaxLength } from 'class-validator';
|
|
9
|
-
import { AiOperationType } from '../../enum/ai-operation-type.enum';
|
|
9
|
+
import { AiOperationType } from '../../enum/ai-operation-type.enum.js';
|
|
10
10
|
/**
|
|
11
11
|
* DTO for a single AI prompt operation configuration.
|
|
12
12
|
* Implements AiPromptConfig interface with validation decorators.
|
|
@@ -7,10 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { IsDate, IsOptional, IsString, IsBoolean, IsArray, IsNumber, IsEnum } from 'class-validator';
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
|
-
import { SortOrder } from '../../enum/sort-order.enum';
|
|
11
|
-
import { AiTriggerProcessType } from '../../enum/ai-trigger-process-type.enum';
|
|
12
|
-
import { AiOperationType } from '../../enum/ai-operation-type.enum';
|
|
13
|
-
import { AiAnalyticsMetric, AiAnalyticsGroupBy } from '../../enum/ai-analytics-metric.enum';
|
|
10
|
+
import { SortOrder } from '../../enum/sort-order.enum.js';
|
|
11
|
+
import { AiTriggerProcessType } from '../../enum/ai-trigger-process-type.enum.js';
|
|
12
|
+
import { AiOperationType } from '../../enum/ai-operation-type.enum.js';
|
|
13
|
+
import { AiAnalyticsMetric, AiAnalyticsGroupBy } from '../../enum/ai-analytics-metric.enum.js';
|
|
14
14
|
/**
|
|
15
15
|
* AI Usage Summary Request DTO
|
|
16
16
|
*
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { IsDateString } from 'class-validator';
|
|
9
|
-
import { OptionalStrip } from '../../decorators';
|
|
9
|
+
import { OptionalStrip } from '../../decorators/index.js';
|
|
10
10
|
/**
|
|
11
11
|
* BASE ANALYTICS REQUEST
|
|
12
12
|
*
|
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { IsEnum, IsInt, Min, Max, IsDateString, ValidateNested, IsString } from 'class-validator';
|
|
8
8
|
import { Type } from 'class-transformer';
|
|
9
9
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
10
|
-
import { SortOrder } from '
|
|
11
|
-
import { NativeTokenTypes } from '../../types/native-token.type';
|
|
12
|
-
import { OptionalStrip, OptionalStripNumber } from '../../decorators';
|
|
10
|
+
import { SortOrder } from '../../../index.js';
|
|
11
|
+
import { NativeTokenTypes } from '../../types/native-token.type.js';
|
|
12
|
+
import { OptionalStrip, OptionalStripNumber } from '../../decorators/index.js';
|
|
13
13
|
/**
|
|
14
14
|
* BUSINESS RANKING ANALYTICS DTOs
|
|
15
15
|
*
|
|
@@ -7,11 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { IsNumber, Min, Max, IsArray, IsString, ValidateNested, IsEnum, IsIn, IsDateString } from 'class-validator';
|
|
8
8
|
import { Transform, Type } from 'class-transformer';
|
|
9
9
|
import { ApiProperty, ApiPropertyOptional, OmitType, PartialType } from '@nestjs/swagger';
|
|
10
|
-
import { CampaignClaimAnalyticsDTO } from '../analytics/campaign-claim-analytics.dto';
|
|
11
|
-
import { SortOrder } from '../../enum';
|
|
12
|
-
import { ANALYTICS_METRIC_TYPES } from '../../types/analytics.type';
|
|
13
|
-
import { GroupByExpressionDTO } from '../analytics/group-by-expression.dto';
|
|
14
|
-
import { OptionalStrip, OptionalStripNumber } from '../../decorators';
|
|
10
|
+
import { CampaignClaimAnalyticsDTO } from '../analytics/campaign-claim-analytics.dto.js';
|
|
11
|
+
import { SortOrder } from '../../enum/index.js';
|
|
12
|
+
import { ANALYTICS_METRIC_TYPES } from '../../types/analytics.type.js';
|
|
13
|
+
import { GroupByExpressionDTO } from '../analytics/group-by-expression.dto.js';
|
|
14
|
+
import { OptionalStrip, OptionalStripNumber } from '../../decorators/index.js';
|
|
15
15
|
/**
|
|
16
16
|
* SCALABLE ANALYTICS REQUEST PATTERN
|
|
17
17
|
*
|
|
@@ -5,11 +5,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
|
-
import { ProcessRecordStatus } from "../../enum";
|
|
9
|
-
import { UserDTO } from "../user/user.dto";
|
|
10
|
-
import { CampaignDTO } from "../campaign/campaign.dto";
|
|
11
|
-
import { BusinessDTO } from "../business/business.dto";
|
|
12
|
-
import { TriggerSourceDTO } from "../campaign/trigger-source.dto";
|
|
8
|
+
import { ProcessRecordStatus } from "../../enum/index.js";
|
|
9
|
+
import { UserDTO } from "../user/user.dto.js";
|
|
10
|
+
import { CampaignDTO } from "../campaign/campaign.dto.js";
|
|
11
|
+
import { BusinessDTO } from "../business/business.dto.js";
|
|
12
|
+
import { TriggerSourceDTO } from "../campaign/trigger-source.dto.js";
|
|
13
13
|
/**
|
|
14
14
|
* Campaign Claim Analytics DTO
|
|
15
15
|
*
|
|
@@ -6,8 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsString } from "class-validator";
|
|
9
|
-
import { AccountOwnerType } from "../../enum";
|
|
10
|
-
import { OptionalStrip } from '../../decorators';
|
|
9
|
+
import { AccountOwnerType } from "../../enum/index.js";
|
|
10
|
+
import { OptionalStrip } from '../../decorators/index.js';
|
|
11
11
|
export class GroupByExpressionDTO {
|
|
12
12
|
expression;
|
|
13
13
|
alias;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './base-analytics.dto';
|
|
2
|
-
export * from './business-ranking-analytics.dto';
|
|
3
|
-
export * from './campaign-claim-analytics.dto';
|
|
4
|
-
export * from './campaign-claim-analytics-request.dto';
|
|
5
|
-
export * from './group-by-expression.dto';
|
|
6
|
-
export * from './retention-analytics.dto';
|
|
7
|
-
export * from './tag-analytics.dto';
|
|
8
|
-
export * from './user-ranking-analytics.dto';
|
|
9
|
-
export * from './ai-analytics.dto';
|
|
1
|
+
export * from './base-analytics.dto.js';
|
|
2
|
+
export * from './business-ranking-analytics.dto.js';
|
|
3
|
+
export * from './campaign-claim-analytics.dto.js';
|
|
4
|
+
export * from './campaign-claim-analytics-request.dto.js';
|
|
5
|
+
export * from './group-by-expression.dto.js';
|
|
6
|
+
export * from './retention-analytics.dto.js';
|
|
7
|
+
export * from './tag-analytics.dto.js';
|
|
8
|
+
export * from './user-ranking-analytics.dto.js';
|
|
9
|
+
export * from './ai-analytics.dto.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { IsEnum, IsInt, Min, Max, IsDateString, ValidateNested } from 'class-validator';
|
|
8
8
|
import { Type } from 'class-transformer';
|
|
9
9
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
10
|
-
import { NativeTokenTypes } from '../../types/native-token.type';
|
|
11
|
-
import { OptionalStrip, OptionalStripNumber } from '../../decorators';
|
|
12
|
-
import { TransactionTriggerProcessType } from '../../enum';
|
|
10
|
+
import { NativeTokenTypes } from '../../types/native-token.type.js';
|
|
11
|
+
import { OptionalStrip, OptionalStripNumber } from '../../decorators/index.js';
|
|
12
|
+
import { TransactionTriggerProcessType } from '../../enum/index.js';
|
|
13
13
|
/**
|
|
14
14
|
* RETENTION ANALYTICS DTOs
|
|
15
15
|
*
|
|
@@ -7,12 +7,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { IsIn, IsNumber, IsString, IsObject, IsDateString, Min, Max, IsArray, ValidateNested, IsEnum } from 'class-validator';
|
|
8
8
|
import { Transform, Type } from 'class-transformer';
|
|
9
9
|
import { ApiProperty, ApiPropertyOptional, OmitType, PartialType } from '@nestjs/swagger';
|
|
10
|
-
import { TransactionDTO } from '../transaction/transaction.dto';
|
|
11
|
-
import { SortOrder, AccountOwnerType } from '../../enum';
|
|
12
|
-
import { ANALYTICS_METRIC_TYPES } from '../../types/analytics.type';
|
|
13
|
-
import { GroupByExpressionDTO } from './group-by-expression.dto';
|
|
14
|
-
import { NativeTokenTypes } from '../../types/native-token.type';
|
|
15
|
-
import { OptionalStrip, OptionalStripNumber } from '../../decorators';
|
|
10
|
+
import { TransactionDTO } from '../transaction/transaction.dto.js';
|
|
11
|
+
import { SortOrder, AccountOwnerType } from '../../enum/index.js';
|
|
12
|
+
import { ANALYTICS_METRIC_TYPES } from '../../types/analytics.type.js';
|
|
13
|
+
import { GroupByExpressionDTO } from './group-by-expression.dto.js';
|
|
14
|
+
import { NativeTokenTypes } from '../../types/native-token.type.js';
|
|
15
|
+
import { OptionalStrip, OptionalStripNumber } from '../../decorators/index.js';
|
|
16
16
|
/**
|
|
17
17
|
* Type-safe filters for transaction analytics
|
|
18
18
|
* All fields optional via PartialType
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { IsDateString, ValidateNested } from 'class-validator';
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
|
-
import { OptionalStrip } from '../../decorators';
|
|
10
|
+
import { OptionalStrip } from '../../decorators/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* USER ANALYTICS FILTERS DTO
|
|
13
13
|
*
|
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { IsDateString, IsEnum, IsNumber, ValidateNested, Min, Max } from 'class-validator';
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
|
-
import { SortOrder } from '../../enum';
|
|
11
|
-
import { NativeTokenTypes } from '../../types/native-token.type';
|
|
12
|
-
import { OptionalStrip, OptionalStripNumber } from '../../decorators';
|
|
10
|
+
import { SortOrder } from '../../enum/index.js';
|
|
11
|
+
import { NativeTokenTypes } from '../../types/native-token.type.js';
|
|
12
|
+
import { OptionalStrip, OptionalStripNumber } from '../../decorators/index.js';
|
|
13
13
|
/**
|
|
14
14
|
* USER RANKING FILTERS DTO
|
|
15
15
|
*
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { Type } from "class-transformer";
|
|
9
9
|
import { IsBoolean, IsOptional, ValidateNested } from "class-validator";
|
|
10
|
-
import { ApiKeyDTO } from "./api-key.dto";
|
|
10
|
+
import { ApiKeyDTO } from "./api-key.dto.js";
|
|
11
11
|
export class ApiKeyVerificationRequestDTO {
|
|
12
12
|
/** JWT token to verify */
|
|
13
13
|
authToken;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
8
8
|
import { IsEnum, IsString, IsDateString, IsUUID, IsOptional } from 'class-validator';
|
|
9
|
-
import { ApiKeyType } from './../../enum/api-key-type.enum';
|
|
9
|
+
import { ApiKeyType } from './../../enum/api-key-type.enum.js';
|
|
10
10
|
/**
|
|
11
11
|
* API Key DTO - Standard response format for API key information
|
|
12
12
|
* Contains safe, non-sensitive API key metadata for client consumption
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './api-key.dto';
|
|
2
|
-
export * from './api-key.request.dto';
|
|
3
|
-
export * from './api-key-verification.dto';
|
|
1
|
+
export * from './api-key.dto.js';
|
|
2
|
+
export * from './api-key.request.dto.js';
|
|
3
|
+
export * from './api-key-verification.dto.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,11 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsString, ValidateNested, IsEnum } from "class-validator";
|
|
9
9
|
import { Type } from "class-transformer";
|
|
10
|
-
import { UserDTO } from "../user/user.dto";
|
|
11
|
-
import { BusinessDTO } from "../business";
|
|
12
|
-
import { AccountOwnerType } from "../../enum";
|
|
13
|
-
import { AdminDTO } from "../admin";
|
|
14
|
-
import { OptionalStrip } from '../../decorators';
|
|
10
|
+
import { UserDTO } from "../user/user.dto.js";
|
|
11
|
+
import { BusinessDTO } from "../business/index.js";
|
|
12
|
+
import { AccountOwnerType } from "../../enum/index.js";
|
|
13
|
+
import { AdminDTO } from "../admin/index.js";
|
|
14
|
+
import { OptionalStrip } from '../../decorators/index.js';
|
|
15
15
|
/**
|
|
16
16
|
* Auth Context DTO
|
|
17
17
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './auth-token-verification.dto';
|
|
2
|
-
export * from './auth.dto';
|
|
1
|
+
export * from './auth-token-verification.dto.js';
|
|
2
|
+
export * from './auth.dto.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsString, IsArray, ValidateNested } from "class-validator";
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
|
-
import { BusinessUpdateRequestDTO } from "./business-update.request.dto";
|
|
10
|
+
import { BusinessUpdateRequestDTO } from "./business-update.request.dto.js";
|
|
11
11
|
export class BusinessCreateRequestDTO extends BusinessUpdateRequestDTO {
|
|
12
12
|
displayName = '';
|
|
13
13
|
}
|
|
@@ -6,10 +6,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional, getSchemaPath } from "@nestjs/swagger";
|
|
8
8
|
import { IsEnum, IsNotEmpty, IsUUID } from "class-validator";
|
|
9
|
-
import { MembershipRole } from "../../enum/membership-role.enum";
|
|
10
|
-
import { OptionalNullify } from "../../decorators";
|
|
11
|
-
import { UserDTO } from "../user/user.dto";
|
|
12
|
-
import { BusinessDTO } from "./business.dto";
|
|
9
|
+
import { MembershipRole } from "../../enum/membership-role.enum.js";
|
|
10
|
+
import { OptionalNullify } from "../../decorators/index.js";
|
|
11
|
+
import { UserDTO } from "../user/user.dto.js";
|
|
12
|
+
import { BusinessDTO } from "./business.dto.js";
|
|
13
13
|
/**
|
|
14
14
|
* Business Membership DTO
|
|
15
15
|
*
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNumber } from 'class-validator';
|
|
9
|
-
import { OptionalStripNumber } from '../../decorators';
|
|
9
|
+
import { OptionalStripNumber } from '../../decorators/index.js';
|
|
10
10
|
export class BusinessTypeDTO {
|
|
11
11
|
id;
|
|
12
12
|
name = null;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsString, IsEmail, IsUrl, IsNumber, IsArray } from 'class-validator';
|
|
9
|
-
import { OptionalNullify, OptionalNullifyNumber, OptionalStrip } from '../../decorators';
|
|
9
|
+
import { OptionalNullify, OptionalNullifyNumber, OptionalStrip } from '../../decorators/index.js';
|
|
10
10
|
export class BusinessUpdateRequestDTO {
|
|
11
11
|
email;
|
|
12
12
|
businessLegalName;
|
|
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
8
|
import { Type } from "class-transformer";
|
|
9
|
-
import { TokenBalanceDTO } from "../token/token-balance.dto";
|
|
10
|
-
import { BusinessTypeDTO } from "./business-type.dto";
|
|
11
|
-
import { PublicWalletDTO } from "../wallet.dto";
|
|
9
|
+
import { TokenBalanceDTO } from "../token/token-balance.dto.js";
|
|
10
|
+
import { BusinessTypeDTO } from "./business-type.dto.js";
|
|
11
|
+
import { PublicWalletDTO } from "../wallet.dto.js";
|
|
12
12
|
export class BusinessDTO {
|
|
13
13
|
id = '';
|
|
14
14
|
/* @ApiProperty()
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsBoolean } from 'class-validator';
|
|
9
|
-
import { OptionalStrip } from '../../decorators';
|
|
9
|
+
import { OptionalStrip } from '../../decorators/index.js';
|
|
10
10
|
export class BusinessToggleActiveRequestDTO {
|
|
11
11
|
isActive = false;
|
|
12
12
|
/* @ApiPropertyOptional()
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsString, IsUrl } from 'class-validator';
|
|
9
|
-
import { OptionalStrip } from '../../decorators';
|
|
9
|
+
import { OptionalStrip } from '../../decorators/index.js';
|
|
10
10
|
export class BusinessTypeCreateRequestDTO {
|
|
11
11
|
name;
|
|
12
12
|
description;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Business DTOs
|
|
2
|
-
export * from './business.dto';
|
|
3
|
-
export * from './business-type.dto';
|
|
4
|
-
export * from './business-membership.dto';
|
|
5
|
-
export * from './business-create.request.dto';
|
|
6
|
-
export * from './business-update.request.dto';
|
|
7
|
-
export * from './businessSetAllAsTokenMinter.request.dto';
|
|
8
|
-
export * from './businessToggleActive.request.dto';
|
|
9
|
-
export * from './businessTypeCreate.request.dto';
|
|
2
|
+
export * from './business.dto.js';
|
|
3
|
+
export * from './business-type.dto.js';
|
|
4
|
+
export * from './business-membership.dto.js';
|
|
5
|
+
export * from './business-create.request.dto.js';
|
|
6
|
+
export * from './business-update.request.dto.js';
|
|
7
|
+
export * from './businessSetAllAsTokenMinter.request.dto.js';
|
|
8
|
+
export * from './businessToggleActive.request.dto.js';
|
|
9
|
+
export * from './businessTypeCreate.request.dto.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsArray, IsUUID, IsString, IsNumber, IsUrl } from 'class-validator';
|
|
9
|
-
import { OptionalStrip, OptionalStripNumber } from '../../decorators';
|
|
9
|
+
import { OptionalStrip, OptionalStripNumber } from '../../decorators/index.js';
|
|
10
10
|
export class CampaignBusinessEngagementCreateRequestDTO {
|
|
11
11
|
businessIds = [];
|
|
12
12
|
shortDescription;
|
|
@@ -5,11 +5,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional, getSchemaPath } from "@nestjs/swagger";
|
|
8
|
-
import { CampaignBusinessEngagementDTO } from "./campaign-business-engagement.dto";
|
|
9
|
-
import { TokenUnitDTO } from "../token/token-unit.dto";
|
|
10
|
-
import { TriggerSourceDTO } from "./trigger-source.dto";
|
|
11
|
-
import { CampaignTriggerDTO } from "./campaignTrigger.dto";
|
|
12
|
-
import { BusinessDTO } from "../business/business.dto";
|
|
8
|
+
import { CampaignBusinessEngagementDTO } from "./campaign-business-engagement.dto.js";
|
|
9
|
+
import { TokenUnitDTO } from "../token/token-unit.dto.js";
|
|
10
|
+
import { TriggerSourceDTO } from "./trigger-source.dto.js";
|
|
11
|
+
import { CampaignTriggerDTO } from "./campaignTrigger.dto.js";
|
|
12
|
+
import { BusinessDTO } from "../business/business.dto.js";
|
|
13
13
|
/**
|
|
14
14
|
* Campaign DTO
|
|
15
15
|
*
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsUUID, IsObject, IsNumber, IsString } from 'class-validator';
|
|
9
|
-
import { OptionalStrip, OptionalStripNumber } from '../../decorators';
|
|
9
|
+
import { OptionalStrip, OptionalStripNumber } from '../../decorators/index.js';
|
|
10
10
|
export class CampaignClaimRequestDTO {
|
|
11
11
|
triggerSourceId;
|
|
12
12
|
metadata;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsString } from 'class-validator';
|
|
9
|
-
import { CampaignUpdateRequestDTO } from './campaignUpdate.request.dto';
|
|
9
|
+
import { CampaignUpdateRequestDTO } from './campaignUpdate.request.dto.js';
|
|
10
10
|
/**
|
|
11
11
|
* DTO for creating a new campaign.
|
|
12
12
|
* Extends CampaignUpdateRequestDTO with required `name` field.
|
|
@@ -7,10 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsString, IsNumber, IsEnum, IsArray, ValidateNested } from 'class-validator';
|
|
9
9
|
import { Type } from 'class-transformer';
|
|
10
|
-
import { CampaignTriggerType } from "../../enum/campaign/campaignTriggerType.enum";
|
|
11
|
-
import { CampaignTriggerConditionDTO } from "./campaignTriggerCondition.dto";
|
|
12
|
-
import { SOURCE_LOGIC_TYPES, SOURCE_LOGIC_TYPE_VALUES } from "../../enum/campaign/trigger-source-type.enum";
|
|
13
|
-
import { OptionalStrip, OptionalNullifyNumber } from '../../decorators';
|
|
10
|
+
import { CampaignTriggerType } from "../../enum/campaign/campaignTriggerType.enum.js";
|
|
11
|
+
import { CampaignTriggerConditionDTO } from "./campaignTriggerCondition.dto.js";
|
|
12
|
+
import { SOURCE_LOGIC_TYPES, SOURCE_LOGIC_TYPE_VALUES } from "../../enum/campaign/trigger-source-type.enum.js";
|
|
13
|
+
import { OptionalStrip, OptionalNullifyNumber } from '../../decorators/index.js';
|
|
14
14
|
export class CampaignTriggerUpdateRequestDTO {
|
|
15
15
|
name;
|
|
16
16
|
description;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiProperty } from "@nestjs/swagger";
|
|
8
8
|
import { IsNotEmpty, IsEnum, IsString } from 'class-validator';
|
|
9
|
-
import { CampaignConditionType } from "../../enum/campaign/campaignConditionType.enum";
|
|
9
|
+
import { CampaignConditionType } from "../../enum/campaign/campaignConditionType.enum.js";
|
|
10
10
|
export class CampaignTriggerConditionDTO {
|
|
11
11
|
conditionType = CampaignConditionType.EQUALS;
|
|
12
12
|
value = '';
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
8
8
|
import { IsString, IsDateString, IsUrl, IsNumber, IsArray, ValidateIf } from 'class-validator';
|
|
9
|
-
import { OptionalNullify, OptionalNullifyNumber, OptionalStrip } from '../../decorators';
|
|
9
|
+
import { OptionalNullify, OptionalNullifyNumber, OptionalStrip } from '../../decorators/index.js';
|
|
10
10
|
/**
|
|
11
11
|
* DTO for updating an existing campaign.
|
|
12
12
|
* All fields are optional - only provided fields will be updated.
|