@monterosa/sdk-interact-interop 0.18.9 → 0.18.10-local-only-storage.2

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/dist/api.d.ts CHANGED
@@ -9,7 +9,22 @@
9
9
  */
10
10
  import { Listings, Localised } from './types';
11
11
  /**
12
+ * Fetches the project listings feed from the CDN.
13
+ *
14
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
15
+ * @param projectId - The project UUID
16
+ * @returns A promise resolving to the project listings containing events
17
+ *
12
18
  * @internal
13
19
  */
14
20
  export declare function fetchListings(host: string, projectId: string): Promise<Listings>;
21
+ /**
22
+ * Fetches the project settings from the CDN.
23
+ *
24
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
25
+ * @param id - The project UUID
26
+ * @returns A promise resolving to localised project settings
27
+ *
28
+ * @internal
29
+ */
15
30
  export declare function fetchSettings(host: string, id: string): Promise<Localised<Record<string, unknown>>>;
package/dist/index.cjs.js CHANGED
@@ -65,6 +65,12 @@ function __generator(thisArg, body) {
65
65
  * More details on the license can be found at https://www.monterosa.co/sdk/license
66
66
  */
67
67
  /**
68
+ * Fetches the project listings feed from the CDN.
69
+ *
70
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
71
+ * @param projectId - The project UUID
72
+ * @returns A promise resolving to the project listings containing events
73
+ *
68
74
  * @internal
69
75
  */
70
76
  function fetchListings(host, projectId) {
@@ -83,7 +89,13 @@ function fetchListings(host, projectId) {
83
89
  });
84
90
  });
85
91
  }
86
- /*
92
+ /**
93
+ * Fetches the project settings from the CDN.
94
+ *
95
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
96
+ * @param id - The project UUID
97
+ * @returns A promise resolving to localised project settings
98
+ *
87
99
  * @internal
88
100
  */
