@hmxlabs/dax-client 2.0.0 → 2.1.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.
@@ -0,0 +1,95 @@
1
+ import { CurrencyCreateRequest, CurrencyResponse, CurrencyUpdateRequest, ProductCreateRequest, TenantCreateRequest } from "./data-contracts";
2
+ import { HttpClient, RequestParams } from "./http-client";
3
+ export declare class ClosedApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
+ /**
5
+ * No description
6
+ *
7
+ * @tags Currency
8
+ * @name CurrencyUpdate
9
+ * @request PUT:/closed-api/v1/currency/{code}
10
+ * @secure
11
+ * @response `200` `CurrencyResponse`
12
+ */
13
+ currencyUpdate: (code: string, data: CurrencyUpdateRequest, params?: RequestParams) => Promise<CurrencyResponse>;
14
+ /**
15
+ * No description
16
+ *
17
+ * @tags Currency
18
+ * @name CurrencyDelete
19
+ * @request DELETE:/closed-api/v1/currency/{code}
20
+ * @secure
21
+ * @response `200` `File`
22
+ */
23
+ currencyDelete: (code: string, params?: RequestParams) => Promise<File>;
24
+ /**
25
+ * No description
26
+ *
27
+ * @tags Currency
28
+ * @name CurrencyAdd
29
+ * @request POST:/closed-api/v1/currency
30
+ * @secure
31
+ * @response `200` `object`
32
+ */
33
+ currencyAdd: <T>(data: CurrencyCreateRequest, params?: RequestParams) => Promise<T>;
34
+ /**
35
+ * No description
36
+ *
37
+ * @tags Product
38
+ * @name ProductUpdate
39
+ * @request PUT:/closed-api/v1/product/{id}
40
+ * @secure
41
+ * @response `204` `void`
42
+ * @response `400` `ProblemDetails`
43
+ * @response `404` `ProblemDetails`
44
+ * @response `default` `ProblemDetails`
45
+ */
46
+ productUpdate: (id: string, data: ProductCreateRequest, params?: RequestParams) => Promise<void>;
47
+ /**
48
+ * No description
49
+ *
50
+ * @tags Product
51
+ * @name ProductDelete
52
+ * @request DELETE:/closed-api/v1/product/{id}
53
+ * @secure
54
+ * @response `200` `void`
55
+ * @response `400` `ProblemDetails`
56
+ * @response `404` `ProblemDetails`
57
+ * @response `default` `ProblemDetails`
58
+ */
59
+ productDelete: (id: string, query: {
60
+ /** @format guid */
61
+ productId: string;
62
+ }, params?: RequestParams) => Promise<void>;
63
+ /**
64
+ * No description
65
+ *
66
+ * @tags Product
67
+ * @name ProductCreate
68
+ * @request POST:/closed-api/v1/product
69
+ * @secure
70
+ * @response `200` `object`
71
+ */
72
+ productCreate: <T>(data: ProductCreateRequest, params?: RequestParams) => Promise<T>;
73
+ /**
74
+ * No description
75
+ *
76
+ * @tags Tenant
77
+ * @name TenantFindAll
78
+ * @request GET:/closed-api/v1/tenant
79
+ * @secure
80
+ * @response `200` `object`
81
+ */
82
+ tenantFindAll: <T>(query: {
83
+ includeInactive: boolean;
84
+ }, params?: RequestParams) => Promise<T>;
85
+ /**
86
+ * No description
87
+ *
88
+ * @tags Tenant
89
+ * @name TenantCreate
90
+ * @request POST:/closed-api/v1/tenant
91
+ * @secure
92
+ * @response `200` `object`
93
+ */
94
+ tenantCreate: <T>(data: TenantCreateRequest, params?: RequestParams) => Promise<T>;
95
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmxlabs/dax-client",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.esm.js",