@crmcom/self-service-sdk 3.0.0-build.27 → 3.0.0-build.28

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/index.d.ts CHANGED
@@ -356,7 +356,7 @@ export declare const payment: {
356
356
 
357
357
  export declare const subscriptions: {
358
358
  getListSubscriptions(params?: { page?: number; size?: number; include_terms?: boolean; include_billing_info?: boolean }): Promise<SDKResult>;
359
- getServiceDevices(params?: PaginationParams & { state?: string; }): Promise<SDKResult>;
359
+ getServiceDevices(params?: PaginationParams & { state?: string; }, id?: string): Promise<SDKResult>;
360
360
  getListContactServices(params?: PaginationParams & { classification?: string; include_future_info?: boolean; include_order_info?: boolean; include_subscription?: boolean; subscription_id?: string }): Promise<SDKResult>;
361
361
  getListContactDevices(params?: PaginationParams & { owned_by_contact?: boolean; search_value?: string; serial_number?: string; include_custom_fields?: boolean; include_subscription?: boolean; include_characteristics?: boolean }): Promise<SDKResult>;
362
362
  getListContactSharedDevices(params?: PaginationParams & { search_value?: string; serial_number?: string; include_custom_fields?: boolean; include_subscription?: boolean; include_characteristics?: boolean }): Promise<SDKResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crmcom/self-service-sdk",
3
- "version": "3.0.0-build.27",
3
+ "version": "3.0.0-build.28",
4
4
  "description": "Official CRM.COM Self-Service JavaScript SDK for consumer-facing API integration",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/subscriptions.js CHANGED
@@ -51,9 +51,8 @@ async function getServiceDevices({
51
51
  size=20,
52
52
  sort,
53
53
  state
54
- }={}) {
54
+ }={}, id) {
55
55
  try {
56
- let id = httpUtil.getSession().sub;
57
56
  let response = await httpUtil.get({
58
57
  resourcePath: "/v2/services/" + id + "/devices",
59
58
  queryParams: {