commandbar 1.8.7 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/internal/src/client/AddContextOptions.d.ts +4 -0
  3. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -1
  4. package/build/internal/src/client/CommandBarClientSDK.d.ts +25 -7
  5. package/build/internal/src/client/CommandBarProxySDK.d.ts +3 -3
  6. package/build/internal/src/client/CommandBarSDK.d.ts +23 -12
  7. package/build/internal/src/client/EventHandler.d.ts +19 -5
  8. package/build/internal/src/client/globals.d.ts +6 -0
  9. package/build/internal/src/client/symbols.d.ts +11 -6
  10. package/build/internal/src/middleware/CommandFromClientV.d.ts +68 -10
  11. package/build/internal/src/middleware/OrganizationV.d.ts +124 -20
  12. package/build/internal/src/middleware/additionalResource.d.ts +178 -16
  13. package/build/internal/src/middleware/billing.d.ts +33 -0
  14. package/build/internal/src/middleware/chat.d.ts +10913 -0
  15. package/build/internal/src/middleware/checklist.d.ts +106 -28
  16. package/build/internal/src/middleware/command.d.ts +3778 -446
  17. package/build/internal/src/middleware/detailPreview.d.ts +12 -1
  18. package/build/internal/src/middleware/endUser.d.ts +104 -0
  19. package/build/internal/src/middleware/generics.d.ts +12 -11
  20. package/build/internal/src/middleware/helpDocsIntegration.d.ts +54 -8
  21. package/build/internal/src/middleware/helpDocsSearch.d.ts +2204 -0
  22. package/build/internal/src/middleware/helpHub.d.ts +26 -0
  23. package/build/internal/src/middleware/helpers/actions.d.ts +116 -8
  24. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +82 -2
  25. package/build/internal/src/middleware/helpers/pushTrigger.d.ts +6 -0
  26. package/build/internal/src/middleware/helpers/rules.d.ts +285 -26
  27. package/build/internal/src/middleware/network.d.ts +18 -3
  28. package/build/internal/src/middleware/nudge.d.ts +1193 -43
  29. package/build/internal/src/middleware/organization.d.ts +1051 -141
  30. package/build/internal/src/middleware/organizationSettings.d.ts +129 -22
  31. package/build/internal/src/middleware/recommendationSet.d.ts +408 -1007
  32. package/build/internal/src/middleware/types.d.ts +43 -25
  33. package/build/internal/src/util/dispatchCustomEvent.d.ts +3 -1
  34. package/build/internal/src/util/operatingSystem.d.ts +13 -0
  35. package/build/internal/src/util/sentry.d.ts +23 -0
  36. package/package.json +3 -3
  37. package/build/internal/src/client/SentryReporter.d.ts +0 -63
  38. package/build/internal/src/middleware/chatAnalytics.d.ts +0 -2601
  39. package/build/internal/src/middleware/helpers/endUser.d.ts +0 -11
  40. package/build/internal/src/middleware/qaPair.d.ts +0 -676
  41. package/build/internal/src/util/integrations.d.ts +0 -1
@@ -1,4 +1,19 @@
1
1
  import * as t from 'io-ts';
2
+ export declare const BillingProfileV: t.TypeC<{
3
+ organization: t.StringC;
4
+ price_cents: t.NumberC;
5
+ tier: t.StringC;
6
+ discount_cents: t.NumberC;
7
+ name: t.StringC;
8
+ invoice_description: t.StringC;
9
+ customer_id: t.UnionC<[t.StringC, t.NullC]>;
10
+ publishable_key: t.StringC;
11
+ balance: t.UnionC<[t.NumberC, t.NullC]>;
12
+ currency: t.UnionC<[t.StringC, t.NullC]>;
13
+ on_free_trial: t.BooleanC;
14
+ free_trial_end_date: t.UnionC<[t.StringC, t.NullC]>;
15
+ appsumo_invoice_item_id: t.UnionC<[t.StringC, t.NullC]>;
16
+ }>;
2
17
  export declare const StripInfoV: t.IntersectionC<[t.TypeC<{
3
18
  invoice_date_start: t.UnionC<[t.StringC, t.NullC]>;
4
19
  invoice_date_end: t.UnionC<[t.StringC, t.NullC]>;
@@ -38,4 +53,22 @@ export declare class Billing {
38
53
  questlists_live_limit: number;
39
54
  questlists_live_usage: number;
40
55
  } & {}>;
56
+ static readProfile: (params?: Record<string, string> | undefined, callbacks?: {
57
+ onSuccess?: (() => void) | undefined;
58
+ onError?: ((err: string) => void) | undefined;
59
+ } | undefined) => Promise<{
60
+ organization: string;
61
+ price_cents: number;
62
+ tier: string;
63
+ discount_cents: number;
64
+ name: string;
65
+ invoice_description: string;
66
+ customer_id: string | null;
67
+ publishable_key: string;
68
+ balance: number | null;
69
+ currency: string | null;
70
+ on_free_trial: boolean;
71
+ free_trial_end_date: string | null;
72
+ appsumo_invoice_item_id: string | null;
73
+ }>;
41
74
  }