@etohq/types 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/LICENSE +21 -0
  2. package/dist/analytics/index.d.ts +5 -0
  3. package/dist/analytics/index.d.ts.map +1 -0
  4. package/dist/analytics/index.js +21 -0
  5. package/dist/analytics/index.js.map +1 -0
  6. package/dist/analytics/mutations.d.ts +71 -0
  7. package/dist/analytics/mutations.d.ts.map +1 -0
  8. package/dist/{index-data/sotrage-provider.js → analytics/mutations.js} +1 -1
  9. package/dist/analytics/mutations.js.map +1 -0
  10. package/dist/analytics/provider.d.ts +41 -0
  11. package/dist/analytics/provider.d.ts.map +1 -0
  12. package/dist/analytics/provider.js +3 -0
  13. package/dist/analytics/provider.js.map +1 -0
  14. package/dist/analytics/providers/index.d.ts +3 -0
  15. package/dist/analytics/providers/index.d.ts.map +1 -0
  16. package/dist/analytics/providers/index.js +19 -0
  17. package/dist/analytics/providers/index.js.map +1 -0
  18. package/dist/analytics/providers/local.d.ts +3 -0
  19. package/dist/analytics/providers/local.d.ts.map +1 -0
  20. package/dist/analytics/providers/local.js +3 -0
  21. package/dist/analytics/providers/local.js.map +1 -0
  22. package/dist/analytics/providers/posthog.d.ts +11 -0
  23. package/dist/analytics/providers/posthog.d.ts.map +1 -0
  24. package/dist/analytics/providers/posthog.js +3 -0
  25. package/dist/analytics/providers/posthog.js.map +1 -0
  26. package/dist/analytics/service.d.ts +51 -0
  27. package/dist/analytics/service.d.ts.map +1 -0
  28. package/dist/{link-modules-sdk → analytics}/service.js.map +1 -1
  29. package/dist/api-key/mutations/api-key.d.ts +2 -0
  30. package/dist/api-key/mutations/api-key.d.ts.map +1 -1
  31. package/dist/auth/common/auth-identity.d.ts +1 -1
  32. package/dist/auth/common/auth-identity.d.ts.map +1 -1
  33. package/dist/auth/provider.d.ts +1 -7
  34. package/dist/auth/provider.d.ts.map +1 -1
  35. package/dist/auth/service.d.ts +50 -0
  36. package/dist/auth/service.d.ts.map +1 -1
  37. package/dist/bundles.d.ts +2 -1
  38. package/dist/bundles.d.ts.map +1 -1
  39. package/dist/bundles.js +3 -2
  40. package/dist/bundles.js.map +1 -1
  41. package/dist/cache/service.d.ts +27 -0
  42. package/dist/cache/service.d.ts.map +1 -1
  43. package/dist/cart/common.d.ts +1125 -0
  44. package/dist/cart/common.d.ts.map +1 -0
  45. package/dist/cart/common.js +3 -0
  46. package/dist/cart/common.js.map +1 -0
  47. package/dist/cart/index.d.ts +5 -0
  48. package/dist/cart/index.d.ts.map +1 -0
  49. package/dist/cart/index.js +21 -0
  50. package/dist/cart/index.js.map +1 -0
  51. package/dist/cart/mutations.d.ts +734 -0
  52. package/dist/cart/mutations.d.ts.map +1 -0
  53. package/dist/cart/mutations.js +4 -0
  54. package/dist/cart/mutations.js.map +1 -0
  55. package/dist/cart/service.d.ts +1888 -0
  56. package/dist/cart/service.d.ts.map +1 -0
  57. package/dist/cart/service.js +3 -0
  58. package/dist/cart/service.js.map +1 -0
  59. package/dist/cart/workflows.d.ts +480 -0
  60. package/dist/cart/workflows.d.ts.map +1 -0
  61. package/dist/cart/workflows.js +3 -0
  62. package/dist/cart/workflows.js.map +1 -0
  63. package/dist/common/batch.d.ts +47 -0
  64. package/dist/common/batch.d.ts.map +1 -1
  65. package/dist/common/common.d.ts +11 -1
  66. package/dist/common/common.d.ts.map +1 -1
  67. package/dist/common/config-module.d.ts +222 -63
  68. package/dist/common/config-module.d.ts.map +1 -1
  69. package/dist/common/modules.d.ts +133 -15
  70. package/dist/common/modules.d.ts.map +1 -1
  71. package/dist/dal/repository-service.d.ts +2 -2
  72. package/dist/dal/repository-service.d.ts.map +1 -1
  73. package/dist/dml/index.d.ts +8 -0
  74. package/dist/dml/index.d.ts.map +1 -1
  75. package/dist/event-bus/common.d.ts +24 -0
  76. package/dist/event-bus/common.d.ts.map +1 -1
  77. package/dist/event-bus/event-bus-module.d.ts +58 -0
  78. package/dist/event-bus/event-bus-module.d.ts.map +1 -1
  79. package/dist/file/common.d.ts +22 -2
  80. package/dist/file/common.d.ts.map +1 -1
  81. package/dist/file/mutations.d.ts +21 -3
  82. package/dist/file/mutations.d.ts.map +1 -1
  83. package/dist/file/provider.d.ts +75 -7
  84. package/dist/file/provider.d.ts.map +1 -1
  85. package/dist/file/service.d.ts +83 -11
  86. package/dist/file/service.d.ts.map +1 -1
  87. package/dist/http/auth/payloads.d.ts +3 -0
  88. package/dist/http/auth/payloads.d.ts.map +1 -1
  89. package/dist/http/common/additional_data.d.ts +9 -2
  90. package/dist/http/common/additional_data.d.ts.map +1 -1
  91. package/dist/http/common/request.d.ts +29 -6
  92. package/dist/http/common/request.d.ts.map +1 -1
  93. package/dist/http/common/response.d.ts +28 -0
  94. package/dist/http/common/response.d.ts.map +1 -1
  95. package/dist/http/currency/admin/entities.d.ts +4 -0
  96. package/dist/http/currency/admin/entities.d.ts.map +1 -0
  97. package/dist/http/currency/admin/entities.js +3 -0
  98. package/dist/http/currency/admin/entities.js.map +1 -0
  99. package/dist/http/currency/admin/index.d.ts +4 -0
  100. package/dist/http/currency/admin/index.d.ts.map +1 -0
  101. package/dist/http/currency/admin/index.js +20 -0
  102. package/dist/http/currency/admin/index.js.map +1 -0
  103. package/dist/http/currency/admin/queries.d.ts +15 -0
  104. package/dist/http/currency/admin/queries.d.ts.map +1 -0
  105. package/dist/http/currency/admin/queries.js +3 -0
  106. package/dist/http/currency/admin/queries.js.map +1 -0
  107. package/dist/http/currency/admin/responses.d.ts +16 -0
  108. package/dist/http/currency/admin/responses.d.ts.map +1 -0
  109. package/dist/http/currency/admin/responses.js +3 -0
  110. package/dist/http/currency/admin/responses.js.map +1 -0
  111. package/dist/http/currency/common.d.ts +48 -0
  112. package/dist/http/currency/common.d.ts.map +1 -0
  113. package/dist/http/currency/common.js +3 -0
  114. package/dist/http/currency/common.js.map +1 -0
  115. package/dist/http/currency/index.d.ts +2 -0
  116. package/dist/http/currency/index.d.ts.map +1 -0
  117. package/dist/http/currency/index.js +18 -0
  118. package/dist/http/currency/index.js.map +1 -0
  119. package/dist/http/encore/encore.d.ts +4 -2
  120. package/dist/http/encore/encore.d.ts.map +1 -1
  121. package/dist/http/encore/encore.js.map +1 -1
  122. package/dist/http/file/admin/payloads.d.ts +18 -0
  123. package/dist/http/file/admin/payloads.d.ts.map +1 -1
  124. package/dist/http/file/admin/responses.d.ts +33 -0
  125. package/dist/http/file/admin/responses.d.ts.map +1 -1
  126. package/dist/http/file/common.d.ts +17 -0
  127. package/dist/http/file/common.d.ts.map +1 -1
  128. package/dist/http/invite/admin/entities.d.ts +35 -0
  129. package/dist/http/invite/admin/entities.d.ts.map +1 -0
  130. package/dist/http/invite/admin/entities.js +3 -0
  131. package/dist/http/invite/admin/entities.js.map +1 -0
  132. package/dist/http/invite/admin/index.d.ts +5 -0
  133. package/dist/http/invite/admin/index.d.ts.map +1 -0
  134. package/dist/http/invite/admin/index.js +21 -0
  135. package/dist/http/invite/admin/index.js.map +1 -0
  136. package/dist/http/invite/admin/payloads.d.ts +25 -0
  137. package/dist/http/invite/admin/payloads.d.ts.map +1 -0
  138. package/dist/http/invite/admin/payloads.js +3 -0
  139. package/dist/http/invite/admin/payloads.js.map +1 -0
  140. package/dist/http/invite/admin/queries.d.ts +11 -0
  141. package/dist/http/invite/admin/queries.d.ts.map +1 -0
  142. package/dist/http/invite/admin/queries.js +3 -0
  143. package/dist/http/invite/admin/queries.js.map +1 -0
  144. package/dist/http/invite/admin/responses.d.ts +28 -0
  145. package/dist/http/invite/admin/responses.d.ts.map +1 -0
  146. package/dist/http/invite/admin/responses.js +3 -0
  147. package/dist/http/invite/admin/responses.js.map +1 -0
  148. package/dist/http/invite/index.d.ts +2 -0
  149. package/dist/http/invite/index.d.ts.map +1 -0
  150. package/dist/http/invite/index.js +18 -0
  151. package/dist/http/invite/index.js.map +1 -0
  152. package/dist/http/notification/admin/entities.d.ts +68 -0
  153. package/dist/http/notification/admin/entities.d.ts.map +1 -0
  154. package/dist/http/notification/admin/entities.js +3 -0
  155. package/dist/http/notification/admin/entities.js.map +1 -0
  156. package/dist/http/notification/admin/index.d.ts +4 -0
  157. package/dist/http/notification/admin/index.d.ts.map +1 -0
  158. package/dist/http/notification/admin/index.js +20 -0
  159. package/dist/http/notification/admin/index.js.map +1 -0
  160. package/dist/http/notification/admin/queries.d.ts +19 -0
  161. package/dist/http/notification/admin/queries.d.ts.map +1 -0
  162. package/dist/http/notification/admin/queries.js +3 -0
  163. package/dist/http/notification/admin/queries.js.map +1 -0
  164. package/dist/http/notification/admin/responses.d.ts +16 -0
  165. package/dist/http/notification/admin/responses.d.ts.map +1 -0
  166. package/dist/http/notification/admin/responses.js +3 -0
  167. package/dist/http/notification/admin/responses.js.map +1 -0
  168. package/dist/http/notification/index.d.ts +2 -0
  169. package/dist/http/notification/index.d.ts.map +1 -0
  170. package/dist/http/notification/index.js +18 -0
  171. package/dist/http/notification/index.js.map +1 -0
  172. package/dist/http/payment/admin/queries.d.ts +6 -0
  173. package/dist/http/payment/admin/queries.d.ts.map +1 -1
  174. package/dist/http/payment/admin/responses.d.ts +3 -0
  175. package/dist/http/payment/admin/responses.d.ts.map +1 -1
  176. package/dist/http/payment/common.d.ts +1 -21
  177. package/dist/http/payment/common.d.ts.map +1 -1
  178. package/dist/http/payment/store/payloads.d.ts +0 -5
  179. package/dist/http/payment/store/payloads.d.ts.map +1 -1
  180. package/dist/http/plugins/admin/responses.d.ts +13 -0
  181. package/dist/http/plugins/admin/responses.d.ts.map +1 -0
  182. package/dist/http/plugins/admin/responses.js +3 -0
  183. package/dist/http/plugins/admin/responses.js.map +1 -0
  184. package/dist/http/plugins/index.d.ts +2 -0
  185. package/dist/http/plugins/index.d.ts.map +1 -0
  186. package/dist/http/plugins/index.js +18 -0
  187. package/dist/http/plugins/index.js.map +1 -0
  188. package/dist/http/user/admin/entities.d.ts +27 -0
  189. package/dist/http/user/admin/entities.d.ts.map +1 -1
  190. package/dist/http/user/admin/payloads.d.ts +12 -0
  191. package/dist/http/user/admin/payloads.d.ts.map +1 -1
  192. package/dist/http/user/admin/queries.d.ts +24 -0
  193. package/dist/http/user/admin/queries.d.ts.map +1 -1
  194. package/dist/http/user/admin/responses.d.ts +6 -0
  195. package/dist/http/user/admin/responses.d.ts.map +1 -1
  196. package/dist/http/workflow-execution/admin/entities.d.ts +142 -2
  197. package/dist/http/workflow-execution/admin/entities.d.ts.map +1 -1
  198. package/dist/http/workflow-execution/admin/queries.d.ts +10 -0
  199. package/dist/http/workflow-execution/admin/queries.d.ts.map +1 -1
  200. package/dist/http/workflow-execution/admin/responses.d.ts +6 -0
  201. package/dist/http/workflow-execution/admin/responses.d.ts.map +1 -1
  202. package/dist/index-data/common.d.ts +11 -0
  203. package/dist/index-data/common.d.ts.map +1 -1
  204. package/dist/index-data/index-operator-map.d.ts +10 -10
  205. package/dist/index-data/index-operator-map.d.ts.map +1 -1
  206. package/dist/index-data/index.d.ts +1 -1
  207. package/dist/index-data/index.js +1 -1
  208. package/dist/index-data/query-config/query-input-config-fields.d.ts +3 -1
  209. package/dist/index-data/query-config/query-input-config-fields.d.ts.map +1 -1
  210. package/dist/index-data/query-config/query-input-config-filters.d.ts +1 -1
  211. package/dist/index-data/query-config/query-input-config-filters.d.ts.map +1 -1
  212. package/dist/index-data/query-config/query-input-config.d.ts +50 -6
  213. package/dist/index-data/query-config/query-input-config.d.ts.map +1 -1
  214. package/dist/index-data/{sotrage-provider.d.ts → storage-provider.d.ts} +1 -1
  215. package/dist/index-data/{sotrage-provider.d.ts.map → storage-provider.d.ts.map} +1 -1
  216. package/dist/index-data/storage-provider.js +3 -0
  217. package/dist/index-data/storage-provider.js.map +1 -0
  218. package/dist/index.d.ts +4 -2
  219. package/dist/index.d.ts.map +1 -1
  220. package/dist/index.js +3 -2
  221. package/dist/index.js.map +1 -1
  222. package/dist/joiner/index.d.ts +3 -0
  223. package/dist/joiner/index.d.ts.map +1 -1
  224. package/dist/link-modules/index.d.ts.map +1 -0
  225. package/dist/link-modules/index.js.map +1 -0
  226. package/dist/link-modules/migrations.d.ts.map +1 -0
  227. package/dist/link-modules/migrations.js.map +1 -0
  228. package/dist/{link-modules-sdk → link-modules}/service.d.ts +1 -1
  229. package/dist/link-modules/service.d.ts.map +1 -0
  230. package/dist/link-modules/service.js +3 -0
  231. package/dist/link-modules/service.js.map +1 -0
  232. package/dist/locking/index.d.ts +466 -0
  233. package/dist/locking/index.d.ts.map +1 -1
  234. package/dist/modules-sdk/eto-internal-service.d.ts +5 -5
  235. package/dist/modules-sdk/eto-internal-service.d.ts.map +1 -1
  236. package/dist/modules-sdk/index.d.ts +25 -5
  237. package/dist/modules-sdk/index.d.ts.map +1 -1
  238. package/dist/modules-sdk/remote-query-object-from-string.d.ts +55 -4
  239. package/dist/modules-sdk/remote-query-object-from-string.d.ts.map +1 -1
  240. package/dist/modules-sdk/remote-query.d.ts +14 -0
  241. package/dist/modules-sdk/remote-query.d.ts.map +1 -1
  242. package/dist/modules-sdk/to-remote-query.d.ts +8 -2
  243. package/dist/modules-sdk/to-remote-query.d.ts.map +1 -1
  244. package/dist/notification/common.d.ts +1 -1
  245. package/dist/notification/common.d.ts.map +1 -1
  246. package/dist/notification/mutations.d.ts +10 -5
  247. package/dist/notification/mutations.d.ts.map +1 -1
  248. package/dist/notification/service.d.ts +23 -5
  249. package/dist/notification/service.d.ts.map +1 -1
  250. package/dist/payment/common.d.ts +78 -48
  251. package/dist/payment/common.d.ts.map +1 -1
  252. package/dist/payment/mutations.d.ts +73 -47
  253. package/dist/payment/mutations.d.ts.map +1 -1
  254. package/dist/payment/provider.d.ts +450 -76
  255. package/dist/payment/provider.d.ts.map +1 -1
  256. package/dist/payment/service.d.ts +351 -14
  257. package/dist/payment/service.d.ts.map +1 -1
  258. package/dist/shared-context.d.ts +8 -0
  259. package/dist/shared-context.d.ts.map +1 -1
  260. package/dist/totals/big-number.d.ts +15 -0
  261. package/dist/totals/big-number.d.ts.map +1 -0
  262. package/dist/totals/big-number.js +3 -0
  263. package/dist/totals/big-number.js.map +1 -0
  264. package/dist/totals/index.d.ts +26 -0
  265. package/dist/totals/index.d.ts.map +1 -0
  266. package/dist/totals/index.js +18 -0
  267. package/dist/totals/index.js.map +1 -0
  268. package/dist/tsconfig.tsbuildinfo +1 -1
  269. package/dist/workflow/index.d.ts +1 -0
  270. package/dist/workflow/index.d.ts.map +1 -1
  271. package/dist/workflow/index.js +2 -1
  272. package/dist/workflow/index.js.map +1 -1
  273. package/dist/workflow/invite/accept-invite.d.ts +39 -0
  274. package/dist/workflow/invite/accept-invite.d.ts.map +1 -0
  275. package/dist/workflow/invite/accept-invite.js +3 -0
  276. package/dist/workflow/invite/accept-invite.js.map +1 -0
  277. package/dist/workflow/invite/create-invite.d.ts +11 -0
  278. package/dist/workflow/invite/create-invite.d.ts.map +1 -0
  279. package/dist/workflow/invite/create-invite.js +3 -0
  280. package/dist/workflow/invite/create-invite.js.map +1 -0
  281. package/dist/workflow/invite/delete-invite.d.ts +10 -0
  282. package/dist/workflow/invite/delete-invite.d.ts.map +1 -0
  283. package/dist/workflow/invite/delete-invite.js +3 -0
  284. package/dist/workflow/invite/delete-invite.js.map +1 -0
  285. package/dist/workflow/invite/index.d.ts +5 -0
  286. package/dist/workflow/invite/index.d.ts.map +1 -0
  287. package/dist/workflow/invite/index.js +21 -0
  288. package/dist/workflow/invite/index.js.map +1 -0
  289. package/dist/workflow/invite/resend-invite.d.ts +10 -0
  290. package/dist/workflow/invite/resend-invite.d.ts.map +1 -0
  291. package/dist/workflow/invite/resend-invite.js +3 -0
  292. package/dist/workflow/invite/resend-invite.js.map +1 -0
  293. package/dist/workflow/user/create-user.d.ts +6 -0
  294. package/dist/workflow/user/create-user.d.ts.map +1 -1
  295. package/dist/workflow/user/update-user.d.ts +6 -0
  296. package/dist/workflow/user/update-user.d.ts.map +1 -1
  297. package/dist/workflows-sdk/common.d.ts +6 -4
  298. package/dist/workflows-sdk/common.d.ts.map +1 -1
  299. package/dist/workflows-sdk/service.d.ts +12 -8
  300. package/dist/workflows-sdk/service.d.ts.map +1 -1
  301. package/package.json +25 -22
  302. package/dist/index-data/sotrage-provider.js.map +0 -1
  303. package/dist/link-modules-sdk/index.d.ts.map +0 -1
  304. package/dist/link-modules-sdk/index.js.map +0 -1
  305. package/dist/link-modules-sdk/migrations.d.ts.map +0 -1
  306. package/dist/link-modules-sdk/migrations.js.map +0 -1
  307. package/dist/link-modules-sdk/service.d.ts.map +0 -1
  308. /package/dist/{link-modules-sdk → analytics}/service.js +0 -0
  309. /package/dist/{link-modules-sdk → link-modules}/index.d.ts +0 -0
  310. /package/dist/{link-modules-sdk → link-modules}/index.js +0 -0
  311. /package/dist/{link-modules-sdk → link-modules}/migrations.d.ts +0 -0
  312. /package/dist/{link-modules-sdk → link-modules}/migrations.js +0 -0
