@snokam/mcp-api 0.177.1 → 0.179.0

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.
@@ -1,651 +0,0 @@
1
- {
2
- "openapi": "3.0.1",
3
- "info": {
4
- "title": "Webshop API",
5
- "description": "Webshop service",
6
- "version": "v1.0.0"
7
- },
8
- "servers": [
9
- {
10
- "url": "https://webshop.api.snokam.no"
11
- }
12
- ],
13
- "paths": {
14
- "/v1.1/GetWebshopProducts": {
15
- "get": {
16
- "tags": [
17
- "Webshop"
18
- ],
19
- "summary": "Gets webshop products",
20
- "description": "Retrieves a list of webshop products.",
21
- "operationId": "GetWebshopProducts",
22
- "responses": {
23
- "200": {
24
- "description": "List of webshop products retrieved successfully",
25
- "content": {
26
- "application/json": {
27
- "schema": {
28
- "type": "array",
29
- "items": {
30
- "$ref": "#/components/schemas/equipment"
31
- }
32
- }
33
- }
34
- },
35
- "x-ms-summary": "Success"
36
- }
37
- },
38
- "security": [
39
- {
40
- "Implicit": [
41
- "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
42
- ]
43
- },
44
- {
45
- "ApiKey": []
46
- }
47
- ]
48
- }
49
- },
50
- "/v1.1/GetMyOrders": {
51
- "get": {
52
- "tags": [
53
- "Orders"
54
- ],
55
- "summary": "Gets user's orders",
56
- "description": "Retrieves the orders of the authenticated user.",
57
- "operationId": "GetMyOrders",
58
- "responses": {
59
- "200": {
60
- "description": "User's orders retrieved successfully",
61
- "content": {
62
- "application/json": {
63
- "schema": {
64
- "type": "array",
65
- "items": {
66
- "$ref": "#/components/schemas/innerOrder"
67
- }
68
- }
69
- }
70
- },
71
- "x-ms-summary": "Success"
72
- },
73
- "401": {
74
- "description": "User is not authenticated",
75
- "x-ms-summary": "Unauthorized"
76
- }
77
- },
78
- "security": [
79
- {
80
- "Implicit": [
81
- "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
82
- ]
83
- },
84
- {
85
- "ApiKey": []
86
- }
87
- ]
88
- }
89
- },
90
- "/v1.1/PlaceMyOrder": {
91
- "post": {
92
- "tags": [
93
- "Orders"
94
- ],
95
- "summary": "Places an order",
96
- "description": "Places a new order for the authenticated user.",
97
- "operationId": "PlaceMyOrder",
98
- "requestBody": {
99
- "description": "Order details",
100
- "content": {
101
- "application/json": {
102
- "schema": {
103
- "$ref": "#/components/schemas/order"
104
- }
105
- }
106
- },
107
- "required": true
108
- },
109
- "responses": {
110
- "200": {
111
- "description": "Order placed successfully",
112
- "content": {
113
- "application/json": {
114
- "schema": {
115
- "$ref": "#/components/schemas/order"
116
- }
117
- }
118
- },
119
- "x-ms-summary": "Success"
120
- },
121
- "401": {
122
- "description": "User is not authenticated",
123
- "x-ms-summary": "Unauthorized"
124
- }
125
- },
126
- "security": [
127
- {
128
- "Implicit": [
129
- "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
130
- ]
131
- },
132
- {
133
- "ApiKey": []
134
- }
135
- ]
136
- }
137
- },
138
- "/v1.1/RemoveMyOrder": {
139
- "post": {
140
- "tags": [
141
- "Orders"
142
- ],
143
- "summary": "Removes an order",
144
- "description": "Removes an order for the authenticated user.",
145
- "operationId": "RemoveMyOrder",
146
- "requestBody": {
147
- "description": "Sanity document ID of the order to remove",
148
- "content": {
149
- "application/json": {
150
- "schema": {
151
- "$ref": "#/components/schemas/removeOrder"
152
- }
153
- }
154
- },
155
- "required": true
156
- },
157
- "responses": {
158
- "200": {
159
- "description": "Order removed successfully",
160
- "content": {
161
- "application/json": {
162
- "schema": {
163
- "type": "boolean"
164
- }
165
- }
166
- },
167
- "x-ms-summary": "Success"
168
- },
169
- "401": {
170
- "description": "User is not authenticated",
171
- "x-ms-summary": "Unauthorized"
172
- },
173
- "500": {
174
- "description": "Failed to remove order",
175
- "x-ms-summary": "Internal Server Error"
176
- }
177
- },
178
- "security": [
179
- {
180
- "Implicit": [
181
- "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
182
- ]
183
- },
184
- {
185
- "ApiKey": []
186
- }
187
- ]
188
- }
189
- },
190
- "/v1.1/GetAllOrdersGroupedByEmployee": {
191
- "get": {
192
- "tags": [
193
- "Orders"
194
- ],
195
- "summary": "Gets all orders grouped by employee",
196
- "description": "Retrieves all orders grouped by employee.",
197
- "operationId": "GetAllOrdersGroupedByEmployee",
198
- "responses": {
199
- "200": {
200
- "description": "Orders grouped by employee retrieved successfully",
201
- "content": {
202
- "application/json": {
203
- "schema": {
204
- "type": "object",
205
- "additionalProperties": {
206
- "$ref": "#/components/schemas/list_adminOrder"
207
- }
208
- }
209
- }
210
- },
211
- "x-ms-summary": "Success"
212
- }
213
- },
214
- "security": [
215
- {
216
- "Implicit": [
217
- "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
218
- ]
219
- },
220
- {
221
- "ApiKey": []
222
- }
223
- ]
224
- }
225
- },
226
- "/v1.1/GetAllOrdersGroupedByEquipment": {
227
- "get": {
228
- "tags": [
229
- "Orders"
230
- ],
231
- "summary": "Gets all orders grouped by equipment",
232
- "description": "Retrieves all orders grouped by equipment.",
233
- "operationId": "GetAllOrdersGroupedByEquipment",
234
- "responses": {
235
- "200": {
236
- "description": "Orders grouped by equipment retrieved successfully",
237
- "content": {
238
- "application/json": {
239
- "schema": {
240
- "type": "object",
241
- "additionalProperties": {
242
- "$ref": "#/components/schemas/list_adminOrder"
243
- }
244
- }
245
- }
246
- },
247
- "x-ms-summary": "Success"
248
- }
249
- },
250
- "security": [
251
- {
252
- "Implicit": [
253
- "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
254
- ]
255
- },
256
- {
257
- "ApiKey": []
258
- }
259
- ]
260
- }
261
- },
262
- "/v1.1/AssignOrdersToEmployees": {
263
- "post": {
264
- "tags": [
265
- "Orders"
266
- ],
267
- "summary": "Assigns orders to employees",
268
- "description": "Assigns orders to employees for the current year.",
269
- "operationId": "AssignOrdersToEmployees",
270
- "requestBody": {
271
- "description": "List of order IDs to assign",
272
- "content": {
273
- "application/json": {
274
- "schema": {
275
- "type": "array",
276
- "items": {
277
- "type": "string"
278
- }
279
- }
280
- }
281
- },
282
- "required": true
283
- },
284
- "responses": {
285
- "200": {
286
- "description": "Orders assigned to employees successfully",
287
- "content": {
288
- "application/json": {
289
- "schema": {
290
- "type": "string"
291
- }
292
- }
293
- },
294
- "x-ms-summary": "Success"
295
- },
296
- "401": {
297
- "description": "User is not authenticated",
298
- "x-ms-summary": "Unauthorized"
299
- }
300
- },
301
- "security": [
302
- {
303
- "Implicit": [
304
- "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
305
- ]
306
- },
307
- {
308
- "ApiKey": []
309
- }
310
- ]
311
- }
312
- }
313
- },
314
- "components": {
315
- "schemas": {
316
- "adminOrder": {
317
- "required": [
318
- "orderId",
319
- "equipmentId",
320
- "employee"
321
- ],
322
- "type": "object",
323
- "properties": {
324
- "orderId": {
325
- "minLength": 1,
326
- "type": "string"
327
- },
328
- "equipmentId": {
329
- "minLength": 1,
330
- "type": "string"
331
- },
332
- "employee": {
333
- "minLength": 1,
334
- "type": "string"
335
- },
336
- "size": {
337
- "type": "string"
338
- },
339
- "kind": {
340
- "type": "string"
341
- },
342
- "other": {
343
- "type": "string"
344
- },
345
- "image": {
346
- "type": "string"
347
- },
348
- "quantity": {
349
- "type": "integer",
350
- "format": "int32",
351
- "nullable": true
352
- },
353
- "price": {
354
- "type": "number",
355
- "format": "float",
356
- "nullable": true
357
- },
358
- "offeredPrice": {
359
- "type": "number",
360
- "format": "float",
361
- "nullable": true
362
- },
363
- "choosenVariant": {
364
- "$ref": "#/components/schemas/availableVariants"
365
- },
366
- "date": {
367
- "type": "string"
368
- }
369
- }
370
- },
371
- "availableVariants": {
372
- "type": "object",
373
- "properties": {
374
- "size": {
375
- "type": "string"
376
- },
377
- "inventory": {
378
- "type": "number",
379
- "format": "double",
380
- "nullable": true
381
- }
382
- }
383
- },
384
- "description": {
385
- "type": "object",
386
- "properties": {
387
- "descriptionChildren": {
388
- "type": "array",
389
- "items": {
390
- "$ref": "#/components/schemas/descriptionChild"
391
- }
392
- },
393
- "sanityType": {
394
- "type": "string"
395
- },
396
- "sanityKey": {
397
- "type": "string"
398
- }
399
- }
400
- },
401
- "descriptionChild": {
402
- "type": "object",
403
- "properties": {
404
- "marks": {
405
- "type": "array",
406
- "items": {
407
- "type": "string"
408
- }
409
- },
410
- "text": {
411
- "type": "string"
412
- },
413
- "sanityType": {
414
- "type": "string"
415
- },
416
- "sanityKey": {
417
- "type": "string"
418
- }
419
- }
420
- },
421
- "employee": {
422
- "type": "object",
423
- "properties": {
424
- "name": {
425
- "type": "string"
426
- },
427
- "email": {
428
- "type": "string"
429
- },
430
- "startDate": {
431
- "type": "string"
432
- },
433
- "ownership": {
434
- "type": "number",
435
- "format": "float",
436
- "nullable": true
437
- },
438
- "boardMember": {
439
- "type": "boolean",
440
- "nullable": true
441
- },
442
- "imageUrl": {
443
- "type": "string"
444
- }
445
- }
446
- },
447
- "equipment": {
448
- "type": "object",
449
- "properties": {
450
- "sanityId": {
451
- "type": "string"
452
- },
453
- "sanityType": {
454
- "type": "string"
455
- },
456
- "title": {
457
- "type": "string"
458
- },
459
- "date": {
460
- "type": "string"
461
- },
462
- "available": {
463
- "type": "boolean",
464
- "nullable": true
465
- },
466
- "availableSex": {
467
- "type": "array",
468
- "items": {
469
- "type": "string"
470
- }
471
- },
472
- "availableVariants": {
473
- "type": "array",
474
- "items": {
475
- "$ref": "#/components/schemas/variant"
476
- }
477
- },
478
- "price": {
479
- "type": "number",
480
- "format": "double",
481
- "nullable": true
482
- },
483
- "offeredPrice": {
484
- "type": "number",
485
- "format": "double",
486
- "nullable": true
487
- },
488
- "descriptions": {
489
- "type": "array",
490
- "items": {
491
- "$ref": "#/components/schemas/description"
492
- }
493
- },
494
- "images": {
495
- "type": "array",
496
- "items": {
497
- "$ref": "#/components/schemas/image"
498
- }
499
- }
500
- }
501
- },
502
- "image": {
503
- "type": "object",
504
- "properties": {
505
- "sanityType": {
506
- "type": "string"
507
- },
508
- "sanityKey": {
509
- "type": "string"
510
- },
511
- "asset": {
512
- "$ref": "#/components/schemas/imageAsset"
513
- }
514
- }
515
- },
516
- "imageAsset": {
517
- "type": "object",
518
- "properties": {
519
- "sanityType": {
520
- "type": "string"
521
- },
522
- "mimeType": {
523
- "type": "string"
524
- },
525
- "originalFilename": {
526
- "type": "string"
527
- },
528
- "url": {
529
- "type": "string"
530
- }
531
- }
532
- },
533
- "innerOrder": {
534
- "required": [
535
- "equipmentId"
536
- ],
537
- "type": "object",
538
- "properties": {
539
- "sanityId": {
540
- "type": "string"
541
- },
542
- "equipmentId": {
543
- "minLength": 1,
544
- "type": "string"
545
- },
546
- "size": {
547
- "type": "string"
548
- },
549
- "kind": {
550
- "type": "string"
551
- },
552
- "other": {
553
- "type": "string"
554
- },
555
- "quantity": {
556
- "type": "integer",
557
- "format": "int32",
558
- "nullable": true
559
- },
560
- "employee": {
561
- "$ref": "#/components/schemas/employee"
562
- }
563
- }
564
- },
565
- "list_adminOrder": {
566
- "type": "array",
567
- "items": {
568
- "$ref": "#/components/schemas/adminOrder"
569
- }
570
- },
571
- "order": {
572
- "required": [
573
- "equipmentId",
574
- "size",
575
- "kind",
576
- "other",
577
- "quantity"
578
- ],
579
- "type": "object",
580
- "properties": {
581
- "equipmentId": {
582
- "minLength": 1,
583
- "type": "string",
584
- "description": "Equipment uuid"
585
- },
586
- "size": {
587
- "minLength": 1,
588
- "type": "string"
589
- },
590
- "kind": {
591
- "minLength": 1,
592
- "type": "string"
593
- },
594
- "other": {
595
- "minLength": 1,
596
- "type": "string"
597
- },
598
- "quantity": {
599
- "type": "integer",
600
- "format": "int32",
601
- "nullable": true
602
- }
603
- }
604
- },
605
- "removeOrder": {
606
- "required": [
607
- "orderId"
608
- ],
609
- "type": "object",
610
- "properties": {
611
- "orderId": {
612
- "minLength": 1,
613
- "type": "string"
614
- }
615
- }
616
- },
617
- "variant": {
618
- "type": "object",
619
- "properties": {
620
- "size": {
621
- "type": "string"
622
- },
623
- "inventory": {
624
- "type": "number",
625
- "format": "double"
626
- }
627
- }
628
- }
629
- },
630
- "securitySchemes": {
631
- "Implicit": {
632
- "type": "oauth2",
633
- "flows": {
634
- "implicit": {
635
- "authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
636
- "tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
637
- "refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
638
- "scopes": {
639
- "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
640
- }
641
- }
642
- }
643
- },
644
- "ApiKey": {
645
- "type": "http",
646
- "scheme": "bearer",
647
- "bearerFormat": "JWT"
648
- }
649
- }
650
- }
651
- }