@conectai/shared-contracts 1.0.0
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/README.md +35 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/services/external/Email.d.ts +9 -0
- package/dist/services/external/Email.d.ts.map +1 -0
- package/dist/services/external/Email.js +43 -0
- package/dist/services/external/Email.js.map +1 -0
- package/dist/useCases/Address/AddressValidator.d.ts +39 -0
- package/dist/useCases/Address/AddressValidator.d.ts.map +1 -0
- package/dist/useCases/Address/AddressValidator.js +185 -0
- package/dist/useCases/Address/AddressValidator.js.map +1 -0
- package/dist/useCases/Address/IAddress.d.ts +60 -0
- package/dist/useCases/Address/IAddress.d.ts.map +1 -0
- package/dist/useCases/Address/IAddress.js +3 -0
- package/dist/useCases/Address/IAddress.js.map +1 -0
- package/dist/useCases/Authenticate/AuthenticateValidator.d.ts +26 -0
- package/dist/useCases/Authenticate/AuthenticateValidator.d.ts.map +1 -0
- package/dist/useCases/Authenticate/AuthenticateValidator.js +101 -0
- package/dist/useCases/Authenticate/AuthenticateValidator.js.map +1 -0
- package/dist/useCases/Authenticate/IAuthenticationCode.d.ts +47 -0
- package/dist/useCases/Authenticate/IAuthenticationCode.d.ts.map +1 -0
- package/dist/useCases/Authenticate/IAuthenticationCode.js +9 -0
- package/dist/useCases/Authenticate/IAuthenticationCode.js.map +1 -0
- package/dist/useCases/EndUser/EndUserValidator.d.ts +21 -0
- package/dist/useCases/EndUser/EndUserValidator.d.ts.map +1 -0
- package/dist/useCases/EndUser/EndUserValidator.js +88 -0
- package/dist/useCases/EndUser/EndUserValidator.js.map +1 -0
- package/dist/useCases/EndUser/IEndUser.d.ts +33 -0
- package/dist/useCases/EndUser/IEndUser.d.ts.map +1 -0
- package/dist/useCases/EndUser/IEndUser.js +3 -0
- package/dist/useCases/EndUser/IEndUser.js.map +1 -0
- package/dist/useCases/EquipmentAsset/EquipmentAssetValidator.d.ts +43 -0
- package/dist/useCases/EquipmentAsset/EquipmentAssetValidator.d.ts.map +1 -0
- package/dist/useCases/EquipmentAsset/EquipmentAssetValidator.js +107 -0
- package/dist/useCases/EquipmentAsset/EquipmentAssetValidator.js.map +1 -0
- package/dist/useCases/Group/IGroup.d.ts +11 -0
- package/dist/useCases/Group/IGroup.d.ts.map +1 -0
- package/dist/useCases/Group/IGroup.js +3 -0
- package/dist/useCases/Group/IGroup.js.map +1 -0
- package/dist/useCases/Hotspot/HotspotValidator.d.ts +20 -0
- package/dist/useCases/Hotspot/HotspotValidator.d.ts.map +1 -0
- package/dist/useCases/Hotspot/HotspotValidator.js +86 -0
- package/dist/useCases/Hotspot/HotspotValidator.js.map +1 -0
- package/dist/useCases/Hotspot/IHotspot.d.ts +31 -0
- package/dist/useCases/Hotspot/IHotspot.d.ts.map +1 -0
- package/dist/useCases/Hotspot/IHotspot.js +3 -0
- package/dist/useCases/Hotspot/IHotspot.js.map +1 -0
- package/dist/useCases/HotspotConnection/HotspotConnectionValidator.d.ts +22 -0
- package/dist/useCases/HotspotConnection/HotspotConnectionValidator.d.ts.map +1 -0
- package/dist/useCases/HotspotConnection/HotspotConnectionValidator.js +104 -0
- package/dist/useCases/HotspotConnection/HotspotConnectionValidator.js.map +1 -0
- package/dist/useCases/HotspotConnection/IHotspotConnection.d.ts +40 -0
- package/dist/useCases/HotspotConnection/IHotspotConnection.d.ts.map +1 -0
- package/dist/useCases/HotspotConnection/IHotspotConnection.js +7 -0
- package/dist/useCases/HotspotConnection/IHotspotConnection.js.map +1 -0
- package/dist/useCases/Invoice/InvoiceValidator.d.ts +22 -0
- package/dist/useCases/Invoice/InvoiceValidator.d.ts.map +1 -0
- package/dist/useCases/Invoice/InvoiceValidator.js +58 -0
- package/dist/useCases/Invoice/InvoiceValidator.js.map +1 -0
- package/dist/useCases/PortalBranding/PortalBrandingValidator.d.ts +54 -0
- package/dist/useCases/PortalBranding/PortalBrandingValidator.d.ts.map +1 -0
- package/dist/useCases/PortalBranding/PortalBrandingValidator.js +147 -0
- package/dist/useCases/PortalBranding/PortalBrandingValidator.js.map +1 -0
- package/dist/useCases/PortalFlowStep/PortalFlowStepValidator.d.ts +79 -0
- package/dist/useCases/PortalFlowStep/PortalFlowStepValidator.d.ts.map +1 -0
- package/dist/useCases/PortalFlowStep/PortalFlowStepValidator.js +180 -0
- package/dist/useCases/PortalFlowStep/PortalFlowStepValidator.js.map +1 -0
- package/dist/useCases/PortalFormConfig/PortalFormConfigValidator.d.ts +28 -0
- package/dist/useCases/PortalFormConfig/PortalFormConfigValidator.d.ts.map +1 -0
- package/dist/useCases/PortalFormConfig/PortalFormConfigValidator.js +73 -0
- package/dist/useCases/PortalFormConfig/PortalFormConfigValidator.js.map +1 -0
- package/dist/useCases/PortalFormField/PortalFormFieldValidator.d.ts +47 -0
- package/dist/useCases/PortalFormField/PortalFormFieldValidator.d.ts.map +1 -0
- package/dist/useCases/PortalFormField/PortalFormFieldValidator.js +119 -0
- package/dist/useCases/PortalFormField/PortalFormFieldValidator.js.map +1 -0
- package/dist/useCases/PortalFormSubmission/PortalFormSubmissionValidator.d.ts +22 -0
- package/dist/useCases/PortalFormSubmission/PortalFormSubmissionValidator.d.ts.map +1 -0
- package/dist/useCases/PortalFormSubmission/PortalFormSubmissionValidator.js +57 -0
- package/dist/useCases/PortalFormSubmission/PortalFormSubmissionValidator.js.map +1 -0
- package/dist/useCases/PortalFormTemplate/PortalFormTemplateValidator.d.ts +38 -0
- package/dist/useCases/PortalFormTemplate/PortalFormTemplateValidator.d.ts.map +1 -0
- package/dist/useCases/PortalFormTemplate/PortalFormTemplateValidator.js +94 -0
- package/dist/useCases/PortalFormTemplate/PortalFormTemplateValidator.js.map +1 -0
- package/dist/useCases/PortalGateway/PortalGatewayValidator.d.ts +26 -0
- package/dist/useCases/PortalGateway/PortalGatewayValidator.d.ts.map +1 -0
- package/dist/useCases/PortalGateway/PortalGatewayValidator.js +59 -0
- package/dist/useCases/PortalGateway/PortalGatewayValidator.js.map +1 -0
- package/dist/useCases/PortalPolicy/PortalPolicyValidator.d.ts +30 -0
- package/dist/useCases/PortalPolicy/PortalPolicyValidator.d.ts.map +1 -0
- package/dist/useCases/PortalPolicy/PortalPolicyValidator.js +74 -0
- package/dist/useCases/PortalPolicy/PortalPolicyValidator.js.map +1 -0
- package/dist/useCases/PortalVoucher/PortalVoucherValidator.d.ts +34 -0
- package/dist/useCases/PortalVoucher/PortalVoucherValidator.d.ts.map +1 -0
- package/dist/useCases/PortalVoucher/PortalVoucherValidator.js +82 -0
- package/dist/useCases/PortalVoucher/PortalVoucherValidator.js.map +1 -0
- package/dist/useCases/Subscription/SubscriptionValidator.d.ts +39 -0
- package/dist/useCases/Subscription/SubscriptionValidator.d.ts.map +1 -0
- package/dist/useCases/Subscription/SubscriptionValidator.js +89 -0
- package/dist/useCases/Subscription/SubscriptionValidator.js.map +1 -0
- package/dist/useCases/Tenant/ITenant.d.ts +15 -0
- package/dist/useCases/Tenant/ITenant.d.ts.map +1 -0
- package/dist/useCases/Tenant/ITenant.js +3 -0
- package/dist/useCases/Tenant/ITenant.js.map +1 -0
- package/dist/useCases/Tenant/TenantValidator.d.ts +7 -0
- package/dist/useCases/Tenant/TenantValidator.d.ts.map +1 -0
- package/dist/useCases/Tenant/TenantValidator.js +28 -0
- package/dist/useCases/Tenant/TenantValidator.js.map +1 -0
- package/dist/useCases/User/IUser.d.ts +33 -0
- package/dist/useCases/User/IUser.d.ts.map +1 -0
- package/dist/useCases/User/IUser.js +3 -0
- package/dist/useCases/User/IUser.js.map +1 -0
- package/dist/useCases/User/UserValidator.d.ts +13 -0
- package/dist/useCases/User/UserValidator.d.ts.map +1 -0
- package/dist/useCases/User/UserValidator.js +54 -0
- package/dist/useCases/User/UserValidator.js.map +1 -0
- package/dist/useCases/UserTenant/IUserTenant.d.ts +14 -0
- package/dist/useCases/UserTenant/IUserTenant.d.ts.map +1 -0
- package/dist/useCases/UserTenant/IUserTenant.js +3 -0
- package/dist/useCases/UserTenant/IUserTenant.js.map +1 -0
- package/dist/useCases/UserTenant/UserTenantValidator.d.ts +8 -0
- package/dist/useCases/UserTenant/UserTenantValidator.d.ts.map +1 -0
- package/dist/useCases/UserTenant/UserTenantValidator.js +32 -0
- package/dist/useCases/UserTenant/UserTenantValidator.js.map +1 -0
- package/dist/utils/customTypes.d.ts +53 -0
- package/dist/utils/customTypes.d.ts.map +1 -0
- package/dist/utils/customTypes.js +3 -0
- package/dist/utils/customTypes.js.map +1 -0
- package/dist/utils/loadEnvironment.d.ts +3 -0
- package/dist/utils/loadEnvironment.d.ts.map +1 -0
- package/dist/utils/loadEnvironment.js +23 -0
- package/dist/utils/loadEnvironment.js.map +1 -0
- package/dist/utils/messages.d.ts +3 -0
- package/dist/utils/messages.d.ts.map +1 -0
- package/dist/utils/messages.js +39 -0
- package/dist/utils/messages.js.map +1 -0
- package/dist/utils/templatesHtml.d.ts +6 -0
- package/dist/utils/templatesHtml.d.ts.map +1 -0
- package/dist/utils/templatesHtml.js +123 -0
- package/dist/utils/templatesHtml.js.map +1 -0
- package/dist/utils/utilsRandom.d.ts +3 -0
- package/dist/utils/utilsRandom.d.ts.map +1 -0
- package/dist/utils/utilsRandom.js +13 -0
- package/dist/utils/utilsRandom.js.map +1 -0
- package/dist/utils/utilsRequest.d.ts +18 -0
- package/dist/utils/utilsRequest.d.ts.map +1 -0
- package/dist/utils/utilsRequest.js +101 -0
- package/dist/utils/utilsRequest.js.map +1 -0
- package/dist/utils/utilsService.d.ts +3 -0
- package/dist/utils/utilsService.d.ts.map +1 -0
- package/dist/utils/utilsService.js +41 -0
- package/dist/utils/utilsService.js.map +1 -0
- package/dist/utils/utilsValidator.d.ts +4 -0
- package/dist/utils/utilsValidator.d.ts.map +1 -0
- package/dist/utils/utilsValidator.js +107 -0
- package/dist/utils/utilsValidator.js.map +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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sBAAsB;CAwB3B;QAEgC,sBAAsB;AAvBrD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;;oDACjB;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IAC/B,IAAA,sBAAI,EAAC,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;sDACxD;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;;wDACjB;AAGjB;IADC,IAAA,4BAAU,GAAE;;sDACE;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IAC/B,IAAA,sBAAI,EAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;sDACrC;AAGf;IADC,IAAA,4BAAU,GAAE;8BACG,IAAI;6DAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
interface IHotspot {
|
|
2
|
+
id: string;
|
|
3
|
+
tenantId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
vendor: string;
|
|
6
|
+
deviceId: string;
|
|
7
|
+
config: object;
|
|
8
|
+
status: string;
|
|
9
|
+
lastHeartbeat?: Date;
|
|
10
|
+
creationDate?: Date;
|
|
11
|
+
lastUpdate?: Date;
|
|
12
|
+
}
|
|
13
|
+
interface ICreateHotspotDTO {
|
|
14
|
+
applicationId: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
name: string;
|
|
17
|
+
vendor: string;
|
|
18
|
+
deviceId: string;
|
|
19
|
+
config?: object;
|
|
20
|
+
status?: string;
|
|
21
|
+
}
|
|
22
|
+
interface IUpdateHotspotDTO {
|
|
23
|
+
name?: string;
|
|
24
|
+
vendor?: string;
|
|
25
|
+
deviceId?: string;
|
|
26
|
+
config?: object;
|
|
27
|
+
status?: string;
|
|
28
|
+
lastHeartbeat?: Date;
|
|
29
|
+
}
|
|
30
|
+
export { IHotspot, ICreateHotspotDTO, IUpdateHotspotDTO };
|
|
31
|
+
//# sourceMappingURL=IHotspot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHotspot.d.ts","sourceRoot":"","sources":["../../../src/useCases/Hotspot/IHotspot.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,IAAI,CAAA;IACpB,YAAY,CAAC,EAAE,IAAI,CAAA;IACnB,UAAU,CAAC,EAAE,IAAI,CAAA;CAClB;AAED,UAAU,iBAAiB;IACzB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,IAAI,CAAA;CACrB;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHotspot.js","sourceRoot":"","sources":["../../../src/useCases/Hotspot/IHotspot.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ICreateHotspotConnectionDTO, IUpdateHotspotConnectionDTO } from './IHotspotConnection';
|
|
2
|
+
declare class CreateHotspotConnectionValidator implements ICreateHotspotConnectionDTO {
|
|
3
|
+
adapterType: string;
|
|
4
|
+
host: string;
|
|
5
|
+
port?: number;
|
|
6
|
+
protocol?: string;
|
|
7
|
+
credentialsReference?: string;
|
|
8
|
+
configuration?: object;
|
|
9
|
+
}
|
|
10
|
+
declare class UpdateHotspotConnectionValidator implements IUpdateHotspotConnectionDTO {
|
|
11
|
+
adapterType?: string;
|
|
12
|
+
host?: string;
|
|
13
|
+
port?: number;
|
|
14
|
+
protocol?: string;
|
|
15
|
+
credentialsReference?: string;
|
|
16
|
+
configuration?: object;
|
|
17
|
+
status?: string;
|
|
18
|
+
lastConnectionAt?: Date;
|
|
19
|
+
lastError?: string;
|
|
20
|
+
}
|
|
21
|
+
export { CreateHotspotConnectionValidator, UpdateHotspotConnectionValidator };
|
|
22
|
+
//# sourceMappingURL=HotspotConnectionValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotspotConnectionValidator.d.ts","sourceRoot":"","sources":["../../../src/useCases/HotspotConnection/HotspotConnectionValidator.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAI5B,MAAM,sBAAsB,CAAA;AAE7B,cAAM,gCAAiC,YAAW,2BAA2B;IAI3E,WAAW,EAAE,MAAM,CAAA;IAKnB,IAAI,EAAE,MAAM,CAAA;IAIZ,IAAI,CAAC,EAAE,MAAM,CAAA;IAKb,QAAQ,CAAC,EAAE,MAAM,CAAA;IAKjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAI7B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,cAAM,gCAAiC,YAAW,2BAA2B;IAI3E,WAAW,CAAC,EAAE,MAAM,CAAA;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,IAAI,CAAC,EAAE,MAAM,CAAA;IAKb,QAAQ,CAAC,EAAE,MAAM,CAAA;IAKjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAI7B,aAAa,CAAC,EAAE,MAAM,CAAA;IAKtB,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,gBAAgB,CAAC,EAAE,IAAI,CAAA;IAIvB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,OAAO,EAAE,gCAAgC,EAAE,gCAAgC,EAAE,CAAA"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateHotspotConnectionValidator = exports.CreateHotspotConnectionValidator = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const IHotspotConnection_1 = require("./IHotspotConnection");
|
|
15
|
+
class CreateHotspotConnectionValidator {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateHotspotConnectionValidator = CreateHotspotConnectionValidator;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'adapterType' }),
|
|
20
|
+
(0, class_validator_1.IsString)({ message: 'adapterType' }),
|
|
21
|
+
(0, class_validator_1.IsIn)(IHotspotConnection_1.HOTSPOT_CONNECTION_ADAPTER_TYPES, { message: 'adapterType' }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateHotspotConnectionValidator.prototype, "adapterType", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'host' }),
|
|
26
|
+
(0, class_validator_1.IsString)({ message: 'host' }),
|
|
27
|
+
(0, class_validator_1.MaxLength)(255, { message: 'host' }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateHotspotConnectionValidator.prototype, "host", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsNumber)({}, { message: 'port' }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CreateHotspotConnectionValidator.prototype, "port", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)({ message: 'protocol' }),
|
|
38
|
+
(0, class_validator_1.IsIn)(IHotspotConnection_1.HOTSPOT_CONNECTION_PROTOCOLS, { message: 'protocol' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateHotspotConnectionValidator.prototype, "protocol", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_validator_1.IsString)({ message: 'credentialsReference' }),
|
|
44
|
+
(0, class_validator_1.MaxLength)(255, { message: 'credentialsReference' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateHotspotConnectionValidator.prototype, "credentialsReference", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsObject)({ message: 'configuration' }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], CreateHotspotConnectionValidator.prototype, "configuration", void 0);
|
|
52
|
+
class UpdateHotspotConnectionValidator {
|
|
53
|
+
}
|
|
54
|
+
exports.UpdateHotspotConnectionValidator = UpdateHotspotConnectionValidator;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsString)({ message: 'adapterType' }),
|
|
58
|
+
(0, class_validator_1.IsIn)(IHotspotConnection_1.HOTSPOT_CONNECTION_ADAPTER_TYPES, { message: 'adapterType' }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], UpdateHotspotConnectionValidator.prototype, "adapterType", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsString)({ message: 'host' }),
|
|
64
|
+
(0, class_validator_1.MaxLength)(255, { message: 'host' }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UpdateHotspotConnectionValidator.prototype, "host", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsNumber)({}, { message: 'port' }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], UpdateHotspotConnectionValidator.prototype, "port", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsString)({ message: 'protocol' }),
|
|
75
|
+
(0, class_validator_1.IsIn)(IHotspotConnection_1.HOTSPOT_CONNECTION_PROTOCOLS, { message: 'protocol' }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], UpdateHotspotConnectionValidator.prototype, "protocol", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsString)({ message: 'credentialsReference' }),
|
|
81
|
+
(0, class_validator_1.MaxLength)(255, { message: 'credentialsReference' }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], UpdateHotspotConnectionValidator.prototype, "credentialsReference", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
|
86
|
+
(0, class_validator_1.IsObject)({ message: 'configuration' }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], UpdateHotspotConnectionValidator.prototype, "configuration", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
(0, class_validator_1.IsString)({ message: 'status' }),
|
|
92
|
+
(0, class_validator_1.IsIn)(IHotspotConnection_1.HOTSPOT_CONNECTION_STATUSES, { message: 'status' }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], UpdateHotspotConnectionValidator.prototype, "status", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_validator_1.IsOptional)(),
|
|
97
|
+
__metadata("design:type", Date)
|
|
98
|
+
], UpdateHotspotConnectionValidator.prototype, "lastConnectionAt", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_validator_1.IsString)({ message: 'lastError' }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], UpdateHotspotConnectionValidator.prototype, "lastError", void 0);
|
|
104
|
+
//# sourceMappingURL=HotspotConnectionValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotspotConnectionValidator.js","sourceRoot":"","sources":["../../../src/useCases/HotspotConnection/HotspotConnectionValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuG;AACvG,6DAM6B;AAE7B,MAAM,gCAAgC;CA4BrC;QA4CQ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
|
5
|
+
host: string;
|
|
6
|
+
port?: number;
|
|
7
|
+
protocol: string;
|
|
8
|
+
credentialsReference?: string;
|
|
9
|
+
configuration: object;
|
|
10
|
+
status: string;
|
|
11
|
+
lastConnectionAt?: Date;
|
|
12
|
+
lastError?: string;
|
|
13
|
+
creationDate?: Date;
|
|
14
|
+
lastUpdate?: Date;
|
|
15
|
+
}
|
|
16
|
+
export interface ICreateHotspotConnectionDTO {
|
|
17
|
+
applicationId?: string;
|
|
18
|
+
hotspotId?: string;
|
|
19
|
+
adapterType: string;
|
|
20
|
+
host: string;
|
|
21
|
+
port?: number;
|
|
22
|
+
protocol?: string;
|
|
23
|
+
credentialsReference?: string;
|
|
24
|
+
configuration?: object;
|
|
25
|
+
}
|
|
26
|
+
export interface IUpdateHotspotConnectionDTO {
|
|
27
|
+
adapterType?: string;
|
|
28
|
+
host?: string;
|
|
29
|
+
port?: number;
|
|
30
|
+
protocol?: string;
|
|
31
|
+
credentialsReference?: string;
|
|
32
|
+
configuration?: object;
|
|
33
|
+
status?: string;
|
|
34
|
+
lastConnectionAt?: Date;
|
|
35
|
+
lastError?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const HOTSPOT_CONNECTION_ADAPTER_TYPES: string[];
|
|
38
|
+
export declare const HOTSPOT_CONNECTION_PROTOCOLS: string[];
|
|
39
|
+
export declare const HOTSPOT_CONNECTION_STATUSES: string[];
|
|
40
|
+
//# sourceMappingURL=IHotspotConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHotspotConnection.d.ts","sourceRoot":"","sources":["../../../src/useCases/HotspotConnection/IHotspotConnection.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,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POT_CONNECTION_ADAPTER_TYPES = void 0;
|
|
4
|
+
exports.HOTSPOT_CONNECTION_ADAPTER_TYPES = ['mikrotik', 'unifi', 'omada', 'openwrt'];
|
|
5
|
+
exports.HOTSPOT_CONNECTION_PROTOCOLS = ['https', 'http', 'routeros'];
|
|
6
|
+
exports.HOTSPOT_CONNECTION_STATUSES = ['inactive', 'connected', 'error'];
|
|
7
|
+
//# sourceMappingURL=IHotspotConnection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHotspotConnection.js","sourceRoot":"","sources":["../../../src/useCases/HotspotConnection/IHotspotConnection.ts"],"names":[],"mappings":";;;AAuCa,QAAA,gCAAgC,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,CAAA;AAC5E,QAAA,4BAA4B,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,CAAA;AAC5D,QAAA,2BAA2B,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ICreateInvoiceDTO {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
subscriptionId: string;
|
|
4
|
+
amount: string;
|
|
5
|
+
dueDate: Date;
|
|
6
|
+
paidDate?: Date | null;
|
|
7
|
+
status?: string;
|
|
8
|
+
paymentMethod?: string | null;
|
|
9
|
+
metadata?: object;
|
|
10
|
+
}
|
|
11
|
+
declare class CreateInvoiceValidator implements ICreateInvoiceDTO {
|
|
12
|
+
applicationId: string;
|
|
13
|
+
subscriptionId: string;
|
|
14
|
+
amount: string;
|
|
15
|
+
dueDate: Date;
|
|
16
|
+
paidDate?: Date | null;
|
|
17
|
+
status?: string;
|
|
18
|
+
paymentMethod?: string | null;
|
|
19
|
+
metadata?: object;
|
|
20
|
+
}
|
|
21
|
+
export { CreateInvoiceValidator };
|
|
22
|
+
//# sourceMappingURL=InvoiceValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceValidator.d.ts","sourceRoot":"","sources":["../../../src/useCases/Invoice/InvoiceValidator.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,IAAI,CAAA;IACb,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,cAAM,sBAAuB,YAAW,iBAAiB;IAGvD,aAAa,EAAE,MAAM,CAAA;IAIrB,cAAc,EAAE,MAAM,CAAA;IAKtB,MAAM,EAAE,MAAM,CAAA;IAId,OAAO,EAAE,IAAI,CAAA;IAGb,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAItB,MAAM,CAAC,EAAE,MAAM,CAAA;IAKf,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAI7B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateInvoiceValidator = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreateInvoiceValidator {
|
|
15
|
+
}
|
|
16
|
+
exports.CreateInvoiceValidator = CreateInvoiceValidator;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'applicationId' }),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: 'applicationId' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateInvoiceValidator.prototype, "applicationId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'subscriptionId' }),
|
|
24
|
+
(0, class_validator_1.IsString)({ message: 'subscriptionId' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateInvoiceValidator.prototype, "subscriptionId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'amount' }),
|
|
29
|
+
(0, class_validator_1.IsString)({ message: 'amount' }),
|
|
30
|
+
(0, class_validator_1.Matches)(/^\d+(\.\d{1,2})?$/, { message: 'amount' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateInvoiceValidator.prototype, "amount", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'dueDate' }),
|
|
35
|
+
(0, class_validator_1.IsDateString)({}, { message: 'dueDate' }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], CreateInvoiceValidator.prototype, "dueDate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], CreateInvoiceValidator.prototype, "paidDate", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsIn)(['pending', 'paid', 'overdue', 'cancelled'], { message: 'status' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateInvoiceValidator.prototype, "status", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsString)({ message: 'paymentMethod' }),
|
|
50
|
+
(0, class_validator_1.MaxLength)(50, { message: 'paymentMethod' }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateInvoiceValidator.prototype, "paymentMethod", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsObject)(),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], CreateInvoiceValidator.prototype, "metadata", void 0);
|
|
58
|
+
//# sourceMappingURL=InvoiceValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvoiceValidator.js","sourceRoot":"","sources":["../../../src/useCases/Invoice/InvoiceValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoH;AAapH,MAAM,sBAAsB;CAiC3B;QAEQ,sBAAsB;AAhC7B;IAFC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IACxC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;;6DAClB;AAIrB;IAFC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IACzC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;;8DAClB;AAKtB;IAHC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IACjC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IAC/B,IAAA,yBAAO,EAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;sDACtC;AAId;IAFC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAClC,IAAA,8BAAY,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;8BAChC,IAAI;uDAAA;AAGb;IADC,IAAA,4BAAU,GAAE;8BACF,IAAI;wDAAO;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;sDAC1D;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IACtC,IAAA,2BAAS,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;;6DACf;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACM"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface ICreatePortalBrandingDTO {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
tenantId: string;
|
|
4
|
+
logoUrl?: string | null;
|
|
5
|
+
faviconUrl?: string | null;
|
|
6
|
+
primaryColor?: string | null;
|
|
7
|
+
secondaryColor?: string | null;
|
|
8
|
+
accentColor?: string | null;
|
|
9
|
+
textColor?: string | null;
|
|
10
|
+
backgroundUrl?: string | null;
|
|
11
|
+
backgroundType?: string;
|
|
12
|
+
cardBackground?: string | null;
|
|
13
|
+
cardBorderRadius?: number | null;
|
|
14
|
+
inputBackground?: string | null;
|
|
15
|
+
inputBorderColor?: string | null;
|
|
16
|
+
inputBorderRadius?: number | null;
|
|
17
|
+
buttonStartColor?: string | null;
|
|
18
|
+
buttonEndColor?: string | null;
|
|
19
|
+
buttonBorderRadius?: number | null;
|
|
20
|
+
overlayOpacity?: string | null;
|
|
21
|
+
gradientStart?: string | null;
|
|
22
|
+
gradientEnd?: string | null;
|
|
23
|
+
gradientDirection?: string | null;
|
|
24
|
+
fontFamily?: string | null;
|
|
25
|
+
customCss?: string | null;
|
|
26
|
+
}
|
|
27
|
+
declare class CreatePortalBrandingValidator implements ICreatePortalBrandingDTO {
|
|
28
|
+
applicationId: string;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
logoUrl?: string | null;
|
|
31
|
+
faviconUrl?: string | null;
|
|
32
|
+
primaryColor?: string | null;
|
|
33
|
+
secondaryColor?: string | null;
|
|
34
|
+
accentColor?: string | null;
|
|
35
|
+
textColor?: string | null;
|
|
36
|
+
backgroundUrl?: string | null;
|
|
37
|
+
backgroundType?: string;
|
|
38
|
+
cardBackground?: string | null;
|
|
39
|
+
cardBorderRadius?: number | null;
|
|
40
|
+
inputBackground?: string | null;
|
|
41
|
+
inputBorderColor?: string | null;
|
|
42
|
+
inputBorderRadius?: number | null;
|
|
43
|
+
buttonStartColor?: string | null;
|
|
44
|
+
buttonEndColor?: string | null;
|
|
45
|
+
buttonBorderRadius?: number | null;
|
|
46
|
+
overlayOpacity?: string | null;
|
|
47
|
+
gradientStart?: string | null;
|
|
48
|
+
gradientEnd?: string | null;
|
|
49
|
+
gradientDirection?: string | null;
|
|
50
|
+
fontFamily?: string | null;
|
|
51
|
+
customCss?: string | null;
|
|
52
|
+
}
|
|
53
|
+
export { CreatePortalBrandingValidator };
|
|
54
|
+
//# sourceMappingURL=PortalBrandingValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PortalBrandingValidator.d.ts","sourceRoot":"","sources":["../../../src/useCases/PortalBranding/PortalBrandingValidator.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,MAAM,CAAA;IACrB,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 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreatePortalBrandingValidator = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreatePortalBrandingValidator {
|
|
15
|
+
}
|
|
16
|
+
exports.CreatePortalBrandingValidator = CreatePortalBrandingValidator;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'applicationId' }),
|
|
19
|
+
(0, class_validator_1.IsString)({ message: 'applicationId' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreatePortalBrandingValidator.prototype, "applicationId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'tenantId' }),
|
|
24
|
+
(0, class_validator_1.IsString)({ message: 'tenantId' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreatePortalBrandingValidator.prototype, "tenantId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)({ message: 'logoUrl' }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreatePortalBrandingValidator.prototype, "logoUrl", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsString)({ message: 'faviconUrl' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreatePortalBrandingValidator.prototype, "faviconUrl", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)({ message: 'primaryColor' }),
|
|
40
|
+
(0, class_validator_1.MaxLength)(7, { message: 'primaryColor' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreatePortalBrandingValidator.prototype, "primaryColor", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)({ message: 'secondaryColor' }),
|
|
46
|
+
(0, class_validator_1.MaxLength)(7, { message: 'secondaryColor' }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreatePortalBrandingValidator.prototype, "secondaryColor", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)({ message: 'accentColor' }),
|
|
52
|
+
(0, class_validator_1.MaxLength)(7, { message: 'accentColor' }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], CreatePortalBrandingValidator.prototype, "accentColor", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsString)({ message: 'textColor' }),
|
|
58
|
+
(0, class_validator_1.MaxLength)(7, { message: 'textColor' }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], CreatePortalBrandingValidator.prototype, "textColor", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsString)({ message: 'backgroundUrl' }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CreatePortalBrandingValidator.prototype, "backgroundUrl", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsIn)(['color', 'image', 'gradient'], { message: 'backgroundType' }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CreatePortalBrandingValidator.prototype, "backgroundType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsString)({ message: 'cardBackground' }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], CreatePortalBrandingValidator.prototype, "cardBackground", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsNumber)({}, { message: 'cardBorderRadius' }),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], CreatePortalBrandingValidator.prototype, "cardBorderRadius", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsString)({ message: 'inputBackground' }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], CreatePortalBrandingValidator.prototype, "inputBackground", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.IsString)({ message: 'inputBorderColor' }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], CreatePortalBrandingValidator.prototype, "inputBorderColor", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.IsNumber)({}, { message: 'inputBorderRadius' }),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], CreatePortalBrandingValidator.prototype, "inputBorderRadius", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsString)({ message: 'buttonStartColor' }),
|
|
99
|
+
(0, class_validator_1.MaxLength)(7, { message: 'buttonStartColor' }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], CreatePortalBrandingValidator.prototype, "buttonStartColor", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_validator_1.IsOptional)(),
|
|
104
|
+
(0, class_validator_1.IsString)({ message: 'buttonEndColor' }),
|
|
105
|
+
(0, class_validator_1.MaxLength)(7, { message: 'buttonEndColor' }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], CreatePortalBrandingValidator.prototype, "buttonEndColor", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, class_validator_1.IsOptional)(),
|
|
110
|
+
(0, class_validator_1.IsNumber)({}, { message: 'buttonBorderRadius' }),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], CreatePortalBrandingValidator.prototype, "buttonBorderRadius", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, class_validator_1.IsOptional)(),
|
|
115
|
+
(0, class_validator_1.IsString)({ message: 'overlayOpacity' }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], CreatePortalBrandingValidator.prototype, "overlayOpacity", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, class_validator_1.IsOptional)(),
|
|
120
|
+
(0, class_validator_1.IsString)({ message: 'gradientStart' }),
|
|
121
|
+
(0, class_validator_1.MaxLength)(7, { message: 'gradientStart' }),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], CreatePortalBrandingValidator.prototype, "gradientStart", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
(0, class_validator_1.IsString)({ message: 'gradientEnd' }),
|
|
127
|
+
(0, class_validator_1.MaxLength)(7, { message: 'gradientEnd' }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], CreatePortalBrandingValidator.prototype, "gradientEnd", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, class_validator_1.IsOptional)(),
|
|
132
|
+
(0, class_validator_1.IsString)({ message: 'gradientDirection' }),
|
|
133
|
+
(0, class_validator_1.MaxLength)(20, { message: 'gradientDirection' }),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], CreatePortalBrandingValidator.prototype, "gradientDirection", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, class_validator_1.IsOptional)(),
|
|
138
|
+
(0, class_validator_1.IsString)({ message: 'fontFamily' }),
|
|
139
|
+
(0, class_validator_1.MaxLength)(100, { message: 'fontFamily' }),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], CreatePortalBrandingValidator.prototype, "fontFamily", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, class_validator_1.IsOptional)(),
|
|
144
|
+
(0, class_validator_1.IsString)({ message: 'customCss' }),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], CreatePortalBrandingValidator.prototype, "customCss", void 0);
|
|
147
|
+
//# sourceMappingURL=PortalBrandingValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PortalBrandingValidator.js","sourceRoot":"","sources":["../../../src/useCases/PortalBranding/PortalBrandingValidator.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AA6B7F,MAAM,6BAA6B;CA0GlC;QAEQ,6BAA6B;AAzGpC;IAFC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IACxC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;;oEAClB;AAIrB;IAFC,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACnC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;;+DAClB;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;;8DACV;AAIvB;IAFC,IAAA,4BAAU,GAAE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C,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;;kEACd;AAK3B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC1C,IAAA,2BAAS,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;;wEACf;AAKjC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;IACnC,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;;iEAChB;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;;gEACV"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export type PortalFlowStepStage = 'pre_auth' | 'post_auth';
|
|
2
|
+
export type PortalFlowStepType = 'ad_image' | 'ad_video' | 'ad_carousel' | 'login_form' | 'login_social' | 'login_voucher' | 'survey' | 'survey_rating' | 'survey_react' | 'redirect';
|
|
3
|
+
export declare const PORTAL_FLOW_STEP_STAGES: PortalFlowStepStage[];
|
|
4
|
+
export declare const PORTAL_FLOW_STEP_TYPES: PortalFlowStepType[];
|
|
5
|
+
export declare const PORTAL_FLOW_STEP_AUTHORIZING_TYPES: PortalFlowStepType[];
|
|
6
|
+
export interface ICreatePortalFlowStepDTO {
|
|
7
|
+
applicationId: string;
|
|
8
|
+
tenantId: string;
|
|
9
|
+
hotspotId?: string;
|
|
10
|
+
stage: PortalFlowStepStage;
|
|
11
|
+
type: PortalFlowStepType;
|
|
12
|
+
stepOrder?: number;
|
|
13
|
+
stepGroup?: string;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
skippable?: boolean;
|
|
17
|
+
skipAfterSeconds?: number;
|
|
18
|
+
durationSeconds?: number;
|
|
19
|
+
campaignId?: string;
|
|
20
|
+
templateId?: string;
|
|
21
|
+
config?: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface IUpdatePortalFlowStepDTO {
|
|
26
|
+
hotspotId?: string;
|
|
27
|
+
stage?: PortalFlowStepStage;
|
|
28
|
+
type?: PortalFlowStepType;
|
|
29
|
+
stepOrder?: number;
|
|
30
|
+
stepGroup?: string;
|
|
31
|
+
active?: boolean;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
skippable?: boolean;
|
|
34
|
+
skipAfterSeconds?: number;
|
|
35
|
+
durationSeconds?: number;
|
|
36
|
+
campaignId?: string;
|
|
37
|
+
templateId?: string;
|
|
38
|
+
config?: {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
declare class CreatePortalFlowStepValidator implements ICreatePortalFlowStepDTO {
|
|
43
|
+
applicationId: string;
|
|
44
|
+
tenantId: string;
|
|
45
|
+
hotspotId?: string;
|
|
46
|
+
stage: PortalFlowStepStage;
|
|
47
|
+
type: PortalFlowStepType;
|
|
48
|
+
stepOrder?: number;
|
|
49
|
+
stepGroup?: string;
|
|
50
|
+
active?: boolean;
|
|
51
|
+
required?: boolean;
|
|
52
|
+
skippable?: boolean;
|
|
53
|
+
skipAfterSeconds?: number;
|
|
54
|
+
durationSeconds?: number;
|
|
55
|
+
campaignId?: string;
|
|
56
|
+
templateId?: string;
|
|
57
|
+
config?: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
declare class UpdatePortalFlowStepValidator implements IUpdatePortalFlowStepDTO {
|
|
62
|
+
hotspotId?: string;
|
|
63
|
+
stage?: PortalFlowStepStage;
|
|
64
|
+
type?: PortalFlowStepType;
|
|
65
|
+
stepOrder?: number;
|
|
66
|
+
stepGroup?: string;
|
|
67
|
+
active?: boolean;
|
|
68
|
+
required?: boolean;
|
|
69
|
+
skippable?: boolean;
|
|
70
|
+
skipAfterSeconds?: number;
|
|
71
|
+
durationSeconds?: number;
|
|
72
|
+
campaignId?: string;
|
|
73
|
+
templateId?: string;
|
|
74
|
+
config?: {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export { CreatePortalFlowStepValidator, UpdatePortalFlowStepValidator };
|
|
79
|
+
//# sourceMappingURL=PortalFlowStepValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PortalFlowStepValidator.d.ts","sourceRoot":"","sources":["../../../src/useCases/PortalFlowStep/PortalFlowStepValidator.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,WAAW,CAAA;AAE1D,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,UAAU,GACV,aAAa,GACb,YAAY,GACZ,cAAc,GACd,eAAe,GACf,QAAQ,GACR,eAAe,GACf,cAAc,GACd,UAAU,CAAA;AAEd,eAAO,MAAM,uBAAuB,EAAE,mBAAmB,EAA8B,CAAA;AAEvF,eAAO,MAAM,sBAAsB,EAAE,kBAAkB,EAWtD,CAAA;AAGD,eAAO,MAAM,kCAAkC,EAAE,kBAAkB,EAAoD,CAAA;AAEvH,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,mBAAmB,CAAA;IAC1B,IAAI,EAAE,kBAAkB,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,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