@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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator/openapi.yaml-generate-sdk-typescript.sha256 +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/README.md +46 -0
  6. package/dist/apis/AuthenticationApi.d.ts +40 -0
  7. package/dist/apis/AuthenticationApi.js +168 -0
  8. package/dist/apis/InventoriesApi.d.ts +52 -0
  9. package/dist/apis/InventoriesApi.js +239 -0
  10. package/dist/apis/ProductsApi.d.ts +110 -0
  11. package/dist/apis/ProductsApi.js +515 -0
  12. package/dist/apis/index.d.ts +3 -0
  13. package/dist/apis/index.js +21 -0
  14. package/dist/index.d.ts +3 -0
  15. package/dist/index.js +21 -0
  16. package/dist/models/Inventory.d.ts +37 -0
  17. package/dist/models/Inventory.js +47 -0
  18. package/dist/models/LoginRequest.d.ts +37 -0
  19. package/dist/models/LoginRequest.js +47 -0
  20. package/dist/models/ProblemDetail.d.ts +55 -0
  21. package/dist/models/ProblemDetail.js +53 -0
  22. package/dist/models/Product.d.ts +49 -0
  23. package/dist/models/Product.js +55 -0
  24. package/dist/models/ProductDto.d.ts +43 -0
  25. package/dist/models/ProductDto.js +49 -0
  26. package/dist/models/RegisterRequest.d.ts +43 -0
  27. package/dist/models/RegisterRequest.js +49 -0
  28. package/dist/models/index.d.ts +6 -0
  29. package/dist/models/index.js +24 -0
  30. package/dist/runtime.d.ts +181 -0
  31. package/dist/runtime.js +557 -0
  32. package/package.json +19 -0
  33. package/src/apis/AuthenticationApi.ts +114 -0
  34. package/src/apis/InventoriesApi.ts +170 -0
  35. package/src/apis/ProductsApi.ts +431 -0
  36. package/src/apis/index.ts +5 -0
  37. package/src/index.ts +5 -0
  38. package/src/models/Inventory.ts +68 -0
  39. package/src/models/LoginRequest.ts +68 -0
  40. package/src/models/ProblemDetail.ts +92 -0
  41. package/src/models/Product.ts +86 -0
  42. package/src/models/ProductDto.ts +76 -0
  43. package/src/models/RegisterRequest.ts +76 -0
  44. package/src/models/index.ts +8 -0
  45. package/src/runtime.ts +426 -0
  46. 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
+
@@ -0,0 +1,8 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './Inventory';
4
+ export * from './LoginRequest';
5
+ export * from './ProblemDetail';
6
+ export * from './Product';
7
+ export * from './ProductDto';
8
+ export * from './RegisterRequest';