@pliancy/salesforce-cpq-sdk 3.19.0 → 3.21.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.
|
@@ -7,4 +7,5 @@ export declare class CustomCollection<T extends Record = Record> {
|
|
|
7
7
|
getMany(query: QueryCondition<Schema, typeof this.collection>): Promise<T[]>;
|
|
8
8
|
getOne(query: QueryCondition<Schema, typeof this.collection>): Promise<T>;
|
|
9
9
|
updateOne(query: SObjectUpdateRecord<Schema, typeof this.collection>): Promise<SaveResult>;
|
|
10
|
+
create(record: Partial<T>): Promise<T>;
|
|
10
11
|
}
|
|
@@ -16,5 +16,9 @@ class CustomCollection {
|
|
|
16
16
|
async updateOne(query) {
|
|
17
17
|
return this.client.update(query);
|
|
18
18
|
}
|
|
19
|
+
async create(record) {
|
|
20
|
+
const res = await this.client.create(record);
|
|
21
|
+
return this.getOne({ Id: res.id });
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
exports.CustomCollection = CustomCollection;
|