@escapenavigator/types 2.1.15 → 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.
@@ -3,7 +3,7 @@ export declare class EmailCommentRO {
3
3
  adminId: number;
4
4
  adminName: string;
5
5
  text: string;
6
- createdAt: Date;
6
+ createdAt: string;
7
7
  }
8
8
  export declare class EmailAssigneeOptionRO {
9
9
  id: number;
@@ -32,7 +32,7 @@ __decorate([
32
32
  ], EmailCommentRO.prototype, "text", void 0);
33
33
  __decorate([
34
34
  (0, class_transformer_1.Expose)(),
35
- __metadata("design:type", Date)
35
+ __metadata("design:type", String)
36
36
  ], EmailCommentRO.prototype, "createdAt", void 0);
37
37
  class EmailAssigneeOptionRO {
38
38
  }
@@ -38,11 +38,24 @@ export declare enum CrmIntegrationActionEnum {
38
38
  /** Написать нам: без человека не разобраться. */
39
39
  CONTACT_SUPPORT = "contact_support"
40
40
  }
41
+ /** Квест, к которому привязано поквестовое подключение. */
42
+ export type CrmIntegrationQuestroom = {
43
+ id: number;
44
+ title: string;
45
+ photo: string;
46
+ };
41
47
  export type CrmIntegrationStatus = {
42
48
  connectionId: number | null;
43
49
  providerCode: IntegrationProviderCodeEnum | null;
44
50
  /** Название системы так, как её называет сам квест. */
45
51
  providerTitle: string;
52
+ /**
53
+ * `resource` — доступ на один квест (МойЭРП и подобные). Карточка тогда
54
+ * про квест, а не про систему. `account` — один ключ на весь аккаунт.
55
+ */
56
+ connectionScope: 'account' | 'resource';
57
+ /** Заполнен, когда подключение поквестовое и квест уже известен. */
58
+ questroom: CrmIntegrationQuestroom | null;
46
59
  state: CrmIntegrationStateEnum;
47
60
  /** Одна строка, которую видно в списке. Без технических терминов. */
48
61
  headline: string;