@tellescope/sdk 1.65.1 → 1.65.3

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": "@tellescope/sdk",
3
- "version": "1.65.1",
3
+ "version": "1.65.3",
4
4
  "description": "Code for interacting with the Tellescope API",
5
5
  "main": "./lib/cjs/sdk.js",
6
6
  "module": "./lib/esm/sdk.js",
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "homepage": "https://github.com/tellescope-os/tellescope#readme",
34
34
  "dependencies": {
35
- "@tellescope/constants": "^1.65.1",
36
- "@tellescope/schema": "^1.65.1",
37
- "@tellescope/testing": "^1.38.4",
38
- "@tellescope/types-client": "^1.65.1",
39
- "@tellescope/types-models": "^1.65.1",
40
- "@tellescope/types-utilities": "^1.38.4",
41
- "@tellescope/utilities": "^1.65.1",
42
- "@tellescope/validation": "^1.65.1",
35
+ "@tellescope/constants": "^1.65.3",
36
+ "@tellescope/schema": "^1.65.3",
37
+ "@tellescope/testing": "^1.65.2",
38
+ "@tellescope/types-client": "^1.65.3",
39
+ "@tellescope/types-models": "^1.65.3",
40
+ "@tellescope/types-utilities": "^1.65.2",
41
+ "@tellescope/utilities": "^1.65.3",
42
+ "@tellescope/validation": "^1.65.3",
43
43
  "axios": "^0.21.1",
44
44
  "dotenv": "^14.2.0",
45
45
  "express": "^4.17.1",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "e982ce89a5613ee4ece407a7022cd6ad1d00f7e2"
61
+ "gitHead": "462c6d7185f604be284c4d5697f24618d3f1a053"
62
62
  }
package/src/sdk.ts CHANGED
@@ -242,6 +242,9 @@ type Queries = { [K in keyof ClientModelForName]: APIQuery<K> } & {
242
242
  get_engagement_statistics: (args: extractFields<CustomActions['endusers']['get_engagement_statistics']['parameters']>) => (
243
243
  Promise<extractFields<CustomActions['endusers']['get_engagement_statistics']['returns']>>
244
244
  ),
245
+ sync_zendesk: (args: extractFields<CustomActions['endusers']['sync_zendesk']['parameters']>) => (
246
+ Promise<extractFields<CustomActions['endusers']['sync_zendesk']['returns']>>
247
+ ),
245
248
  },
