merchi_sdk_ts 1.28.0 → 1.30.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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_ts",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
@@ -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 =
@@ -115,6 +118,20 @@ export interface StorefrontGoogleIntegrations {
115
118
  googleAdsQuoteConversionLabel?: string;
116
119
  }
117
120
 
121
+ export type StorefrontV2InfrastructureMode = 'platform' | 'byo';
122
+
123
+ /** Public BYO connection status (never includes encrypted tokens). */
124
+ export interface StorefrontV2ByoStatus {
125
+ infrastructureMode: StorefrontV2InfrastructureMode;
126
+ githubAppConfigured: boolean;
127
+ vercelOauthConfigured: boolean;
128
+ githubConnected: boolean;
129
+ vercelConnected: boolean;
130
+ githubAccountLogin?: string | null;
131
+ githubInstallationId?: string | null;
132
+ vercelTeamId?: string | null;
133
+ }
134
+
118
135
  export interface StorefrontV2Config {
119
136
  id?: number;
120
137
  domainId?: number;
@@ -129,6 +146,11 @@ export interface StorefrontV2Config {
129
146
  repoOwner?: string | null;
130
147
  repoName?: string | null;
131
148
  vercelProjectId?: string | null;
149
+ vercelTeamId?: string | null;
150
+ infrastructureMode?: StorefrontV2InfrastructureMode | string | null;
151
+ githubInstallationId?: string | null;
152
+ githubAccountLogin?: string | null;
153
+ byo?: StorefrontV2ByoStatus | null;
132
154
  lastSuccessfulCommitSha?: string | null;
133
155
  googleIntegrations?: StorefrontGoogleIntegrations | null;
134
156
  approvedStarterTemplates?: string[];
@@ -488,6 +510,26 @@ export class Domain extends Entity {
488
510
  @Domain.property()
489
511
  public assignToAgent?: boolean;
490
512
 
513
+ @Domain.property({type: jsonPropertyType})
514
+ public jobAgentPolicy?: {
515
+ toneInstructions?: string;
516
+ outreach?: {
517
+ clientMessaging?: 'auto' | 'team_draft_only';
518
+ sendEmail?: boolean;
519
+ sendSms?: boolean;
520
+ proactiveChase?: boolean;
521
+ };
522
+ playbooks?: {
523
+ deadlineAsk?: boolean;
524
+ emailIntake?: boolean;
525
+ drafting?: boolean;
526
+ designerAssign?: boolean;
527
+ productionTender?: boolean;
528
+ shipment?: boolean;
529
+ invoice?: boolean;
530
+ };
531
+ } | null;
532
+
491
533
  @Domain.property({ type: User })
492
534
  public merchiAgentUser?: User | null;
493
535