@augno/sdk 0.1.6 → 0.1.9

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 (211) hide show
  1. package/CHANGELOG.md +8 -2
  2. package/package.json +11 -16
  3. package/resources/catalog/item-categories/item-categories.d.mts +0 -1
  4. package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
  5. package/resources/catalog/item-categories/item-categories.d.ts +0 -1
  6. package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
  7. package/resources/catalog/item-categories/item-categories.js +0 -1
  8. package/resources/catalog/item-categories/item-categories.js.map +1 -1
  9. package/resources/catalog/item-categories/item-categories.mjs +0 -1
  10. package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
  11. package/resources/catalog/materials.d.mts +23 -23
  12. package/resources/catalog/materials.d.mts.map +1 -1
  13. package/resources/catalog/materials.d.ts +23 -23
  14. package/resources/catalog/materials.d.ts.map +1 -1
  15. package/resources/catalog/materials.js +0 -1
  16. package/resources/catalog/materials.js.map +1 -1
  17. package/resources/catalog/materials.mjs +0 -1
  18. package/resources/catalog/materials.mjs.map +1 -1
  19. package/resources/catalog/parts.d.mts +12 -15
  20. package/resources/catalog/parts.d.mts.map +1 -1
  21. package/resources/catalog/parts.d.ts +12 -15
  22. package/resources/catalog/parts.d.ts.map +1 -1
  23. package/resources/catalog/parts.js +0 -1
  24. package/resources/catalog/parts.js.map +1 -1
  25. package/resources/catalog/parts.mjs +0 -1
  26. package/resources/catalog/parts.mjs.map +1 -1
  27. package/resources/catalog/product-lines.d.mts +0 -1
  28. package/resources/catalog/product-lines.d.mts.map +1 -1
  29. package/resources/catalog/product-lines.d.ts +0 -1
  30. package/resources/catalog/product-lines.d.ts.map +1 -1
  31. package/resources/catalog/product-lines.js +0 -1
  32. package/resources/catalog/product-lines.js.map +1 -1
  33. package/resources/catalog/product-lines.mjs +0 -1
  34. package/resources/catalog/product-lines.mjs.map +1 -1
  35. package/resources/catalog/products.d.mts +24 -29
  36. package/resources/catalog/products.d.mts.map +1 -1
  37. package/resources/catalog/products.d.ts +24 -29
  38. package/resources/catalog/products.d.ts.map +1 -1
  39. package/resources/catalog/products.js +0 -2
  40. package/resources/catalog/products.js.map +1 -1
  41. package/resources/catalog/products.mjs +0 -2
  42. package/resources/catalog/products.mjs.map +1 -1
  43. package/resources/catalog/properties/attributes.d.mts +12 -15
  44. package/resources/catalog/properties/attributes.d.mts.map +1 -1
  45. package/resources/catalog/properties/attributes.d.ts +12 -15
  46. package/resources/catalog/properties/attributes.d.ts.map +1 -1
  47. package/resources/catalog/properties/attributes.js +2 -5
  48. package/resources/catalog/properties/attributes.js.map +1 -1
  49. package/resources/catalog/properties/attributes.mjs +2 -5
  50. package/resources/catalog/properties/attributes.mjs.map +1 -1
  51. package/resources/catalog/properties/properties.d.mts +0 -1
  52. package/resources/catalog/properties/properties.d.mts.map +1 -1
  53. package/resources/catalog/properties/properties.d.ts +0 -1
  54. package/resources/catalog/properties/properties.d.ts.map +1 -1
  55. package/resources/catalog/properties/properties.js +0 -1
  56. package/resources/catalog/properties/properties.js.map +1 -1
  57. package/resources/catalog/properties/properties.mjs +0 -1
  58. package/resources/catalog/properties/properties.mjs.map +1 -1
  59. package/resources/catalog/unit-groups/unit-groups.d.mts +1 -10
  60. package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
  61. package/resources/catalog/unit-groups/unit-groups.d.ts +1 -10
  62. package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
  63. package/resources/catalog/unit-groups/unit-groups.js +1 -10
  64. package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
  65. package/resources/catalog/unit-groups/unit-groups.mjs +1 -10
  66. package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
  67. package/resources/catalog/unit-groups/units.d.mts +2 -10
  68. package/resources/catalog/unit-groups/units.d.mts.map +1 -1
  69. package/resources/catalog/unit-groups/units.d.ts +2 -10
  70. package/resources/catalog/unit-groups/units.d.ts.map +1 -1
  71. package/resources/catalog/unit-groups/units.js +2 -10
  72. package/resources/catalog/unit-groups/units.js.map +1 -1
  73. package/resources/catalog/unit-groups/units.mjs +2 -10
  74. package/resources/catalog/unit-groups/units.mjs.map +1 -1
  75. package/resources/catalog/units.d.mts +0 -1
  76. package/resources/catalog/units.d.mts.map +1 -1
  77. package/resources/catalog/units.d.ts +0 -1
  78. package/resources/catalog/units.d.ts.map +1 -1
  79. package/resources/catalog/units.js +0 -1
  80. package/resources/catalog/units.js.map +1 -1
  81. package/resources/catalog/units.mjs +0 -1
  82. package/resources/catalog/units.mjs.map +1 -1
  83. package/resources/core/audit-events.d.mts +4 -4
  84. package/resources/core/audit-events.d.mts.map +1 -1
  85. package/resources/core/audit-events.d.ts +4 -4
  86. package/resources/core/audit-events.d.ts.map +1 -1
  87. package/resources/core/request-logs.d.mts +22 -7
  88. package/resources/core/request-logs.d.mts.map +1 -1
  89. package/resources/core/request-logs.d.ts +22 -7
  90. package/resources/core/request-logs.d.ts.map +1 -1
  91. package/resources/core/sandboxes.d.mts +2 -2
  92. package/resources/core/sandboxes.d.mts.map +1 -1
  93. package/resources/core/sandboxes.d.ts +2 -2
  94. package/resources/core/sandboxes.d.ts.map +1 -1
  95. package/resources/finance/payment-terms.d.mts +0 -1
  96. package/resources/finance/payment-terms.d.mts.map +1 -1
  97. package/resources/finance/payment-terms.d.ts +0 -1
  98. package/resources/finance/payment-terms.d.ts.map +1 -1
  99. package/resources/finance/payment-terms.js +0 -1
  100. package/resources/finance/payment-terms.js.map +1 -1
  101. package/resources/finance/payment-terms.mjs +0 -1
  102. package/resources/finance/payment-terms.mjs.map +1 -1
  103. package/resources/identity/account-users/account-users.d.mts +31 -36
  104. package/resources/identity/account-users/account-users.d.mts.map +1 -1
  105. package/resources/identity/account-users/account-users.d.ts +31 -36
  106. package/resources/identity/account-users/account-users.d.ts.map +1 -1
  107. package/resources/identity/account-users/account-users.js +2 -7
  108. package/resources/identity/account-users/account-users.js.map +1 -1
  109. package/resources/identity/account-users/account-users.mjs +2 -7
  110. package/resources/identity/account-users/account-users.mjs.map +1 -1
  111. package/resources/identity/roles.d.mts +0 -4
  112. package/resources/identity/roles.d.mts.map +1 -1
  113. package/resources/identity/roles.d.ts +0 -4
  114. package/resources/identity/roles.d.ts.map +1 -1
  115. package/resources/identity/roles.js +0 -4
  116. package/resources/identity/roles.js.map +1 -1
  117. package/resources/identity/roles.mjs +0 -4
  118. package/resources/identity/roles.mjs.map +1 -1
  119. package/resources/operations/carriers/carriers.d.mts +34 -26
  120. package/resources/operations/carriers/carriers.d.mts.map +1 -1
  121. package/resources/operations/carriers/carriers.d.ts +34 -26
  122. package/resources/operations/carriers/carriers.d.ts.map +1 -1
  123. package/resources/operations/carriers/carriers.js +0 -4
  124. package/resources/operations/carriers/carriers.js.map +1 -1
  125. package/resources/operations/carriers/carriers.mjs +0 -4
  126. package/resources/operations/carriers/carriers.mjs.map +1 -1
  127. package/resources/operations/carriers/service-levels.d.mts +1 -4
  128. package/resources/operations/carriers/service-levels.d.mts.map +1 -1
  129. package/resources/operations/carriers/service-levels.d.ts +1 -4
  130. package/resources/operations/carriers/service-levels.d.ts.map +1 -1
  131. package/resources/operations/carriers/service-levels.js +1 -4
  132. package/resources/operations/carriers/service-levels.js.map +1 -1
  133. package/resources/operations/carriers/service-levels.mjs +1 -4
  134. package/resources/operations/carriers/service-levels.mjs.map +1 -1
  135. package/resources/operations/locations.d.mts +4 -5
  136. package/resources/operations/locations.d.mts.map +1 -1
  137. package/resources/operations/locations.d.ts +4 -5
  138. package/resources/operations/locations.d.ts.map +1 -1
  139. package/resources/operations/locations.js +0 -1
  140. package/resources/operations/locations.js.map +1 -1
  141. package/resources/operations/locations.mjs +0 -1
  142. package/resources/operations/locations.mjs.map +1 -1
  143. package/resources/operations/scanning-stations.d.mts +0 -3
  144. package/resources/operations/scanning-stations.d.mts.map +1 -1
  145. package/resources/operations/scanning-stations.d.ts +0 -3
  146. package/resources/operations/scanning-stations.d.ts.map +1 -1
  147. package/resources/operations/scanning-stations.js +0 -3
  148. package/resources/operations/scanning-stations.js.map +1 -1
  149. package/resources/operations/scanning-stations.mjs +0 -3
  150. package/resources/operations/scanning-stations.mjs.map +1 -1
  151. package/resources/operations/shipping-terms.d.mts +4 -5
  152. package/resources/operations/shipping-terms.d.mts.map +1 -1
  153. package/resources/operations/shipping-terms.d.ts +4 -5
  154. package/resources/operations/shipping-terms.d.ts.map +1 -1
  155. package/resources/operations/shipping-terms.js +0 -1
  156. package/resources/operations/shipping-terms.js.map +1 -1
  157. package/resources/operations/shipping-terms.mjs +0 -1
  158. package/resources/operations/shipping-terms.mjs.map +1 -1
  159. package/resources/sales/account-groups.d.mts +62 -10
  160. package/resources/sales/account-groups.d.mts.map +1 -1
  161. package/resources/sales/account-groups.d.ts +62 -10
  162. package/resources/sales/account-groups.d.ts.map +1 -1
  163. package/resources/sales/account-groups.js +0 -1
  164. package/resources/sales/account-groups.js.map +1 -1
  165. package/resources/sales/account-groups.mjs +0 -1
  166. package/resources/sales/account-groups.mjs.map +1 -1
  167. package/resources/sales/addresses.d.mts +14 -15
  168. package/resources/sales/addresses.d.mts.map +1 -1
  169. package/resources/sales/addresses.d.ts +14 -15
  170. package/resources/sales/addresses.d.ts.map +1 -1
  171. package/resources/sales/addresses.js +0 -1
  172. package/resources/sales/addresses.js.map +1 -1
  173. package/resources/sales/addresses.mjs +0 -1
  174. package/resources/sales/addresses.mjs.map +1 -1
  175. package/resources/sales/customers/customers.d.mts +4 -6
  176. package/resources/sales/customers/customers.d.mts.map +1 -1
  177. package/resources/sales/customers/customers.d.ts +4 -6
  178. package/resources/sales/customers/customers.d.ts.map +1 -1
  179. package/resources/sales/customers/customers.js +0 -6
  180. package/resources/sales/customers/customers.js.map +1 -1
  181. package/resources/sales/customers/customers.mjs +0 -6
  182. package/resources/sales/customers/customers.mjs.map +1 -1
  183. package/src/resources/catalog/item-categories/item-categories.ts +0 -1
  184. package/src/resources/catalog/materials.ts +23 -23
  185. package/src/resources/catalog/parts.ts +12 -15
  186. package/src/resources/catalog/product-lines.ts +0 -1
  187. package/src/resources/catalog/products.ts +26 -31
  188. package/src/resources/catalog/properties/attributes.ts +14 -39
  189. package/src/resources/catalog/properties/properties.ts +0 -1
  190. package/src/resources/catalog/unit-groups/unit-groups.ts +1 -10
  191. package/src/resources/catalog/unit-groups/units.ts +2 -10
  192. package/src/resources/catalog/units.ts +0 -1
  193. package/src/resources/core/audit-events.ts +13 -1
  194. package/src/resources/core/request-logs.ts +23 -7
  195. package/src/resources/core/sandboxes.ts +2 -2
  196. package/src/resources/finance/payment-terms.ts +0 -1
  197. package/src/resources/identity/account-users/account-users.ts +38 -40
  198. package/src/resources/identity/roles.ts +0 -4
  199. package/src/resources/operations/carriers/carriers.ts +35 -27
  200. package/src/resources/operations/carriers/service-levels.ts +1 -4
  201. package/src/resources/operations/locations.ts +4 -5
  202. package/src/resources/operations/scanning-stations.ts +0 -3
  203. package/src/resources/operations/shipping-terms.ts +4 -5
  204. package/src/resources/sales/account-groups.ts +62 -10
  205. package/src/resources/sales/addresses.ts +14 -15
  206. package/src/resources/sales/customers/customers.ts +5 -6
  207. package/src/version.ts +1 -1
  208. package/version.d.mts +1 -1
  209. package/version.d.ts +1 -1
  210. package/version.js +1 -1
  211. package/version.mjs +1 -1
