repzo 1.0.141 → 1.0.142

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 (185) hide show
  1. package/docs/README.md +16 -315
  2. package/docs/api/activity-ai-sales-order-examples.md +63 -112
  3. package/docs/api/activity-ai-sales-order.md +15 -215
  4. package/docs/api/activity-feedback-examples.md +82 -136
  5. package/docs/api/activity-feedback-v2-examples.md +86 -138
  6. package/docs/api/activity-feedback-v2.md +19 -263
  7. package/docs/api/activity-feedback.md +19 -263
  8. package/docs/api/activity-storecheck-examples.md +62 -101
  9. package/docs/api/activity-storecheck.md +13 -186
  10. package/docs/api/adjust-account-examples.md +50 -78
  11. package/docs/api/adjust-account.md +12 -117
  12. package/docs/api/adjust-inventory-examples.md +50 -78
  13. package/docs/api/adjust-inventory.md +16 -121
  14. package/docs/api/approval-request-examples.md +58 -97
  15. package/docs/api/approval-request.md +26 -189
  16. package/docs/api/approvals-examples.md +58 -97
  17. package/docs/api/approvals.md +26 -189
  18. package/docs/api/asset-examples.md +53 -95
  19. package/docs/api/asset-part-examples.md +62 -101
  20. package/docs/api/asset-part-receival-examples.md +62 -101
  21. package/docs/api/asset-part-receival.md +13 -186
  22. package/docs/api/asset-part-transfer-examples.md +63 -112
  23. package/docs/api/asset-part-transfer.md +15 -215
  24. package/docs/api/asset-part-type-examples.md +62 -101
  25. package/docs/api/asset-part-type.md +13 -186
  26. package/docs/api/asset-part-unit-examples.md +62 -101
  27. package/docs/api/asset-part-unit.md +13 -186
  28. package/docs/api/asset-part.md +13 -186
  29. package/docs/api/asset-type-examples.md +58 -97
  30. package/docs/api/asset-type.md +26 -189
  31. package/docs/api/asset-unit-examples.md +80 -147
  32. package/docs/api/asset-unit.md +19 -306
  33. package/docs/api/asset.md +26 -189
  34. package/docs/api/banks-examples.md +53 -95
  35. package/docs/api/banks.md +26 -189
  36. package/docs/api/bankslists-examples.md +58 -97
  37. package/docs/api/bankslists.md +26 -189
  38. package/docs/api/brand-examples.md +58 -97
  39. package/docs/api/brand.md +18 -181
  40. package/docs/api/category-examples.md +58 -97
  41. package/docs/api/category.md +18 -181
  42. package/docs/api/checks-examples.md +45 -76
  43. package/docs/api/checks.md +12 -117
  44. package/docs/api/client-channel-examples.md +62 -101
  45. package/docs/api/client-channel.md +20 -207
  46. package/docs/api/client-contact-examples.md +62 -101
  47. package/docs/api/client-contact.md +25 -233
  48. package/docs/api/client-examples.md +53 -95
  49. package/docs/api/client-location-examples.md +71 -126
  50. package/docs/api/client-location.md +19 -275
  51. package/docs/api/client.md +18 -181
  52. package/docs/api/contract-examples.md +58 -97
  53. package/docs/api/contract-installment-examples.md +84 -148
  54. package/docs/api/contract-installment.md +21 -303
  55. package/docs/api/contract.md +26 -189
  56. package/docs/api/custom-list-examples.md +58 -97
  57. package/docs/api/custom-list-item-examples.md +58 -97
  58. package/docs/api/custom-list-item.md +26 -189
  59. package/docs/api/custom-list.md +26 -189
  60. package/docs/api/custom-status-examples.md +58 -97
  61. package/docs/api/custom-status.md +26 -189
  62. package/docs/api/day-examples.md +45 -76
  63. package/docs/api/day.md +12 -117
  64. package/docs/api/feedback-options-examples.md +90 -153
  65. package/docs/api/feedback-options.md +23 -307
  66. package/docs/api/fullinvoices-examples.md +51 -83
  67. package/docs/api/fullinvoices.md +22 -162
  68. package/docs/api/index.md +99 -705
  69. package/docs/api/integration-action-log-examples.md +62 -101
  70. package/docs/api/integration-action-log.md +13 -186
  71. package/docs/api/integration-app-examples.md +51 -83
  72. package/docs/api/integration-app.md +16 -156
  73. package/docs/api/integration-command-log-examples.md +62 -101
  74. package/docs/api/integration-command-log.md +13 -186
  75. package/docs/api/inventory-adjustment-reason-examples.md +58 -97
  76. package/docs/api/inventory-adjustment-reason.md +26 -189
  77. package/docs/api/inventory-examples.md +35 -45
  78. package/docs/api/inventory.md +8 -53
  79. package/docs/api/mail-unsubscribe-examples.md +69 -124
  80. package/docs/api/mail-unsubscribe.md +13 -251
  81. package/docs/api/measureunit-examples.md +58 -97
  82. package/docs/api/measureunit-family-examples.md +58 -97
  83. package/docs/api/measureunit-family.md +18 -188
  84. package/docs/api/measureunit.md +20 -190
  85. package/docs/api/media-examples.md +53 -95
  86. package/docs/api/media-storage-examples.md +58 -97
  87. package/docs/api/media-storage.md +18 -181
  88. package/docs/api/media.md +18 -181
  89. package/docs/api/msl-examples.md +53 -95
  90. package/docs/api/msl-products-examples.md +58 -97
  91. package/docs/api/msl-products.md +26 -189
  92. package/docs/api/msl.md +26 -189
  93. package/docs/api/ocr-invoice-job-examples.md +74 -132
  94. package/docs/api/ocr-invoice-job-group-examples.md +73 -121
  95. package/docs/api/ocr-invoice-job-group.md +15 -215
  96. package/docs/api/ocr-invoice-job-page-examples.md +63 -112
  97. package/docs/api/ocr-invoice-job-page.md +15 -215
  98. package/docs/api/ocr-invoice-job-template-examples.md +62 -101
  99. package/docs/api/ocr-invoice-job-template.md +13 -186
  100. package/docs/api/ocr-invoice-job.md +19 -253
  101. package/docs/api/patch-action-examples.md +63 -112
  102. package/docs/api/patch-action.md +15 -215
  103. package/docs/api/payment-terms-examples.md +58 -97
  104. package/docs/api/payment-terms.md +28 -198
  105. package/docs/api/payments-examples.md +51 -83
  106. package/docs/api/payments.md +22 -162
  107. package/docs/api/pricelist-examples.md +58 -97
  108. package/docs/api/pricelist-item-examples.md +58 -97
  109. package/docs/api/pricelist-item.md +24 -208
  110. package/docs/api/pricelist.md +18 -181
  111. package/docs/api/product-examples.md +58 -97
  112. package/docs/api/product-group-examples.md +58 -97
  113. package/docs/api/product-group.md +18 -181
  114. package/docs/api/product-modifiers-group-examples.md +70 -125
  115. package/docs/api/product-modifiers-group.md +19 -275
  116. package/docs/api/product.md +20 -190
  117. package/docs/api/proforma-examples.md +51 -83
  118. package/docs/api/proforma.md +22 -162
  119. package/docs/api/quick-convert-to-pdf-examples.md +30 -41
  120. package/docs/api/quick-convert-to-pdf.md +6 -56
  121. package/docs/api/receiving-material-examples.md +51 -83
  122. package/docs/api/receiving-material.md +16 -156
  123. package/docs/api/refund-examples.md +46 -81
  124. package/docs/api/refund.md +16 -156
  125. package/docs/api/rep-balance-summary-examples.md +36 -46
  126. package/docs/api/rep-balance-summary.md +6 -53
  127. package/docs/api/rep-examples.md +53 -95
  128. package/docs/api/rep.md +18 -181
  129. package/docs/api/return-asset-part-unit-examples.md +62 -101
  130. package/docs/api/return-asset-part-unit.md +13 -186
  131. package/docs/api/return-reason-examples.md +58 -97
  132. package/docs/api/return-reason.md +18 -181
  133. package/docs/api/route-examples.md +53 -95
  134. package/docs/api/route.md +18 -181
  135. package/docs/api/safe-invoice-serial-counter-examples.md +72 -127
  136. package/docs/api/safe-invoice-serial-counter.md +17 -266
  137. package/docs/api/settings-examples.md +47 -70
  138. package/docs/api/settings.md +18 -123
  139. package/docs/api/settlement-examples.md +50 -78
  140. package/docs/api/settlement.md +12 -117
  141. package/docs/api/speciality-examples.md +70 -125
  142. package/docs/api/speciality.md +17 -266
  143. package/docs/api/store-asset-part-unit-examples.md +62 -101
  144. package/docs/api/store-asset-part-unit.md +13 -186
  145. package/docs/api/storecheck-template-examples.md +58 -97
  146. package/docs/api/storecheck-template.md +18 -181
  147. package/docs/api/subcategory-examples.md +58 -97
  148. package/docs/api/subcategory.md +18 -181
  149. package/docs/api/supplier-examples.md +58 -97
  150. package/docs/api/supplier.md +26 -189
  151. package/docs/api/svix-integration-examples.md +62 -101
  152. package/docs/api/svix-integration.md +13 -186
  153. package/docs/api/tag-examples.md +53 -95
  154. package/docs/api/tag.md +18 -181
  155. package/docs/api/tax-examples.md +53 -95
  156. package/docs/api/tax.md +18 -181
  157. package/docs/api/team-examples.md +53 -95
  158. package/docs/api/team.md +18 -181
  159. package/docs/api/transfer-examples.md +51 -83
  160. package/docs/api/transfer.md +16 -156
  161. package/docs/api/update-integration-meta-examples.md +63 -112
  162. package/docs/api/update-integration-meta.md +15 -215
  163. package/docs/api/variant-examples.md +58 -97
  164. package/docs/api/variant.md +20 -183
  165. package/docs/api/visit-examples.md +46 -81
  166. package/docs/api/visit.md +22 -162
  167. package/docs/api/warehouse-examples.md +58 -97
  168. package/docs/api/warehouse.md +18 -181
  169. package/docs/api/workorder-category-examples.md +76 -141
  170. package/docs/api/workorder-category.md +19 -305
  171. package/docs/api/workorder-examples.md +58 -97
  172. package/docs/api/workorder-portal-examples.md +75 -132
  173. package/docs/api/workorder-portal-link-examples.md +70 -145
  174. package/docs/api/workorder-portal-link.md +23 -336
  175. package/docs/api/workorder-portal.md +19 -271
  176. package/docs/api/workorder-request-examples.md +58 -97
  177. package/docs/api/workorder-request.md +26 -189
  178. package/docs/api/workorder.md +26 -189
  179. package/docs/generated/index.html +1 -1
  180. package/docs/generated/repzo-api-complete.yaml +2585 -2585
  181. package/lib/index.d.ts +180 -0
  182. package/lib/index.js +90 -0
  183. package/lib/types/index.d.ts +13393 -14636
  184. package/package.json +2 -3
  185. package/src/types/index.ts +14 -1
