@pliancy/salesforce-cpq-sdk 3.18.0 → 3.19.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.
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Connection, SaveResult } from 'jsforce';
|
|
1
|
+
import { Connection, QueryCondition, SaveResult, Schema } from 'jsforce';
|
|
2
2
|
import { FullOrder, Order, OrderStatus } from './order.types';
|
|
3
3
|
export declare class Orders {
|
|
4
4
|
private readonly connection;
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly items;
|
|
7
7
|
constructor(connection: Connection);
|
|
8
|
+
get(query: QueryCondition<Schema, 'Order'>): Promise<Order[]>;
|
|
8
9
|
getByStartDateForAccount(accountId: string, startDate: string, status: OrderStatus): Promise<FullOrder[]>;
|
|
9
10
|
getDraftByQuoteId(id: string): Promise<Order | null>;
|
|
10
11
|
delete(id: string): Promise<SaveResult>;
|
|
@@ -9,6 +9,9 @@ class Orders {
|
|
|
9
9
|
this.client = this.connection.sobject('Order');
|
|
10
10
|
this.items = new order_items_1.OrderItems(this.connection);
|
|
11
11
|
}
|
|
12
|
+
async get(query) {
|
|
13
|
+
return this.client.find(query);
|
|
14
|
+
}
|
|
12
15
|
async getByStartDateForAccount(accountId, startDate, status) {
|
|
13
16
|
const orders = (await this.client.find({
|
|
14
17
|
AccountId: accountId,
|