@win2win/shared 1.0.1 → 1.0.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/README.md CHANGED
@@ -1,29 +1,9 @@
1
1
  # README #
2
+ version 1.0.1
2
3
 
3
- This README would normally document whatever steps are necessary to get your application up and running.
4
+ ### Como hacer deploy del repo
4
5
 
5
- ### What is this repository for? ###
6
+ * Correr el comando
7
+ `npm run deploy`
6
8
 
7
- * Quick summary
8
- * Version
9
- * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
10
9
 
11
- ### How do I get set up? ###
12
-
13
- * Summary of set up
14
- * Configuration
15
- * Dependencies
16
- * Database configuration
17
- * How to run tests
18
- * Deployment instructions
19
-
20
- ### Contribution guidelines ###
21
-
22
- * Writing tests
23
- * Code review
24
- * Other guidelines
25
-
26
- ### Who do I talk to? ###
27
-
28
- * Repo owner or admin
29
- * Other community or team contact
@@ -1,9 +1,9 @@
1
- export type ControlCondition = {
1
+ export type GamaPropControlCondition = {
2
2
  id: number | null;
3
3
  logic: 'AND' | 'OR';
4
- children: ControlCondition[];
5
- operator: ConditionOperator;
4
+ children: GamaPropControlCondition[];
5
+ operator: GamaPropConditionOperator;
6
6
  value: any;
7
7
  };
8
8
  export declare const OPERATORS: readonly ["==", "!=", ">", "<", ">=", "<=", "contains", "not_contains", "in", "not_in"];
9
- export type ConditionOperator = (typeof OPERATORS)[number];
9
+ export type GamaPropConditionOperator = (typeof OPERATORS)[number];
@@ -48,3 +48,17 @@ export declare const GAMA_PROP_CONTROL_TYPES: readonly [{
48
48
  readonly label: "Objeto";
49
49
  }];
50
50
  export type GamaPropControlCode = (typeof GAMA_PROP_CONTROL_TYPES)[number]['code'];
51
+ export declare enum ControlType {
52
+ TEXT = "input_text",
53
+ NUMBER = "input_number",
54
+ DATETIME = "datetime",
55
+ DATE = "date",
56
+ TIME = "time",
57
+ SWITCH = "switch",
58
+ CHECKBOX = "checkbox",
59
+ SELECT = "select",
60
+ CARDS_SELECT = "cards_select",
61
+ LOCATION = "location",
62
+ DYNAMIC_ARRAY = "dynamic_array",
63
+ OBJECT = "object"
64
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GAMA_PROP_CONTROL_TYPES = void 0;
3
+ exports.ControlType = exports.GAMA_PROP_CONTROL_TYPES = void 0;
4
4
  exports.GAMA_PROP_CONTROL_TYPES = [
5
5
  { code: 'input_text', icon: 'title', label: 'Texto' },
6
6
  { code: 'input_number', icon: 'o_looks_one', label: 'Número' },
@@ -15,3 +15,18 @@ exports.GAMA_PROP_CONTROL_TYPES = [
15
15
  { code: 'dynamic_array', icon: 'data_array', label: 'Colección dinámica' },
16
16
  { code: 'object', icon: 'data_object', label: 'Objeto' },
17
17
  ];
18
+ var ControlType;
19
+ (function (ControlType) {
20
+ ControlType["TEXT"] = "input_text";
21
+ ControlType["NUMBER"] = "input_number";
22
+ ControlType["DATETIME"] = "datetime";
23
+ ControlType["DATE"] = "date";
24
+ ControlType["TIME"] = "time";
25
+ ControlType["SWITCH"] = "switch";
26
+ ControlType["CHECKBOX"] = "checkbox";
27
+ ControlType["SELECT"] = "select";
28
+ ControlType["CARDS_SELECT"] = "cards_select";
29
+ ControlType["LOCATION"] = "location";
30
+ ControlType["DYNAMIC_ARRAY"] = "dynamic_array";
31
+ ControlType["OBJECT"] = "object";
32
+ })(ControlType || (exports.ControlType = ControlType = {}));
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "publish": "tsc && npm publish --access public"
9
+ "deploy": "tsc && npm publish --access public"
10
10
  },
11
11
  "keywords": [],
12
12
  "author": "win2win",