merchi_sdk_ts 1.28.0 → 1.29.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/domain.js +10 -0
- package/package.json +1 -1
- package/src/entities/domain.ts +23 -0
package/dist/entities/domain.js
CHANGED
|
@@ -56,6 +56,12 @@ import { User } from './user.js';
|
|
|
56
56
|
import { DomainChatSettings } from './domain_chat_settings.js';
|
|
57
57
|
import { Theme } from './theme.js';
|
|
58
58
|
import { DomainType } from '../constants/domain_types.js';
|
|
59
|
+
// Sentinel for passthrough JSON columns. Must not be `Object` (decorator rejects it).
|
|
60
|
+
var jsonPropertyType = /** @class */ (function () {
|
|
61
|
+
function jsonPropertyType() {
|
|
62
|
+
}
|
|
63
|
+
return jsonPropertyType;
|
|
64
|
+
}());
|
|
59
65
|
var Domain = /** @class */ (function (_super) {
|
|
60
66
|
__extends(Domain, _super);
|
|
61
67
|
function Domain() {
|
|
@@ -325,6 +331,10 @@ var Domain = /** @class */ (function (_super) {
|
|
|
325
331
|
Domain.property(),
|
|
326
332
|
__metadata("design:type", Boolean)
|
|
327
333
|
], Domain.prototype, "assignToAgent", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
Domain.property({ type: jsonPropertyType }),
|
|
336
|
+
__metadata("design:type", Object)
|
|
337
|
+
], Domain.prototype, "jobAgentPolicy", void 0);
|
|
328
338
|
__decorate([
|
|
329
339
|
Domain.property({ type: User }),
|
|
330
340
|
__metadata("design:type", Object)
|
package/package.json
CHANGED
package/src/entities/domain.ts
CHANGED
|
@@ -23,6 +23,9 @@ import { DomainChatSettings } from './domain_chat_settings.js';
|
|
|
23
23
|
import { Theme } from './theme.js';
|
|
24
24
|
import { DomainType } from '../constants/domain_types.js';
|
|
25
25
|
import { ShipmentMethod } from './shipment_method.js';
|
|
26
|
+
|
|
27
|
+
// Sentinel for passthrough JSON columns. Must not be `Object` (decorator rejects it).
|
|
28
|
+
const jsonPropertyType = class {};
|
|
26
29
|
import { RequestOptions } from '../request.js';
|
|
27
30
|
|
|
28
31
|
export type StorefrontChangeRequestStatus =
|
|
@@ -488,6 +491,26 @@ export class Domain extends Entity {
|
|
|
488
491
|
@Domain.property()
|
|
489
492
|
public assignToAgent?: boolean;
|
|
490
493
|
|
|
494
|
+
@Domain.property({type: jsonPropertyType})
|
|
495
|
+
public jobAgentPolicy?: {
|
|
496
|
+
toneInstructions?: string;
|
|
497
|
+
outreach?: {
|
|
498
|
+
clientMessaging?: 'auto' | 'team_draft_only';
|
|
499
|
+
sendEmail?: boolean;
|
|
500
|
+
sendSms?: boolean;
|
|
501
|
+
proactiveChase?: boolean;
|
|
502
|
+
};
|
|
503
|
+
playbooks?: {
|
|
504
|
+
deadlineAsk?: boolean;
|
|
505
|
+
emailIntake?: boolean;
|
|
506
|
+
drafting?: boolean;
|
|
507
|
+
designerAssign?: boolean;
|
|
508
|
+
productionTender?: boolean;
|
|
509
|
+
shipment?: boolean;
|
|
510
|
+
invoice?: boolean;
|
|
511
|
+
};
|
|
512
|
+
} | null;
|
|
513
|
+
|
|
491
514
|
@Domain.property({ type: User })
|
|
492
515
|
public merchiAgentUser?: User | null;
|
|
493
516
|
|