@unboundcx/sdk 2.8.8 → 2.8.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "2.8.8",
3
+ "version": "2.8.10",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -88,4 +88,4 @@
88
88
  "registry": "https://registry.npmjs.org/",
89
89
  "access": "public"
90
90
  }
91
- }
91
+ }
@@ -199,6 +199,8 @@ export class PlaybooksService {
199
199
  scoreType,
200
200
  weight,
201
201
  requiredForPass,
202
+ role,
203
+ signal,
202
204
  recordTypeId,
203
205
  }) {
204
206
  this.sdk.validateParams(
@@ -211,6 +213,8 @@ export class PlaybooksService {
211
213
  scoreType,
212
214
  weight,
213
215
  requiredForPass,
216
+ role,
217
+ signal,
214
218
  recordTypeId,
215
219
  },
216
220
  {
@@ -222,6 +226,8 @@ export class PlaybooksService {
222
226
  scoreType: { type: 'string', required: false },
223
227
  weight: { type: 'number', required: false },
224
228
  requiredForPass: { type: 'boolean', required: false },
229
+ role: { type: 'string', required: false },
230
+ signal: { type: 'string', required: false },
225
231
  recordTypeId: { type: 'string', required: false },
226
232
  },
227
233
  );
@@ -235,6 +241,8 @@ export class PlaybooksService {
235
241
  scoreType,
236
242
  weight,
237
243
  requiredForPass,
244
+ role,
245
+ signal,
238
246
  recordTypeId,
239
247
  },
240
248
  };
@@ -334,6 +342,8 @@ export class PlaybooksService {
334
342
  scoreType,
335
343
  weight,
336
344
  requiredForPass,
345
+ role,
346
+ signal,
337
347
  recordTypeId,
338
348
  }) {
339
349
  this.sdk.validateParams(
@@ -346,6 +356,8 @@ export class PlaybooksService {
346
356
  scoreType,
347
357
  weight,
348
358
  requiredForPass,
359
+ role,
360
+ signal,
349
361
  recordTypeId,
350
362
  },
351
363
  {
@@ -357,6 +369,8 @@ export class PlaybooksService {
357
369
  scoreType: { type: 'string', required: false },
358
370
  weight: { type: 'number', required: false },
359
371
  requiredForPass: { type: 'boolean', required: false },
372
+ role: { type: 'string', required: false },
373
+ signal: { type: 'string', required: false },
360
374
  recordTypeId: { type: 'string', required: false },
361
375
  },
362
376
  );
@@ -370,6 +384,8 @@ export class PlaybooksService {
370
384
  scoreType,
371
385
  weight,
372
386
  requiredForPass,
387
+ role,
388
+ signal,
373
389
  recordTypeId,
374
390
  },
375
391
  };
@@ -474,6 +490,8 @@ export class PlaybooksService {
474
490
  description,
475
491
  keywords,
476
492
  recommendedPhase,
493
+ role,
494
+ signal,
477
495
  recordTypeId,
478
496
  }) {
479
497
  this.sdk.validateParams(
@@ -483,12 +501,14 @@ export class PlaybooksService {
483
501
  description: { type: 'string', required: false },
484
502
  keywords: { type: 'array', required: false },
485
503
  recommendedPhase: { type: 'string', required: false },
504
+ role: { type: 'string', required: false },
505
+ signal: { type: 'string', required: false },
486
506
  recordTypeId: { type: 'string', required: false },
487
507
  },
488
508
  );
489
509
 
490
510
  const params = {
491
- body: { name, description, keywords, recommendedPhase, recordTypeId },
511
+ body: { name, description, keywords, recommendedPhase, role, signal, recordTypeId },
492
512
  };
493
513
 
494
514
  const result = await this.sdk._fetch(
@@ -587,6 +607,8 @@ export class PlaybooksService {
587
607
  description,
588
608
  keywords,
589
609
  recommendedPhase,
610
+ role,
611
+ signal,
590
612
  recordTypeId,
591
613
  }) {
592
614
  this.sdk.validateParams(
@@ -597,12 +619,14 @@ export class PlaybooksService {
597
619
  description: { type: 'string', required: false },
598
620
  keywords: { type: 'array', required: false },
599
621
  recommendedPhase: { type: 'string', required: false },
622
+ role: { type: 'string', required: false },
623
+ signal: { type: 'string', required: false },
600
624
  recordTypeId: { type: 'string', required: false },
601
625
  },
602
626
  );
603
627
 
604
628
  const params = {
605
- body: { name, description, keywords, recommendedPhase, recordTypeId },
629
+ body: { name, description, keywords, recommendedPhase, role, signal, recordTypeId },
606
630
  };
607
631
 
608
632
  const result = await this.sdk._fetch(
@@ -828,6 +852,9 @@ export class PlaybooksService {
828
852
  totalScore,
829
853
  achievedGoals,
830
854
  totalGoals,
855
+ customerTotalScore,
856
+ customerAchievedGoals,
857
+ customerTotalGoals,
831
858
  }) {
832
859
  this.sdk.validateParams(
833
860
  { sessionId },
@@ -837,6 +864,9 @@ export class PlaybooksService {
837
864
  totalScore: { type: 'number', required: false },
838
865
  achievedGoals: { type: 'number', required: false },
839
866
  totalGoals: { type: 'number', required: false },
867
+ customerTotalScore: { type: 'number', required: false },
868
+ customerAchievedGoals: { type: 'number', required: false },
869
+ customerTotalGoals: { type: 'number', required: false },
840
870
  },
841
871
  );
842
872
 
@@ -846,6 +876,9 @@ export class PlaybooksService {
846
876
  totalScore,
847
877
  achievedGoals,
848
878
  totalGoals,
879
+ customerTotalScore,
880
+ customerAchievedGoals,
881
+ customerTotalGoals,
849
882
  },
850
883
  };
851
884
 
@@ -923,6 +956,7 @@ export class PlaybooksService {
923
956
  reason,
924
957
  confidence,
925
958
  evidence,
959
+ role,
926
960
  }) {
927
961
  this.sdk.validateParams(
928
962
  { sessionId, goalId },
@@ -934,6 +968,7 @@ export class PlaybooksService {
934
968
  reason: { type: 'string', required: false },
935
969
  confidence: { type: 'number', required: false },
936
970
  evidence: { type: 'array', required: false },
971
+ role: { type: 'string', required: false },
937
972
  },
938
973
  );
939
974
 
@@ -945,6 +980,7 @@ export class PlaybooksService {
945
980
  reason,
946
981
  confidence,
947
982
  evidence,
983
+ role,
948
984
  },
949
985
  };
950
986