@dascompany/product 3.5.3 → 3.5.5
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/reader/OrderStatusReader.js +1 -1
- package/dist/reader/StatusTypesReader.d.ts +4 -1
- package/dist/stockObjects/Address.d.ts +1 -1
- package/dist/stockObjects/Order.d.ts +1 -1
- package/dist/stockObjects/Product.d.ts +1 -1
- package/dist/tables/clients/ClientAccountsTable.d.ts +1 -1
- package/dist/tables/orders/OrdersProductsTable.d.ts +1 -1
- package/dist/tables/orders/StatusTypesTable.d.ts +4 -1
- package/dist/tables/personalInformation/CompanyDetailsTable.d.ts +1 -1
- package/dist/tables/personalInformation/DeliveryDetailsTable.d.ts +1 -1
- package/dist/tables/personalInformation/PersonalDataTable.d.ts +1 -1
- package/dist/tables/public/AdminAccountsTable.d.ts +1 -1
- package/dist/tables/public/ProductsTable.d.ts +1 -1
- package/dist/types/rows/ClientAccountRow.d.ts +4 -4
- package/package.json +2 -2
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { QueryOptions } from "@dascompany/database";
|
|
2
2
|
export default class StatusTypesReader {
|
|
3
|
-
static get(queryOptions: QueryOptions): Promise<
|
|
3
|
+
static get(queryOptions: QueryOptions): Promise<{
|
|
4
|
+
id: string;
|
|
5
|
+
key: string;
|
|
6
|
+
}>;
|
|
4
7
|
static getAll(queryOptions?: QueryOptions): Promise<any[]>;
|
|
5
8
|
}
|
|
@@ -8,7 +8,7 @@ export default class Address extends StockObject {
|
|
|
8
8
|
private apartmentNumber;
|
|
9
9
|
constructor(country: string, city: string, street: string, postalCode: string, houseNumber: string, apartmentNumber?: string | null);
|
|
10
10
|
getData(): {
|
|
11
|
-
id:
|
|
11
|
+
id: string | null;
|
|
12
12
|
country: string;
|
|
13
13
|
city: string;
|
|
14
14
|
street: string;
|
|
@@ -10,7 +10,7 @@ export default class Order extends StockObject {
|
|
|
10
10
|
private zsiId;
|
|
11
11
|
constructor(email: string, price: number, clientId: string | null, deliveryDetailsId: string, companyDetailsId?: string | null, paymentDetailsId?: string | null, invoice?: boolean);
|
|
12
12
|
getData(): Promise<{
|
|
13
|
-
id:
|
|
13
|
+
id: string | null;
|
|
14
14
|
email: string;
|
|
15
15
|
price: number;
|
|
16
16
|
invoice: boolean;
|
|
@@ -7,7 +7,7 @@ export default class ClientAccountsTable extends Table {
|
|
|
7
7
|
selectId(queryOptions: QueryOptions): Promise<string | null>;
|
|
8
8
|
count(queryOptions: QueryOptions): Promise<number>;
|
|
9
9
|
update(clientData: Client): Promise<void>;
|
|
10
|
-
delete(accountId:
|
|
10
|
+
delete(accountId: string): Promise<number>;
|
|
11
11
|
private bindParameters;
|
|
12
12
|
insert(clientAccount: Client): Promise<void>;
|
|
13
13
|
private selectNextId;
|
|
@@ -4,7 +4,7 @@ import OrderProduct from '../../stockObjects/OrderProduct';
|
|
|
4
4
|
export default class OrdersProductsTable extends Table {
|
|
5
5
|
selectAll(queryOptions?: QueryOptions): Promise<OrderProductRow[]>;
|
|
6
6
|
insert(orderProduct: OrderProduct): Promise<boolean>;
|
|
7
|
-
delete(id:
|
|
7
|
+
delete(id: string): Promise<boolean>;
|
|
8
8
|
private selectNextId;
|
|
9
9
|
private bindParams;
|
|
10
10
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { QueryOptions, Table } from '@dascompany/database';
|
|
2
2
|
export default class StatusTypesTable extends Table {
|
|
3
|
-
select(queryOptions: QueryOptions): Promise<
|
|
3
|
+
select(queryOptions: QueryOptions): Promise<{
|
|
4
|
+
id: string;
|
|
5
|
+
key: string;
|
|
6
|
+
}>;
|
|
4
7
|
selectAll(queryOptions?: QueryOptions): Promise<any[]>;
|
|
5
8
|
}
|
|
@@ -5,7 +5,7 @@ export default class CompanyDetailsTable extends Table {
|
|
|
5
5
|
select(queryOptions: QueryOptions): Promise<CompanyDetailsRow>;
|
|
6
6
|
update(companyDetails: CompanyDetails): Promise<void>;
|
|
7
7
|
insert(companyDetails: CompanyDetails): Promise<void>;
|
|
8
|
-
delete(id:
|
|
8
|
+
delete(id: string): Promise<void>;
|
|
9
9
|
private selectNextId;
|
|
10
10
|
private bindParameters;
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ export default class DeliveryDetailsTable extends Table {
|
|
|
5
5
|
select(queryOptions: QueryOptions): Promise<DeliveryDetailsRow>;
|
|
6
6
|
insert(deliveryDetails: DeliveryDetails): Promise<void>;
|
|
7
7
|
update(deliveryDetails: DeliveryDetails): Promise<void>;
|
|
8
|
-
delete(id:
|
|
8
|
+
delete(id: string): Promise<void>;
|
|
9
9
|
private selectNextId;
|
|
10
10
|
private bindParameters;
|
|
11
11
|
}
|
|
@@ -6,6 +6,6 @@ export default class PersonalDataTable extends Table {
|
|
|
6
6
|
insert(personalData: PersonalData): Promise<void>;
|
|
7
7
|
update(personalData: PersonalData): Promise<void>;
|
|
8
8
|
private selectNextId;
|
|
9
|
-
delete(id:
|
|
9
|
+
delete(id: string): Promise<void>;
|
|
10
10
|
private bindParameters;
|
|
11
11
|
}
|
|
@@ -8,7 +8,7 @@ export default class AdminAccountsTable extends Table {
|
|
|
8
8
|
count(queryOptions: QueryOptions): Promise<number>;
|
|
9
9
|
insert(admin: Admin): Promise<string>;
|
|
10
10
|
update(admin: Admin): Promise<boolean>;
|
|
11
|
-
delete(accountId:
|
|
11
|
+
delete(accountId: string): Promise<number>;
|
|
12
12
|
private bindParameters;
|
|
13
13
|
private selectNextId;
|
|
14
14
|
}
|
|
@@ -7,7 +7,7 @@ export default class ProductsTable extends Table {
|
|
|
7
7
|
selectId(queryOptions: QueryOptions): Promise<string>;
|
|
8
8
|
insert(productData: Product): Promise<string>;
|
|
9
9
|
update(product: Product): Promise<boolean>;
|
|
10
|
-
delete(productId:
|
|
10
|
+
delete(productId: string): Promise<number>;
|
|
11
11
|
selectMaxPrice(queryOption: QueryOptions): Promise<number>;
|
|
12
12
|
count(queryOption: QueryOptions): Promise<number>;
|
|
13
13
|
private selectNextId;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default interface ClientAccountRow {
|
|
2
|
-
id:
|
|
2
|
+
id: string;
|
|
3
3
|
email: string;
|
|
4
4
|
created_at: string;
|
|
5
5
|
activated: boolean;
|
|
6
6
|
deleted: boolean;
|
|
7
|
-
personal_data_id:
|
|
8
|
-
delivery_details_id:
|
|
9
|
-
company_details_id:
|
|
7
|
+
personal_data_id: string;
|
|
8
|
+
delivery_details_id: string;
|
|
9
|
+
company_details_id: string;
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dascompany/product",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "vitest",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vitest": "^3.0.6"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@dascompany/database": "^3.1.
|
|
23
|
+
"@dascompany/database": "^3.1.5",
|
|
24
24
|
"@types/pg": "^8.11.11",
|
|
25
25
|
"pg": "^8.13.3"
|
|
26
26
|
}
|