@integry/sdk 3.2.6 → 3.2.7-beta.1

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.
@@ -106,6 +106,10 @@ declare enum TemplateFormRenderModes {
106
106
  DETACHED = "DETACHED",
107
107
  CUSTOM = "CUSTOM"
108
108
  }
109
+ declare enum MarketplaceRenderModes {
110
+ MODAL = "MODAL",
111
+ INLINE = "INLINE"
112
+ }
109
113
  declare enum TemplateListingRenderModes {
110
114
  GRID = "GRID",
111
115
  LIST = "LIST"
@@ -158,6 +162,7 @@ interface ConfigWithObject extends SDKConfig {
158
162
  hash: string;
159
163
  userId: string;
160
164
  deploymentId: string;
165
+ marketplaceId?: string;
161
166
  }
162
167
  interface ConfigWithUrlParams extends SDKConfig {
163
168
  useUrlParams?: boolean;
@@ -194,6 +199,11 @@ type AuthorizationType = {
194
199
  provider: string;
195
200
  is_sandbox_enabled: boolean;
196
201
  authorization_url_sandbox: string;
202
+ app: {
203
+ icon_url: string;
204
+ id: number;
205
+ name: string;
206
+ };
197
207
  };
198
208
  interface TemplateField {
199
209
  id: number;
@@ -276,6 +286,10 @@ interface InitConfig {
276
286
  templateContainerId?: string;
277
287
  renderMode: TemplateFormRenderModes;
278
288
  }
289
+ interface MarketplaceConfig {
290
+ containerId: string;
291
+ renderMode: MarketplaceRenderModes;
292
+ }
279
293
  interface TemplatePreviewData {
280
294
  id: number;
281
295
  name: string;
@@ -327,6 +341,7 @@ declare class IntegryJS {
327
341
  // allow customers to use template tagging
328
342
  static html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<{}>;
329
343
  static RenderModes: typeof TemplateFormRenderModes;
344
+ static MarketplaceRenderModes: typeof MarketplaceRenderModes;
330
345
  static Helpers: {
331
346
  getAuthHash: (key: string, message: string) => Promise<string>;
332
347
  };
@@ -380,6 +395,11 @@ declare class IntegryJS {
380
395
  * @param initConfig
381
396
  */
382
397
  init: (initConfig: InitConfig) => void;
398
+ /**
399
+ *
400
+ * @param marketplaceConfig
401
+ */
402
+ renderMarketplace: (marketplaceConfig: MarketplaceConfig) => void;
383
403
  verifyAuthConfig: () => Promise<{
384
404
  config_verified: boolean;
385
405
  } | null>;