@merchi/sdk 1.42.14 → 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 (266) 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.js +4 -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/entity.js +6 -4
  223. package/dist/index.d.ts +88 -0
  224. package/dist/merchi.d.ts +179 -0
  225. package/dist/merchi.test.d.ts +1 -0
  226. package/dist/pricing/discount.d.ts +2 -0
  227. package/dist/pricing/discount.test.d.ts +1 -0
  228. package/dist/pricing/estimate.d.ts +2 -0
  229. package/dist/pricing/estimate.js +56 -0
  230. package/dist/pricing/estimate.test.d.ts +1 -0
  231. package/dist/pricing/estimate.test.js +81 -0
  232. package/dist/pricing/golden.test.d.ts +1 -0
  233. package/dist/pricing/index.d.ts +7 -0
  234. package/dist/pricing/index.test.d.ts +1 -0
  235. package/dist/pricing/inventory.d.ts +2 -0
  236. package/dist/pricing/inventory.test.d.ts +1 -0
  237. package/dist/pricing/matrix.d.ts +10 -0
  238. package/dist/pricing/matrix.test.d.ts +1 -0
  239. package/dist/pricing/round.d.ts +13 -0
  240. package/dist/pricing/round.test.d.ts +1 -0
  241. package/dist/pricing/types.d.ts +137 -0
  242. package/dist/pricing/visibility.d.ts +3 -0
  243. package/dist/pricing/visibility.test.d.ts +1 -0
  244. package/dist/request.d.ts +56 -0
  245. package/dist/request.test.d.ts +1 -0
  246. package/dist/test_util.d.ts +3 -0
  247. package/dist/toasts.d.ts +14 -0
  248. package/dist/toasts.test.d.ts +1 -0
  249. package/dist/util/float.d.ts +1 -0
  250. package/dist/util/index.d.ts +3 -0
  251. package/dist/util/query_string.d.ts +1 -0
  252. package/dist/util/query_string.test.d.ts +1 -0
  253. package/dist/util/validation.d.ts +1 -0
  254. package/dist/util/validation.test.d.ts +1 -0
  255. package/dist/uuid.d.ts +1 -0
  256. package/dist/uuid.test.d.ts +1 -0
  257. package/package.json +2 -1
  258. package/src/constants/field_types.ts +1 -0
  259. package/src/entities/draft_template.ts +6 -0
  260. package/src/entities/variation_field.ts +25 -0
  261. package/src/entities/variation_fields_option.ts +3 -0
  262. package/src/entity.ts +6 -5
  263. package/src/pricing/estimate.test.ts +95 -0
  264. package/src/pricing/estimate.ts +73 -0
  265. package/src/pricing/types.ts +10 -0
  266. package/tsconfig.json +1 -0
