@pliancy/salesforce-cpq-sdk 1.7.0 → 1.8.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,5 +1,6 @@
1
1
  import { Address } from 'jsforce';
2
2
  export interface Account {
3
+ [index: string]: number | string | boolean | null | undefined | Address;
3
4
  Id: string;
4
5
  IsDeleted: boolean;
5
6
  MasterRecordId?: string;
@@ -1,5 +1,6 @@
1
1
  import { Address } from 'jsforce';
2
2
  export interface Contract {
3
+ [index: string]: number | string | boolean | null | undefined | Address | ContractStatus;
3
4
  Id: string;
4
5
  AccountId: string;
5
6
  CurrencyIsoCode: string;
package/dist/lib/cpq.d.ts CHANGED
@@ -6,12 +6,14 @@ import { Products } from './products/products';
6
6
  import { Subscriptions } from './subscriptions/subscriptions';
7
7
  import { Quotes } from './quotes/quotes';
8
8
  import { Orders } from './orders/orders';
9
+ import { OrderItems } from './orders/order-items/order-items';
9
10
  export declare class Cpq {
10
11
  private readonly config;
11
12
  accounts: Accounts;
12
13
  connection: Connection;
13
14
  contracts: Contracts;
14
15
  orders: Orders;
16
+ orderItems: OrderItems;
15
17
  products: Products;
16
18
  quotes: Quotes;
17
19
  subscriptions: Subscriptions;
package/dist/lib/cpq.js CHANGED
@@ -8,6 +8,7 @@ const products_1 = require("./products/products");
8
8
  const subscriptions_1 = require("./subscriptions/subscriptions");
9
9
  const quotes_1 = require("./quotes/quotes");
10
10
  const orders_1 = require("./orders/orders");
11
+ const order_items_1 = require("./orders/order-items/order-items");
11
12
  class Cpq {
12
13
  constructor(config) {
13
14
  this.config = config;
@@ -15,6 +16,7 @@ class Cpq {
15
16
  this.accounts = new accounts_1.Accounts(this.connection);
16
17
  this.contracts = new contracts_1.Contracts(this.connection);
17
18
  this.orders = new orders_1.Orders(this.connection);
19
+ this.orderItems = new order_items_1.OrderItems(this.connection);
18
20
  this.products = new products_1.Products(this.connection);
19
21
  this.subscriptions = new subscriptions_1.Subscriptions(this.connection);
20
22
  this.quotes = new quotes_1.Quotes(this.connection);
@@ -1,8 +1,9 @@
1
- import { Connection } from 'jsforce';
1
+ import { Connection, SaveResult } from 'jsforce';
2
2
  import { OrderItem } from './order-item.types';
3
3
  export declare class OrderItems {
4
4
  private readonly connection;
5
5
  private readonly client;
6
6
  constructor(connection: Connection);
7
7
  getByOrderId(id: string): Promise<OrderItem[]>;
8
+ update(id: string, update: Partial<Omit<OrderItem, 'Id'>>): Promise<SaveResult>;
8
9
  }
@@ -9,5 +9,8 @@ class OrderItems {
9
9
  async getByOrderId(id) {
10
10
  return this.client.find({ OrderId: id });
11
11
  }
12
+ async update(id, update) {
13
+ return this.client.update({ Id: id, ...update });
14
+ }
12
15
  }
13
16
  exports.OrderItems = OrderItems;
@@ -1,6 +1,7 @@
1
1
  import { Address } from 'jsforce';
2
2
  import { OrderItem } from './order-items/order-item.types';
3
3
  export interface Order {
4
+ [index: string]: number | string | boolean | null | undefined | OrderStatus | Address;
4
5
  Id: string;
5
6
  OwnerId: string;
6
7
  ContractId?: string;
@@ -1,4 +1,5 @@
1
1
  export interface Product {
2
+ [index: string]: number | string | boolean | null | undefined;
2
3
  Id: string;
3
4
  Name: string;
4
5
  ProductCode: string;
@@ -1,6 +1,7 @@
1
1
  import { QuoteLine } from './quote-lines/quote-line.types';
2
2
  import { QueryCondition, Schema, SObjectUpdateRecord } from 'jsforce';
3
3
  export interface Quote {
4
+ [index: string]: number | string | boolean | null | undefined | QuoteType | ApprovalStatus;
4
5
  Id: string;
5
6
  OwnerId: string;
6
7
  IsDeleted: boolean;
@@ -1,4 +1,5 @@
1
1
  export interface Subscription {
2
+ [index: string]: number | string | boolean | null | undefined;
2
3
  Id: string;
3
4
  OwnerId: string;
4
5
  IsDeleted: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pliancy/salesforce-cpq-sdk",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "description": "Salesforce CPQ SDK for Node.js",