@pliancy/salesforce-cpq-sdk 3.10.0 → 3.11.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,8 +1,9 @@
1
- import { Connection, Schema, SObject } from 'jsforce';
1
+ import { Connection, SaveResult, Schema, SObject } from 'jsforce';
2
2
  import { Subscription } from './subscription.types';
3
3
  export declare class Subscriptions {
4
4
  private readonly connection;
5
5
  client: SObject<Schema, 'SBQQ__Subscription__c'>;
6
6
  constructor(connection: Connection);
7
7
  getByContractNumber(contractNumber: string): Promise<Subscription[]>;
8
+ update(id: string, update: Partial<Omit<Subscription, 'Id'>>): Promise<SaveResult>;
8
9
  }
@@ -9,5 +9,11 @@ class Subscriptions {
9
9
  async getByContractNumber(contractNumber) {
10
10
  return this.client.find({ SBQQ__ContractNumber__c: contractNumber });
11
11
  }
12
+ async update(id, update) {
13
+ return this.client.update({
14
+ Id: id,
15
+ ...update,
16
+ });
17
+ }
12
18
  }
13
19
  exports.Subscriptions = Subscriptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pliancy/salesforce-cpq-sdk",
3
- "version": "3.10.0",
3
+ "version": "3.11.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "description": "Salesforce CPQ SDK for Node.js",