@merchi/sdk 1.42.15 → 1.42.16

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.
Files changed (263) hide show
  1. package/dist/constants/auto_assign_production_on_actions.d.ts +6 -0
  2. package/dist/constants/call_to_actions.d.ts +14 -0
  3. package/dist/constants/call_to_actions.test.d.ts +1 -0
  4. package/dist/constants/discount_types.d.ts +5 -0
  5. package/dist/constants/discount_types.test.d.ts +1 -0
  6. package/dist/constants/domain_types.d.ts +12 -0
  7. package/dist/constants/domain_types.test.d.ts +1 -0
  8. package/dist/constants/errors.d.ts +26 -0
  9. package/dist/constants/event_types.d.ts +5 -0
  10. package/dist/constants/event_types.test.d.ts +1 -0
  11. package/dist/constants/field_types.d.ts +18 -0
  12. package/dist/constants/field_types.js +1 -0
  13. package/dist/constants/field_types.test.d.ts +1 -0
  14. package/dist/constants/index.d.ts +25 -0
  15. package/dist/constants/input_types.d.ts +13 -0
  16. package/dist/constants/input_types.test.d.ts +1 -0
  17. package/dist/constants/inventory_status.test.d.ts +1 -0
  18. package/dist/constants/inventory_statuses.d.ts +6 -0
  19. package/dist/constants/invoice_types.d.ts +5 -0
  20. package/dist/constants/invoice_types.test.d.ts +1 -0
  21. package/dist/constants/item_types.d.ts +5 -0
  22. package/dist/constants/item_types.test.d.ts +1 -0
  23. package/dist/constants/job/drafting_status.d.ts +7 -0
  24. package/dist/constants/job/drafting_status.test.d.ts +1 -0
  25. package/dist/constants/job/payment_status.d.ts +7 -0
  26. package/dist/constants/job/payment_status.test.d.ts +1 -0
  27. package/dist/constants/job/production_status.d.ts +12 -0
  28. package/dist/constants/job/production_status.test.d.ts +1 -0
  29. package/dist/constants/job/shipment_status.d.ts +11 -0
  30. package/dist/constants/job/shipment_status.test.d.ts +1 -0
  31. package/dist/constants/job/supply_chain_request_status.d.ts +6 -0
  32. package/dist/constants/job/supply_chain_request_status.test.d.ts +1 -0
  33. package/dist/constants/job_priorities.d.ts +6 -0
  34. package/dist/constants/job_priorities.test.d.ts +1 -0
  35. package/dist/constants/job_status.d.ts +45 -0
  36. package/dist/constants/job_status.test.d.ts +1 -0
  37. package/dist/constants/job_types.d.ts +16 -0
  38. package/dist/constants/job_types.test.d.ts +1 -0
  39. package/dist/constants/notification_sections.d.ts +13 -0
  40. package/dist/constants/notification_sections.test.d.ts +1 -0
  41. package/dist/constants/notification_types.d.ts +101 -0
  42. package/dist/constants/notification_types.test.d.ts +1 -0
  43. package/dist/constants/notification_urgencies.d.ts +6 -0
  44. package/dist/constants/notification_urgencies.test.d.ts +1 -0
  45. package/dist/constants/payment_types.d.ts +10 -0
  46. package/dist/constants/payment_types.test.d.ts +1 -0
  47. package/dist/constants/platform.d.ts +5 -0
  48. package/dist/constants/platform.test.d.ts +1 -0
  49. package/dist/constants/product_types.d.ts +26 -0
  50. package/dist/constants/product_types.test.d.ts +1 -0
  51. package/dist/constants/rights.d.ts +5 -0
  52. package/dist/constants/rights.test.d.ts +1 -0
  53. package/dist/constants/robots_meta_directives.d.ts +1 -0
  54. package/dist/constants/robots_meta_directives.test.d.ts +1 -0
  55. package/dist/constants/roles.d.ts +20 -0
  56. package/dist/constants/roles.test.d.ts +1 -0
  57. package/dist/constants/shipment_companies.d.ts +19 -0
  58. package/dist/constants/shipment_companies.test.d.ts +1 -0
  59. package/dist/constants/shipment_services.d.ts +3 -0
  60. package/dist/constants/shipment_services.test.d.ts +1 -0
  61. package/dist/constants/system_roles.d.ts +3 -0
  62. package/dist/constants/system_roles.test.d.ts +1 -0
  63. package/dist/constants/theme_status.d.ts +5 -0
  64. package/dist/constants/theme_status.test.d.ts +1 -0
  65. package/dist/constants/user_types.d.ts +17 -0
  66. package/dist/constants/user_types.test.d.ts +1 -0
  67. package/dist/constants/white_label_accessibilities.d.ts +5 -0
  68. package/dist/constants/white_label_accessibilities.test.d.ts +1 -0
  69. package/dist/cookie.d.ts +1 -0
  70. package/dist/cookie.test.d.ts +1 -0
  71. package/dist/entities/address.d.ts +30 -0
  72. package/dist/entities/address.test.d.ts +1 -0
  73. package/dist/entities/agent_conversation.d.ts +18 -0
  74. package/dist/entities/agent_conversation.test.d.ts +1 -0
  75. package/dist/entities/agent_skill.d.ts +33 -0
  76. package/dist/entities/agent_skill.test.d.ts +1 -0
  77. package/dist/entities/agent_skill_approval.d.ts +13 -0
  78. package/dist/entities/agent_skill_version.d.ts +18 -0
  79. package/dist/entities/agent_token_analytics.d.ts +50 -0
  80. package/dist/entities/agent_token_usage.d.ts +31 -0
  81. package/dist/entities/agent_token_usage.test.d.ts +1 -0
  82. package/dist/entities/assignment.d.ts +40 -0
  83. package/dist/entities/assignment.test.d.ts +1 -0
  84. package/dist/entities/automatic_payment_relationship.d.ts +14 -0
  85. package/dist/entities/automatic_payment_relationship.test.d.ts +1 -0
  86. package/dist/entities/bank.d.ts +20 -0
  87. package/dist/entities/bank.test.d.ts +1 -0
  88. package/dist/entities/cart.d.ts +50 -0
  89. package/dist/entities/cart.test.d.ts +1 -0
  90. package/dist/entities/cart_item.d.ts +33 -0
  91. package/dist/entities/cart_item.test.d.ts +1 -0
  92. package/dist/entities/cart_shipment_group.d.ts +12 -0
  93. package/dist/entities/cart_shipment_quote.d.ts +16 -0
  94. package/dist/entities/category.d.ts +26 -0
  95. package/dist/entities/category.test.d.ts +1 -0
  96. package/dist/entities/company.d.ts +137 -0
  97. package/dist/entities/company.test.d.ts +1 -0
  98. package/dist/entities/company_invitation.d.ts +16 -0
  99. package/dist/entities/company_invitation.test.d.ts +1 -0
  100. package/dist/entities/country_tax.d.ts +20 -0
  101. package/dist/entities/country_tax.test.d.ts +1 -0
  102. package/dist/entities/discount.d.ts +19 -0
  103. package/dist/entities/discount.test.d.ts +1 -0
  104. package/dist/entities/discount_group.d.ts +20 -0
  105. package/dist/entities/discount_group.test.d.ts +1 -0
  106. package/dist/entities/domain.d.ts +629 -0
  107. package/dist/entities/domain.test.d.ts +1 -0
  108. package/dist/entities/domain_chat_settings.d.ts +33 -0
  109. package/dist/entities/domain_chat_settings.test.d.ts +1 -0
  110. package/dist/entities/domain_invitation.d.ts +17 -0
  111. package/dist/entities/domain_invitation.test.d.ts +1 -0
  112. package/dist/entities/domain_tag.d.ts +21 -0
  113. package/dist/entities/domain_tag.test.d.ts +1 -0
  114. package/dist/entities/draft.d.ts +31 -0
  115. package/dist/entities/draft.test.d.ts +1 -0
  116. package/dist/entities/draft_comment.d.ts +28 -0
  117. package/dist/entities/draft_comment.test.d.ts +1 -0
  118. package/dist/entities/draft_preview.d.ts +18 -0
  119. package/dist/entities/draft_preview.test.d.ts +1 -0
  120. package/dist/entities/draft_preview_layer.d.ts +12 -0
  121. package/dist/entities/draft_preview_layer.test.d.ts +1 -0
  122. package/dist/entities/draft_template.d.ts +31 -0
  123. package/dist/entities/draft_template.js +8 -0
  124. package/dist/entities/draft_template.test.d.ts +1 -0
  125. package/dist/entities/email_address.d.ts +13 -0
  126. package/dist/entities/email_address.test.d.ts +1 -0
  127. package/dist/entities/email_counter.d.ts +11 -0
  128. package/dist/entities/email_counter.test.d.ts +1 -0
  129. package/dist/entities/enrolled_domain.d.ts +16 -0
  130. package/dist/entities/enrolled_domain.test.d.ts +1 -0
  131. package/dist/entities/exchange_rate.d.ts +11 -0
  132. package/dist/entities/exchange_rate.test.d.ts +1 -0
  133. package/dist/entities/file.d.ts +65 -0
  134. package/dist/entities/file.test.d.ts +1 -0
  135. package/dist/entities/internal_tag.d.ts +26 -0
  136. package/dist/entities/internal_tag.test.d.ts +1 -0
  137. package/dist/entities/inventory.d.ts +27 -0
  138. package/dist/entities/inventory.test.d.ts +1 -0
  139. package/dist/entities/inventory_group.d.ts +19 -0
  140. package/dist/entities/inventory_group.test.d.ts +1 -0
  141. package/dist/entities/inventory_unit_variation.d.ts +13 -0
  142. package/dist/entities/inventory_unit_variation.test.d.ts +1 -0
  143. package/dist/entities/invoice.d.ts +80 -0
  144. package/dist/entities/invoice.test.d.ts +1 -0
  145. package/dist/entities/item.d.ts +24 -0
  146. package/dist/entities/item.test.d.ts +1 -0
  147. package/dist/entities/job.d.ts +156 -0
  148. package/dist/entities/job.test.d.ts +1 -0
  149. package/dist/entities/job_comment.d.ts +24 -0
  150. package/dist/entities/job_comment.test.d.ts +1 -0
  151. package/dist/entities/job_note.d.ts +19 -0
  152. package/dist/entities/job_operation_log.d.ts +18 -0
  153. package/dist/entities/job_operation_log.test.d.ts +1 -0
  154. package/dist/entities/matching_inventory.d.ts +16 -0
  155. package/dist/entities/notification.d.ts +47 -0
  156. package/dist/entities/notification.test.d.ts +1 -0
  157. package/dist/entities/payment.d.ts +28 -0
  158. package/dist/entities/payment.test.d.ts +1 -0
  159. package/dist/entities/payment_device.d.ts +14 -0
  160. package/dist/entities/payment_device.test.d.ts +1 -0
  161. package/dist/entities/phone_number.d.ts +17 -0
  162. package/dist/entities/phone_number.test.d.ts +1 -0
  163. package/dist/entities/product.d.ts +148 -0
  164. package/dist/entities/product.test.d.ts +1 -0
  165. package/dist/entities/product_form.d.ts +22 -0
  166. package/dist/entities/product_form_version.d.ts +20 -0
  167. package/dist/entities/product_review.d.ts +74 -0
  168. package/dist/entities/production_comment.d.ts +24 -0
  169. package/dist/entities/production_comment.test.d.ts +1 -0
  170. package/dist/entities/quote.d.ts +29 -0
  171. package/dist/entities/quote.test.d.ts +1 -0
  172. package/dist/entities/quote_item.d.ts +24 -0
  173. package/dist/entities/quote_item.test.d.ts +1 -0
  174. package/dist/entities/reminder.d.ts +35 -0
  175. package/dist/entities/reminder.test.d.ts +1 -0
  176. package/dist/entities/session.d.ts +15 -0
  177. package/dist/entities/session.test.d.ts +1 -0
  178. package/dist/entities/shipment.d.ts +76 -0
  179. package/dist/entities/shipment.test.d.ts +1 -0
  180. package/dist/entities/shipment_item.d.ts +10 -0
  181. package/dist/entities/shipment_item.test.d.ts +1 -0
  182. package/dist/entities/shipment_item_fulfillment.d.ts +10 -0
  183. package/dist/entities/shipment_item_fulfillment.test.d.ts +1 -0
  184. package/dist/entities/shipment_log.d.ts +15 -0
  185. package/dist/entities/shipment_method.d.ts +28 -0
  186. package/dist/entities/shipment_method.test.d.ts +1 -0
  187. package/dist/entities/shipment_method_variation.d.ts +18 -0
  188. package/dist/entities/shipment_method_variation.test.d.ts +1 -0
  189. package/dist/entities/short_url.d.ts +17 -0
  190. package/dist/entities/short_url.test.d.ts +1 -0
  191. package/dist/entities/subscription_plan.d.ts +30 -0
  192. package/dist/entities/subscription_plan.test.d.ts +1 -0
  193. package/dist/entities/supply_domain.d.ts +14 -0
  194. package/dist/entities/supply_domain.test.d.ts +1 -0
  195. package/dist/entities/support_conversation.d.ts +30 -0
  196. package/dist/entities/support_conversation.test.d.ts +1 -0
  197. package/dist/entities/support_message.d.ts +15 -0
  198. package/dist/entities/support_message.test.d.ts +1 -0
  199. package/dist/entities/system_role.d.ts +10 -0
  200. package/dist/entities/system_role.test.d.ts +1 -0
  201. package/dist/entities/theme.d.ts +26 -0
  202. package/dist/entities/theme.test.d.ts +1 -0
  203. package/dist/entities/theme_css_setting.d.ts +12 -0
  204. package/dist/entities/theme_css_setting.test.d.ts +1 -0
  205. package/dist/entities/user.d.ts +142 -0
  206. package/dist/entities/user.test.d.ts +1 -0
  207. package/dist/entities/user_company.d.ts +14 -0
  208. package/dist/entities/user_company.test.d.ts +1 -0
  209. package/dist/entities/variation.d.ts +29 -0
  210. package/dist/entities/variation.test.d.ts +1 -0
  211. package/dist/entities/variation_field.d.ts +87 -0
  212. package/dist/entities/variation_field.js +33 -0
  213. package/dist/entities/variation_field.test.d.ts +1 -0
  214. package/dist/entities/variation_fields_option.d.ts +36 -0
  215. package/dist/entities/variation_fields_option.test.d.ts +1 -0
  216. package/dist/entities/variation_option.d.ts +23 -0
  217. package/dist/entities/variation_option.test.d.ts +1 -0
  218. package/dist/entities/variations_group.d.ts +20 -0
  219. package/dist/entities/variations_group.test.d.ts +1 -0
  220. package/dist/entity.d.ts +208 -0
  221. package/dist/index.d.ts +88 -0
  222. package/dist/merchi.d.ts +179 -0
  223. package/dist/merchi.test.d.ts +1 -0
  224. package/dist/pricing/discount.d.ts +2 -0
  225. package/dist/pricing/discount.test.d.ts +1 -0
  226. package/dist/pricing/estimate.d.ts +2 -0
  227. package/dist/pricing/estimate.js +56 -0
  228. package/dist/pricing/estimate.test.d.ts +1 -0
  229. package/dist/pricing/estimate.test.js +81 -0
  230. package/dist/pricing/golden.test.d.ts +1 -0
  231. package/dist/pricing/index.d.ts +7 -0
  232. package/dist/pricing/index.test.d.ts +1 -0
  233. package/dist/pricing/inventory.d.ts +2 -0
  234. package/dist/pricing/inventory.test.d.ts +1 -0
  235. package/dist/pricing/matrix.d.ts +10 -0
  236. package/dist/pricing/matrix.test.d.ts +1 -0
  237. package/dist/pricing/round.d.ts +13 -0
  238. package/dist/pricing/round.test.d.ts +1 -0
  239. package/dist/pricing/types.d.ts +137 -0
  240. package/dist/pricing/visibility.d.ts +3 -0
  241. package/dist/pricing/visibility.test.d.ts +1 -0
  242. package/dist/request.d.ts +56 -0
  243. package/dist/request.test.d.ts +1 -0
  244. package/dist/test_util.d.ts +3 -0
  245. package/dist/toasts.d.ts +14 -0
  246. package/dist/toasts.test.d.ts +1 -0
  247. package/dist/util/float.d.ts +1 -0
  248. package/dist/util/index.d.ts +3 -0
  249. package/dist/util/query_string.d.ts +1 -0
  250. package/dist/util/query_string.test.d.ts +1 -0
  251. package/dist/util/validation.d.ts +1 -0
  252. package/dist/util/validation.test.d.ts +1 -0
  253. package/dist/uuid.d.ts +1 -0
  254. package/dist/uuid.test.d.ts +1 -0
  255. package/package.json +2 -1
  256. package/src/constants/field_types.ts +1 -0
  257. package/src/entities/draft_template.ts +6 -0
  258. package/src/entities/variation_field.ts +25 -0
  259. package/src/entity.ts +1 -1
  260. package/src/pricing/estimate.test.ts +95 -0
  261. package/src/pricing/estimate.ts +73 -0
  262. package/src/pricing/types.ts +10 -0
  263. package/tsconfig.json +1 -0