@@ -0,0 +1,29 @@
1
+ import { Assignment } from './assignment.js';
2
+ import { QuoteItem } from './quote_item.js';
3
+ import { Shipment } from './shipment.js';
4
+ import { Invoice } from './invoice.js';
5
+ import { Entity } from '../entity.js';
6
+ interface CalculateOptions {
7
+ strictEmbed?: boolean;
8
+ }
9
+ export declare class Quote extends Entity {
10
+ protected static resourceName: string;
11
+ protected static singularName: string;
12
+ protected static pluralName: string;
13
+ archived?: Date | null;
14
+ currency?: string;
15
+ id?: number;
16
+ agreedDeadline?: Date | null;
17
+ shipments?: Shipment[];
18
+ quoteItems?: QuoteItem[];
19
+ assignments?: Assignment[];
20
+ invoice?: Invoice | null;
21
+ quoteTotal: (options?: CalculateOptions) => string;
22
+ calculateTotal: (options?: CalculateOptions) => string;
23
+ calculateSubTotal: (options?: CalculateOptions) => string;
24
+ calculateTaxAmount: (options?: CalculateOptions) => string;
25
+ findQuoteItemIndex: (quoteItemId: number) => number;
26
+ removeQuoteItem: (quoteItem: QuoteItem) => void;
27
+ deadlineTimeDifference: () => number | null;
28
+ }
29
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ import { CountryTax } from './country_tax.js';
2
+ import { Entity } from '../entity.js';
3
+ import { Quote } from './quote.js';
4
+ interface CalculateOptions {
5
+ strictEmbed?: boolean;
6
+ }
7
+ export declare class QuoteItem extends Entity {
8
+ protected static resourceName: string;
9
+ protected static singularName: string;
10
+ protected static pluralName: string;
11
+ archived?: Date | null;
12
+ id?: number;
13
+ type?: number;
14
+ quantity?: number;
15
+ description?: string | null;
16
+ unitPrice?: number | null;
17
+ taxAmount?: number | null;
18
+ taxType?: CountryTax;
19
+ quote?: Quote;
20
+ calculateSubTotal: (options?: CalculateOptions) => string;
21
+ calculateTaxAmount: (options?: CalculateOptions) => string;
22
+ calculateTotal: (options?: CalculateOptions) => string;
23
+ }
24
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ import { Assignment } from './assignment.js';
2
+ import { Company } from './company.js';
3
+ import { Domain } from './domain.js';
4
+ import { DomainTag } from './domain_tag.js';
5
+ import { Entity } from '../entity.js';
6
+ import { Invoice } from './invoice.js';
7
+ import { Job } from './job.js';
8
+ import { Notification } from './notification.js';
9
+ import { Product } from './product.js';
10
+ import { Shipment } from './shipment.js';
11
+ import { User } from './user.js';
12
+ export declare class Reminder extends Entity {
13
+ protected static resourceName: string;
14
+ protected static singularName: string;
15
+ protected static pluralName: string;
16
+ id?: number;
17
+ user?: User;
18
+ userProfile?: User;
19
+ sendEmail?: boolean;
20
+ sendSms?: boolean;
21
+ created?: Date;
22
+ updated?: Date;
23
+ remindDate?: Date;
24
+ message?: string;
25
+ domainTags?: DomainTag[];
26
+ remindUsers?: User[];
27
+ job?: Job;
28
+ product?: Product;
29
+ invoice?: Invoice;
30
+ domain?: Domain;
31
+ company?: Company;
32
+ shipment?: Shipment;
33
+ assignment?: Assignment;
34
+ notifications?: Notification[];
35
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Domain } from './domain.js';
2
+ import { Entity } from '../entity.js';
3
+ import { User } from './user.js';
4
+ export declare class Session extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ protected static primaryKey: string;
9
+ archived?: Date | null;
10
+ ip?: string | null;
11
+ token?: string;
12
+ remember?: boolean | null;
13
+ user?: User;
14
+ domain?: Domain | null;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,76 @@
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 { DomainTag } from './domain_tag.js';
6
+ import { Entity } from '../entity.js';
7
+ import { InternalTag } from './internal_tag.js';
8
+ import { Invoice } from './invoice.js';
9
+ import { Quote } from './quote.js';
10
+ import { Reminder } from './reminder.js';
11
+ import { Job } from './job.js';
12
+ import { MerchiFile } from './file.js';
13
+ import { User } from './user.js';
14
+ import { ShipmentItem } from './shipment_item.js';
15
+ import { ShipmentLog } from './shipment_log.js';
16
+ import { ShipmentMethod } from './shipment_method.js';
17
+ interface CalculateOptions {
18
+ strictEmbed?: boolean;
19
+ }
20
+ export declare class Shipment extends Entity {
21
+ protected static resourceName: string;
22
+ protected static singularName: string;
23
+ protected static pluralName: string;
24
+ archived?: Date | null;
25
+ id?: number;
26
+ name?: string;
27
+ shipmentServiceBookingInfo?: string;
28
+ shipmentServiceQuote?: string;
29
+ pickUp?: boolean;
30
+ internalTags?: InternalTag[];
31
+ shipmentLabel?: MerchiFile | null;
32
+ creationDate?: Date | null;
33
+ dispatchedDate?: Date | null;
34
+ dispatchDate?: Date | null;
35
+ expectedReceiveDate?: Date | null;
36
+ receivedDate?: Date | null;
37
+ senderResponsible?: boolean;
38
+ senderNotes?: string | null;
39
+ receiverNotes?: string | null;
40
+ transportCompany?: number | null;
41
+ transportCompanyName?: string | null;
42
+ trackingNumber?: string | null;
43
+ buyCost?: number | null;
44
+ buyCurrency?: string | null;
45
+ cost?: number | null;
46
+ taxAmount?: number | null;
47
+ maxWeight?: number | null;
48
+ maxVolume?: number | null;
49
+ sendSms?: boolean;
50
+ sendEmail?: boolean;
51
+ sendWhatsapp?: boolean;
52
+ taxType?: CountryTax | null;
53
+ isOnBehalfOf?: boolean;
54
+ onBehalfOf?: User | null;
55
+ onBehalfOfCompany?: Company | null;
56
+ sender?: User | null;
57
+ senderCompany?: Company | null;
58
+ senderAddress?: Address | null;
59
+ blindShipTo?: string | null;
60
+ receiver?: User | null;
61
+ receiverCompany?: Company | null;
62
+ receiverAddress?: Address | null;
63
+ invoices?: Invoice[];
64
+ quote?: Quote | null;
65
+ shipmentMethod?: ShipmentMethod | null;
66
+ tags?: DomainTag[];
67
+ assignments?: Assignment[];
68
+ items?: ShipmentItem[];
69
+ jobs?: Job[];
70
+ reminders?: Reminder[];
71
+ logs?: ShipmentLog[];
72
+ calculateSubTotal: (options?: CalculateOptions) => string;
73
+ calculateTaxAmount: (options?: CalculateOptions) => string;
74
+ calculateTotal: (options?: CalculateOptions) => string;
75
+ }
76
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Entity } from '../entity.js';
2
+ import { Job } from './job.js';
3
+ import { ShipmentItemFulfillment } from './shipment_item_fulfillment.js';
4
+ export declare class ShipmentItem extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ job?: Job;
9
+ fulfillments?: ShipmentItemFulfillment[];
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Entity } from '../entity.js';
2
+ import { Assignment } from './assignment.js';
3
+ import { Job } from './job.js';
4
+ export declare class ShipmentItemFulfillment extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ assignment?: Assignment;
9
+ job?: Job;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Entity } from '../entity.js';
2
+ import type { Shipment } from './shipment.js';
3
+ import { User } from './user.js';
4
+ export declare class ShipmentLog extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ id?: number;
9
+ shipment?: Shipment | null;
10
+ user?: User | null;
11
+ sourceType?: string;
12
+ message?: string;
13
+ detailJson?: Record<string, unknown> | null;
14
+ createdAt?: Date | null;
15
+ }
@@ -0,0 +1,28 @@
1
+ import { ShipmentService } from '../constants/shipment_services.js';
2
+ import { Entity } from '../entity.js';
3
+ import { Address } from './address.js';
4
+ import { Company } from './company.js';
5
+ import { CountryTax } from './country_tax.js';
6
+ import { Product } from './product.js';
7
+ import { ShipmentMethodVariation } from './shipment_method_variation.js';
8
+ export declare class ShipmentMethod extends Entity {
9
+ protected static resourceName: string;
10
+ protected static singularName: string;
11
+ protected static pluralName: string;
12
+ id?: number;
13
+ name?: string;
14
+ shipmentService?: ShipmentService | null;
15
+ originAddress?: Address | null;
16
+ pickUp?: boolean;
17
+ company?: Company | null;
18
+ companyDefault?: boolean;
19
+ defaultCost?: number;
20
+ currency?: string;
21
+ buyCost?: number;
22
+ buyCurrency?: string;
23
+ transportCompany?: number | null;
24
+ transportCompanyName?: string;
25
+ taxType?: CountryTax | null;
26
+ variations?: ShipmentMethodVariation[];
27
+ products?: Product[];
28
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import { Entity } from '../entity.js';
2
+ import { CountryTax } from './country_tax.js';
3
+ import { ShipmentMethod } from './shipment_method.js';
4
+ export declare class ShipmentMethodVariation extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ id?: number;
9
+ destinationCountry?: string | null;
10
+ destinationState?: string | null;
11
+ cost?: number | null;
12
+ currency?: string;
13
+ buyCost?: number | null;
14
+ buyCurrency?: string;
15
+ maxWeight?: number | null;
16
+ taxType?: CountryTax | null;
17
+ shipmentMethod?: ShipmentMethod;
18
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Entity } from '../entity.js';
2
+ import { Notification } from './notification.js';
3
+ import { User } from './user.js';
4
+ export declare class ShortUrl 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
+ prefixToken?: string;
11
+ suffixToken?: string;
12
+ originalLink?: string;
13
+ triedTimes?: number;
14
+ lastLookup?: Date | null;
15
+ user?: User | null;
16
+ notification?: Notification[];
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import { Entity } from '../entity.js';
2
+ import { CountryTax } from './country_tax.js';
3
+ import { User } from './user.js';
4
+ import { Company } from './company.js';
5
+ export declare class SubscriptionPlan extends Entity {
6
+ protected static resourceName: string;
7
+ protected static singularName: string;
8
+ protected static pluralName: string;
9
+ id?: number;
10
+ created?: Date | null;
11
+ updated?: Date | null;
12
+ createdBy?: User | null;
13
+ updatedBy?: User | null;
14
+ name?: string;
15
+ currency?: string;
16
+ tax?: CountryTax | null;
17
+ baseCost?: number;
18
+ whiteLabelDomainCost?: number;
19
+ perSmsCost?: number;
20
+ perUserCost?: number;
21
+ perDomainCost?: number;
22
+ transactionCost?: number;
23
+ commissionRate?: number;
24
+ baseUserCount?: number;
25
+ baseDomainCount?: number;
26
+ billingCycleDays?: number;
27
+ isPrivate?: boolean;
28
+ showPublic?: boolean;
29
+ companies?: Company[];
30
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { Domain } from './domain.js';
2
+ import { Entity } from '../entity.js';
3
+ import { Product } from './product.js';
4
+ export declare class SupplyDomain 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
+ needsDrafting?: boolean;
11
+ product?: Product;
12
+ supplyProduct?: Product | null;
13
+ domain?: Domain;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import { Domain } from './domain.js';
2
+ import { DomainTag } from './domain_tag.js';
3
+ import { Entity } from '../entity.js';
4
+ import { User } from './user.js';
5
+ import { SupportMessage } from './support_message.js';
6
+ export declare class SupportConversation extends Entity {
7
+ protected static resourceName: string;
8
+ protected static singularName: string;
9
+ protected static pluralName: string;
10
+ id?: number;
11
+ creationDate?: Date | null;
12
+ lastMessageAt?: Date | null;
13
+ archivedAt?: Date | null;
14
+ domain?: Domain;
15
+ tags?: DomainTag[];
16
+ guestId?: string | null;
17
+ guestContactEmail?: string | null;
18
+ guestContactName?: string | null;
19
+ /** Opaque client fingerprint for repeat-visitor / spam correlation (max 512 chars). */
20
+ clientFingerprint?: string | null;
21
+ /** Manager-assigned display name for this conversation. */
22
+ name?: string | null;
23
+ /** Freeform internal notes written by managers (not visible to guests). */
24
+ notes?: string | null;
25
+ user?: User | null;
26
+ assignedUser?: User | null;
27
+ aiAutoReply?: boolean;
28
+ messages?: SupportMessage[];
29
+ messagesCount?: number;
30
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Entity } from '../entity.js';
2
+ import { SupportConversation } from './support_conversation.js';
3
+ import { User } from './user.js';
4
+ export declare class SupportMessage extends Entity {
5
+ protected static resourceName: string;
6
+ protected static singularName: string;
7
+ protected static pluralName: string;
8
+ id?: number;
9
+ conversation?: SupportConversation;
10
+ senderType?: string;
11
+ user?: User | null;
12
+ content?: string;
13
+ creationDate?: Date | null;
14
+ isAiReply?: boolean;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Entity } from '../entity.js';
2
+ import { User } from './user.js';
3
+ export declare class SystemRole extends Entity {
4
+ protected static resourceName: string;
5
+ protected static singularName: string;
6
+ protected static pluralName: string;
7
+ id?: number;
8
+ role?: number;
9
+ user?: User;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ import { Domain } from './domain.js';
2
+ import { Entity } from '../entity.js';
3
+ import { User } from './user.js';
4
+ export declare class Theme 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
+ mainCssStatus?: number;
11
+ mainCssErrorMessage?: string | null;
12
+ emailCssStatus?: number;
13
+ emailCssErrorMessage?: string | null;
14
+ lastUpdated?: Date;
15
+ mainCss?: string | null;
16
+ mainCssTemplateUsing?: string | null;
17
+ mainCssTemplateEditing?: string | null;
18
+ emailCss?: string | null;
19
+ emailCssTemplateUsing?: string | null;
20
+ emailCssTemplateEditing?: string | null;
21
+ domain?: Domain | null;
22
+ author?: User | null;
23
+ domains?: Domain[];
24
+ canBeActivated: () => boolean;
25
+ isActiveOnDomain: (domainId: number) => boolean;
26
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { Entity } from '../entity.js';
2
+ import { User } from './user.js';
3
+ export declare class ThemeCssSetting extends Entity {
4
+ protected static resourceName: string;
5
+ protected static singularName: string;
6
+ protected static pluralName: string;
7
+ id?: number;
8
+ created?: Date | null;
9
+ createdBy?: User | null;
10
+ allowedAttributes?: string;
11
+ notAllowedAttributes?: string;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,142 @@
1
+ import { Address } from './address.js';
2
+ import { Assignment } from './assignment.js';
3
+ import { Cart } from './cart.js';
4
+ import { Category } from './category.js';
5
+ import { CompanyInvitation } from './company_invitation.js';
6
+ import { DomainInvitation } from './domain_invitation.js';
7
+ import { Draft } from './draft.js';
8
+ import { DraftComment } from './draft_comment.js';
9
+ import { EmailAddress } from './email_address.js';
10
+ import { EnrolledDomain } from './enrolled_domain.js';
11
+ import { Domain } from './domain.js';
12
+ import { Entity } from '../entity.js';
13
+ import { MerchiFile } from './file.js';
14
+ import { Invoice } from './invoice.js';
15
+ import { Job } from './job.js';
16
+ import { JobComment } from './job_comment.js';
17
+ import { JobOperationLog } from './job_operation_log.js';
18
+ import { Notification } from './notification.js';
19
+ import { Payment } from './payment.js';
20
+ import { PhoneNumber } from './phone_number.js';
21
+ import { Product } from './product.js';
22
+ import { Reminder } from './reminder.js';
23
+ import { ProductionComment } from './production_comment.js';
24
+ import { Session } from './session.js';
25
+ import { Shipment } from './shipment.js';
26
+ import { ShipmentLog } from './shipment_log.js';
27
+ import { SystemRole } from './system_role.js';
28
+ import { Theme } from './theme.js';
29
+ import { UserCompany } from './user_company.js';
30
+ import { Company } from './company.js';
31
+ import { Role } from '../constants/roles.js';
32
+ import { InternalTag } from './internal_tag.js';
33
+ import { DomainTag } from './domain_tag.js';
34
+ import { UserType } from '../constants/user_types.js';
35
+ import { SystemRoles as SR } from '../constants/system_roles.js';
36
+ import lodash from 'lodash';
37
+ export declare class User extends Entity {
38
+ protected static resourceName: string;
39
+ protected static singularName: string;
40
+ protected static pluralName: string;
41
+ archived?: Date | null;
42
+ id?: number;
43
+ isSuperUser?: boolean;
44
+ userType?: UserType;
45
+ registeredAsGuest?: boolean;
46
+ isMerchiAgent?: boolean;
47
+ internalTags?: InternalTag[];
48
+ tags?: DomainTag[];
49
+ registeredUnderDomains?: Domain[];
50
+ password?: string | null;
51
+ salt?: string | null;
52
+ facebookUserId?: string | null;
53
+ resetToken?: string | null;
54
+ resetTokenDate?: Date | null;
55
+ smsToken?: string | null;
56
+ resetSmsTokenDate?: Date | null;
57
+ smsClientToken?: string | null;
58
+ smsTokenConfirmed?: boolean;
59
+ smsLoginThreshold?: number;
60
+ jobCountAsClient?: number;
61
+ totalInvoiceValue?: number;
62
+ hasStore?: boolean;
63
+ lastJobReceived?: boolean;
64
+ canEdit?: boolean;
65
+ enableCrashReports?: boolean;
66
+ enableClientEmails?: boolean;
67
+ clientToken?: string | null;
68
+ name?: string;
69
+ internalUseNotes?: string;
70
+ telegramUsername?: string;
71
+ wechatId?: string;
72
+ whatsappContactEnabled?: boolean;
73
+ internalUseAiContext?: string;
74
+ aiContext?: string;
75
+ callToActions?: string;
76
+ callToActionDetails?: any[];
77
+ comments?: string | null;
78
+ timezone?: string | null;
79
+ created?: Date | null;
80
+ preferredLanguage?: string | null;
81
+ enableInvoiceReminders?: boolean;
82
+ enableStoreNotifications?: boolean;
83
+ isAdminOfSubscribedCompany?: boolean;
84
+ jobComments?: JobComment[];
85
+ jobOperationLogs?: JobOperationLog[];
86
+ shipmentLogs?: ShipmentLog[];
87
+ _emailAddresses?: EmailAddress[];
88
+ _phoneNumbers?: PhoneNumber[];
89
+ _addresses?: Address[];
90
+ _companies?: UserCompany[];
91
+ companiesNeedStripe?: Company[];
92
+ categories?: Category[];
93
+ products?: Product[];
94
+ profilePicture?: MerchiFile | null;
95
+ phoneNumbers?: PhoneNumber[];
96
+ sessions?: Session[];
97
+ shipmentsAsSender?: Shipment[];
98
+ shipmentsAsReceiver?: Shipment[];
99
+ draftComments?: DraftComment[];
100
+ forwardedDraftComments?: DraftComment[];
101
+ systemRoles?: SystemRole[];
102
+ emailAddresses?: EmailAddress[];
103
+ notifications?: Notification[];
104
+ sentNotifications?: Notification[];
105
+ reminders?: Reminder[];
106
+ assignments?: Assignment[];
107
+ userCompanies?: UserCompany[];
108
+ drafts?: Draft[];
109
+ companyInvitations?: CompanyInvitation[];
110
+ addresses?: Address[];
111
+ uploadFiles?: MerchiFile[];
112
+ forwardedJobComments?: JobComment[];
113
+ appliedJobs?: Job[];
114
+ managedJobs?: Job[];
115
+ draftingJobs?: Job[];
116
+ saved_products?: Product[];
117
+ carts?: Cart[];
118
+ payments?: Payment[];
119
+ enrolledDomains?: EnrolledDomain[];
120
+ responsibleInvoices?: Invoice[];
121
+ createdInvoices?: Invoice[];
122
+ invoicesHas?: Invoice[];
123
+ sentDomainInvitations?: DomainInvitation[];
124
+ receivedDomainInvitations?: DomainInvitation[];
125
+ themes?: Theme[];
126
+ forwardedProductionComments?: ProductionComment[];
127
+ accessibleDomainsAsClient?: Domain[];
128
+ publicCreate: (options?: import("../entity.js").CreateOptions | undefined) => Promise<this>;
129
+ roleInDomain: (domain: Domain) => Role;
130
+ isSuper(): boolean;
131
+ companies(): Company[];
132
+ isDomainManager(domain: Domain): boolean;
133
+ isManagementTeam(domain: Domain): boolean;
134
+ isNotClient(domain: Domain): boolean;
135
+ domainsByRoles(roles: Role[]): Domain[];
136
+ hasAuthority(domain: Domain, roles: Role[]): boolean;
137
+ hasSystemRole(role: SR): boolean;
138
+ hasRoles(roles: Role[], combinationMethod?: {
139
+ <T>(collection: lodash.List<T> | null | undefined, predicate?: lodash.ListIterateeCustom<T, boolean> | undefined): boolean;
140
+ <T_1 extends object>(collection: T_1 | null | undefined, predicate?: lodash.ObjectIterateeCustom<T_1, boolean> | undefined): boolean;
141
+ }): boolean;
142
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { Company } from './company.js';
2
+ import { Entity } from '../entity.js';
3
+ import { User } from './user.js';
4
+ export declare class UserCompany 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
+ main?: boolean | null;
11
+ isAdmin?: boolean;
12
+ user?: User | null;
13
+ company?: Company | null;
14
+ }
@@ -0,0 +1 @@
1
+ export {};