@erp-galoper/main-package 1.0.0-GALOPER-510
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/openapi.ts +843 -0
- package/package.json +5 -0
package/openapi.ts
ADDED
@@ -0,0 +1,843 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
3
|
+
* Do not make direct changes to the file.
|
4
|
+
*/
|
5
|
+
|
6
|
+
|
7
|
+
export interface paths {
|
8
|
+
"/api/v1/auth/login/": {
|
9
|
+
/**
|
10
|
+
* Userloginview
|
11
|
+
* @description Endpoint for login.
|
12
|
+
* Possible Responses:
|
13
|
+
* - 400: Ivalid username or password
|
14
|
+
*
|
15
|
+
* - 403: You do not have permission to perform this action
|
16
|
+
* - You cannot login without a role.
|
17
|
+
* - You cannot login without a branch.
|
18
|
+
* - User is not active
|
19
|
+
* - Error license expired
|
20
|
+
* - Error license user count
|
21
|
+
*
|
22
|
+
* - 500: Error Token Creation
|
23
|
+
* - Bad request: Error during user data serialization
|
24
|
+
*/
|
25
|
+
post: operations["authentication_views_UserLoginView"];
|
26
|
+
};
|
27
|
+
"/api/v1/auth/logout/": {
|
28
|
+
/**
|
29
|
+
* Logout View
|
30
|
+
* @description Endpoint for logout.
|
31
|
+
* Possible Responses:
|
32
|
+
* - 400: "An error occurred during the logout process"
|
33
|
+
* - "Invalid or expired refresh token"
|
34
|
+
* - "Refresh token expired"
|
35
|
+
* - "Invalid refresh token"
|
36
|
+
* - "Unable to process logout request"
|
37
|
+
* - 200: "Successfully logged out"
|
38
|
+
*/
|
39
|
+
post: operations["authentication_views_logout_view"];
|
40
|
+
};
|
41
|
+
"/api/v1/auth/refresh-token/": {
|
42
|
+
/**
|
43
|
+
* Refresh Token View
|
44
|
+
* @description Endpoint for refresh token.
|
45
|
+
* Possible Responses:
|
46
|
+
* - 401: "Invalid refresh token"
|
47
|
+
*/
|
48
|
+
post: operations["authentication_views_refresh_token_view"];
|
49
|
+
};
|
50
|
+
"/api/v1/auth/roles/": {
|
51
|
+
/**
|
52
|
+
* List All Roles
|
53
|
+
* @description Endpoint for group list.
|
54
|
+
*/
|
55
|
+
get: operations["authentication_views_list_all_roles"];
|
56
|
+
/**
|
57
|
+
* Create Role
|
58
|
+
* @description Endpoint for creating a group.
|
59
|
+
* Possible Responses:
|
60
|
+
* - 400: "Bad Request"
|
61
|
+
* - "Role with this name already exists."
|
62
|
+
* - "Permission with codename(s) <missing_codenames> does not exist."
|
63
|
+
*
|
64
|
+
* - 202: - "Role created successfully"
|
65
|
+
*/
|
66
|
+
post: operations["authentication_views_create_role"];
|
67
|
+
};
|
68
|
+
"/api/v1/auth/roles/{id}/": {
|
69
|
+
/**
|
70
|
+
* Retrieve Role
|
71
|
+
* @description Endpoint for retrieving a role.
|
72
|
+
* Possible Responses:
|
73
|
+
* - 403: "Forbidden"
|
74
|
+
*
|
75
|
+
* - 404: "Role not found"
|
76
|
+
*
|
77
|
+
* - 200: "
|
78
|
+
* data = {
|
79
|
+
* "name": "Admin Group",
|
80
|
+
* "permissions": {
|
81
|
+
* "user": ["view", "add", "change", "delete"],
|
82
|
+
* "role": ["view", "add", "change"],
|
83
|
+
* "authlogentry": ["view"],
|
84
|
+
* }
|
85
|
+
* }
|
86
|
+
* "
|
87
|
+
*/
|
88
|
+
get: operations["authentication_views_retrieve_role"];
|
89
|
+
/**
|
90
|
+
* Delete Role
|
91
|
+
* @description Endpoint for deleting a group.
|
92
|
+
* Possible Responses:
|
93
|
+
* - 403: "Forbidden"
|
94
|
+
*
|
95
|
+
* - 404: "Group not found"
|
96
|
+
*
|
97
|
+
* -204: "No Content"
|
98
|
+
*/
|
99
|
+
delete: operations["authentication_views_delete_role"];
|
100
|
+
/**
|
101
|
+
* Update Role
|
102
|
+
* @description Endpoint for updating a role.
|
103
|
+
* Possible Responses:
|
104
|
+
* - 400: "Bad Request"
|
105
|
+
* - "Permission with codename(s) <missing_codenames> does not exist."
|
106
|
+
*
|
107
|
+
* - 403: "Forbidden"
|
108
|
+
*
|
109
|
+
* - 404: "Role not found"
|
110
|
+
*
|
111
|
+
* - 200: "Updated"
|
112
|
+
* - "Role updated successfully"
|
113
|
+
*/
|
114
|
+
patch: operations["authentication_views_update_role"];
|
115
|
+
};
|
116
|
+
"/api/v1/auth/permissions/": {
|
117
|
+
/**
|
118
|
+
* Permission List View
|
119
|
+
* @description Endpoint for permission list.
|
120
|
+
*/
|
121
|
+
get: operations["authentication_views_permission_list_view"];
|
122
|
+
};
|
123
|
+
"/api/v1/auth/user/me/": {
|
124
|
+
/**
|
125
|
+
* Get User Info
|
126
|
+
* @description Endpoint for getting a group.
|
127
|
+
* Possible Responses:
|
128
|
+
* - 403: "Forbidden"
|
129
|
+
*
|
130
|
+
* - 404: "Group not found"
|
131
|
+
*
|
132
|
+
* -204: "No Content"
|
133
|
+
*/
|
134
|
+
get: operations["authentication_views_get_user_info"];
|
135
|
+
};
|
136
|
+
"/api/v1/inventory/warehouse/": {
|
137
|
+
/**
|
138
|
+
* New Default Warehouse
|
139
|
+
* @description Endpoint for create warehouse.
|
140
|
+
* Possible Responses:
|
141
|
+
* - 400: "Bad Request"
|
142
|
+
* - "Invalid parameters"
|
143
|
+
*
|
144
|
+
* - 201: "Created"
|
145
|
+
* - "Warehouse Created Successfully"
|
146
|
+
* - 403: "Forbidden"
|
147
|
+
* - "You do not have permission to perform this action"
|
148
|
+
*/
|
149
|
+
post: operations["inventory_warehouse_views_new_default_warehouse"];
|
150
|
+
};
|
151
|
+
"/api/v1/admin_panel/": {
|
152
|
+
/**
|
153
|
+
* Get Galoper Setting
|
154
|
+
* @description Endpoint for create company.
|
155
|
+
* Possible Responses:
|
156
|
+
* - 200: "Success"
|
157
|
+
* - "Success"
|
158
|
+
* - 404: "Not Found"
|
159
|
+
* - "Not Found"
|
160
|
+
* - 403: "Forbidden"
|
161
|
+
* - "You do not have permission to perform this action"
|
162
|
+
*/
|
163
|
+
get: operations["admin_panel_views_get_galoper_setting"];
|
164
|
+
};
|
165
|
+
"/api/v1/settings/get_settings/": {
|
166
|
+
/** Get Settings Options */
|
167
|
+
get: operations["erp_settings_views_get_settings_options"];
|
168
|
+
};
|
169
|
+
}
|
170
|
+
|
171
|
+
export type webhooks = Record<string, never>;
|
172
|
+
|
173
|
+
export interface components {
|
174
|
+
schemas: {
|
175
|
+
/** LoginResponseDataSchema */
|
176
|
+
LoginResponseDataSchema: {
|
177
|
+
user: components["schemas"]["UserInfoSchema"];
|
178
|
+
tokens: components["schemas"]["TokenSchema"];
|
179
|
+
[key: string]: unknown;
|
180
|
+
};
|
181
|
+
/** TokenSchema */
|
182
|
+
TokenSchema: {
|
183
|
+
/** Accesstoken */
|
184
|
+
accessToken: string;
|
185
|
+
/** Refreshtoken */
|
186
|
+
refreshToken: string;
|
187
|
+
[key: string]: unknown;
|
188
|
+
};
|
189
|
+
/** UserBranchSchema */
|
190
|
+
UserBranchSchema: {
|
191
|
+
/** Id */
|
192
|
+
id: number;
|
193
|
+
/** Name */
|
194
|
+
name: string;
|
195
|
+
[key: string]: unknown;
|
196
|
+
};
|
197
|
+
/** UserInfoSchema */
|
198
|
+
UserInfoSchema: {
|
199
|
+
/** Id */
|
200
|
+
id: number;
|
201
|
+
/** Username */
|
202
|
+
username: string;
|
203
|
+
/** Email */
|
204
|
+
email: string;
|
205
|
+
/** Roles */
|
206
|
+
roles: components["schemas"]["UserBranchSchema"][];
|
207
|
+
/** Permissions */
|
208
|
+
permissions: {
|
209
|
+
[key: string]: string[];
|
210
|
+
};
|
211
|
+
/** Photo */
|
212
|
+
photo: string | null;
|
213
|
+
/** Language */
|
214
|
+
language: string;
|
215
|
+
/** Warehouses */
|
216
|
+
warehouses: number[];
|
217
|
+
/** Iscashier */
|
218
|
+
isCashier: boolean;
|
219
|
+
defaultBranch: components["schemas"]["UserBranchSchema"] | null;
|
220
|
+
/** Branches */
|
221
|
+
branches: components["schemas"]["UserBranchSchema"][];
|
222
|
+
[key: string]: unknown;
|
223
|
+
};
|
224
|
+
/** Message */
|
225
|
+
Message: {
|
226
|
+
/** Message */
|
227
|
+
message: string;
|
228
|
+
[key: string]: unknown;
|
229
|
+
};
|
230
|
+
/** CustomUserSchema */
|
231
|
+
CustomUserSchema: {
|
232
|
+
/** Username */
|
233
|
+
username: string;
|
234
|
+
/** Password */
|
235
|
+
password: string;
|
236
|
+
[key: string]: unknown;
|
237
|
+
};
|
238
|
+
/** RefreshTokenSchema */
|
239
|
+
RefreshTokenSchema: {
|
240
|
+
/** Refreshtoken */
|
241
|
+
refreshToken: string;
|
242
|
+
[key: string]: unknown;
|
243
|
+
};
|
244
|
+
/** AccessTokenSchema */
|
245
|
+
AccessTokenSchema: {
|
246
|
+
/** Accesstoken */
|
247
|
+
accessToken: string;
|
248
|
+
[key: string]: unknown;
|
249
|
+
};
|
250
|
+
/** ListRoleResponseSchema */
|
251
|
+
ListRoleResponseSchema: {
|
252
|
+
info: components["schemas"]["PageInfoSchema"];
|
253
|
+
/** Results */
|
254
|
+
results: components["schemas"]["RoleInfoSchemaWithID"][];
|
255
|
+
[key: string]: unknown;
|
256
|
+
};
|
257
|
+
/** PageInfoSchema */
|
258
|
+
PageInfoSchema: {
|
259
|
+
/** Count */
|
260
|
+
count: number;
|
261
|
+
/** Pages */
|
262
|
+
pages: number;
|
263
|
+
/** Next */
|
264
|
+
next?: string | null;
|
265
|
+
/** Prev */
|
266
|
+
prev?: string | null;
|
267
|
+
[key: string]: unknown;
|
268
|
+
};
|
269
|
+
/** RoleInfoSchemaWithID */
|
270
|
+
RoleInfoSchemaWithID: {
|
271
|
+
/** Id */
|
272
|
+
id: number;
|
273
|
+
/** Name */
|
274
|
+
name: string;
|
275
|
+
/** Permissions */
|
276
|
+
permissions: {
|
277
|
+
[key: string]: string[];
|
278
|
+
};
|
279
|
+
[key: string]: unknown;
|
280
|
+
};
|
281
|
+
/** RoleCreateSchema */
|
282
|
+
RoleCreateSchema: {
|
283
|
+
/** Name */
|
284
|
+
name: string;
|
285
|
+
/** Permissions */
|
286
|
+
permissions: {
|
287
|
+
[key: string]: string[];
|
288
|
+
};
|
289
|
+
[key: string]: unknown;
|
290
|
+
};
|
291
|
+
/** RoleInfoSchema */
|
292
|
+
RoleInfoSchema: {
|
293
|
+
/** Name */
|
294
|
+
name: string;
|
295
|
+
/** Permissions */
|
296
|
+
permissions: {
|
297
|
+
[key: string]: string[];
|
298
|
+
};
|
299
|
+
[key: string]: unknown;
|
300
|
+
};
|
301
|
+
/** RoleUpdateSchema */
|
302
|
+
RoleUpdateSchema: {
|
303
|
+
/** Name */
|
304
|
+
name?: string | null;
|
305
|
+
/** Permissions */
|
306
|
+
permissions?: {
|
307
|
+
[key: string]: string[];
|
308
|
+
} | null;
|
309
|
+
[key: string]: unknown;
|
310
|
+
};
|
311
|
+
/** PermissionsResponseSchema */
|
312
|
+
PermissionsResponseSchema: {
|
313
|
+
info: components["schemas"]["PageInfoSchema"];
|
314
|
+
/** Results */
|
315
|
+
results: {
|
316
|
+
[key: string]: string[];
|
317
|
+
};
|
318
|
+
[key: string]: unknown;
|
319
|
+
};
|
320
|
+
/** MessageResponse */
|
321
|
+
MessageResponse: {
|
322
|
+
/** Message */
|
323
|
+
message: string;
|
324
|
+
[key: string]: unknown;
|
325
|
+
};
|
326
|
+
/** ObjectResponse */
|
327
|
+
ObjectResponse: {
|
328
|
+
/** Message */
|
329
|
+
message: string;
|
330
|
+
/** Error */
|
331
|
+
error: string;
|
332
|
+
[key: string]: unknown;
|
333
|
+
};
|
334
|
+
/** WarehouseSchema */
|
335
|
+
WarehouseSchema: {
|
336
|
+
/** Name */
|
337
|
+
name: string;
|
338
|
+
/** Country */
|
339
|
+
country: string;
|
340
|
+
/** City */
|
341
|
+
city: string;
|
342
|
+
/** Address */
|
343
|
+
address: string;
|
344
|
+
[key: string]: unknown;
|
345
|
+
};
|
346
|
+
/** GaloperSettingSchemaList */
|
347
|
+
GaloperSettingSchemaList: {
|
348
|
+
/** Accounting */
|
349
|
+
accounting: boolean;
|
350
|
+
/** Purchase */
|
351
|
+
purchase: boolean;
|
352
|
+
/** Sales */
|
353
|
+
sales: boolean;
|
354
|
+
/** Expenses */
|
355
|
+
expenses: boolean;
|
356
|
+
/** Inventory */
|
357
|
+
inventory: boolean;
|
358
|
+
/** Calendar */
|
359
|
+
calendar: boolean;
|
360
|
+
/** Pos */
|
361
|
+
pos: boolean;
|
362
|
+
/** Supplier */
|
363
|
+
supplier: boolean;
|
364
|
+
/** Customer */
|
365
|
+
customer: boolean;
|
366
|
+
/** Bank */
|
367
|
+
bank: boolean;
|
368
|
+
[key: string]: unknown;
|
369
|
+
};
|
370
|
+
};
|
371
|
+
responses: never;
|
372
|
+
parameters: never;
|
373
|
+
requestBodies: never;
|
374
|
+
headers: never;
|
375
|
+
pathItems: never;
|
376
|
+
}
|
377
|
+
|
378
|
+
export type $defs = Record<string, never>;
|
379
|
+
|
380
|
+
export type external = Record<string, never>;
|
381
|
+
|
382
|
+
export interface operations {
|
383
|
+
|
384
|
+
/**
|
385
|
+
* Userloginview
|
386
|
+
* @description Endpoint for login.
|
387
|
+
* Possible Responses:
|
388
|
+
* - 400: Ivalid username or password
|
389
|
+
*
|
390
|
+
* - 403: You do not have permission to perform this action
|
391
|
+
* - You cannot login without a role.
|
392
|
+
* - You cannot login without a branch.
|
393
|
+
* - User is not active
|
394
|
+
* - Error license expired
|
395
|
+
* - Error license user count
|
396
|
+
*
|
397
|
+
* - 500: Error Token Creation
|
398
|
+
* - Bad request: Error during user data serialization
|
399
|
+
*/
|
400
|
+
authentication_views_UserLoginView: {
|
401
|
+
requestBody: {
|
402
|
+
content: {
|
403
|
+
"application/json": components["schemas"]["CustomUserSchema"];
|
404
|
+
};
|
405
|
+
};
|
406
|
+
responses: {
|
407
|
+
/** @description OK */
|
408
|
+
200: {
|
409
|
+
content: {
|
410
|
+
"application/json": components["schemas"]["LoginResponseDataSchema"];
|
411
|
+
};
|
412
|
+
};
|
413
|
+
/** @description Bad Request */
|
414
|
+
400: {
|
415
|
+
content: {
|
416
|
+
"application/json": components["schemas"]["Message"];
|
417
|
+
};
|
418
|
+
};
|
419
|
+
/** @description Forbidden */
|
420
|
+
403: {
|
421
|
+
content: {
|
422
|
+
"application/json": components["schemas"]["Message"];
|
423
|
+
};
|
424
|
+
};
|
425
|
+
/** @description Internal Server Error */
|
426
|
+
500: {
|
427
|
+
content: {
|
428
|
+
"application/json": components["schemas"]["Message"];
|
429
|
+
};
|
430
|
+
};
|
431
|
+
};
|
432
|
+
};
|
433
|
+
/**
|
434
|
+
* Logout View
|
435
|
+
* @description Endpoint for logout.
|
436
|
+
* Possible Responses:
|
437
|
+
* - 400: "An error occurred during the logout process"
|
438
|
+
* - "Invalid or expired refresh token"
|
439
|
+
* - "Refresh token expired"
|
440
|
+
* - "Invalid refresh token"
|
441
|
+
* - "Unable to process logout request"
|
442
|
+
* - 200: "Successfully logged out"
|
443
|
+
*/
|
444
|
+
authentication_views_logout_view: {
|
445
|
+
requestBody: {
|
446
|
+
content: {
|
447
|
+
"application/json": components["schemas"]["RefreshTokenSchema"];
|
448
|
+
};
|
449
|
+
};
|
450
|
+
responses: {
|
451
|
+
/** @description OK */
|
452
|
+
200: {
|
453
|
+
content: {
|
454
|
+
"application/json": components["schemas"]["Message"];
|
455
|
+
};
|
456
|
+
};
|
457
|
+
/** @description Bad Request */
|
458
|
+
400: {
|
459
|
+
content: {
|
460
|
+
"application/json": components["schemas"]["Message"];
|
461
|
+
};
|
462
|
+
};
|
463
|
+
};
|
464
|
+
};
|
465
|
+
/**
|
466
|
+
* Refresh Token View
|
467
|
+
* @description Endpoint for refresh token.
|
468
|
+
* Possible Responses:
|
469
|
+
* - 401: "Invalid refresh token"
|
470
|
+
*/
|
471
|
+
authentication_views_refresh_token_view: {
|
472
|
+
requestBody: {
|
473
|
+
content: {
|
474
|
+
"application/json": components["schemas"]["RefreshTokenSchema"];
|
475
|
+
};
|
476
|
+
};
|
477
|
+
responses: {
|
478
|
+
/** @description OK */
|
479
|
+
200: {
|
480
|
+
content: {
|
481
|
+
"application/json": components["schemas"]["AccessTokenSchema"];
|
482
|
+
};
|
483
|
+
};
|
484
|
+
/** @description Unauthorized */
|
485
|
+
401: {
|
486
|
+
content: {
|
487
|
+
"application/json": components["schemas"]["Message"];
|
488
|
+
};
|
489
|
+
};
|
490
|
+
};
|
491
|
+
};
|
492
|
+
/**
|
493
|
+
* List All Roles
|
494
|
+
* @description Endpoint for group list.
|
495
|
+
*/
|
496
|
+
authentication_views_list_all_roles: {
|
497
|
+
parameters: {
|
498
|
+
query?: {
|
499
|
+
/** @description Page number */
|
500
|
+
page?: number;
|
501
|
+
/** @description Page size */
|
502
|
+
pageSize?: number;
|
503
|
+
};
|
504
|
+
};
|
505
|
+
responses: {
|
506
|
+
/** @description OK */
|
507
|
+
200: {
|
508
|
+
content: {
|
509
|
+
"application/json": components["schemas"]["ListRoleResponseSchema"];
|
510
|
+
};
|
511
|
+
};
|
512
|
+
/** @description Bad Request */
|
513
|
+
400: {
|
514
|
+
content: {
|
515
|
+
"application/json": components["schemas"]["Message"];
|
516
|
+
};
|
517
|
+
};
|
518
|
+
/** @description Forbidden */
|
519
|
+
403: {
|
520
|
+
content: {
|
521
|
+
"application/json": components["schemas"]["Message"];
|
522
|
+
};
|
523
|
+
};
|
524
|
+
};
|
525
|
+
};
|
526
|
+
/**
|
527
|
+
* Create Role
|
528
|
+
* @description Endpoint for creating a group.
|
529
|
+
* Possible Responses:
|
530
|
+
* - 400: "Bad Request"
|
531
|
+
* - "Role with this name already exists."
|
532
|
+
* - "Permission with codename(s) <missing_codenames> does not exist."
|
533
|
+
*
|
534
|
+
* - 202: - "Role created successfully"
|
535
|
+
*/
|
536
|
+
authentication_views_create_role: {
|
537
|
+
requestBody: {
|
538
|
+
content: {
|
539
|
+
"application/json": components["schemas"]["RoleCreateSchema"];
|
540
|
+
};
|
541
|
+
};
|
542
|
+
responses: {
|
543
|
+
/** @description Accepted */
|
544
|
+
202: {
|
545
|
+
content: {
|
546
|
+
"application/json": components["schemas"]["Message"];
|
547
|
+
};
|
548
|
+
};
|
549
|
+
/** @description Bad Request */
|
550
|
+
400: {
|
551
|
+
content: {
|
552
|
+
"application/json": components["schemas"]["Message"];
|
553
|
+
};
|
554
|
+
};
|
555
|
+
/** @description Forbidden */
|
556
|
+
403: {
|
557
|
+
content: {
|
558
|
+
"application/json": components["schemas"]["Message"];
|
559
|
+
};
|
560
|
+
};
|
561
|
+
};
|
562
|
+
};
|
563
|
+
/**
|
564
|
+
* Retrieve Role
|
565
|
+
* @description Endpoint for retrieving a role.
|
566
|
+
* Possible Responses:
|
567
|
+
* - 403: "Forbidden"
|
568
|
+
*
|
569
|
+
* - 404: "Role not found"
|
570
|
+
*
|
571
|
+
* - 200: "
|
572
|
+
* data = {
|
573
|
+
* "name": "Admin Group",
|
574
|
+
* "permissions": {
|
575
|
+
* "user": ["view", "add", "change", "delete"],
|
576
|
+
* "role": ["view", "add", "change"],
|
577
|
+
* "authlogentry": ["view"],
|
578
|
+
* }
|
579
|
+
* }
|
580
|
+
* "
|
581
|
+
*/
|
582
|
+
authentication_views_retrieve_role: {
|
583
|
+
parameters: {
|
584
|
+
path: {
|
585
|
+
id: number;
|
586
|
+
};
|
587
|
+
};
|
588
|
+
responses: {
|
589
|
+
/** @description OK */
|
590
|
+
200: {
|
591
|
+
content: {
|
592
|
+
"application/json": components["schemas"]["RoleInfoSchema"];
|
593
|
+
};
|
594
|
+
};
|
595
|
+
/** @description Forbidden */
|
596
|
+
403: {
|
597
|
+
content: {
|
598
|
+
"application/json": components["schemas"]["Message"];
|
599
|
+
};
|
600
|
+
};
|
601
|
+
/** @description Not Found */
|
602
|
+
404: {
|
603
|
+
content: {
|
604
|
+
"application/json": components["schemas"]["Message"];
|
605
|
+
};
|
606
|
+
};
|
607
|
+
};
|
608
|
+
};
|
609
|
+
/**
|
610
|
+
* Delete Role
|
611
|
+
* @description Endpoint for deleting a group.
|
612
|
+
* Possible Responses:
|
613
|
+
* - 403: "Forbidden"
|
614
|
+
*
|
615
|
+
* - 404: "Group not found"
|
616
|
+
*
|
617
|
+
* -204: "No Content"
|
618
|
+
*/
|
619
|
+
authentication_views_delete_role: {
|
620
|
+
parameters: {
|
621
|
+
path: {
|
622
|
+
id: number;
|
623
|
+
};
|
624
|
+
};
|
625
|
+
responses: {
|
626
|
+
/** @description No Content */
|
627
|
+
204: {
|
628
|
+
content: never;
|
629
|
+
};
|
630
|
+
/** @description Forbidden */
|
631
|
+
403: {
|
632
|
+
content: {
|
633
|
+
"application/json": components["schemas"]["Message"];
|
634
|
+
};
|
635
|
+
};
|
636
|
+
/** @description Not Found */
|
637
|
+
404: {
|
638
|
+
content: {
|
639
|
+
"application/json": components["schemas"]["Message"];
|
640
|
+
};
|
641
|
+
};
|
642
|
+
};
|
643
|
+
};
|
644
|
+
/**
|
645
|
+
* Update Role
|
646
|
+
* @description Endpoint for updating a role.
|
647
|
+
* Possible Responses:
|
648
|
+
* - 400: "Bad Request"
|
649
|
+
* - "Permission with codename(s) <missing_codenames> does not exist."
|
650
|
+
*
|
651
|
+
* - 403: "Forbidden"
|
652
|
+
*
|
653
|
+
* - 404: "Role not found"
|
654
|
+
*
|
655
|
+
* - 200: "Updated"
|
656
|
+
* - "Role updated successfully"
|
657
|
+
*/
|
658
|
+
authentication_views_update_role: {
|
659
|
+
parameters: {
|
660
|
+
path: {
|
661
|
+
id: number;
|
662
|
+
};
|
663
|
+
};
|
664
|
+
requestBody: {
|
665
|
+
content: {
|
666
|
+
"application/json": components["schemas"]["RoleUpdateSchema"];
|
667
|
+
};
|
668
|
+
};
|
669
|
+
responses: {
|
670
|
+
/** @description OK */
|
671
|
+
200: {
|
672
|
+
content: {
|
673
|
+
"application/json": components["schemas"]["Message"];
|
674
|
+
};
|
675
|
+
};
|
676
|
+
/** @description Bad Request */
|
677
|
+
400: {
|
678
|
+
content: {
|
679
|
+
"application/json": components["schemas"]["Message"];
|
680
|
+
};
|
681
|
+
};
|
682
|
+
/** @description Forbidden */
|
683
|
+
403: {
|
684
|
+
content: {
|
685
|
+
"application/json": components["schemas"]["Message"];
|
686
|
+
};
|
687
|
+
};
|
688
|
+
/** @description Not Found */
|
689
|
+
404: {
|
690
|
+
content: {
|
691
|
+
"application/json": components["schemas"]["Message"];
|
692
|
+
};
|
693
|
+
};
|
694
|
+
};
|
695
|
+
};
|
696
|
+
/**
|
697
|
+
* Permission List View
|
698
|
+
* @description Endpoint for permission list.
|
699
|
+
*/
|
700
|
+
authentication_views_permission_list_view: {
|
701
|
+
parameters: {
|
702
|
+
query?: {
|
703
|
+
/** @description Page number */
|
704
|
+
page?: number;
|
705
|
+
/** @description Page size */
|
706
|
+
pageSize?: number;
|
707
|
+
};
|
708
|
+
};
|
709
|
+
responses: {
|
710
|
+
/** @description OK */
|
711
|
+
200: {
|
712
|
+
content: {
|
713
|
+
"application/json": components["schemas"]["PermissionsResponseSchema"];
|
714
|
+
};
|
715
|
+
};
|
716
|
+
/** @description Bad Request */
|
717
|
+
400: {
|
718
|
+
content: {
|
719
|
+
"application/json": components["schemas"]["Message"];
|
720
|
+
};
|
721
|
+
};
|
722
|
+
/** @description Forbidden */
|
723
|
+
403: {
|
724
|
+
content: {
|
725
|
+
"application/json": components["schemas"]["Message"];
|
726
|
+
};
|
727
|
+
};
|
728
|
+
};
|
729
|
+
};
|
730
|
+
/**
|
731
|
+
* Get User Info
|
732
|
+
* @description Endpoint for getting a group.
|
733
|
+
* Possible Responses:
|
734
|
+
* - 403: "Forbidden"
|
735
|
+
*
|
736
|
+
* - 404: "Group not found"
|
737
|
+
*
|
738
|
+
* -204: "No Content"
|
739
|
+
*/
|
740
|
+
authentication_views_get_user_info: {
|
741
|
+
responses: {
|
742
|
+
/** @description OK */
|
743
|
+
200: {
|
744
|
+
content: {
|
745
|
+
"application/json": components["schemas"]["UserInfoSchema"];
|
746
|
+
};
|
747
|
+
};
|
748
|
+
/** @description Forbidden */
|
749
|
+
403: {
|
750
|
+
content: {
|
751
|
+
"application/json": components["schemas"]["Message"];
|
752
|
+
};
|
753
|
+
};
|
754
|
+
/** @description Not Found */
|
755
|
+
404: {
|
756
|
+
content: {
|
757
|
+
"application/json": components["schemas"]["Message"];
|
758
|
+
};
|
759
|
+
};
|
760
|
+
};
|
761
|
+
};
|
762
|
+
/**
|
763
|
+
* New Default Warehouse
|
764
|
+
* @description Endpoint for create warehouse.
|
765
|
+
* Possible Responses:
|
766
|
+
* - 400: "Bad Request"
|
767
|
+
* - "Invalid parameters"
|
768
|
+
*
|
769
|
+
* - 201: "Created"
|
770
|
+
* - "Warehouse Created Successfully"
|
771
|
+
* - 403: "Forbidden"
|
772
|
+
* - "You do not have permission to perform this action"
|
773
|
+
*/
|
774
|
+
inventory_warehouse_views_new_default_warehouse: {
|
775
|
+
requestBody: {
|
776
|
+
content: {
|
777
|
+
"application/json": components["schemas"]["WarehouseSchema"];
|
778
|
+
};
|
779
|
+
};
|
780
|
+
responses: {
|
781
|
+
/** @description Created */
|
782
|
+
201: {
|
783
|
+
content: {
|
784
|
+
"application/json": components["schemas"]["MessageResponse"];
|
785
|
+
};
|
786
|
+
};
|
787
|
+
/** @description Bad Request */
|
788
|
+
400: {
|
789
|
+
content: {
|
790
|
+
"application/json": components["schemas"]["ObjectResponse"];
|
791
|
+
};
|
792
|
+
};
|
793
|
+
/** @description Forbidden */
|
794
|
+
403: {
|
795
|
+
content: {
|
796
|
+
"application/json": components["schemas"]["MessageResponse"];
|
797
|
+
};
|
798
|
+
};
|
799
|
+
};
|
800
|
+
};
|
801
|
+
/**
|
802
|
+
* Get Galoper Setting
|
803
|
+
* @description Endpoint for create company.
|
804
|
+
* Possible Responses:
|
805
|
+
* - 200: "Success"
|
806
|
+
* - "Success"
|
807
|
+
* - 404: "Not Found"
|
808
|
+
* - "Not Found"
|
809
|
+
* - 403: "Forbidden"
|
810
|
+
* - "You do not have permission to perform this action"
|
811
|
+
*/
|
812
|
+
admin_panel_views_get_galoper_setting: {
|
813
|
+
responses: {
|
814
|
+
/** @description OK */
|
815
|
+
200: {
|
816
|
+
content: {
|
817
|
+
"application/json": components["schemas"]["GaloperSettingSchemaList"];
|
818
|
+
};
|
819
|
+
};
|
820
|
+
/** @description Forbidden */
|
821
|
+
403: {
|
822
|
+
content: {
|
823
|
+
"application/json": components["schemas"]["MessageResponse"];
|
824
|
+
};
|
825
|
+
};
|
826
|
+
/** @description Not Found */
|
827
|
+
404: {
|
828
|
+
content: {
|
829
|
+
"application/json": components["schemas"]["MessageResponse"];
|
830
|
+
};
|
831
|
+
};
|
832
|
+
};
|
833
|
+
};
|
834
|
+
/** Get Settings Options */
|
835
|
+
erp_settings_views_get_settings_options: {
|
836
|
+
responses: {
|
837
|
+
/** @description OK */
|
838
|
+
200: {
|
839
|
+
content: never;
|
840
|
+
};
|
841
|
+
};
|
842
|
+
};
|
843
|
+
}
|