@squonk/account-server-client 4.9.0-beta.4 → 4.9.0-beta.6

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 (40) hide show
  1. package/dist/api/api-schemas/getAssetParams.d.cts +5 -0
  2. package/dist/api/api-schemas/getAssetParams.d.cts.map +1 -1
  3. package/dist/api/api-schemas/getAssetParams.d.ts +5 -0
  4. package/dist/api/api-schemas/getAssetParams.d.ts.map +1 -1
  5. package/dist/api/api-schemas/qAssetScopeParameter.cjs +13 -0
  6. package/dist/api/api-schemas/qAssetScopeParameter.cjs.map +1 -0
  7. package/dist/api/api-schemas/qAssetScopeParameter.d.cts +23 -0
  8. package/dist/api/api-schemas/qAssetScopeParameter.d.cts.map +1 -0
  9. package/dist/api/api-schemas/qAssetScopeParameter.d.ts +23 -0
  10. package/dist/api/api-schemas/qAssetScopeParameter.d.ts.map +1 -0
  11. package/dist/api/api-schemas/qAssetScopeParameter.js +13 -0
  12. package/dist/api/api-schemas/qAssetScopeParameter.js.map +1 -0
  13. package/dist/api/asset/asset.cjs +2 -0
  14. package/dist/api/asset/asset.cjs.map +1 -1
  15. package/dist/api/asset/asset.d.cts +2 -0
  16. package/dist/api/asset/asset.d.cts.map +1 -1
  17. package/dist/api/asset/asset.d.ts +2 -0
  18. package/dist/api/asset/asset.d.ts.map +1 -1
  19. package/dist/api/asset/asset.fetch.cjs +2 -0
  20. package/dist/api/asset/asset.fetch.cjs.map +1 -1
  21. package/dist/api/asset/asset.fetch.d.cts +2 -0
  22. package/dist/api/asset/asset.fetch.d.cts.map +1 -1
  23. package/dist/api/asset/asset.fetch.d.ts +2 -0
  24. package/dist/api/asset/asset.fetch.d.ts.map +1 -1
  25. package/dist/api/asset/asset.fetch.js +2 -0
  26. package/dist/api/asset/asset.fetch.js.map +1 -1
  27. package/dist/api/asset/asset.js +2 -0
  28. package/dist/api/asset/asset.js.map +1 -1
  29. package/dist/index.cjs +2 -0
  30. package/dist/index.d.cts +2 -1
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.js +2 -1
  33. package/package.json +1 -1
  34. package/src/api/api-schemas/getAssetParams.fetch.ts +5 -0
  35. package/src/api/api-schemas/getAssetParams.ts +5 -0
  36. package/src/api/api-schemas/index.ts +1 -0
  37. package/src/api/api-schemas/qAssetScopeParameter.fetch.ts +21 -0
  38. package/src/api/api-schemas/qAssetScopeParameter.ts +21 -0
  39. package/src/api/asset/asset.fetch.ts +2 -0
  40. package/src/api/asset/asset.ts +2 -0
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ import { ProductChargesGetResponseProductType } from "./api/api-schemas/productC
19
19
  import { ProductDetailFlavour } from "./api/api-schemas/productDetailFlavour.js";
20
20
  import { ProductDetailType } from "./api/api-schemas/productDetailType.js";
21
21
  import { ProductTypeServiceKind } from "./api/api-schemas/productTypeServiceKind.js";
22
+ import { QAssetScopeParameter } from "./api/api-schemas/qAssetScopeParameter.js";
22
23
  import { QFormatParameter } from "./api/api-schemas/qFormatParameter.js";
23
24
  import { QNotificationStateParameter } from "./api/api-schemas/qNotificationStateParameter.js";
24
25
  import { UnitAllDetailDefaultProductPrivacy } from "./api/api-schemas/unitAllDetailDefaultProductPrivacy.js";
