@gymspace/sdk 1.2.22 → 1.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/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/models/products.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -1963,6 +1963,7 @@ interface CreateProductDto {
|
|
|
1963
1963
|
price: number;
|
|
1964
1964
|
stock?: number;
|
|
1965
1965
|
categoryId?: string;
|
|
1966
|
+
categoryIds?: string[];
|
|
1966
1967
|
imageId?: string;
|
|
1967
1968
|
status?: 'active' | 'inactive';
|
|
1968
1969
|
}
|
|
@@ -1971,6 +1972,7 @@ interface CreateServiceDto {
|
|
|
1971
1972
|
description?: string;
|
|
1972
1973
|
price: number;
|
|
1973
1974
|
categoryId?: string;
|
|
1975
|
+
categoryIds?: string[];
|
|
1974
1976
|
imageId?: string;
|
|
1975
1977
|
}
|
|
1976
1978
|
interface UpdateProductDto {
|
|
@@ -1979,6 +1981,7 @@ interface UpdateProductDto {
|
|
|
1979
1981
|
price?: number;
|
|
1980
1982
|
stock?: number;
|
|
1981
1983
|
categoryId?: string;
|
|
1984
|
+
categoryIds?: string[];
|
|
1982
1985
|
imageId?: string;
|
|
1983
1986
|
status?: 'active' | 'inactive';
|
|
1984
1987
|
}
|
|
@@ -2005,6 +2008,7 @@ interface Product {
|
|
|
2005
2008
|
createdAt: string;
|
|
2006
2009
|
updatedAt: string;
|
|
2007
2010
|
category?: ProductCategory;
|
|
2011
|
+
categories?: ProductCategory[];
|
|
2008
2012
|
image?: {
|
|
2009
2013
|
id: string;
|
|
2010
2014
|
filename: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1963,6 +1963,7 @@ interface CreateProductDto {
|
|
|
1963
1963
|
price: number;
|
|
1964
1964
|
stock?: number;
|
|
1965
1965
|
categoryId?: string;
|
|
1966
|
+
categoryIds?: string[];
|
|
1966
1967
|
imageId?: string;
|
|
1967
1968
|
status?: 'active' | 'inactive';
|
|
1968
1969
|
}
|
|
@@ -1971,6 +1972,7 @@ interface CreateServiceDto {
|
|
|
1971
1972
|
description?: string;
|
|
1972
1973
|
price: number;
|
|
1973
1974
|
categoryId?: string;
|
|
1975
|
+
categoryIds?: string[];
|
|
1974
1976
|
imageId?: string;
|
|
1975
1977
|
}
|
|
1976
1978
|
interface UpdateProductDto {
|
|
@@ -1979,6 +1981,7 @@ interface UpdateProductDto {
|
|
|
1979
1981
|
price?: number;
|
|
1980
1982
|
stock?: number;
|
|
1981
1983
|
categoryId?: string;
|
|
1984
|
+
categoryIds?: string[];
|
|
1982
1985
|
imageId?: string;
|
|
1983
1986
|
status?: 'active' | 'inactive';
|
|
1984
1987
|
}
|
|
@@ -2005,6 +2008,7 @@ interface Product {
|
|
|
2005
2008
|
createdAt: string;
|
|
2006
2009
|
updatedAt: string;
|
|
2007
2010
|
category?: ProductCategory;
|
|
2011
|
+
categories?: ProductCategory[];
|
|
2008
2012
|
image?: {
|
|
2009
2013
|
id: string;
|
|
2010
2014
|
filename: string;
|
package/package.json
CHANGED
package/src/models/products.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface CreateProductDto {
|
|
|
41
41
|
price: number;
|
|
42
42
|
stock?: number;
|
|
43
43
|
categoryId?: string;
|
|
44
|
+
categoryIds?: string[];
|
|
44
45
|
imageId?: string;
|
|
45
46
|
status?: 'active' | 'inactive';
|
|
46
47
|
}
|
|
@@ -50,6 +51,7 @@ export interface CreateServiceDto {
|
|
|
50
51
|
description?: string;
|
|
51
52
|
price: number;
|
|
52
53
|
categoryId?: string;
|
|
54
|
+
categoryIds?: string[];
|
|
53
55
|
imageId?: string;
|
|
54
56
|
}
|
|
55
57
|
|
|
@@ -59,6 +61,7 @@ export interface UpdateProductDto {
|
|
|
59
61
|
price?: number;
|
|
60
62
|
stock?: number;
|
|
61
63
|
categoryId?: string;
|
|
64
|
+
categoryIds?: string[];
|
|
62
65
|
imageId?: string;
|
|
63
66
|
status?: 'active' | 'inactive';
|
|
64
67
|
}
|
|
@@ -87,6 +90,7 @@ export interface Product {
|
|
|
87
90
|
createdAt: string;
|
|
88
91
|
updatedAt: string;
|
|
89
92
|
category?: ProductCategory;
|
|
93
|
+
categories?: ProductCategory[];
|
|
90
94
|
image?: {
|
|
91
95
|
id: string;
|
|
92
96
|
filename: string;
|