@raystack/frontier 0.33.0 → 0.33.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.
@@ -840,14 +840,19 @@ interface V1Beta1ListAllBillingAccountsResponse {
840
840
  }
841
841
  interface V1Beta1ListAllInvoicesResponse {
842
842
  invoices?: V1Beta1Invoice[];
843
+ /**
844
+ * Total number of records present
845
+ * @format int32
846
+ */
847
+ count?: number;
843
848
  }
844
849
  interface V1Beta1ListAllOrganizationsResponse {
845
850
  organizations?: V1Beta1Organization[];
846
851
  /**
847
- * Total number of pages in response
852
+ * Total number of records present
848
853
  * @format int32
849
854
  */
850
- total_pages?: number;
855
+ count?: number;
851
856
  }
852
857
  interface V1Beta1ListAllUsersResponse {
853
858
  /** @format int32 */
@@ -1824,6 +1829,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1824
1829
  */
1825
1830
  adminServiceListAllInvoices: (query?: {
1826
1831
  org_id?: string;
1832
+ /**
1833
+ * The maximum number of invoices to return per page. The default is 50.
1834
+ * @format int32
1835
+ */
1836
+ page_size?: number;
1837
+ /**
1838
+ * The page number to return. The default is 1.
1839
+ * @format int32
1840
+ */
1841
+ page_num?: number;
1827
1842
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllInvoicesResponse, RpcStatus>>;
1828
1843
  /**
1829
1844
  * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user, group or a service account.
@@ -152,7 +152,7 @@ var HttpClient = class {
152
152
  signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
153
153
  body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
154
154
  })).then((response) => __async(this, null, function* () {
155
- const r = response;
155
+ const r = response.clone();
156
156
  r.data = null;
157
157
  r.error = null;
158
158
  const data = !responseFormat ? r : yield response[responseFormat]().then((data2) => {
@@ -128,7 +128,7 @@ var HttpClient = class {
128
128
  signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
129
129
  body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
130
130
  })).then((response) => __async(this, null, function* () {
131
- const r = response;
131
+ const r = response.clone();
132
132
  r.data = null;
133
133
  r.error = null;
134
134
  const data = !responseFormat ? r : yield response[responseFormat]().then((data2) => {
package/dist/index.d.ts CHANGED
@@ -840,14 +840,19 @@ interface V1Beta1ListAllBillingAccountsResponse {
840
840
  }
841
841
  interface V1Beta1ListAllInvoicesResponse {
842
842
  invoices?: V1Beta1Invoice[];
843
+ /**
844
+ * Total number of records present
845
+ * @format int32
846
+ */
847
+ count?: number;
843
848
  }
844
849
  interface V1Beta1ListAllOrganizationsResponse {
845
850
  organizations?: V1Beta1Organization[];
846
851
  /**
847
- * Total number of pages in response
852
+ * Total number of records present
848
853
  * @format int32
849
854
  */
850
- total_pages?: number;
855
+ count?: number;
851
856
  }
852
857
  interface V1Beta1ListAllUsersResponse {
853
858
  /** @format int32 */
@@ -1824,6 +1829,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
1824
1829
  */
1825
1830
  adminServiceListAllInvoices: (query?: {
1826
1831
  org_id?: string;
1832
+ /**
1833
+ * The maximum number of invoices to return per page. The default is 50.
1834
+ * @format int32
1835
+ */
1836
+ page_size?: number;
1837
+ /**
1838
+ * The page number to return. The default is 1.
1839
+ * @format int32
1840
+ */
1841
+ page_num?: number;
1827
1842
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllInvoicesResponse, RpcStatus>>;
1828
1843
  /**
1829
1844
  * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user, group or a service account.
package/dist/index.js CHANGED
@@ -153,7 +153,7 @@ var HttpClient = class {
153
153
  signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
154
154
  body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
155
155
  })).then((response) => __async(this, null, function* () {
156
- const r = response;
156
+ const r = response.clone();
157
157
  r.data = null;
158
158
  r.error = null;
159
159
  const data = !responseFormat ? r : yield response[responseFormat]().then((data2) => {
package/dist/index.mjs CHANGED
@@ -128,7 +128,7 @@ var HttpClient = class {
128
128
  signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
129
129
  body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
130
130
  })).then((response) => __async(this, null, function* () {
131
- const r = response;
131
+ const r = response.clone();
132
132
  r.data = null;
133
133
  r.error = null;
134
134
  const data = !responseFormat ? r : yield response[responseFormat]().then((data2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/frontier",
3
- "version": "0.33.0",
3
+ "version": "0.33.2",
4
4
  "description": "A js library for frontier",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -61,7 +61,7 @@
61
61
  "devDependencies": {
62
62
  "@jest/globals": "^29.7.0",
63
63
  "@radix-ui/react-icons": "^1.3.0",
64
- "@raystack/apsara": "^0.17.1",
64
+ "@raystack/apsara": "^0.19.1",
65
65
  "@raystack/eslint-config": "workspace:^",
66
66
  "@raystack/frontier-tsconfig": "workspace:^",
67
67
  "@size-limit/preset-small-lib": "^8.2.6",
@@ -103,7 +103,7 @@
103
103
  "yup": "^1.2.0"
104
104
  },
105
105
  "peerDependencies": {
106
- "@raystack/apsara": "^0.17.1",
106
+ "@raystack/apsara": "^0.19.1",
107
107
  "react": "^18.2.0"
108
108
  },
109
109
  "peerDependenciesMeta": {
@@ -1146,14 +1146,19 @@ interface V1Beta1ListAllBillingAccountsResponse {
1146
1146
  }
1147
1147
  interface V1Beta1ListAllInvoicesResponse {
1148
1148
  invoices?: V1Beta1Invoice[];
1149
+ /**
1150
+ * Total number of records present
1151
+ * @format int32
1152
+ */
1153
+ count?: number;
1149
1154
  }
1150
1155
  interface V1Beta1ListAllOrganizationsResponse {
1151
1156
  organizations?: V1Beta1Organization[];
1152
1157
  /**
1153
- * Total number of pages in response
1158
+ * Total number of records present
1154
1159
  * @format int32
1155
1160
  */
1156
- total_pages?: number;
1161
+ count?: number;
1157
1162
  }
1158
1163
  interface V1Beta1ListAllUsersResponse {
1159
1164
  /** @format int32 */
@@ -2125,6 +2130,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
2125
2130
  */
2126
2131
  adminServiceListAllInvoices: (query?: {
2127
2132
  org_id?: string;
2133
+ /**
2134
+ * The maximum number of invoices to return per page. The default is 50.
2135
+ * @format int32
2136
+ */
2137
+ page_size?: number;
2138
+ /**
2139
+ * The page number to return. The default is 1.
2140
+ * @format int32
2141
+ */
2142
+ page_num?: number;
2128
2143
  }, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListAllInvoicesResponse, RpcStatus>>;
2129
2144
  /**
2130
2145
  * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user, group or a service account.
@@ -4713,4 +4728,9 @@ declare const FrontierProvider: {
4713
4728
  displayName: string;
4714
4729
  };
4715
4730
 
4716
- export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, MagicLink, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useFrontier };
4731
+ declare const useTokens: () => {
4732
+ tokenBalance: number;
4733
+ isTokensLoading: boolean;
4734
+ };
4735
+
4736
+ export { Amount, AvatarUpload, Container, CreateOrganization, FrontierClientBillingOptions, FrontierClientOptions, FrontierProvider, Header, MagicLink, MagicLinkVerify, OrganizationProfile, SignIn, SignUp, Window, useFrontier, useTokens };