@@ -11,60 +11,53 @@ npm install repzo
11
11
  ## Basic Setup
12
12
 
13
13
  ```typescript
14
- import { Service } from 'repzo';
14
+ import { Service } from "repzo";
15
15
 
16
16
  // Initialize with your API key
17
- const apiKey = 'your-api-key';
18
- const baseURL = 'https://api.repzo.me/v1';
17
+ const apiKey = "your-api-key";
18
+ const baseURL = "https://api.repzo.me/v1";
19
19
  ```
20
20
 
21
21
  ## API Usage Examples
22
22
 
23
-
24
-
25
23
  ### Get all unsubscribed emails
26
24
 
27
-
28
25
  Retrieve a list of all unsubscribed email addresses with optional filtering and pagination
29
26
 
30
-
31
27
  ```typescript
32
-
33
28
  // GET /mail-unsubscribe
34
29
 
35
30
  const params = {
36
-
37
31
  page: 1, // Page number for pagination
38
32
 
39
33
  per_page: 1, // Number of items per page
40
34
 
41
- sort: 'example-value', // Sort field
35
+ sort: "example-value", // Sort field
42
36
 
43
- email: 'example-value', // Filter by email address
37
+ email: "example-value", // Filter by email address
44
38
 
45
39
  company_namespace: null, // Company namespace for filtering
46
40
 
47
41
  _id: null, // Filter by ID
48
-
49
42
  };
50
43
 
51
- const result = await fetch(`${baseURL}/mail-unsubscribe?${new URLSearchParams(params)}`, {
52
- method: 'GET',
53
- headers: {
54
- 'Authorization': `Bearer ${apiKey}`,
55
- 'Content-Type': 'application/json'
44
+ const result = await fetch(
45
+ `${baseURL}/mail-unsubscribe?${new URLSearchParams(params)}`,
46
+ {
47
+ method: "GET",
48
+ headers: {
49
+ Authorization: `Bearer ${apiKey}`,
50
+ "Content-Type": "application/json",
51
+ },
56
52
  }
57
- });
53
+ );
58
54
 
59
55
  const data = await result.json();
60
56
  console.log(data);
61
-
62
-
63
-
64
57
  ```
