fiftyone.devicedetection.cloud 4.4.137 → 4.4.139

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": "fiftyone.devicedetection.cloud",
3
- "version": "4.4.137",
3
+ "version": "4.4.139",
4
4
  "description": "Device detection cloud services for the 51Degrees Pipeline API",
5
5
  "keywords": [
6
6
  "51degrees",
@@ -54,6 +54,6 @@
54
54
  },
55
55
  "files": [
56
56
  "*.js",
57
- "*.ts"
57
+ "types"
58
58
  ]
59
59
  }
@@ -0,0 +1,2 @@
1
+ export let EVIDENCE_QUERY_NATIVE_MODEL_KEY: string;
2
+ export let EVIDENCE_QUERY_TAC_KEY: string;
@@ -0,0 +1,10 @@
1
+ export = DeviceDetectionCloud;
2
+ declare const DeviceDetectionCloud_base: typeof import("fiftyone.pipeline.cloudrequestengine/types/cloudEngine");
3
+ /**
4
+ * The deviceDetction cloud engine requires the 51Degrees
5
+ * cloudRequestEngine to be placed in a pipeline before it.
6
+ * It takes that raw JSON response and parses it to extract the
7
+ * device part. It also uses this data to generate a list of properties
8
+ **/
9
+ declare class DeviceDetectionCloud extends DeviceDetectionCloud_base {
10
+ }
@@ -0,0 +1,35 @@
1
+ export = DeviceDetectionCloudPipelineBuilder;
2
+ declare const DeviceDetectionCloudPipelineBuilder_base: typeof import("fiftyone.pipeline.core/types/pipelineBuilder");
3
+ /**
4
+ * Extension of pipelineBuilder class that allows for the quick
5
+ * generation of a device detection cloud pipeline. Adds share usage,
6
+ * caching.
7
+ */
8
+ declare class DeviceDetectionCloudPipelineBuilder extends DeviceDetectionCloudPipelineBuilder_base {
9
+ /**
10
+ * Constructor for DeviceDetectionCloudPipelineBuilder
11
+ *
12
+ * @param {object} options the options for the pipeline builder
13
+ * @param {string} options.licenceKeys license key(s) used by the
14
+ * data file update service. A key can be obtained from the
15
+ * 51Degrees website: https://51degrees.com/pricing.
16
+ * This parameter MUST be set when using a data file.
17
+ * If you do not wish to use a key then you can specify
18
+ * an empty string, but this will cause automatic updates
19
+ * to be disabled.
20
+ * @param {string} options.resourceKey resourceKey
21
+ * @param {number} options.cacheSize size of the default cache
22
+ * (includes cache if set).
23
+ * @param {string} options.cloudEndPoint Choose a non default endpoint
24
+ * for the cloud request engine
25
+ * @param {string} options.cloudRequestOrigin The value to set the
26
+ * Origin header to when making requests to the cloud service
27
+ */
28
+ constructor({ licenceKeys, resourceKey, cacheSize, cloudEndPoint, cloudRequestOrigin }: {
29
+ licenceKeys: string;
30
+ resourceKey: string;
31
+ cacheSize: number;
32
+ cloudEndPoint: string;
33
+ cloudRequestOrigin: string;
34
+ }, ...args: any[]);
35
+ }
@@ -0,0 +1,19 @@
1
+ export = HardwareProfileCloudEngine;
2
+ declare const HardwareProfileCloudEngine_base: typeof import("fiftyone.pipeline.cloudrequestengine/types/cloudEngine");
3
+ /**
4
+ * This Cloud Aspect Engine enables the parsing of 'hardware profile'
5
+ * responses from the 51Degrees cloud service.
6
+ */
7
+ declare class HardwareProfileCloudEngine extends HardwareProfileCloudEngine_base {
8
+ /**
9
+ * Process internal FlowData cloud data for devices,
10
+ * set them as FlowData elements
11
+ *
12
+ * @param {FlowData} flowData The FlowData object
13
+ */
14
+ processInternal(flowData: FlowData): void;
15
+ }
16
+ declare namespace HardwareProfileCloudEngine {
17
+ export { FlowData };
18
+ }
19
+ type FlowData = import("fiftyone.pipeline.core/types/flowData");
@@ -0,0 +1,3 @@
1
+ export let DeviceDetectionCloud: typeof import("./deviceDetectionCloud");
2
+ export let DeviceDetectionCloudPipelineBuilder: typeof import("./deviceDetectionCloudPipelineBuilder");
3
+ export let HardwareProfileCloudEngine: typeof import("../fiftyone.devicedetection.cloud/hardwareProfileCloudEngine");