@squonk/account-server-client 0.1.2-rc.1 → 0.1.3-rc.1
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/{custom-instance-c304db93.d.ts → custom-instance-ac65127d.d.ts} +31 -31
- package/index.cjs +1 -1
- package/index.cjs.map +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +2 -2
- package/organisation/organisation.d.ts +1 -1
- package/package.json +1 -1
- package/product/product.d.ts +1 -1
- package/unit/unit.d.ts +1 -1
- package/user/user.d.ts +1 -1
|
@@ -56,41 +56,17 @@ interface ProductUnitGetResponse {
|
|
|
56
56
|
*/
|
|
57
57
|
products: ProductUnitGetResponseProductsItem[];
|
|
58
58
|
}
|
|
59
|
-
declare type ProductDmStorageType = "DATA_MANAGER_STORAGE_SUBSCRIPTION";
|
|
60
|
-
declare const ProductDmStorageType: {
|
|
61
|
-
DATA_MANAGER_STORAGE_SUBSCRIPTION: "DATA_MANAGER_STORAGE_SUBSCRIPTION";
|
|
62
|
-
};
|
|
63
59
|
interface ProductDmStorage {
|
|
64
|
-
|
|
65
|
-
*/
|
|
66
|
-
id: string;
|
|
67
|
-
type: ProductDmStorageType;
|
|
60
|
+
product: ProductDetail;
|
|
68
61
|
organisation: OrganisationDetail;
|
|
69
62
|
unit: UnitDetail;
|
|
70
|
-
name?: string;
|
|
71
63
|
storage: ProductDmStorageDetail;
|
|
72
64
|
coins: ProductCoinsDetail;
|
|
73
65
|
}
|
|
74
|
-
declare type ProductDmProjectTierType = "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION";
|
|
75
|
-
declare const ProductDmProjectTierType: {
|
|
76
|
-
DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION: "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION";
|
|
77
|
-
};
|
|
78
|
-
declare type ProductDmProjectTierFlavour = "EVALUATION" | "BRONZE" | "SILVER" | "GOLD";
|
|
79
|
-
declare const ProductDmProjectTierFlavour: {
|
|
80
|
-
EVALUATION: ProductDmProjectTierFlavour;
|
|
81
|
-
BRONZE: ProductDmProjectTierFlavour;
|
|
82
|
-
SILVER: ProductDmProjectTierFlavour;
|
|
83
|
-
GOLD: ProductDmProjectTierFlavour;
|
|
84
|
-
};
|
|
85
66
|
interface ProductDmProjectTier {
|
|
86
|
-
|
|
87
|
-
*/
|
|
88
|
-
id: string;
|
|
89
|
-
type: ProductDmProjectTierType;
|
|
90
|
-
flavour: ProductDmProjectTierFlavour;
|
|
67
|
+
product: ProductDetail;
|
|
91
68
|
organisation: OrganisationDetail;
|
|
92
69
|
unit: UnitDetail;
|
|
93
|
-
name?: string;
|
|
94
70
|
storage: ProductDmStorageDetail;
|
|
95
71
|
coins: ProductCoinsDetail;
|
|
96
72
|
instance: ProductInstanceDetail;
|
|
@@ -98,15 +74,19 @@ interface ProductDmProjectTier {
|
|
|
98
74
|
}
|
|
99
75
|
declare type ProductDmStorageDetailSize = {
|
|
100
76
|
/** The humanised size of the peak storage used for the current day. The value is reset at the start of each day */
|
|
101
|
-
|
|
77
|
+
peak: string;
|
|
102
78
|
/** The humanised size of the current storage used for the current day and used to calculate the 'burn rate' */
|
|
103
79
|
current: string;
|
|
80
|
+
/** The humanised storage unit. The cost of storage is based on the daily peak of the number of units (or part thereof) used */
|
|
81
|
+
unit_size: string;
|
|
82
|
+
/** The peak number of storage units used today */
|
|
83
|
+
units_used: number;
|
|
104
84
|
};
|
|
105
85
|
declare type ProductDmStorageDetailCoins = {
|
|
106
86
|
/** The number of coins currently committed for the current day. This is added to the acumulated coins at the start of each day */
|
|
107
87
|
used: number;
|
|
108
|
-
/** The coin cost of
|
|
109
|
-
|
|
88
|
+
/** The coin cost of a 'unit' of strage or part thereof. The unit size is defined in the storage section of the response */
|
|
89
|
+
unit_cost: number;
|
|
110
90
|
};
|
|
111
91
|
interface ProductDmStorageDetail {
|
|
112
92
|
size: ProductDmStorageDetailSize;
|
|
@@ -118,7 +98,7 @@ interface ProductClaimDetail {
|
|
|
118
98
|
id: string;
|
|
119
99
|
/** A name for the service
|
|
120
100
|
*/
|
|
121
|
-
name
|
|
101
|
+
name?: string;
|
|
122
102
|
}
|
|
123
103
|
interface ProductCoinsDetail {
|
|
124
104
|
/** The billing allowance. When you exceed this during the current billign period the *cost multipler* will increase */
|
|
@@ -140,6 +120,26 @@ interface ProductCoinsDetail {
|
|
|
140
120
|
/** The number of days remaining, in the current billing period */
|
|
141
121
|
remaining_days: number;
|
|
142
122
|
}
|
|
123
|
+
declare type ProductDetailType = "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION" | "DATA_MANAGER_STORAGE_SUBSCRIPTION";
|
|
124
|
+
declare const ProductDetailType: {
|
|
125
|
+
DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION: ProductDetailType;
|
|
126
|
+
DATA_MANAGER_STORAGE_SUBSCRIPTION: ProductDetailType;
|
|
127
|
+
};
|
|
128
|
+
declare type ProductDetailFlavour = "EVALUATION" | "BRONZE" | "SILVER" | "GOLD";
|
|
129
|
+
declare const ProductDetailFlavour: {
|
|
130
|
+
EVALUATION: ProductDetailFlavour;
|
|
131
|
+
BRONZE: ProductDetailFlavour;
|
|
132
|
+
SILVER: ProductDetailFlavour;
|
|
133
|
+
GOLD: ProductDetailFlavour;
|
|
134
|
+
};
|
|
135
|
+
interface ProductDetail {
|
|
136
|
+
/** The Product ID
|
|
137
|
+
*/
|
|
138
|
+
id: string;
|
|
139
|
+
type: ProductDetailType;
|
|
140
|
+
flavour?: ProductDetailFlavour;
|
|
141
|
+
name?: string;
|
|
142
|
+
}
|
|
143
143
|
declare type ProductInstanceDetailCoins = {
|
|
144
144
|
used: number;
|
|
145
145
|
};
|
|
@@ -187,4 +187,4 @@ declare const setAuthToken: (token: string) => void;
|
|
|
187
187
|
declare const setBaseUrl: (baseUrl: string) => void;
|
|
188
188
|
declare const customInstance: <TReturn>(config: AxiosRequestConfig, options?: AxiosRequestConfig<any> | undefined) => Promise<TReturn>;
|
|
189
189
|
|
|
190
|
-
export { AXIOS_INSTANCE as A, Error as E, OrganisationPostResponse as O, ProductGetResponseProductsItem as P, QDummyParameter as Q, UsersGetResponse as U, OrganisationUnitPostResponse as a, OrganisationUnitsGetResponse as b, OrganisationsGetResponse as c, ProductGetResponse as d, ProductUnitGetResponseProductsItem as e, ProductUnitGetResponse as f,
|
|
190
|
+
export { AXIOS_INSTANCE as A, Error as E, OrganisationPostResponse as O, ProductGetResponseProductsItem as P, QDummyParameter as Q, UsersGetResponse as U, OrganisationUnitPostResponse as a, OrganisationUnitsGetResponse as b, OrganisationsGetResponse as c, ProductGetResponse as d, ProductUnitGetResponseProductsItem as e, ProductUnitGetResponse as f, ProductDmStorage as g, ProductDmProjectTier as h, ProductDmStorageDetailSize as i, ProductDmStorageDetailCoins as j, ProductDmStorageDetail as k, ProductClaimDetail as l, ProductCoinsDetail as m, ProductDetailType as n, ProductDetailFlavour as o, ProductDetail as p, ProductInstanceDetailCoins as q, ProductInstanceDetail as r, OrganisationDetail as s, UnitDetail as t, UserDetail as u, OrganisationPostBodyBody as v, OrganisationUnitPostBodyBody as w, setAuthToken as x, setBaseUrl as y, customInstance as z };
|
package/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOULWOQLWcjs = require('./chunk-OULWOQLW.cjs');var n={
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOULWOQLWcjs = require('./chunk-OULWOQLW.cjs');var n={DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION:"DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION",DATA_MANAGER_STORAGE_SUBSCRIPTION:"DATA_MANAGER_STORAGE_SUBSCRIPTION"},a= exports.ProductDetailFlavour ={EVALUATION:"EVALUATION",BRONZE:"BRONZE",SILVER:"SILVER",GOLD:"GOLD"};exports.AXIOS_INSTANCE = _chunkOULWOQLWcjs.b; exports.ProductDetailFlavour = a; exports.ProductDetailType = n; exports.customInstance = _chunkOULWOQLWcjs.e; exports.setAuthToken = _chunkOULWOQLWcjs.c; exports.setBaseUrl = _chunkOULWOQLWcjs.d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/index.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/account-server-api.schemas.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Generated by orval v6.3.0 \uD83C\uDF7A\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to **Products**, **Organisations**, **Units** and **Users**.\n\n * OpenAPI spec version: 0.1\n */\nexport interface Error {\n /** Brief error text that can be presented to the user\n */\n error: string;\n}\n\nexport interface OrganisationPostResponse {\n /** The organisation's unique ID\n */\n id: string;\n}\n\nexport interface UsersGetResponse {\n organisation?: OrganisationDetail;\n unit?: UnitDetail;\n /** The list of Organisation Users\n */\n users: UserDetail[];\n}\n\nexport interface OrganisationUnitPostResponse {\n /** The unit's unique ID\n */\n id: string;\n}\n\nexport interface OrganisationUnitsGetResponse {\n organisation: OrganisationDetail;\n /** A list of Units\n */\n units: UnitDetail[];\n}\n\nexport interface OrganisationsGetResponse {\n /** A list of Organisaions\n */\n organisations: OrganisationDetail[];\n}\n\nexport type ProductGetResponseProductsItem =\n | ProductDmStorage\n | ProductDmProjectTier;\n\nexport interface ProductGetResponse {\n /** All the Products you have access to\n */\n products: ProductGetResponseProductsItem[];\n}\n\nexport type ProductUnitGetResponseProductsItem =\n | ProductDmStorage\n | ProductDmProjectTier;\n\nexport interface ProductUnitGetResponse {\n /** The Unit's Products you have access to\n */\n products: ProductUnitGetResponseProductsItem[];\n}\n\nexport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/**\n * Generated by orval v6.3.0 \uD83C\uDF7A\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to **Products**, **Organisations**, **Units** and **Users**.\n\n * OpenAPI spec version: 0.1\n */\nexport interface Error {\n /** Brief error text that can be presented to the user\n */\n error: string;\n}\n\nexport interface OrganisationPostResponse {\n /** The organisation's unique ID\n */\n id: string;\n}\n\nexport interface UsersGetResponse {\n organisation?: OrganisationDetail;\n unit?: UnitDetail;\n /** The list of Organisation Users\n */\n users: UserDetail[];\n}\n\nexport interface OrganisationUnitPostResponse {\n /** The unit's unique ID\n */\n id: string;\n}\n\nexport interface OrganisationUnitsGetResponse {\n organisation: OrganisationDetail;\n /** A list of Units\n */\n units: UnitDetail[];\n}\n\nexport interface OrganisationsGetResponse {\n /** A list of Organisaions\n */\n organisations: OrganisationDetail[];\n}\n\nexport type ProductGetResponseProductsItem =\n | ProductDmStorage\n | ProductDmProjectTier;\n\nexport interface ProductGetResponse {\n /** All the Products you have access to\n */\n products: ProductGetResponseProductsItem[];\n}\n\nexport type ProductUnitGetResponseProductsItem =\n | ProductDmStorage\n | ProductDmProjectTier;\n\nexport interface ProductUnitGetResponse {\n /** The Unit's Products you have access to\n */\n products: ProductUnitGetResponseProductsItem[];\n}\n\nexport interface ProductDmStorage {\n product: ProductDetail;\n organisation: OrganisationDetail;\n unit: UnitDetail;\n storage: ProductDmStorageDetail;\n coins: ProductCoinsDetail;\n}\n\nexport interface ProductDmProjectTier {\n product: ProductDetail;\n organisation: OrganisationDetail;\n unit: UnitDetail;\n storage: ProductDmStorageDetail;\n coins: ProductCoinsDetail;\n instance: ProductInstanceDetail;\n claim?: ProductClaimDetail;\n}\n\nexport type ProductDmStorageDetailSize = {\n /** The humanised size of the peak storage used for the current day. The value is reset at the start of each day */\n peak: string;\n /** The humanised size of the current storage used for the current day and used to calculate the 'burn rate' */\n current: string;\n /** The humanised storage unit. The cost of storage is based on the daily peak of the number of units (or part thereof) used */\n unit_size: string;\n /** The peak number of storage units used today */\n units_used: number;\n};\n\nexport type ProductDmStorageDetailCoins = {\n /** The number of coins currently committed for the current day. This is added to the acumulated coins at the start of each day */\n used: number;\n /** The coin cost of a 'unit' of strage or part thereof. The unit size is defined in the storage section of the response */\n unit_cost: number;\n};\n\nexport interface ProductDmStorageDetail {\n size: ProductDmStorageDetailSize;\n coins: ProductDmStorageDetailCoins;\n}\n\nexport interface ProductClaimDetail {\n /** The service ID using this Subscription.\n */\n id: string;\n /** A name for the service\n */\n name?: string;\n}\n\nexport interface ProductCoinsDetail {\n /** The billing allowance. When you exceed this during the current billign period the *cost multipler* will increase */\n allowance: number;\n /** The limit on your billing period spend. You can exceed the allowance but you cannot exceed the spend limit. Once reached the dependent may be restricted */\n limit?: number;\n /** The total number of coins consumed (in this billing period), exclding the coins that have been consumed for the current day */\n used: number;\n /** The current burn rate, the approximate amount of coins you are currently consuming each day */\n current_burn_rate: number;\n /** The predicted billing period amount, if costs continue at the current burn rate until the end of the billing period */\n billing_prediction: number;\n /** The day of the month when the bill is due, and the end of the current billign period */\n billing_day: number;\n /** A multipler applied to your coin usage. If you are below your allowance for the billign period it wil be 1.0. When you exceed your allowance the mutiplier is likely to increase */\n cost_multiplier: number;\n /** A multipler that will be applied to your coin usage if you exceed your allowance */\n next_cost_multiplier: number;\n /** The number of days remaining, in the current billing period */\n remaining_days: number;\n}\n\nexport type ProductDetailType =\n | \"DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION\"\n | \"DATA_MANAGER_STORAGE_SUBSCRIPTION\";\n\nexport const ProductDetailType = {\n DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION:\n \"DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION\" as ProductDetailType,\n DATA_MANAGER_STORAGE_SUBSCRIPTION:\n \"DATA_MANAGER_STORAGE_SUBSCRIPTION\" as ProductDetailType,\n};\n\nexport type ProductDetailFlavour = \"EVALUATION\" | \"BRONZE\" | \"SILVER\" | \"GOLD\";\n\nexport const ProductDetailFlavour = {\n EVALUATION: \"EVALUATION\" as ProductDetailFlavour,\n BRONZE: \"BRONZE\" as ProductDetailFlavour,\n SILVER: \"SILVER\" as ProductDetailFlavour,\n GOLD: \"GOLD\" as ProductDetailFlavour,\n};\n\nexport interface ProductDetail {\n /** The Product ID\n */\n id: string;\n type: ProductDetailType;\n flavour?: ProductDetailFlavour;\n name?: string;\n}\n\nexport type ProductInstanceDetailCoins = {\n used: number;\n};\n\nexport interface ProductInstanceDetail {\n coins: ProductInstanceDetailCoins;\n}\n\nexport interface OrganisationDetail {\n id: string;\n name: string;\n}\n\nexport interface UnitDetail {\n id: string;\n name: string;\n}\n\nexport interface UserDetail {\n id: string;\n}\n\nexport type OrganisationPostBodyBody = {\n /** The name of the organisaion\n */\n name: string;\n};\n\nexport type OrganisationUnitPostBodyBody = {\n /** The name of the unit\n */\n name: string;\n};\n\n/**\n * A dummy\n\n */\nexport type QDummyParameter = boolean;\n"],
|
|
5
|
+
"mappings": "8DAgJO,GAAM,GAAoB,CAC/B,uCACE,yCACF,kCACE,qCAKS,EAAuB,CAClC,WAAY,aACZ,OAAQ,SACR,OAAQ,SACR,KAAM",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AXIOS_INSTANCE, E as Error, s as OrganisationDetail, v as OrganisationPostBodyBody, O as OrganisationPostResponse, w as OrganisationUnitPostBodyBody, a as OrganisationUnitPostResponse, b as OrganisationUnitsGetResponse, c as OrganisationsGetResponse,
|
|
1
|
+
export { A as AXIOS_INSTANCE, E as Error, s as OrganisationDetail, v as OrganisationPostBodyBody, O as OrganisationPostResponse, w as OrganisationUnitPostBodyBody, a as OrganisationUnitPostResponse, b as OrganisationUnitsGetResponse, c as OrganisationsGetResponse, l as ProductClaimDetail, m as ProductCoinsDetail, p as ProductDetail, o as ProductDetailFlavour, n as ProductDetailType, h as ProductDmProjectTier, g as ProductDmStorage, k as ProductDmStorageDetail, j as ProductDmStorageDetailCoins, i as ProductDmStorageDetailSize, d as ProductGetResponse, P as ProductGetResponseProductsItem, r as ProductInstanceDetail, q as ProductInstanceDetailCoins, f as ProductUnitGetResponse, e as ProductUnitGetResponseProductsItem, Q as QDummyParameter, t as UnitDetail, u as UserDetail, U as UsersGetResponse, z as customInstance, x as setAuthToken, y as setBaseUrl } from './custom-instance-ac65127d';
|
|
2
2
|
import 'axios';
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as t,c as e,d as r,e as
|
|
1
|
+
import{b as t,c as e,d as r,e as i}from"./chunk-WMX3LCLR.js";var o={DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION:"DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION",DATA_MANAGER_STORAGE_SUBSCRIPTION:"DATA_MANAGER_STORAGE_SUBSCRIPTION"},n={EVALUATION:"EVALUATION",BRONZE:"BRONZE",SILVER:"SILVER",GOLD:"GOLD"};export{t as AXIOS_INSTANCE,n as ProductDetailFlavour,o as ProductDetailType,i as customInstance,e as setAuthToken,r as setBaseUrl};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/account-server-api.schemas.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Generated by orval v6.3.0 \uD83C\uDF7A\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to **Products**, **Organisations**, **Units** and **Users**.\n\n * OpenAPI spec version: 0.1\n */\nexport interface Error {\n /** Brief error text that can be presented to the user\n */\n error: string;\n}\n\nexport interface OrganisationPostResponse {\n /** The organisation's unique ID\n */\n id: string;\n}\n\nexport interface UsersGetResponse {\n organisation?: OrganisationDetail;\n unit?: UnitDetail;\n /** The list of Organisation Users\n */\n users: UserDetail[];\n}\n\nexport interface OrganisationUnitPostResponse {\n /** The unit's unique ID\n */\n id: string;\n}\n\nexport interface OrganisationUnitsGetResponse {\n organisation: OrganisationDetail;\n /** A list of Units\n */\n units: UnitDetail[];\n}\n\nexport interface OrganisationsGetResponse {\n /** A list of Organisaions\n */\n organisations: OrganisationDetail[];\n}\n\nexport type ProductGetResponseProductsItem =\n | ProductDmStorage\n | ProductDmProjectTier;\n\nexport interface ProductGetResponse {\n /** All the Products you have access to\n */\n products: ProductGetResponseProductsItem[];\n}\n\nexport type ProductUnitGetResponseProductsItem =\n | ProductDmStorage\n | ProductDmProjectTier;\n\nexport interface ProductUnitGetResponse {\n /** The Unit's Products you have access to\n */\n products: ProductUnitGetResponseProductsItem[];\n}\n\nexport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/**\n * Generated by orval v6.3.0 \uD83C\uDF7A\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to **Products**, **Organisations**, **Units** and **Users**.\n\n * OpenAPI spec version: 0.1\n */\nexport interface Error {\n /** Brief error text that can be presented to the user\n */\n error: string;\n}\n\nexport interface OrganisationPostResponse {\n /** The organisation's unique ID\n */\n id: string;\n}\n\nexport interface UsersGetResponse {\n organisation?: OrganisationDetail;\n unit?: UnitDetail;\n /** The list of Organisation Users\n */\n users: UserDetail[];\n}\n\nexport interface OrganisationUnitPostResponse {\n /** The unit's unique ID\n */\n id: string;\n}\n\nexport interface OrganisationUnitsGetResponse {\n organisation: OrganisationDetail;\n /** A list of Units\n */\n units: UnitDetail[];\n}\n\nexport interface OrganisationsGetResponse {\n /** A list of Organisaions\n */\n organisations: OrganisationDetail[];\n}\n\nexport type ProductGetResponseProductsItem =\n | ProductDmStorage\n | ProductDmProjectTier;\n\nexport interface ProductGetResponse {\n /** All the Products you have access to\n */\n products: ProductGetResponseProductsItem[];\n}\n\nexport type ProductUnitGetResponseProductsItem =\n | ProductDmStorage\n | ProductDmProjectTier;\n\nexport interface ProductUnitGetResponse {\n /** The Unit's Products you have access to\n */\n products: ProductUnitGetResponseProductsItem[];\n}\n\nexport interface ProductDmStorage {\n product: ProductDetail;\n organisation: OrganisationDetail;\n unit: UnitDetail;\n storage: ProductDmStorageDetail;\n coins: ProductCoinsDetail;\n}\n\nexport interface ProductDmProjectTier {\n product: ProductDetail;\n organisation: OrganisationDetail;\n unit: UnitDetail;\n storage: ProductDmStorageDetail;\n coins: ProductCoinsDetail;\n instance: ProductInstanceDetail;\n claim?: ProductClaimDetail;\n}\n\nexport type ProductDmStorageDetailSize = {\n /** The humanised size of the peak storage used for the current day. The value is reset at the start of each day */\n peak: string;\n /** The humanised size of the current storage used for the current day and used to calculate the 'burn rate' */\n current: string;\n /** The humanised storage unit. The cost of storage is based on the daily peak of the number of units (or part thereof) used */\n unit_size: string;\n /** The peak number of storage units used today */\n units_used: number;\n};\n\nexport type ProductDmStorageDetailCoins = {\n /** The number of coins currently committed for the current day. This is added to the acumulated coins at the start of each day */\n used: number;\n /** The coin cost of a 'unit' of strage or part thereof. The unit size is defined in the storage section of the response */\n unit_cost: number;\n};\n\nexport interface ProductDmStorageDetail {\n size: ProductDmStorageDetailSize;\n coins: ProductDmStorageDetailCoins;\n}\n\nexport interface ProductClaimDetail {\n /** The service ID using this Subscription.\n */\n id: string;\n /** A name for the service\n */\n name?: string;\n}\n\nexport interface ProductCoinsDetail {\n /** The billing allowance. When you exceed this during the current billign period the *cost multipler* will increase */\n allowance: number;\n /** The limit on your billing period spend. You can exceed the allowance but you cannot exceed the spend limit. Once reached the dependent may be restricted */\n limit?: number;\n /** The total number of coins consumed (in this billing period), exclding the coins that have been consumed for the current day */\n used: number;\n /** The current burn rate, the approximate amount of coins you are currently consuming each day */\n current_burn_rate: number;\n /** The predicted billing period amount, if costs continue at the current burn rate until the end of the billing period */\n billing_prediction: number;\n /** The day of the month when the bill is due, and the end of the current billign period */\n billing_day: number;\n /** A multipler applied to your coin usage. If you are below your allowance for the billign period it wil be 1.0. When you exceed your allowance the mutiplier is likely to increase */\n cost_multiplier: number;\n /** A multipler that will be applied to your coin usage if you exceed your allowance */\n next_cost_multiplier: number;\n /** The number of days remaining, in the current billing period */\n remaining_days: number;\n}\n\nexport type ProductDetailType =\n | \"DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION\"\n | \"DATA_MANAGER_STORAGE_SUBSCRIPTION\";\n\nexport const ProductDetailType = {\n DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION:\n \"DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION\" as ProductDetailType,\n DATA_MANAGER_STORAGE_SUBSCRIPTION:\n \"DATA_MANAGER_STORAGE_SUBSCRIPTION\" as ProductDetailType,\n};\n\nexport type ProductDetailFlavour = \"EVALUATION\" | \"BRONZE\" | \"SILVER\" | \"GOLD\";\n\nexport const ProductDetailFlavour = {\n EVALUATION: \"EVALUATION\" as ProductDetailFlavour,\n BRONZE: \"BRONZE\" as ProductDetailFlavour,\n SILVER: \"SILVER\" as ProductDetailFlavour,\n GOLD: \"GOLD\" as ProductDetailFlavour,\n};\n\nexport interface ProductDetail {\n /** The Product ID\n */\n id: string;\n type: ProductDetailType;\n flavour?: ProductDetailFlavour;\n name?: string;\n}\n\nexport type ProductInstanceDetailCoins = {\n used: number;\n};\n\nexport interface ProductInstanceDetail {\n coins: ProductInstanceDetailCoins;\n}\n\nexport interface OrganisationDetail {\n id: string;\n name: string;\n}\n\nexport interface UnitDetail {\n id: string;\n name: string;\n}\n\nexport interface UserDetail {\n id: string;\n}\n\nexport type OrganisationPostBodyBody = {\n /** The name of the organisaion\n */\n name: string;\n};\n\nexport type OrganisationUnitPostBodyBody = {\n /** The name of the unit\n */\n name: string;\n};\n\n/**\n * A dummy\n\n */\nexport type QDummyParameter = boolean;\n"],
|
|
5
|
+
"mappings": "6DAgJO,GAAM,GAAoB,CAC/B,uCACE,yCACF,kCACE,qCAKS,EAAuB,CAClC,WAAY,aACZ,OAAQ,SACR,OAAQ,SACR,KAAM",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_query from 'react-query';
|
|
2
2
|
import { UseQueryOptions, UseMutationOptions } from 'react-query';
|
|
3
|
-
import { z as customInstance, c as OrganisationsGetResponse, E as Error, v as OrganisationPostBodyBody, O as OrganisationPostResponse } from '../custom-instance-
|
|
3
|
+
import { z as customInstance, c as OrganisationsGetResponse, E as Error, v as OrganisationPostBodyBody, O as OrganisationPostResponse } from '../custom-instance-ac65127d';
|
|
4
4
|
import 'axios';
|
|
5
5
|
|
|
6
6
|
declare type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
package/package.json
CHANGED
package/product/product.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_query from 'react-query';
|
|
2
2
|
import { UseQueryOptions } from 'react-query';
|
|
3
|
-
import { z as customInstance, d as ProductGetResponse, E as Error, f as ProductUnitGetResponse } from '../custom-instance-
|
|
3
|
+
import { z as customInstance, d as ProductGetResponse, E as Error, f as ProductUnitGetResponse } from '../custom-instance-ac65127d';
|
|
4
4
|
import 'axios';
|
|
5
5
|
|
|
6
6
|
declare type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
package/unit/unit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_query from 'react-query';
|
|
2
2
|
import { UseQueryOptions, UseMutationOptions } from 'react-query';
|
|
3
|
-
import { z as customInstance, b as OrganisationUnitsGetResponse, E as Error, w as OrganisationUnitPostBodyBody, a as OrganisationUnitPostResponse } from '../custom-instance-
|
|
3
|
+
import { z as customInstance, b as OrganisationUnitsGetResponse, E as Error, w as OrganisationUnitPostBodyBody, a as OrganisationUnitPostResponse } from '../custom-instance-ac65127d';
|
|
4
4
|
import 'axios';
|
|
5
5
|
|
|
6
6
|
declare type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
package/user/user.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_query from 'react-query';
|
|
2
2
|
import { UseQueryOptions, UseMutationOptions } from 'react-query';
|
|
3
|
-
import { z as customInstance, U as UsersGetResponse, E as Error } from '../custom-instance-
|
|
3
|
+
import { z as customInstance, U as UsersGetResponse, E as Error } from '../custom-instance-ac65127d';
|
|
4
4
|
import 'axios';
|
|
5
5
|
|
|
6
6
|
declare type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|