65
58
 
66
-
67
59
  **Expected Response:**
60
+
68
61
  ```json
69
62
  {
70
63
  "success": true,
@@ -74,18 +67,13 @@ console.log(data);
74
67
  }
75
68
  ```
76
69
 
77
-
78
70
  ---
79
71
 
80
-
81
72
  ### Add email to unsubscribe list
82
73
 
83
-
84
74
  Add an email address to the unsubscribe list
85
75
 
86
-
87
76
  ```typescript
88
-
89
77
  // POST /mail-unsubscribe
90
78
 
91
79
  const requestBody = {
@@ -94,61 +82,48 @@ const requestBody = {
94
82
  };
95
83
 
96
84
  const result = await fetch(`${baseURL}/mail-unsubscribe`, {
97
- method: 'POST',
85
+ method: "POST",
98
86
  headers: {
99
- 'Authorization': `Bearer ${apiKey}`,
100
- 'Content-Type': 'application/json'
87
+ Authorization: `Bearer ${apiKey}`,
88
+ "Content-Type": "application/json",
101
89
  },
102
- body: JSON.stringify(requestBody)
90
+ body: JSON.stringify(requestBody),
103
91
  });
104
92
 
105
93
  const data = await result.json();
106
94
  console.log(data);
107
-
108
-
109
-
110
95
  ```
