merchi_sdk_ts 1.3.2-c → 1.3.2-e

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.
@@ -77,6 +77,10 @@ var DomainChatSettings = /** @class */ (function (_super) {
77
77
  DomainChatSettings.property(),
78
78
  __metadata("design:type", Boolean)
79
79
  ], DomainChatSettings.prototype, "notifyEmailNewMessage", void 0);
80
+ __decorate([
81
+ DomainChatSettings.property(),
82
+ __metadata("design:type", Boolean)
83
+ ], DomainChatSettings.prototype, "requireGuestContact", void 0);
80
84
  return DomainChatSettings;
81
85
  }(Entity));
82
86
  export { DomainChatSettings };
@@ -45,14 +45,30 @@ var SupportConversation = /** @class */ (function (_super) {
45
45
  SupportConversation.property({ type: Date }),
46
46
  __metadata("design:type", Object)
47
47
  ], SupportConversation.prototype, "lastMessageAt", void 0);
48
+ __decorate([
49
+ SupportConversation.property({ type: Date }),
50
+ __metadata("design:type", Object)
51
+ ], SupportConversation.prototype, "archivedAt", void 0);
48
52
  __decorate([
49
53
  SupportConversation.property({ type: Domain }),
50
54
  __metadata("design:type", Domain)
51
55
  ], SupportConversation.prototype, "domain", void 0);
56
+ __decorate([
57
+ SupportConversation.property({ arrayType: 'DomainTag' }),
58
+ __metadata("design:type", Array)
59
+ ], SupportConversation.prototype, "tags", void 0);
52
60
  __decorate([
53
61
  SupportConversation.property({ type: String }),
54
62
  __metadata("design:type", Object)
55
63
  ], SupportConversation.prototype, "guestId", void 0);
64
+ __decorate([
65
+ SupportConversation.property({ type: String }),
66
+ __metadata("design:type", Object)
67
+ ], SupportConversation.prototype, "guestContactEmail", void 0);
68
+ __decorate([
69
+ SupportConversation.property({ type: String }),
70
+ __metadata("design:type", Object)
71
+ ], SupportConversation.prototype, "guestContactName", void 0);
56
72
  __decorate([
57
73
  SupportConversation.property({ type: String }),
58
74
  __metadata("design:type", Object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_ts",
3
- "version": "1.3.2-c",
3
+ "version": "1.3.2-e",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
@@ -39,4 +39,7 @@ export class DomainChatSettings extends Entity {
39
39
 
40
40
  @DomainChatSettings.property()
41
41
  public notifyEmailNewMessage?: boolean;
42
+
43
+ @DomainChatSettings.property()
44
+ public requireGuestContact?: boolean;
42
45
  }
@@ -1,4 +1,5 @@
1
1
  import { Domain } from './domain.js';
2
+ import { DomainTag } from './domain_tag.js';
2
3
  import { Entity } from '../entity.js';
3
4
  import { User } from './user.js';
4
5
  import { SupportMessage } from './support_message.js';
@@ -17,12 +18,24 @@ export class SupportConversation extends Entity {
17
18
  @SupportConversation.property({ type: Date })
18
19
  public lastMessageAt?: Date | null;
19
20
 
21
+ @SupportConversation.property({ type: Date })
22
+ public archivedAt?: Date | null;
23
+
20
24
  @SupportConversation.property({ type: Domain })
21
25
  public domain?: Domain;
22
26
 
27
+ @SupportConversation.property({ arrayType: 'DomainTag' })
28
+ public tags?: DomainTag[];
29
+
23
30
  @SupportConversation.property({ type: String })
24
31
  public guestId?: string | null;
25
32
 
33
+ @SupportConversation.property({ type: String })
34
+ public guestContactEmail?: string | null;
35
+
36
+ @SupportConversation.property({ type: String })
37
+ public guestContactName?: string | null;
38
+
26
39
  /** Opaque client fingerprint for repeat-visitor / spam correlation (max 512 chars). */
27
40
  @SupportConversation.property({ type: String })
28
41
  public clientFingerprint?: string | null;