merchi_sdk_ts 1.15.0 → 1.17.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/dist/entities/agent_conversation.js +8 -0
- package/dist/entities/domain.js +9 -0
- package/dist/entities/job.js +12 -0
- package/dist/entities/product.js +4 -0
- package/dist/entities/user.js +4 -0
- package/package.json +1 -1
- package/src/entities/agent_conversation.ts +6 -0
- package/src/entities/domain.ts +6 -0
- package/src/entities/job.ts +9 -0
- package/src/entities/product.ts +3 -0
- package/src/entities/user.ts +3 -0
|
@@ -53,6 +53,14 @@ var AgentConversation = /** @class */ (function (_super) {
|
|
|
53
53
|
AgentConversation.property({ type: Date }),
|
|
54
54
|
__metadata("design:type", Object)
|
|
55
55
|
], AgentConversation.prototype, "creationDate", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
AgentConversation.property(),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], AgentConversation.prototype, "entityType", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
AgentConversation.property(),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], AgentConversation.prototype, "entityId", void 0);
|
|
56
64
|
__decorate([
|
|
57
65
|
AgentConversation.property(),
|
|
58
66
|
__metadata("design:type", Number)
|
package/dist/entities/domain.js
CHANGED
|
@@ -52,6 +52,7 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
52
52
|
import { Company } from './company.js';
|
|
53
53
|
import { Entity } from '../entity.js';
|
|
54
54
|
import { MerchiFile } from './file.js';
|
|
55
|
+
import { User } from './user.js';
|
|
55
56
|
import { DomainChatSettings } from './domain_chat_settings.js';
|
|
56
57
|
import { Theme } from './theme.js';
|
|
57
58
|
import { DomainType } from '../constants/domain_types.js';
|
|
@@ -288,6 +289,14 @@ var Domain = /** @class */ (function (_super) {
|
|
|
288
289
|
Domain.property(),
|
|
289
290
|
__metadata("design:type", Boolean)
|
|
290
291
|
], Domain.prototype, "enableNotifications", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
Domain.property(),
|
|
294
|
+
__metadata("design:type", Boolean)
|
|
295
|
+
], Domain.prototype, "assignToAgent", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
Domain.property({ type: User }),
|
|
298
|
+
__metadata("design:type", Object)
|
|
299
|
+
], Domain.prototype, "merchiAgentUser", void 0);
|
|
291
300
|
__decorate([
|
|
292
301
|
Domain.property({ type: String }),
|
|
293
302
|
__metadata("design:type", Object)
|
package/dist/entities/job.js
CHANGED
|
@@ -142,6 +142,18 @@ var Job = /** @class */ (function (_super) {
|
|
|
142
142
|
Job.property(),
|
|
143
143
|
__metadata("design:type", Boolean)
|
|
144
144
|
], Job.prototype, "needsDrafting", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
Job.property(),
|
|
147
|
+
__metadata("design:type", Boolean)
|
|
148
|
+
], Job.prototype, "assignToAgent", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
Job.property({ type: Date }),
|
|
151
|
+
__metadata("design:type", Object)
|
|
152
|
+
], Job.prototype, "agentLastRunAt", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
Job.property({ type: Date }),
|
|
155
|
+
__metadata("design:type", Object)
|
|
156
|
+
], Job.prototype, "agentNextCheckAt", void 0);
|
|
145
157
|
__decorate([
|
|
146
158
|
Job.property(),
|
|
147
159
|
__metadata("design:type", Boolean)
|
package/dist/entities/product.js
CHANGED
|
@@ -195,6 +195,10 @@ var Product = /** @class */ (function (_super) {
|
|
|
195
195
|
Component.property({ type: 'User' }),
|
|
196
196
|
__metadata("design:type", Object)
|
|
197
197
|
], Product.prototype, "createdBy", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
Component.property({ type: 'User' }),
|
|
200
|
+
__metadata("design:type", Object)
|
|
201
|
+
], Product.prototype, "designer", void 0);
|
|
198
202
|
__decorate([
|
|
199
203
|
Component.property({ type: 'User' }),
|
|
200
204
|
__metadata("design:type", Object)
|
package/dist/entities/user.js
CHANGED
|
@@ -183,6 +183,10 @@ var User = /** @class */ (function (_super) {
|
|
|
183
183
|
User.property(),
|
|
184
184
|
__metadata("design:type", Boolean)
|
|
185
185
|
], User.prototype, "registeredAsGuest", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
User.property(),
|
|
188
|
+
__metadata("design:type", Boolean)
|
|
189
|
+
], User.prototype, "isMerchiAgent", void 0);
|
|
186
190
|
__decorate([
|
|
187
191
|
User.property({ arrayType: 'InternalTag' }),
|
|
188
192
|
__metadata("design:type", Array)
|
package/package.json
CHANGED
|
@@ -22,6 +22,12 @@ export class AgentConversation extends Entity {
|
|
|
22
22
|
@AgentConversation.property({type: Date})
|
|
23
23
|
public creationDate?: Date | null;
|
|
24
24
|
|
|
25
|
+
@AgentConversation.property()
|
|
26
|
+
public entityType?: string | null;
|
|
27
|
+
|
|
28
|
+
@AgentConversation.property()
|
|
29
|
+
public entityId?: number | null;
|
|
30
|
+
|
|
25
31
|
@AgentConversation.property()
|
|
26
32
|
public serviceProvider?: number;
|
|
27
33
|
|
package/src/entities/domain.ts
CHANGED
|
@@ -478,6 +478,12 @@ export class Domain extends Entity {
|
|
|
478
478
|
@Domain.property()
|
|
479
479
|
public enableNotifications?: boolean;
|
|
480
480
|
|
|
481
|
+
@Domain.property()
|
|
482
|
+
public assignToAgent?: boolean;
|
|
483
|
+
|
|
484
|
+
@Domain.property({ type: User })
|
|
485
|
+
public merchiAgentUser?: User | null;
|
|
486
|
+
|
|
481
487
|
@Domain.property({type: String})
|
|
482
488
|
public trackingCodeGoogleConversion?: string | null;
|
|
483
489
|
|
package/src/entities/job.ts
CHANGED
|
@@ -75,6 +75,15 @@ export class Job extends Entity {
|
|
|
75
75
|
@Job.property()
|
|
76
76
|
public needsDrafting?: boolean;
|
|
77
77
|
|
|
78
|
+
@Job.property()
|
|
79
|
+
public assignToAgent?: boolean;
|
|
80
|
+
|
|
81
|
+
@Job.property({ type: Date })
|
|
82
|
+
public agentLastRunAt?: Date | null;
|
|
83
|
+
|
|
84
|
+
@Job.property({ type: Date })
|
|
85
|
+
public agentNextCheckAt?: Date | null;
|
|
86
|
+
|
|
78
87
|
@Job.property()
|
|
79
88
|
public needsGroupBuy?: boolean;
|
|
80
89
|
|
package/src/entities/product.ts
CHANGED
|
@@ -46,6 +46,9 @@ export class Product extends Entity {
|
|
|
46
46
|
@Component.property({type: 'User'})
|
|
47
47
|
public createdBy?: User | null;
|
|
48
48
|
|
|
49
|
+
@Component.property({type: 'User'})
|
|
50
|
+
public designer?: User | null;
|
|
51
|
+
|
|
49
52
|
@Component.property({type: 'User'})
|
|
50
53
|
public updatedBy?: User | null;
|
|
51
54
|
|
package/src/entities/user.ts
CHANGED