111
96
 
112
-
113
-
114
97
  ---
115
98
 
116
-
117
-
118
-
119
99
  ### Get unsubscribe record by ID
120
100
 
121
-
122
101
  Retrieve a specific unsubscribe record by its ID
123
102
 
124
-
125
103
  ```typescript
126
-
127
104
  // GET /mail-unsubscribe/{id}
128
105
 
129
106
  const params = {
130
-
131
- id: 'example-value', // Unsubscribe record ID
132
-
107
+ id: "example-value", // Unsubscribe record ID
133
108
  };
134
109
 
135
- const result = await fetch(`${baseURL}/mail-unsubscribe/{id}?${new URLSearchParams(params)}`, {
136
- method: 'GET',
137
- headers: {
138
- 'Authorization': `Bearer ${apiKey}`,
139
- 'Content-Type': 'application/json'
110
+ const result = await fetch(
111
+ `${baseURL}/mail-unsubscribe/{id}?${new URLSearchParams(params)}`,
112
+ {
113
+ method: "GET",
114
+ headers: {
115
+ Authorization: `Bearer ${apiKey}`,
116
+ "Content-Type": "application/json",
117
+ },
140
118
  }
141
- });
119
+ );
142
120
 
143
121
  const data = await result.json();
144
122
  console.log(data);
145
-
146
-
147
-
148
123
  ```