@@ -0,0 +1,19 @@
1
+ import { Entity } from '../entity.js';
2
+ import { DiscountGroup } from './discount_group.js';
3
+ import { User } from './user.js';
4
+ export declare class Discount extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ archived?: Date | null;
9
+ id?: number;
10
+ lowerLimit?: number;
11
+ amount?: number;
12
+ usageLimit?: number;
13
+ isPercentage?: boolean;
14
+ code?: string;
15
+ assignedUsers?: User[];
16
+ referrer?: User | null;
17
+ discountGroup?: DiscountGroup | null;
18
+ discountedUnitCost: (unitPrice: number | undefined) => string;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ import { Entity } from '../entity.js';
2
+ import { Domain } from './domain.js';
3
+ import { Product } from './product.js';
4
+ import { Discount } from './discount.js';
5
+ export declare class DiscountGroup extends Entity {
6
+ protected static resourceName: string;
7
+ protected static singularName: string;
8
+ protected static pluralName: string;
9
+ archived?: Date | null;
10
+ created?: Date | null;
11
+ id?: number;
12
+ dateStart?: Date | null;
13
+ dateEnd?: Date | null;
14
+ discountType?: number;
15
+ discounts?: Discount[];
16
+ name?: string;
17
+ groupRestricted?: boolean;
18
+ product?: Product | null;
19
+ domain?: Domain | null;
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,629 @@
1
+ import { Cart } from './cart.js';
2
+ import { Category } from './category.js';
3
+ import { Company } from './company.js';
4
+ import { DomainInvitation } from './domain_invitation.js';
5
+ import { DomainTag } from './domain_tag.js';
6
+ import { EnrolledDomain } from './enrolled_domain.js';
7
+ import { Entity } from '../entity.js';
8
+ import type { AgentTokenAnalyticsTimeseries, DomainAnalyticsResponse } from './agent_token_analytics.js';
9
+ import { MerchiFile } from './file.js';
10
+ import { InternalTag } from './internal_tag.js';
11
+ import { Invoice } from './invoice.js';
12
+ import { Job } from './job.js';
13
+ import { User } from './user.js';
14
+ import { Notification } from './notification.js';
15
+ import { Product } from './product.js';
16
+ import { Reminder } from './reminder.js';
17
+ import { Session } from './session.js';
18
+ import { SupplyDomain } from './supply_domain.js';
19
+ import { DomainChatSettings } from './domain_chat_settings.js';
20
+ import { Theme } from './theme.js';
21
+ import { DomainType } from '../constants/domain_types.js';
22
+ import { ShipmentMethod } from './shipment_method.js';
23
+ export type StorefrontChangeRequestStatus = 'created' | 'running' | 'preview_ready' | 'approved' | 'rejected';
24
+ export interface StorefrontChecksSummary {
25
+ overall?: 'passing' | 'failing' | 'pending' | 'unknown';
26
+ statusState?: string;
27
+ counts?: {
28
+ total?: number;
29
+ passed?: number;
30
+ failed?: number;
31
+ pending?: number;
32
+ neutral?: number;
33
+ };
34
+ updatedAt?: string;
35
+ }
36
+ export interface StorefrontExecutionEvent {
37
+ timestamp: string;
38
+ stage: string;
39
+ level?: 'info' | 'error' | string;
40
+ message: string;
41
+ metadata?: Record<string, any>;
42
+ }
43
+ export interface StorefrontRequestContextImage {
44
+ name: string;
45
+ mimeType?: string | null;
46
+ dataUrl: string;
47
+ }
48
+ export interface StorefrontV2ChangeRequestPayload {
49
+ prompt: string;
50
+ contextFilePaths?: string[];
51
+ contextImages?: StorefrontRequestContextImage[];
52
+ branchName?: string;
53
+ startNewBranch?: boolean;
54
+ clarificationAnswers?: Record<string, string | string[]>;
55
+ generationBriefSummary?: string;
56
+ generationBoilerplateFit?: string;
57
+ clarificationSkipped?: boolean;
58
+ }
59
+ export interface StorefrontV2ChangeRequestRunPayload {
60
+ status?: 'running' | 'preview_ready';
61
+ branchName?: string;
62
+ commitSha?: string;
63
+ previewUrl?: string;
64
+ summary?: string;
65
+ pullRequestNumber?: number;
66
+ checksSummary?: StorefrontChecksSummary;
67
+ checksUpdatedAt?: string;
68
+ errorDetails?: string;
69
+ }
70
+ export interface StorefrontV2ChangeRequestRejectPayload {
71
+ errorDetails?: string;
72
+ }
73
+ export interface StorefrontV2ChangeRequest {
74
+ id: number;
75
+ domainId: number;
76
+ storefrontV2Id: number;
77
+ requestedByUserId?: number | null;
78
+ status: StorefrontChangeRequestStatus;
79
+ prompt: string;
80
+ branchName?: string | null;
81
+ commitSha?: string | null;
82
+ pullRequestNumber?: number | null;
83
+ previewUrl?: string | null;
84
+ summary?: string | null;
85
+ checksSummary?: StorefrontChecksSummary | null;
86
+ checksUpdatedAt?: string | null;
87
+ errorDetails?: string | null;
88
+ executionEvents?: StorefrontExecutionEvent[] | null;
89
+ creationDate?: string | null;
90
+ updatedAt?: string | null;
91
+ }
92
+ export interface StorefrontGoogleIntegrations {
93
+ ga4MeasurementId?: string;
94
+ ga4PropertyId?: string;
95
+ googleAdsId?: string;
96
+ googleAdsConversionLabel?: string;
97
+ googleAdsQuoteConversionLabel?: string;
98
+ }
99
+ export type StorefrontV2InfrastructureMode = 'platform' | 'byo';
100
+ /** Public BYO connection status (never includes encrypted tokens). */
101
+ export interface StorefrontV2ByoStatus {
102
+ infrastructureMode: StorefrontV2InfrastructureMode;
103
+ githubAppConfigured: boolean;
104
+ vercelOauthConfigured: boolean;
105
+ githubConnected: boolean;
106
+ vercelConnected: boolean;
107
+ githubAccountLogin?: string | null;
108
+ githubInstallationId?: string | null;
109
+ vercelTeamId?: string | null;
110
+ }
111
+ export interface StorefrontV2Config {
112
+ id?: number;
113
+ domainId?: number;
114
+ status?: 'provisioning' | 'ready' | 'failed' | 'archived' | string;
115
+ starterTemplate?: string | null;
116
+ urlStructure?: string | null;
117
+ defaultBranch?: string | null;
118
+ activePreviewBranchName?: string | null;
119
+ activePreviewStartedAt?: string | null;
120
+ activePreviewLastRequestId?: number | null;
121
+ repoProvider?: string | null;
122
+ repoOwner?: string | null;
123
+ repoName?: string | null;
124
+ vercelProjectId?: string | null;
125
+ vercelTeamId?: string | null;
126
+ infrastructureMode?: StorefrontV2InfrastructureMode | string | null;
127
+ githubInstallationId?: string | null;
128
+ githubAccountLogin?: string | null;
129
+ byo?: StorefrontV2ByoStatus | null;
130
+ lastSuccessfulCommitSha?: string | null;
131
+ googleIntegrations?: StorefrontGoogleIntegrations | null;
132
+ approvedStarterTemplates?: string[];
133
+ providerMode?: 'real' | 'deterministic' | 'unknown' | string;
134
+ isProvisioned?: boolean;
135
+ creationDate?: string | null;
136
+ updatedAt?: string | null;
137
+ }
138
+ export interface StorefrontV2GetResponse {
139
+ storefrontV2?: StorefrontV2Config;
140
+ isProvisioned?: boolean;
141
+ provisioned?: boolean;
142
+ providerMode?: string;
143
+ approvedStarterTemplates?: string[];
144
+ }
145
+ export interface StorefrontV2ProvisionPayload {
146
+ starterTemplate?: string;
147
+ urlStructure?: string;
148
+ }
149
+ export interface StorefrontV2StarterTemplateUrlStructureResult {
150
+ starterTemplate: string;
151
+ urlStructure: string;
152
+ }
153
+ export interface StorefrontV2SiteContextInput {
154
+ url?: string;
155
+ sourceUrl?: string;
156
+ }
157
+ export interface StorefrontV2GenerationBriefQuestionOption {
158
+ id: string;
159
+ label: string;
160
+ }
161
+ export interface StorefrontV2GenerationBriefQuestion {
162
+ id: string;
163
+ topicId: string;
164
+ prompt: string;
165
+ type: 'single' | 'multi' | 'text';
166
+ options?: StorefrontV2GenerationBriefQuestionOption[];
167
+ required?: boolean;
168
+ }
169
+ export interface StorefrontV2GenerationBriefGapTopic {
170
+ id: string;
171
+ category: string;
172
+ severity: 'high' | 'medium' | 'low' | string;
173
+ evidence: string;
174
+ suggestedOptions?: string[];
175
+ }
176
+ export interface StorefrontV2GenerationBrief {
177
+ planSummary: string;
178
+ boilerplateFit: string;
179
+ gapTopics: StorefrontV2GenerationBriefGapTopic[];
180
+ questions: StorefrontV2GenerationBriefQuestion[];
181
+ questionCount: number;
182
+ }
183
+ export interface StorefrontV2GenerationBriefPayload {
184
+ siteContext: StorefrontV2SiteContext;
185
+ urlStructure?: string;
186
+ starterTemplate?: string;
187
+ }
188
+ export interface StorefrontV2ResetResult {
189
+ status: string;
190
+ isProvisioned: boolean;
191
+ providerMode?: 'real' | 'deterministic' | 'unknown' | string;
192
+ approvedStarterTemplates?: string[];
193
+ }
194
+ export interface StorefrontV2RepositoryTreeEntry {
195
+ name: string;
196
+ path: string;
197
+ type: 'directory' | 'file';
198
+ }
199
+ export interface StorefrontV2RepositoryTree {
200
+ path: string;
201
+ ref: string;
202
+ entries: StorefrontV2RepositoryTreeEntry[];
203
+ }
204
+ export interface StorefrontV2RepositoryBranches {
205
+ defaultBranch: string;
206
+ activeBranchName?: string | null;
207
+ branches: string[];
208
+ }
209
+ export interface StorefrontV2RepositoryFile {
210
+ path: string;
211
+ ref: string;
212
+ sha?: string;
213
+ content: string;
214
+ }
215
+ export interface StorefrontV2RepositoryFileUpdate {
216
+ path: string;
217
+ branch: string;
218
+ commitSha: string;
219
+ }
220
+ export interface StorefrontV2RepositoryFileUpdatePayload {
221
+ path: string;
222
+ content: string;
223
+ message?: string;
224
+ branch?: string;
225
+ }
226
+ export interface StorefrontV2Deployment {
227
+ id: string;
228
+ environment: 'preview' | 'production' | string;
229
+ status: string;
230
+ commitSha?: string | null;
231
+ url?: string | null;
232
+ }
233
+ export interface StorefrontV2DeploymentLog {
234
+ timestamp: string;
235
+ level: string;
236
+ message: string;
237
+ }
238
+ export interface StorefrontV2RollbackResult {
239
+ status: string;
240
+ targetCommitSha: string;
241
+ deployment?: {
242
+ deploymentId: string;
243
+ status?: string;
244
+ };
245
+ }
246
+ export interface StorefrontV2ProductPublishResult {
247
+ action: 'deploy' | 'recache' | string;
248
+ productName?: string | null;
249
+ productId?: number | null;
250
+ lastDeployed?: number | null;
251
+ status?: string;
252
+ productUrl?: string;
253
+ deploymentId?: string;
254
+ previewUrl?: string;
255
+ branchName?: string;
256
+ message?: string;
257
+ httpStatus?: number;
258
+ }
259
+ export interface StorefrontV2ProductStatus {
260
+ activated: boolean;
261
+ outOfSync?: boolean;
262
+ lastUpdated?: number | null;
263
+ lastDeployed?: number | null;
264
+ }
265
+ export interface StorefrontV2CategoryPublishResult {
266
+ action: 'deploy' | 'recache' | string;
267
+ categoryName?: string | null;
268
+ status?: string;
269
+ categoryUrl?: string;
270
+ deploymentId?: string;
271
+ previewUrl?: string;
272
+ branchName?: string;
273
+ message?: string;
274
+ httpStatus?: number;
275
+ }
276
+ export interface StorefrontV2ProductPublishPayload {
277
+ productName?: string;
278
+ productUrl?: string;
279
+ productId?: number;
280
+ branchName?: string;
281
+ }
282
+ export interface StorefrontV2CategoryPublishPayload {
283
+ categoryName?: string;
284
+ categoryUrl?: string;
285
+ branchName?: string;
286
+ }
287
+ export interface StorefrontV2EmulationRoute {
288
+ name?: string;
289
+ path: string;
290
+ pageType?: string;
291
+ targetFile?: string;
292
+ }
293
+ export interface StorefrontV2EmulationSpec {
294
+ routeContract?: {
295
+ recommendedUrlStructure?: string;
296
+ dynamicParams?: string[];
297
+ routes?: StorefrontV2EmulationRoute[];
298
+ };
299
+ componentMapping?: Array<{
300
+ section?: string;
301
+ sourceSignals?: string[];
302
+ boilerplateTargets?: string[];
303
+ implementationNotes?: string;
304
+ }>;
305
+ }
306
+ export interface StorefrontV2PageAnalysisItem {
307
+ url: string;
308
+ title?: string | null;
309
+ description?: string | null;
310
+ h1?: string | null;
311
+ headings?: string[];
312
+ contentPreview?: string | null;
313
+ }
314
+ export interface StorefrontV2SiteContext {
315
+ sourceUrl: string;
316
+ style?: {
317
+ title?: string | null;
318
+ description?: string | null;
319
+ colors?: string[];
320
+ fontFamilies?: string[];
321
+ } | null;
322
+ sitemap?: string[];
323
+ navigation?: Array<{
324
+ label?: string;
325
+ url: string;
326
+ }>;
327
+ categories?: string[];
328
+ products?: string[];
329
+ scrapedCategories?: string[];
330
+ scrapedProducts?: string[];
331
+ domainCatalog?: {
332
+ categories?: Array<{
333
+ id?: number;
334
+ name?: string;
335
+ slug?: string;
336
+ }>;
337
+ products?: Array<{
338
+ id?: number;
339
+ name?: string;
340
+ slug?: string;
341
+ categories?: Array<{
342
+ id?: number;
343
+ name?: string;
344
+ slug?: string;
345
+ }>;
346
+ }>;
347
+ } | null;
348
+ catalogMapping?: {
349
+ categories?: Array<{
350
+ domainCategoryId?: number;
351
+ domainCategoryName?: string;
352
+ domainCategorySlug?: string;
353
+ scrapedCategoryLabel?: string | null;
354
+ matchedScrapedUrl?: string | null;
355
+ matchSource?: string | null;
356
+ }>;
357
+ products?: Array<{
358
+ domainProductId?: number;
359
+ domainProductName?: string;
360
+ domainProductSlug?: string;
361
+ domainCategoryIds?: number[];
362
+ domainCategoryNames?: string[];
363
+ scrapedProductLabel?: string | null;
364
+ matchedScrapedUrl?: string | null;
365
+ matchSource?: string | null;
366
+ }>;
367
+ } | null;
368
+ tracking?: Array<{
369
+ provider?: string;
370
+ value?: string;
371
+ }>;
372
+ wireframe?: string[];
373
+ stylesheets?: Array<{
374
+ url: string;
375
+ content: string;
376
+ }>;
377
+ pageAnalysis?: StorefrontV2PageAnalysisItem[];
378
+ emulationSpec?: StorefrontV2EmulationSpec | null;
379
+ analysisMarkdown?: string | null;
380
+ analysisFilePath?: string | null;
381
+ analysisJsonFilePath?: string | null;
382
+ analysisScreenshotPaths?: string[];
383
+ analysisScreenshots?: Array<{
384
+ name?: string;
385
+ pageUrl?: string;
386
+ path?: string;
387
+ viewport?: string;
388
+ width?: number;
389
+ height?: number;
390
+ screenshotUrl?: string;
391
+ mimeType?: string;
392
+ dataUrl?: string;
393
+ }>;
394
+ analysisBranch?: string | null;
395
+ analysisCommitSha?: string | null;
396
+ analysisJsonCommitSha?: string | null;
397
+ }
398
+ export declare class Domain extends Entity {
399
+ protected static resourceName: string;
400
+ protected static singularName: string;
401
+ protected static pluralName: string;
402
+ archived?: Date | null;
403
+ created?: Date | null;
404
+ id?: number;
405
+ domain?: string;
406
+ country?: string;
407
+ currency?: string;
408
+ callToActions?: string;
409
+ callToActionDetails?: any[];
410
+ isMaster?: boolean;
411
+ deploymentOnline?: boolean;
412
+ deploymentInProgress?: boolean;
413
+ deploymentSucceeded?: boolean;
414
+ deploymentMessage?: string;
415
+ deploymentKey?: string;
416
+ internalUseNotes?: string;
417
+ internalUseAiContext?: string;
418
+ aiContext?: string;
419
+ domainType?: DomainType;
420
+ subDomain?: string;
421
+ emailDomain?: string;
422
+ smsName?: string;
423
+ whatsappPhoneNumberId?: string;
424
+ showDomainPublicly?: boolean;
425
+ publicAccessRestricted?: boolean;
426
+ showDomainToAccessibleEntitiesOnly?: boolean;
427
+ enableEmailNotifications?: boolean;
428
+ enableSmsNotifications?: boolean;
429
+ enableWhatsappNotifications?: boolean;
430
+ mailgunRecords?: any[];
431
+ enableNotifications?: boolean;
432
+ assignToAgent?: boolean;
433
+ jobAgentPolicy?: {
434
+ toneInstructions?: string;
435
+ outreach?: {
436
+ clientMessaging?: 'auto' | 'team_draft_only';
437
+ sendEmail?: boolean;
438
+ sendSms?: boolean;
439
+ proactiveChase?: boolean;
440
+ };
441
+ playbooks?: {
442
+ deadlineAsk?: boolean;
443
+ emailIntake?: boolean;
444
+ drafting?: boolean;
445
+ designerAssign?: boolean;
446
+ productionTender?: boolean;
447
+ shipment?: boolean;
448
+ invoice?: boolean;
449
+ };
450
+ } | null;
451
+ merchiAgentUser?: User | null;
452
+ trackingCodeGoogleConversion?: string | null;
453
+ trackingCodeGoogleGlobal?: string | null;
454
+ apiSecret?: string | null;
455
+ apiAllowedOrigins?: string[] | null;
456
+ webflowApiKey?: string | null;
457
+ telegramChatId?: string;
458
+ shopifyShopUrl?: string | null;
459
+ shopifyIsActive?: boolean;
460
+ qrShopQrCode?: string | null;
461
+ unltdAiApiOrganizationId?: string;
462
+ unltdAiApiSecretKey?: string;
463
+ scalablePressApiKey?: string;
464
+ googleMerchantApiKey?: string;
465
+ googleMerchantId?: string;
466
+ googleProductReviewsFeedEnabled?: boolean;
467
+ googleProductReviewsFeedToken?: string | null;
468
+ googleProductReviewsFeedUrl?: string | null;
469
+ socialBitchute?: string | null;
470
+ socialDiscord?: string | null;
471
+ socialFacebook?: string | null;
472
+ socialGoogle?: string | null;
473
+ socialInstagram?: string | null;
474
+ socialLinkedin?: string | null;
475
+ socialRumble?: string | null;
476
+ socialTelegram?: string | null;
477
+ socialTiktok?: string | null;
478
+ socialX?: string | null;
479
+ socialYoutube?: string | null;
480
+ ownedBy?: Company;
481
+ company?: Company;
482
+ logo?: MerchiFile | null;
483
+ favicon?: MerchiFile | null;
484
+ shipmentMethods?: ShipmentMethod[];
485
+ activeTheme?: Theme;
486
+ internalTags?: InternalTag[];
487
+ tags?: DomainTag[];
488
+ canSupply?: Domain[];
489
+ suppliedBy?: Domain[];
490
+ accessibleClients?: User[];
491
+ accessibleClientCompanies?: Company[];
492
+ sessions?: Session[];
493
+ categories?: Category[];
494
+ notifications?: Notification[];
495
+ reminders?: Reminder[];
496
+ products?: Product[];
497
+ supplyProducts?: SupplyDomain[];
498
+ jobs?: Job[];
499
+ jobsAssignees?: User[];
500
+ carts?: Cart[];
501
+ enrollments?: EnrolledDomain[];
502
+ invoices?: Invoice[];
503
+ domainInvitations?: DomainInvitation[];
504
+ domainChatSettings?: DomainChatSettings | null;
505
+ themes?: Theme[];
506
+ defaultTaxType: () => import("./country_tax.js").CountryTax | null;
507
+ getActiveTheme: () => Theme;
508
+ private getDomainId;
509
+ private storefrontV2DomainResource;
510
+ private storefrontV2Request;
511
+ getStorefrontV2: () => Promise<StorefrontV2GetResponse>;
512
+ provisionStorefrontV2: (payload?: StorefrontV2ProvisionPayload) => Promise<{
513
+ storefrontV2: StorefrontV2Config;
514
+ }>;
515
+ resolveStarterTemplateUrlStructure: (payload: {
516
+ starterTemplate: string;
517
+ }) => Promise<StorefrontV2StarterTemplateUrlStructureResult>;
518
+ extractStorefrontV2SiteContext: (payload: StorefrontV2SiteContextInput) => Promise<{
519
+ siteContext: StorefrontV2SiteContext;
520
+ }>;
521
+ createStorefrontV2GenerationBrief: (payload: StorefrontV2GenerationBriefPayload) => Promise<{
522
+ generationBrief: StorefrontV2GenerationBrief;
523
+ }>;
524
+ resetStorefrontV2: () => Promise<StorefrontV2ResetResult>;
525
+ getStorefrontV2GoogleIntegrations: () => Promise<{
526
+ googleIntegrations: StorefrontGoogleIntegrations;
527
+ }>;
528
+ saveStorefrontV2GoogleIntegrations: (payload: StorefrontGoogleIntegrations | {
529
+ googleIntegrations: StorefrontGoogleIntegrations;
530
+ }) => Promise<{
531
+ googleIntegrations: StorefrontGoogleIntegrations;
532
+ }>;
533
+ getStorefrontV2GaStatus: () => Promise<{
534
+ gaStatus: Record<string, any>;
535
+ }>;
536
+ verifyStorefrontV2GaInstallation: () => Promise<{
537
+ gaVerification: Record<string, any>;
538
+ }>;
539
+ analyzeStorefrontV2Ga: (payload?: {
540
+ days?: number;
541
+ }) => Promise<{
542
+ gaAnalysis: Record<string, any>;
543
+ }>;
544
+ applyStorefrontV2GaRecommendations: (payload: {
545
+ recommendationIds: string[];
546
+ recommendations?: Array<Record<string, any>>;
547
+ narrative?: string;
548
+ days?: number;
549
+ startNewBranch?: boolean;
550
+ branchName?: string;
551
+ }) => Promise<{
552
+ storefrontChangeRequest: StorefrontV2ChangeRequest;
553
+ }>;
554
+ getStorefrontV2GscStatus: () => Promise<{
555
+ gscStatus: Record<string, any>;
556
+ }>;
557
+ analyzeStorefrontV2Gsc: (payload?: {
558
+ days?: number;
559
+ }) => Promise<{
560
+ gscAnalysis: Record<string, any>;
561
+ }>;
562
+ applyStorefrontV2GscRecommendations: (payload: {
563
+ recommendationIds: string[];
564
+ recommendations?: Array<Record<string, any>>;
565
+ narrative?: string;
566
+ days?: number;
567
+ startNewBranch?: boolean;
568
+ branchName?: string;
569
+ }) => Promise<{
570
+ storefrontChangeRequest: StorefrontV2ChangeRequest;
571
+ }>;
572
+ createStorefrontChangeRequest: (payload?: StorefrontV2ChangeRequestPayload) => Promise<{
573
+ storefrontChangeRequest: StorefrontV2ChangeRequest;
574
+ }>;
575
+ getStorefrontChangeRequest: (requestId: number | string) => Promise<{
576
+ storefrontChangeRequest: StorefrontV2ChangeRequest;
577
+ }>;
578
+ getStorefrontChangeRequestEvents: (requestId: number | string) => Promise<{
579
+ requestId: number;
580
+ events: StorefrontExecutionEvent[];
581
+ }>;
582
+ runStorefrontChangeRequest: (requestId: number | string, payload?: StorefrontV2ChangeRequestRunPayload) => Promise<{
583
+ storefrontChangeRequest: StorefrontV2ChangeRequest;
584
+ }>;
585
+ approveStorefrontChangeRequest: (requestId: number | string, payload?: Record<string, any>) => Promise<{
586
+ storefrontChangeRequest: StorefrontV2ChangeRequest;
587
+ }>;
588
+ rejectStorefrontChangeRequest: (requestId: number | string, payload?: StorefrontV2ChangeRequestRejectPayload) => Promise<{
589
+ storefrontChangeRequest: StorefrontV2ChangeRequest;
590
+ }>;
591
+ getStorefrontV2Deployments: () => Promise<{
592
+ deployments: StorefrontV2Deployment[];
593
+ }>;
594
+ getStorefrontV2DeploymentLogs: (deploymentId: number | string) => Promise<{
595
+ deploymentId: string;
596
+ logs: StorefrontV2DeploymentLog[];
597
+ }>;
598
+ rollbackStorefrontV2: () => Promise<{
599
+ rollback: StorefrontV2RollbackResult;
600
+ }>;
601
+ getStorefrontV2RepositoryTree: (input?: {
602
+ path?: string;
603
+ ref?: string;
604
+ }) => Promise<{
605
+ repositoryTree: StorefrontV2RepositoryTree;
606
+ }>;
607
+ getStorefrontV2RepositoryBranches: () => Promise<{
608
+ repositoryBranches: StorefrontV2RepositoryBranches;
609
+ }>;
610
+ getStorefrontV2RepositoryFile: (path: string, input?: {
611
+ ref?: string;
612
+ }) => Promise<{
613
+ repositoryFile: StorefrontV2RepositoryFile;
614
+ }>;
615
+ updateStorefrontV2RepositoryFile: (payload: StorefrontV2RepositoryFileUpdatePayload) => Promise<{
616
+ repositoryFileUpdate: StorefrontV2RepositoryFileUpdate;
617
+ }>;
618
+ getStorefrontV2ProductStatus: (productId: number) => Promise<{
619
+ storefrontProductStatus: StorefrontV2ProductStatus;
620
+ }>;
621
+ publishStorefrontV2Product: (payload?: StorefrontV2ProductPublishPayload) => Promise<{
622
+ productPublish: StorefrontV2ProductPublishResult;
623
+ }>;
624
+ publishStorefrontV2Category: (payload?: StorefrontV2CategoryPublishPayload) => Promise<{
625
+ categoryPublish: StorefrontV2CategoryPublishResult;
626
+ }>;
627
+ getAnalytics: () => Promise<DomainAnalyticsResponse>;
628
+ getAgentTokenAnalytics: (queryParams?: Record<string, string | undefined>) => Promise<AgentTokenAnalyticsTimeseries>;
629
+ }
@@ -0,0 +1 @@
1
+ export {};