@@ -22,10 +22,6 @@ export class AccountUsers extends APIResource {
22
22
  * ```ts
23
23
  * const accountUser =
24
24
  * await client.identity.accountUsers.create({
25
- * email: 'jdoe@augno.com',
26
- * name: 'John Doe',
27
- * password: 'QgS7Z8Hhj3&1',
28
- * username: 'jdoe',
29
25
  * preferences: [
30
26
  * {
31
27
  * notification_type: 'order_acknowledgement',
@@ -35,8 +31,11 @@ export class AccountUsers extends APIResource {
35
31
  * });
36
32
  * ```
37
33
  */
38
- create(params: AccountUserCreateParams, options?: RequestOptions): APIPromise<CustomersAPI.AccountUser> {
39
- const { include, ...body } = params;
34
+ create(
35
+ params: AccountUserCreateParams | null | undefined = {},
36
+ options?: RequestOptions,
37
+ ): APIPromise<CustomersAPI.AccountUser> {
38
+ const { include, ...body } = params ?? {};
40
39
  return this._client.post('/v1/identity/account-users', { query: { include }, body, ...options });
41
40
  }
42
41
 
@@ -67,7 +66,6 @@ export class AccountUsers extends APIResource {
67
66
  * const accountUser =
68
67
  * await client.identity.accountUsers.update(
69
68
  * 'acus_01ea9983ddb41dacc44ecf997c',
70
- * { name: 'John Doe' },
71
69
  * );
72
70
  * ```
73
71
  */
@@ -105,31 +103,26 @@ export class AccountUsers extends APIResource {
105
103
  * Request to create an account user.
106
104
  */
107
105
  export interface CreateAccountUserRequest {
106
+ /**
107
+ * Department assigned to the user.
108
+ */
109
+ department_id?: string;
110
+
108
111
  /**
109
112
  * User email address.
110
113
  */
111
- email: string | null;
114
+ email?: string;
112
115
 
113
116
  /**
114
117
  * User display name.
115
118
  */
116
- name: string | null;
119
+ name?: string;
117
120
 
118
121
  /**
119
122
  * Password. Only used for scanner-role users (scanning stations). Must be 8–72
120
123
  * chars and include upper, lower, number, and special character.
121
124
  */
122
- password: string | null;
123
-
124
- /**
125
- * Unique username (3–255 chars; letters, numbers, underscores, hyphens).
126
- */
127
- username: string | null;
128
-
129
- /**
130
- * Department assigned to the user.
131
- */
132
- department_id?: string | null;
125
+ password?: string;
133
126
 
134
127
  /**
135
128
  * Notification preferences for the user (external targets only).
@@ -139,7 +132,12 @@ export interface CreateAccountUserRequest {
139
132
  /**
140
133
  * Role assigned to the user.
141
134
  */
142
- role_id?: string | null;
135
+ role_id?: string;
136
+
137
+ /**
138
+ * Unique username (3–255 chars; letters, numbers, underscores, hyphens).
139
+ */
140
+ username?: string;
143
141
  }
144
142
 
145
143
  /**
@@ -214,37 +212,31 @@ export interface UpdateAccountUserRequest {
214
212
 
215
213
  export interface AccountUserCreateParams {
216
214
  /**
217
- * Body param: User email address.
218
- */
219
- email: string | null;
220
-
221
- /**
222
- * Body param: User display name.
215
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
216
+ * are returned as `null`.
223
217
  */
224
- name: string | null;
218
+ include?: Array<'role' | 'department'>;
225
219
 
226
220
  /**
227
- * Body param: Password. Only used for scanner-role users (scanning stations). Must
228
- * be 8–72 chars and include upper, lower, number, and special character.
221
+ * Body param: Department assigned to the user.
229
222
  */
230
- password: string | null;
223
+ department_id?: string;
231
224
 
232
225
  /**
233
- * Body param: Unique username (3–255 chars; letters, numbers, underscores,
234
- * hyphens).
226
+ * Body param: User email address.
235
227
  */
236
- username: string | null;
228
+ email?: string;
237
229
 
238
230
  /**
239
- * Query param: Sub-objects to expand in the response. When omitted, sub-objects
240
- * are returned as `null`.
231
+ * Body param: User display name.
241
232
  */
242
- include?: Array<'role' | 'department'>;
233
+ name?: string;
243
234
 
244
235
  /**
245
- * Body param: Department assigned to the user.
236
+ * Body param: Password. Only used for scanner-role users (scanning stations). Must
237
+ * be 8–72 chars and include upper, lower, number, and special character.
246
238
  */
247
- department_id?: string | null;
239
+ password?: string;
248
240
 
249
241
  /**
250
242
  * Body param: Notification preferences for the user (external targets only).
@@ -254,7 +246,13 @@ export interface AccountUserCreateParams {
254
246
  /**
255
247
  * Body param: Role assigned to the user.
256
248
  */
257
- role_id?: string | null;
249
+ role_id?: string;
250
+
251
+ /**
252
+ * Body param: Unique username (3–255 chars; letters, numbers, underscores,
253
+ * hyphens).
254
+ */
255
+ username?: string;
258
256
  }
259
257
 
260
258
  export interface AccountUserRetrieveParams {
@@ -57,10 +57,6 @@ export class Roles extends APIResource {
57
57
  * ```ts
58
58
  * const role = await client.identity.roles.update(
59
59
  * 'rl_01c16d2eb637c0d1f3a372937c',
60
- * {
61
- * name: 'Updated Manager',
62
- * permissions: ['customers:read', 'customers:update'],
63
- * },
64
60
  * );
65
61
  * ```
66
62
  */
@@ -33,10 +33,7 @@ export class Carriers extends APIResource {
33
33
  * @example
34
34
  * ```ts
35
35
  * const carrier = await client.operations.carriers.create({
36
- * account_number: '1234567890',
37
- * code: 'fedex',
38
36
  * name: 'FedEx',
39
- * customer_portal_visibility: 'visible',
40
37
  * });
41
38
  * ```
42
39
  */
@@ -70,7 +67,6 @@ export class Carriers extends APIResource {
70
67
  * ```ts
71
68
  * const carrier = await client.operations.carriers.update(
72
69
  * 'cr_01784fd54c9ba197bb4e42f0e6',
73
- * { name: 'FedEx Express' },
74
70
  * );
75
71
  * ```
76
72
  */
@@ -116,23 +112,26 @@ export class Carriers extends APIResource {
116
112
  */
117
113
  export interface CreateCarrierRequest {
118
114
  /**
119
- * Carrier account number. Required for UPS and USPS carriers.
115
+ * Display name.
120
116
  */
121
- account_number: string | null;
117
+ name: string;
122
118
 
123
119
  /**
124
- * Carrier code.
120
+ * Carrier account number. Required for UPS and USPS carriers.
125
121
  */
126
- code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
122
+ account_number?: string;
127
123
 
128
124
  /**
129
- * Display name.
125
+ * Carrier code.
130
126
  */
131
- name: string;
127
+ code?: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect';
132
128
 
133
129
  /**
134
- * Whether this carrier will be available for customers to select in the customer
135
- * portal.
130
+ * Carrier visibility in the customer portal.
131
+ *
132
+ * If `visible`, this carrier will be available for your customers to utilize when
133
+ * they go to checkout. If `hidden`, this carrier will not be an option on
134
+ * checkout.
136
135
  */
137
136
  customer_portal_visibility?: 'visible' | 'hidden';
138
137
  }
@@ -162,8 +161,11 @@ export interface ListCarrier {
162
161
  */
163
162
  export interface UpdateCarrierRequest {
164
163
  /**
165
- * Whether this carrier will be available for customers to select in the customer
166
- * portal.
164
+ * Carrier visibility in the customer portal.
165
+ *
166
+ * If `visible`, this carrier will be available for your customers to utilize when
167
+ * they go to checkout. If `hidden`, this carrier will not be an option on
168
+ * checkout.
167
169
  */
168
170
  customer_portal_visibility?: 'visible' | 'hidden';
169
171
 
@@ -177,29 +179,32 @@ export interface CarrierDeleteResponse {}
177
179
 
178
180
  export interface CarrierCreateParams {
179
181
  /**
180
- * Body param: Carrier account number. Required for UPS and USPS carriers.
182
+ * Body param: Display name.
181
183
  */
182
- account_number: string | null;
184
+ name: string;
183
185
 
184
186
  /**
185
- * Body param: Carrier code.
187
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
188
+ * are returned as `null`.
186
189
  */
187
- code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
190
+ include?: Array<'owner' | 'owner.account' | 'service_levels'>;
188
191
 
189
192
  /**
190
- * Body param: Display name.
193
+ * Body param: Carrier account number. Required for UPS and USPS carriers.
191
194
  */
192
- name: string;
195
+ account_number?: string;
193
196
 
194
197
  /**
195
- * Query param: Sub-objects to expand in the response. When omitted, sub-objects
196
- * are returned as `null`.
198
+ * Body param: Carrier code.
197
199
  */
198
- include?: Array<'owner' | 'owner.account' | 'service_levels'>;
200
+ code?: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect';
199
201
 
200
202
  /**
201
- * Body param: Whether this carrier will be available for customers to select in
202
- * the customer portal.
203
+ * Body param: Carrier visibility in the customer portal.
204
+ *
205
+ * If `visible`, this carrier will be available for your customers to utilize when
206
+ * they go to checkout. If `hidden`, this carrier will not be an option on
207
+ * checkout.
203
208
  */
204
209
  customer_portal_visibility?: 'visible' | 'hidden';
205
210
  }
@@ -220,8 +225,11 @@ export interface CarrierUpdateParams {
220
225
  include?: Array<'owner' | 'owner.account' | 'service_levels'>;
221
226
 
222
227
  /**
223
- * Body param: Whether this carrier will be available for customers to select in
224
- * the customer portal.
228
+ * Body param: Carrier visibility in the customer portal.
229
+ *
230
+ * If `visible`, this carrier will be available for your customers to utilize when
231
+ * they go to checkout. If `hidden`, this carrier will not be an option on
232
+ * checkout.
225
233
  */
226
234
  customer_portal_visibility?: 'visible' | 'hidden';
227
235
 
@@ -71,10 +71,7 @@ export class ServiceLevels extends APIResource {
71
71
  * const serviceLevel =
72
72
  * await client.operations.carriers.serviceLevels.update(
73
73
  * 'crop_01cfaf03f104e90ef9680e2a30',
74
- * {
75
- * carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
76
- * name: 'Express Shipping',
77
- * },
74
+ * { carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6' },
78
75
  * );
79
76
  * ```
80
77
  */
@@ -51,7 +51,6 @@ export class Locations extends APIResource {
51
51
  * ```ts
52
52
  * const location = await client.operations.locations.update(
53
53
  * 'lc_014d187d99b31926f0c74af9d8',
54
- * { name: 'Warehouse B' },
55
54
  * );
56
55
  * ```
57
56
  */
@@ -112,12 +111,12 @@ export interface CreateLocationRequest {
112
111
  /**
113
112
  * IDs of child locations to attach.
114
113
  */
115
- child_ids?: Array<string> | null;
114
+ child_ids?: Array<string>;
116
115
 
117
116
  /**
118
117
  * Parent location ID. Null for top-level locations.
119
118
  */
120
- parent_id?: string | null;
119
+ parent_id?: string;
121
120
  }
122
121
 
123
122
  /**
@@ -168,12 +167,12 @@ export interface LocationCreateParams {
168
167
  /**
169
168
  * Body param: IDs of child locations to attach.
170
169
  */
171
- child_ids?: Array<string> | null;
170
+ child_ids?: Array<string>;
172
171
 
173
172
  /**
174
173
  * Body param: Parent location ID. Null for top-level locations.
175
174
  */
176
- parent_id?: string | null;
175
+ parent_id?: string;
177
176
  }
178
177
 
179
178
  export interface LocationRetrieveParams {
@@ -21,8 +21,6 @@ export class ScanningStations extends APIResource {
21
21
  * name: 'Packaging Line 1',
22
22
  * operator_requirement: 'none',
23
23
  * type: 'init_batch',
24
- * label_size: '1x1',
25
- * label_type: 'tag',
26
24
  * });
27
25
  * ```
28
26
  */
@@ -61,7 +59,6 @@ export class ScanningStations extends APIResource {
61
59
  * const scanningStation =
62
60
  * await client.operations.scanningStations.update(
63
61
  * 'scst_0129335dd6286056a97024fcc1',
64
- * { name: 'Station B' },
65
62
  * );
66
63
  * ```
67
64
  */
@@ -57,7 +57,6 @@ export class ShippingTerms extends APIResource {
57
57
  * const shippingTerm =
58
58
  * await client.operations.shippingTerms.update(
59
59
  * 'shtm_014341ab4bb5bf94d5b6936f86',
60
- * { name: 'Collect' },
61
60
  * );
62
61
  * ```
63
62
  */
@@ -126,7 +125,7 @@ export interface CreateShippingTermRequest {
126
125
  * QuantityInput represents a value with an associated unit for create/update
127
126
  * requests.
128
127
  */
129
- flat_rate?: CustomersAPI.QuantityInput | null;
128
+ flat_rate?: CustomersAPI.QuantityInput;
130
129
 
131
130
  /**
132
131
  * Service level IDs that qualify for free shipping.
@@ -137,7 +136,7 @@ export interface CreateShippingTermRequest {
137
136
  * QuantityInput represents a value with an associated unit for create/update
138
137
  * requests.
139
138
  */
140
- minimum_order_value?: CustomersAPI.QuantityInput | null;
139
+ minimum_order_value?: CustomersAPI.QuantityInput;
141
140
  }
142
141
 
143
142
  /**
@@ -220,7 +219,7 @@ export interface ShippingTermCreateParams {
220
219
  * Body param: QuantityInput represents a value with an associated unit for
221
220
  * create/update requests.
222
221
  */
223
- flat_rate?: CustomersAPI.QuantityInput | null;
222
+ flat_rate?: CustomersAPI.QuantityInput;
224
223
 
225
224
  /**
226
225
  * Body param: Service level IDs that qualify for free shipping.
@@ -231,7 +230,7 @@ export interface ShippingTermCreateParams {
231
230
  * Body param: QuantityInput represents a value with an associated unit for
232
231
  * create/update requests.
233
232
  */
234
- minimum_order_value?: CustomersAPI.QuantityInput | null;
233
+ minimum_order_value?: CustomersAPI.QuantityInput;
235
234
  }
236
235
 
237
236
  export interface ShippingTermRetrieveParams {
@@ -49,7 +49,6 @@ export class AccountGroups extends APIResource {
49
49
  * const accountGroup =
50
50
  * await client.sales.accountGroups.update(
51
51
  * 'acgp_018e88072d1320808dc979cfac',
52
- * { name: 'Updated Wholesale Customers' },
53
52
  * );
54
53
  * ```
55
54
  */
@@ -105,6 +104,10 @@ export interface AccountGroup {
105
104
 
106
105
  /**
107
106
  * Commission policy.
107
+ *
108
+ * - `commission_exempt`: no commission applies.
109
+ * - `commission_applied`: commission applies; if the account group is within a
110
+ * sales rep's territory, it will be assigned to that rep unless overridden.
108
111
  */
109
112
  commission_policy: 'commission_applied' | 'commission_exempt';
110
113
 
@@ -120,6 +123,10 @@ export interface AccountGroup {
120
123
 
121
124
  /**
122
125
  * Freight policy.
126
+ *
127
+ * - `free_freight`: customers within this group will not have to pay for freight.
128
+ * - `billed_freight`: freight will be applied to any order within this account
129
+ * group, unless overridden elsewhere.
123
130
  */
124
131
  freight_policy: 'free_freight' | 'billed_freight';
125
132
 
@@ -136,11 +143,10 @@ export interface AccountGroup {
136
143
  /**
137
144
  * Account group type.
138
145
  *
139
- * The type `pricing_group` indicates this account group is utilized for pricing
140
- * rules. For example, you may have a 'Preferred' price group that receives a
141
- * special discount rate. The type `type_group` indicates the account group is
142
- * utilized to categorize a set of accounts. For example, you may have a group of
143
- * accounts that are 'Consumers' or 'Distributors'.
146
+ * - `pricing_group`: used for pricing rules, such as a "Preferred" group that
147
+ * receives a special discount.
148
+ * - `type_group`: used to categorize accounts, such as "Consumers" or
149
+ * "Distributors".
144
150
  */
145
151
  type: 'pricing_group' | 'type_group';
146
152
 
@@ -161,11 +167,22 @@ export interface CreateAccountGroupRequest {
161
167
 
162
168
  /**
163
169
  * Account group type.
170
+ *
171
+ * Cannot be changed after creation.
172
+ *
173
+ * - `pricing_group`: used for pricing rules, such as a "Preferred" group that
174
+ * receives a special discount.
175
+ * - `type_group`: used to categorize accounts, such as "Consumers" or
176
+ * "Distributors".
164
177
  */
165
178
  type: 'pricing_group' | 'type_group';
166
179
 
167
180
  /**
168
- * Commission policy.
181
+ * Commission policy. Defaults to `commission_exempt`.
182
+ *
183
+ * - `commission_exempt`: no commission applies.
184
+ * - `commission_applied`: commission applies; if the account group is within a
185
+ * sales rep's territory, it will be assigned to that rep unless overridden.
169
186
  */
170
187
  commission_policy?: 'commission_applied' | 'commission_exempt';
171
188
 
@@ -175,7 +192,11 @@ export interface CreateAccountGroupRequest {
175
192
  description?: string;
176
193
 
177
194
  /**
178
- * Freight policy.
195
+ * Freight policy. Defaults to `billed_freight`.
196
+ *
197
+ * - `free_freight`: customers within this group will not have to pay for freight.
198
+ * - `billed_freight`: freight will be applied to any order within this account
199
+ * group, unless overridden elsewhere.
179
200
  */
180
201
  freight_policy?: 'free_freight' | 'billed_freight';
181
202
  }
@@ -206,6 +227,10 @@ export interface ListAccountGroup {
206
227
  export interface UpdateAccountGroupRequest {
207
228
  /**
208
229
  * Commission policy.
230
+ *
231
+ * - `commission_exempt`: no commission applies.
232
+ * - `commission_applied`: commission applies; if the account group is within a
233
+ * sales rep's territory, it will be assigned to that rep unless overridden.
209
234
  */
210
235
  commission_policy?: 'commission_applied' | 'commission_exempt';
211
236
 
@@ -216,6 +241,10 @@ export interface UpdateAccountGroupRequest {
216
241
 
217
242
  /**
218
243
  * Freight policy.
244
+ *
245
+ * - `free_freight`: customers within this group will not have to pay for freight.
246
+ * - `billed_freight`: freight will be applied to any order within this account
247
+ * group, unless overridden elsewhere.
219
248
  */
220
249
  freight_policy?: 'free_freight' | 'billed_freight';
221
250
 
@@ -235,11 +264,22 @@ export interface AccountGroupCreateParams {
235
264
 
236
265
  /**
237
266
  * Account group type.
267
+ *
268
+ * Cannot be changed after creation.
269
+ *
270
+ * - `pricing_group`: used for pricing rules, such as a "Preferred" group that
271
+ * receives a special discount.
272
+ * - `type_group`: used to categorize accounts, such as "Consumers" or
273
+ * "Distributors".
238
274
  */
239
275
  type: 'pricing_group' | 'type_group';
240
276
 
241
277
  /**
242
- * Commission policy.
278
+ * Commission policy. Defaults to `commission_exempt`.
279
+ *
280
+ * - `commission_exempt`: no commission applies.
281
+ * - `commission_applied`: commission applies; if the account group is within a
282
+ * sales rep's territory, it will be assigned to that rep unless overridden.
243
283
  */
244
284
  commission_policy?: 'commission_applied' | 'commission_exempt';
245
285
 
@@ -249,7 +289,11 @@ export interface AccountGroupCreateParams {
249
289
  description?: string;
250
290
 
251
291
  /**
252
- * Freight policy.
292
+ * Freight policy. Defaults to `billed_freight`.
293
+ *
294
+ * - `free_freight`: customers within this group will not have to pay for freight.
295
+ * - `billed_freight`: freight will be applied to any order within this account
296
+ * group, unless overridden elsewhere.
253
297
  */
254
298
  freight_policy?: 'free_freight' | 'billed_freight';
255
299
  }
@@ -257,6 +301,10 @@ export interface AccountGroupCreateParams {
257
301
  export interface AccountGroupUpdateParams {
258
302
  /**
259
303
  * Commission policy.
304
+ *
305
+ * - `commission_exempt`: no commission applies.
306
+ * - `commission_applied`: commission applies; if the account group is within a
307
+ * sales rep's territory, it will be assigned to that rep unless overridden.
260
308
  */
261
309
  commission_policy?: 'commission_applied' | 'commission_exempt';
262
310
 
@@ -267,6 +315,10 @@ export interface AccountGroupUpdateParams {
267
315
 
268
316
  /**
269
317
  * Freight policy.
318
+ *
319
+ * - `free_freight`: customers within this group will not have to pay for freight.
320
+ * - `billed_freight`: freight will be applied to any order within this account
321
+ * group, unless overridden elsewhere.
270
322
  */
271
323
  freight_policy?: 'free_freight' | 'billed_freight';
272
324
 
@@ -46,7 +46,6 @@ export class Addresses extends APIResource {
46
46
  * ```ts
47
47
  * const address = await client.sales.addresses.update(
48
48
  * 'ad_012100950cfaa34aa0e0ad7258',
49
- * { name: 'Warehouse' },
50
49
  * );
51
50
  * ```
52
51
  */
@@ -103,37 +102,37 @@ export interface AddressInput {
103
102
  /**
104
103
  * Email address associated with the address.
105
104
  */
106
- email?: string | null;
105
+ email?: string;
107
106
 
108
107
  /**
109
108
  * City or locality.
110
109
  */
111
- locality?: string | null;
110
+ locality?: string;
112
111
 
113
112
  /**
114
113
  * Phone number associated with the address.
115
114
  */
116
- phone?: string | null;
115
+ phone?: string;
117
116
 
118
117
  /**
119
118
  * Postal or ZIP code.
120
119
  */
121
- postal_code?: string | null;
120
+ postal_code?: string;
122
121
 
123
122
  /**
124
123
  * State or administrative area.
125
124
  */
126
- state?: string | null;
125
+ state?: string;
127
126
 
128
127
  /**
129
128
  * First line of the street address.
130
129
  */
131
- street_line_1?: string | null;
130
+ street_line_1?: string;
132
131
 
133
132
  /**
134
133
  * Second line of the street address.
135
134
  */
136
- street_line_2?: string | null;
135
+ street_line_2?: string;
137
136
 
138
137
  /**
139
138
  * Address type.
@@ -232,37 +231,37 @@ export interface AddressCreateParams {
232
231
  /**
233
232
  * Email address associated with the address.
234
233
  */
235
- email?: string | null;
234
+ email?: string;
236
235
 
237
236
  /**
238
237
  * City or locality.
239
238
  */
240
- locality?: string | null;
239
+ locality?: string;
241
240
 
242
241
  /**
243
242
  * Phone number associated with the address.
244
243
  */
245
- phone?: string | null;
244
+ phone?: string;
246
245
 
247
246
  /**
248
247
  * Postal or ZIP code.
249
248
  */
250
- postal_code?: string | null;
249
+ postal_code?: string;
251
250
 
252
251
  /**
253
252
  * State or administrative area.
254
253
  */
255
- state?: string | null;
254
+ state?: string;
256
255
 
257
256
  /**
258
257
  * First line of the street address.
259
258
  */
260
- street_line_1?: string | null;
259
+ street_line_1?: string;
261
260
 
262
261
  /**
263
262
  * Second line of the street address.
264
263
  */
265
- street_line_2?: string | null;
264
+ street_line_2?: string;
266
265
 
267
266
  /**
268
267
  * Address type.
@@ -34,7 +34,6 @@ export class Customers extends APIResource {
34
34
  * 'shtm_014341ab4bb5bf94d5b6936f86',
35
35
  * name: 'Acme Inc.',
36
36
  * ship_to_address: { name: 'Acme Inc.', country: 'US' },
37
- * note: 'Key enterprise account',
38
37
  * });
39
38
  * ```
40
39
  */
@@ -69,11 +68,6 @@ export class Customers extends APIResource {
69
68
  * ```ts
70
69
  * const customer = await client.sales.customers.update(
71
70
  * 'ac_0170df1ac58e4d24c66fc89f5f',
72
- * {
73
- * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
74
- * freight_policy: 'billed_freight',
75
- * name: 'Acme Corp Updated',
76
- * },
77
71
  * );
78
72
  * ```
79
73
  */
@@ -176,6 +170,11 @@ export interface AccountUser {
176
170
  */
177
171
  updated_at: string;
178
172
 
173
+ /**
174
+ * Underlying user ID.
175
+ */
176
+ user_id: string;
177
+
179
178
  /**
180
179
  * Username.
181
180
  */