@jprogrami/mobbcadona 1.0.2
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-generator/FILES +18 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator/openapi.yaml-generate-sdk-typescript.sha256 +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/AuthenticationApi.d.ts +40 -0
- package/dist/apis/AuthenticationApi.js +168 -0
- package/dist/apis/InventoriesApi.d.ts +52 -0
- package/dist/apis/InventoriesApi.js +239 -0
- package/dist/apis/ProductsApi.d.ts +110 -0
- package/dist/apis/ProductsApi.js +515 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +21 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Inventory.d.ts +37 -0
- package/dist/models/Inventory.js +47 -0
- package/dist/models/LoginRequest.d.ts +37 -0
- package/dist/models/LoginRequest.js +47 -0
- package/dist/models/ProblemDetail.d.ts +55 -0
- package/dist/models/ProblemDetail.js +53 -0
- package/dist/models/Product.d.ts +49 -0
- package/dist/models/Product.js +55 -0
- package/dist/models/ProductDto.d.ts +43 -0
- package/dist/models/ProductDto.js +49 -0
- package/dist/models/RegisterRequest.d.ts +43 -0
- package/dist/models/RegisterRequest.js +49 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +24 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +557 -0
- package/package.json +19 -0
- package/src/apis/AuthenticationApi.ts +114 -0
- package/src/apis/InventoriesApi.ts +170 -0
- package/src/apis/ProductsApi.ts +431 -0
- package/src/apis/index.ts +5 -0
- package/src/index.ts +5 -0
- package/src/models/Inventory.ts +68 -0
- package/src/models/LoginRequest.ts +68 -0
- package/src/models/ProblemDetail.ts +92 -0
- package/src/models/Product.ts +86 -0
- package/src/models/ProductDto.ts +76 -0
- package/src/models/RegisterRequest.ts +76 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +426 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Inventory Management API
|
|
5
|
+
* RESTful API for inventory and product management, secured with JWT.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface LoginRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginRequest
|
|
26
|
+
*/
|
|
27
|
+
username?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginRequest
|
|
32
|
+
*/
|
|
33
|
+
password?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LoginRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLoginRequest(value: object): boolean {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function LoginRequestFromJSON(json: any): LoginRequest {
|
|
44
|
+
return LoginRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
54
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function LoginRequestToJSON(value?: LoginRequest | null): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'username': value['username'],
|
|
65
|
+
'password': value['password'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Inventory Management API
|
|
5
|
+
* RESTful API for inventory and product management, secured with JWT.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProblemDetail
|
|
20
|
+
*/
|
|
21
|
+
export interface ProblemDetail {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProblemDetail
|
|
26
|
+
*/
|
|
27
|
+
type?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProblemDetail
|
|
32
|
+
*/
|
|
33
|
+
title?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ProblemDetail
|
|
38
|
+
*/
|
|
39
|
+
status?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ProblemDetail
|
|
44
|
+
*/
|
|
45
|
+
detail?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ProblemDetail
|
|
50
|
+
*/
|
|
51
|
+
instance?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ProblemDetail interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfProblemDetail(value: object): boolean {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ProblemDetailFromJSON(json: any): ProblemDetail {
|
|
62
|
+
return ProblemDetailFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ProblemDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProblemDetail {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
72
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
73
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
74
|
+
'detail': json['detail'] == null ? undefined : json['detail'],
|
|
75
|
+
'instance': json['instance'] == null ? undefined : json['instance'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ProblemDetailToJSON(value?: ProblemDetail | null): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'type': value['type'],
|
|
86
|
+
'title': value['title'],
|
|
87
|
+
'status': value['status'],
|
|
88
|
+
'detail': value['detail'],
|
|
89
|
+
'instance': value['instance'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Inventory Management API
|
|
5
|
+
* RESTful API for inventory and product management, secured with JWT.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Product
|
|
20
|
+
*/
|
|
21
|
+
export interface Product {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Product
|
|
26
|
+
*/
|
|
27
|
+
id?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Product
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Product
|
|
38
|
+
*/
|
|
39
|
+
price: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof Product
|
|
44
|
+
*/
|
|
45
|
+
weight?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the Product interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfProduct(value: object): boolean {
|
|
52
|
+
if (!('name' in value)) return false;
|
|
53
|
+
if (!('price' in value)) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ProductFromJSON(json: any): Product {
|
|
58
|
+
return ProductFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
68
|
+
'name': json['name'],
|
|
69
|
+
'price': json['price'],
|
|
70
|
+
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ProductToJSON(value?: Product | null): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'id': value['id'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
'price': value['price'],
|
|
83
|
+
'weight': value['weight'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Inventory Management API
|
|
5
|
+
* RESTful API for inventory and product management, secured with JWT.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProductDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProductDto
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ProductDto
|
|
32
|
+
*/
|
|
33
|
+
price?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ProductDto
|
|
38
|
+
*/
|
|
39
|
+
weight?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ProductDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfProductDto(value: object): boolean {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductDtoFromJSON(json: any): ProductDto {
|
|
50
|
+
return ProductDtoFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ProductDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductDto {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
60
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
61
|
+
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ProductDtoToJSON(value?: ProductDto | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'price': value['price'],
|
|
73
|
+
'weight': value['weight'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Inventory Management API
|
|
5
|
+
* RESTful API for inventory and product management, secured with JWT.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RegisterRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RegisterRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RegisterRequest
|
|
26
|
+
*/
|
|
27
|
+
username?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RegisterRequest
|
|
32
|
+
*/
|
|
33
|
+
password?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RegisterRequest
|
|
38
|
+
*/
|
|
39
|
+
role?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the RegisterRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfRegisterRequest(value: object): boolean {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RegisterRequestFromJSON(json: any): RegisterRequest {
|
|
50
|
+
return RegisterRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
60
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
61
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RegisterRequestToJSON(value?: RegisterRequest | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'username': value['username'],
|
|
72
|
+
'password': value['password'],
|
|
73
|
+
'role': value['role'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|