@@ -0,0 +1,734 @@
1
+ import { BigNumberInput } from "../totals";
2
+ import { CartDTO, CartLineItemDTO } from "./common";
3
+ /** ADDRESS START */
4
+ /**
5
+ * The attributes in the address to be created or updated.
6
+ */
7
+ export interface UpsertAddressDTO {
8
+ /**
9
+ * The associated customer's ID.
10
+ */
11
+ customer_id?: string;
12
+ /**
13
+ * The company of the address.
14
+ */
15
+ company?: string;
16
+ /**
17
+ * The first name of the address.
18
+ */
19
+ first_name?: string;
20
+ /**
21
+ * The last name of the address.
22
+ */
23
+ last_name?: string;
24
+ /**
25
+ * The first line of the address.
26
+ */
27
+ address_1?: string;
28
+ /**
29
+ * The second line of the address.
30
+ */
31
+ address_2?: string;
32
+ /**
33
+ * The city of the address.
34
+ */
35
+ city?: string;
36
+ /**
37
+ * The ISO two country code of the address.
38
+ */
39
+ country_code?: string;
40
+ /**
41
+ * The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province/state of the address.
42
+ */
43
+ province?: string;
44
+ /**
45
+ * The postal code of the address.
46
+ */
47
+ postal_code?: string;
48
+ /**
49
+ * The phone of the address.
50
+ */
51
+ phone?: string;
52
+ /**
53
+ * Holds custom data in key-value pairs.
54
+ */
55
+ metadata?: Record<string, unknown>;
56
+ }
57
+ /**
58
+ * The attributes to update in the address.
59
+ */
60
+ export interface UpdateAddressDTO extends UpsertAddressDTO {
61
+ /**
62
+ * The ID of the address.
63
+ */
64
+ id: string;
65
+ }
66
+ /**
67
+ * The address to be created.
68
+ */
69
+ export interface CreateAddressDTO extends UpsertAddressDTO {
70
+ }
71
+ /** ADDRESS END */
72
+ /** CART START */
73
+ /**
74
+ * The cart to be created.
75
+ */
76
+ export interface CreateCartDTO {
77
+ /**
78
+ * The associated region's ID.
79
+ */
80
+ region_id?: string;
81
+ /**
82
+ * The associated customer's ID.
83
+ */
84
+ customer_id?: string;
85
+ /**
86
+ * The associated sales channel's ID.
87
+ */
88
+ sales_channel_id?: string;
89
+ /**
90
+ * The email of the customer that owns the cart.
91
+ */
92
+ email?: string;
93
+ /**
94
+ * The currency code of the cart.
95
+ */
96
+ currency_code: string;
97
+ /**
98
+ * The associated shipping address's ID.
99
+ */
100
+ shipping_address_id?: string;
101
+ /**
102
+ * The associated billing address's ID.
103
+ */
104
+ billing_address_id?: string;
105
+ /**
106
+ * The shipping address of the cart.
107
+ */
108
+ shipping_address?: CreateAddressDTO | string;
109
+ /**
110
+ * The billing address of the cart.
111
+ */
112
+ billing_address?: CreateAddressDTO | string;
113
+ /**
114
+ * Holds custom data in key-value pairs.
115
+ */
116
+ metadata?: Record<string, unknown>;
117
+ /**
118
+ * The items of the cart.
119
+ */
120
+ items?: CreateLineItemDTO[];
121
+ }
122
+ /**
123
+ * The attributes to update in the cart data.
124
+ */
125
+ export interface UpdateCartDataDTO {
126
+ /**
127
+ * The associated region's ID.
128
+ */
129
+ region_id?: string;
130
+ /**
131
+ * The associated customer's ID.
132
+ */
133
+ customer_id?: string | null;
134
+ /**
135
+ * The associated sales channel's ID.
136
+ */
137
+ sales_channel_id?: string | null;
138
+ /**
139
+ * The email of the customer that owns the cart.
140
+ */
141
+ email?: string | null;
142
+ /**
143
+ * The currency code of the cart.
144
+ */
145
+ currency_code?: string;
146
+ /**
147
+ * The associated shipping address's ID.
148
+ */
149
+ shipping_address_id?: string | null;
150
+ /**
151
+ * The associated billing address's ID.
152
+ */
153
+ billing_address_id?: string | null;
154
+ /**
155
+ * The billing address of the cart.
156
+ */
157
+ billing_address?: CreateAddressDTO | UpdateAddressDTO | null;
158
+ /**
159
+ * The shipping address of the cart.
160
+ */
161
+ shipping_address?: CreateAddressDTO | UpdateAddressDTO | null;
162
+ /**
163
+ * Holds custom data in key-value pairs.
164
+ */
165
+ metadata?: Record<string, unknown> | null;
166
+ /**
167
+ * The date and time the cart was completed.
168
+ */
169
+ completed_at?: string | Date | null;
170
+ }
171
+ /**
172
+ * The attributes to update in the cart.
173
+ */
174
+ export interface UpdateCartDTO extends UpdateCartDataDTO {
175
+ /**
176
+ * The ID of the cart.
177
+ */
178
+ id: string;
179
+ }
180
+ /** CART END */
181
+ /** ADJUSTMENT START */
182
+ /**
183
+ * The adjustment to be created.
184
+ */
185
+ export interface CreateAdjustmentDTO {
186
+ /**
187
+ * The code of the promotion that lead to
188
+ * this adjustment.
189
+ */
190
+ code: string;
191
+ /**
192
+ * The amount to adjust the original amount with.
193
+ */
194
+ amount: BigNumberInput;
195
+ /**
196
+ * Whether the adjustment amount includes tax.
197
+ */
198
+ is_tax_inclusive?: boolean;
199
+ /**
200
+ * The description of the adjustment.
201
+ */
202
+ description?: string;
203
+ /**
204
+ * The associated promotion's ID.
205
+ */
206
+ promotion_id?: string;
207
+ /**
208
+ * The associated provider's ID.
209
+ */
210
+ provider_id?: string;
211
+ }
212
+ /**
213
+ * The attributes to update in the adjustment.
214
+ */
215
+ export interface UpdateAdjustmentDTO {
216
+ /**
217
+ * The ID of the adjustment.
218
+ */
219
+ id: string;
220
+ /**
221
+ * The code of the promotion that lead to
222
+ * this adjustment.
223
+ */
224
+ code?: string;
225
+ /**
226
+ * The amount to adjust the original amount with.
227
+ */
228
+ amount: BigNumberInput;
229
+ /**
230
+ * The description of the adjustment.
231
+ */
232
+ description?: string;
233
+ /**
234
+ * The associated promotion's ID.
235
+ */
236
+ promotion_id?: string;
237
+ /**
238
+ * The associated provider's ID.
239
+ */
240
+ provider_id?: string;
241
+ }
242
+ /**
243
+ * The line item adjustment to be created.
244
+ */
245
+ export interface CreateLineItemAdjustmentDTO extends CreateAdjustmentDTO {
246
+ /**
247
+ * The associated item's ID.
248
+ */
249
+ item_id: string;
250
+ }
251
+ /**
252
+ * The attributes to update in the line item adjustment.
253
+ */
254
+ export interface UpdateLineItemAdjustmentDTO extends UpdateAdjustmentDTO {
255
+ /**
256
+ * The associated item's ID.
257
+ */
258
+ item_id: string;
259
+ }
260
+ /**
261
+ * The attributes in the line item adjustment to be created or updated.
262
+ */
263
+ export interface UpsertLineItemAdjustmentDTO {
264
+ /**
265
+ * The ID of the line item adjustment.
266
+ */
267
+ id?: string;
268
+ /**
269
+ * The associated item's ID.
270
+ */
271
+ item_id: string;
272
+ /**
273
+ * The code of the promotion that lead to the
274
+ * adjustment.
275
+ */
276
+ code?: string;
277
+ /**
278
+ * The amount to adjust the original amount with.
279
+ */
280
+ amount?: BigNumberInput;
281
+ /**
282
+ * The description of the line item adjustment.
283
+ */
284
+ description?: string;
285
+ /**
286
+ * The associated promotion's ID.
287
+ */
288
+ promotion_id?: string;
289
+ /**
290
+ * The associated provider's ID.
291
+ */
292
+ provider_id?: string;
293
+ }
294
+ /** ADJUSTMENTS END */
295
+ /** TAX LINES START */
296
+ /**
297
+ * The tax line to be created.
298
+ */
299
+ export interface CreateTaxLineDTO {
300
+ /**
301
+ * The description of the tax line.
302
+ */
303
+ description?: string;
304
+ /**
305
+ * The associated tax rate's ID.
306
+ */
307
+ tax_rate_id?: string;
308
+ /**
309
+ * The code of the tax line.
310
+ */
311
+ code: string;
312
+ /**
313
+ * The rate of the tax line.
314
+ */
315
+ rate: number;
316
+ /**
317
+ * The associated provider's ID.
318
+ */
319
+ provider_id?: string;
320
+ /**
321
+ * The associated item's ID.
322
+ */
323
+ item_id?: string;
324
+ }
325
+ /**
326
+ * The attributes to update in the tax line.
327
+ */
328
+ export interface UpdateTaxLineDTO {
329
+ /**
330
+ * The ID of the tax line.
331
+ */
332
+ id: string;
333
+ /**
334
+ * The description of the tax line.
335
+ */
336
+ description?: string;
337
+ /**
338
+ * The associated tax rate's ID.
339
+ */
340
+ tax_rate_id?: string;
341
+ /**
342
+ * The code of the tax line.
343
+ */
344
+ code?: string;
345
+ /**
346
+ * The rate of the tax line.
347
+ */
348
+ rate?: number;
349
+ /**
350
+ * The associated provider's ID.
351
+ */
352
+ provider_id?: string;
353
+ /**
354
+ * The associated item's ID.
355
+ */
356
+ item_id?: string;
357
+ }
358
+ /**
359
+ * The shipping method tax line to be created.
360
+ */
361
+ export interface CreateShippingMethodTaxLineDTO extends Omit<CreateTaxLineDTO, "item_id"> {
362
+ /**
363
+ * The associated shipping method's ID.
364
+ */
365
+ shipping_method_id: string;
366
+ }
367
+ /**
368
+ * The attributes to update in the shipping method tax line.
369
+ */
370
+ export interface UpdateShippingMethodTaxLineDTO extends Omit<UpdateTaxLineDTO, "item_id"> {
371
+ /**
372
+ * The associated shipping method's ID.
373
+ */
374
+ shipping_method_id?: string;
375
+ }
376
+ /**
377
+ * The line item tax line to be created.
378
+ */
379
+ export interface CreateLineItemTaxLineDTO extends CreateTaxLineDTO {
380
+ }
381
+ /**
382
+ * The attributes to update in the line item tax line.
383
+ */
384
+ export interface UpdateLineItemTaxLineDTO extends UpdateTaxLineDTO {
385
+ }
386
+ /** TAX LINES END */
387
+ /** LINE ITEMS START */
388
+ /**
389
+ * The line item to be created.
390
+ */
391
+ export interface CreateLineItemDTO {
392
+ /**
393
+ * The title of the line item.
394
+ */
395
+ title: string;
396
+ /**
397
+ * The subtitle of the line item.
398
+ */
399
+ subtitle?: string;
400
+ /**
401
+ * The thumbnail of the line item.
402
+ */
403
+ thumbnail?: string;
404
+ /**
405
+ * The associated cart's ID.
406
+ */
407
+ cart_id?: string;
408
+ /**
409
+ * The quantity of the line item in the cart.
410
+ */
411
+ quantity: BigNumberInput;
412
+ /**
413
+ * The associated product's ID.
414
+ */
415
+ product_id?: string;
416
+ /**
417
+ * The title of the associated product.
418
+ */
419
+ product_title?: string;
420
+ /**
421
+ * The description of the associated product.
422
+ */
423
+ product_description?: string;
424
+ /**
425
+ * The subtitle of the associated product.
426
+ */
427
+ product_subtitle?: string;
428
+ /**
429
+ * The type of the associated product.
430
+ */
431
+ product_type?: string;
432
+ /**
433
+ * The ID of type of the associated product.
434
+ */
435
+ product_type_id?: string;
436
+ /**
437
+ * The collection of the associated product.
438
+ */
439
+ product_collection?: string;
440
+ /**
441
+ * The handle of the associated product.
442
+ */
443
+ product_handle?: string;
444
+ /**
445
+ * The associated variant's ID.
446
+ */
447
+ variant_id?: string;
448
+ /**
449
+ * The SKU of the associated variant.
450
+ */
451
+ variant_sku?: string;
452
+ /**
453
+ * The barcode of the associated variant.
454
+ */
455
+ variant_barcode?: string;
456
+ /**
457
+ * The title of the associated variant.
458
+ */
459
+ variant_title?: string;
460
+ /**
461
+ * The option values of the associated variant.
462
+ */
463
+ variant_option_values?: Record<string, unknown>;
464
+ /**
465
+ * Whether the line item requires shipping.
466
+ */
467
+ requires_shipping?: boolean;
468
+ /**
469
+ * Whether the line item is discountable.
470
+ */
471
+ is_discountable?: boolean;
472
+ /**
473
+ * Whether the line item's amount is tax inclusive.
474
+ */
475
+ is_tax_inclusive?: boolean;
476
+ /**
477
+ * Whether the line item's amount is a custom price.
478
+ */
479
+ is_custom_price?: boolean;
480
+ /**
481
+ * The calculated price of the line item after applying promotions.
482
+ */
483
+ compare_at_unit_price?: BigNumberInput;
484
+ /**
485
+ * The unit price of the line item.
486
+ */
487
+ unit_price: BigNumberInput;
488
+ /**
489
+ * The tax lines of the line item.
490
+ */
491
+ tax_lines?: CreateTaxLineDTO[];
492
+ /**
493
+ * The adjustments of the line item.
494
+ */
495
+ adjustments?: CreateAdjustmentDTO[];
496
+ /**
497
+ * Holds custom data in key-value pairs.
498
+ */
499
+ metadata?: Record<string, unknown> | null;
500
+ }
501
+ /**
502
+ * The line item to be created in a cart.
503
+ */
504
+ export interface CreateLineItemForCartDTO extends CreateLineItemDTO {
505
+ /**
506
+ * The associated cart's ID.
507
+ */
508
+ cart_id: string;
509
+ }
510
+ /**
511
+ * A pair of selectors and data, where the selectors determine which
512
+ * line items to update, and the data determines what to update
513
+ * in the line items.
514
+ */
515
+ export interface UpdateLineItemWithSelectorDTO {
516
+ /**
517
+ * Filters to specify which line items to update.
518
+ */
519
+ selector: Partial<CartLineItemDTO>;
520
+ /**
521
+ * The attributes to update in the line items.
522
+ */
523
+ data: Partial<UpdateLineItemDTO>;
524
+ }
525
+ export interface UpdateLineItemWithoutSelectorDTO extends Omit<Partial<UpdateLineItemDTO>, "id"> {
526
+ id: string;
527
+ }
528
+ /**
529
+ * A pair of selectors and data, where the selectors determine which
530
+ * carts to update, and the data determines what to update
531
+ * in the carts.
532
+ */
533
+ export interface UpdateCartWithSelectorDTO {
534
+ /**
535
+ * Filters to specify which carts to update.
536
+ */
537
+ selector: Partial<CartDTO>;
538
+ /**
539
+ * The attributes to update in the carts.
540
+ */
541
+ data: UpdateCartDataDTO;
542
+ }
543
+ /**
544
+ * The attributes to update in a line item.
545
+ */
546
+ export interface UpdateLineItemDTO extends Omit<CreateLineItemDTO, "tax_lines" | "adjustments" | "title" | "quantity" | "unit_price"> {
547
+ /**
548
+ * The ID of the line item.
549
+ */
550
+ id: string;
551
+ /**
552
+ * The title of the line item.
553
+ */
554
+ title?: string;
555
+ /**
556
+ * The quantity of the line item in the cart.
557
+ */
558
+ quantity?: BigNumberInput;
559
+ /**
560
+ * The unit price of the line item.
561
+ */
562
+ unit_price?: BigNumberInput;
563
+ /**
564
+ * Holds custom data in key-value pairs.
565
+ */
566
+ metadata?: Record<string, unknown> | null;
567
+ /**
568
+ * The tax lines of the line item.
569
+ */
570
+ tax_lines?: UpdateTaxLineDTO[] | CreateTaxLineDTO[];
571
+ /**
572
+ * The adjustments of the line item.
573
+ */
574
+ adjustments?: UpdateAdjustmentDTO[] | CreateAdjustmentDTO[];
575
+ }
576
+ /** LINE ITEMS END */
577
+ /** SHIPPING METHODS START */
578
+ /**
579
+ * The shipping method to be created.
580
+ */
581
+ export interface CreateShippingMethodDTO {
582
+ /**
583
+ * The name of the shipping method.
584
+ */
585
+ name: string;
586
+ /**
587
+ * The associated cart's ID.
588
+ */
589
+ cart_id: string;
590
+ /**
591
+ * The amount of the shipping method.
592
+ */
593
+ amount: BigNumberInput;
594
+ /**
595
+ * The amount of the shipping method.
596
+ */
597
+ shipping_option_id?: string;
598
+ /**
599
+ * The data of the shipping method.
600
+ */
601
+ data?: Record<string, unknown>;
602
+ /**
603
+ * The tax lines of the shipping method.
604
+ */
605
+ tax_lines?: CreateTaxLineDTO[];
606
+ /**
607
+ * The adjustments of the shipping method.
608
+ */
609
+ adjustments?: CreateAdjustmentDTO[];
610
+ }
611
+ /**
612
+ * The shipping method to be created in a cart.
613
+ */
614
+ export interface CreateShippingMethodForSingleCartDTO {
615
+ /**
616
+ * The name of the shipping method.
617
+ */
618
+ name: string;
619
+ /**
620
+ * The amount of the shipping method.
621
+ */
622
+ amount: BigNumberInput;
623
+ /**
624
+ * The amount of the shipping method.
625
+ */
626
+ shipping_option_id?: string;
627
+ /**
628
+ * The data of the shipping method.
629
+ */
630
+ data?: Record<string, unknown>;
631
+ /**
632
+ * The tax lines of the shipping method.
633
+ */
634
+ tax_lines?: CreateTaxLineDTO[];
635
+ /**
636
+ * The adjustments of the shipping method.
637
+ */
638
+ adjustments?: CreateAdjustmentDTO[];
639
+ }
640
+ /**
641
+ * The attributes to update in the shipping method.
642
+ */
643
+ export interface UpdateShippingMethodDTO {
644
+ /**
645
+ * The ID of the shipping method.
646
+ */
647
+ id: string;
648
+ /**
649
+ * The name of the shipping method.
650
+ */
651
+ name?: string;
652
+ /**
653
+ * The amount of the shipping method.
654
+ */
655
+ amount?: BigNumberInput;
656
+ /**
657
+ * The tax inclusivity setting of the shipping method.
658
+ */
659
+ is_tax_inclusive?: boolean;
660
+ /**
661
+ * The data of the shipping method.
662
+ */
663
+ data?: Record<string, unknown>;
664
+ /**
665
+ * The tax lines of the shipping method.
666
+ */
667
+ tax_lines?: UpdateTaxLineDTO[] | CreateTaxLineDTO[];
668
+ /**
669
+ * The adjustments of the shipping method.
670
+ */
671
+ adjustments?: CreateAdjustmentDTO[] | UpdateAdjustmentDTO[];
672
+ }
673
+ /**
674
+ * The shipping method adjustment to be created.
675
+ */
676
+ export interface CreateShippingMethodAdjustmentDTO {
677
+ /**
678
+ * The associated shipping method's ID.
679
+ */
680
+ shipping_method_id: string;
681
+ /**
682
+ * The code of the promotion that lead to
683
+ * this adjustment.
684
+ */
685
+ code: string;
686
+ /**
687
+ * The amount to adjust the original amount with.
688
+ */
689
+ amount: BigNumberInput;
690
+ /**
691
+ * The description of the shipping method adjustment.
692
+ */
693
+ description?: string;
694
+ /**
695
+ * The associated promotion's ID.
696
+ */
697
+ promotion_id?: string;
698
+ /**
699
+ * The associated provider's ID.
700
+ */
701
+ provider_id?: string;
702
+ }
703
+ /**
704
+ * The attributes to update in the shipping method adjustment.
705
+ */
706
+ export interface UpdateShippingMethodAdjustmentDTO {
707
+ /**
708
+ * The ID of the shipping method adjustment.
709
+ */
710
+ id: string;
711
+ /**
712
+ * The code of the promotion that lead to
713
+ * this adjustment.
714
+ */
715
+ code?: string;
716
+ /**
717
+ * The amount to adjust the original amount with.
718
+ */
719
+ amount?: BigNumberInput;
720
+ /**
721
+ * The description of the shipping method adjustment.
722
+ */
723
+ description?: string;
724
+ /**
725
+ * The associated promotion's ID.
726
+ */
727
+ promotion_id?: string;
728
+ /**
729
+ * The associated provider's ID.
730
+ */
731
+ provider_id?: string;
732
+ }
733
+ /** SHIPPING METHODS END */
734
+ //# sourceMappingURL=mutations.d.ts.map