typedapi-client-helpers 0.1.5 → 0.1.7

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 (129) hide show
  1. package/README.md +314 -676
  2. package/dist/api/generated/Import.d.ts +22 -0
  3. package/dist/api/generated/Import.d.ts.map +1 -0
  4. package/dist/api/generated/Import.js +48 -0
  5. package/dist/api/generated/Import.js.map +1 -0
  6. package/dist/api/generated/ImportRoute.d.ts +30 -0
  7. package/dist/api/generated/ImportRoute.d.ts.map +1 -0
  8. package/dist/api/generated/ImportRoute.js +13 -0
  9. package/dist/api/generated/ImportRoute.js.map +1 -0
  10. package/dist/api/generated/Order.d.ts +38 -0
  11. package/dist/api/generated/Order.d.ts.map +1 -0
  12. package/dist/api/generated/Order.js +75 -0
  13. package/dist/api/generated/Order.js.map +1 -0
  14. package/dist/api/generated/OrderRoute.d.ts +83 -0
  15. package/dist/api/generated/OrderRoute.d.ts.map +1 -0
  16. package/dist/api/generated/OrderRoute.js +13 -0
  17. package/dist/api/generated/OrderRoute.js.map +1 -0
  18. package/dist/api/generated/Product.d.ts +62 -0
  19. package/dist/api/generated/Product.d.ts.map +1 -0
  20. package/dist/api/generated/Product.js +114 -0
  21. package/dist/api/generated/Product.js.map +1 -0
  22. package/dist/api/generated/ProductRoute.d.ts +140 -0
  23. package/dist/api/generated/ProductRoute.d.ts.map +1 -0
  24. package/dist/api/generated/ProductRoute.js +13 -0
  25. package/dist/api/generated/ProductRoute.js.map +1 -0
  26. package/dist/api/generated/Report.d.ts +14 -0
  27. package/dist/api/generated/Report.d.ts.map +1 -0
  28. package/dist/api/generated/Report.js +32 -0
  29. package/dist/api/generated/Report.js.map +1 -0
  30. package/dist/api/generated/ReportRoute.d.ts +23 -0
  31. package/dist/api/generated/ReportRoute.d.ts.map +1 -0
  32. package/dist/api/generated/ReportRoute.js +13 -0
  33. package/dist/api/generated/ReportRoute.js.map +1 -0
  34. package/dist/api/generated/Supplier.d.ts +46 -0
  35. package/dist/api/generated/Supplier.d.ts.map +1 -0
  36. package/dist/api/generated/Supplier.js +87 -0
  37. package/dist/api/generated/Supplier.js.map +1 -0
  38. package/dist/api/generated/SupplierRoute.d.ts +101 -0
  39. package/dist/api/generated/SupplierRoute.d.ts.map +1 -0
  40. package/dist/api/generated/SupplierRoute.js +13 -0
  41. package/dist/api/generated/SupplierRoute.js.map +1 -0
  42. package/dist/api/generated/data-contracts.d.ts +277 -0
  43. package/dist/api/generated/data-contracts.d.ts.map +1 -0
  44. package/dist/api/generated/data-contracts.js +26 -0
  45. package/dist/api/generated/data-contracts.js.map +1 -0
  46. package/dist/api/generated/http-client.d.ts +61 -0
  47. package/dist/api/generated/http-client.d.ts.map +1 -0
  48. package/dist/api/generated/http-client.js +171 -0
  49. package/dist/api/generated/http-client.js.map +1 -0
  50. package/dist/api/index.d.ts +8 -0
  51. package/dist/api/index.d.ts.map +1 -0
  52. package/dist/api/index.js +8 -0
  53. package/dist/api/index.js.map +1 -0
  54. package/dist/api/methods/Import.api.d.ts +6 -0
  55. package/dist/api/methods/Import.api.d.ts.map +1 -0
  56. package/dist/api/methods/Import.api.js +27 -0
  57. package/dist/api/methods/Import.api.js.map +1 -0
  58. package/dist/api/methods/Order.api.d.ts +29 -0
  59. package/dist/api/methods/Order.api.d.ts.map +1 -0
  60. package/dist/api/methods/Order.api.js +52 -0
  61. package/dist/api/methods/Order.api.js.map +1 -0
  62. package/dist/api/methods/Product.api.d.ts +39 -0
  63. package/dist/api/methods/Product.api.d.ts.map +1 -0
  64. package/dist/api/methods/Product.api.js +69 -0
  65. package/dist/api/methods/Product.api.js.map +1 -0
  66. package/dist/api/methods/Report.api.d.ts +6 -0
  67. package/dist/api/methods/Report.api.d.ts.map +1 -0
  68. package/dist/api/methods/Report.api.js +19 -0
  69. package/dist/api/methods/Report.api.js.map +1 -0
  70. package/dist/api/methods/Supplier.api.d.ts +35 -0
  71. package/dist/api/methods/Supplier.api.d.ts.map +1 -0
  72. package/dist/api/methods/Supplier.api.js +63 -0
  73. package/dist/api/methods/Supplier.api.js.map +1 -0
  74. package/dist/index.cjs +47 -551
  75. package/dist/index.d.cts +108 -18
  76. package/dist/index.d.ts +108 -18
  77. package/dist/index.d.ts.map +1 -0
  78. package/dist/index.js +46 -551
  79. package/dist/index.js.map +1 -0
  80. package/dist/interfaces/ApiResult.d.ts +17 -0
  81. package/dist/interfaces/ApiResult.d.ts.map +1 -0
  82. package/dist/interfaces/ApiResult.js +2 -0
  83. package/dist/interfaces/ApiResult.js.map +1 -0
  84. package/dist/interfaces/Filter.d.ts +31 -0
  85. package/dist/interfaces/Filter.d.ts.map +1 -0
  86. package/dist/interfaces/Filter.js +2 -0
  87. package/dist/interfaces/Filter.js.map +1 -0
  88. package/dist/interfaces/SortType.d.ts +7 -0
  89. package/dist/interfaces/SortType.d.ts.map +1 -0
  90. package/dist/interfaces/SortType.js +2 -0
  91. package/dist/interfaces/SortType.js.map +1 -0
  92. package/dist/types/ApiCallOptions.d.ts +9 -0
  93. package/dist/types/ApiCallOptions.d.ts.map +1 -0
  94. package/dist/types/ApiCallOptions.js +2 -0
  95. package/dist/types/ApiCallOptions.js.map +1 -0
  96. package/dist/types/ApiMethodTypes.d.ts +24 -0
  97. package/dist/types/ApiMethodTypes.d.ts.map +1 -0
  98. package/dist/types/ApiMethodTypes.js +2 -0
  99. package/dist/types/ApiMethodTypes.js.map +1 -0
  100. package/dist/types/HttpResponse.d.ts +16 -0
  101. package/dist/types/HttpResponse.d.ts.map +1 -0
  102. package/dist/types/HttpResponse.js +2 -0
  103. package/dist/types/HttpResponse.js.map +1 -0
  104. package/dist/utils/SortTypeFromSortDirection.d.ts +22 -0
  105. package/dist/utils/SortTypeFromSortDirection.d.ts.map +1 -0
  106. package/dist/utils/SortTypeFromSortDirection.js +45 -0
  107. package/dist/utils/SortTypeFromSortDirection.js.map +1 -0
  108. package/dist/utils/buildQuery.d.ts +11 -0
  109. package/dist/utils/buildQuery.d.ts.map +1 -0
  110. package/dist/utils/buildQuery.js +94 -0
  111. package/dist/utils/buildQuery.js.map +1 -0
  112. package/dist/utils/extractArgsCallbacksAndParams.d.ts +22 -0
  113. package/dist/utils/extractArgsCallbacksAndParams.d.ts.map +1 -0
  114. package/dist/utils/extractArgsCallbacksAndParams.js +44 -0
  115. package/dist/utils/extractArgsCallbacksAndParams.js.map +1 -0
  116. package/dist/utils/extractArgsToastsAndParams.d.ts +18 -0
  117. package/dist/utils/extractArgsToastsAndParams.d.ts.map +1 -0
  118. package/dist/utils/extractArgsToastsAndParams.js +40 -0
  119. package/dist/utils/extractArgsToastsAndParams.js.map +1 -0
  120. package/dist/utils/handleApiResponse.d.ts +9 -0
  121. package/dist/utils/handleApiResponse.d.ts.map +1 -0
  122. package/dist/utils/handleApiResponse.js +49 -0
  123. package/dist/utils/handleApiResponse.js.map +1 -0
  124. package/dist/utils/toFormData.d.ts +8 -0
  125. package/dist/utils/toFormData.d.ts.map +1 -0
  126. package/dist/utils/toFormData.js +68 -0
  127. package/dist/utils/toFormData.js.map +1 -0
  128. package/package.json +11 -3
  129. package/scripts/generate-api-minimal.mjs +263 -25
