@escapenavigator/types 2.1.16 → 2.1.17

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.
@@ -0,0 +1,5 @@
1
+ export declare class WixConnectDto {
2
+ instance: string;
3
+ email: string;
4
+ password: string;
5
+ }
@@ -0,0 +1,34 @@
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.WixConnectDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class WixConnectDto {
16
+ }
17
+ exports.WixConnectDto = WixConnectDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], WixConnectDto.prototype, "instance", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsEmail)(),
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
28
+ __metadata("design:type", String)
29
+ ], WixConnectDto.prototype, "email", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], WixConnectDto.prototype, "password", void 0);
@@ -0,0 +1,6 @@
1
+ export declare class WixInstanceQueryDto {
2
+ instance: string;
3
+ }
4
+ export declare class WixWidgetConfigQueryDto {
5
+ instanceId: string;
6
+ }
@@ -0,0 +1,32 @@
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.WixWidgetConfigQueryDto = exports.WixInstanceQueryDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class WixInstanceQueryDto {
16
+ }
17
+ exports.WixInstanceQueryDto = WixInstanceQueryDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], WixInstanceQueryDto.prototype, "instance", void 0);
24
+ class WixWidgetConfigQueryDto {
25
+ }
26
+ exports.WixWidgetConfigQueryDto = WixWidgetConfigQueryDto;
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], WixWidgetConfigQueryDto.prototype, "instanceId", void 0);
@@ -0,0 +1,4 @@
1
+ export declare class WixSelectWidgetDto {
2
+ instance: string;
3
+ widgetUuid: string;
4
+ }
@@ -0,0 +1,30 @@
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.WixSelectWidgetDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class WixSelectWidgetDto {
16
+ }
17
+ exports.WixSelectWidgetDto = WixSelectWidgetDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], WixSelectWidgetDto.prototype, "instance", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ (0, class_transformer_1.Expose)(),
28
+ (0, class_transformer_1.Transform)(({ value }) => `${value || ''}`.trim()),
29
+ __metadata("design:type", String)
30
+ ], WixSelectWidgetDto.prototype, "widgetUuid", void 0);
@@ -0,0 +1,8 @@
1
+ import { WixWidgetOptionRO } from './wix-widget-option.ro';
2
+ export type WixSessionRO = {
3
+ instanceId: string;
4
+ connected: boolean;
5
+ profileTitle?: string;
6
+ widgets: WixWidgetOptionRO[];
7
+ selectedWidgetUuid?: string | null;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { WidgetTypeEnum } from '../widget/enum/widget-type.enum';
2
+ export type WixWidgetConfigRO = {
3
+ widgetUuid: string | null;
4
+ type?: WidgetTypeEnum;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { WidgetTypeEnum } from '../widget/enum/widget-type.enum';
2
+ export type WixWidgetOptionRO = {
3
+ uuid: string;
4
+ type: WidgetTypeEnum;
5
+ url: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/types",
3
- "version": "2.1.16",
3
+ "version": "2.1.17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,7 +23,7 @@
23
23
  "reflect-metadata": "^0.1.13",
24
24
  "rxjs": "^7.5.5"
25
25
  },
26
- "gitHead": "652b54103811e11143cc5a3ed93ce813ed38f22b",
26
+ "gitHead": "7631d0cb80dab71cb8aa84ca78b631568c9f1cc1",
27
27
  "devDependencies": {
28
28
  "@types/validator": "13.0.0",
29
29
  "typescript": "^5.6"