@parra/parra-js-sdk 0.3.614 → 0.3.615
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/dist/ParraAPI.d.ts +12 -1
- package/dist/ParraAPI.js +2 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1740,6 +1740,13 @@ export interface Product {
|
|
1740
1740
|
sort_order?: number;
|
1741
1741
|
entitlements?: Array<ProductEntitlement> | null;
|
1742
1742
|
}
|
1743
|
+
export interface ProductCollectionResponse {
|
1744
|
+
page: number;
|
1745
|
+
page_count: number;
|
1746
|
+
page_size: number;
|
1747
|
+
total_count: number;
|
1748
|
+
data: Array<Product>;
|
1749
|
+
}
|
1743
1750
|
export interface UpdateProductRequestBody {
|
1744
1751
|
title?: string;
|
1745
1752
|
key?: string;
|
@@ -7055,7 +7062,11 @@ declare class ParraAPI {
|
|
7055
7062
|
updateEntitlementById: (tenant_id: string, entitlement_id: string, body?: UpdateEntitlementRequestBody, options?: Options) => Promise<Entitlement>;
|
7056
7063
|
deleteEntitlementById: (tenant_id: string, entitlement_id: string, options?: Options) => Promise<Response>;
|
7057
7064
|
createProduct: (tenant_id: string, body?: CreateProductRequestBody, options?: Options) => Promise<Product>;
|
7058
|
-
|
7065
|
+
paginateProducts: (tenant_id: string, query?: {
|
7066
|
+
limit?: number;
|
7067
|
+
offset?: number;
|
7068
|
+
type?: string | null;
|
7069
|
+
}, options?: Options) => Promise<ProductCollectionResponse>;
|
7059
7070
|
getProductById: (tenant_id: string, product_id: string, options?: Options) => Promise<Product>;
|
7060
7071
|
updateProductById: (tenant_id: string, product_id: string, body?: UpdateProductRequestBody, options?: Options) => Promise<Product>;
|
7061
7072
|
deleteProductById: (tenant_id: string, product_id: string, options?: Options) => Promise<Response>;
|
package/dist/ParraAPI.js
CHANGED
@@ -1168,9 +1168,9 @@ var ParraAPI = /** @class */ (function () {
|
|
1168
1168
|
"content-type": "application/json",
|
1169
1169
|
} }, options));
|
1170
1170
|
};
|
1171
|
-
this.
|
1171
|
+
this.paginateProducts = function (tenant_id, query, options) {
|
1172
1172
|
if (options === void 0) { options = {}; }
|
1173
|
-
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products"), method: "get" }, options));
|
1173
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products"), method: "get", query: query }, options));
|
1174
1174
|
};
|
1175
1175
|
this.getProductById = function (tenant_id, product_id, options) {
|
1176
1176
|
if (options === void 0) { options = {}; }
|