repzo 1.0.155 → 1.0.156
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/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
|
@@ -0,0 +1,623 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Activity AI Sales Order API
|
|
4
|
+
description: API for managing AI-assisted sales order activities
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
contact:
|
|
7
|
+
name: Repzo
|
|
8
|
+
url: https://repzo.com
|
|
9
|
+
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://sv.api.repzo.me
|
|
12
|
+
description: Production server
|
|
13
|
+
- url: https://staging.sv.api.repzo.me
|
|
14
|
+
description: Staging server
|
|
15
|
+
|
|
16
|
+
tags:
|
|
17
|
+
- name: Activity AI Sales Order
|
|
18
|
+
description: Operations related to AI-assisted sales order activities
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/activity-ai-sales-order:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- Activity AI Sales Order
|
|
25
|
+
summary: Get all AI sales order activities
|
|
26
|
+
description: Retrieve a list of all AI sales order activities with optional filtering and pagination
|
|
27
|
+
parameters:
|
|
28
|
+
- name: limit
|
|
29
|
+
in: query
|
|
30
|
+
description: Maximum number of records to return
|
|
31
|
+
required: false
|
|
32
|
+
schema:
|
|
33
|
+
type: integer
|
|
34
|
+
minimum: 1
|
|
35
|
+
maximum: 100
|
|
36
|
+
default: 50
|
|
37
|
+
- name: offset
|
|
38
|
+
in: query
|
|
39
|
+
description: Number of records to skip for pagination
|
|
40
|
+
required: false
|
|
41
|
+
schema:
|
|
42
|
+
type: integer
|
|
43
|
+
minimum: 0
|
|
44
|
+
default: 0
|
|
45
|
+
- name: sort
|
|
46
|
+
in: query
|
|
47
|
+
description: Field to sort by
|
|
48
|
+
required: false
|
|
49
|
+
schema:
|
|
50
|
+
type: string
|
|
51
|
+
- name: order
|
|
52
|
+
in: query
|
|
53
|
+
description: Sort order (asc or desc)
|
|
54
|
+
required: false
|
|
55
|
+
schema:
|
|
56
|
+
type: string
|
|
57
|
+
enum: [asc, desc]
|
|
58
|
+
default: desc
|
|
59
|
+
- name: filter
|
|
60
|
+
in: query
|
|
61
|
+
description: Filter conditions in JSON format
|
|
62
|
+
required: false
|
|
63
|
+
schema:
|
|
64
|
+
type: string
|
|
65
|
+
- name: search
|
|
66
|
+
in: query
|
|
67
|
+
description: Search term for text fields
|
|
68
|
+
required: false
|
|
69
|
+
schema:
|
|
70
|
+
type: string
|
|
71
|
+
responses:
|
|
72
|
+
"200":
|
|
73
|
+
description: List of AI sales order activities retrieved successfully
|
|
74
|
+
content:
|
|
75
|
+
application/json:
|
|
76
|
+
schema:
|
|
77
|
+
type: object
|
|
78
|
+
properties:
|
|
79
|
+
success:
|
|
80
|
+
type: boolean
|
|
81
|
+
example: true
|
|
82
|
+
data:
|
|
83
|
+
type: array
|
|
84
|
+
items:
|
|
85
|
+
$ref: "#/components/schemas/ActivityAiSalesOrder"
|
|
86
|
+
total:
|
|
87
|
+
type: integer
|
|
88
|
+
description: Total number of records
|
|
89
|
+
"400":
|
|
90
|
+
description: Bad request
|
|
91
|
+
"401":
|
|
92
|
+
description: Unauthorized
|
|
93
|
+
"500":
|
|
94
|
+
description: Internal server error
|
|
95
|
+
post:
|
|
96
|
+
tags:
|
|
97
|
+
- Activity AI Sales Order
|
|
98
|
+
summary: Create a new AI sales order activity
|
|
99
|
+
description: Create a new AI sales order activity with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/ActivityAiSalesOrderInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: AI sales order activity created successfully
|
|
109
|
+
content:
|
|
110
|
+
application/json:
|
|
111
|
+
schema:
|
|
112
|
+
type: object
|
|
113
|
+
properties:
|
|
114
|
+
success:
|
|
115
|
+
type: boolean
|
|
116
|
+
example: true
|
|
117
|
+
data:
|
|
118
|
+
$ref: "#/components/schemas/ActivityAiSalesOrder"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/activity-ai-sales-order/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- Activity AI Sales Order
|
|
130
|
+
summary: Get AI sales order activity by ID
|
|
131
|
+
description: Retrieve a specific AI sales order activity by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: AI sales order activity ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: AI sales order activity retrieved successfully
|
|
142
|
+
content:
|
|
143
|
+
application/json:
|
|
144
|
+
schema:
|
|
145
|
+
type: object
|
|
146
|
+
properties:
|
|
147
|
+
success:
|
|
148
|
+
type: boolean
|
|
149
|
+
example: true
|
|
150
|
+
data:
|
|
151
|
+
$ref: "#/components/schemas/ActivityAiSalesOrder"
|
|
152
|
+
"404":
|
|
153
|
+
description: AI sales order activity not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- Activity AI Sales Order
|
|
161
|
+
summary: Update AI sales order activity
|
|
162
|
+
description: Update an existing AI sales order activity with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: AI sales order activity ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/ActivityAiSalesOrderInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: AI sales order activity updated successfully
|
|
179
|
+
content:
|
|
180
|
+
application/json:
|
|
181
|
+
schema:
|
|
182
|
+
type: object
|
|
183
|
+
properties:
|
|
184
|
+
success:
|
|
185
|
+
type: boolean
|
|
186
|
+
example: true
|
|
187
|
+
data:
|
|
188
|
+
$ref: "#/components/schemas/ActivityAiSalesOrder"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: AI sales order activity not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- Activity AI Sales Order
|
|
200
|
+
summary: Delete AI sales order activity
|
|
201
|
+
description: Delete an existing AI sales order activity
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: AI sales order activity ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: AI sales order activity deleted successfully
|
|
212
|
+
content:
|
|
213
|
+
application/json:
|
|
214
|
+
schema:
|
|
215
|
+
type: object
|
|
216
|
+
properties:
|
|
217
|
+
success:
|
|
218
|
+
type: boolean
|
|
219
|
+
example: true
|
|
220
|
+
message:
|
|
221
|
+
type: string
|
|
222
|
+
example: AI sales order activity deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: AI sales order activity not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
/activity-ai-sales-order/{id}/generate:
|
|
231
|
+
post:
|
|
232
|
+
tags:
|
|
233
|
+
- Activity AI Sales Order
|
|
234
|
+
summary: Generate AI recommendations
|
|
235
|
+
description: Generate AI-powered sales order recommendations for the activity
|
|
236
|
+
parameters:
|
|
237
|
+
- name: id
|
|
238
|
+
in: path
|
|
239
|
+
required: true
|
|
240
|
+
description: AI sales order activity ID
|
|
241
|
+
schema:
|
|
242
|
+
type: string
|
|
243
|
+
responses:
|
|
244
|
+
"200":
|
|
245
|
+
description: AI recommendations generated successfully
|
|
246
|
+
content:
|
|
247
|
+
application/json:
|
|
248
|
+
schema:
|
|
249
|
+
type: object
|
|
250
|
+
properties:
|
|
251
|
+
success:
|
|
252
|
+
type: boolean
|
|
253
|
+
example: true
|
|
254
|
+
data:
|
|
255
|
+
type: object
|
|
256
|
+
properties:
|
|
257
|
+
recommendations:
|
|
258
|
+
type: array
|
|
259
|
+
items:
|
|
260
|
+
type: object
|
|
261
|
+
properties:
|
|
262
|
+
product:
|
|
263
|
+
type: string
|
|
264
|
+
quantity:
|
|
265
|
+
type: integer
|
|
266
|
+
confidence:
|
|
267
|
+
type: number
|
|
268
|
+
format: double
|
|
269
|
+
reason:
|
|
270
|
+
type: string
|
|
271
|
+
"404":
|
|
272
|
+
description: AI sales order activity not found
|
|
273
|
+
"401":
|
|
274
|
+
description: Unauthorized
|
|
275
|
+
"500":
|
|
276
|
+
description: Internal server error
|
|
277
|
+
|
|
278
|
+
components:
|
|
279
|
+
schemas:
|
|
280
|
+
ActivityAiSalesOrder:
|
|
281
|
+
type: object
|
|
282
|
+
properties:
|
|
283
|
+
_id:
|
|
284
|
+
type: string
|
|
285
|
+
description: Unique identifier for the AI sales order activity
|
|
286
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
287
|
+
client:
|
|
288
|
+
type: string
|
|
289
|
+
description: Client ID
|
|
290
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
291
|
+
rep:
|
|
292
|
+
type: string
|
|
293
|
+
description: Sales representative ID
|
|
294
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
295
|
+
activityType:
|
|
296
|
+
type: string
|
|
297
|
+
enum:
|
|
298
|
+
[
|
|
299
|
+
recommendation,
|
|
300
|
+
order-analysis,
|
|
301
|
+
demand-forecasting,
|
|
302
|
+
cross-sell,
|
|
303
|
+
upsell,
|
|
304
|
+
]
|
|
305
|
+
description: Type of AI activity
|
|
306
|
+
example: "recommendation"
|
|
307
|
+
inputData:
|
|
308
|
+
type: object
|
|
309
|
+
properties:
|
|
310
|
+
historicalOrders:
|
|
311
|
+
type: array
|
|
312
|
+
items:
|
|
313
|
+
type: object
|
|
314
|
+
properties:
|
|
315
|
+
orderId:
|
|
316
|
+
type: string
|
|
317
|
+
date:
|
|
318
|
+
type: string
|
|
319
|
+
format: date-time
|
|
320
|
+
items:
|
|
321
|
+
type: array
|
|
322
|
+
items:
|
|
323
|
+
type: object
|
|
324
|
+
properties:
|
|
325
|
+
product:
|
|
326
|
+
type: string
|
|
327
|
+
quantity:
|
|
328
|
+
type: integer
|
|
329
|
+
price:
|
|
330
|
+
type: number
|
|
331
|
+
format: double
|
|
332
|
+
clientPreferences:
|
|
333
|
+
type: object
|
|
334
|
+
additionalProperties: true
|
|
335
|
+
description: Client preferences and behavior patterns
|
|
336
|
+
marketData:
|
|
337
|
+
type: object
|
|
338
|
+
additionalProperties: true
|
|
339
|
+
description: Market trends and seasonal data
|
|
340
|
+
inventoryLevels:
|
|
341
|
+
type: object
|
|
342
|
+
additionalProperties: true
|
|
343
|
+
description: Current inventory levels
|
|
344
|
+
aiModel:
|
|
345
|
+
type: object
|
|
346
|
+
properties:
|
|
347
|
+
name:
|
|
348
|
+
type: string
|
|
349
|
+
description: AI model name
|
|
350
|
+
example: "sales-recommender-v2"
|
|
351
|
+
version:
|
|
352
|
+
type: string
|
|
353
|
+
description: Model version
|
|
354
|
+
example: "2.1.0"
|
|
355
|
+
confidence:
|
|
356
|
+
type: number
|
|
357
|
+
format: double
|
|
358
|
+
minimum: 0
|
|
359
|
+
maximum: 1
|
|
360
|
+
description: Overall model confidence
|
|
361
|
+
parameters:
|
|
362
|
+
type: object
|
|
363
|
+
additionalProperties: true
|
|
364
|
+
description: Model parameters used
|
|
365
|
+
recommendations:
|
|
366
|
+
type: array
|
|
367
|
+
items:
|
|
368
|
+
type: object
|
|
369
|
+
properties:
|
|
370
|
+
product:
|
|
371
|
+
type: string
|
|
372
|
+
description: Product ID
|
|
373
|
+
productName:
|
|
374
|
+
type: string
|
|
375
|
+
description: Product name
|
|
376
|
+
quantity:
|
|
377
|
+
type: integer
|
|
378
|
+
minimum: 1
|
|
379
|
+
description: Recommended quantity
|
|
380
|
+
price:
|
|
381
|
+
type: number
|
|
382
|
+
format: double
|
|
383
|
+
minimum: 0
|
|
384
|
+
description: Recommended price
|
|
385
|
+
confidence:
|
|
386
|
+
type: number
|
|
387
|
+
format: double
|
|
388
|
+
minimum: 0
|
|
389
|
+
maximum: 1
|
|
390
|
+
description: Confidence score for this recommendation
|
|
391
|
+
reason:
|
|
392
|
+
type: string
|
|
393
|
+
description: AI reasoning for this recommendation
|
|
394
|
+
category:
|
|
395
|
+
type: string
|
|
396
|
+
enum: [frequent-buy, seasonal, cross-sell, upsell, new-product]
|
|
397
|
+
description: Recommendation category
|
|
398
|
+
priority:
|
|
399
|
+
type: integer
|
|
400
|
+
minimum: 1
|
|
401
|
+
maximum: 10
|
|
402
|
+
description: Priority ranking
|
|
403
|
+
insights:
|
|
404
|
+
type: object
|
|
405
|
+
properties:
|
|
406
|
+
buyingPatterns:
|
|
407
|
+
type: array
|
|
408
|
+
items:
|
|
409
|
+
type: string
|
|
410
|
+
description: Identified buying patterns
|
|
411
|
+
seasonality:
|
|
412
|
+
type: object
|
|
413
|
+
additionalProperties: true
|
|
414
|
+
description: Seasonal trends identified
|
|
415
|
+
riskFactors:
|
|
416
|
+
type: array
|
|
417
|
+
items:
|
|
418
|
+
type: string
|
|
419
|
+
description: Potential risks identified
|
|
420
|
+
opportunities:
|
|
421
|
+
type: array
|
|
422
|
+
items:
|
|
423
|
+
type: string
|
|
424
|
+
description: Sales opportunities identified
|
|
425
|
+
status:
|
|
426
|
+
type: string
|
|
427
|
+
enum: [processing, completed, failed, cancelled]
|
|
428
|
+
default: processing
|
|
429
|
+
description: Processing status
|
|
430
|
+
processingTime:
|
|
431
|
+
type: number
|
|
432
|
+
format: double
|
|
433
|
+
description: Processing time in seconds
|
|
434
|
+
accuracy:
|
|
435
|
+
type: object
|
|
436
|
+
properties:
|
|
437
|
+
historical:
|
|
438
|
+
type: number
|
|
439
|
+
format: double
|
|
440
|
+
minimum: 0
|
|
441
|
+
maximum: 1
|
|
442
|
+
description: Historical accuracy of similar predictions
|
|
443
|
+
estimated:
|
|
444
|
+
type: number
|
|
445
|
+
format: double
|
|
446
|
+
minimum: 0
|
|
447
|
+
maximum: 1
|
|
448
|
+
description: Estimated accuracy for this prediction
|
|
449
|
+
feedback:
|
|
450
|
+
type: object
|
|
451
|
+
properties:
|
|
452
|
+
userRating:
|
|
453
|
+
type: integer
|
|
454
|
+
minimum: 1
|
|
455
|
+
maximum: 5
|
|
456
|
+
description: User rating of recommendations
|
|
457
|
+
acceptedRecommendations:
|
|
458
|
+
type: array
|
|
459
|
+
items:
|
|
460
|
+
type: string
|
|
461
|
+
description: IDs of accepted recommendations
|
|
462
|
+
rejectedRecommendations:
|
|
463
|
+
type: array
|
|
464
|
+
items:
|
|
465
|
+
type: string
|
|
466
|
+
description: IDs of rejected recommendations
|
|
467
|
+
comments:
|
|
468
|
+
type: string
|
|
469
|
+
description: User feedback comments
|
|
470
|
+
generatedOrder:
|
|
471
|
+
type: object
|
|
472
|
+
properties:
|
|
473
|
+
orderId:
|
|
474
|
+
type: string
|
|
475
|
+
description: Generated order ID if order was created
|
|
476
|
+
items:
|
|
477
|
+
type: array
|
|
478
|
+
items:
|
|
479
|
+
type: object
|
|
480
|
+
properties:
|
|
481
|
+
product:
|
|
482
|
+
type: string
|
|
483
|
+
quantity:
|
|
484
|
+
type: integer
|
|
485
|
+
price:
|
|
486
|
+
type: number
|
|
487
|
+
format: double
|
|
488
|
+
totalAmount:
|
|
489
|
+
type: number
|
|
490
|
+
format: double
|
|
491
|
+
description: Total order amount
|
|
492
|
+
metadata:
|
|
493
|
+
type: object
|
|
494
|
+
additionalProperties: true
|
|
495
|
+
description: Additional metadata
|
|
496
|
+
createdAt:
|
|
497
|
+
type: string
|
|
498
|
+
format: date-time
|
|
499
|
+
description: Record creation timestamp
|
|
500
|
+
example: "2023-01-15T08:00:00Z"
|
|
501
|
+
updatedAt:
|
|
502
|
+
type: string
|
|
503
|
+
format: date-time
|
|
504
|
+
description: Record last update timestamp
|
|
505
|
+
example: "2023-01-15T10:30:00Z"
|
|
506
|
+
required:
|
|
507
|
+
- client
|
|
508
|
+
- rep
|
|
509
|
+
- activityType
|
|
510
|
+
|
|
511
|
+
ActivityAiSalesOrderInput:
|
|
512
|
+
type: object
|
|
513
|
+
properties:
|
|
514
|
+
client:
|
|
515
|
+
type: string
|
|
516
|
+
description: Client ID
|
|
517
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
518
|
+
rep:
|
|
519
|
+
type: string
|
|
520
|
+
description: Sales representative ID
|
|
521
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
522
|
+
activityType:
|
|
523
|
+
type: string
|
|
524
|
+
enum:
|
|
525
|
+
[
|
|
526
|
+
recommendation,
|
|
527
|
+
order-analysis,
|
|
528
|
+
demand-forecasting,
|
|
529
|
+
cross-sell,
|
|
530
|
+
upsell,
|
|
531
|
+
]
|
|
532
|
+
description: Type of AI activity
|
|
533
|
+
example: "recommendation"
|
|
534
|
+
inputData:
|
|
535
|
+
type: object
|
|
536
|
+
properties:
|
|
537
|
+
historicalOrders:
|
|
538
|
+
type: array
|
|
539
|
+
items:
|
|
540
|
+
type: object
|
|
541
|
+
properties:
|
|
542
|
+
orderId:
|
|
543
|
+
type: string
|
|
544
|
+
date:
|
|
545
|
+
type: string
|
|
546
|
+
format: date-time
|
|
547
|
+
items:
|
|
548
|
+
type: array
|
|
549
|
+
items:
|
|
550
|
+
type: object
|
|
551
|
+
properties:
|
|
552
|
+
product:
|
|
553
|
+
type: string
|
|
554
|
+
quantity:
|
|
555
|
+
type: integer
|
|
556
|
+
price:
|
|
557
|
+
type: number
|
|
558
|
+
format: double
|
|
559
|
+
clientPreferences:
|
|
560
|
+
type: object
|
|
561
|
+
additionalProperties: true
|
|
562
|
+
description: Client preferences and behavior patterns
|
|
563
|
+
marketData:
|
|
564
|
+
type: object
|
|
565
|
+
additionalProperties: true
|
|
566
|
+
description: Market trends and seasonal data
|
|
567
|
+
inventoryLevels:
|
|
568
|
+
type: object
|
|
569
|
+
additionalProperties: true
|
|
570
|
+
description: Current inventory levels
|
|
571
|
+
aiModel:
|
|
572
|
+
type: object
|
|
573
|
+
properties:
|
|
574
|
+
name:
|
|
575
|
+
type: string
|
|
576
|
+
description: AI model name
|
|
577
|
+
example: "sales-recommender-v2"
|
|
578
|
+
version:
|
|
579
|
+
type: string
|
|
580
|
+
description: Model version
|
|
581
|
+
example: "2.1.0"
|
|
582
|
+
parameters:
|
|
583
|
+
type: object
|
|
584
|
+
additionalProperties: true
|
|
585
|
+
description: Model parameters used
|
|
586
|
+
feedback:
|
|
587
|
+
type: object
|
|
588
|
+
properties:
|
|
589
|
+
userRating:
|
|
590
|
+
type: integer
|
|
591
|
+
minimum: 1
|
|
592
|
+
maximum: 5
|
|
593
|
+
description: User rating of recommendations
|
|
594
|
+
acceptedRecommendations:
|
|
595
|
+
type: array
|
|
596
|
+
items:
|
|
597
|
+
type: string
|
|
598
|
+
description: IDs of accepted recommendations
|
|
599
|
+
rejectedRecommendations:
|
|
600
|
+
type: array
|
|
601
|
+
items:
|
|
602
|
+
type: string
|
|
603
|
+
description: IDs of rejected recommendations
|
|
604
|
+
comments:
|
|
605
|
+
type: string
|
|
606
|
+
description: User feedback comments
|
|
607
|
+
metadata:
|
|
608
|
+
type: object
|
|
609
|
+
additionalProperties: true
|
|
610
|
+
description: Additional metadata
|
|
611
|
+
required:
|
|
612
|
+
- client
|
|
613
|
+
- rep
|
|
614
|
+
- activityType
|
|
615
|
+
|
|
616
|
+
securitySchemes:
|
|
617
|
+
ApiKeyAuth:
|
|
618
|
+
type: apiKey
|
|
619
|
+
in: header
|
|
620
|
+
name: api-key
|
|
621
|
+
|
|
622
|
+
security:
|
|
623
|
+
- ApiKeyAuth: []
|