@stigg/typescript 0.1.0-alpha.1 → 0.1.0-alpha.11

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 (317) hide show
  1. package/CHANGELOG.md +158 -0
  2. package/README.md +40 -0
  3. package/client.d.mts +6 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +23 -21
  8. package/client.js.map +1 -1
  9. package/client.mjs +24 -22
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +11 -5
  12. package/core/pagination.d.mts.map +1 -1
  13. package/core/pagination.d.ts +11 -5
  14. package/core/pagination.d.ts.map +1 -1
  15. package/core/pagination.js +9 -9
  16. package/core/pagination.js.map +1 -1
  17. package/core/pagination.mjs +9 -9
  18. package/core/pagination.mjs.map +1 -1
  19. package/internal/parse.d.mts.map +1 -1
  20. package/internal/parse.d.ts.map +1 -1
  21. package/internal/parse.js +5 -0
  22. package/internal/parse.js.map +1 -1
  23. package/internal/parse.mjs +5 -0
  24. package/internal/parse.mjs.map +1 -1
  25. package/internal/qs/formats.d.mts +7 -0
  26. package/internal/qs/formats.d.mts.map +1 -0
  27. package/internal/qs/formats.d.ts +7 -0
  28. package/internal/qs/formats.d.ts.map +1 -0
  29. package/internal/qs/formats.js +13 -0
  30. package/internal/qs/formats.js.map +1 -0
  31. package/internal/qs/formats.mjs +9 -0
  32. package/internal/qs/formats.mjs.map +1 -0
  33. package/internal/qs/index.d.mts +10 -0
  34. package/internal/qs/index.d.mts.map +1 -0
  35. package/internal/qs/index.d.ts +10 -0
  36. package/internal/qs/index.d.ts.map +1 -0
  37. package/internal/qs/index.js +14 -0
  38. package/internal/qs/index.js.map +1 -0
  39. package/internal/qs/index.mjs +10 -0
  40. package/internal/qs/index.mjs.map +1 -0
  41. package/internal/qs/stringify.d.mts +3 -0
  42. package/internal/qs/stringify.d.mts.map +1 -0
  43. package/internal/qs/stringify.d.ts +3 -0
  44. package/internal/qs/stringify.d.ts.map +1 -0
  45. package/internal/qs/stringify.js +277 -0
  46. package/internal/qs/stringify.js.map +1 -0
  47. package/internal/qs/stringify.mjs +274 -0
  48. package/internal/qs/stringify.mjs.map +1 -0
  49. package/internal/qs/types.d.mts +57 -0
  50. package/internal/qs/types.d.mts.map +1 -0
  51. package/internal/qs/types.d.ts +57 -0
  52. package/internal/qs/types.d.ts.map +1 -0
  53. package/internal/qs/types.js +3 -0
  54. package/internal/qs/types.js.map +1 -0
  55. package/internal/qs/types.mjs +2 -0
  56. package/internal/qs/types.mjs.map +1 -0
  57. package/internal/qs/utils.d.mts +15 -0
  58. package/internal/qs/utils.d.mts.map +1 -0
  59. package/internal/qs/utils.d.ts +15 -0
  60. package/internal/qs/utils.d.ts.map +1 -0
  61. package/internal/qs/utils.js +230 -0
  62. package/internal/qs/utils.js.map +1 -0
  63. package/internal/qs/utils.mjs +217 -0
  64. package/internal/qs/utils.mjs.map +1 -0
  65. package/package.json +1 -1
  66. package/resources/index.d.mts +1 -1
  67. package/resources/index.d.mts.map +1 -1
  68. package/resources/index.d.ts +1 -1
  69. package/resources/index.d.ts.map +1 -1
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs +1 -1
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/v1/addons/addons.d.mts +1298 -0
  74. package/resources/v1/addons/addons.d.mts.map +1 -0
  75. package/resources/v1/addons/addons.d.ts +1298 -0
  76. package/resources/v1/addons/addons.d.ts.map +1 -0
  77. package/resources/v1/addons/addons.js +78 -0
  78. package/resources/v1/addons/addons.js.map +1 -0
  79. package/resources/v1/addons/addons.mjs +73 -0
  80. package/resources/v1/addons/addons.mjs.map +1 -0
  81. package/resources/v1/addons/entitlements.d.mts +747 -0
  82. package/resources/v1/addons/entitlements.d.mts.map +1 -0
  83. package/resources/v1/addons/entitlements.d.ts +747 -0
  84. package/resources/v1/addons/entitlements.d.ts.map +1 -0
  85. package/resources/v1/addons/entitlements.js +36 -0
  86. package/resources/v1/addons/entitlements.js.map +1 -0
  87. package/resources/v1/addons/entitlements.mjs +32 -0
  88. package/resources/v1/addons/entitlements.mjs.map +1 -0
  89. package/resources/v1/addons/index.d.mts +3 -0
  90. package/resources/v1/addons/index.d.mts.map +1 -0
  91. package/resources/v1/addons/index.d.ts +3 -0
  92. package/resources/v1/addons/index.d.ts.map +1 -0
  93. package/resources/v1/addons/index.js +9 -0
  94. package/resources/v1/addons/index.js.map +1 -0
  95. package/resources/v1/addons/index.mjs +4 -0
  96. package/resources/v1/addons/index.mjs.map +1 -0
  97. package/resources/v1/addons.d.mts +2 -0
  98. package/resources/v1/addons.d.mts.map +1 -0
  99. package/resources/v1/addons.d.ts +2 -0
  100. package/resources/v1/addons.d.ts.map +1 -0
  101. package/resources/v1/addons.js +6 -0
  102. package/resources/v1/addons.js.map +1 -0
  103. package/resources/v1/addons.mjs +3 -0
  104. package/resources/v1/addons.mjs.map +1 -0
  105. package/resources/v1/coupons.d.mts +154 -157
  106. package/resources/v1/coupons.d.mts.map +1 -1
  107. package/resources/v1/coupons.d.ts +154 -157
  108. package/resources/v1/coupons.d.ts.map +1 -1
  109. package/resources/v1/coupons.js +21 -4
  110. package/resources/v1/coupons.js.map +1 -1
  111. package/resources/v1/coupons.mjs +21 -4
  112. package/resources/v1/coupons.mjs.map +1 -1
  113. package/resources/v1/customers/customers.d.mts +247 -118
  114. package/resources/v1/customers/customers.d.mts.map +1 -1
  115. package/resources/v1/customers/customers.d.ts +247 -118
  116. package/resources/v1/customers/customers.d.ts.map +1 -1
  117. package/resources/v1/customers/customers.js +37 -16
  118. package/resources/v1/customers/customers.js.map +1 -1
  119. package/resources/v1/customers/customers.mjs +37 -16
  120. package/resources/v1/customers/customers.mjs.map +1 -1
  121. package/resources/v1/customers/index.d.mts +2 -2
  122. package/resources/v1/customers/index.d.mts.map +1 -1
  123. package/resources/v1/customers/index.d.ts +2 -2
  124. package/resources/v1/customers/index.d.ts.map +1 -1
  125. package/resources/v1/customers/index.js +3 -3
  126. package/resources/v1/customers/index.js.map +1 -1
  127. package/resources/v1/customers/index.mjs +1 -1
  128. package/resources/v1/customers/index.mjs.map +1 -1
  129. package/resources/v1/customers/payment-method.d.mts +7 -2
  130. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  131. package/resources/v1/customers/payment-method.d.ts +7 -2
  132. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  133. package/resources/v1/customers/payment-method.js +4 -2
  134. package/resources/v1/customers/payment-method.js.map +1 -1
  135. package/resources/v1/customers/payment-method.mjs +4 -2
  136. package/resources/v1/customers/payment-method.mjs.map +1 -1
  137. package/resources/v1/customers/promotional-entitlements.d.mts +498 -0
  138. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
  139. package/resources/v1/customers/promotional-entitlements.d.ts +498 -0
  140. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
  141. package/resources/v1/customers/promotional-entitlements.js +32 -0
  142. package/resources/v1/customers/promotional-entitlements.js.map +1 -0
  143. package/resources/v1/customers/promotional-entitlements.mjs +28 -0
  144. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
  145. package/resources/v1/events.d.mts +63 -0
  146. package/resources/v1/events.d.mts.map +1 -0
  147. package/resources/v1/events.d.ts +63 -0
  148. package/resources/v1/events.d.ts.map +1 -0
  149. package/resources/v1/events.js +16 -0
  150. package/resources/v1/events.js.map +1 -0
  151. package/resources/v1/events.mjs +12 -0
  152. package/resources/v1/events.mjs.map +1 -0
  153. package/resources/v1/features.d.mts +444 -0
  154. package/resources/v1/features.d.mts.map +1 -0
  155. package/resources/v1/features.d.ts +444 -0
  156. package/resources/v1/features.d.ts.map +1 -0
  157. package/resources/v1/features.js +51 -0
  158. package/resources/v1/features.js.map +1 -0
  159. package/resources/v1/features.mjs +47 -0
  160. package/resources/v1/features.mjs.map +1 -0
  161. package/resources/v1/index.d.mts +10 -4
  162. package/resources/v1/index.d.mts.map +1 -1
  163. package/resources/v1/index.d.ts +10 -4
  164. package/resources/v1/index.d.ts.map +1 -1
  165. package/resources/v1/index.js +17 -5
  166. package/resources/v1/index.js.map +1 -1
  167. package/resources/v1/index.mjs +7 -1
  168. package/resources/v1/index.mjs.map +1 -1
  169. package/resources/v1/plans/entitlements.d.mts +747 -0
  170. package/resources/v1/plans/entitlements.d.mts.map +1 -0
  171. package/resources/v1/plans/entitlements.d.ts +747 -0
  172. package/resources/v1/plans/entitlements.d.ts.map +1 -0
  173. package/resources/v1/plans/entitlements.js +36 -0
  174. package/resources/v1/plans/entitlements.js.map +1 -0
  175. package/resources/v1/plans/entitlements.mjs +32 -0
  176. package/resources/v1/plans/entitlements.mjs.map +1 -0
  177. package/resources/v1/plans/index.d.mts +3 -0
  178. package/resources/v1/plans/index.d.mts.map +1 -0
  179. package/resources/v1/plans/index.d.ts +3 -0
  180. package/resources/v1/plans/index.d.ts.map +1 -0
  181. package/resources/v1/plans/index.js +9 -0
  182. package/resources/v1/plans/index.js.map +1 -0
  183. package/resources/v1/plans/index.mjs +4 -0
  184. package/resources/v1/plans/index.mjs.map +1 -0
  185. package/resources/v1/plans/plans.d.mts +973 -0
  186. package/resources/v1/plans/plans.d.mts.map +1 -0
  187. package/resources/v1/plans/plans.d.ts +973 -0
  188. package/resources/v1/plans/plans.d.ts.map +1 -0
  189. package/resources/v1/plans/plans.js +76 -0
  190. package/resources/v1/plans/plans.js.map +1 -0
  191. package/resources/v1/plans/plans.mjs +71 -0
  192. package/resources/v1/plans/plans.mjs.map +1 -0
  193. package/resources/v1/plans.d.mts +2 -0
  194. package/resources/v1/plans.d.mts.map +1 -0
  195. package/resources/v1/plans.d.ts +2 -0
  196. package/resources/v1/plans.d.ts.map +1 -0
  197. package/resources/v1/plans.js +6 -0
  198. package/resources/v1/plans.js.map +1 -0
  199. package/resources/v1/plans.mjs +3 -0
  200. package/resources/v1/plans.mjs.map +1 -0
  201. package/resources/v1/products.d.mts +332 -0
  202. package/resources/v1/products.d.mts.map +1 -0
  203. package/resources/v1/products.d.ts +332 -0
  204. package/resources/v1/products.d.ts.map +1 -0
  205. package/resources/v1/products.js +52 -0
  206. package/resources/v1/products.js.map +1 -0
  207. package/resources/v1/products.mjs +48 -0
  208. package/resources/v1/products.mjs.map +1 -0
  209. package/resources/v1/subscriptions/future-update.d.mts +12 -19
  210. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  211. package/resources/v1/subscriptions/future-update.d.ts +12 -19
  212. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  213. package/resources/v1/subscriptions/future-update.js +3 -2
  214. package/resources/v1/subscriptions/future-update.js.map +1 -1
  215. package/resources/v1/subscriptions/future-update.mjs +3 -2
  216. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  217. package/resources/v1/subscriptions/index.d.mts +4 -2
  218. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  219. package/resources/v1/subscriptions/index.d.ts +4 -2
  220. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  221. package/resources/v1/subscriptions/index.js +5 -1
  222. package/resources/v1/subscriptions/index.js.map +1 -1
  223. package/resources/v1/subscriptions/index.mjs +3 -1
  224. package/resources/v1/subscriptions/index.mjs.map +1 -1
  225. package/resources/v1/subscriptions/invoice.d.mts +34 -0
  226. package/resources/v1/subscriptions/invoice.d.mts.map +1 -0
  227. package/resources/v1/subscriptions/invoice.d.ts +34 -0
  228. package/resources/v1/subscriptions/invoice.d.ts.map +1 -0
  229. package/resources/v1/subscriptions/invoice.js +17 -0
  230. package/resources/v1/subscriptions/invoice.js.map +1 -0
  231. package/resources/v1/subscriptions/invoice.mjs +13 -0
  232. package/resources/v1/subscriptions/invoice.mjs.map +1 -0
  233. package/resources/v1/subscriptions/subscriptions.d.mts +1565 -518
  234. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  235. package/resources/v1/subscriptions/subscriptions.d.ts +1565 -518
  236. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  237. package/resources/v1/subscriptions/subscriptions.js +52 -12
  238. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  239. package/resources/v1/subscriptions/subscriptions.mjs +53 -13
  240. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  241. package/resources/v1/subscriptions/usage.d.mts +98 -0
  242. package/resources/v1/subscriptions/usage.d.mts.map +1 -0
  243. package/resources/v1/subscriptions/usage.d.ts +98 -0
  244. package/resources/v1/subscriptions/usage.d.ts.map +1 -0
  245. package/resources/v1/subscriptions/usage.js +24 -0
  246. package/resources/v1/subscriptions/usage.js.map +1 -0
  247. package/resources/v1/subscriptions/usage.mjs +20 -0
  248. package/resources/v1/subscriptions/usage.mjs.map +1 -0
  249. package/resources/v1/usage.d.mts +230 -0
  250. package/resources/v1/usage.d.mts.map +1 -0
  251. package/resources/v1/usage.d.ts +230 -0
  252. package/resources/v1/usage.d.ts.map +1 -0
  253. package/resources/v1/usage.js +24 -0
  254. package/resources/v1/usage.js.map +1 -0
  255. package/resources/v1/usage.mjs +20 -0
  256. package/resources/v1/usage.mjs.map +1 -0
  257. package/resources/v1/v1.d.mts +30 -149
  258. package/resources/v1/v1.d.mts.map +1 -1
  259. package/resources/v1/v1.d.ts +30 -149
  260. package/resources/v1/v1.d.ts.map +1 -1
  261. package/resources/v1/v1.js +24 -12
  262. package/resources/v1/v1.js.map +1 -1
  263. package/resources/v1/v1.mjs +24 -12
  264. package/resources/v1/v1.mjs.map +1 -1
  265. package/src/client.ts +33 -40
  266. package/src/core/pagination.ts +24 -18
  267. package/src/internal/parse.ts +6 -0
  268. package/src/internal/qs/LICENSE.md +13 -0
  269. package/src/internal/qs/README.md +3 -0
  270. package/src/internal/qs/formats.ts +10 -0
  271. package/src/internal/qs/index.ts +13 -0
  272. package/src/internal/qs/stringify.ts +385 -0
  273. package/src/internal/qs/types.ts +71 -0
  274. package/src/internal/qs/utils.ts +265 -0
  275. package/src/resources/index.ts +1 -7
  276. package/src/resources/v1/addons/addons.ts +3245 -0
  277. package/src/resources/v1/addons/entitlements.ts +976 -0
  278. package/src/resources/v1/addons/index.ts +26 -0
  279. package/src/resources/v1/addons.ts +3 -0
  280. package/src/resources/v1/coupons.ts +311 -436
  281. package/src/resources/v1/customers/customers.ts +334 -153
  282. package/src/resources/v1/customers/index.ts +17 -2
  283. package/src/resources/v1/customers/payment-method.ts +7 -2
  284. package/src/resources/v1/customers/promotional-entitlements.ts +669 -0
  285. package/src/resources/v1/events.ts +74 -0
  286. package/src/resources/v1/features.ts +571 -0
  287. package/src/resources/v1/index.ts +73 -15
  288. package/src/resources/v1/plans/entitlements.ts +968 -0
  289. package/src/resources/v1/plans/index.ts +24 -0
  290. package/src/resources/v1/plans/plans.ts +2032 -0
  291. package/src/resources/v1/plans.ts +3 -0
  292. package/src/resources/v1/products.ts +423 -0
  293. package/src/resources/v1/subscriptions/future-update.ts +12 -27
  294. package/src/resources/v1/subscriptions/index.ts +16 -11
  295. package/src/resources/v1/subscriptions/invoice.ts +42 -0
  296. package/src/resources/v1/subscriptions/subscriptions.ts +3341 -832
  297. package/src/resources/v1/subscriptions/usage.ts +126 -0
  298. package/src/resources/v1/usage.ts +284 -0
  299. package/src/resources/v1/v1.ts +174 -197
  300. package/src/version.ts +1 -1
  301. package/version.d.mts +1 -1
  302. package/version.d.mts.map +1 -1
  303. package/version.d.ts +1 -1
  304. package/version.d.ts.map +1 -1
  305. package/version.js +1 -1
  306. package/version.js.map +1 -1
  307. package/version.mjs +1 -1
  308. package/version.mjs.map +1 -1
  309. package/resources/v1/customers/usage.d.mts +0 -98
  310. package/resources/v1/customers/usage.d.mts.map +0 -1
  311. package/resources/v1/customers/usage.d.ts +0 -98
  312. package/resources/v1/customers/usage.d.ts.map +0 -1
  313. package/resources/v1/customers/usage.js +0 -20
  314. package/resources/v1/customers/usage.js.map +0 -1
  315. package/resources/v1/customers/usage.mjs +0 -16
  316. package/resources/v1/customers/usage.mjs.map +0 -1
  317. package/src/resources/v1/customers/usage.ts +0 -132
