@escapenavigator/types 1.10.161 → 1.10.162
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/client/client.ro.d.ts +6 -0
- package/dist/client/client.ro.js +18 -0
- package/dist/client/query-client.dto.d.ts +1 -1
- package/dist/emails/index.d.ts +2 -0
- package/dist/openapi/widget/openapi-widget-info.ro.d.ts +2 -0
- package/dist/openapi/widget/openapi-widget-info.ro.js +5 -0
- package/dist/profile/marketing-automation/marketing-automation-config.dto.d.ts +7 -0
- package/dist/profile/marketing-automation/marketing-automation-config.dto.js +6 -0
- package/dist/questroom/create-questroom.dto.d.ts +1 -0
- package/dist/questroom/create-questroom.dto.js +8 -0
- package/dist/questroom/questroom.ro.d.ts +1 -0
- package/dist/questroom/questroom.ro.js +4 -0
- package/dist/statistics/pnl.d.ts +13 -0
- package/dist/statistics/pnl.js +5 -0
- package/dist/statistics/surveys.d.ts +148 -0
- package/dist/statistics/surveys.js +60 -0
- package/dist/survey/enums/marketing-audience-status.enum.d.ts +8 -0
- package/dist/survey/enums/marketing-audience-status.enum.js +13 -0
- package/dist/survey/enums/nps-status.enum.d.ts +12 -0
- package/dist/survey/enums/nps-status.enum.js +23 -0
- package/dist/survey/enums/survey-channel.enum.d.ts +5 -0
- package/dist/survey/enums/survey-channel.enum.js +9 -0
- package/dist/survey/enums/survey-completed-by.enum.d.ts +4 -0
- package/dist/survey/enums/survey-completed-by.enum.js +8 -0
- package/dist/survey/enums/survey-final-scenario.enum.d.ts +5 -0
- package/dist/survey/enums/survey-final-scenario.enum.js +9 -0
- package/dist/survey/enums/survey-question-type.enum.d.ts +9 -0
- package/dist/survey/enums/survey-question-type.enum.js +13 -0
- package/dist/survey/enums/survey-score-role.enum.d.ts +11 -0
- package/dist/survey/enums/survey-score-role.enum.js +15 -0
- package/dist/survey/enums/survey-status.enum.d.ts +5 -0
- package/dist/survey/enums/survey-status.enum.js +9 -0
- package/dist/survey/enums/survey-type.enum.d.ts +4 -0
- package/dist/survey/enums/survey-type.enum.js +8 -0
- package/dist/survey/mint-survey-link.dto.d.ts +6 -0
- package/dist/survey/mint-survey-link.dto.js +29 -0
- package/dist/survey/operator-submit-survey.dto.d.ts +11 -0
- package/dist/survey/operator-submit-survey.dto.js +40 -0
- package/dist/survey/order-survey-to-fill.ro.d.ts +65 -0
- package/dist/survey/order-survey-to-fill.ro.js +173 -0
- package/dist/survey/submit-survey.dto.d.ts +15 -0
- package/dist/survey/submit-survey.dto.js +40 -0
- package/dist/survey/survey-answer.type.d.ts +33 -0
- package/dist/survey/survey-answer.type.js +2 -0
- package/dist/survey/survey-final-screen.type.d.ts +45 -0
- package/dist/survey/survey-final-screen.type.js +2 -0
- package/dist/survey/survey-link.ro.d.ts +4 -0
- package/dist/survey/survey-link.ro.js +24 -0
- package/dist/survey/survey-order-summary.ro.d.ts +20 -0
- package/dist/survey/survey-order-summary.ro.js +50 -0
- package/dist/survey/survey-question.type.d.ts +91 -0
- package/dist/survey/survey-question.type.js +2 -0
- package/dist/survey/survey-response.ro.d.ts +32 -0
- package/dist/survey/survey-response.ro.js +110 -0
- package/dist/survey/survey-template-defaults.ro.d.ts +17 -0
- package/dist/survey/survey-template-defaults.ro.js +46 -0
- package/dist/survey/survey-template.ro.d.ts +17 -0
- package/dist/survey/survey-template.ro.js +57 -0
- package/dist/survey/update-survey-template.dto.d.ts +26 -0
- package/dist/survey/update-survey-template.dto.js +64 -0
- package/dist/translation/delete-orphaned-translations.dto.d.ts +4 -0
- package/dist/translation/delete-orphaned-translations.dto.js +23 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget/create-widget.dto.d.ts +2 -0
- package/dist/widget/create-widget.dto.js +8 -0
- package/dist/widget/enum/widget-consent-mode.enum.d.ts +15 -0
- package/dist/widget/enum/widget-consent-mode.enum.js +19 -0
- package/dist/widget/widget.ro.d.ts +2 -0
- package/dist/widget-chat/widget-chat-init.ro.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WidgetConsentModeEnum } from './enum/widget-consent-mode.enum';
|
|
1
2
|
import { WidgetTypeEnum } from './enum/widget-type.enum';
|
|
2
3
|
export declare class CreateWidgetDto {
|
|
3
4
|
type: WidgetTypeEnum;
|
|
@@ -10,6 +11,7 @@ export declare class CreateWidgetDto {
|
|
|
10
11
|
fbPixelId?: string;
|
|
11
12
|
gaCoversationId?: string;
|
|
12
13
|
gaCoversationLabel?: string;
|
|
14
|
+
consentMode?: WidgetConsentModeEnum;
|
|
13
15
|
daysAhead?: number;
|
|
14
16
|
buttonTooltipText?: string;
|
|
15
17
|
showOtherQuests?: boolean;
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateWidgetDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const widget_consent_mode_enum_1 = require("./enum/widget-consent-mode.enum");
|
|
15
16
|
const widget_type_enum_1 = require("./enum/widget-type.enum");
|
|
16
17
|
class CreateWidgetDto {
|
|
17
18
|
}
|
|
@@ -81,6 +82,13 @@ __decorate([
|
|
|
81
82
|
(0, class_transformer_1.Expose)(),
|
|
82
83
|
__metadata("design:type", String)
|
|
83
84
|
], CreateWidgetDto.prototype, "gaCoversationLabel", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsOptional)(),
|
|
87
|
+
(0, class_validator_1.IsEnum)(widget_consent_mode_enum_1.WidgetConsentModeEnum),
|
|
88
|
+
(0, class_transformer_1.Transform)(({ value }) => value || widget_consent_mode_enum_1.WidgetConsentModeEnum.OFF),
|
|
89
|
+
(0, class_transformer_1.Expose)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], CreateWidgetDto.prototype, "consentMode", void 0);
|
|
84
92
|
__decorate([
|
|
85
93
|
(0, class_validator_1.IsOptional)(),
|
|
86
94
|
(0, class_validator_1.IsInt)(),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Когда виджету разрешено поднимать GA4 / Google Ads / FB Pixel
|
|
3
|
+
* относительно cookie-баннера на сайте компании.
|
|
4
|
+
*
|
|
5
|
+
* - OFF — инициализировать метрики сразу (поведение по умолчанию,
|
|
6
|
+
* как было до фичи cookie-consent).
|
|
7
|
+
* - BLOCK — ждать явный сигнал согласия; пока его нет — ничего не слать.
|
|
8
|
+
* - TIMEOUT — ждать сигнал, но если за таймаут баннер не отозвался,
|
|
9
|
+
* включить ТОЛЬКО аналитику (рекламные пиксели остаются off).
|
|
10
|
+
*/
|
|
11
|
+
export declare enum WidgetConsentModeEnum {
|
|
12
|
+
OFF = "off",
|
|
13
|
+
BLOCK = "block",
|
|
14
|
+
TIMEOUT = "timeout"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WidgetConsentModeEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Когда виджету разрешено поднимать GA4 / Google Ads / FB Pixel
|
|
6
|
+
* относительно cookie-баннера на сайте компании.
|
|
7
|
+
*
|
|
8
|
+
* - OFF — инициализировать метрики сразу (поведение по умолчанию,
|
|
9
|
+
* как было до фичи cookie-consent).
|
|
10
|
+
* - BLOCK — ждать явный сигнал согласия; пока его нет — ничего не слать.
|
|
11
|
+
* - TIMEOUT — ждать сигнал, но если за таймаут баннер не отозвался,
|
|
12
|
+
* включить ТОЛЬКО аналитику (рекламные пиксели остаются off).
|
|
13
|
+
*/
|
|
14
|
+
var WidgetConsentModeEnum;
|
|
15
|
+
(function (WidgetConsentModeEnum) {
|
|
16
|
+
WidgetConsentModeEnum["OFF"] = "off";
|
|
17
|
+
WidgetConsentModeEnum["BLOCK"] = "block";
|
|
18
|
+
WidgetConsentModeEnum["TIMEOUT"] = "timeout";
|
|
19
|
+
})(WidgetConsentModeEnum || (exports.WidgetConsentModeEnum = WidgetConsentModeEnum = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WidgetConsentModeEnum } from './enum/widget-consent-mode.enum';
|
|
1
2
|
import { WidgetTypeEnum } from './enum/widget-type.enum';
|
|
2
3
|
export type WidgetRO = {
|
|
3
4
|
id: number;
|
|
@@ -8,6 +9,7 @@ export type WidgetRO = {
|
|
|
8
9
|
ga4Id: string;
|
|
9
10
|
gaCoversationId: string;
|
|
10
11
|
gaCoversationLabel: string;
|
|
12
|
+
consentMode?: WidgetConsentModeEnum;
|
|
11
13
|
allLocations?: boolean;
|
|
12
14
|
locations: Array<{
|
|
13
15
|
id: number;
|
|
@@ -7,7 +7,7 @@ export type WidgetChatStarterChipRO = {
|
|
|
7
7
|
};
|
|
8
8
|
export type WidgetChatInitRO = {
|
|
9
9
|
visitorToken: string;
|
|
10
|
-
conversation: WidgetChatConversationRO;
|
|
10
|
+
conversation: WidgetChatConversationRO | null;
|
|
11
11
|
messages: WidgetChatMessageRO[];
|
|
12
12
|
starterChips?: WidgetChatStarterChipRO[];
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.162",
|
|
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": "
|
|
26
|
+
"gitHead": "ee9112d85c9f99ce5f1bf2c4000e26112a2571ae",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/validator": "13.0.0",
|
|
29
29
|
"typescript": "^5.6"
|