@merchi/sdk 1.42.15 → 1.42.17

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 (265) 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 +21 -0
  56. package/dist/constants/roles.js +3 -0
  57. package/dist/constants/roles.test.d.ts +1 -0
  58. package/dist/constants/shipment_companies.d.ts +19 -0
  59. package/dist/constants/shipment_companies.test.d.ts +1 -0
  60. package/dist/constants/shipment_services.d.ts +3 -0
  61. package/dist/constants/shipment_services.test.d.ts +1 -0
  62. package/dist/constants/system_roles.d.ts +3 -0
  63. package/dist/constants/system_roles.test.d.ts +1 -0
  64. package/dist/constants/theme_status.d.ts +5 -0
  65. package/dist/constants/theme_status.test.d.ts +1 -0
  66. package/dist/constants/user_types.d.ts +17 -0
  67. package/dist/constants/user_types.test.d.ts +1 -0
  68. package/dist/constants/white_label_accessibilities.d.ts +5 -0
  69. package/dist/constants/white_label_accessibilities.test.d.ts +1 -0
  70. package/dist/cookie.d.ts +1 -0
  71. package/dist/cookie.test.d.ts +1 -0
  72. package/dist/entities/address.d.ts +30 -0
  73. package/dist/entities/address.test.d.ts +1 -0
  74. package/dist/entities/agent_conversation.d.ts +18 -0
  75. package/dist/entities/agent_conversation.test.d.ts +1 -0
  76. package/dist/entities/agent_skill.d.ts +33 -0
  77. package/dist/entities/agent_skill.test.d.ts +1 -0
  78. package/dist/entities/agent_skill_approval.d.ts +13 -0
  79. package/dist/entities/agent_skill_version.d.ts +18 -0
  80. package/dist/entities/agent_token_analytics.d.ts +50 -0
  81. package/dist/entities/agent_token_usage.d.ts +31 -0
  82. package/dist/entities/agent_token_usage.test.d.ts +1 -0
  83. package/dist/entities/assignment.d.ts +40 -0
  84. package/dist/entities/assignment.test.d.ts +1 -0
  85. package/dist/entities/automatic_payment_relationship.d.ts +14 -0
  86. package/dist/entities/automatic_payment_relationship.test.d.ts +1 -0
  87. package/dist/entities/bank.d.ts +20 -0
  88. package/dist/entities/bank.test.d.ts +1 -0
  89. package/dist/entities/cart.d.ts +50 -0
  90. package/dist/entities/cart.test.d.ts +1 -0
  91. package/dist/entities/cart_item.d.ts +33 -0
  92. package/dist/entities/cart_item.test.d.ts +1 -0
  93. package/dist/entities/cart_shipment_group.d.ts +12 -0
  94. package/dist/entities/cart_shipment_quote.d.ts +16 -0
  95. package/dist/entities/category.d.ts +26 -0
  96. package/dist/entities/category.test.d.ts +1 -0
  97. package/dist/entities/company.d.ts +137 -0
  98. package/dist/entities/company.test.d.ts +1 -0
  99. package/dist/entities/company_invitation.d.ts +16 -0
  100. package/dist/entities/company_invitation.test.d.ts +1 -0
  101. package/dist/entities/country_tax.d.ts +20 -0
  102. package/dist/entities/country_tax.test.d.ts +1 -0
  103. package/dist/entities/discount.d.ts +19 -0
  104. package/dist/entities/discount.test.d.ts +1 -0
  105. package/dist/entities/discount_group.d.ts +20 -0
  106. package/dist/entities/discount_group.test.d.ts +1 -0
  107. package/dist/entities/domain.d.ts +629 -0
  108. package/dist/entities/domain.test.d.ts +1 -0
  109. package/dist/entities/domain_chat_settings.d.ts +33 -0
  110. package/dist/entities/domain_chat_settings.test.d.ts +1 -0
  111. package/dist/entities/domain_invitation.d.ts +17 -0
  112. package/dist/entities/domain_invitation.test.d.ts +1 -0
  113. package/dist/entities/domain_tag.d.ts +21 -0
  114. package/dist/entities/domain_tag.test.d.ts +1 -0
  115. package/dist/entities/draft.d.ts +31 -0
  116. package/dist/entities/draft.test.d.ts +1 -0
  117. package/dist/entities/draft_comment.d.ts +28 -0
  118. package/dist/entities/draft_comment.test.d.ts +1 -0
  119. package/dist/entities/draft_preview.d.ts +18 -0
  120. package/dist/entities/draft_preview.test.d.ts +1 -0
  121. package/dist/entities/draft_preview_layer.d.ts +12 -0
  122. package/dist/entities/draft_preview_layer.test.d.ts +1 -0
  123. package/dist/entities/draft_template.d.ts +31 -0
  124. package/dist/entities/draft_template.js +8 -0
  125. package/dist/entities/draft_template.test.d.ts +1 -0
  126. package/dist/entities/email_address.d.ts +13 -0
  127. package/dist/entities/email_address.test.d.ts +1 -0
  128. package/dist/entities/email_counter.d.ts +11 -0
  129. package/dist/entities/email_counter.test.d.ts +1 -0
  130. package/dist/entities/enrolled_domain.d.ts +16 -0
  131. package/dist/entities/enrolled_domain.test.d.ts +1 -0
  132. package/dist/entities/exchange_rate.d.ts +11 -0
  133. package/dist/entities/exchange_rate.test.d.ts +1 -0
  134. package/dist/entities/file.d.ts +65 -0
  135. package/dist/entities/file.test.d.ts +1 -0
  136. package/dist/entities/internal_tag.d.ts +26 -0
  137. package/dist/entities/internal_tag.test.d.ts +1 -0
  138. package/dist/entities/inventory.d.ts +27 -0
  139. package/dist/entities/inventory.test.d.ts +1 -0
  140. package/dist/entities/inventory_group.d.ts +19 -0
  141. package/dist/entities/inventory_group.test.d.ts +1 -0
  142. package/dist/entities/inventory_unit_variation.d.ts +13 -0
  143. package/dist/entities/inventory_unit_variation.test.d.ts +1 -0
  144. package/dist/entities/invoice.d.ts +80 -0
  145. package/dist/entities/invoice.test.d.ts +1 -0
  146. package/dist/entities/item.d.ts +24 -0
  147. package/dist/entities/item.test.d.ts +1 -0
  148. package/dist/entities/job.d.ts +156 -0
  149. package/dist/entities/job.test.d.ts +1 -0
  150. package/dist/entities/job_comment.d.ts +24 -0
  151. package/dist/entities/job_comment.test.d.ts +1 -0
  152. package/dist/entities/job_note.d.ts +19 -0
  153. package/dist/entities/job_operation_log.d.ts +18 -0
  154. package/dist/entities/job_operation_log.test.d.ts +1 -0
  155. package/dist/entities/matching_inventory.d.ts +16 -0
  156. package/dist/entities/notification.d.ts +47 -0
  157. package/dist/entities/notification.test.d.ts +1 -0
  158. package/dist/entities/payment.d.ts +28 -0
  159. package/dist/entities/payment.test.d.ts +1 -0
  160. package/dist/entities/payment_device.d.ts +14 -0
  161. package/dist/entities/payment_device.test.d.ts +1 -0
  162. package/dist/entities/phone_number.d.ts +17 -0
  163. package/dist/entities/phone_number.test.d.ts +1 -0
  164. package/dist/entities/product.d.ts +148 -0
  165. package/dist/entities/product.test.d.ts +1 -0
  166. package/dist/entities/product_form.d.ts +22 -0
  167. package/dist/entities/product_form_version.d.ts +20 -0
  168. package/dist/entities/product_review.d.ts +74 -0
  169. package/dist/entities/production_comment.d.ts +24 -0
  170. package/dist/entities/production_comment.test.d.ts +1 -0
  171. package/dist/entities/quote.d.ts +29 -0
  172. package/dist/entities/quote.test.d.ts +1 -0
  173. package/dist/entities/quote_item.d.ts +24 -0
  174. package/dist/entities/quote_item.test.d.ts +1 -0
  175. package/dist/entities/reminder.d.ts +35 -0
  176. package/dist/entities/reminder.test.d.ts +1 -0
  177. package/dist/entities/session.d.ts +15 -0
  178. package/dist/entities/session.test.d.ts +1 -0
  179. package/dist/entities/shipment.d.ts +76 -0
  180. package/dist/entities/shipment.test.d.ts +1 -0
  181. package/dist/entities/shipment_item.d.ts +10 -0
  182. package/dist/entities/shipment_item.test.d.ts +1 -0
  183. package/dist/entities/shipment_item_fulfillment.d.ts +10 -0
  184. package/dist/entities/shipment_item_fulfillment.test.d.ts +1 -0
  185. package/dist/entities/shipment_log.d.ts +15 -0
  186. package/dist/entities/shipment_method.d.ts +28 -0
  187. package/dist/entities/shipment_method.test.d.ts +1 -0
  188. package/dist/entities/shipment_method_variation.d.ts +18 -0
  189. package/dist/entities/shipment_method_variation.test.d.ts +1 -0
  190. package/dist/entities/short_url.d.ts +17 -0
  191. package/dist/entities/short_url.test.d.ts +1 -0
  192. package/dist/entities/subscription_plan.d.ts +30 -0
  193. package/dist/entities/subscription_plan.test.d.ts +1 -0
  194. package/dist/entities/supply_domain.d.ts +14 -0
  195. package/dist/entities/supply_domain.test.d.ts +1 -0
  196. package/dist/entities/support_conversation.d.ts +30 -0
  197. package/dist/entities/support_conversation.test.d.ts +1 -0
  198. package/dist/entities/support_message.d.ts +15 -0
  199. package/dist/entities/support_message.test.d.ts +1 -0
  200. package/dist/entities/system_role.d.ts +10 -0
  201. package/dist/entities/system_role.test.d.ts +1 -0
  202. package/dist/entities/theme.d.ts +26 -0
  203. package/dist/entities/theme.test.d.ts +1 -0
  204. package/dist/entities/theme_css_setting.d.ts +12 -0
  205. package/dist/entities/theme_css_setting.test.d.ts +1 -0
  206. package/dist/entities/user.d.ts +142 -0
  207. package/dist/entities/user.test.d.ts +1 -0
  208. package/dist/entities/user_company.d.ts +14 -0
  209. package/dist/entities/user_company.test.d.ts +1 -0
  210. package/dist/entities/variation.d.ts +29 -0
  211. package/dist/entities/variation.test.d.ts +1 -0
  212. package/dist/entities/variation_field.d.ts +87 -0
  213. package/dist/entities/variation_field.js +33 -0
  214. package/dist/entities/variation_field.test.d.ts +1 -0
  215. package/dist/entities/variation_fields_option.d.ts +36 -0
  216. package/dist/entities/variation_fields_option.test.d.ts +1 -0
  217. package/dist/entities/variation_option.d.ts +23 -0
  218. package/dist/entities/variation_option.test.d.ts +1 -0
  219. package/dist/entities/variations_group.d.ts +20 -0
  220. package/dist/entities/variations_group.test.d.ts +1 -0
  221. package/dist/entity.d.ts +208 -0
  222. package/dist/index.d.ts +88 -0
  223. package/dist/merchi.d.ts +179 -0
  224. package/dist/merchi.test.d.ts +1 -0
  225. package/dist/pricing/discount.d.ts +2 -0
  226. package/dist/pricing/discount.test.d.ts +1 -0
  227. package/dist/pricing/estimate.d.ts +2 -0
  228. package/dist/pricing/estimate.js +56 -0
  229. package/dist/pricing/estimate.test.d.ts +1 -0
  230. package/dist/pricing/estimate.test.js +81 -0
  231. package/dist/pricing/golden.test.d.ts +1 -0
  232. package/dist/pricing/index.d.ts +7 -0
  233. package/dist/pricing/index.test.d.ts +1 -0
  234. package/dist/pricing/inventory.d.ts +2 -0
  235. package/dist/pricing/inventory.test.d.ts +1 -0
  236. package/dist/pricing/matrix.d.ts +10 -0
  237. package/dist/pricing/matrix.test.d.ts +1 -0
  238. package/dist/pricing/round.d.ts +13 -0
  239. package/dist/pricing/round.test.d.ts +1 -0
  240. package/dist/pricing/types.d.ts +137 -0
  241. package/dist/pricing/visibility.d.ts +3 -0
  242. package/dist/pricing/visibility.test.d.ts +1 -0
  243. package/dist/request.d.ts +56 -0
  244. package/dist/request.test.d.ts +1 -0
  245. package/dist/test_util.d.ts +3 -0
  246. package/dist/toasts.d.ts +14 -0
  247. package/dist/toasts.test.d.ts +1 -0
  248. package/dist/util/float.d.ts +1 -0
  249. package/dist/util/index.d.ts +3 -0
  250. package/dist/util/query_string.d.ts +1 -0
  251. package/dist/util/query_string.test.d.ts +1 -0
  252. package/dist/util/validation.d.ts +1 -0
  253. package/dist/util/validation.test.d.ts +1 -0
  254. package/dist/uuid.d.ts +1 -0
  255. package/dist/uuid.test.d.ts +1 -0
  256. package/package.json +2 -1
  257. package/src/constants/field_types.ts +1 -0
  258. package/src/constants/roles.ts +3 -0
  259. package/src/entities/draft_template.ts +6 -0
  260. package/src/entities/variation_field.ts +25 -0
  261. package/src/entity.ts +1 -1
  262. package/src/pricing/estimate.test.ts +95 -0
  263. package/src/pricing/estimate.ts +73 -0
  264. package/src/pricing/types.ts +10 -0
  265. package/tsconfig.json +1 -0