149
124
 
150
-
151
125
  **Expected Response:**
126
+
152
127
  ```json
153
128
  {
154
129
  "success": true,
@@ -158,39 +133,32 @@ console.log(data);
158
133
  }
159
134
  ```
160
135
 
161
-
162
136
  ---
163
137
 
164
-
165
138
  ### Remove email from unsubscribe list
166
139
 
167
-
168
140
  Remove an email address from the unsubscribe list (re-subscribe)
169
141
 
170
-
171
142
  ```typescript
172
-
173
143
  // DELETE /mail-unsubscribe/{id}
174
144
 
175
- const id = 'your-resource-id';
176
- const deletePath = '/mail-unsubscribe/{id}'.replace('{id}', id);
145
+ const id = "your-resource-id";
146
+ const deletePath = "/mail-unsubscribe/{id}".replace("{id}", id);
177
147
 
178
148
  const result = await fetch(`${baseURL}${deletePath}`, {
179
- method: 'DELETE',
149
+ method: "DELETE",
180
150
  headers: {
181
- 'Authorization': `Bearer ${apiKey}`,
182
- 'Content-Type': 'application/json'
183
- }
151
+ Authorization: `Bearer ${apiKey}`,
152
+ "Content-Type": "application/json",
153
+ },
184
154
  });
185
155
 
186
156
  const data = await result.json();
187
157
  console.log(data);
188
-
189
-
190
158
  ```
191
159
 
192
-
193
160
  **Expected Response:**
161
+
194
162
  ```json
195
163
  {
196
164
  "success": true,
@@ -200,20 +168,13 @@ console.log(data);
200
168
  }
201
169
  ```
202
170
 
203
-
204
171
  ---
205
172
 
206
-
207
-
208
-
209
173
  ### Bulk remove emails from unsubscribe list
210
174
 
211
-
212
175
  Remove multiple email addresses from the unsubscribe list
213
176
 
214
-
215
177
  ```typescript
216
-
217
178
  // POST /mail-unsubscribe/remove
218
179
 
219
180
  const requestBody = {
@@ -222,23 +183,20 @@ const requestBody = {
222
183
  };
223
184
 
224
185
  const result = await fetch(`${baseURL}/mail-unsubscribe/remove`, {
225
- method: 'POST',
186
+ method: "POST",
226
187
  headers: {
227
- 'Authorization': `Bearer ${apiKey}`,
228
- 'Content-Type': 'application/json'
188
+ Authorization: `Bearer ${apiKey}`,
189
+ "Content-Type": "application/json",
229
190
  },
230
- body: JSON.stringify(requestBody)
191
+ body: JSON.stringify(requestBody),
231
192
  });
232
193
 
233
194
  const data = await result.json();
234
195
  console.log(data);
235
-
236
-
237
-
238
196
  ```
239
197
 
240
-
241
198
  **Expected Response:**
199
+
242
200
  ```json
243
201
  {
244
202
  "success": true,
@@ -248,20 +206,13 @@ console.log(data);
248
206
  }
249
207
  ```
250
208
 
251
-
252
209
  ---
253
210
 
254
-
255
-
256
-
257
211
  ### Check if email is unsubscribed
258
212
 
259
-
260
213
  Check if an email address is in the unsubscribe list
261
214
 