@@ -27,4 +28,4 @@ import { UnitPatchBodyBodyDefaultProductPrivacy } from "./api/api-schemas/unitPa
27
28
  import { UnitProductPostBodyBodyFlavour } from "./api/api-schemas/unitProductPostBodyBodyFlavour.js";
28
29
  import { UnitProductPostBodyBodyType } from "./api/api-schemas/unitProductPostBodyBodyType.js";
29
30
  import { AXIOS_INSTANCE, customInstance, setAuthToken, setBaseUrl } from "./custom-axios.js";
30
- export { AXIOS_INSTANCE, AssetDetailScope, AssetPostBodyBodyScope, CapabilityDetailMerchantKind, ChargeSummaryType, EventStreamPostBodyBodyFormat, EventStreamVersionGetResponseProtocol, IncidentDetailScope, MerchantDetailKind, MerchantSummaryKind, NotificationDetailState, OrganisationAllDetailDefaultProductPrivacy, OrganisationDetailDefaultProductPrivacy, OrganisationGetDefaultResponseDefaultProductPrivacy, OrganisationPatchBodyBodyDefaultProductPrivacy, OrganisationPostBodyBodyDefaultProductPrivacy, OrganisationUnitPostBodyBodyDefaultProductPrivacy, ProcessingChargesMerchantKind, ProductChargesGetResponseProductType, ProductDetailFlavour, ProductDetailType, ProductTypeServiceKind, QFormatParameter, QNotificationStateParameter, UnitAllDetailDefaultProductPrivacy, UnitDetailDefaultProductPrivacy, UnitPatchBodyBodyDefaultProductPrivacy, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType, customInstance, setAuthToken, setBaseUrl };
31
+ export { AXIOS_INSTANCE, AssetDetailScope, AssetPostBodyBodyScope, CapabilityDetailMerchantKind, ChargeSummaryType, EventStreamPostBodyBodyFormat, EventStreamVersionGetResponseProtocol, IncidentDetailScope, MerchantDetailKind, MerchantSummaryKind, NotificationDetailState, OrganisationAllDetailDefaultProductPrivacy, OrganisationDetailDefaultProductPrivacy, OrganisationGetDefaultResponseDefaultProductPrivacy, OrganisationPatchBodyBodyDefaultProductPrivacy, OrganisationPostBodyBodyDefaultProductPrivacy, OrganisationUnitPostBodyBodyDefaultProductPrivacy, ProcessingChargesMerchantKind, ProductChargesGetResponseProductType, ProductDetailFlavour, ProductDetailType, ProductTypeServiceKind, QAssetScopeParameter, QFormatParameter, QNotificationStateParameter, UnitAllDetailDefaultProductPrivacy, UnitDetailDefaultProductPrivacy, UnitPatchBodyBodyDefaultProductPrivacy, UnitProductPostBodyBodyFlavour, UnitProductPostBodyBodyType, customInstance, setAuthToken, setBaseUrl };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.9.0-beta.4",
2
+ "version": "4.9.0-beta.6",
3
3
  "author": "Informatics Matters",
4
4
  "name": "@squonk/account-server-client",
5
5
  "private": false,
@@ -8,12 +8,17 @@
8
8
  *
9
9
  * OpenAPI spec version: 4.9
10
10
  */
11
+ import type { QAssetScopeParameter } from "./qAssetScopeParameter.fetch";
11
12
  import type { QOrgIdParameter } from "./qOrgIdParameter.fetch";
12
13
  import type { QProductIdParameter } from "./qProductIdParameter.fetch";
13
14
  import type { QUnitIdParameter } from "./qUnitIdParameter.fetch";
14
15
  import type { QUserIdParameter } from "./qUserIdParameter.fetch";
15
16
 
