@wrcb/cb-common 1.0.74 → 1.0.75

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.
@@ -1,5 +1,6 @@
1
1
  import { MarketStatus } from '../events/types/marketStatus';
2
2
  import { OddConfiguration } from '../events/types/oddConfiguration';
3
+ import { PredictionOptions } from '../events/types/predictions';
3
4
  import { PredictionStatus } from '../events/types/predictionStatus';
4
5
  export declare function BuildMarketObject(): {
5
6
  title: string;
@@ -19,6 +20,8 @@ export declare function BuildPredictionObject(market: any, predictionOptions: an
19
20
  market: any;
20
21
  predictionOptions: any;
21
22
  };
23
+ export declare function BuildPredictionOptionsTwoOptionsArray(): PredictionOptions[];
24
+ export declare function BuildPredictionOptionsMultipleOptionsArray(): PredictionOptions[];
22
25
  export declare function BuildBetObject(prediction: any): {
23
26
  prediction: any;
24
27
  userId: string;
@@ -5,6 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BuildMarketObject = BuildMarketObject;
7
7
  exports.BuildPredictionObject = BuildPredictionObject;
8
+ exports.BuildPredictionOptionsTwoOptionsArray = BuildPredictionOptionsTwoOptionsArray;
9
+ exports.BuildPredictionOptionsMultipleOptionsArray = BuildPredictionOptionsMultipleOptionsArray;
8
10
  exports.BuildBetObject = BuildBetObject;
9
11
  const marketStatus_1 = require("../events/types/marketStatus");
10
12
  const oddConfiguration_1 = require("../events/types/oddConfiguration");
@@ -32,6 +34,28 @@ function BuildPredictionObject(market, predictionOptions) {
32
34
  predictionOptions,
33
35
  };
34
36
  }
37
+ function BuildPredictionOptionsTwoOptionsArray() {
38
+ const predictionOptionsTwoOptions = [
39
+ {
40
+ description: 'Teremos cadeirada no marçal?',
41
+ options: [
42
+ {
43
+ optionLabel: 'Sim',
44
+ odd: 0,
45
+ },
46
+ {
47
+ optionLabel: 'Não',
48
+ odd: 0,
49
+ },
50
+ ],
51
+ },
52
+ ];
53
+ return predictionOptionsTwoOptions;
54
+ }
55
+ function BuildPredictionOptionsMultipleOptionsArray() {
56
+ const predictionOptionsMultiOptions = [];
57
+ return predictionOptionsMultiOptions;
58
+ }
35
59
  function BuildBetObject(prediction) {
36
60
  return {
37
61
  prediction,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.74",
3
+ "version": "1.0.75",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",