@usethrottle/discounts 0.2.1 → 0.3.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.
- package/README.md +5 -0
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<p align="left">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/Epic-Design-Labs/app-throttle/main/packages/brand/assets/throttle-logo.png" alt="Throttle" height="56" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
|
|
1
6
|
# @usethrottle/discounts
|
|
2
7
|
|
|
3
8
|
Headless TypeScript client for Throttle discount codes.
|
package/dist/index.cjs
CHANGED
|
@@ -96,7 +96,6 @@ var DiscountsClient = class {
|
|
|
96
96
|
async list(params = {}) {
|
|
97
97
|
const query = new URLSearchParams();
|
|
98
98
|
if (params.q) query.set("q", params.q);
|
|
99
|
-
if (params.storeId) query.set("storeId", params.storeId);
|
|
100
99
|
if (params.isActive !== void 0) query.set("isActive", String(params.isActive));
|
|
101
100
|
if (params.code) query.set("code", params.code);
|
|
102
101
|
if (params.type) query.set("type", params.type);
|
package/dist/index.d.cts
CHANGED
|
@@ -16,7 +16,6 @@ interface Discount {
|
|
|
16
16
|
createdAt: string;
|
|
17
17
|
}
|
|
18
18
|
interface CreateDiscountInput {
|
|
19
|
-
storeId?: string;
|
|
20
19
|
code?: string;
|
|
21
20
|
name: string;
|
|
22
21
|
type: DiscountType;
|
|
@@ -41,7 +40,6 @@ interface UpdateDiscountInput {
|
|
|
41
40
|
}
|
|
42
41
|
interface DiscountListParams {
|
|
43
42
|
q?: string;
|
|
44
|
-
storeId?: string;
|
|
45
43
|
isActive?: boolean;
|
|
46
44
|
code?: string;
|
|
47
45
|
type?: DiscountType;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ interface Discount {
|
|
|
16
16
|
createdAt: string;
|
|
17
17
|
}
|
|
18
18
|
interface CreateDiscountInput {
|
|
19
|
-
storeId?: string;
|
|
20
19
|
code?: string;
|
|
21
20
|
name: string;
|
|
22
21
|
type: DiscountType;
|
|
@@ -41,7 +40,6 @@ interface UpdateDiscountInput {
|
|
|
41
40
|
}
|
|
42
41
|
interface DiscountListParams {
|
|
43
42
|
q?: string;
|
|
44
|
-
storeId?: string;
|
|
45
43
|
isActive?: boolean;
|
|
46
44
|
code?: string;
|
|
47
45
|
type?: DiscountType;
|
package/dist/index.js
CHANGED
|
@@ -68,7 +68,6 @@ var DiscountsClient = class {
|
|
|
68
68
|
async list(params = {}) {
|
|
69
69
|
const query = new URLSearchParams();
|
|
70
70
|
if (params.q) query.set("q", params.q);
|
|
71
|
-
if (params.storeId) query.set("storeId", params.storeId);
|
|
72
71
|
if (params.isActive !== void 0) query.set("isActive", String(params.isActive));
|
|
73
72
|
if (params.code) query.set("code", params.code);
|
|
74
73
|
if (params.type) query.set("type", params.type);
|