89
101
  function fetchSettings(host, id) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/api.ts"],"sourcesContent":["/**\n * @license\n * api.ts\n * interact-interop\n *\n * Copyright © 2025 Monterosa Productions Limited. All rights reserved.\n *\n * More details on the license can be found at https://www.monterosa.co/sdk/license\n */\n\nimport { Listings, Localised } from './types';\n\n/**\n * @internal\n */\nexport async function fetchListings(\n host: string,\n projectId: string,\n): Promise<Listings> {\n const response = await fetch(\n `https://${host}/projects/${projectId.substring(\n 0,\n 2,\n )}/${projectId}/listings.json`,\n );\n\n const data = (await response.json()) as Listings;\n\n return data;\n}\n\n/*\n * @internal\n */\nexport async function fetchSettings(\n host: string,\n id: string,\n): Promise<Localised<Record<string, unknown>>> {\n const response = await fetch(\n `https://${host}/projects/${id.substring(0, 2)}/${id}/settings.json`,\n );\n\n const data = (await response.json()) as Localised<Record<string, unknown>>;\n\n return data;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;AAYA;;;SAGsB,aAAa,CACjC,IAAY,EACZ,SAAiB;;;;;wBAEA,qBAAM,KAAK,CAC1B,aAAW,IAAI,kBAAa,SAAS,CAAC,SAAS,CAC7C,CAAC,EACD,CAAC,CACF,SAAI,SAAS,mBAAgB,CAC/B,EAAA;;oBALK,QAAQ,GAAG,SAKhB;oBAEa,qBAAM,QAAQ,CAAC,IAAI,EAAE,EAAA;;oBAA7B,IAAI,IAAI,SAAqB,CAAa;oBAEhD,sBAAO,IAAI,EAAC;;;;CACb;AAED;;;SAGsB,aAAa,CACjC,IAAY,EACZ,EAAU;;;;;wBAEO,qBAAM,KAAK,CAC1B,aAAW,IAAI,kBAAa,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,SAAI,EAAE,mBAAgB,CACrE,EAAA;;oBAFK,QAAQ,GAAG,SAEhB;oBAEa,qBAAM,QAAQ,CAAC,IAAI,EAAE,EAAA;;oBAA7B,IAAI,IAAI,SAAqB,CAAuC;oBAE1E,sBAAO,IAAI,EAAC;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/api.ts"],"sourcesContent":["/**\n * @license\n * api.ts\n * interact-interop\n *\n * Copyright © 2025 Monterosa Productions Limited. All rights reserved.\n *\n * More details on the license can be found at https://www.monterosa.co/sdk/license\n */\n\nimport { Listings, Localised } from './types';\n\n/**\n * Fetches the project listings feed from the CDN.\n *\n * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)\n * @param projectId - The project UUID\n * @returns A promise resolving to the project listings containing events\n *\n * @internal\n */\nexport async function fetchListings(\n host: string,\n projectId: string,\n): Promise<Listings> {\n const response = await fetch(\n `https://${host}/projects/${projectId.substring(\n 0,\n 2,\n )}/${projectId}/listings.json`,\n );\n\n const data = (await response.json()) as Listings;\n\n return data;\n}\n\n/**\n * Fetches the project settings from the CDN.\n *\n * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)\n * @param id - The project UUID\n * @returns A promise resolving to localised project settings\n *\n * @internal\n */\nexport async function fetchSettings(\n host: string,\n id: string,\n): Promise<Localised<Record<string, unknown>>> {\n const response = await fetch(\n `https://${host}/projects/${id.substring(0, 2)}/${id}/settings.json`,\n );\n\n const data = (await response.json()) as Localised<Record<string, unknown>>;\n\n return data;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;AAQG;AAIH;;;;;;;;AAQG;AACmB,SAAA,aAAa,CACjC,IAAY,EACZ,SAAiB,EAAA;;;;;AAEA,gBAAA,KAAA,CAAA,EAAA,OAAA,CAAA,CAAA,YAAM,KAAK,CAC1B,UAAA,GAAW,IAAI,GAAA,YAAA,GAAa,SAAS,CAAC,SAAS,CAC7C,CAAC,EACD,CAAC,CACF,SAAI,SAAS,GAAA,gBAAgB,CAC/B,CAAA,CAAA;;AALK,oBAAA,QAAQ,GAAG,EAKhB,CAAA,IAAA,EAAA,CAAA;AAEa,oBAAA,OAAA,CAAA,CAAA,YAAM,QAAQ,CAAC,IAAI,EAAE,CAAA,CAAA;;oBAA7B,IAAI,IAAI,EAAA,CAAA,IAAA,EAAqB,CAAa,CAAA;AAEhD,oBAAA,OAAA,CAAA,CAAA,aAAO,IAAI,CAAC,CAAA;;;;AACb,CAAA;AAED;;;;;;;;AAQG;AACmB,SAAA,aAAa,CACjC,IAAY,EACZ,EAAU,EAAA;;;;;AAEO,gBAAA,KAAA,CAAA,EAAA,OAAA,CAAA,CAAA,YAAM,KAAK,CAC1B,UAAA,GAAW,IAAI,GAAA,YAAA,GAAa,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,SAAI,EAAE,GAAA,gBAAgB,CACrE,CAAA,CAAA;;AAFK,oBAAA,QAAQ,GAAG,EAEhB,CAAA,IAAA,EAAA,CAAA;AAEa,oBAAA,OAAA,CAAA,CAAA,YAAM,QAAQ,CAAC,IAAI,EAAE,CAAA,CAAA;;oBAA7B,IAAI,IAAI,EAAA,CAAA,IAAA,EAAqB,CAAuC,CAAA;AAE1E,oBAAA,OAAA,CAAA,CAAA,aAAO,IAAI,CAAC,CAAA;;;;AACb;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Provides type definitions shared between Interact Kit consumers.
3
+ *
4
+ * @packageDocumentation
5
+ */
1
6
  /**
2
7
  * @license
3
8
  * index.ts
@@ -7,9 +12,4 @@
7
12
  *
8
13
  * More details on the license can be found at https://www.monterosa.co/sdk/license
9
14
  */
10
- /**
11
- * Monterosa SDK / Interact Interoperability
12
- *
13
- * @packageDocumentation
14
- */
15
15
  export * from './api';
@@ -8,6 +8,12 @@
8
8
  * More details on the license can be found at https://www.monterosa.co/sdk/license
9
9
  */
10
10
  /**
11
+ * Fetches the project listings feed from the CDN.
12
+ *
13
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
14
+ * @param projectId - The project UUID
15
+ * @returns A promise resolving to the project listings containing events
16
+ *
11
17
  * @internal
12
18
  */
13
19
  async function fetchListings(host, projectId) {
@@ -15,7 +21,13 @@ async function fetchListings(host, projectId) {
15
21
  const data = (await response.json());
16
22
  return data;
17
23
  }
18
- /*
24
+ /**
25
+ * Fetches the project settings from the CDN.
26
+ *
27
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
28
+ * @param id - The project UUID
29
+ * @returns A promise resolving to localised project settings
30
+ *
19
31
  * @internal
20
32
  */
21
33
  async function fetchSettings(host, id) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm2017.js","sources":["../src/api.ts"],"sourcesContent":["/**\n * @license\n * api.ts\n * interact-interop\n *\n * Copyright © 2025 Monterosa Productions Limited. All rights reserved.\n *\n * More details on the license can be found at https://www.monterosa.co/sdk/license\n */\n\nimport { Listings, Localised } from './types';\n\n/**\n * @internal\n */\nexport async function fetchListings(\n host: string,\n projectId: string,\n): Promise<Listings> {\n const response = await fetch(\n `https://${host}/projects/${projectId.substring(\n 0,\n 2,\n )}/${projectId}/listings.json`,\n );\n\n const data = (await response.json()) as Listings;\n\n return data;\n}\n\n/*\n * @internal\n */\nexport async function fetchSettings(\n host: string,\n id: string,\n): Promise<Localised<Record<string, unknown>>> {\n const response = await fetch(\n `https://${host}/projects/${id.substring(0, 2)}/${id}/settings.json`,\n );\n\n const data = (await response.json()) as Localised<Record<string, unknown>>;\n\n return data;\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;AAYA;;;AAGO,eAAe,aAAa,CACjC,IAAY,EACZ,SAAiB;IAEjB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,WAAW,IAAI,aAAa,SAAS,CAAC,SAAS,CAC7C,CAAC,EACD,CAAC,CACF,IAAI,SAAS,gBAAgB,CAC/B,CAAC;IAEF,MAAM,IAAI,IAAI,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAa,CAAC;IAEjD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;AAGO,eAAe,aAAa,CACjC,IAAY,EACZ,EAAU;IAEV,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,WAAW,IAAI,aAAa,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,gBAAgB,CACrE,CAAC;IAEF,MAAM,IAAI,IAAI,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAuC,CAAC;IAE3E,OAAO,IAAI,CAAC;AACd;;;;"}
1
+ {"version":3,"file":"index.esm2017.js","sources":["../src/api.ts"],"sourcesContent":["/**\n * @license\n * api.ts\n * interact-interop\n *\n * Copyright © 2025 Monterosa Productions Limited. All rights reserved.\n *\n * More details on the license can be found at https://www.monterosa.co/sdk/license\n */\n\nimport { Listings, Localised } from './types';\n\n/**\n * Fetches the project listings feed from the CDN.\n *\n * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)\n * @param projectId - The project UUID\n * @returns A promise resolving to the project listings containing events\n *\n * @internal\n */\nexport async function fetchListings(\n host: string,\n projectId: string,\n): Promise<Listings> {\n const response = await fetch(\n `https://${host}/projects/${projectId.substring(\n 0,\n 2,\n )}/${projectId}/listings.json`,\n );\n\n const data = (await response.json()) as Listings;\n\n return data;\n}\n\n/**\n * Fetches the project settings from the CDN.\n *\n * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)\n * @param id - The project UUID\n * @returns A promise resolving to localised project settings\n *\n * @internal\n */\nexport async function fetchSettings(\n host: string,\n id: string,\n): Promise<Localised<Record<string, unknown>>> {\n const response = await fetch(\n `https://${host}/projects/${id.substring(0, 2)}/${id}/settings.json`,\n );\n\n const data = (await response.json()) as Localised<Record<string, unknown>>;\n\n return data;\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;AAQG;AAIH;;;;;;;;AAQG;AACI,eAAe,aAAa,CACjC,IAAY,EACZ,SAAiB,EAAA;IAEjB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,CAAW,QAAA,EAAA,IAAI,aAAa,SAAS,CAAC,SAAS,CAC7C,CAAC,EACD,CAAC,CACF,IAAI,SAAS,CAAA,cAAA,CAAgB,CAC/B,CAAC;IAEF,MAAM,IAAI,IAAI,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAa,CAAC;AAEjD,IAAA,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;AAQG;AACI,eAAe,aAAa,CACjC,IAAY,EACZ,EAAU,EAAA;IAEV,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,CAAW,QAAA,EAAA,IAAI,aAAa,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA,cAAA,CAAgB,CACrE,CAAC;IAEF,MAAM,IAAI,IAAI,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAuC,CAAC;AAE3E,IAAA,OAAO,IAAI,CAAC;AACd;;;;"}
@@ -61,6 +61,12 @@ function __generator(thisArg, body) {
61
61
  * More details on the license can be found at https://www.monterosa.co/sdk/license
62
62
  */
63
63
  /**
64
+ * Fetches the project listings feed from the CDN.
65
+ *
66
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
67
+ * @param projectId - The project UUID
68
+ * @returns A promise resolving to the project listings containing events
69
+ *
64
70
  * @internal
65
71
  */
66
72
  function fetchListings(host, projectId) {
@@ -79,7 +85,13 @@ function fetchListings(host, projectId) {
79
85
  });
80
86
  });
81
87
  }
82
- /*
88
+ /**
89
+ * Fetches the project settings from the CDN.
90
+ *
91
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
92
+ * @param id - The project UUID
93
+ * @returns A promise resolving to localised project settings
94
+ *
83
95
  * @internal
84
96
  */
85
97
  function fetchSettings(host, id) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm5.js","sources":["../src/api.ts"],"sourcesContent":["/**\n * @license\n * api.ts\n * interact-interop\n *\n * Copyright © 2025 Monterosa Productions Limited. All rights reserved.\n *\n * More details on the license can be found at https://www.monterosa.co/sdk/license\n */\n\nimport { Listings, Localised } from './types';\n\n/**\n * @internal\n */\nexport async function fetchListings(\n host: string,\n projectId: string,\n): Promise<Listings> {\n const response = await fetch(\n `https://${host}/projects/${projectId.substring(\n 0,\n 2,\n )}/${projectId}/listings.json`,\n );\n\n const data = (await response.json()) as Listings;\n\n return data;\n}\n\n/*\n * @internal\n */\nexport async function fetchSettings(\n host: string,\n id: string,\n): Promise<Localised<Record<string, unknown>>> {\n const response = await fetch(\n `https://${host}/projects/${id.substring(0, 2)}/${id}/settings.json`,\n );\n\n const data = (await response.json()) as Localised<Record<string, unknown>>;\n\n return data;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;AAYA;;;SAGsB,aAAa,CACjC,IAAY,EACZ,SAAiB;;;;;wBAEA,qBAAM,KAAK,CAC1B,aAAW,IAAI,kBAAa,SAAS,CAAC,SAAS,CAC7C,CAAC,EACD,CAAC,CACF,SAAI,SAAS,mBAAgB,CAC/B,EAAA;;oBALK,QAAQ,GAAG,SAKhB;oBAEa,qBAAM,QAAQ,CAAC,IAAI,EAAE,EAAA;;oBAA7B,IAAI,IAAI,SAAqB,CAAa;oBAEhD,sBAAO,IAAI,EAAC;;;;CACb;AAED;;;SAGsB,aAAa,CACjC,IAAY,EACZ,EAAU;;;;;wBAEO,qBAAM,KAAK,CAC1B,aAAW,IAAI,kBAAa,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,SAAI,EAAE,mBAAgB,CACrE,EAAA;;oBAFK,QAAQ,GAAG,SAEhB;oBAEa,qBAAM,QAAQ,CAAC,IAAI,EAAE,EAAA;;oBAA7B,IAAI,IAAI,SAAqB,CAAuC;oBAE1E,sBAAO,IAAI,EAAC;;;;;;;;"}
1
+ {"version":3,"file":"index.esm5.js","sources":["../src/api.ts"],"sourcesContent":["/**\n * @license\n * api.ts\n * interact-interop\n *\n * Copyright © 2025 Monterosa Productions Limited. All rights reserved.\n *\n * More details on the license can be found at https://www.monterosa.co/sdk/license\n */\n\nimport { Listings, Localised } from './types';\n\n/**\n * Fetches the project listings feed from the CDN.\n *\n * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)\n * @param projectId - The project UUID\n * @returns A promise resolving to the project listings containing events\n *\n * @internal\n */\nexport async function fetchListings(\n host: string,\n projectId: string,\n): Promise<Listings> {\n const response = await fetch(\n `https://${host}/projects/${projectId.substring(\n 0,\n 2,\n )}/${projectId}/listings.json`,\n );\n\n const data = (await response.json()) as Listings;\n\n return data;\n}\n\n/**\n * Fetches the project settings from the CDN.\n *\n * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)\n * @param id - The project UUID\n * @returns A promise resolving to localised project settings\n *\n * @internal\n */\nexport async function fetchSettings(\n host: string,\n id: string,\n): Promise<Localised<Record<string, unknown>>> {\n const response = await fetch(\n `https://${host}/projects/${id.substring(0, 2)}/${id}/settings.json`,\n );\n\n const data = (await response.json()) as Localised<Record<string, unknown>>;\n\n return data;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;AAQG;AAIH;;;;;;;;AAQG;AACmB,SAAA,aAAa,CACjC,IAAY,EACZ,SAAiB,EAAA;;;;;AAEA,gBAAA,KAAA,CAAA,EAAA,OAAA,CAAA,CAAA,YAAM,KAAK,CAC1B,UAAA,GAAW,IAAI,GAAA,YAAA,GAAa,SAAS,CAAC,SAAS,CAC7C,CAAC,EACD,CAAC,CACF,SAAI,SAAS,GAAA,gBAAgB,CAC/B,CAAA,CAAA;;AALK,oBAAA,QAAQ,GAAG,EAKhB,CAAA,IAAA,EAAA,CAAA;AAEa,oBAAA,OAAA,CAAA,CAAA,YAAM,QAAQ,CAAC,IAAI,EAAE,CAAA,CAAA;;oBAA7B,IAAI,IAAI,EAAA,CAAA,IAAA,EAAqB,CAAa,CAAA;AAEhD,oBAAA,OAAA,CAAA,CAAA,aAAO,IAAI,CAAC,CAAA;;;;AACb,CAAA;AAED;;;;;;;;AAQG;AACmB,SAAA,aAAa,CACjC,IAAY,EACZ,EAAU,EAAA;;;;;AAEO,gBAAA,KAAA,CAAA,EAAA,OAAA,CAAA,CAAA,YAAM,KAAK,CAC1B,UAAA,GAAW,IAAI,GAAA,YAAA,GAAa,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,SAAI,EAAE,GAAA,gBAAgB,CACrE,CAAA,CAAA;;AAFK,oBAAA,QAAQ,GAAG,EAEhB,CAAA,IAAA,EAAA,CAAA;AAEa,oBAAA,OAAA,CAAA,CAAA,YAAM,QAAQ,CAAC,IAAI,EAAE,CAAA,CAAA;;oBAA7B,IAAI,IAAI,EAAA,CAAA,IAAA,EAAqB,CAAuC,CAAA;AAE1E,oBAAA,OAAA,CAAA,CAAA,aAAO,IAAI,CAAC,CAAA;;;;AACb;;;;"}
@@ -0,0 +1,103 @@
1
+ /**
2
+ * Provides type definitions shared between Interact Kit consumers.
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+
7
+ declare interface EventOptions {
8
+ id: string;
9
+ name: string;
10
+ start_at: number;
11
+ start_at_iso: string;
12
+ end_at: number;
13
+ end_at_iso: string;
14
+ started: boolean;
15
+ custom_fields: Localised<Record<string, unknown>>;
16
+ extra_time: number;
17
+ on_demand_time: number;
18
+ duration: number;
19
+ original_duration: number;
20
+ digest: string;
21
+ }
22
+
23
+ /**
24
+ * @license
25
+ * types.ts
26
+ * interact-interop
27
+ *
28
+ * Copyright © 2025 Monterosa Productions Limited. All rights reserved.
29
+ *
30
+ * More details on the license can be found at https://www.monterosa.co/sdk/license
31
+ */
32
+ declare interface ExtensionAsset {
33
+ /**
34
+ * Extension's unique name
35
+ */
36
+ name: string;
37
+ /**
38
+ * An arbitrary data (e.g. url or extension-specific value)
39
+ */
40
+ data: string;
41
+ /**
42
+ * Defines autoload behaviour
43
+ *
44
+ * @remarks
45
+ * - when `js` is set, JS script from the URL in `data` will be injected
46
+ *
47
+ * - when `css` is set, CSS file from the URL in `data` will be injected
48
+ *
49
+ * - when `false` is set, a developer can decide on their own how to handle it
50
+ */
51
+ autoload?: 'js' | 'css' | false;
52
+ }
53
+
54
+ /**
55
+ * Fetches the project listings feed from the CDN.
56
+ *
57
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
58
+ * @param projectId - The project UUID
59
+ * @returns A promise resolving to the project listings containing events
60
+ *
61
+ * @internal
62
+ */
63
+ export declare function fetchListings(host: string, projectId: string): Promise<Listings>;
64
+
65
+ /**
66
+ * Fetches the project settings from the CDN.
67
+ *
68
+ * @param host - The static host domain (e.g. `cdn-example.monterosa.cloud`)
69
+ * @param id - The project UUID
70
+ * @returns A promise resolving to localised project settings
71
+ *
72
+ * @internal
73
+ */
74
+ export declare function fetchSettings(host: string, id: string): Promise<Localised<Record<string, unknown>>>;
75
+
76
+ declare interface Listings {
77
+ project: {
78
+ uuid: string;
79
+ embed: string;
80
+ app_settings: string;
81
+ app_settings_digest: string;
82
+ audio_sync_default_delay: number;
83
+ audio_sync_max_delay: number;
84
+ history_ignore: number;
85
+ is_localisation_supported: boolean;
86
+ locales: ProjectLocale[];
87
+ };
88
+ events: EventOptions[];
89
+ assets: Record<string, ExtensionAsset[]>;
90
+ }
91
+
92
+ declare interface Localised<T> {
93
+ [lang: string]: T;
94
+ all: T;
95
+ }
96
+
97
+ declare interface ProjectLocale {
98
+ default: boolean;
99
+ key: string;
100
+ name: string;
101
+ }
102
+
103
+ export { }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.23.0"
9
+ }
10
+ ]
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monterosa/sdk-interact-interop",
3
- "version": "0.18.9",
3
+ "version": "0.18.10-local-only-storage.2",
4
4
  "description": "Launcher Interoperability for the Monterosa SDK",
5
5
  "author": "Monterosa <hello@monterosa.co.uk> (https://www.monterosa.co/)",
6
6
  "main": "dist/index.cjs.js",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "cf8b4ea9ed5e7b9ab5b64456a07c2a78c2b568c0"
39
+ "gitHead": "e8c9eed1871359b198d7ed25b0af9ee518d376e9"
40
40
  }