@@ -0,0 +1,140 @@
1
+ import { ProductModel, ProductSearchResult, ProductTableRowApiPaginationResponse, SortDirection } from "./data-contracts";
2
+ export declare namespace Product {
3
+ /**
4
+ * No description
5
+ * @tags Product
6
+ * @name GetProducts
7
+ * @request GET:/api/products
8
+ */
9
+ namespace GetProducts {
10
+ type RequestParams = {};
11
+ type RequestQuery = {
12
+ ProductIds?: string[];
13
+ SearchText?: string;
14
+ /** @format date-time */
15
+ MinCreatedAt?: string;
16
+ /** @format date-time */
17
+ MaxCreatedAt?: string;
18
+ Active?: boolean;
19
+ /**
20
+ * @format int32
21
+ * @default 1
22
+ */
23
+ PageNumber?: number;
24
+ /**
25
+ * @format int32
26
+ * @default 100
27
+ */
28
+ PageSize?: number;
29
+ SortBy?: string;
30
+ SortDirection?: SortDirection;
31
+ Category?: string[];
32
+ /** @format double */
33
+ MinPrice?: number;
34
+ /** @format double */
35
+ MaxPrice?: number;
36
+ InStock?: boolean;
37
+ };
38
+ type RequestBody = never;
39
+ type RequestHeaders = {};
40
+ type ResponseBody = ProductTableRowApiPaginationResponse;
41
+ }
42
+ /**
43
+ * No description
44
+ * @tags Product
45
+ * @name CreateProduct
46
+ * @request POST:/api/products
47
+ */
48
+ namespace CreateProduct {
49
+ type RequestParams = {};
50
+ type RequestQuery = {};
51
+ type RequestBody = ProductModel;
52
+ type RequestHeaders = {};
53
+ type ResponseBody = ProductModel;
54
+ }
55
+ /**
56
+ * No description
57
+ * @tags Product
58
+ * @name GetProductById
59
+ * @request GET:/api/products/{id}
60
+ */
61
+ namespace GetProductById {
62
+ type RequestParams = {
63
+ /** @format uuid */
64
+ id: string;
65
+ };
66
+ type RequestQuery = {};
67
+ type RequestBody = never;
68
+ type RequestHeaders = {};
69
+ type ResponseBody = ProductModel;
70
+ }
71
+ /**
72
+ * No description
73
+ * @tags Product
74
+ * @name UpdateProduct
75
+ * @request PUT:/api/products/{id}
76
+ */
77
+ namespace UpdateProduct {
78
+ type RequestParams = {
79
+ /** @format uuid */
80
+ id: string;
81
+ };
82
+ type RequestQuery = {};
83
+ type RequestBody = ProductModel;
84
+ type RequestHeaders = {};
85
+ type ResponseBody = ProductModel;
86
+ }
87
+ /**
88
+ * No description
89
+ * @tags Product
90
+ * @name DeleteProduct
91
+ * @request DELETE:/api/products/{id}
92
+ */
93
+ namespace DeleteProduct {
94
+ type RequestParams = {
95
+ /** @format uuid */
96
+ id: string;
97
+ };
98
+ type RequestQuery = {};
99
+ type RequestBody = never;
100
+ type RequestHeaders = {};
101
+ type ResponseBody = void;
102
+ }
103
+ /**
104
+ * No description
105
+ * @tags Product
106
+ * @name SearchProducts
107
+ * @request GET:/api/products/search
108
+ */
109
+ namespace SearchProducts {
110
+ type RequestParams = {};
111
+ type RequestQuery = {
112
+ query?: string;
113
+ /**
114
+ * @format int32
115
+ * @default 10
116
+ */
117
+ limit?: number;
118
+ };
119
+ type RequestBody = never;
120
+ type RequestHeaders = {};
121
+ type ResponseBody = ProductSearchResult[];
122
+ }
123
+ /**
124
+ * No description
125
+ * @tags Product
126
+ * @name ExportProducts
127
+ * @request GET:/api/products/export
128
+ */
129
+ namespace ExportProducts {
130
+ type RequestParams = {};
131
+ type RequestQuery = {
132
+ Category?: string[];
133
+ InStock?: boolean;
134
+ };
135
+ type RequestBody = never;
136
+ type RequestHeaders = {};
137
+ type ResponseBody = Blob;
138
+ }
139
+ }
140
+ //# sourceMappingURL=ProductRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductRoute.d.ts","sourceRoot":"","sources":["../../../src/api/generated/ProductRoute.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,oCAAoC,EACpC,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,yBAAiB,OAAO,CAAC;IACvB;;;;;OAKG;IACH,UAAiB,WAAW,CAAC;QAC3B,KAAY,aAAa,GAAG,EAAE,CAAC;QAC/B,KAAY,YAAY,GAAG;YACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;YACtB,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,wBAAwB;YACxB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,wBAAwB;YACxB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB;;;eAGG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB;;;eAGG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,aAAa,CAAC,EAAE,aAAa,CAAC;YAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;YACpB,qBAAqB;YACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,qBAAqB;YACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,OAAO,CAAC,EAAE,OAAO,CAA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aAAa,GAAG,EAAE,CAAC;QAC/B,KAAY,YAAY,GAAG;YACzB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf;;;eAGG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,KAAY,WAAW,GAAG,KAAK,CAAC;QAChC,KAAY,cAAc,GAAG,EAAE,CAAC;QAChC,KAAY,YAAY,GAAG,mBAAmB,EAAE,CAAC;KAClD;IAED;;;;;OAKG;IACH,UAAiB,cAAc,CAAC;QAC9B,KAAY,aAAa,GAAG,EAAE,CAAC;QAC/B,KAAY,YAAY,GAAG;YACzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;YACpB,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB,CAAC;QACF,KAAY,WAAW,GAAG,KAAK,CAAC;QAChC,KAAY,cAAc,GAAG,EAAE,CAAC;QAChC,KAAY,YAAY,GAAG,IAAI,CAAC;KACjC;CACF"}
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+ export {};
13
+ //# sourceMappingURL=ProductRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductRoute.js","sourceRoot":"","sources":["../../../src/api/generated/ProductRoute.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG"}
@@ -0,0 +1,14 @@
1
+ import { GetInventorySummaryParams, InventorySummary } from "./data-contracts";
2
+ import { HttpClient } from "./http-client";
3
+ import { RequestParams } from "./http-client";
4
+ export declare class Report<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
5
+ /**
6
+ * No description
7
+ *
8
+ * @tags Report
9
+ * @name GetInventorySummary
10
+ * @request GET:/api/reports/summary
11
+ */
12
+ getInventorySummary: (query?: GetInventorySummaryParams, params?: RequestParams) => Promise<import("./http-client").HttpResponse<InventorySummary, any>>;
13
+ }
14
+ //# sourceMappingURL=Report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../src/api/generated/Report.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,qBAAa,MAAM,CACjB,gBAAgB,GAAG,OAAO,CAC1B,SAAQ,UAAU,CAAC,gBAAgB,CAAC;IACpC;;;;;;OAMG;IACH,mBAAmB,GACjB,QAAO,yBAA8B,EACrC,SAAQ,aAAkB,0EAQvB;CACN"}
@@ -0,0 +1,32 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+ import { HttpClient } from "./http-client";
13
+ export class Report extends HttpClient {
14
+ constructor() {
15
+ super(...arguments);
16
+ /**
17
+ * No description
18
+ *
19
+ * @tags Report
20
+ * @name GetInventorySummary
21
+ * @request GET:/api/reports/summary
22
+ */
23
+ this.getInventorySummary = (query = {}, params = {}) => this.request({
24
+ path: `/api/reports/summary`,
25
+ method: "GET",
26
+ query: query,
27
+ format: "json",
28
+ ...params,
29
+ });
30
+ }
31
+ }
32
+ //# sourceMappingURL=Report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Report.js","sourceRoot":"","sources":["../../../src/api/generated/Report.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,OAAO,MAEX,SAAQ,UAA4B;IAFtC;;QAGE;;;;;;WAMG;QACH,wBAAmB,GAAG,CACpB,QAAmC,EAAE,EACrC,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO,CAAwB;YAClC,IAAI,EAAE,sBAAsB;YAC5B,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;IACP,CAAC;CAAA"}
@@ -0,0 +1,23 @@
1
+ import { InventorySummary } from "./data-contracts";
2
+ export declare namespace Report {
3
+ /**
4
+ * No description
5
+ * @tags Report
6
+ * @name GetInventorySummary
7
+ * @request GET:/api/reports/summary
8
+ */
9
+ namespace GetInventorySummary {
10
+ type RequestParams = {};
11
+ type RequestQuery = {
12
+ /** @format date-time */
13
+ from?: string;
14
+ /** @format date-time */
15
+ to?: string;
16
+ includeInactive?: boolean;
17
+ };
18
+ type RequestBody = never;
19
+ type RequestHeaders = {};
20
+ type ResponseBody = InventorySummary;
21
+ }
22
+ }
23
+ //# sourceMappingURL=ReportRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportRoute.d.ts","sourceRoot":"","sources":["../../../src/api/generated/ReportRoute.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,yBAAiB,MAAM,CAAC;IACtB;;;;;OAKG;IACH,UAAiB,mBAAmB,CAAC;QACnC,KAAY,aAAa,GAAG,EAAE,CAAC;QAC/B,KAAY,YAAY,GAAG;YACzB,wBAAwB;YACxB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,wBAAwB;YACxB,EAAE,CAAC,EAAE,MAAM,CAAC;YACZ,eAAe,CAAC,EAAE,OAAO,CAAC;SAC3B,CAAC;QACF,KAAY,WAAW,GAAG,KAAK,CAAC;QAChC,KAAY,cAAc,GAAG,EAAE,CAAC;QAChC,KAAY,YAAY,GAAG,gBAAgB,CAAC;KAC7C;CACF"}
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+ export {};
13
+ //# sourceMappingURL=ReportRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportRoute.js","sourceRoot":"","sources":["../../../src/api/generated/ReportRoute.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG"}
@@ -0,0 +1,46 @@
1
+ import { DeleteSupplierParams, GetSupplierByIdParams, GetSuppliersParams, SupplierModel, SupplierTableRowApiPaginationResponse, UpdateSupplierParams } from "./data-contracts";
2
+ import { HttpClient } from "./http-client";
3
+ import { RequestParams } from "./http-client";
4
+ export declare class Supplier<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
5
+ /**
6
+ * No description
7
+ *
8
+ * @tags Supplier
9
+ * @name GetSuppliers
10
+ * @request GET:/api/suppliers
11
+ */
12
+ getSuppliers: (query?: GetSuppliersParams, params?: RequestParams) => Promise<import("./http-client").HttpResponse<SupplierTableRowApiPaginationResponse, any>>;
13
+ /**
14
+ * No description
15
+ *
16
+ * @tags Supplier
17
+ * @name CreateSupplier
18
+ * @request POST:/api/suppliers
19
+ */
20
+ createSupplier: (data: SupplierModel, params?: RequestParams) => Promise<import("./http-client").HttpResponse<SupplierModel, any>>;
21
+ /**
22
+ * No description
23
+ *
24
+ * @tags Supplier
25
+ * @name GetSupplierById
26
+ * @request GET:/api/suppliers/{id}
27
+ */
28
+ getSupplierById: ({ id }: GetSupplierByIdParams, params?: RequestParams) => Promise<import("./http-client").HttpResponse<SupplierModel, any>>;
29
+ /**
30
+ * No description
31
+ *
32
+ * @tags Supplier
33
+ * @name UpdateSupplier
34
+ * @request PUT:/api/suppliers/{id}
35
+ */
36
+ updateSupplier: ({ id }: UpdateSupplierParams, data: SupplierModel, params?: RequestParams) => Promise<import("./http-client").HttpResponse<SupplierModel, any>>;
37
+ /**
38
+ * No description
39
+ *
40
+ * @tags Supplier
41
+ * @name DeleteSupplier
42
+ * @request DELETE:/api/suppliers/{id}
43
+ */
44
+ deleteSupplier: ({ id }: DeleteSupplierParams, params?: RequestParams) => Promise<import("./http-client").HttpResponse<void, any>>;
45
+ }
46
+ //# sourceMappingURL=Supplier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Supplier.d.ts","sourceRoot":"","sources":["../../../src/api/generated/Supplier.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,aAAa,EAAE,qCAAqC,EAAE,oBAAoB,EAAG,MAAM,kBAAkB,CAAC;AAChL,OAAO,EAAe,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,qBAAa,QAAQ,CACnB,gBAAgB,GAAG,OAAO,CAC1B,SAAQ,UAAU,CAAC,gBAAgB,CAAC;IACpC;;;;;;OAMG;IACH,YAAY,GAAI,QAAO,kBAAuB,EAAE,SAAQ,aAAkB,+FAOrE;IACL;;;;;;OAMG;IACH,cAAc,GAAI,MAAM,aAAa,EAAE,SAAQ,aAAkB,uEAQ5D;IACL;;;;;;OAMG;IACH,eAAe,GACb,QAAQ,qBAAqB,EAC7B,SAAQ,aAAkB,uEAOvB;IACL;;;;;;OAMG;IACH,cAAc,GACZ,QAAQ,oBAAoB,EAC5B,MAAM,aAAa,EACnB,SAAQ,aAAkB,uEASvB;IACL;;;;;;OAMG;IACH,cAAc,GAAI,QAAQ,oBAAoB,EAAE,SAAQ,aAAkB,8DAKrE;CACN"}
@@ -0,0 +1,87 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+ import { ContentType, HttpClient } from "./http-client";
13
+ export class Supplier extends HttpClient {
14
+ constructor() {
15
+ super(...arguments);
16
+ /**
17
+ * No description
18
+ *
19
+ * @tags Supplier
20
+ * @name GetSuppliers
21
+ * @request GET:/api/suppliers
22
+ */
23
+ this.getSuppliers = (query = {}, params = {}) => this.request({
24
+ path: `/api/suppliers`,
25
+ method: "GET",
26
+ query: query,
27
+ format: "json",
28
+ ...params,
29
+ });
30
+ /**
31
+ * No description
32
+ *
33
+ * @tags Supplier
34
+ * @name CreateSupplier
35
+ * @request POST:/api/suppliers
36
+ */
37
+ this.createSupplier = (data, params = {}) => this.request({
38
+ path: `/api/suppliers`,
39
+ method: "POST",
40
+ body: data,
41
+ type: ContentType.Json,
42
+ format: "json",
43
+ ...params,
44
+ });
45
+ /**
46
+ * No description
47
+ *
48
+ * @tags Supplier
49
+ * @name GetSupplierById
50
+ * @request GET:/api/suppliers/{id}
51
+ */
52
+ this.getSupplierById = ({ id }, params = {}) => this.request({
53
+ path: `/api/suppliers/${id}`,
54
+ method: "GET",
55
+ format: "json",
56
+ ...params,
57
+ });
58
+ /**
59
+ * No description
60
+ *
61
+ * @tags Supplier
62
+ * @name UpdateSupplier
63
+ * @request PUT:/api/suppliers/{id}
64
+ */
65
+ this.updateSupplier = ({ id }, data, params = {}) => this.request({
66
+ path: `/api/suppliers/${id}`,
67
+ method: "PUT",
68
+ body: data,
69
+ type: ContentType.Json,
70
+ format: "json",
71
+ ...params,
72
+ });
73
+ /**
74
+ * No description
75
+ *
76
+ * @tags Supplier
77
+ * @name DeleteSupplier
78
+ * @request DELETE:/api/suppliers/{id}
79
+ */
80
+ this.deleteSupplier = ({ id }, params = {}) => this.request({
81
+ path: `/api/suppliers/${id}`,
82
+ method: "DELETE",
83
+ ...params,
84
+ });
85
+ }
86
+ }
87
+ //# sourceMappingURL=Supplier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Supplier.js","sourceRoot":"","sources":["../../../src/api/generated/Supplier.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;AAGH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGxD,MAAM,OAAO,QAEX,SAAQ,UAA4B;IAFtC;;QAGE;;;;;;WAMG;QACH,iBAAY,GAAG,CAAC,QAA4B,EAAE,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC5E,IAAI,CAAC,OAAO,CAA6C;YACvD,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;WAMG;QACH,mBAAc,GAAG,CAAC,IAAmB,EAAE,SAAwB,EAAE,EAAE,EAAE,CACnE,IAAI,CAAC,OAAO,CAAqB;YAC/B,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;WAMG;QACH,oBAAe,GAAG,CAChB,EAAE,EAAE,EAAyB,EAC7B,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO,CAAqB;YAC/B,IAAI,EAAE,kBAAkB,EAAE,EAAE;YAC5B,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;WAMG;QACH,mBAAc,GAAG,CACf,EAAE,EAAE,EAAwB,EAC5B,IAAmB,EACnB,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO,CAAqB;YAC/B,IAAI,EAAE,kBAAkB,EAAE,EAAE;YAC5B,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;WAMG;QACH,mBAAc,GAAG,CAAC,EAAE,EAAE,EAAwB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC5E,IAAI,CAAC,OAAO,CAAY;YACtB,IAAI,EAAE,kBAAkB,EAAE,EAAE;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,MAAM;SACV,CAAC,CAAC;IACP,CAAC;CAAA"}
@@ -0,0 +1,101 @@
1
+ import { SortDirection, SupplierModel, SupplierTableRowApiPaginationResponse } from "./data-contracts";
2
+ export declare namespace Supplier {
3
+ /**
4
+ * No description
5
+ * @tags Supplier
6
+ * @name GetSuppliers
7
+ * @request GET:/api/suppliers
8
+ */
9
+ namespace GetSuppliers {
10
+ type RequestParams = {};
11
+ type RequestQuery = {
12
+ SupplierIds?: string[];
13
+ SearchText?: string;
14
+ /** @format date-time */
15
+ MinCreatedAt?: string;
16
+ /** @format date-time */
17
+ MaxCreatedAt?: string;
18
+ Active?: boolean;
19
+ /**
20
+ * @format int32
21
+ * @default 1
22
+ */
23
+ PageNumber?: number;
24
+ /**
25
+ * @format int32
26
+ * @default 100
27
+ */
28
+ PageSize?: number;
29
+ SortBy?: string;
30
+ SortDirection?: SortDirection;
31
+ CountryCode?: string;
32
+ /** @format int32 */
33
+ Rating?: number;
34
+ };
35
+ type RequestBody = never;
36
+ type RequestHeaders = {};
37
+ type ResponseBody = SupplierTableRowApiPaginationResponse;
38
+ }
39
+ /**
40
+ * No description
41
+ * @tags Supplier
42
+ * @name CreateSupplier
43
+ * @request POST:/api/suppliers
44
+ */
45
+ namespace CreateSupplier {
46
+ type RequestParams = {};
47
+ type RequestQuery = {};
48
+ type RequestBody = SupplierModel;
49
+ type RequestHeaders = {};
50
+ type ResponseBody = SupplierModel;
51
+ }
52
+ /**
53
+ * No description
54
+ * @tags Supplier
55
+ * @name GetSupplierById
56
+ * @request GET:/api/suppliers/{id}
57
+ */
58
+ namespace GetSupplierById {
59
+ type RequestParams = {
60
+ /** @format uuid */
61
+ id: string;
62
+ };
63
+ type RequestQuery = {};
64
+ type RequestBody = never;
65
+ type RequestHeaders = {};
66
+ type ResponseBody = SupplierModel;
67
+ }
68
+ /**
69
+ * No description
70
+ * @tags Supplier
71
+ * @name UpdateSupplier
72
+ * @request PUT:/api/suppliers/{id}
73
+ */
74
+ namespace UpdateSupplier {
75
+ type RequestParams = {
76
+ /** @format uuid */
77
+ id: string;
78
+ };
79
+ type RequestQuery = {};
80
+ type RequestBody = SupplierModel;
81
+ type RequestHeaders = {};
82
+ type ResponseBody = SupplierModel;
83
+ }
84
+ /**
85
+ * No description
86
+ * @tags Supplier
87
+ * @name DeleteSupplier
88
+ * @request DELETE:/api/suppliers/{id}
89
+ */
90
+ namespace DeleteSupplier {
91
+ type RequestParams = {
92
+ /** @format uuid */
93
+ id: string;
94
+ };
95
+ type RequestQuery = {};
96
+ type RequestBody = never;
97
+ type RequestHeaders = {};
98
+ type ResponseBody = void;
99
+ }
100
+ }
101
+ //# sourceMappingURL=SupplierRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupplierRoute.d.ts","sourceRoot":"","sources":["../../../src/api/generated/SupplierRoute.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,aAAa,EACb,aAAa,EACb,qCAAqC,EACtC,MAAM,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AG,aAAa,CAAC;KAC1C;IAED;;;;;OAKG;IACH,UAAiB,cAAc,CAAC;QAC9B,KAAY,aAAa,GAAG;YAC1B,mBAAmB;YACnB,EAAE,EAAE,MAAM,CAAC;SACZ,CAAC;QACF,KAAY,YAAY,GAAG,EAAE,CAAC;QAC9B,KAAY,WAAW,GAAG,aAAa,CAAC;QACxC,KAAY,cAAc,GAAG,EAAE,CAAC;QAChC,KAAY,YAAY,GAAG,aAAa,CAAC;KAC1C;IAED;;;;;OAKG;IACH,UAAiB,cAAc,CAAC;QAC9B,KAAY,aAAa,GAAG;YAC1B,mBAAmB;YACnB,EAAE,EAAE,MAAM,CAAC;SACZ,CAAC;QACF,KAAY,YAAY,GAAG,EAAE,CAAC;QAC9B,KAAY,WAAW,GAAG,KAAK,CAAC;QAChC,KAAY,cAAc,GAAG,EAAE,CAAC;QAChC,KAAY,YAAY,GAAG,IAAI,CAAC;KACjC;CACF"}
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+ export {};
13
+ //# sourceMappingURL=SupplierRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupplierRoute.js","sourceRoot":"","sources":["../../../src/api/generated/SupplierRoute.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG"}