repzo 1.0.155 → 1.0.157
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.
- package/lib/index.d.ts +1 -2
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -2
- package/package.json +2 -2
- package/src/index.ts +4890 -0
- package/src/oas/activity-ai-sales-order.yaml +623 -0
- package/src/oas/activity-feedback-v2.yaml +753 -0
- package/src/oas/activity-feedback.yaml +645 -0
- package/src/oas/activity-storecheck.yaml +379 -0
- package/src/oas/adjust-account.yaml +241 -0
- package/src/oas/adjust-inventory.yaml +133 -0
- package/src/oas/approval-request.yaml +211 -0
- package/src/oas/approvals.yaml +176 -0
- package/src/oas/asset-part-receival.yaml +591 -0
- package/src/oas/asset-part-transfer.yaml +618 -0
- package/src/oas/asset-part-type.yaml +383 -0
- package/src/oas/asset-part-unit.yaml +722 -0
- package/src/oas/asset-part.yaml +485 -0
- package/src/oas/asset-type.yaml +180 -0
- package/src/oas/asset-unit.yaml +705 -0
- package/src/oas/asset.yaml +204 -0
- package/src/oas/banks.yaml +168 -0
- package/src/oas/bankslists.yaml +168 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/checks.yaml +247 -0
- package/src/oas/client-channel.yaml +480 -0
- package/src/oas/client-contact.yaml +665 -0
- package/src/oas/client-location.yaml +687 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/contract-installment.yaml +740 -0
- package/src/oas/contract.yaml +210 -0
- package/src/oas/custom-list-item.yaml +168 -0
- package/src/oas/custom-list.yaml +168 -0
- package/src/oas/custom-status.yaml +168 -0
- package/src/oas/day.yaml +246 -0
- package/src/oas/feedback-options.yaml +802 -0
- package/src/oas/fullinvoices.yaml +584 -0
- package/src/oas/integration-action-log.yaml +361 -0
- package/src/oas/integration-app.yaml +303 -0
- package/src/oas/integration-command-log.yaml +381 -0
- package/src/oas/inventory-adjustment-reason.yaml +165 -0
- package/src/oas/inventory.yaml +64 -0
- package/src/oas/mail-unsubscribe.yaml +463 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media-storage.yaml +329 -0
- package/src/oas/media.yaml +472 -0
- package/src/oas/msl-products.yaml +180 -0
- package/src/oas/msl.yaml +186 -0
- package/src/oas/ocr-invoice-job-group.yaml +528 -0
- package/src/oas/ocr-invoice-job-page.yaml +602 -0
- package/src/oas/ocr-invoice-job-template.yaml +628 -0
- package/src/oas/ocr-invoice-job.yaml +603 -0
- package/src/oas/patch-action.yaml +421 -0
- package/src/oas/payment-terms.yaml +235 -0
- package/src/oas/payments.yaml +536 -0
- package/src/oas/pricelist-item.yaml +369 -0
- package/src/oas/pricelist.yaml +287 -0
- package/src/oas/product-group.yaml +278 -0
- package/src/oas/product-modifiers-group.yaml +524 -0
- package/src/oas/product.yaml +578 -0
- package/src/oas/proforma.yaml +180 -0
- package/src/oas/quick-convert-to-pdf.yaml +95 -0
- package/src/oas/receiving-material.yaml +336 -0
- package/src/oas/refund.yaml +281 -0
- package/src/oas/rep-balance-summary.yaml +135 -0
- package/src/oas/rep.yaml +1824 -0
- package/src/oas/return-asset-part-unit.yaml +573 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/safe-invoice-serial-counter.yaml +525 -0
- package/src/oas/settings.yaml +123 -0
- package/src/oas/settlement.yaml +505 -0
- package/src/oas/speciality.yaml +447 -0
- package/src/oas/store-asset-part-unit.yaml +658 -0
- package/src/oas/storecheck-template.yaml +415 -0
- package/src/oas/subcategory.yaml +355 -0
- package/src/oas/supplier.yaml +183 -0
- package/src/oas/svix-integration.yaml +335 -0
- package/src/oas/tag.yaml +272 -0
- package/src/oas/tax.yaml +303 -0
- package/src/oas/team.yaml +268 -0
- package/src/oas/transfer.yaml +347 -0
- package/src/oas/update-integration-meta.yaml +387 -0
- package/src/oas/variant.yaml +569 -0
- package/src/oas/visit.yaml +174 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/oas/workorder-category.yaml +751 -0
- package/src/oas/workorder-portal-link.yaml +811 -0
- package/src/oas/workorder-portal.yaml +650 -0
- package/src/oas/workorder-request.yaml +193 -0
- package/src/oas/workorder.yaml +204 -0
- package/src/types/index.ts +2 -1
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Activity Feedback API
|
|
4
|
+
description: API for managing activity feedback
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://api.repzo.me/v1
|
|
8
|
+
description: Production server
|
|
9
|
+
security:
|
|
10
|
+
- ApiKeyAuth: []
|
|
11
|
+
tags:
|
|
12
|
+
- name: Activity Feedback
|
|
13
|
+
description: Activity feedback management operations
|
|
14
|
+
paths:
|
|
15
|
+
/activity-feedback:
|
|
16
|
+
get:
|
|
17
|
+
tags:
|
|
18
|
+
- Activity Feedback
|
|
19
|
+
summary: Get all activity feedback
|
|
20
|
+
description: Retrieve a list of all activity feedback with optional filtering and pagination
|
|
21
|
+
parameters:
|
|
22
|
+
- name: page
|
|
23
|
+
in: query
|
|
24
|
+
description: Page number for pagination
|
|
25
|
+
required: false
|
|
26
|
+
schema:
|
|
27
|
+
type: integer
|
|
28
|
+
minimum: 1
|
|
29
|
+
default: 1
|
|
30
|
+
- name: per_page
|
|
31
|
+
in: query
|
|
32
|
+
description: Number of items per page
|
|
33
|
+
required: false
|
|
34
|
+
schema:
|
|
35
|
+
type: integer
|
|
36
|
+
minimum: 1
|
|
37
|
+
maximum: 100
|
|
38
|
+
default: 25
|
|
39
|
+
- name: sort
|
|
40
|
+
in: query
|
|
41
|
+
description: Sort field
|
|
42
|
+
required: false
|
|
43
|
+
schema:
|
|
44
|
+
type: string
|
|
45
|
+
- name: company_namespace
|
|
46
|
+
in: query
|
|
47
|
+
description: Company namespace for filtering
|
|
48
|
+
required: false
|
|
49
|
+
schema:
|
|
50
|
+
type: array
|
|
51
|
+
items:
|
|
52
|
+
type: string
|
|
53
|
+
- name: activity_type
|
|
54
|
+
in: query
|
|
55
|
+
description: Filter by activity type
|
|
56
|
+
required: false
|
|
57
|
+
schema:
|
|
58
|
+
type: string
|
|
59
|
+
- name: rep
|
|
60
|
+
in: query
|
|
61
|
+
description: Filter by representative ID
|
|
62
|
+
required: false
|
|
63
|
+
schema:
|
|
64
|
+
type: string
|
|
65
|
+
- name: client
|
|
66
|
+
in: query
|
|
67
|
+
description: Filter by client ID
|
|
68
|
+
required: false
|
|
69
|
+
schema:
|
|
70
|
+
type: string
|
|
71
|
+
- name: rating
|
|
72
|
+
in: query
|
|
73
|
+
description: Filter by rating
|
|
74
|
+
required: false
|
|
75
|
+
schema:
|
|
76
|
+
type: integer
|
|
77
|
+
minimum: 1
|
|
78
|
+
maximum: 5
|
|
79
|
+
- name: _id
|
|
80
|
+
in: query
|
|
81
|
+
description: Filter by ID
|
|
82
|
+
required: false
|
|
83
|
+
schema:
|
|
84
|
+
type: array
|
|
85
|
+
items:
|
|
86
|
+
type: string
|
|
87
|
+
responses:
|
|
88
|
+
"200":
|
|
89
|
+
description: Successful response
|
|
90
|
+
content:
|
|
91
|
+
application/json:
|
|
92
|
+
schema:
|
|
93
|
+
type: object
|
|
94
|
+
properties:
|
|
95
|
+
success:
|
|
96
|
+
type: boolean
|
|
97
|
+
example: true
|
|
98
|
+
data:
|
|
99
|
+
type: array
|
|
100
|
+
items:
|
|
101
|
+
$ref: "#/components/schemas/ActivityFeedback"
|
|
102
|
+
paging:
|
|
103
|
+
$ref: "#/components/schemas/PagingInfo"
|
|
104
|
+
"400":
|
|
105
|
+
$ref: "#/components/responses/BadRequest"
|
|
106
|
+
"401":
|
|
107
|
+
$ref: "#/components/responses/Unauthorized"
|
|
108
|
+
"403":
|
|
109
|
+
$ref: "#/components/responses/Forbidden"
|
|
110
|
+
"500":
|
|
111
|
+
$ref: "#/components/responses/InternalServerError"
|
|
112
|
+
post:
|
|
113
|
+
tags:
|
|
114
|
+
- Activity Feedback
|
|
115
|
+
summary: Create new activity feedback
|
|
116
|
+
description: Create a new activity feedback entry
|
|
117
|
+
requestBody:
|
|
118
|
+
required: true
|
|
119
|
+
content:
|
|
120
|
+
application/json:
|
|
121
|
+
schema:
|
|
122
|
+
$ref: "#/components/schemas/CreateActivityFeedbackRequest"
|
|
123
|
+
responses:
|
|
124
|
+
"201":
|
|
125
|
+
description: Activity feedback created successfully
|
|
126
|
+
content:
|
|
127
|
+
application/json:
|
|
128
|
+
schema:
|
|
129
|
+
type: object
|
|
130
|
+
properties:
|
|
131
|
+
success:
|
|
132
|
+
type: boolean
|
|
133
|
+
example: true
|
|
134
|
+
data:
|
|
135
|
+
$ref: "#/components/schemas/ActivityFeedback"
|
|
136
|
+
"400":
|
|
137
|
+
$ref: "#/components/responses/BadRequest"
|
|
138
|
+
"401":
|
|
139
|
+
$ref: "#/components/responses/Unauthorized"
|
|
140
|
+
"403":
|
|
141
|
+
$ref: "#/components/responses/Forbidden"
|
|
142
|
+
"422":
|
|
143
|
+
$ref: "#/components/responses/ValidationError"
|
|
144
|
+
"500":
|
|
145
|
+
$ref: "#/components/responses/InternalServerError"
|
|
146
|
+
/activity-feedback/{id}:
|
|
147
|
+
get:
|
|
148
|
+
tags:
|
|
149
|
+
- Activity Feedback
|
|
150
|
+
summary: Get activity feedback by ID
|
|
151
|
+
description: Retrieve a specific activity feedback by its ID
|
|
152
|
+
parameters:
|
|
153
|
+
- name: id
|
|
154
|
+
in: path
|
|
155
|
+
required: true
|
|
156
|
+
description: Activity feedback ID
|
|
157
|
+
schema:
|
|
158
|
+
type: string
|
|
159
|
+
responses:
|
|
160
|
+
"200":
|
|
161
|
+
description: Successful response
|
|
162
|
+
content:
|
|
163
|
+
application/json:
|
|
164
|
+
schema:
|
|
165
|
+
type: object
|
|
166
|
+
properties:
|
|
167
|
+
success:
|
|
168
|
+
type: boolean
|
|
169
|
+
example: true
|
|
170
|
+
data:
|
|
171
|
+
$ref: "#/components/schemas/ActivityFeedback"
|
|
172
|
+
"400":
|
|
173
|
+
$ref: "#/components/responses/BadRequest"
|
|
174
|
+
"401":
|
|
175
|
+
$ref: "#/components/responses/Unauthorized"
|
|
176
|
+
"403":
|
|
177
|
+
$ref: "#/components/responses/Forbidden"
|
|
178
|
+
"404":
|
|
179
|
+
$ref: "#/components/responses/NotFound"
|
|
180
|
+
"500":
|
|
181
|
+
$ref: "#/components/responses/InternalServerError"
|
|
182
|
+
patch:
|
|
183
|
+
tags:
|
|
184
|
+
- Activity Feedback
|
|
185
|
+
summary: Update activity feedback
|
|
186
|
+
description: Update an existing activity feedback
|
|
187
|
+
parameters:
|
|
188
|
+
- name: id
|
|
189
|
+
in: path
|
|
190
|
+
required: true
|
|
191
|
+
description: Activity feedback ID
|
|
192
|
+
schema:
|
|
193
|
+
type: string
|
|
194
|
+
requestBody:
|
|
195
|
+
required: true
|
|
196
|
+
content:
|
|
197
|
+
application/json:
|
|
198
|
+
schema:
|
|
199
|
+
$ref: "#/components/schemas/UpdateActivityFeedbackRequest"
|
|
200
|
+
responses:
|
|
201
|
+
"200":
|
|
202
|
+
description: Activity feedback updated successfully
|
|
203
|
+
content:
|
|
204
|
+
application/json:
|
|
205
|
+
schema:
|
|
206
|
+
type: object
|
|
207
|
+
properties:
|
|
208
|
+
success:
|
|
209
|
+
type: boolean
|
|
210
|
+
example: true
|
|
211
|
+
data:
|
|
212
|
+
$ref: "#/components/schemas/ActivityFeedback"
|
|
213
|
+
"400":
|
|
214
|
+
$ref: "#/components/responses/BadRequest"
|
|
215
|
+
"401":
|
|
216
|
+
$ref: "#/components/responses/Unauthorized"
|
|
217
|
+
"403":
|
|
218
|
+
$ref: "#/components/responses/Forbidden"
|
|
219
|
+
"404":
|
|
220
|
+
$ref: "#/components/responses/NotFound"
|
|
221
|
+
"422":
|
|
222
|
+
$ref: "#/components/responses/ValidationError"
|
|
223
|
+
"500":
|
|
224
|
+
$ref: "#/components/responses/InternalServerError"
|
|
225
|
+
delete:
|
|
226
|
+
tags:
|
|
227
|
+
- Activity Feedback
|
|
228
|
+
summary: Delete activity feedback
|
|
229
|
+
description: Delete an activity feedback by ID
|
|
230
|
+
parameters:
|
|
231
|
+
- name: id
|
|
232
|
+
in: path
|
|
233
|
+
required: true
|
|
234
|
+
description: Activity feedback ID
|
|
235
|
+
schema:
|
|
236
|
+
type: string
|
|
237
|
+
responses:
|
|
238
|
+
"200":
|
|
239
|
+
description: Activity feedback deleted successfully
|
|
240
|
+
content:
|
|
241
|
+
application/json:
|
|
242
|
+
schema:
|
|
243
|
+
type: object
|
|
244
|
+
properties:
|
|
245
|
+
success:
|
|
246
|
+
type: boolean
|
|
247
|
+
example: true
|
|
248
|
+
"400":
|
|
249
|
+
$ref: "#/components/responses/BadRequest"
|
|
250
|
+
"401":
|
|
251
|
+
$ref: "#/components/responses/Unauthorized"
|
|
252
|
+
"403":
|
|
253
|
+
$ref: "#/components/responses/Forbidden"
|
|
254
|
+
"404":
|
|
255
|
+
$ref: "#/components/responses/NotFound"
|
|
256
|
+
"500":
|
|
257
|
+
$ref: "#/components/responses/InternalServerError"
|
|
258
|
+
/activity-feedback/analytics:
|
|
259
|
+
get:
|
|
260
|
+
tags:
|
|
261
|
+
- Activity Feedback
|
|
262
|
+
summary: Get feedback analytics
|
|
263
|
+
description: Get analytics and statistics for activity feedback
|
|
264
|
+
parameters:
|
|
265
|
+
- name: date_from
|
|
266
|
+
in: query
|
|
267
|
+
description: Start date for analytics
|
|
268
|
+
required: false
|
|
269
|
+
schema:
|
|
270
|
+
type: string
|
|
271
|
+
format: date
|
|
272
|
+
- name: date_to
|
|
273
|
+
in: query
|
|
274
|
+
description: End date for analytics
|
|
275
|
+
required: false
|
|
276
|
+
schema:
|
|
277
|
+
type: string
|
|
278
|
+
format: date
|
|
279
|
+
- name: activity_type
|
|
280
|
+
in: query
|
|
281
|
+
description: Filter by activity type
|
|
282
|
+
required: false
|
|
283
|
+
schema:
|
|
284
|
+
type: string
|
|
285
|
+
- name: rep
|
|
286
|
+
in: query
|
|
287
|
+
description: Filter by representative ID
|
|
288
|
+
required: false
|
|
289
|
+
schema:
|
|
290
|
+
type: string
|
|
291
|
+
responses:
|
|
292
|
+
"200":
|
|
293
|
+
description: Analytics data retrieved successfully
|
|
294
|
+
content:
|
|
295
|
+
application/json:
|
|
296
|
+
schema:
|
|
297
|
+
type: object
|
|
298
|
+
properties:
|
|
299
|
+
success:
|
|
300
|
+
type: boolean
|
|
301
|
+
example: true
|
|
302
|
+
data:
|
|
303
|
+
type: object
|
|
304
|
+
properties:
|
|
305
|
+
total_feedback:
|
|
306
|
+
type: integer
|
|
307
|
+
description: Total feedback count
|
|
308
|
+
average_rating:
|
|
309
|
+
type: number
|
|
310
|
+
format: float
|
|
311
|
+
description: Average rating
|
|
312
|
+
rating_distribution:
|
|
313
|
+
type: object
|
|
314
|
+
properties:
|
|
315
|
+
"1":
|
|
316
|
+
type: integer
|
|
317
|
+
"2":
|
|
318
|
+
type: integer
|
|
319
|
+
"3":
|
|
320
|
+
type: integer
|
|
321
|
+
"4":
|
|
322
|
+
type: integer
|
|
323
|
+
"5":
|
|
324
|
+
type: integer
|
|
325
|
+
by_activity_type:
|
|
326
|
+
type: object
|
|
327
|
+
additionalProperties:
|
|
328
|
+
type: object
|
|
329
|
+
properties:
|
|
330
|
+
count:
|
|
331
|
+
type: integer
|
|
332
|
+
average_rating:
|
|
333
|
+
type: number
|
|
334
|
+
format: float
|
|
335
|
+
"400":
|
|
336
|
+
$ref: "#/components/responses/BadRequest"
|
|
337
|
+
"401":
|
|
338
|
+
$ref: "#/components/responses/Unauthorized"
|
|
339
|
+
"403":
|
|
340
|
+
$ref: "#/components/responses/Forbidden"
|
|
341
|
+
"500":
|
|
342
|
+
$ref: "#/components/responses/InternalServerError"
|
|
343
|
+
components:
|
|
344
|
+
securitySchemes:
|
|
345
|
+
ApiKeyAuth:
|
|
346
|
+
type: apiKey
|
|
347
|
+
in: header
|
|
348
|
+
name: Authorization
|
|
349
|
+
description: "Use format: Bearer {api_key}"
|
|
350
|
+
schemas:
|
|
351
|
+
ActivityFeedback:
|
|
352
|
+
type: object
|
|
353
|
+
properties:
|
|
354
|
+
_id:
|
|
355
|
+
type: string
|
|
356
|
+
description: Unique identifier
|
|
357
|
+
example: "507f1f77bcf86cd799439011"
|
|
358
|
+
activity_type:
|
|
359
|
+
type: string
|
|
360
|
+
description: Type of activity this feedback is for
|
|
361
|
+
example: "sales_visit"
|
|
362
|
+
activity_id:
|
|
363
|
+
type: string
|
|
364
|
+
description: ID of the related activity
|
|
365
|
+
example: "507f1f77bcf86cd799439012"
|
|
366
|
+
rep:
|
|
367
|
+
type: string
|
|
368
|
+
description: Representative ID
|
|
369
|
+
example: "507f1f77bcf86cd799439013"
|
|
370
|
+
client:
|
|
371
|
+
type: string
|
|
372
|
+
description: Client ID
|
|
373
|
+
example: "507f1f77bcf86cd799439014"
|
|
374
|
+
rating:
|
|
375
|
+
type: integer
|
|
376
|
+
description: Feedback rating (1-5 scale)
|
|
377
|
+
minimum: 1
|
|
378
|
+
maximum: 5
|
|
379
|
+
example: 4
|
|
380
|
+
feedback_text:
|
|
381
|
+
type: string
|
|
382
|
+
description: Detailed feedback text
|
|
383
|
+
example: "Great service, very professional"
|
|
384
|
+
feedback_categories:
|
|
385
|
+
type: array
|
|
386
|
+
items:
|
|
387
|
+
type: string
|
|
388
|
+
description: Categories of feedback
|
|
389
|
+
example: ["service_quality", "timeliness", "professionalism"]
|
|
390
|
+
sentiment:
|
|
391
|
+
type: string
|
|
392
|
+
description: Overall sentiment of the feedback
|
|
393
|
+
enum: ["positive", "neutral", "negative"]
|
|
394
|
+
example: "positive"
|
|
395
|
+
is_anonymous:
|
|
396
|
+
type: boolean
|
|
397
|
+
description: Whether the feedback is anonymous
|
|
398
|
+
example: false
|
|
399
|
+
source:
|
|
400
|
+
type: string
|
|
401
|
+
description: Source of the feedback
|
|
402
|
+
enum: ["mobile_app", "web_portal", "email", "sms", "phone"]
|
|
403
|
+
example: "mobile_app"
|
|
404
|
+
response_time:
|
|
405
|
+
type: integer
|
|
406
|
+
description: Time taken to provide feedback (in seconds)
|
|
407
|
+
example: 120
|
|
408
|
+
attachments:
|
|
409
|
+
type: array
|
|
410
|
+
items:
|
|
411
|
+
type: object
|
|
412
|
+
properties:
|
|
413
|
+
file_url:
|
|
414
|
+
type: string
|
|
415
|
+
description: URL to attached file
|
|
416
|
+
file_type:
|
|
417
|
+
type: string
|
|
418
|
+
description: Type of attached file
|
|
419
|
+
file_size:
|
|
420
|
+
type: integer
|
|
421
|
+
description: Size of attached file in bytes
|
|
422
|
+
follow_up_required:
|
|
423
|
+
type: boolean
|
|
424
|
+
description: Whether follow-up is required
|
|
425
|
+
example: false
|
|
426
|
+
follow_up_notes:
|
|
427
|
+
type: string
|
|
428
|
+
description: Notes for follow-up actions
|
|
429
|
+
company_namespace:
|
|
430
|
+
type: array
|
|
431
|
+
items:
|
|
432
|
+
type: string
|
|
433
|
+
description: Company namespace
|
|
434
|
+
createdAt:
|
|
435
|
+
type: string
|
|
436
|
+
format: date-time
|
|
437
|
+
description: Creation timestamp
|
|
438
|
+
modifiedAt:
|
|
439
|
+
type: string
|
|
440
|
+
format: date-time
|
|
441
|
+
description: Last modification timestamp
|
|
442
|
+
SVClient:
|
|
443
|
+
type: integer
|
|
444
|
+
description: Client version
|
|
445
|
+
__v:
|
|
446
|
+
type: integer
|
|
447
|
+
description: Document version
|
|
448
|
+
required:
|
|
449
|
+
- activity_type
|
|
450
|
+
- rep
|
|
451
|
+
- rating
|
|
452
|
+
CreateActivityFeedbackRequest:
|
|
453
|
+
type: object
|
|
454
|
+
properties:
|
|
455
|
+
activity_type:
|
|
456
|
+
type: string
|
|
457
|
+
description: Type of activity this feedback is for
|
|
458
|
+
example: "sales_visit"
|
|
459
|
+
activity_id:
|
|
460
|
+
type: string
|
|
461
|
+
description: ID of the related activity
|
|
462
|
+
example: "507f1f77bcf86cd799439012"
|
|
463
|
+
rep:
|
|
464
|
+
type: string
|
|
465
|
+
description: Representative ID
|
|
466
|
+
example: "507f1f77bcf86cd799439013"
|
|
467
|
+
client:
|
|
468
|
+
type: string
|
|
469
|
+
description: Client ID
|
|
470
|
+
example: "507f1f77bcf86cd799439014"
|
|
471
|
+
rating:
|
|
472
|
+
type: integer
|
|
473
|
+
description: Feedback rating (1-5 scale)
|
|
474
|
+
minimum: 1
|
|
475
|
+
maximum: 5
|
|
476
|
+
example: 4
|
|
477
|
+
feedback_text:
|
|
478
|
+
type: string
|
|
479
|
+
description: Detailed feedback text
|
|
480
|
+
example: "Great service, very professional"
|
|
481
|
+
feedback_categories:
|
|
482
|
+
type: array
|
|
483
|
+
items:
|
|
484
|
+
type: string
|
|
485
|
+
description: Categories of feedback
|
|
486
|
+
is_anonymous:
|
|
487
|
+
type: boolean
|
|
488
|
+
description: Whether the feedback is anonymous
|
|
489
|
+
default: false
|
|
490
|
+
source:
|
|
491
|
+
type: string
|
|
492
|
+
description: Source of the feedback
|
|
493
|
+
enum: ["mobile_app", "web_portal", "email", "sms", "phone"]
|
|
494
|
+
default: "mobile_app"
|
|
495
|
+
response_time:
|
|
496
|
+
type: integer
|
|
497
|
+
description: Time taken to provide feedback (in seconds)
|
|
498
|
+
attachments:
|
|
499
|
+
type: array
|
|
500
|
+
items:
|
|
501
|
+
type: object
|
|
502
|
+
properties:
|
|
503
|
+
file_url:
|
|
504
|
+
type: string
|
|
505
|
+
file_type:
|
|
506
|
+
type: string
|
|
507
|
+
file_size:
|
|
508
|
+
type: integer
|
|
509
|
+
follow_up_required:
|
|
510
|
+
type: boolean
|
|
511
|
+
description: Whether follow-up is required
|
|
512
|
+
default: false
|
|
513
|
+
follow_up_notes:
|
|
514
|
+
type: string
|
|
515
|
+
description: Notes for follow-up actions
|
|
516
|
+
company_namespace:
|
|
517
|
+
type: array
|
|
518
|
+
items:
|
|
519
|
+
type: string
|
|
520
|
+
description: Company namespace
|
|
521
|
+
required:
|
|
522
|
+
- activity_type
|
|
523
|
+
- rep
|
|
524
|
+
- rating
|
|
525
|
+
UpdateActivityFeedbackRequest:
|
|
526
|
+
type: object
|
|
527
|
+
properties:
|
|
528
|
+
rating:
|
|
529
|
+
type: integer
|
|
530
|
+
description: Feedback rating (1-5 scale)
|
|
531
|
+
minimum: 1
|
|
532
|
+
maximum: 5
|
|
533
|
+
feedback_text:
|
|
534
|
+
type: string
|
|
535
|
+
description: Detailed feedback text
|
|
536
|
+
feedback_categories:
|
|
537
|
+
type: array
|
|
538
|
+
items:
|
|
539
|
+
type: string
|
|
540
|
+
description: Categories of feedback
|
|
541
|
+
follow_up_required:
|
|
542
|
+
type: boolean
|
|
543
|
+
description: Whether follow-up is required
|
|
544
|
+
follow_up_notes:
|
|
545
|
+
type: string
|
|
546
|
+
description: Notes for follow-up actions
|
|
547
|
+
company_namespace:
|
|
548
|
+
type: array
|
|
549
|
+
items:
|
|
550
|
+
type: string
|
|
551
|
+
description: Company namespace
|
|
552
|
+
PagingInfo:
|
|
553
|
+
type: object
|
|
554
|
+
properties:
|
|
555
|
+
total:
|
|
556
|
+
type: integer
|
|
557
|
+
description: Total number of items
|
|
558
|
+
page:
|
|
559
|
+
type: integer
|
|
560
|
+
description: Current page number
|
|
561
|
+
per_page:
|
|
562
|
+
type: integer
|
|
563
|
+
description: Items per page
|
|
564
|
+
pages:
|
|
565
|
+
type: integer
|
|
566
|
+
description: Total number of pages
|
|
567
|
+
responses:
|
|
568
|
+
BadRequest:
|
|
569
|
+
description: Bad request
|
|
570
|
+
content:
|
|
571
|
+
application/json:
|
|
572
|
+
schema:
|
|
573
|
+
type: object
|
|
574
|
+
properties:
|
|
575
|
+
success:
|
|
576
|
+
type: boolean
|
|
577
|
+
example: false
|
|
578
|
+
error:
|
|
579
|
+
type: string
|
|
580
|
+
example: "Invalid request parameters"
|
|
581
|
+
Unauthorized:
|
|
582
|
+
description: Unauthorized
|
|
583
|
+
content:
|
|
584
|
+
application/json:
|
|
585
|
+
schema:
|
|
586
|
+
type: object
|
|
587
|
+
properties:
|
|
588
|
+
success:
|
|
589
|
+
type: boolean
|
|
590
|
+
example: false
|
|
591
|
+
error:
|
|
592
|
+
type: string
|
|
593
|
+
example: "Authentication required"
|
|
594
|
+
Forbidden:
|
|
595
|
+
description: Forbidden
|
|
596
|
+
content:
|
|
597
|
+
application/json:
|
|
598
|
+
schema:
|
|
599
|
+
type: object
|
|
600
|
+
properties:
|
|
601
|
+
success:
|
|
602
|
+
type: boolean
|
|
603
|
+
example: false
|
|
604
|
+
error:
|
|
605
|
+
type: string
|
|
606
|
+
example: "Insufficient permissions"
|
|
607
|
+
NotFound:
|
|
608
|
+
description: Resource not found
|
|
609
|
+
content:
|
|
610
|
+
application/json:
|
|
611
|
+
schema:
|
|
612
|
+
type: object
|
|
613
|
+
properties:
|
|
614
|
+
success:
|
|
615
|
+
type: boolean
|
|
616
|
+
example: false
|
|
617
|
+
error:
|
|
618
|
+
type: string
|
|
619
|
+
example: "Resource not found"
|
|
620
|
+
ValidationError:
|
|
621
|
+
description: Validation error
|
|
622
|
+
content:
|
|
623
|
+
application/json:
|
|
624
|
+
schema:
|
|
625
|
+
type: object
|
|
626
|
+
properties:
|
|
627
|
+
success:
|
|
628
|
+
type: boolean
|
|
629
|
+
example: false
|
|
630
|
+
error:
|
|
631
|
+
type: string
|
|
632
|
+
example: "Validation failed"
|
|
633
|
+
InternalServerError:
|
|
634
|
+
description: Internal server error
|
|
635
|
+
content:
|
|
636
|
+
application/json:
|
|
637
|
+
schema:
|
|
638
|
+
type: object
|
|
639
|
+
properties:
|
|
640
|
+
success:
|
|
641
|
+
type: boolean
|
|
642
|
+
example: false
|
|
643
|
+
error:
|
|
644
|
+
type: string
|
|
645
|
+
example: "Internal server error"
|