@@ -1,42 +1,67 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as PaymentMethodAPI from "./payment-method.mjs";
3
3
  import { PaymentMethod, PaymentMethodAttachParams } from "./payment-method.mjs";
4
- import * as UsageAPI from "./usage.mjs";
5
- import { Usage, UsageRetrieveParams, UsageRetrieveResponse } from "./usage.mjs";
4
+ import * as PromotionalEntitlementsAPI from "./promotional-entitlements.mjs";
5
+ import { PromotionalEntitlementCreateParams, PromotionalEntitlementCreateResponse, PromotionalEntitlementListParams, PromotionalEntitlementListResponse, PromotionalEntitlementListResponsesMyCursorIDPage, PromotionalEntitlementRevokeParams, PromotionalEntitlementRevokeResponse, PromotionalEntitlements } from "./promotional-entitlements.mjs";
6
6
  import { APIPromise } from "../../../core/api-promise.mjs";
7
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
7
8
  import { RequestOptions } from "../../../internal/request-options.mjs";
8
9
  export declare class Customers extends APIResource {
9
10
  paymentMethod: PaymentMethodAPI.PaymentMethod;
10
- usage: UsageAPI.Usage;
11
+ promotionalEntitlements: PromotionalEntitlementsAPI.PromotionalEntitlements;
11
12
  /**
12
- * Create a new Customer
13
- */
14
- create(body: CustomerCreateParams, options?: RequestOptions): APIPromise<CustomerResponse>;
15
- /**
16
- * Get a single Customer by id
13
+ * Retrieves a customer by their unique identifier, including billing information
14
+ * and subscription status.
17
15
  */
18
16
  retrieve(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
19
17
  /**
20
- * Update an existing Customer
18
+ * Updates an existing customer's properties such as name, email, and billing
19
+ * information.
21
20
  */
22
21
  update(id: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerResponse>;
23
22
  /**
24
- * Get a list of Customers
23
+ * Retrieves a paginated list of customers in the environment.
25
24
  */
26
- list(query?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<CustomerListResponse>;
25
+ list(query?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResponsesMyCursorIDPage, CustomerListResponse>;
27
26
  /**
28
- * Perform archive on a Customer
27
+ * Archives a customer, preventing new subscriptions. Optionally cancels existing
28
+ * subscriptions.
29
29
  */
30
30
  archive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
31
31
  /**
32
- * Perform unarchive on a Customer
32
+ * Imports multiple customers in bulk. Used for migrating customer data from
33
+ * external systems.
34
+ */
35
+ import(body: CustomerImportParams, options?: RequestOptions): APIPromise<CustomerImportResponse>;
36
+ /**
37
+ * Retrieves a paginated list of resources within the same customer.
38
+ */
39
+ listResources(id: string, query?: CustomerListResourcesParams | null | undefined, options?: RequestOptions): PagePromise<CustomerListResourcesResponsesMyCursorIDPage, CustomerListResourcesResponse>;
40
+ /**
41
+ * Creates a new customer and optionally provisions an initial subscription in a
42
+ * single operation.
43
+ */
44
+ provision(body: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse>;
45
+ /**
46
+ * Restores an archived customer, allowing them to create new subscriptions again.
33
47
  */
34
48
  unarchive(id: string, options?: RequestOptions): APIPromise<CustomerResponse>;
35
49
  }
50
+ export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResponse>;
51
+ export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
52
+ /**
53
+ * Response object
54
+ */
36
55
  export interface CustomerResponse {
56
+ /**
57
+ * A customer can be either an organization or an individual
58
+ */
37
59
  data: CustomerResponse.Data;
38
60
  }
39
61
  export declare namespace CustomerResponse {
62
+ /**
63
+ * A customer can be either an organization or an individual
64
+ */
40
65
  interface Data {
41
66
  /**
42
67
  * Customer slug
@@ -107,100 +132,9 @@ export declare namespace CustomerResponse {
107
132
  */
108
133
  type: 'CARD' | 'BANK' | 'CASH_APP';
109
134
  }
110
- interface Integration {
111
- /**
112
- * Integration details
113
- */
114
- id: string;
115
- /**
116
- * Synced entity id
117
- */
118
- syncedEntityId: string | null;
119
- /**
120
- * The vendor identifier of integration
121
- */
122
- vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
123
- }
124
- }
125
- }
126
- export interface CustomerListResponse {
127
- data: Array<CustomerListResponse.Data>;
128
- }
129
- export declare namespace CustomerListResponse {
130
- interface Data {
131
- /**
132
- * Customer slug
133
- */
134
- id: string;
135
- /**
136
- * Timestamp of when the record was deleted
137
- */
138
- archivedAt: string | null;
139
- /**
140
- * Timestamp of when the record was created
141
- */
142
- createdAt: string;
143
- /**
144
- * Cursor ID for query pagination
145
- */
146
- cursorId: string;
147
135
  /**
148
- * Timestamp of when the record was last updated
149
- */
150
- updatedAt: string;
151
- /**
152
- * Customer level coupon
136
+ * External billing or CRM integration link
153
137
  */
154
- couponId?: string | null;
155
- /**
156
- * The default payment method details
157
- */
158
- defaultPaymentMethod?: Data.DefaultPaymentMethod | null;
159
- /**
160
- * The email of the customer
161
- */
162
- email?: string | null;
163
- /**
164
- * List of integrations
165
- */
166
- integrations?: Array<Data.Integration>;
167
- /**
168
- * Additional metadata
169
- */
170
- metadata?: {
171
- [key: string]: string;
172
- };
173
- /**
174
- * The name of the customer
175
- */
176
- name?: string | null;
177
- }
178
- namespace Data {
179
- /**
180
- * The default payment method details
181
- */
182
- interface DefaultPaymentMethod {
183
- /**
184
- * The default payment method id
185
- */
186
- billingId: string | null;
187
- /**
188
- * The expiration month of the default payment method
189
- */
190
- cardExpiryMonth: number | null;
191
- /**
192
- * The expiration year of the default payment method
193
- */
194
- cardExpiryYear: number | null;
195
- /**
196
- * The last 4 digits of the default payment method
197
- */
198
- cardLast4Digits: string | null;
199
- /**
200
- * The default payment method type
201
- */
202
- type: 'CARD' | 'BANK' | 'CASH_APP';
203
- }
204
138
  interface Integration {
205
139
  /**
206
140
  * Integration details
@@ -217,11 +151,26 @@ export declare namespace CustomerListResponse {
217
151
  }
218
152
  }
219
153
  }
220
- export interface CustomerCreateParams {
154
+ /**
155
+ * A customer can be either an organization or an individual
156
+ */
157
+ export interface CustomerListResponse {
221
158
  /**
222
159
  * Customer slug
223
160
  */
224
161
  id: string;
162
+ /**
163
+ * Timestamp of when the record was deleted
164
+ */
165
+ archivedAt: string | null;
166
+ /**
167
+ * Timestamp of when the record was created
168
+ */
169
+ createdAt: string;
170
+ /**
171
+ * Timestamp of when the record was last updated
172
+ */
173
+ updatedAt: string;
225
174
  /**
226
175
  * Customer level coupon
227
176
  */
@@ -229,7 +178,7 @@ export interface CustomerCreateParams {
229
178
  /**
230
179
  * The default payment method details
231
180
  */
232
- defaultPaymentMethod?: CustomerCreateParams.DefaultPaymentMethod | null;
181
+ defaultPaymentMethod?: CustomerListResponse.DefaultPaymentMethod | null;
233
182
  /**
234
183
  * The email of the customer
235
184
  */
@@ -237,7 +186,7 @@ export interface CustomerCreateParams {
237
186
  /**
238
187
  * List of integrations
239
188
  */
240
- integrations?: Array<CustomerCreateParams.Integration>;
189
+ integrations?: Array<CustomerListResponse.Integration>;
241
190
  /**
242
191
  * Additional metadata
243
192
  */
@@ -249,7 +198,7 @@ export interface CustomerCreateParams {
249
198
  */
250
199
  name?: string | null;
251
200
  }
252
- export declare namespace CustomerCreateParams {
201
+ export declare namespace CustomerListResponse {
253
202
  /**
254
203
  * The default payment method details
255
204
  */
@@ -275,6 +224,9 @@ export declare namespace CustomerCreateParams {
275
224
  */
276
225
  type: 'CARD' | 'BANK' | 'CASH_APP';
277
226
  }
227
+ /**
228
+ * External billing or CRM integration link
229
+ */
278
230
  interface Integration {
279
231
  /**
280
232
  * Integration details
@@ -290,6 +242,43 @@ export declare namespace CustomerCreateParams {
290
242
  vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
291
243
  }
292
244
  }
245
+ /**
246
+ * Response object
247
+ */
248
+ export interface CustomerImportResponse {
249
+ /**
250
+ * List of newly created customer IDs from the import operation.
251
+ */
252
+ data: CustomerImportResponse.Data;
253
+ }
254
+ export declare namespace CustomerImportResponse {
255
+ /**
256
+ * List of newly created customer IDs from the import operation.
257
+ */
258
+ interface Data {
259
+ /**
260
+ * Customer IDs created during import
261
+ */
262
+ newCustomers: Array<string>;
263
+ }
264
+ }
265
+ /**
266
+ * Resource object that belongs to a customer
267
+ */
268
+ export interface CustomerListResourcesResponse {
269
+ /**
270
+ * Resource slug
271
+ */
272
+ id: string;
273
+ /**
274
+ * Timestamp of when the record was created
275
+ */
276
+ createdAt: string;
277
+ /**
278
+ * Timestamp of when the record was last updated
279
+ */
280
+ updatedAt: string;
281
+ }
293
282
  export interface CustomerUpdateParams {
294
283
  /**
295
284
  * Customer level coupon
@@ -315,6 +304,9 @@ export interface CustomerUpdateParams {
315
304
  name?: string | null;
316
305
  }
317
306
  export declare namespace CustomerUpdateParams {
307
+ /**
308
+ * External billing or CRM integration link
309
+ */
318
310
  interface Integration {
319
311
  /**
320
312
  * Integration details
@@ -330,23 +322,160 @@ export declare namespace CustomerUpdateParams {
330
322
  vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
331
323
  }
332
324
  }
333
- export interface CustomerListParams {
325
+ export interface CustomerListParams extends MyCursorIDPageParams {
326
+ /**
327
+ * Filter by creation date using range operators: gt, gte, lt, lte
328
+ */
329
+ createdAt?: CustomerListParams.CreatedAt;
330
+ /**
331
+ * Filter by exact customer email address
332
+ */
333
+ email?: string;
334
+ /**
335
+ * Filter by exact customer name
336
+ */
337
+ name?: string;
338
+ }
339
+ export declare namespace CustomerListParams {
340
+ /**
341
+ * Filter by creation date using range operators: gt, gte, lt, lte
342
+ */
343
+ interface CreatedAt {
344
+ /**
345
+ * Greater than the specified createdAt value
346
+ */
347
+ gt?: string;
348
+ /**
349
+ * Greater than or equal to the specified createdAt value
350
+ */
351
+ gte?: string;
352
+ /**
353
+ * Less than the specified createdAt value
354
+ */
355
+ lt?: string;
356
+ /**
357
+ * Less than or equal to the specified createdAt value
358
+ */
359
+ lte?: string;
360
+ }
361
+ }
362
+ export interface CustomerImportParams {
363
+ /**
364
+ * List of customer objects to import
365
+ */
366
+ customers: Array<CustomerImportParams.Customer>;
367
+ }
368
+ export declare namespace CustomerImportParams {
369
+ interface Customer {
370
+ /**
371
+ * Customer slug
372
+ */
373
+ id: string;
374
+ /**
375
+ * The email of the customer
376
+ */
377
+ email: string | null;
378
+ /**
379
+ * The name of the customer
380
+ */
381
+ name: string | null;
382
+ /**
383
+ * Additional metadata
384
+ */
385
+ metadata?: {
386
+ [key: string]: string;
387
+ };
388
+ /**
389
+ * Billing provider payment method id
390
+ */
391
+ paymentMethodId?: string;
392
+ /**
393
+ * Timestamp of when the record was last updated
394
+ */
395
+ updatedAt?: string;
396
+ }
397
+ }
398
+ export interface CustomerListResourcesParams extends MyCursorIDPageParams {
399
+ }
400
+ export interface CustomerProvisionParams {
401
+ /**
402
+ * Customer slug
403
+ */
404
+ id: string;
334
405
  /**
335
- * Ending before this UUID for pagination
406
+ * Customer level coupon
407
+ */
408
+ couponId?: string | null;
409
+ /**
410
+ * The default payment method details
411
+ */
412
+ defaultPaymentMethod?: CustomerProvisionParams.DefaultPaymentMethod | null;
413
+ /**
414
+ * The email of the customer
415
+ */
416
+ email?: string | null;
417
+ /**
418
+ * List of integrations
419
+ */
420
+ integrations?: Array<CustomerProvisionParams.Integration>;
421
+ /**
422
+ * Additional metadata
336
423
  */
337
- endingBefore?: string;
424
+ metadata?: {
425
+ [key: string]: string;
426
+ };
338
427
  /**
339
- * Items per page
428
+ * The name of the customer
340
429
  */
341
- limit?: number;
430
+ name?: string | null;
431
+ }
432
+ export declare namespace CustomerProvisionParams {
433
+ /**
434
+ * The default payment method details
435
+ */
436
+ interface DefaultPaymentMethod {
437
+ /**
438
+ * The default payment method id
439
+ */
440
+ billingId: string | null;
441
+ /**
442
+ * The expiration month of the default payment method
443
+ */
444
+ cardExpiryMonth: number | null;
445
+ /**
446
+ * The expiration year of the default payment method
447
+ */
448
+ cardExpiryYear: number | null;
449
+ /**
450
+ * The last 4 digits of the default payment method
451
+ */
452
+ cardLast4Digits: string | null;
453
+ /**
454
+ * The default payment method type
455
+ */
456
+ type: 'CARD' | 'BANK' | 'CASH_APP';
457
+ }
342
458
  /**
343
- * Starting after this UUID for pagination
459
+ * External billing or CRM integration link
344
460
  */
345
- startingAfter?: string;
461
+ interface Integration {
462
+ /**
463
+ * Integration details
464
+ */
465
+ id: string;
466
+ /**
467
+ * Synced entity id
468
+ */
469
+ syncedEntityId: string | null;
470
+ /**
471
+ * The vendor identifier of integration
472
+ */
473
+ vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
474
+ }
346
475
  }
347
476
  export declare namespace Customers {
348
- export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, };
477
+ export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, };
349
478
  export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
350
- export { Usage as Usage, type UsageRetrieveResponse as UsageRetrieveResponse, type UsageRetrieveParams as UsageRetrieveParams, };
479
+ export { PromotionalEntitlements as PromotionalEntitlements, type PromotionalEntitlementCreateResponse as PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse as PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse as PromotionalEntitlementRevokeResponse, type PromotionalEntitlementListResponsesMyCursorIDPage as PromotionalEntitlementListResponsesMyCursorIDPage, type PromotionalEntitlementCreateParams as PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams as PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams as PromotionalEntitlementRevokeParams, };
351
480
  }
352
481
  //# sourceMappingURL=customers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE,yBAAyB,EAAE;OAC5C,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE;OACrD,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IACjG,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI1F;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAItG;;OAEG;IACH,IAAI,C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,iBAAiB,GACjB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,UAAU,GACV,WAAW,CAAC;KACjB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;IAEvG,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE,yBAAyB,EAAE;OAC5C,KAAK,0BAA0B;OAC/B,EACL,kCAAkC,EAClC,oCAAoC,EACpC,gCAAgC,EAChC,kCAAkC,EAClC,iDAAiD,EACjD,kCAAkC,EAClC,oCAAoC,EACpC,uBAAuB,EACxB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IACjG,uBAAuB,EAAE,0BAA0B,C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