16
17
  export type GetAssetParams = {
18
+ /**
19
+ * An Asset scope. Only an administrator can use `INTERNAL`
20
+ */
21
+ scope?: QAssetScopeParameter;
17
22
  /**
18
23
  * A User Identity
19
24
  * @minLength 3
@@ -8,12 +8,17 @@
8
8
  *
9
9
  * OpenAPI spec version: 4.9
10
10
  */
11
+ import type { QAssetScopeParameter } from "./qAssetScopeParameter";
11
12
  import type { QOrgIdParameter } from "./qOrgIdParameter";
12
13
  import type { QProductIdParameter } from "./qProductIdParameter";
13
14
  import type { QUnitIdParameter } from "./qUnitIdParameter";
14
15
  import type { QUserIdParameter } from "./qUserIdParameter";
15
16
 
16
17
  export type GetAssetParams = {
18
+ /**
19
+ * An Asset scope. Only an administrator can use `INTERNAL`
20
+ */
21
+ scope?: QAssetScopeParameter;
17
22
  /**
18
23
  * A User Identity
19
24
  * @minLength 3
@@ -106,6 +106,7 @@ export * from "./productsGetTypesResponse";
106
106
  export * from "./productType";
107
107
  export * from "./productTypeServiceKind";
108
108
  export * from "./productUnitGetResponse";
109
+ export * from "./qAssetScopeParameter";
109
110
  export * from "./qCreatedFromParameter";
110
111
  export * from "./qCreatedUntilParameter";
111
112
  export * from "./qFormatParameter";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by orval v8.22.0 🍺
3
+ * Do not edit manually.
4
+ * Account Server API
5
+ * The Informatics Matters Account Server API.
6
+ *
7
+ * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
8
+ *
9
+ * OpenAPI spec version: 4.9
10
+ */
11
+
12
+ export type QAssetScopeParameter = (typeof QAssetScopeParameter)[keyof typeof QAssetScopeParameter];
13
+
14
+ export const QAssetScopeParameter = {
15
+ USER: "USER",
16
+ PRODUCT: "PRODUCT",
17
+ UNIT: "UNIT",
18
+ ORGANISATION: "ORGANISATION",
19
+ GLOBAL: "GLOBAL",
20
+ INTERNAL: "INTERNAL",
21
+ } as const;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by orval v8.22.0 🍺
3
+ * Do not edit manually.
4
+ * Account Server API
5
+ * The Informatics Matters Account Server API.
6
+ *
7
+ * A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
8
+ *
9
+ * OpenAPI spec version: 4.9
10
+ */
11
+
12
+ export type QAssetScopeParameter = (typeof QAssetScopeParameter)[keyof typeof QAssetScopeParameter];
13
+
14
+ export const QAssetScopeParameter = {
15
+ USER: "USER",
16
+ PRODUCT: "PRODUCT",
17
+ UNIT: "UNIT",
18
+ ORGANISATION: "ORGANISATION",
19
+ GLOBAL: "GLOBAL",
20
+ INTERNAL: "INTERNAL",
21
+ } as const;
@@ -92,6 +92,8 @@ export const getGetAssetUrl = (params?: GetAssetParams) => {
92
92
 
93
93
  /**
94
94
  * Gets Assets you have access to.
95
+ *
96
+ * You can filter the Assets using one of `user_id`, `product_id`, `unit_id` or `org_id`. You can also filter them by their `scope`. Only an administrator can get `INTERNAL` Assets, and as they do not have a scope ID you cannot combine the `INTERNAL` scope with any of the other filters.
95
97
  * @summary Gets Assets
96
98
  */
97
99
  export const getAsset = async (
@@ -61,6 +61,8 @@ const withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKe
61
61
 
62
62
  /**
63
63
  * Gets Assets you have access to.
64
+ *
65
+ * You can filter the Assets using one of `user_id`, `product_id`, `unit_id` or `org_id`. You can also filter them by their `scope`. Only an administrator can get `INTERNAL` Assets, and as they do not have a scope ID you cannot combine the `INTERNAL` scope with any of the other filters.
64
66
  * @summary Gets Assets
65
67
  */
66
68
  export const getAsset = (