262
-
263
215
  ```typescript
264
-
265
216
  // POST /mail-unsubscribe/check
266
217
 
267
218
  const requestBody = {
@@ -270,23 +221,20 @@ const requestBody = {
270
221
  };
271
222
 
272
223
  const result = await fetch(`${baseURL}/mail-unsubscribe/check`, {
273
- method: 'POST',
224
+ method: "POST",
274
225
  headers: {
275
- 'Authorization': `Bearer ${apiKey}`,
276
- 'Content-Type': 'application/json'
226
+ Authorization: `Bearer ${apiKey}`,
227
+ "Content-Type": "application/json",
277
228
  },
278
- body: JSON.stringify(requestBody)
229
+ body: JSON.stringify(requestBody),
279
230
  });
280
231
 
281
232
  const data = await result.json();
282
233
  console.log(data);
283
-
284
-
285
-
286
234
  ```
287
235
 
288
-
289
236
  **Expected Response:**
237
+
290
238
  ```json
291
239
  {
292
240
  "success": true,
@@ -296,27 +244,21 @@ console.log(data);
296
244
  }
297
245
  ```
298
246
 
299
-
300
247
  ---
301
248
 
302
-
303
-
304
-
305
249
  ## Using with Repzo SDK Service Types
306
250
 
307
251
  The Repzo SDK provides TypeScript interfaces for type safety:
308
252
 
309
253
  ```typescript
310
- import { Service } from 'repzo';
254
+ import { Service } from "repzo";
311
255
 
312
256
  // Example using SDK types
313
257
 
314
-
315
258
  async function example() {
316
259
  // Use the Service.Mailunsubscribe types for better type safety
317
260
  // This provides intellisense and compile-time type checking
318
261
  }
319
-
320
262
  ```
321
263
 
322
264
  ## Error Handling
@@ -324,11 +266,11 @@ async function example() {
324
266
  ```typescript
325
267
  try {
326
268
  const result = await fetch(`${baseURL}/endpoint`, {
327
- method: 'GET',
269
+ method: "GET",
328
270
  headers: {
329
- 'Authorization': `Bearer ${apiKey}`,
330
- 'Content-Type': 'application/json'
331
- }
271
+ Authorization: `Bearer ${apiKey}`,
272
+ "Content-Type": "application/json",
273
+ },
332
274
  });
333
275
 
334
276
  if (!result.ok) {
@@ -336,14 +278,14 @@ try {
336
278
  }
337
279
 
338
280
  const data = await result.json();
339
-
281
+
340
282
  if (!data.success) {
341
- throw new Error(data.error || 'API request failed');
283
+ throw new Error(data.error || "API request failed");
342
284
  }
343
-
285
+
344
286
  return data.data;
345
287
  } catch (error) {
346
- console.error('API request failed:', error);
288
+ console.error("API request failed:", error);
347
289
  throw error;
348
290
  }
349
291
  ```
@@ -359,18 +301,21 @@ const params = {
359
301
  // other filters...
360
302
  };
361
303
 
362
- const result = await fetch(`${baseURL}/endpoint?${new URLSearchParams(params)}`, {
363
- method: 'GET',
364
- headers: {
365
- 'Authorization': `Bearer ${apiKey}`,
366
- 'Content-Type': 'application/json'
304
+ const result = await fetch(
305
+ `${baseURL}/endpoint?${new URLSearchParams(params)}`,
306
+ {
307
+ method: "GET",
308
+ headers: {
309
+ Authorization: `Bearer ${apiKey}`,
310
+ "Content-Type": "application/json",
311
+ },
367
312
  }
368
- });
313
+ );
369
314
 
370
315
  const data = await result.json();
371
316
 
372
317
  // Access pagination info
373
- console.log('Total items:', data.paging.total);
374
- console.log('Current page:', data.paging.page);
375
- console.log('Total pages:', data.paging.pages);
376
- ```
318
+ console.log("Total items:", data.paging.total);
319
+ console.log("Current page:", data.paging.page);
320
+ console.log("Total pages:", data.paging.pages);
321
+ ```