246
249
  users: {
247
250
  display_names: () => Promise<{ fname: string, lname: string, id: string }[]>,
@@ -324,6 +327,9 @@ type Queries = { [K in keyof ClientModelForName]: APIQuery<K> } & {
324
327
  get_report: (args: extractFields<CustomActions['form_responses']['get_report']['parameters']>) => (
325
328
  Promise<extractFields<CustomActions['form_responses']['get_report']['returns']>>
326
329
  ),
330
+ get_report_as_post: (args: extractFields<CustomActions['form_responses']['get_report']['parameters']>) => (
331
+ Promise<extractFields<CustomActions['form_responses']['get_report']['returns']>>
332
+ ),
327
333
  get_enduser_statistics: (args: extractFields<CustomActions['form_responses']['get_enduser_statistics']['parameters']>) => (
328
334
  Promise<extractFields<CustomActions['form_responses']['get_enduser_statistics']['returns']>>
329
335
  ),
@@ -436,6 +442,9 @@ type Queries = { [K in keyof ClientModelForName]: APIQuery<K> } & {
436
442
  disconnect_elation: (args: extractFields<CustomActions['integrations']['disconnect_elation']['parameters']>) => (
437
443
  Promise<extractFields<CustomActions['integrations']['disconnect_elation']['returns']>>
438
444
  ),
445
+ connect_zendesk: (args: extractFields<CustomActions['integrations']['connect_zendesk']['parameters']>) => (
446
+ Promise<extractFields<CustomActions['integrations']['connect_zendesk']['returns']>>
447
+ ),
439
448
  },
440
449
  phone_calls: {
441
450
  authenticate_calling: (args: extractFields<CustomActions['phone_calls']['authenticate_calling']['parameters']>) => (
@@ -476,6 +485,9 @@ type Queries = { [K in keyof ClientModelForName]: APIQuery<K> } & {
476
485
  deliver_via_outlook: (args: extractFields<CustomActions['emails']['deliver_via_outlook']['parameters']>) => (
477
486
  Promise<extractFields<CustomActions['emails']['deliver_via_outlook']['returns']>>
478
487
  ),
488
+ deliver_via_iterable: (args: extractFields<CustomActions['emails']['deliver_via_iterable']['parameters']>) => (
489
+ Promise<extractFields<CustomActions['emails']['deliver_via_iterable']['returns']>>
490
+ ),
479
491
  },
480
492
  calendar_events: {
481
493
  get_events_for_user: (args: extractFields<CustomActions['calendar_events']['get_events_for_user']['parameters']>) => (
@@ -583,6 +595,7 @@ export class Session extends SessionManager {
583
595
  queries.endusers.bulk_update = a => this._PATCH(`/v1${schema.endusers.customActions.bulk_update.path}`, a)
584
596
  queries.endusers.get_report = a => this._GET(`/v1/${schema.endusers.customActions.get_report.path}`, a)
585
597
  queries.endusers.get_engagement_statistics = a => this._GET(`/v1/${schema.endusers.customActions.get_engagement_statistics.path}`, a)
598
+ queries.endusers.sync_zendesk = a => this._POST(`/v1${schema.endusers.customActions.sync_zendesk.path}`, a)
586
599
 
587
600
  queries.users.display_names = () => this._GET<{}, { fname: string, lname: string, id: string }[]>(`/v1/user-display-names`)
588
601
  queries.users.register = (args) => this._POST(`/v1${schema.users.publicActions.register.path}`, args)
@@ -614,7 +627,7 @@ export class Session extends SessionManager {
614
627
  queries.form_responses.info_for_access_code = (args) => this._GET(`/v1${schema.form_responses.customActions.info_for_access_code.path}`, args)
615
628
  queries.form_responses.stripe_details = (args) => this._GET(`/v1${schema.form_responses.customActions.stripe_details.path}`, args)
616
629
  queries.form_responses.push_to_EHR = (args) => this._POST(`/v1${schema.form_responses.customActions.push_to_EHR.path}`, args)
617
- queries.form_responses.get_report = a => this._GET(`/v1/${schema.form_responses.customActions.get_report.path}`, a)
630
+ queries.form_responses.get_report = a => this._POST(`/v1/${schema.form_responses.customActions.get_report.path}`, a)
618
631
  queries.form_responses.get_enduser_statistics = a => this._GET(`/v1/${schema.form_responses.customActions.get_enduser_statistics.path}`, a)
619
632
 
620
633
  // need arraybuffer response type, see tests.ts
@@ -667,9 +680,11 @@ export class Session extends SessionManager {
667
680
  queries.integrations.disconnect_photon = a => this._POST(`/v1/${schema.integrations.customActions.disconnect_photon.path}`, a)
668
681
  queries.integrations.connect_elation = a => this._POST(`/v1${schema.integrations.customActions.connect_elation.path}`, a)
669
682
  queries.integrations.disconnect_elation = a => this._POST(`/v1${schema.integrations.customActions.disconnect_elation.path}`, a)
683
+ queries.integrations.connect_zendesk = a => this._POST(`/v1${schema.integrations.customActions.connect_zendesk.path}`, a)
670
684
 
671
685
  queries.emails.sync_integrations = a => this._POST(`/v1/${schema.emails.customActions.sync_integrations.path}`, a)
672
686
  queries.emails.deliver_via_outlook = a => this._POST(`/v1/${schema.emails.customActions.deliver_via_outlook.path}`, a)
687
+ queries.emails.deliver_via_iterable = a => this._POST(`/v1/${schema.emails.customActions.deliver_via_iterable.path}`, a)
673
688
 
674
689
  queries.calendar_events.get_events_for_user = a => this._GET(`/v1/${schema.calendar_events.customActions.get_events_for_user.path}`, a)
675
690
  queries.calendar_events.load_events = a => this._GET(`/v1/${schema.calendar_events.customActions.load_events.path}`, a)
Binary file