@@ -0,0 +1,156 @@
1
+ import { Address } from './address.js';
2
+ import { Assignment } from './assignment.js';
3
+ import { Company } from './company.js';
4
+ import { CountryTax } from './country_tax.js';
5
+ import { Domain } from './domain.js';
6
+ import { DomainTag } from './domain_tag.js';
7
+ import { Draft } from './draft.js';
8
+ import { DraftComment } from './draft_comment.js';
9
+ import { EmailAddress } from './email_address.js';
10
+ import { Entity } from '../entity.js';
11
+ import { MerchiFile } from './file.js';
12
+ import { MatchingInventory } from './matching_inventory.js';
13
+ import { InternalTag } from './internal_tag.js';
14
+ import { Invoice } from './invoice.js';
15
+ import { JobComment } from './job_comment.js';
16
+ import { JobNote } from './job_note.js';
17
+ import { JobOperationLog } from './job_operation_log.js';
18
+ import { Notification } from './notification.js';
19
+ import { PhoneNumber } from './phone_number.js';
20
+ import { Product } from './product.js';
21
+ import { Reminder } from './reminder.js';
22
+ import { Shipment } from './shipment.js';
23
+ import { User } from './user.js';
24
+ import { Variation } from './variation.js';
25
+ import { VariationsGroup } from './variations_group.js';
26
+ import { InventoryStatus } from '../constants/inventory_statuses.js';
27
+ import { Item } from './item.js';
28
+ export declare class Job extends Entity {
29
+ protected static resourceName: string;
30
+ protected static singularName: string;
31
+ protected static pluralName: string;
32
+ archived?: Date | null;
33
+ id?: number;
34
+ jobType?: number;
35
+ quantity?: number;
36
+ currency?: string;
37
+ jobNotes?: JobNote[];
38
+ operationLogs?: JobOperationLog[];
39
+ shopifyShopUrl?: string | null;
40
+ shopifyOrderId?: string;
41
+ shopifyOrderLineItemId?: string;
42
+ productionStatus?: number | null;
43
+ productionQuotingSpec?: string | null;
44
+ productionSpecChanged?: boolean;
45
+ productionQuotingReopened?: boolean;
46
+ designStatus?: number | null;
47
+ supplyChainRequestStatus?: number | null;
48
+ needsDrafting?: boolean;
49
+ assignToAgent?: boolean;
50
+ agentLastRunAt?: Date | null;
51
+ agentNextCheckAt?: Date | null;
52
+ needsGroupBuy?: boolean;
53
+ needsProduction?: boolean;
54
+ needsShipping?: boolean;
55
+ sendWhatsapp?: boolean;
56
+ needsInvoicing?: boolean;
57
+ needsInventory?: boolean;
58
+ needsSupplyChainRequest?: boolean;
59
+ showProductionFilesToClient?: boolean;
60
+ allowClientDraftContribution?: boolean;
61
+ quoteSet?: boolean;
62
+ jobInfoApprovedByClient?: boolean;
63
+ groupBuyStatus?: number | null;
64
+ paymentStatus?: number | null;
65
+ deductionDate?: Date | null;
66
+ shippingStatus?: number | null;
67
+ completed?: boolean;
68
+ callToActions?: string;
69
+ callToActionDetails?: any[];
70
+ priority?: number;
71
+ jobWeight?: number | null;
72
+ jobVolume?: number | null;
73
+ received?: Date;
74
+ deadline?: Date;
75
+ updated?: Date;
76
+ dateLastActioned?: Date | null;
77
+ dateFirstActioned?: Date | null;
78
+ groupBuyProductionStarted?: Date;
79
+ automaticPriceEnabled?: boolean;
80
+ dropShip?: boolean;
81
+ pickUp?: boolean;
82
+ costPerUnit?: number | null;
83
+ cost?: number | null;
84
+ taxAmount?: number | null;
85
+ totalCost?: number | null;
86
+ inventoriesStatus?: InventoryStatus;
87
+ unreadNotificationsCount?: number;
88
+ unreadJobInfoNotificationsCount?: number;
89
+ unreadJobDraftingNotificationsCount?: number;
90
+ unreadJobProductionNotificationsCount?: number;
91
+ unreadJobShippingNotificationsCount?: number;
92
+ unreadJobInvoicingNotificationsCount?: number;
93
+ limitedStock?: boolean;
94
+ inventoryCount?: number;
95
+ inventorySufficient?: boolean;
96
+ items?: Item[];
97
+ drafts?: Draft[];
98
+ sharedDrafts?: Draft[];
99
+ ownDrafts?: Draft[];
100
+ comments?: JobComment[];
101
+ client?: User;
102
+ clientBrowser?: string;
103
+ clientDevice?: string;
104
+ clientOs?: string;
105
+ clientIp?: string;
106
+ clientOrigin?: string;
107
+ sourceChannel?: string | null;
108
+ utmSource?: string | null;
109
+ utmMedium?: string | null;
110
+ utmCampaign?: string | null;
111
+ utmContent?: string | null;
112
+ utmTerm?: string | null;
113
+ sourceClickId?: string | null;
114
+ sourceLanding?: string | null;
115
+ sourceReferrer?: string | null;
116
+ checkoutType?: string | null;
117
+ manager?: User | null;
118
+ designer?: User | null;
119
+ clientCompany?: Company | null;
120
+ notificationSubscribers?: User[];
121
+ clientPhone?: PhoneNumber | null;
122
+ clientEmail?: EmailAddress | null;
123
+ clientCompanyPhone?: PhoneNumber | null;
124
+ clientCompanyEmail?: EmailAddress | null;
125
+ product?: Product;
126
+ supplyChainRequestProduct?: Product;
127
+ draftComments?: DraftComment[];
128
+ preDraftCommentsCount?: number;
129
+ taxType?: CountryTax | null;
130
+ internalTags?: InternalTag[];
131
+ tags?: DomainTag[];
132
+ createdProducts?: Product[];
133
+ shipping?: Address | null;
134
+ productionShippingAddress?: Address | null;
135
+ domain?: Domain;
136
+ invoice?: Invoice | null;
137
+ productionFiles?: MerchiFile[];
138
+ clientFiles?: MerchiFile[];
139
+ shipment?: Shipment | null;
140
+ matchingInventories?: MatchingInventory[];
141
+ variationsGroups?: VariationsGroup[];
142
+ variations?: Variation[];
143
+ notifications?: Notification[];
144
+ assignments?: Assignment[];
145
+ reminders?: Reminder[];
146
+ supplyAssignment?: Assignment;
147
+ supplyJob?: Job;
148
+ supplyQuoteTotalCost?: number;
149
+ hasValidVolume?: boolean;
150
+ hasValidWeight?: boolean;
151
+ isNewClient?: boolean;
152
+ isTest?: boolean;
153
+ getQuote: () => Promise<this>;
154
+ deduct: (matchingInventories: MatchingInventory[]) => Promise<this>;
155
+ bulkDeduct: () => Promise<this>;
156
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ import { Entity } from '../entity.js';
2
+ import { MerchiFile } from './file.js';
3
+ import { Job } from './job.js';
4
+ import { Notification } from './notification.js';
5
+ import { User } from './user.js';
6
+ export declare class JobComment extends Entity {
7
+ protected static resourceName: string;
8
+ protected static singularName: string;
9
+ protected static pluralName: string;
10
+ archived?: Date | null;
11
+ id?: number;
12
+ date?: Date | null;
13
+ text?: string;
14
+ sendSms?: boolean;
15
+ sendEmail?: boolean;
16
+ sendWhatsapp?: boolean;
17
+ openToClient?: boolean;
18
+ urgency?: number;
19
+ files?: MerchiFile[];
20
+ forwards?: User[];
21
+ notifications?: Notification[];
22
+ job?: Job;
23
+ user?: User;
24
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { Entity } from '../entity.js';
2
+ import { MerchiFile } from './file.js';
3
+ import { Job } from './job.js';
4
+ import { User } from './user.js';
5
+ export declare class JobNote extends Entity {
6
+ protected static resourceName: string;
7
+ protected static singularName: string;
8
+ protected static pluralName: string;
9
+ archived?: Date | null;
10
+ id?: number;
11
+ noteType?: number;
12
+ richText?: string;
13
+ creationDate?: Date | null;
14
+ lastEditedTime?: Date | null;
15
+ files?: MerchiFile[];
16
+ job?: Job;
17
+ createdBy?: User;
18
+ lastEditedBy?: User;
19
+ }
@@ -0,0 +1,18 @@
1
+ import { Entity } from '../entity.js';
2
+ import type { Job } from './job.js';
3
+ import { User } from './user.js';
4
+ export declare class JobOperationLog extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ id?: string;
9
+ job?: Job | null;
10
+ user?: User | null;
11
+ sourceType?: string;
12
+ aiInvolved?: boolean;
13
+ action?: string;
14
+ payloadJson?: Record<string, unknown> | null;
15
+ changesJson?: Record<string, unknown> | null;
16
+ operationJson?: Record<string, unknown> | null;
17
+ createdAt?: Date | null;
18
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Entity } from '../entity.js';
2
+ import { Job } from './job.js';
3
+ import { Inventory } from './inventory.js';
4
+ import { VariationsGroup } from './variations_group.js';
5
+ import { InventoryStatus } from '../constants/inventory_statuses.js';
6
+ export declare class MatchingInventory extends Entity {
7
+ protected static resourceName: string;
8
+ protected static singularName: string;
9
+ protected static pluralName: string;
10
+ archived?: Date | null;
11
+ deductionDate?: Date | null;
12
+ job?: Job;
13
+ group?: VariationsGroup | null;
14
+ inventory?: Inventory | null;
15
+ status?: InventoryStatus;
16
+ }
@@ -0,0 +1,47 @@
1
+ import { Assignment } from './assignment.js';
2
+ import { Domain } from './domain.js';
3
+ import { Draft } from './draft.js';
4
+ import { DraftComment } from './draft_comment.js';
5
+ import { Entity } from '../entity.js';
6
+ import { MerchiFile } from './file.js';
7
+ import { Invoice } from './invoice.js';
8
+ import { Job } from './job.js';
9
+ import { JobComment } from './job_comment.js';
10
+ import { ProductionComment } from './production_comment.js';
11
+ import { Reminder } from './reminder.js';
12
+ import { ShortUrl } from './short_url.js';
13
+ import { User } from './user.js';
14
+ export declare class Notification extends Entity {
15
+ protected static resourceName: string;
16
+ protected static singularName: string;
17
+ protected static pluralName: string;
18
+ archived?: Date | null;
19
+ id?: number;
20
+ notificationType?: number;
21
+ date?: Date;
22
+ emailOpenedAt?: Date | null;
23
+ seen?: boolean;
24
+ sendEmail?: boolean;
25
+ sendSms?: boolean;
26
+ urgency?: number;
27
+ description?: string | null;
28
+ subject?: string | null;
29
+ message?: string;
30
+ htmlMessage?: string;
31
+ link?: string | null;
32
+ section?: number;
33
+ shortUrl?: ShortUrl | null;
34
+ recipient?: User;
35
+ sender?: User | null;
36
+ relatedJob?: Job | null;
37
+ relatedDraft?: Draft | null;
38
+ relatedAssignment?: Assignment | null;
39
+ relatedInvoice?: Invoice | null;
40
+ relatedJobComment?: JobComment | null;
41
+ relatedDraftComment?: DraftComment | null;
42
+ relatedProductionComment?: ProductionComment | null;
43
+ domain?: Domain;
44
+ avatar?: MerchiFile | null;
45
+ attachment?: MerchiFile | null;
46
+ reminders?: Reminder[];
47
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,28 @@
1
+ import { Entity } from '../entity.js';
2
+ import { Invoice } from './invoice.js';
3
+ import { User } from './user.js';
4
+ import { AutomaticPaymentRelationship } from './automatic_payment_relationship.js';
5
+ export declare class Payment extends Entity {
6
+ protected static resourceName: string;
7
+ protected static singularName: string;
8
+ protected static pluralName: string;
9
+ archived?: Date | null;
10
+ id?: number;
11
+ payDate?: Date;
12
+ paymentType?: number;
13
+ paymentProvider?: string;
14
+ paymentMethod?: string;
15
+ refundedAmount?: number;
16
+ refundStatus?: string | null;
17
+ note?: string;
18
+ amount?: number;
19
+ autoRefundable?: boolean;
20
+ refunded?: Date | null;
21
+ sendSms?: boolean;
22
+ sendEmail?: boolean;
23
+ invoice?: Invoice | null;
24
+ paymentRecorder?: User | null;
25
+ refundIssuer?: User | null;
26
+ chargedByPaymentRelationship?: AutomaticPaymentRelationship | null;
27
+ refund: () => Promise<this>;
28
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { Entity } from '../entity.js';
2
+ import { Company } from './company.js';
3
+ export declare class PaymentDevice extends Entity {
4
+ protected static resourceName: string;
5
+ protected static singularName: string;
6
+ protected static pluralName: string;
7
+ archived?: Date | null;
8
+ id?: number;
9
+ code?: string;
10
+ deviceId?: string;
11
+ squareId?: string;
12
+ deviceData?: string;
13
+ company?: Company | null;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Company } from './company.js';
2
+ import { Entity } from '../entity.js';
3
+ import { User } from './user.js';
4
+ export declare class PhoneNumber 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
+ number?: string;
11
+ code?: string;
12
+ users?: User[];
13
+ companies?: Company[];
14
+ paymentCompanies?: Company[];
15
+ localFormatNumber?: string;
16
+ internationalFormatNumber?: string;
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,148 @@
1
+ import { CartItem } from './cart_item.js';
2
+ import { Category } from './category.js';
3
+ import { Company } from './company.js';
4
+ import { ProductForm } from './product_form.js';
5
+ import { CountryTax } from './country_tax.js';
6
+ import { DiscountGroup } from './discount_group.js';
7
+ import { Domain } from './domain.js';
8
+ import { DomainTag } from './domain_tag.js';
9
+ import { DraftPreview } from './draft_preview.js';
10
+ import { DraftTemplate } from './draft_template.js';
11
+ import { Entity } from '../entity.js';
12
+ import { MerchiFile } from './file.js';
13
+ import { Reminder } from './reminder.js';
14
+ import { InternalTag } from './internal_tag.js';
15
+ import { Inventory } from './inventory.js';
16
+ import { InventoryGroup } from './inventory_group.js';
17
+ import { SupplyDomain } from './supply_domain.js';
18
+ import { User } from './user.js';
19
+ import { VariationField } from './variation_field.js';
20
+ import { ShipmentMethod } from './shipment_method.js';
21
+ import { AutoAssignProductionOnAction } from '../constants/auto_assign_production_on_actions.js';
22
+ import { Job } from './job.js';
23
+ export declare class Product extends Entity {
24
+ protected static resourceName: string;
25
+ protected static singularName: string;
26
+ protected static pluralName: string;
27
+ archived?: Date | null;
28
+ id?: number;
29
+ position?: number;
30
+ created?: Date;
31
+ updated?: Date;
32
+ storefrontLastDeployed?: Date | null;
33
+ createdBy?: User | null;
34
+ designer?: User | null;
35
+ updatedBy?: User | null;
36
+ productType?: number;
37
+ minimum?: number;
38
+ defaultQuantity?: number;
39
+ minimumPrice?: number;
40
+ setupPrice?: number;
41
+ setupPerGroup?: boolean;
42
+ minimumPerGroup?: boolean;
43
+ groupsFirst?: boolean;
44
+ independentVariationColumns?: number;
45
+ groupVariationColumns?: number;
46
+ deliveryDaysNormal?: number;
47
+ unitPrice?: number;
48
+ buyUnitPrice?: number;
49
+ unitPriceDiscountGroup?: DiscountGroup | null;
50
+ shipmentMethods?: ShipmentMethod[];
51
+ margin?: number;
52
+ unitWeight?: number | null;
53
+ unitHeight?: number | null;
54
+ unitWidth?: number | null;
55
+ unitDepth?: number | null;
56
+ name?: string;
57
+ country?: string;
58
+ currency?: string;
59
+ description?: string | null;
60
+ notes?: string | null;
61
+ internalUseNotes?: string;
62
+ internalUseAiContext?: string;
63
+ aiContext?: string;
64
+ googleMerchantCenterId?: string;
65
+ googleMerchantCenterTitle?: string;
66
+ googleMerchantCenterDescription?: string;
67
+ googleMerchantCenterProductUrl?: string;
68
+ googleMerchantCenterPrice?: number;
69
+ shopifyProductId?: string | null;
70
+ spProductId?: string | null;
71
+ useCompanyShipmentMethods?: boolean;
72
+ dropShipment?: boolean;
73
+ needsDrafting?: boolean;
74
+ needsProduction?: boolean;
75
+ needsShipping?: boolean;
76
+ needsInvoicing?: boolean;
77
+ needsInventory?: boolean;
78
+ featureDeadline?: Date;
79
+ showFeatureDeadline?: boolean;
80
+ showPublic?: boolean;
81
+ isDraft?: boolean;
82
+ showGroupBuyStatus?: boolean;
83
+ groupBuyStatus?: number | null;
84
+ acceptSquare?: boolean;
85
+ acceptStripe?: boolean;
86
+ acceptPaypal?: boolean;
87
+ acceptUtrust?: boolean;
88
+ acceptBankTransfer?: boolean;
89
+ acceptPhonePayment?: boolean;
90
+ allowAddToCart?: boolean;
91
+ allowAutomaticPaymentSupply?: boolean;
92
+ allowGroupBuy?: boolean;
93
+ allowPaymentUpfront?: boolean;
94
+ allowQuotation?: boolean;
95
+ allowChainedInventoryCreation?: boolean;
96
+ allowClientDraftContribution?: boolean;
97
+ allowAdditionalDesignObjects?: boolean;
98
+ chainedInventoryHandlingUnitPrice?: number;
99
+ bestPrice?: number;
100
+ unitVolume?: number;
101
+ categories?: Category[];
102
+ platformCategories?: Category[];
103
+ discountGroups?: DiscountGroup[];
104
+ domain?: Domain;
105
+ taxType?: CountryTax | null;
106
+ originalProduct?: Product | null;
107
+ clonedFromProduct?: Product | null;
108
+ chainedSupplierProduct?: Product | null;
109
+ chainedSellerProducts?: Product[];
110
+ chainedInventorySupplierProduct?: Product | null;
111
+ chainedInventorySellerProducts?: Product[];
112
+ productForm?: ProductForm | null;
113
+ images?: MerchiFile[];
114
+ publicFiles?: MerchiFile[];
115
+ productionFiles?: MerchiFile[];
116
+ groupVariationFields?: VariationField[];
117
+ independentVariationFields?: VariationField[];
118
+ tags?: DomainTag[];
119
+ internalTags?: InternalTag[];
120
+ featureImage?: MerchiFile | null;
121
+ createdByJob?: Job | null;
122
+ defaultJob?: Job | null;
123
+ savedByCompanies?: Company[];
124
+ suppliedByDomains?: SupplyDomain[];
125
+ autoAssignProductionOnAction?: AutoAssignProductionOnAction;
126
+ supplyDomains?: SupplyDomain[];
127
+ inventoriesOpen?: boolean;
128
+ clientSideCalculation?: boolean;
129
+ supplyChainDisabled?: boolean;
130
+ inventories?: Inventory[];
131
+ inventoryGroups?: InventoryGroup[];
132
+ cartItems?: CartItem[];
133
+ jobs?: Job[];
134
+ reminders?: Reminder[];
135
+ supplyChainRequestJobs?: Job[];
136
+ savedByUsers?: User[];
137
+ suppliers?: User[];
138
+ draftTemplates?: DraftTemplate[];
139
+ draftPreviews?: DraftPreview[];
140
+ duplicate: () => Promise<Product>;
141
+ primaryImage: () => MerchiFile | null;
142
+ hasGroupVariationFields: () => boolean;
143
+ hasIndependentVariationFields: () => boolean;
144
+ allVariationFields: () => VariationField[];
145
+ buildEmptyVariations: () => import("./variation.js").Variation[];
146
+ buildEmptyVariationGroup: () => import("./variations_group.js").VariationsGroup;
147
+ removeVariationField: (variationField: VariationField) => VariationField[];
148
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import { Entity } from '../entity.js';
2
+ import { ProductFormVersion } from './product_form_version.js';
3
+ import { User } from './user.js';
4
+ export declare class ProductForm extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ archived?: Date | null;
9
+ created?: Date;
10
+ updated?: Date;
11
+ id?: number;
12
+ name?: string;
13
+ description?: string;
14
+ tags?: string[];
15
+ source?: string;
16
+ sdkVersion?: string;
17
+ status?: string;
18
+ activeVersion?: ProductFormVersion | null;
19
+ versions?: ProductFormVersion[];
20
+ createdBy?: User | null;
21
+ updatedBy?: User | null;
22
+ }
@@ -0,0 +1,20 @@
1
+ import { Entity } from '../entity.js';
2
+ import { User } from './user.js';
3
+ export declare class ProductFormVersion extends Entity {
4
+ protected static resourceName: string;
5
+ protected static singularName: string;
6
+ protected static pluralName: string;
7
+ created?: Date;
8
+ id?: number;
9
+ versionNumber?: number;
10
+ source?: string;
11
+ sdkVersion?: string;
12
+ compiledBundleUrl?: string | null;
13
+ bundleSha?: string | null;
14
+ compiledError?: string | null;
15
+ staticGateReport?: any;
16
+ status?: string;
17
+ approvedAt?: Date | null;
18
+ approvedBy?: User | null;
19
+ createdBy?: User | null;
20
+ }
@@ -0,0 +1,74 @@
1
+ import { Entity } from '../entity.js';
2
+ import type { Domain } from './domain.js';
3
+ import type { Job } from './job.js';
4
+ import type { Product } from './product.js';
5
+ /** Create payload; the API expects ``jobId`` — pass ``job`` with at least ``id``. */
6
+ export interface ProductReviewCreateInput {
7
+ job: {
8
+ id: number;
9
+ };
10
+ rating: number;
11
+ title?: string | null;
12
+ content?: string | null;
13
+ }
14
+ export interface ProductReviewPatchInput {
15
+ status?: string;
16
+ rejectionReason?: string | null;
17
+ rating?: number;
18
+ title?: string | null;
19
+ content?: string | null;
20
+ }
21
+ /**
22
+ * Post-purchase product review. List/create are nested under ``/products/:id/reviews/``;
23
+ * updates use ``/product-reviews/:id/``. Do not use :meth:`Entity.create` / :meth:`Entity.list`
24
+ * for this resource.
25
+ *
26
+ * API responses use ``jobId``, ``productId``, and ``domainId``; this entity maps those onto
27
+ * ``job``, ``product``, and ``domain`` (minimal ``{ id }`` objects unless the API nests more).
28
+ */
29
+ export declare class ProductReview extends Entity {
30
+ protected static resourceName: string;
31
+ protected static singularName: string;
32
+ protected static pluralName: string;
33
+ id?: number;
34
+ product?: Product;
35
+ domain?: Domain;
36
+ authorUserId?: number;
37
+ authorName?: string | null;
38
+ job?: Job;
39
+ rating?: number;
40
+ title?: string | null;
41
+ content?: string | null;
42
+ status?: string;
43
+ purchaseInvoiceId?: number | null;
44
+ /** ISO 8601 string from the API. */
45
+ submittedAt?: string | null;
46
+ /** ISO 8601 string from the API. */
47
+ updatedAt?: string | null;
48
+ rejectionReason?: string | null;
49
+ /**
50
+ * Map flat API fields (``jobId``, ``productId``, ``domainId``) to nested
51
+ * ``job`` / ``product`` / ``domain`` objects before :meth:`Entity.fromJson`.
52
+ */
53
+ static normalizeApiJson(json: any): any;
54
+ /**
55
+ * Domain managers/admins: list reviews for a product.
56
+ */
57
+ static listForProduct(this: typeof ProductReview, productId: number, options?: {
58
+ withRights?: boolean;
59
+ }): Promise<ProductReview[]>;
60
+ /**
61
+ * Buyer: create a review for the catalog ``productId`` (master product).
62
+ * ``body.job.id`` must be a completed job whose line item resolves to this product.
63
+ */
64
+ static createForProduct(this: typeof ProductReview, productId: number, body: ProductReviewCreateInput, options?: {
65
+ withRights?: boolean;
66
+ }): Promise<ProductReview>;
67
+ /**
68
+ * Partial update (moderation or author edit). Uses ``multipart/form-data`` fields
69
+ * matching the Merchi API.
70
+ */
71
+ patch(payload: ProductReviewPatchInput, options?: {
72
+ withRights?: boolean;
73
+ }): Promise<this>;
74
+ }
@@ -0,0 +1,24 @@
1
+ import { Assignment } from './assignment.js';
2
+ import { Entity } from '../entity.js';
3
+ import { MerchiFile } from './file.js';
4
+ import { Notification } from './notification.js';
5
+ import { User } from './user.js';
6
+ export declare class ProductionComment extends Entity {
7
+ protected static resourceName: string;
8
+ protected static singularName: string;
9
+ protected static pluralName: string;
10
+ archived?: Date | null;
11
+ id?: number;
12
+ date?: Date | null;
13
+ urgency?: number;
14
+ text?: string;
15
+ isUrgentQuestion?: boolean;
16
+ sendSms?: boolean;
17
+ sendEmail?: boolean;
18
+ sendWhatsapp?: boolean;
19
+ files?: MerchiFile[];
20
+ user?: User;
21
+ forwards?: User[];
22
+ notifications?: Notification[];
23
+ assignment?: Assignment;
24
+ }
@@ -0,0 +1 @@
1
+ export {};